mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
configure: Check for see-2.0 or later.
This commit is contained in:
parent
2002e245d6
commit
d791854f52
27
configure.in
27
configure.in
@ -572,12 +572,9 @@ AC_ARG_WITH(see, [ --with-see enable Simple Ecmascript Engine (SEE
|
|||||||
# to compile CVS. Also, the macro seems to be really stupid regarding searching
|
# to compile CVS. Also, the macro seems to be really stupid regarding searching
|
||||||
# for Guile in $PATH etc. --pasky
|
# for Guile in $PATH etc. --pasky
|
||||||
|
|
||||||
AC_MSG_CHECKING([for SEE])
|
|
||||||
|
|
||||||
CONFIG_ECMASCRIPT_SEE=no
|
CONFIG_ECMASCRIPT_SEE=no
|
||||||
|
|
||||||
if test "$enable_see" = "yes"; then
|
if test "$enable_see" = "yes"; then
|
||||||
AC_MSG_RESULT(yes);
|
|
||||||
## Based on the SEE_FLAGS macro.
|
## Based on the SEE_FLAGS macro.
|
||||||
|
|
||||||
if test -d "$withval"; then
|
if test -d "$withval"; then
|
||||||
@ -587,16 +584,24 @@ if test "$enable_see" = "yes"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
AC_PATH_PROG(SEE_CONFIG, libsee-config, no, $SEE_PATH)
|
AC_PATH_PROG(SEE_CONFIG, libsee-config, no, $SEE_PATH)
|
||||||
|
AC_MSG_CHECKING([for SEE (2.0.1131 or later)])
|
||||||
## First, let's just see if we can find Guile at all.
|
|
||||||
if test "$SEE_CONFIG" != no; then
|
if test "$SEE_CONFIG" != no; then
|
||||||
cf_result="yes";
|
EL_SAVE_FLAGS
|
||||||
|
|
||||||
SEE_LIBS="`$SEE_CONFIG --libs`"
|
SEE_LIBS="`$SEE_CONFIG --libs`"
|
||||||
SEE_CFLAGS="`$SEE_CONFIG --cppflags`"
|
SEE_CFLAGS="`$SEE_CONFIG --cppflags`"
|
||||||
LIBS="$SEE_LIBS $LIBS"
|
CPPFLAGS="$SEE_CFLAGS $CPPFLAGS"
|
||||||
EL_CONFIG(CONFIG_ECMASCRIPT_SEE, [SEE])
|
LIBS="$SEE_LIBS $LIBS_X"
|
||||||
AC_SUBST(SEE_CFLAGS)
|
AC_TRY_LINK([#include <see/see.h>],[#if SEE_VERSION_API_MAJOR < 2
|
||||||
|
choke_on_see();
|
||||||
|
#endif
|
||||||
|
], cf_result=yes, cf_result=no)
|
||||||
|
EL_RESTORE_FLAGS
|
||||||
|
if test "$cf_result" = yes; then
|
||||||
|
LIBS="$SEE_LIBS $LIBS"
|
||||||
|
EL_CONFIG(CONFIG_ECMASCRIPT_SEE, [SEE])
|
||||||
|
AC_SUBST(SEE_CFLAGS)
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT($cf_result)
|
||||||
else
|
else
|
||||||
if test -n "$withval" && test "x$withval" != xno; then
|
if test -n "$withval" && test "x$withval" != xno; then
|
||||||
AC_MSG_ERROR([SEE not found])
|
AC_MSG_ERROR([SEE not found])
|
||||||
@ -605,10 +610,10 @@ if test "$enable_see" = "yes"; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
AC_MSG_CHECKING([for SEE (2.0.1131 or later)])
|
||||||
AC_MSG_RESULT(no);
|
AC_MSG_RESULT(no);
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
dnl ===================================================================
|
dnl ===================================================================
|
||||||
dnl Check for SpiderMonkey, optional even if installed.
|
dnl Check for SpiderMonkey, optional even if installed.
|
||||||
dnl ===================================================================
|
dnl ===================================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user