From f094db3977185484bebee0bd0026046fe0bd9c98 Mon Sep 17 00:00:00 2001 From: Adam Olsen Date: Sun, 10 Jun 2001 13:07:30 +0000 Subject: [PATCH] add support for --with-qf=/usr/local as a prefix for lib and include dirs --- tools/qfcc/configure.in | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/tools/qfcc/configure.in b/tools/qfcc/configure.in index 664f3f987..aafed06f2 100644 --- a/tools/qfcc/configure.in +++ b/tools/qfcc/configure.in @@ -67,14 +67,25 @@ fi dnl Checks for library functions. -AC_CHECK_HEADER(QF/qtypes.h, HAVE_QF=yes, HAVE_QF=no) -if test "$HAVE_QF" = yes; then +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" + fi + , + HAVE_QF=auto +) +AC_CHECK_HEADER(QF/qtypes.h, :, HAVE_QF=no) +if test "x$HAVE_QF" != xno; then AC_CHECK_LIB(QFutil, Qopen, - HAVE_QF=yes, HAVE_QF=no, - [] + :, HAVE_QF=no, + [] ) fi -if test "$HAVE_QF" != yes; then + + +if test "x$HAVE_QF" = xno; then echo '***' echo '*** You seem to not have the QuakeForge libs & headers installed' echo '***'