1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-01 03:36:26 -04:00

configure.in: Do not check for SEE without --enable-see.

Use #error instead of choke_on_see(), because choke_on_see could
be defined by some library (very unlikely).
This commit is contained in:
Witold Filipczyk 2007-07-01 12:49:11 +02:00 committed by Witold Filipczyk
parent a033323639
commit 81bef35b02

View File

@ -587,8 +587,6 @@ AC_ARG_WITH(see, [ --with-see enable Simple Ecmascript Engine (SEE
CONFIG_ECMASCRIPT_SEE=no
if test "$enable_see" = "yes"; then
## Based on the SEE_FLAGS macro.
if test -d "$withval"; then
SEE_PATH="$withval:$PATH"
else
@ -604,7 +602,7 @@ if test "$enable_see" = "yes"; then
CPPFLAGS="$SEE_CFLAGS $CPPFLAGS"
LIBS="$SEE_LIBS $LIBS_X"
AC_TRY_LINK([#include <see/see.h>],[#if SEE_VERSION_API_MAJOR < 2
choke_on_see();
#error SEE too old
#endif
], cf_result=yes, cf_result=no)
EL_RESTORE_FLAGS
@ -621,9 +619,6 @@ if test "$enable_see" = "yes"; then
AC_MSG_WARN([SEE support disabled])
fi
fi
else
AC_MSG_CHECKING([for SEE (2.0.1131 or later)])
AC_MSG_RESULT(no);
fi
dnl ===================================================================