mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-14 23:47:11 +03:00
Remove C++ compiler dependency brought in from an overzelous autoscan copy/paste (MODSEC-84).
This commit is contained in:
894
apache2/configure
vendored
894
apache2/configure
vendored
@@ -691,16 +691,13 @@ INSTALL_DATA
|
|||||||
INSTALL_SCRIPT
|
INSTALL_SCRIPT
|
||||||
INSTALL_PROGRAM
|
INSTALL_PROGRAM
|
||||||
CPP
|
CPP
|
||||||
ac_ct_CC
|
|
||||||
CFLAGS
|
|
||||||
CC
|
|
||||||
OBJEXT
|
OBJEXT
|
||||||
EXEEXT
|
EXEEXT
|
||||||
ac_ct_CXX
|
ac_ct_CC
|
||||||
CPPFLAGS
|
CPPFLAGS
|
||||||
LDFLAGS
|
LDFLAGS
|
||||||
CXXFLAGS
|
CFLAGS
|
||||||
CXX
|
CC
|
||||||
AWK
|
AWK
|
||||||
target_alias
|
target_alias
|
||||||
host_alias
|
host_alias
|
||||||
@@ -761,14 +758,11 @@ with_curl
|
|||||||
ac_precious_vars='build_alias
|
ac_precious_vars='build_alias
|
||||||
host_alias
|
host_alias
|
||||||
target_alias
|
target_alias
|
||||||
CXX
|
CC
|
||||||
CXXFLAGS
|
CFLAGS
|
||||||
LDFLAGS
|
LDFLAGS
|
||||||
LIBS
|
LIBS
|
||||||
CPPFLAGS
|
CPPFLAGS
|
||||||
CCC
|
|
||||||
CC
|
|
||||||
CFLAGS
|
|
||||||
CPP'
|
CPP'
|
||||||
|
|
||||||
|
|
||||||
@@ -1412,15 +1406,13 @@ Optional Packages:
|
|||||||
--with-curl=PATH Path to curl prefix or config script
|
--with-curl=PATH Path to curl prefix or config script
|
||||||
|
|
||||||
Some influential environment variables:
|
Some influential environment variables:
|
||||||
CXX C++ compiler command
|
CC C compiler command
|
||||||
CXXFLAGS C++ compiler flags
|
CFLAGS C compiler flags
|
||||||
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
||||||
nonstandard directory <lib dir>
|
nonstandard directory <lib dir>
|
||||||
LIBS libraries to pass to the linker, e.g. -l<library>
|
LIBS libraries to pass to the linker, e.g. -l<library>
|
||||||
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
|
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
|
||||||
you have headers in a nonstandard directory <include dir>
|
you have headers in a nonstandard directory <include dir>
|
||||||
CC C compiler command
|
|
||||||
CFLAGS C compiler flags
|
|
||||||
CPP C preprocessor
|
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
|
||||||
@@ -1940,628 +1932,6 @@ fi
|
|||||||
test -n "$AWK" && break
|
test -n "$AWK" && break
|
||||||
done
|
done
|
||||||
|
|
||||||
ac_ext=cpp
|
|
||||||
ac_cpp='$CXXCPP $CPPFLAGS'
|
|
||||||
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
||||||
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
||||||
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|
||||||
if test -z "$CXX"; then
|
|
||||||
if test -n "$CCC"; then
|
|
||||||
CXX=$CCC
|
|
||||||
else
|
|
||||||
if test -n "$ac_tool_prefix"; then
|
|
||||||
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
|
||||||
do
|
|
||||||
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
||||||
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
|
||||||
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
||||||
$as_echo_n "checking for $ac_word... " >&6; }
|
|
||||||
if test "${ac_cv_prog_CXX+set}" = set; then
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
if test -n "$CXX"; then
|
|
||||||
ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
|
||||||
else
|
|
||||||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
||||||
for as_dir in $PATH
|
|
||||||
do
|
|
||||||
IFS=$as_save_IFS
|
|
||||||
test -z "$as_dir" && as_dir=.
|
|
||||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
||||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
||||||
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
|
||||||
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
||||||
break 2
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
done
|
|
||||||
IFS=$as_save_IFS
|
|
||||||
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
CXX=$ac_cv_prog_CXX
|
|
||||||
if test -n "$CXX"; then
|
|
||||||
{ $as_echo "$as_me:$LINENO: result: $CXX" >&5
|
|
||||||
$as_echo "$CXX" >&6; }
|
|
||||||
else
|
|
||||||
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
|
||||||
$as_echo "no" >&6; }
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
test -n "$CXX" && break
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
if test -z "$CXX"; then
|
|
||||||
ac_ct_CXX=$CXX
|
|
||||||
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
|
||||||
do
|
|
||||||
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
||||||
set dummy $ac_prog; ac_word=$2
|
|
||||||
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
||||||
$as_echo_n "checking for $ac_word... " >&6; }
|
|
||||||
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
if test -n "$ac_ct_CXX"; then
|
|
||||||
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
|
||||||
else
|
|
||||||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
||||||
for as_dir in $PATH
|
|
||||||
do
|
|
||||||
IFS=$as_save_IFS
|
|
||||||
test -z "$as_dir" && as_dir=.
|
|
||||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
||||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
||||||
ac_cv_prog_ac_ct_CXX="$ac_prog"
|
|
||||||
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
||||||
break 2
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
done
|
|
||||||
IFS=$as_save_IFS
|
|
||||||
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
|
||||||
if test -n "$ac_ct_CXX"; then
|
|
||||||
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
|
||||||
$as_echo "$ac_ct_CXX" >&6; }
|
|
||||||
else
|
|
||||||
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
|
||||||
$as_echo "no" >&6; }
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
test -n "$ac_ct_CXX" && break
|
|
||||||
done
|
|
||||||
|
|
||||||
if test "x$ac_ct_CXX" = x; then
|
|
||||||
CXX="g++"
|
|
||||||
else
|
|
||||||
case $cross_compiling:$ac_tool_warned in
|
|
||||||
yes:)
|
|
||||||
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
||||||
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
||||||
ac_tool_warned=yes ;;
|
|
||||||
esac
|
|
||||||
CXX=$ac_ct_CXX
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
# Provide some information about the compiler.
|
|
||||||
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
|
|
||||||
set X $ac_compile
|
|
||||||
ac_compiler=$2
|
|
||||||
{ (ac_try="$ac_compiler --version >&5"
|
|
||||||
case "(($ac_try" in
|
|
||||||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
||||||
*) ac_try_echo=$ac_try;;
|
|
||||||
esac
|
|
||||||
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
||||||
$as_echo "$ac_try_echo") >&5
|
|
||||||
(eval "$ac_compiler --version >&5") 2>&5
|
|
||||||
ac_status=$?
|
|
||||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
(exit $ac_status); }
|
|
||||||
{ (ac_try="$ac_compiler -v >&5"
|
|
||||||
case "(($ac_try" in
|
|
||||||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
||||||
*) ac_try_echo=$ac_try;;
|
|
||||||
esac
|
|
||||||
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
||||||
$as_echo "$ac_try_echo") >&5
|
|
||||||
(eval "$ac_compiler -v >&5") 2>&5
|
|
||||||
ac_status=$?
|
|
||||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
(exit $ac_status); }
|
|
||||||
{ (ac_try="$ac_compiler -V >&5"
|
|
||||||
case "(($ac_try" in
|
|
||||||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
||||||
*) ac_try_echo=$ac_try;;
|
|
||||||
esac
|
|
||||||
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
||||||
$as_echo "$ac_try_echo") >&5
|
|
||||||
(eval "$ac_compiler -V >&5") 2>&5
|
|
||||||
ac_status=$?
|
|
||||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
(exit $ac_status); }
|
|
||||||
|
|
||||||
cat >conftest.$ac_ext <<_ACEOF
|
|
||||||
/* confdefs.h. */
|
|
||||||
_ACEOF
|
|
||||||
cat confdefs.h >>conftest.$ac_ext
|
|
||||||
cat >>conftest.$ac_ext <<_ACEOF
|
|
||||||
/* end confdefs.h. */
|
|
||||||
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
_ACEOF
|
|
||||||
ac_clean_files_save=$ac_clean_files
|
|
||||||
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
|
||||||
# Try to create an executable without -o first, disregard a.out.
|
|
||||||
# It will help us diagnose broken compilers, and finding out an intuition
|
|
||||||
# of exeext.
|
|
||||||
{ $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
|
|
||||||
$as_echo_n "checking for C++ compiler default output file name... " >&6; }
|
|
||||||
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
|
||||||
|
|
||||||
# The possible output files:
|
|
||||||
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
|
||||||
|
|
||||||
ac_rmfiles=
|
|
||||||
for ac_file in $ac_files
|
|
||||||
do
|
|
||||||
case $ac_file in
|
|
||||||
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
|
||||||
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
rm -f $ac_rmfiles
|
|
||||||
|
|
||||||
if { (ac_try="$ac_link_default"
|
|
||||||
case "(($ac_try" in
|
|
||||||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
||||||
*) ac_try_echo=$ac_try;;
|
|
||||||
esac
|
|
||||||
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
||||||
$as_echo "$ac_try_echo") >&5
|
|
||||||
(eval "$ac_link_default") 2>&5
|
|
||||||
ac_status=$?
|
|
||||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
(exit $ac_status); }; then
|
|
||||||
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
|
||||||
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
|
||||||
# in a Makefile. We should not override ac_cv_exeext if it was cached,
|
|
||||||
# so that the user can short-circuit this test for compilers unknown to
|
|
||||||
# Autoconf.
|
|
||||||
for ac_file in $ac_files ''
|
|
||||||
do
|
|
||||||
test -f "$ac_file" || continue
|
|
||||||
case $ac_file in
|
|
||||||
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
|
||||||
;;
|
|
||||||
[ab].out )
|
|
||||||
# We found the default executable, but exeext='' is most
|
|
||||||
# certainly right.
|
|
||||||
break;;
|
|
||||||
*.* )
|
|
||||||
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
|
||||||
then :; else
|
|
||||||
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
|
||||||
fi
|
|
||||||
# We set ac_cv_exeext here because the later test for it is not
|
|
||||||
# safe: cross compilers may not add the suffix if given an `-o'
|
|
||||||
# argument, so we may need to know it at that point already.
|
|
||||||
# Even if this section looks crufty: it has the advantage of
|
|
||||||
# actually working.
|
|
||||||
break;;
|
|
||||||
* )
|
|
||||||
break;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
test "$ac_cv_exeext" = no && ac_cv_exeext=
|
|
||||||
|
|
||||||
else
|
|
||||||
ac_file=''
|
|
||||||
fi
|
|
||||||
|
|
||||||
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
|
|
||||||
$as_echo "$ac_file" >&6; }
|
|
||||||
if test -z "$ac_file"; then
|
|
||||||
$as_echo "$as_me: failed program was:" >&5
|
|
||||||
sed 's/^/| /' conftest.$ac_ext >&5
|
|
||||||
|
|
||||||
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
|
|
||||||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
||||||
{ { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
|
|
||||||
See \`config.log' for more details." >&5
|
|
||||||
$as_echo "$as_me: error: C++ compiler cannot create executables
|
|
||||||
See \`config.log' for more details." >&2;}
|
|
||||||
{ (exit 77); exit 77; }; }; }
|
|
||||||
fi
|
|
||||||
|
|
||||||
ac_exeext=$ac_cv_exeext
|
|
||||||
|
|
||||||
# Check that the compiler produces executables we can run. If not, either
|
|
||||||
# the compiler is broken, or we cross compile.
|
|
||||||
{ $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
|
|
||||||
$as_echo_n "checking whether the C++ compiler works... " >&6; }
|
|
||||||
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
|
||||||
# If not cross compiling, check that we can run a simple program.
|
|
||||||
if test "$cross_compiling" != yes; then
|
|
||||||
if { ac_try='./$ac_file'
|
|
||||||
{ (case "(($ac_try" in
|
|
||||||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
||||||
*) ac_try_echo=$ac_try;;
|
|
||||||
esac
|
|
||||||
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
||||||
$as_echo "$ac_try_echo") >&5
|
|
||||||
(eval "$ac_try") 2>&5
|
|
||||||
ac_status=$?
|
|
||||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
(exit $ac_status); }; }; then
|
|
||||||
cross_compiling=no
|
|
||||||
else
|
|
||||||
if test "$cross_compiling" = maybe; then
|
|
||||||
cross_compiling=yes
|
|
||||||
else
|
|
||||||
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
|
|
||||||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
||||||
{ { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
|
|
||||||
If you meant to cross compile, use \`--host'.
|
|
||||||
See \`config.log' for more details." >&5
|
|
||||||
$as_echo "$as_me: error: cannot run C++ compiled programs.
|
|
||||||
If you meant to cross compile, use \`--host'.
|
|
||||||
See \`config.log' for more details." >&2;}
|
|
||||||
{ (exit 1); exit 1; }; }; }
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
{ $as_echo "$as_me:$LINENO: result: yes" >&5
|
|
||||||
$as_echo "yes" >&6; }
|
|
||||||
|
|
||||||
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
|
||||||
ac_clean_files=$ac_clean_files_save
|
|
||||||
# Check that the compiler produces executables we can run. If not, either
|
|
||||||
# the compiler is broken, or we cross compile.
|
|
||||||
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
|
||||||
$as_echo_n "checking whether we are cross compiling... " >&6; }
|
|
||||||
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
|
||||||
$as_echo "$cross_compiling" >&6; }
|
|
||||||
|
|
||||||
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
|
||||||
$as_echo_n "checking for suffix of executables... " >&6; }
|
|
||||||
if { (ac_try="$ac_link"
|
|
||||||
case "(($ac_try" in
|
|
||||||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
||||||
*) ac_try_echo=$ac_try;;
|
|
||||||
esac
|
|
||||||
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
||||||
$as_echo "$ac_try_echo") >&5
|
|
||||||
(eval "$ac_link") 2>&5
|
|
||||||
ac_status=$?
|
|
||||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
(exit $ac_status); }; then
|
|
||||||
# If both `conftest.exe' and `conftest' are `present' (well, observable)
|
|
||||||
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
|
||||||
# work properly (i.e., refer to `conftest.exe'), while it won't with
|
|
||||||
# `rm'.
|
|
||||||
for ac_file in conftest.exe conftest conftest.*; do
|
|
||||||
test -f "$ac_file" || continue
|
|
||||||
case $ac_file in
|
|
||||||
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
|
||||||
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
|
||||||
break;;
|
|
||||||
* ) break;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
else
|
|
||||||
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
|
|
||||||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
||||||
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
|
||||||
See \`config.log' for more details." >&5
|
|
||||||
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
|
||||||
See \`config.log' for more details." >&2;}
|
|
||||||
{ (exit 1); exit 1; }; }; }
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -f conftest$ac_cv_exeext
|
|
||||||
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
|
||||||
$as_echo "$ac_cv_exeext" >&6; }
|
|
||||||
|
|
||||||
rm -f conftest.$ac_ext
|
|
||||||
EXEEXT=$ac_cv_exeext
|
|
||||||
ac_exeext=$EXEEXT
|
|
||||||
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
|
||||||
$as_echo_n "checking for suffix of object files... " >&6; }
|
|
||||||
if test "${ac_cv_objext+set}" = set; then
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
cat >conftest.$ac_ext <<_ACEOF
|
|
||||||
/* confdefs.h. */
|
|
||||||
_ACEOF
|
|
||||||
cat confdefs.h >>conftest.$ac_ext
|
|
||||||
cat >>conftest.$ac_ext <<_ACEOF
|
|
||||||
/* end confdefs.h. */
|
|
||||||
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
_ACEOF
|
|
||||||
rm -f conftest.o conftest.obj
|
|
||||||
if { (ac_try="$ac_compile"
|
|
||||||
case "(($ac_try" in
|
|
||||||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
||||||
*) ac_try_echo=$ac_try;;
|
|
||||||
esac
|
|
||||||
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
||||||
$as_echo "$ac_try_echo") >&5
|
|
||||||
(eval "$ac_compile") 2>&5
|
|
||||||
ac_status=$?
|
|
||||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
(exit $ac_status); }; then
|
|
||||||
for ac_file in conftest.o conftest.obj conftest.*; do
|
|
||||||
test -f "$ac_file" || continue;
|
|
||||||
case $ac_file in
|
|
||||||
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
|
||||||
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
|
||||||
break;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
else
|
|
||||||
$as_echo "$as_me: failed program was:" >&5
|
|
||||||
sed 's/^/| /' conftest.$ac_ext >&5
|
|
||||||
|
|
||||||
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
|
|
||||||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
||||||
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
|
||||||
See \`config.log' for more details." >&5
|
|
||||||
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
|
||||||
See \`config.log' for more details." >&2;}
|
|
||||||
{ (exit 1); exit 1; }; }; }
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
|
||||||
fi
|
|
||||||
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
|
||||||
$as_echo "$ac_cv_objext" >&6; }
|
|
||||||
OBJEXT=$ac_cv_objext
|
|
||||||
ac_objext=$OBJEXT
|
|
||||||
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
|
||||||
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
|
|
||||||
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
cat >conftest.$ac_ext <<_ACEOF
|
|
||||||
/* confdefs.h. */
|
|
||||||
_ACEOF
|
|
||||||
cat confdefs.h >>conftest.$ac_ext
|
|
||||||
cat >>conftest.$ac_ext <<_ACEOF
|
|
||||||
/* end confdefs.h. */
|
|
||||||
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
#ifndef __GNUC__
|
|
||||||
choke me
|
|
||||||
#endif
|
|
||||||
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
_ACEOF
|
|
||||||
rm -f conftest.$ac_objext
|
|
||||||
if { (ac_try="$ac_compile"
|
|
||||||
case "(($ac_try" in
|
|
||||||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
||||||
*) ac_try_echo=$ac_try;;
|
|
||||||
esac
|
|
||||||
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
||||||
$as_echo "$ac_try_echo") >&5
|
|
||||||
(eval "$ac_compile") 2>conftest.er1
|
|
||||||
ac_status=$?
|
|
||||||
grep -v '^ *+' conftest.er1 >conftest.err
|
|
||||||
rm -f conftest.er1
|
|
||||||
cat conftest.err >&5
|
|
||||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
(exit $ac_status); } && {
|
|
||||||
test -z "$ac_cxx_werror_flag" ||
|
|
||||||
test ! -s conftest.err
|
|
||||||
} && test -s conftest.$ac_objext; then
|
|
||||||
ac_compiler_gnu=yes
|
|
||||||
else
|
|
||||||
$as_echo "$as_me: failed program was:" >&5
|
|
||||||
sed 's/^/| /' conftest.$ac_ext >&5
|
|
||||||
|
|
||||||
ac_compiler_gnu=no
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
||||||
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
|
||||||
|
|
||||||
fi
|
|
||||||
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
|
||||||
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
|
|
||||||
if test $ac_compiler_gnu = yes; then
|
|
||||||
GXX=yes
|
|
||||||
else
|
|
||||||
GXX=
|
|
||||||
fi
|
|
||||||
ac_test_CXXFLAGS=${CXXFLAGS+set}
|
|
||||||
ac_save_CXXFLAGS=$CXXFLAGS
|
|
||||||
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
|
||||||
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
|
|
||||||
if test "${ac_cv_prog_cxx_g+set}" = set; then
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
|
|
||||||
ac_cxx_werror_flag=yes
|
|
||||||
ac_cv_prog_cxx_g=no
|
|
||||||
CXXFLAGS="-g"
|
|
||||||
cat >conftest.$ac_ext <<_ACEOF
|
|
||||||
/* confdefs.h. */
|
|
||||||
_ACEOF
|
|
||||||
cat confdefs.h >>conftest.$ac_ext
|
|
||||||
cat >>conftest.$ac_ext <<_ACEOF
|
|
||||||
/* end confdefs.h. */
|
|
||||||
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
_ACEOF
|
|
||||||
rm -f conftest.$ac_objext
|
|
||||||
if { (ac_try="$ac_compile"
|
|
||||||
case "(($ac_try" in
|
|
||||||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
||||||
*) ac_try_echo=$ac_try;;
|
|
||||||
esac
|
|
||||||
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
||||||
$as_echo "$ac_try_echo") >&5
|
|
||||||
(eval "$ac_compile") 2>conftest.er1
|
|
||||||
ac_status=$?
|
|
||||||
grep -v '^ *+' conftest.er1 >conftest.err
|
|
||||||
rm -f conftest.er1
|
|
||||||
cat conftest.err >&5
|
|
||||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
(exit $ac_status); } && {
|
|
||||||
test -z "$ac_cxx_werror_flag" ||
|
|
||||||
test ! -s conftest.err
|
|
||||||
} && test -s conftest.$ac_objext; then
|
|
||||||
ac_cv_prog_cxx_g=yes
|
|
||||||
else
|
|
||||||
$as_echo "$as_me: failed program was:" >&5
|
|
||||||
sed 's/^/| /' conftest.$ac_ext >&5
|
|
||||||
|
|
||||||
CXXFLAGS=""
|
|
||||||
cat >conftest.$ac_ext <<_ACEOF
|
|
||||||
/* confdefs.h. */
|
|
||||||
_ACEOF
|
|
||||||
cat confdefs.h >>conftest.$ac_ext
|
|
||||||
cat >>conftest.$ac_ext <<_ACEOF
|
|
||||||
/* end confdefs.h. */
|
|
||||||
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
_ACEOF
|
|
||||||
rm -f conftest.$ac_objext
|
|
||||||
if { (ac_try="$ac_compile"
|
|
||||||
case "(($ac_try" in
|
|
||||||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
||||||
*) ac_try_echo=$ac_try;;
|
|
||||||
esac
|
|
||||||
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
||||||
$as_echo "$ac_try_echo") >&5
|
|
||||||
(eval "$ac_compile") 2>conftest.er1
|
|
||||||
ac_status=$?
|
|
||||||
grep -v '^ *+' conftest.er1 >conftest.err
|
|
||||||
rm -f conftest.er1
|
|
||||||
cat conftest.err >&5
|
|
||||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
(exit $ac_status); } && {
|
|
||||||
test -z "$ac_cxx_werror_flag" ||
|
|
||||||
test ! -s conftest.err
|
|
||||||
} && test -s conftest.$ac_objext; then
|
|
||||||
:
|
|
||||||
else
|
|
||||||
$as_echo "$as_me: failed program was:" >&5
|
|
||||||
sed 's/^/| /' conftest.$ac_ext >&5
|
|
||||||
|
|
||||||
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
|
||||||
CXXFLAGS="-g"
|
|
||||||
cat >conftest.$ac_ext <<_ACEOF
|
|
||||||
/* confdefs.h. */
|
|
||||||
_ACEOF
|
|
||||||
cat confdefs.h >>conftest.$ac_ext
|
|
||||||
cat >>conftest.$ac_ext <<_ACEOF
|
|
||||||
/* end confdefs.h. */
|
|
||||||
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
_ACEOF
|
|
||||||
rm -f conftest.$ac_objext
|
|
||||||
if { (ac_try="$ac_compile"
|
|
||||||
case "(($ac_try" in
|
|
||||||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
||||||
*) ac_try_echo=$ac_try;;
|
|
||||||
esac
|
|
||||||
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
||||||
$as_echo "$ac_try_echo") >&5
|
|
||||||
(eval "$ac_compile") 2>conftest.er1
|
|
||||||
ac_status=$?
|
|
||||||
grep -v '^ *+' conftest.er1 >conftest.err
|
|
||||||
rm -f conftest.er1
|
|
||||||
cat conftest.err >&5
|
|
||||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
(exit $ac_status); } && {
|
|
||||||
test -z "$ac_cxx_werror_flag" ||
|
|
||||||
test ! -s conftest.err
|
|
||||||
} && test -s conftest.$ac_objext; then
|
|
||||||
ac_cv_prog_cxx_g=yes
|
|
||||||
else
|
|
||||||
$as_echo "$as_me: failed program was:" >&5
|
|
||||||
sed 's/^/| /' conftest.$ac_ext >&5
|
|
||||||
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
||||||
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
|
||||||
fi
|
|
||||||
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
|
||||||
$as_echo "$ac_cv_prog_cxx_g" >&6; }
|
|
||||||
if test "$ac_test_CXXFLAGS" = set; then
|
|
||||||
CXXFLAGS=$ac_save_CXXFLAGS
|
|
||||||
elif test $ac_cv_prog_cxx_g = yes; then
|
|
||||||
if test "$GXX" = yes; then
|
|
||||||
CXXFLAGS="-g -O2"
|
|
||||||
else
|
|
||||||
CXXFLAGS="-g"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
if test "$GXX" = yes; then
|
|
||||||
CXXFLAGS="-O2"
|
|
||||||
else
|
|
||||||
CXXFLAGS=
|
|
||||||
fi
|
|
||||||
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
|
|
||||||
|
|
||||||
ac_ext=c
|
ac_ext=c
|
||||||
ac_cpp='$CPP $CPPFLAGS'
|
ac_cpp='$CPP $CPPFLAGS'
|
||||||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||||
@@ -2906,6 +2276,256 @@ $as_echo "$ac_try_echo") >&5
|
|||||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
(exit $ac_status); }
|
(exit $ac_status); }
|
||||||
|
|
||||||
|
cat >conftest.$ac_ext <<_ACEOF
|
||||||
|
/* confdefs.h. */
|
||||||
|
_ACEOF
|
||||||
|
cat confdefs.h >>conftest.$ac_ext
|
||||||
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
|
/* end confdefs.h. */
|
||||||
|
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
|
||||||
|
;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
_ACEOF
|
||||||
|
ac_clean_files_save=$ac_clean_files
|
||||||
|
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
||||||
|
# Try to create an executable without -o first, disregard a.out.
|
||||||
|
# It will help us diagnose broken compilers, and finding out an intuition
|
||||||
|
# of exeext.
|
||||||
|
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
||||||
|
$as_echo_n "checking for C compiler default output file name... " >&6; }
|
||||||
|
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
||||||
|
|
||||||
|
# The possible output files:
|
||||||
|
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
||||||
|
|
||||||
|
ac_rmfiles=
|
||||||
|
for ac_file in $ac_files
|
||||||
|
do
|
||||||
|
case $ac_file in
|
||||||
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
||||||
|
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
rm -f $ac_rmfiles
|
||||||
|
|
||||||
|
if { (ac_try="$ac_link_default"
|
||||||
|
case "(($ac_try" in
|
||||||
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
||||||
|
*) ac_try_echo=$ac_try;;
|
||||||
|
esac
|
||||||
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
||||||
|
$as_echo "$ac_try_echo") >&5
|
||||||
|
(eval "$ac_link_default") 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; then
|
||||||
|
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
||||||
|
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
||||||
|
# in a Makefile. We should not override ac_cv_exeext if it was cached,
|
||||||
|
# so that the user can short-circuit this test for compilers unknown to
|
||||||
|
# Autoconf.
|
||||||
|
for ac_file in $ac_files ''
|
||||||
|
do
|
||||||
|
test -f "$ac_file" || continue
|
||||||
|
case $ac_file in
|
||||||
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
||||||
|
;;
|
||||||
|
[ab].out )
|
||||||
|
# We found the default executable, but exeext='' is most
|
||||||
|
# certainly right.
|
||||||
|
break;;
|
||||||
|
*.* )
|
||||||
|
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
||||||
|
then :; else
|
||||||
|
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
||||||
|
fi
|
||||||
|
# We set ac_cv_exeext here because the later test for it is not
|
||||||
|
# safe: cross compilers may not add the suffix if given an `-o'
|
||||||
|
# argument, so we may need to know it at that point already.
|
||||||
|
# Even if this section looks crufty: it has the advantage of
|
||||||
|
# actually working.
|
||||||
|
break;;
|
||||||
|
* )
|
||||||
|
break;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
test "$ac_cv_exeext" = no && ac_cv_exeext=
|
||||||
|
|
||||||
|
else
|
||||||
|
ac_file=''
|
||||||
|
fi
|
||||||
|
|
||||||
|
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
|
||||||
|
$as_echo "$ac_file" >&6; }
|
||||||
|
if test -z "$ac_file"; then
|
||||||
|
$as_echo "$as_me: failed program was:" >&5
|
||||||
|
sed 's/^/| /' conftest.$ac_ext >&5
|
||||||
|
|
||||||
|
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
|
||||||
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
||||||
|
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
|
||||||
|
See \`config.log' for more details." >&5
|
||||||
|
$as_echo "$as_me: error: C compiler cannot create executables
|
||||||
|
See \`config.log' for more details." >&2;}
|
||||||
|
{ (exit 77); exit 77; }; }; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
ac_exeext=$ac_cv_exeext
|
||||||
|
|
||||||
|
# Check that the compiler produces executables we can run. If not, either
|
||||||
|
# the compiler is broken, or we cross compile.
|
||||||
|
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
||||||
|
$as_echo_n "checking whether the C compiler works... " >&6; }
|
||||||
|
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
||||||
|
# If not cross compiling, check that we can run a simple program.
|
||||||
|
if test "$cross_compiling" != yes; then
|
||||||
|
if { ac_try='./$ac_file'
|
||||||
|
{ (case "(($ac_try" in
|
||||||
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
||||||
|
*) ac_try_echo=$ac_try;;
|
||||||
|
esac
|
||||||
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
||||||
|
$as_echo "$ac_try_echo") >&5
|
||||||
|
(eval "$ac_try") 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; }; then
|
||||||
|
cross_compiling=no
|
||||||
|
else
|
||||||
|
if test "$cross_compiling" = maybe; then
|
||||||
|
cross_compiling=yes
|
||||||
|
else
|
||||||
|
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
|
||||||
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
||||||
|
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
||||||
|
If you meant to cross compile, use \`--host'.
|
||||||
|
See \`config.log' for more details." >&5
|
||||||
|
$as_echo "$as_me: error: cannot run C compiled programs.
|
||||||
|
If you meant to cross compile, use \`--host'.
|
||||||
|
See \`config.log' for more details." >&2;}
|
||||||
|
{ (exit 1); exit 1; }; }; }
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
{ $as_echo "$as_me:$LINENO: result: yes" >&5
|
||||||
|
$as_echo "yes" >&6; }
|
||||||
|
|
||||||
|
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
||||||
|
ac_clean_files=$ac_clean_files_save
|
||||||
|
# Check that the compiler produces executables we can run. If not, either
|
||||||
|
# the compiler is broken, or we cross compile.
|
||||||
|
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
||||||
|
$as_echo_n "checking whether we are cross compiling... " >&6; }
|
||||||
|
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
||||||
|
$as_echo "$cross_compiling" >&6; }
|
||||||
|
|
||||||
|
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
||||||
|
$as_echo_n "checking for suffix of executables... " >&6; }
|
||||||
|
if { (ac_try="$ac_link"
|
||||||
|
case "(($ac_try" in
|
||||||
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
||||||
|
*) ac_try_echo=$ac_try;;
|
||||||
|
esac
|
||||||
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
||||||
|
$as_echo "$ac_try_echo") >&5
|
||||||
|
(eval "$ac_link") 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; then
|
||||||
|
# If both `conftest.exe' and `conftest' are `present' (well, observable)
|
||||||
|
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
||||||
|
# work properly (i.e., refer to `conftest.exe'), while it won't with
|
||||||
|
# `rm'.
|
||||||
|
for ac_file in conftest.exe conftest conftest.*; do
|
||||||
|
test -f "$ac_file" || continue
|
||||||
|
case $ac_file in
|
||||||
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
||||||
|
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
||||||
|
break;;
|
||||||
|
* ) break;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
else
|
||||||
|
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
|
||||||
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
||||||
|
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
||||||
|
See \`config.log' for more details." >&5
|
||||||
|
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
||||||
|
See \`config.log' for more details." >&2;}
|
||||||
|
{ (exit 1); exit 1; }; }; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -f conftest$ac_cv_exeext
|
||||||
|
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
||||||
|
$as_echo "$ac_cv_exeext" >&6; }
|
||||||
|
|
||||||
|
rm -f conftest.$ac_ext
|
||||||
|
EXEEXT=$ac_cv_exeext
|
||||||
|
ac_exeext=$EXEEXT
|
||||||
|
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
||||||
|
$as_echo_n "checking for suffix of object files... " >&6; }
|
||||||
|
if test "${ac_cv_objext+set}" = set; then
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
cat >conftest.$ac_ext <<_ACEOF
|
||||||
|
/* confdefs.h. */
|
||||||
|
_ACEOF
|
||||||
|
cat confdefs.h >>conftest.$ac_ext
|
||||||
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
|
/* end confdefs.h. */
|
||||||
|
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
|
||||||
|
;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
_ACEOF
|
||||||
|
rm -f conftest.o conftest.obj
|
||||||
|
if { (ac_try="$ac_compile"
|
||||||
|
case "(($ac_try" in
|
||||||
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
||||||
|
*) ac_try_echo=$ac_try;;
|
||||||
|
esac
|
||||||
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
||||||
|
$as_echo "$ac_try_echo") >&5
|
||||||
|
(eval "$ac_compile") 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; then
|
||||||
|
for ac_file in conftest.o conftest.obj conftest.*; do
|
||||||
|
test -f "$ac_file" || continue;
|
||||||
|
case $ac_file in
|
||||||
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
||||||
|
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
||||||
|
break;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
else
|
||||||
|
$as_echo "$as_me: failed program was:" >&5
|
||||||
|
sed 's/^/| /' conftest.$ac_ext >&5
|
||||||
|
|
||||||
|
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
|
||||||
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
||||||
|
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
||||||
|
See \`config.log' for more details." >&5
|
||||||
|
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
||||||
|
See \`config.log' for more details." >&2;}
|
||||||
|
{ (exit 1); exit 1; }; }; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
||||||
|
fi
|
||||||
|
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
||||||
|
$as_echo "$ac_cv_objext" >&6; }
|
||||||
|
OBJEXT=$ac_cv_objext
|
||||||
|
ac_objext=$OBJEXT
|
||||||
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
||||||
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
||||||
if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ AC_CONFIG_AUX_DIR([build])
|
|||||||
|
|
||||||
# Checks for programs.
|
# Checks for programs.
|
||||||
AC_PROG_AWK
|
AC_PROG_AWK
|
||||||
AC_PROG_CXX
|
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
AC_PROG_CPP
|
AC_PROG_CPP
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
|
|||||||
Reference in New Issue
Block a user