|
|
PACKAGE_BUGREPORT= | PACKAGE_BUGREPORT= |
| |
ac_unique_file="src/GameMain.cpp" | ac_unique_file="src/GameMain.cpp" |
# Factoring default headers for most tests. |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE LIBOBJS LTLIBOBJS' |
ac_includes_default="\ |
|
#include <stdio.h> |
|
#if HAVE_SYS_TYPES_H |
|
# include <sys/types.h> |
|
#endif |
|
#if HAVE_SYS_STAT_H |
|
# include <sys/stat.h> |
|
#endif |
|
#if STDC_HEADERS |
|
# include <stdlib.h> |
|
# include <stddef.h> |
|
#else |
|
# if HAVE_STDLIB_H |
|
# include <stdlib.h> |
|
# endif |
|
#endif |
|
#if HAVE_STRING_H |
|
# if !STDC_HEADERS && HAVE_MEMORY_H |
|
# include <memory.h> |
|
# endif |
|
# include <string.h> |
|
#endif |
|
#if HAVE_STRINGS_H |
|
# include <strings.h> |
|
#endif |
|
#if HAVE_INTTYPES_H |
|
# include <inttypes.h> |
|
#else |
|
# if HAVE_STDINT_H |
|
# include <stdint.h> |
|
# endif |
|
#endif |
|
#if HAVE_UNISTD_H |
|
# include <unistd.h> |
|
#endif" |
|
|
|
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE CPP EGREP LIBOBJS LTLIBOBJS' |
|
ac_subst_files='' | ac_subst_files='' |
| |
# Initialize some variables set by options. | # Initialize some variables set by options. |
|
|
ac_env_CXXFLAGS_value=$CXXFLAGS | ac_env_CXXFLAGS_value=$CXXFLAGS |
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
ac_cv_env_CXXFLAGS_value=$CXXFLAGS | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
ac_env_CPP_set=${CPP+set} |
|
ac_env_CPP_value=$CPP |
|
ac_cv_env_CPP_set=${CPP+set} |
|
ac_cv_env_CPP_value=$CPP |
|
| |
# | # |
# Report the --help message. | # Report the --help message. |
|
|
headers in a nonstandard directory <include dir> | headers in a nonstandard directory <include dir> |
CXX C++ compiler command | CXX C++ compiler command |
CXXFLAGS C++ compiler flags | CXXFLAGS C++ compiler flags |
CPP C preprocessor |
|
| |
Use these variables to override the choices made by `configure' or to help | Use these variables to override the choices made by `configure' or to help |
it to find libraries and programs with nonstandard names/locations. | it to find libraries and programs with nonstandard names/locations. |
|
|
fi | fi |
| |
| |
echo "$as_me:$LINENO: checking for library containing lua_pushboolean" >&5 |
|
echo $ECHO_N "checking for library containing lua_pushboolean... $ECHO_C" >&6 |
|
if test "${ac_cv_search_lua_pushboolean+set}" = set; then |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
else |
|
ac_func_search_save_LIBS=$LIBS |
|
ac_cv_search_lua_pushboolean=no |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
extern "C" |
|
#endif |
|
/* We use char because int might match the return type of a gcc2 |
|
builtin and then its argument prototype would still apply. */ |
|
char lua_pushboolean (); |
|
int |
|
main () |
|
{ |
|
lua_pushboolean (); |
|
; |
|
return 0; |
|
} |
|
_ACEOF |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
(eval $ac_link) 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } && |
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; } && |
|
{ ac_try='test -s conftest$ac_exeext' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; }; then |
|
ac_cv_search_lua_pushboolean="none required" |
|
else |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
fi |
|
rm -f conftest.err conftest.$ac_objext \ |
|
conftest$ac_exeext conftest.$ac_ext |
|
if test "$ac_cv_search_lua_pushboolean" = no; then |
|
for ac_lib in lua lua50; do |
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
extern "C" |
|
#endif |
|
/* We use char because int might match the return type of a gcc2 |
|
builtin and then its argument prototype would still apply. */ |
|
char lua_pushboolean (); |
|
int |
|
main () |
|
{ |
|
lua_pushboolean (); |
|
; |
|
return 0; |
|
} |
|
_ACEOF |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
(eval $ac_link) 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } && |
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; } && |
|
{ ac_try='test -s conftest$ac_exeext' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; }; then |
|
ac_cv_search_lua_pushboolean="-l$ac_lib" |
|
break |
|
else |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
fi |
|
rm -f conftest.err conftest.$ac_objext \ |
|
conftest$ac_exeext conftest.$ac_ext |
|
done |
|
fi |
|
LIBS=$ac_func_search_save_LIBS |
|
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_search_lua_pushboolean" >&5 |
|
echo "${ECHO_T}$ac_cv_search_lua_pushboolean" >&6 |
|
if test "$ac_cv_search_lua_pushboolean" != no; then |
|
test "$ac_cv_search_lua_pushboolean" = "none required" || LIBS="$ac_cv_search_lua_pushboolean $LIBS" |
|
|
|
else |
|
{ { echo "$as_me:$LINENO: error: liblua50 or liblua required" >&5 |
|
echo "$as_me: error: liblua50 or liblua required" >&2;} |
|
{ (exit 1); exit 1; }; } |
|
fi |
|
|
|
echo "$as_me:$LINENO: checking for library containing luaopen_math" >&5 |
|
echo $ECHO_N "checking for library containing luaopen_math... $ECHO_C" >&6 |
|
if test "${ac_cv_search_luaopen_math+set}" = set; then |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
else |
|
ac_func_search_save_LIBS=$LIBS |
|
ac_cv_search_luaopen_math=no |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
extern "C" |
|
#endif |
|
/* We use char because int might match the return type of a gcc2 |
|
builtin and then its argument prototype would still apply. */ |
|
char luaopen_math (); |
|
int |
|
main () |
|
{ |
|
luaopen_math (); |
|
; |
|
return 0; |
|
} |
|
_ACEOF |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
(eval $ac_link) 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } && |
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; } && |
|
{ ac_try='test -s conftest$ac_exeext' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; }; then |
|
ac_cv_search_luaopen_math="none required" |
|
else |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
fi |
|
rm -f conftest.err conftest.$ac_objext \ |
|
conftest$ac_exeext conftest.$ac_ext |
|
if test "$ac_cv_search_luaopen_math" = no; then |
|
for ac_lib in lualib lualib50; do |
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
extern "C" |
|
#endif |
|
/* We use char because int might match the return type of a gcc2 |
|
builtin and then its argument prototype would still apply. */ |
|
char luaopen_math (); |
|
int |
|
main () |
|
{ |
|
luaopen_math (); |
|
; |
|
return 0; |
|
} |
|
_ACEOF |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
(eval $ac_link) 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } && |
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; } && |
|
{ ac_try='test -s conftest$ac_exeext' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; }; then |
|
ac_cv_search_luaopen_math="-l$ac_lib" |
|
break |
|
else |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
fi |
|
rm -f conftest.err conftest.$ac_objext \ |
|
conftest$ac_exeext conftest.$ac_ext |
|
done |
|
fi |
|
LIBS=$ac_func_search_save_LIBS |
|
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_search_luaopen_math" >&5 |
|
echo "${ECHO_T}$ac_cv_search_luaopen_math" >&6 |
|
if test "$ac_cv_search_luaopen_math" != no; then |
|
test "$ac_cv_search_luaopen_math" = "none required" || LIBS="$ac_cv_search_luaopen_math $LIBS" |
|
|
|
else |
|
{ { echo "$as_me:$LINENO: error: liblualib50 or liblualib required" >&5 |
|
echo "$as_me: error: liblualib50 or liblualib required" >&2;} |
|
{ (exit 1); exit 1; }; } |
|
fi |
|
|
|
|
|
ac_ext=c |
|
ac_cpp='$CPP $CPPFLAGS' |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
|
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
|
# On Suns, sometimes $CPP names a directory. |
|
if test -n "$CPP" && test -d "$CPP"; then |
|
CPP= |
|
fi |
|
if test -z "$CPP"; then |
|
if test "${ac_cv_prog_CPP+set}" = set; then |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
else |
|
# Double quotes because CPP needs to be expanded |
|
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
|
do |
|
ac_preproc_ok=false |
|
for ac_c_preproc_warn_flag in '' yes |
|
do |
|
# Use a header file that comes with gcc, so configuring glibc |
|
# with a fresh cross-compiler works. |
|
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
# <limits.h> exists even on freestanding compilers. |
|
# On the NeXT, cc -E runs the code through the compiler's parser, |
|
# not just through cpp. "Syntax error" is here to catch this case. |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
#ifdef __STDC__ |
|
# include <limits.h> |
|
#else |
|
# include <assert.h> |
|
#endif |
|
Syntax error |
|
_ACEOF |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } >/dev/null; then |
|
if test -s conftest.err; then |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
else |
|
ac_cpp_err= |
|
fi |
|
else |
|
ac_cpp_err=yes |
|
fi |
|
if test -z "$ac_cpp_err"; then |
|
: |
|
else |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
# Broken: fails on valid input. |
|
continue |
|
fi |
|
rm -f conftest.err conftest.$ac_ext |
|
|
|
# OK, works on sane cases. Now check whether non-existent headers |
|
# can be detected and how. |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
#include <ac_nonexistent.h> |
|
_ACEOF |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } >/dev/null; then |
|
if test -s conftest.err; then |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
else |
|
ac_cpp_err= |
|
fi |
|
else |
|
ac_cpp_err=yes |
|
fi |
|
if test -z "$ac_cpp_err"; then |
|
# Broken: success on invalid input. |
|
continue |
|
else |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
# Passes both tests. |
|
ac_preproc_ok=: |
|
break |
|
fi |
|
rm -f conftest.err conftest.$ac_ext |
|
|
|
done |
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
rm -f conftest.err conftest.$ac_ext |
|
if $ac_preproc_ok; then |
|
break |
|
fi |
|
|
|
done |
|
ac_cv_prog_CPP=$CPP |
|
|
|
fi |
|
CPP=$ac_cv_prog_CPP |
|
else |
|
ac_cv_prog_CPP=$CPP |
|
fi |
|
echo "$as_me:$LINENO: result: $CPP" >&5 |
|
echo "${ECHO_T}$CPP" >&6 |
|
ac_preproc_ok=false |
|
for ac_c_preproc_warn_flag in '' yes |
|
do |
|
# Use a header file that comes with gcc, so configuring glibc |
|
# with a fresh cross-compiler works. |
|
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
# <limits.h> exists even on freestanding compilers. |
|
# On the NeXT, cc -E runs the code through the compiler's parser, |
|
# not just through cpp. "Syntax error" is here to catch this case. |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
#ifdef __STDC__ |
|
# include <limits.h> |
|
#else |
|
# include <assert.h> |
|
#endif |
|
Syntax error |
|
_ACEOF |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } >/dev/null; then |
|
if test -s conftest.err; then |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
else |
|
ac_cpp_err= |
|
fi |
|
else |
|
ac_cpp_err=yes |
|
fi |
|
if test -z "$ac_cpp_err"; then |
|
: |
|
else |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
# Broken: fails on valid input. |
|
continue |
|
fi |
|
rm -f conftest.err conftest.$ac_ext |
|
|
|
# OK, works on sane cases. Now check whether non-existent headers |
|
# can be detected and how. |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
#include <ac_nonexistent.h> |
|
_ACEOF |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } >/dev/null; then |
|
if test -s conftest.err; then |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
else |
|
ac_cpp_err= |
|
fi |
|
else |
|
ac_cpp_err=yes |
|
fi |
|
if test -z "$ac_cpp_err"; then |
|
# Broken: success on invalid input. |
|
continue |
|
else |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
# Passes both tests. |
|
ac_preproc_ok=: |
|
break |
|
fi |
|
rm -f conftest.err conftest.$ac_ext |
|
|
|
done |
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
rm -f conftest.err conftest.$ac_ext |
|
if $ac_preproc_ok; then |
|
: |
|
else |
|
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
|
See \`config.log' for more details." >&5 |
|
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
|
See \`config.log' for more details." >&2;} |
|
{ (exit 1); exit 1; }; } |
|
fi |
|
|
|
ac_ext=c |
|
ac_cpp='$CPP $CPPFLAGS' |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
|
|
|
echo "$as_me:$LINENO: checking for egrep" >&5 |
|
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
|
if test "${ac_cv_prog_egrep+set}" = set; then |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
else |
|
if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
|
then ac_cv_prog_egrep='grep -E' |
|
else ac_cv_prog_egrep='egrep' |
|
fi |
|
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
|
echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
|
EGREP=$ac_cv_prog_egrep |
|
|
|
|
|
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
|
if test "${ac_cv_header_stdc+set}" = set; then |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
else |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
#include <stdlib.h> |
|
#include <stdarg.h> |
|
#include <string.h> |
|
#include <float.h> |
|
|
|
int |
|
main () |
|
{ |
|
|
|
; |
|
return 0; |
|
} |
|
_ACEOF |
|
rm -f conftest.$ac_objext |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
(eval $ac_compile) 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } && |
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; } && |
|
{ ac_try='test -s conftest.$ac_objext' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; }; then |
|
ac_cv_header_stdc=yes |
|
else |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
ac_cv_header_stdc=no |
|
fi |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
|
if test $ac_cv_header_stdc = yes; then |
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
#include <string.h> |
|
|
|
_ACEOF |
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
$EGREP "memchr" >/dev/null 2>&1; then |
|
: |
|
else |
|
ac_cv_header_stdc=no |
|
fi |
|
rm -f conftest* |
|
|
|
fi |
|
|
|
if test $ac_cv_header_stdc = yes; then |
|
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
#include <stdlib.h> |
|
|
|
_ACEOF |
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
$EGREP "free" >/dev/null 2>&1; then |
|
: |
|
else |
|
ac_cv_header_stdc=no |
|
fi |
|
rm -f conftest* |
|
|
|
fi |
|
|
|
if test $ac_cv_header_stdc = yes; then |
|
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
if test "$cross_compiling" = yes; then |
|
: |
|
else |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
#include <ctype.h> |
|
#if ((' ' & 0x0FF) == 0x020) |
|
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
#else |
|
# define ISLOWER(c) \ |
|
(('a' <= (c) && (c) <= 'i') \ |
|
|| ('j' <= (c) && (c) <= 'r') \ |
|
|| ('s' <= (c) && (c) <= 'z')) |
|
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
#endif |
|
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
int |
|
main () |
|
{ |
|
int i; |
|
for (i = 0; i < 256; i++) |
|
if (XOR (islower (i), ISLOWER (i)) |
|
|| toupper (i) != TOUPPER (i)) |
|
exit(2); |
|
exit (0); |
|
} |
|
_ACEOF |
|
rm -f conftest$ac_exeext |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
(eval $ac_link) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; }; then |
|
: |
|
else |
|
echo "$as_me: program exited with status $ac_status" >&5 |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
( exit $ac_status ) |
|
ac_cv_header_stdc=no |
|
fi |
|
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
fi |
|
fi |
|
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
|
if test $ac_cv_header_stdc = yes; then |
|
|
|
cat >>confdefs.h <<\_ACEOF |
|
#define STDC_HEADERS 1 |
|
_ACEOF |
|
|
|
fi |
|
|
|
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
inttypes.h stdint.h unistd.h |
|
do |
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
else |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
$ac_includes_default |
|
|
|
#include <$ac_header> |
|
_ACEOF |
|
rm -f conftest.$ac_objext |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
(eval $ac_compile) 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } && |
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; } && |
|
{ ac_try='test -s conftest.$ac_objext' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; }; then |
|
eval "$as_ac_Header=yes" |
|
else |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
eval "$as_ac_Header=no" |
|
fi |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
fi |
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
cat >>confdefs.h <<_ACEOF |
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
_ACEOF |
|
|
|
fi |
|
|
|
done |
|
|
|
|
|
if test "${ac_cv_header_lua50_lua_h+set}" = set; then |
|
echo "$as_me:$LINENO: checking for lua50/lua.h" >&5 |
|
echo $ECHO_N "checking for lua50/lua.h... $ECHO_C" >&6 |
|
if test "${ac_cv_header_lua50_lua_h+set}" = set; then |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_header_lua50_lua_h" >&5 |
|
echo "${ECHO_T}$ac_cv_header_lua50_lua_h" >&6 |
|
else |
|
# Is the header compilable? |
|
echo "$as_me:$LINENO: checking lua50/lua.h usability" >&5 |
|
echo $ECHO_N "checking lua50/lua.h usability... $ECHO_C" >&6 |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
$ac_includes_default |
|
#include <lua50/lua.h> |
|
_ACEOF |
|
rm -f conftest.$ac_objext |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
(eval $ac_compile) 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } && |
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; } && |
|
{ ac_try='test -s conftest.$ac_objext' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; }; then |
|
ac_header_compiler=yes |
|
else |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
ac_header_compiler=no |
|
fi |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
|
# Is the header present? |
|
echo "$as_me:$LINENO: checking lua50/lua.h presence" >&5 |
|
echo $ECHO_N "checking lua50/lua.h presence... $ECHO_C" >&6 |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
#include <lua50/lua.h> |
|
_ACEOF |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } >/dev/null; then |
|
if test -s conftest.err; then |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
else |
|
ac_cpp_err= |
|
fi |
|
else |
|
ac_cpp_err=yes |
|
fi |
|
if test -z "$ac_cpp_err"; then |
|
ac_header_preproc=yes |
|
else |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
ac_header_preproc=no |
|
fi |
|
rm -f conftest.err conftest.$ac_ext |
|
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
|
# So? What about this header? |
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
yes:no: ) |
|
{ echo "$as_me:$LINENO: WARNING: lua50/lua.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
echo "$as_me: WARNING: lua50/lua.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua50/lua.h: proceeding with the compiler's result" >&5 |
|
echo "$as_me: WARNING: lua50/lua.h: proceeding with the compiler's result" >&2;} |
|
ac_header_preproc=yes |
|
;; |
|
no:yes:* ) |
|
{ echo "$as_me:$LINENO: WARNING: lua50/lua.h: present but cannot be compiled" >&5 |
|
echo "$as_me: WARNING: lua50/lua.h: present but cannot be compiled" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua50/lua.h: check for missing prerequisite headers?" >&5 |
|
echo "$as_me: WARNING: lua50/lua.h: check for missing prerequisite headers?" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua50/lua.h: see the Autoconf documentation" >&5 |
|
echo "$as_me: WARNING: lua50/lua.h: see the Autoconf documentation" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua50/lua.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
echo "$as_me: WARNING: lua50/lua.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua50/lua.h: proceeding with the preprocessor's result" >&5 |
|
echo "$as_me: WARNING: lua50/lua.h: proceeding with the preprocessor's result" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua50/lua.h: in the future, the compiler will take precedence" >&5 |
|
echo "$as_me: WARNING: lua50/lua.h: in the future, the compiler will take precedence" >&2;} |
|
( |
|
cat <<\_ASBOX |
|
## ------------------------------------------ ## |
|
## Report this to the AC_PACKAGE_NAME lists. ## |
|
## ------------------------------------------ ## |
|
_ASBOX |
|
) | |
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
;; |
|
esac |
|
echo "$as_me:$LINENO: checking for lua50/lua.h" >&5 |
|
echo $ECHO_N "checking for lua50/lua.h... $ECHO_C" >&6 |
|
if test "${ac_cv_header_lua50_lua_h+set}" = set; then |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
else |
|
ac_cv_header_lua50_lua_h=$ac_header_preproc |
|
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_header_lua50_lua_h" >&5 |
|
echo "${ECHO_T}$ac_cv_header_lua50_lua_h" >&6 |
|
|
|
fi |
|
if test $ac_cv_header_lua50_lua_h = yes; then |
|
cat >>confdefs.h <<\_ACEOF |
|
#define HAVE_LUA50_LUA_H 1 |
|
_ACEOF |
|
|
|
fi |
|
|
|
|
|
if test "${ac_cv_header_lua50_lauxlib_h+set}" = set; then |
|
echo "$as_me:$LINENO: checking for lua50/lauxlib.h" >&5 |
|
echo $ECHO_N "checking for lua50/lauxlib.h... $ECHO_C" >&6 |
|
if test "${ac_cv_header_lua50_lauxlib_h+set}" = set; then |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_header_lua50_lauxlib_h" >&5 |
|
echo "${ECHO_T}$ac_cv_header_lua50_lauxlib_h" >&6 |
|
else |
|
# Is the header compilable? |
|
echo "$as_me:$LINENO: checking lua50/lauxlib.h usability" >&5 |
|
echo $ECHO_N "checking lua50/lauxlib.h usability... $ECHO_C" >&6 |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
$ac_includes_default |
|
#include <lua50/lauxlib.h> |
|
_ACEOF |
|
rm -f conftest.$ac_objext |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
(eval $ac_compile) 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } && |
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; } && |
|
{ ac_try='test -s conftest.$ac_objext' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; }; then |
|
ac_header_compiler=yes |
|
else |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
ac_header_compiler=no |
|
fi |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
|
# Is the header present? |
|
echo "$as_me:$LINENO: checking lua50/lauxlib.h presence" >&5 |
|
echo $ECHO_N "checking lua50/lauxlib.h presence... $ECHO_C" >&6 |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
#include <lua50/lauxlib.h> |
|
_ACEOF |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } >/dev/null; then |
|
if test -s conftest.err; then |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
else |
|
ac_cpp_err= |
|
fi |
|
else |
|
ac_cpp_err=yes |
|
fi |
|
if test -z "$ac_cpp_err"; then |
|
ac_header_preproc=yes |
|
else |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
ac_header_preproc=no |
|
fi |
|
rm -f conftest.err conftest.$ac_ext |
|
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
|
# So? What about this header? |
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
yes:no: ) |
|
{ echo "$as_me:$LINENO: WARNING: lua50/lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
echo "$as_me: WARNING: lua50/lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua50/lauxlib.h: proceeding with the compiler's result" >&5 |
|
echo "$as_me: WARNING: lua50/lauxlib.h: proceeding with the compiler's result" >&2;} |
|
ac_header_preproc=yes |
|
;; |
|
no:yes:* ) |
|
{ echo "$as_me:$LINENO: WARNING: lua50/lauxlib.h: present but cannot be compiled" >&5 |
|
echo "$as_me: WARNING: lua50/lauxlib.h: present but cannot be compiled" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua50/lauxlib.h: check for missing prerequisite headers?" >&5 |
|
echo "$as_me: WARNING: lua50/lauxlib.h: check for missing prerequisite headers?" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua50/lauxlib.h: see the Autoconf documentation" >&5 |
|
echo "$as_me: WARNING: lua50/lauxlib.h: see the Autoconf documentation" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua50/lauxlib.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
echo "$as_me: WARNING: lua50/lauxlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua50/lauxlib.h: proceeding with the preprocessor's result" >&5 |
|
echo "$as_me: WARNING: lua50/lauxlib.h: proceeding with the preprocessor's result" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua50/lauxlib.h: in the future, the compiler will take precedence" >&5 |
|
echo "$as_me: WARNING: lua50/lauxlib.h: in the future, the compiler will take precedence" >&2;} |
|
( |
|
cat <<\_ASBOX |
|
## ------------------------------------------ ## |
|
## Report this to the AC_PACKAGE_NAME lists. ## |
|
## ------------------------------------------ ## |
|
_ASBOX |
|
) | |
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
;; |
|
esac |
|
echo "$as_me:$LINENO: checking for lua50/lauxlib.h" >&5 |
|
echo $ECHO_N "checking for lua50/lauxlib.h... $ECHO_C" >&6 |
|
if test "${ac_cv_header_lua50_lauxlib_h+set}" = set; then |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
else |
|
ac_cv_header_lua50_lauxlib_h=$ac_header_preproc |
|
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_header_lua50_lauxlib_h" >&5 |
|
echo "${ECHO_T}$ac_cv_header_lua50_lauxlib_h" >&6 |
|
|
|
fi |
|
if test $ac_cv_header_lua50_lauxlib_h = yes; then |
|
cat >>confdefs.h <<\_ACEOF |
|
#define HAVE_LUA50_LAUXLIB_H 1 |
|
_ACEOF |
|
|
|
fi |
|
|
|
|
|
if test "${ac_cv_header_lua50_lualib_h+set}" = set; then |
|
echo "$as_me:$LINENO: checking for lua50/lualib.h" >&5 |
|
echo $ECHO_N "checking for lua50/lualib.h... $ECHO_C" >&6 |
|
if test "${ac_cv_header_lua50_lualib_h+set}" = set; then |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_header_lua50_lualib_h" >&5 |
|
echo "${ECHO_T}$ac_cv_header_lua50_lualib_h" >&6 |
|
else |
|
# Is the header compilable? |
|
echo "$as_me:$LINENO: checking lua50/lualib.h usability" >&5 |
|
echo $ECHO_N "checking lua50/lualib.h usability... $ECHO_C" >&6 |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
$ac_includes_default |
|
#include <lua50/lualib.h> |
|
_ACEOF |
|
rm -f conftest.$ac_objext |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
(eval $ac_compile) 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } && |
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; } && |
|
{ ac_try='test -s conftest.$ac_objext' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; }; then |
|
ac_header_compiler=yes |
|
else |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
ac_header_compiler=no |
|
fi |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
|
# Is the header present? |
|
echo "$as_me:$LINENO: checking lua50/lualib.h presence" >&5 |
|
echo $ECHO_N "checking lua50/lualib.h presence... $ECHO_C" >&6 |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
#include <lua50/lualib.h> |
|
_ACEOF |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } >/dev/null; then |
|
if test -s conftest.err; then |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
else |
|
ac_cpp_err= |
|
fi |
|
else |
|
ac_cpp_err=yes |
|
fi |
|
if test -z "$ac_cpp_err"; then |
|
ac_header_preproc=yes |
|
else |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
ac_header_preproc=no |
|
fi |
|
rm -f conftest.err conftest.$ac_ext |
|
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
|
# So? What about this header? |
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
yes:no: ) |
|
{ echo "$as_me:$LINENO: WARNING: lua50/lualib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
echo "$as_me: WARNING: lua50/lualib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua50/lualib.h: proceeding with the compiler's result" >&5 |
|
echo "$as_me: WARNING: lua50/lualib.h: proceeding with the compiler's result" >&2;} |
|
ac_header_preproc=yes |
|
;; |
|
no:yes:* ) |
|
{ echo "$as_me:$LINENO: WARNING: lua50/lualib.h: present but cannot be compiled" >&5 |
|
echo "$as_me: WARNING: lua50/lualib.h: present but cannot be compiled" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua50/lualib.h: check for missing prerequisite headers?" >&5 |
|
echo "$as_me: WARNING: lua50/lualib.h: check for missing prerequisite headers?" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua50/lualib.h: see the Autoconf documentation" >&5 |
|
echo "$as_me: WARNING: lua50/lualib.h: see the Autoconf documentation" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua50/lualib.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
echo "$as_me: WARNING: lua50/lualib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua50/lualib.h: proceeding with the preprocessor's result" >&5 |
|
echo "$as_me: WARNING: lua50/lualib.h: proceeding with the preprocessor's result" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua50/lualib.h: in the future, the compiler will take precedence" >&5 |
|
echo "$as_me: WARNING: lua50/lualib.h: in the future, the compiler will take precedence" >&2;} |
|
( |
|
cat <<\_ASBOX |
|
## ------------------------------------------ ## |
|
## Report this to the AC_PACKAGE_NAME lists. ## |
|
## ------------------------------------------ ## |
|
_ASBOX |
|
) | |
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
;; |
|
esac |
|
echo "$as_me:$LINENO: checking for lua50/lualib.h" >&5 |
|
echo $ECHO_N "checking for lua50/lualib.h... $ECHO_C" >&6 |
|
if test "${ac_cv_header_lua50_lualib_h+set}" = set; then |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
else |
|
ac_cv_header_lua50_lualib_h=$ac_header_preproc |
|
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_header_lua50_lualib_h" >&5 |
|
echo "${ECHO_T}$ac_cv_header_lua50_lualib_h" >&6 |
|
|
|
fi |
|
if test $ac_cv_header_lua50_lualib_h = yes; then |
|
cat >>confdefs.h <<\_ACEOF |
|
#define HAVE_LUA50_LUALIB_H 1 |
|
_ACEOF |
|
|
|
fi |
|
|
|
|
|
|
|
if test "${ac_cv_header_lua_lua_h+set}" = set; then |
|
echo "$as_me:$LINENO: checking for lua/lua.h" >&5 |
|
echo $ECHO_N "checking for lua/lua.h... $ECHO_C" >&6 |
|
if test "${ac_cv_header_lua_lua_h+set}" = set; then |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_header_lua_lua_h" >&5 |
|
echo "${ECHO_T}$ac_cv_header_lua_lua_h" >&6 |
|
else |
|
# Is the header compilable? |
|
echo "$as_me:$LINENO: checking lua/lua.h usability" >&5 |
|
echo $ECHO_N "checking lua/lua.h usability... $ECHO_C" >&6 |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
$ac_includes_default |
|
#include <lua/lua.h> |
|
_ACEOF |
|
rm -f conftest.$ac_objext |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
(eval $ac_compile) 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } && |
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; } && |
|
{ ac_try='test -s conftest.$ac_objext' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; }; then |
|
ac_header_compiler=yes |
|
else |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
ac_header_compiler=no |
|
fi |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
|
# Is the header present? |
|
echo "$as_me:$LINENO: checking lua/lua.h presence" >&5 |
|
echo $ECHO_N "checking lua/lua.h presence... $ECHO_C" >&6 |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
#include <lua/lua.h> |
|
_ACEOF |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } >/dev/null; then |
|
if test -s conftest.err; then |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
else |
|
ac_cpp_err= |
|
fi |
|
else |
|
ac_cpp_err=yes |
|
fi |
|
if test -z "$ac_cpp_err"; then |
|
ac_header_preproc=yes |
|
else |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
ac_header_preproc=no |
|
fi |
|
rm -f conftest.err conftest.$ac_ext |
|
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
|
# So? What about this header? |
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
yes:no: ) |
|
{ echo "$as_me:$LINENO: WARNING: lua/lua.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
echo "$as_me: WARNING: lua/lua.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua/lua.h: proceeding with the compiler's result" >&5 |
|
echo "$as_me: WARNING: lua/lua.h: proceeding with the compiler's result" >&2;} |
|
ac_header_preproc=yes |
|
;; |
|
no:yes:* ) |
|
{ echo "$as_me:$LINENO: WARNING: lua/lua.h: present but cannot be compiled" >&5 |
|
echo "$as_me: WARNING: lua/lua.h: present but cannot be compiled" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua/lua.h: check for missing prerequisite headers?" >&5 |
|
echo "$as_me: WARNING: lua/lua.h: check for missing prerequisite headers?" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua/lua.h: see the Autoconf documentation" >&5 |
|
echo "$as_me: WARNING: lua/lua.h: see the Autoconf documentation" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua/lua.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
echo "$as_me: WARNING: lua/lua.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua/lua.h: proceeding with the preprocessor's result" >&5 |
|
echo "$as_me: WARNING: lua/lua.h: proceeding with the preprocessor's result" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua/lua.h: in the future, the compiler will take precedence" >&5 |
|
echo "$as_me: WARNING: lua/lua.h: in the future, the compiler will take precedence" >&2;} |
|
( |
|
cat <<\_ASBOX |
|
## ------------------------------------------ ## |
|
## Report this to the AC_PACKAGE_NAME lists. ## |
|
## ------------------------------------------ ## |
|
_ASBOX |
|
) | |
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
;; |
|
esac |
|
echo "$as_me:$LINENO: checking for lua/lua.h" >&5 |
|
echo $ECHO_N "checking for lua/lua.h... $ECHO_C" >&6 |
|
if test "${ac_cv_header_lua_lua_h+set}" = set; then |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
else |
|
ac_cv_header_lua_lua_h=$ac_header_preproc |
|
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_header_lua_lua_h" >&5 |
|
echo "${ECHO_T}$ac_cv_header_lua_lua_h" >&6 |
|
|
|
fi |
|
if test $ac_cv_header_lua_lua_h = yes; then |
|
cat >>confdefs.h <<\_ACEOF |
|
#define HAVE_LUA_LUA_H 1 |
|
_ACEOF |
|
|
|
fi |
|
|
|
|
|
if test "${ac_cv_header_lua_lauxlib_h+set}" = set; then |
|
echo "$as_me:$LINENO: checking for lua/lauxlib.h" >&5 |
|
echo $ECHO_N "checking for lua/lauxlib.h... $ECHO_C" >&6 |
|
if test "${ac_cv_header_lua_lauxlib_h+set}" = set; then |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_header_lua_lauxlib_h" >&5 |
|
echo "${ECHO_T}$ac_cv_header_lua_lauxlib_h" >&6 |
|
else |
|
# Is the header compilable? |
|
echo "$as_me:$LINENO: checking lua/lauxlib.h usability" >&5 |
|
echo $ECHO_N "checking lua/lauxlib.h usability... $ECHO_C" >&6 |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
$ac_includes_default |
|
#include <lua/lauxlib.h> |
|
_ACEOF |
|
rm -f conftest.$ac_objext |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
(eval $ac_compile) 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } && |
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; } && |
|
{ ac_try='test -s conftest.$ac_objext' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; }; then |
|
ac_header_compiler=yes |
|
else |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
ac_header_compiler=no |
|
fi |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
|
# Is the header present? |
|
echo "$as_me:$LINENO: checking lua/lauxlib.h presence" >&5 |
|
echo $ECHO_N "checking lua/lauxlib.h presence... $ECHO_C" >&6 |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
#include <lua/lauxlib.h> |
|
_ACEOF |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } >/dev/null; then |
|
if test -s conftest.err; then |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
else |
|
ac_cpp_err= |
|
fi |
|
else |
|
ac_cpp_err=yes |
|
fi |
|
if test -z "$ac_cpp_err"; then |
|
ac_header_preproc=yes |
|
else |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
ac_header_preproc=no |
|
fi |
|
rm -f conftest.err conftest.$ac_ext |
|
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
|
# So? What about this header? |
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
yes:no: ) |
|
{ echo "$as_me:$LINENO: WARNING: lua/lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
echo "$as_me: WARNING: lua/lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua/lauxlib.h: proceeding with the compiler's result" >&5 |
|
echo "$as_me: WARNING: lua/lauxlib.h: proceeding with the compiler's result" >&2;} |
|
ac_header_preproc=yes |
|
;; |
|
no:yes:* ) |
|
{ echo "$as_me:$LINENO: WARNING: lua/lauxlib.h: present but cannot be compiled" >&5 |
|
echo "$as_me: WARNING: lua/lauxlib.h: present but cannot be compiled" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua/lauxlib.h: check for missing prerequisite headers?" >&5 |
|
echo "$as_me: WARNING: lua/lauxlib.h: check for missing prerequisite headers?" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua/lauxlib.h: see the Autoconf documentation" >&5 |
|
echo "$as_me: WARNING: lua/lauxlib.h: see the Autoconf documentation" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua/lauxlib.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
echo "$as_me: WARNING: lua/lauxlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua/lauxlib.h: proceeding with the preprocessor's result" >&5 |
|
echo "$as_me: WARNING: lua/lauxlib.h: proceeding with the preprocessor's result" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua/lauxlib.h: in the future, the compiler will take precedence" >&5 |
|
echo "$as_me: WARNING: lua/lauxlib.h: in the future, the compiler will take precedence" >&2;} |
|
( |
|
cat <<\_ASBOX |
|
## ------------------------------------------ ## |
|
## Report this to the AC_PACKAGE_NAME lists. ## |
|
## ------------------------------------------ ## |
|
_ASBOX |
|
) | |
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
;; |
|
esac |
|
echo "$as_me:$LINENO: checking for lua/lauxlib.h" >&5 |
|
echo $ECHO_N "checking for lua/lauxlib.h... $ECHO_C" >&6 |
|
if test "${ac_cv_header_lua_lauxlib_h+set}" = set; then |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
else |
|
ac_cv_header_lua_lauxlib_h=$ac_header_preproc |
|
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_header_lua_lauxlib_h" >&5 |
|
echo "${ECHO_T}$ac_cv_header_lua_lauxlib_h" >&6 |
|
|
|
fi |
|
if test $ac_cv_header_lua_lauxlib_h = yes; then |
|
cat >>confdefs.h <<\_ACEOF |
|
#define HAVE_LUA_LAUXLIB_H 1 |
|
_ACEOF |
|
|
|
fi |
|
|
|
|
|
if test "${ac_cv_header_lua_lualib_h+set}" = set; then |
|
echo "$as_me:$LINENO: checking for lua/lualib.h" >&5 |
|
echo $ECHO_N "checking for lua/lualib.h... $ECHO_C" >&6 |
|
if test "${ac_cv_header_lua_lualib_h+set}" = set; then |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_header_lua_lualib_h" >&5 |
|
echo "${ECHO_T}$ac_cv_header_lua_lualib_h" >&6 |
|
else |
|
# Is the header compilable? |
|
echo "$as_me:$LINENO: checking lua/lualib.h usability" >&5 |
|
echo $ECHO_N "checking lua/lualib.h usability... $ECHO_C" >&6 |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
$ac_includes_default |
|
#include <lua/lualib.h> |
|
_ACEOF |
|
rm -f conftest.$ac_objext |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
(eval $ac_compile) 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } && |
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; } && |
|
{ ac_try='test -s conftest.$ac_objext' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; }; then |
|
ac_header_compiler=yes |
|
else |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
ac_header_compiler=no |
|
fi |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
|
# Is the header present? |
|
echo "$as_me:$LINENO: checking lua/lualib.h presence" >&5 |
|
echo $ECHO_N "checking lua/lualib.h presence... $ECHO_C" >&6 |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
#include <lua/lualib.h> |
|
_ACEOF |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } >/dev/null; then |
|
if test -s conftest.err; then |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
else |
|
ac_cpp_err= |
|
fi |
|
else |
|
ac_cpp_err=yes |
|
fi |
|
if test -z "$ac_cpp_err"; then |
|
ac_header_preproc=yes |
|
else |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
ac_header_preproc=no |
|
fi |
|
rm -f conftest.err conftest.$ac_ext |
|
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
|
# So? What about this header? |
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
yes:no: ) |
|
{ echo "$as_me:$LINENO: WARNING: lua/lualib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
echo "$as_me: WARNING: lua/lualib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua/lualib.h: proceeding with the compiler's result" >&5 |
|
echo "$as_me: WARNING: lua/lualib.h: proceeding with the compiler's result" >&2;} |
|
ac_header_preproc=yes |
|
;; |
|
no:yes:* ) |
|
{ echo "$as_me:$LINENO: WARNING: lua/lualib.h: present but cannot be compiled" >&5 |
|
echo "$as_me: WARNING: lua/lualib.h: present but cannot be compiled" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua/lualib.h: check for missing prerequisite headers?" >&5 |
|
echo "$as_me: WARNING: lua/lualib.h: check for missing prerequisite headers?" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua/lualib.h: see the Autoconf documentation" >&5 |
|
echo "$as_me: WARNING: lua/lualib.h: see the Autoconf documentation" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua/lualib.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
echo "$as_me: WARNING: lua/lualib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua/lualib.h: proceeding with the preprocessor's result" >&5 |
|
echo "$as_me: WARNING: lua/lualib.h: proceeding with the preprocessor's result" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua/lualib.h: in the future, the compiler will take precedence" >&5 |
|
echo "$as_me: WARNING: lua/lualib.h: in the future, the compiler will take precedence" >&2;} |
|
( |
|
cat <<\_ASBOX |
|
## ------------------------------------------ ## |
|
## Report this to the AC_PACKAGE_NAME lists. ## |
|
## ------------------------------------------ ## |
|
_ASBOX |
|
) | |
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
;; |
|
esac |
|
echo "$as_me:$LINENO: checking for lua/lualib.h" >&5 |
|
echo $ECHO_N "checking for lua/lualib.h... $ECHO_C" >&6 |
|
if test "${ac_cv_header_lua_lualib_h+set}" = set; then |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
else |
|
ac_cv_header_lua_lualib_h=$ac_header_preproc |
|
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_header_lua_lualib_h" >&5 |
|
echo "${ECHO_T}$ac_cv_header_lua_lualib_h" >&6 |
|
|
|
fi |
|
if test $ac_cv_header_lua_lualib_h = yes; then |
|
cat >>confdefs.h <<\_ACEOF |
|
#define HAVE_LUA_LUALIB_H 1 |
|
_ACEOF |
|
|
|
fi |
|
|
|
|
|
|
|
if test "${ac_cv_header_lua_h+set}" = set; then |
|
echo "$as_me:$LINENO: checking for lua.h" >&5 |
|
echo $ECHO_N "checking for lua.h... $ECHO_C" >&6 |
|
if test "${ac_cv_header_lua_h+set}" = set; then |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_header_lua_h" >&5 |
|
echo "${ECHO_T}$ac_cv_header_lua_h" >&6 |
|
else |
|
# Is the header compilable? |
|
echo "$as_me:$LINENO: checking lua.h usability" >&5 |
|
echo $ECHO_N "checking lua.h usability... $ECHO_C" >&6 |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
$ac_includes_default |
|
#include <lua.h> |
|
_ACEOF |
|
rm -f conftest.$ac_objext |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
(eval $ac_compile) 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } && |
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; } && |
|
{ ac_try='test -s conftest.$ac_objext' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; }; then |
|
ac_header_compiler=yes |
|
else |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
ac_header_compiler=no |
|
fi |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
|
# Is the header present? |
|
echo "$as_me:$LINENO: checking lua.h presence" >&5 |
|
echo $ECHO_N "checking lua.h presence... $ECHO_C" >&6 |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
#include <lua.h> |
|
_ACEOF |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } >/dev/null; then |
|
if test -s conftest.err; then |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
else |
|
ac_cpp_err= |
|
fi |
|
else |
|
ac_cpp_err=yes |
|
fi |
|
if test -z "$ac_cpp_err"; then |
|
ac_header_preproc=yes |
|
else |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
ac_header_preproc=no |
|
fi |
|
rm -f conftest.err conftest.$ac_ext |
|
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
|
# So? What about this header? |
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
yes:no: ) |
|
{ echo "$as_me:$LINENO: WARNING: lua.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
echo "$as_me: WARNING: lua.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua.h: proceeding with the compiler's result" >&5 |
|
echo "$as_me: WARNING: lua.h: proceeding with the compiler's result" >&2;} |
|
ac_header_preproc=yes |
|
;; |
|
no:yes:* ) |
|
{ echo "$as_me:$LINENO: WARNING: lua.h: present but cannot be compiled" >&5 |
|
echo "$as_me: WARNING: lua.h: present but cannot be compiled" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua.h: check for missing prerequisite headers?" >&5 |
|
echo "$as_me: WARNING: lua.h: check for missing prerequisite headers?" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua.h: see the Autoconf documentation" >&5 |
|
echo "$as_me: WARNING: lua.h: see the Autoconf documentation" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
echo "$as_me: WARNING: lua.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua.h: proceeding with the preprocessor's result" >&5 |
|
echo "$as_me: WARNING: lua.h: proceeding with the preprocessor's result" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lua.h: in the future, the compiler will take precedence" >&5 |
|
echo "$as_me: WARNING: lua.h: in the future, the compiler will take precedence" >&2;} |
|
( |
|
cat <<\_ASBOX |
|
## ------------------------------------------ ## |
|
## Report this to the AC_PACKAGE_NAME lists. ## |
|
## ------------------------------------------ ## |
|
_ASBOX |
|
) | |
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
;; |
|
esac |
|
echo "$as_me:$LINENO: checking for lua.h" >&5 |
|
echo $ECHO_N "checking for lua.h... $ECHO_C" >&6 |
|
if test "${ac_cv_header_lua_h+set}" = set; then |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
else |
|
ac_cv_header_lua_h=$ac_header_preproc |
|
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_header_lua_h" >&5 |
|
echo "${ECHO_T}$ac_cv_header_lua_h" >&6 |
|
|
|
fi |
|
if test $ac_cv_header_lua_h = yes; then |
|
cat >>confdefs.h <<\_ACEOF |
|
#define HAVE_LUA_H 1 |
|
_ACEOF |
|
|
|
fi |
|
|
|
|
|
if test "${ac_cv_header_lauxlib_h+set}" = set; then |
|
echo "$as_me:$LINENO: checking for lauxlib.h" >&5 |
|
echo $ECHO_N "checking for lauxlib.h... $ECHO_C" >&6 |
|
if test "${ac_cv_header_lauxlib_h+set}" = set; then |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_header_lauxlib_h" >&5 |
|
echo "${ECHO_T}$ac_cv_header_lauxlib_h" >&6 |
|
else |
|
# Is the header compilable? |
|
echo "$as_me:$LINENO: checking lauxlib.h usability" >&5 |
|
echo $ECHO_N "checking lauxlib.h usability... $ECHO_C" >&6 |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
$ac_includes_default |
|
#include <lauxlib.h> |
|
_ACEOF |
|
rm -f conftest.$ac_objext |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
(eval $ac_compile) 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } && |
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; } && |
|
{ ac_try='test -s conftest.$ac_objext' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; }; then |
|
ac_header_compiler=yes |
|
else |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
ac_header_compiler=no |
|
fi |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
|
# Is the header present? |
|
echo "$as_me:$LINENO: checking lauxlib.h presence" >&5 |
|
echo $ECHO_N "checking lauxlib.h presence... $ECHO_C" >&6 |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
#include <lauxlib.h> |
|
_ACEOF |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } >/dev/null; then |
|
if test -s conftest.err; then |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
else |
|
ac_cpp_err= |
|
fi |
|
else |
|
ac_cpp_err=yes |
|
fi |
|
if test -z "$ac_cpp_err"; then |
|
ac_header_preproc=yes |
|
else |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
ac_header_preproc=no |
|
fi |
|
rm -f conftest.err conftest.$ac_ext |
|
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
|
# So? What about this header? |
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
yes:no: ) |
|
{ echo "$as_me:$LINENO: WARNING: lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
echo "$as_me: WARNING: lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lauxlib.h: proceeding with the compiler's result" >&5 |
|
echo "$as_me: WARNING: lauxlib.h: proceeding with the compiler's result" >&2;} |
|
ac_header_preproc=yes |
|
;; |
|
no:yes:* ) |
|
{ echo "$as_me:$LINENO: WARNING: lauxlib.h: present but cannot be compiled" >&5 |
|
echo "$as_me: WARNING: lauxlib.h: present but cannot be compiled" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lauxlib.h: check for missing prerequisite headers?" >&5 |
|
echo "$as_me: WARNING: lauxlib.h: check for missing prerequisite headers?" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lauxlib.h: see the Autoconf documentation" >&5 |
|
echo "$as_me: WARNING: lauxlib.h: see the Autoconf documentation" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lauxlib.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
echo "$as_me: WARNING: lauxlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lauxlib.h: proceeding with the preprocessor's result" >&5 |
|
echo "$as_me: WARNING: lauxlib.h: proceeding with the preprocessor's result" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lauxlib.h: in the future, the compiler will take precedence" >&5 |
|
echo "$as_me: WARNING: lauxlib.h: in the future, the compiler will take precedence" >&2;} |
|
( |
|
cat <<\_ASBOX |
|
## ------------------------------------------ ## |
|
## Report this to the AC_PACKAGE_NAME lists. ## |
|
## ------------------------------------------ ## |
|
_ASBOX |
|
) | |
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
;; |
|
esac |
|
echo "$as_me:$LINENO: checking for lauxlib.h" >&5 |
|
echo $ECHO_N "checking for lauxlib.h... $ECHO_C" >&6 |
|
if test "${ac_cv_header_lauxlib_h+set}" = set; then |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
else |
|
ac_cv_header_lauxlib_h=$ac_header_preproc |
|
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_header_lauxlib_h" >&5 |
|
echo "${ECHO_T}$ac_cv_header_lauxlib_h" >&6 |
|
|
|
fi |
|
if test $ac_cv_header_lauxlib_h = yes; then |
|
cat >>confdefs.h <<\_ACEOF |
|
#define HAVE_LAUXLIB_H 1 |
|
_ACEOF |
|
|
|
fi |
|
|
|
|
|
if test "${ac_cv_header_lualib_h+set}" = set; then |
|
echo "$as_me:$LINENO: checking for lualib.h" >&5 |
|
echo $ECHO_N "checking for lualib.h... $ECHO_C" >&6 |
|
if test "${ac_cv_header_lualib_h+set}" = set; then |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_header_lualib_h" >&5 |
|
echo "${ECHO_T}$ac_cv_header_lualib_h" >&6 |
|
else |
|
# Is the header compilable? |
|
echo "$as_me:$LINENO: checking lualib.h usability" >&5 |
|
echo $ECHO_N "checking lualib.h usability... $ECHO_C" >&6 |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
$ac_includes_default |
|
#include <lualib.h> |
|
_ACEOF |
|
rm -f conftest.$ac_objext |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
(eval $ac_compile) 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } && |
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; } && |
|
{ ac_try='test -s conftest.$ac_objext' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; }; then |
|
ac_header_compiler=yes |
|
else |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
ac_header_compiler=no |
|
fi |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
|
# Is the header present? |
|
echo "$as_me:$LINENO: checking lualib.h presence" >&5 |
|
echo $ECHO_N "checking lualib.h presence... $ECHO_C" >&6 |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
#include <lualib.h> |
|
_ACEOF |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } >/dev/null; then |
|
if test -s conftest.err; then |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
else |
|
ac_cpp_err= |
|
fi |
|
else |
|
ac_cpp_err=yes |
|
fi |
|
if test -z "$ac_cpp_err"; then |
|
ac_header_preproc=yes |
|
else |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
ac_header_preproc=no |
|
fi |
|
rm -f conftest.err conftest.$ac_ext |
|
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
|
# So? What about this header? |
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
yes:no: ) |
|
{ echo "$as_me:$LINENO: WARNING: lualib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
echo "$as_me: WARNING: lualib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lualib.h: proceeding with the compiler's result" >&5 |
|
echo "$as_me: WARNING: lualib.h: proceeding with the compiler's result" >&2;} |
|
ac_header_preproc=yes |
|
;; |
|
no:yes:* ) |
|
{ echo "$as_me:$LINENO: WARNING: lualib.h: present but cannot be compiled" >&5 |
|
echo "$as_me: WARNING: lualib.h: present but cannot be compiled" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lualib.h: check for missing prerequisite headers?" >&5 |
|
echo "$as_me: WARNING: lualib.h: check for missing prerequisite headers?" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lualib.h: see the Autoconf documentation" >&5 |
|
echo "$as_me: WARNING: lualib.h: see the Autoconf documentation" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lualib.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
echo "$as_me: WARNING: lualib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lualib.h: proceeding with the preprocessor's result" >&5 |
|
echo "$as_me: WARNING: lualib.h: proceeding with the preprocessor's result" >&2;} |
|
{ echo "$as_me:$LINENO: WARNING: lualib.h: in the future, the compiler will take precedence" >&5 |
|
echo "$as_me: WARNING: lualib.h: in the future, the compiler will take precedence" >&2;} |
|
( |
|
cat <<\_ASBOX |
|
## ------------------------------------------ ## |
|
## Report this to the AC_PACKAGE_NAME lists. ## |
|
## ------------------------------------------ ## |
|
_ASBOX |
|
) | |
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
;; |
|
esac |
|
echo "$as_me:$LINENO: checking for lualib.h" >&5 |
|
echo $ECHO_N "checking for lualib.h... $ECHO_C" >&6 |
|
if test "${ac_cv_header_lualib_h+set}" = set; then |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
else |
|
ac_cv_header_lualib_h=$ac_header_preproc |
|
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_header_lualib_h" >&5 |
|
echo "${ECHO_T}$ac_cv_header_lualib_h" >&6 |
|
|
|
fi |
|
if test $ac_cv_header_lualib_h = yes; then |
|
cat >>confdefs.h <<\_ACEOF |
|
#define HAVE_LUALIB_H 1 |
|
_ACEOF |
|
|
|
fi |
|
|
|
|
|
|
|
echo "$as_me:$LINENO: checking for library containing dJointAttach" >&5 |
|
echo $ECHO_N "checking for library containing dJointAttach... $ECHO_C" >&6 |
|
if test "${ac_cv_search_dJointAttach+set}" = set; then |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
else |
|
ac_func_search_save_LIBS=$LIBS |
|
ac_cv_search_dJointAttach=no |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
extern "C" |
|
#endif |
|
/* We use char because int might match the return type of a gcc2 |
|
builtin and then its argument prototype would still apply. */ |
|
char dJointAttach (); |
|
int |
|
main () |
|
{ |
|
dJointAttach (); |
|
; |
|
return 0; |
|
} |
|
_ACEOF |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
(eval $ac_link) 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } && |
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; } && |
|
{ ac_try='test -s conftest$ac_exeext' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; }; then |
|
ac_cv_search_dJointAttach="none required" |
|
else |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
fi |
|
rm -f conftest.err conftest.$ac_objext \ |
|
conftest$ac_exeext conftest.$ac_ext |
|
if test "$ac_cv_search_dJointAttach" = no; then |
|
for ac_lib in ode ode0; do |
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
extern "C" |
|
#endif |
|
/* We use char because int might match the return type of a gcc2 |
|
builtin and then its argument prototype would still apply. */ |
|
char dJointAttach (); |
|
int |
|
main () |
|
{ |
|
dJointAttach (); |
|
; |
|
return 0; |
|
} |
|
_ACEOF |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
(eval $ac_link) 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } && |
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; } && |
|
{ ac_try='test -s conftest$ac_exeext' |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
(eval $ac_try) 2>&5 |
|
ac_status=$? |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; }; then |
|
ac_cv_search_dJointAttach="-l$ac_lib" |
|
break |
|
else |
|
echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
fi |
|
rm -f conftest.err conftest.$ac_objext \ |
|
conftest$ac_exeext conftest.$ac_ext |
|
done |
|
fi |
|
LIBS=$ac_func_search_save_LIBS |
|
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_search_dJointAttach" >&5 |
|
echo "${ECHO_T}$ac_cv_search_dJointAttach" >&6 |
|
if test "$ac_cv_search_dJointAttach" != no; then |
|
test "$ac_cv_search_dJointAttach" = "none required" || LIBS="$ac_cv_search_dJointAttach $LIBS" |
|
|
|
else |
|
{ { echo "$as_me:$LINENO: error: libode or libode0 required" >&5 |
|
echo "$as_me: error: libode or libode0 required" >&2;} |
|
{ (exit 1); exit 1; }; } |
|
fi |
|
|
|
|
|
ac_config_files="$ac_config_files Makefile bin/Makefile" | ac_config_files="$ac_config_files Makefile bin/Makefile" |
cat >confcache <<\_ACEOF | cat >confcache <<\_ACEOF |
# This file is a shell script that caches the results of configure | # This file is a shell script that caches the results of configure |
|
|
s,@CXXFLAGS@,$CXXFLAGS,;t t | s,@CXXFLAGS@,$CXXFLAGS,;t t |
s,@ac_ct_CXX@,$ac_ct_CXX,;t t | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
s,@CXXDEPMODE@,$CXXDEPMODE,;t t | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
s,@CPP@,$CPP,;t t |
|
s,@EGREP@,$EGREP,;t t |
|
s,@LIBOBJS@,$LIBOBJS,;t t | s,@LIBOBJS@,$LIBOBJS,;t t |
s,@LTLIBOBJS@,$LTLIBOBJS,;t t | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
CEOF | CEOF |