From 2447983464253e722879f2c4bfadafdf878f848c Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 24 Sep 2001 03:23:44 +0000 Subject: [PATCH] try three. this should work --- tools/qfcc/configure.in | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/tools/qfcc/configure.in b/tools/qfcc/configure.in index f0ed10f44..13b49648f 100644 --- a/tools/qfcc/configure.in +++ b/tools/qfcc/configure.in @@ -72,26 +72,31 @@ AC_TRY_COMPILE( AC_ARG_WITH(qf, [ --with-qf=DIR location of QF libs and headers (prefix)], if test "x$withval" != xyes ; then - LIBS="$LIBS -L${withval}/lib" - INCLUDES="$INCLUDES -I${withval}/include" + LDFLAGS="$LDFLAGS -L${withval}/lib" + CFLAGS="$CFLAGS -I${withval}/include" fi , HAVE_QF=auto ) -save_CFLAGS="$CFLAGS" -CFLAGS="$CFLAGS $INCLUDES" -AC_CHECK_HEADER(QF/qtypes.h, :, HAVE_QF=no) +AC_MSG_CHECKING(for QF/qtypes.h) +AC_TRY_COMPILE( + [#include "QF/qtypes.h"], + [qboolean foo = false; + foo = true;], + AC_MSG_RESULT(yes), + AC_MSG_RESULT(no) + HAVE_QF=no +) if test "x$HAVE_QF" != xno; then AC_CHECK_LIB(QFutil, Hash_NewTable, :, HAVE_QF=no, [] ) fi -CFLAGS="$save_CFLAGS" if test "x$HAVE_QF" != xno; then AC_CHECK_LIB(QFgamecode, PR_Opcode, :, HAVE_QF=no, - [$LIBS -lQFutil] + [-lQFutil] ) fi