mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-21 19:21:47 +00:00
fix --with-qf
This commit is contained in:
parent
325303b037
commit
83db5c0194
1 changed files with 11 additions and 3 deletions
|
@ -67,13 +67,21 @@ AC_TRY_COMPILE(
|
||||||
AC_ARG_WITH(qf,
|
AC_ARG_WITH(qf,
|
||||||
[ --with-qf=DIR location of QF libs and headers (prefix)],
|
[ --with-qf=DIR location of QF libs and headers (prefix)],
|
||||||
if test "x$withval" != xyes ; then
|
if test "x$withval" != xyes ; then
|
||||||
LIBS="$LIBS -L${withval}/lib"
|
LDFLAGS="$LDFLAGS -L${withval}/lib"
|
||||||
INCLUDES="$INCLUDES -I${withval}/include"
|
CFLAGS="$CFLAGS -I${withval}/include"
|
||||||
fi
|
fi
|
||||||
,
|
,
|
||||||
HAVE_QF=auto
|
HAVE_QF=auto
|
||||||
)
|
)
|
||||||
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
|
if test "x$HAVE_QF" != xno; then
|
||||||
AC_CHECK_LIB(QFutil, Hash_NewTable,
|
AC_CHECK_LIB(QFutil, Hash_NewTable,
|
||||||
:, HAVE_QF=no,
|
:, HAVE_QF=no,
|
||||||
|
|
Loading…
Reference in a new issue