| Index: third_party/tcmalloc/vendor/configure
|
| diff --git a/third_party/tcmalloc/vendor/configure b/third_party/tcmalloc/vendor/configure
|
| old mode 100644
|
| new mode 100755
|
| index 9f19ef09a038d6abec60fa1bec87dee0b5c81581..1b446374c7fbd22aec5863c3df604b384204b0b2
|
| --- a/third_party/tcmalloc/vendor/configure
|
| +++ b/third_party/tcmalloc/vendor/configure
|
| @@ -1,8 +1,8 @@
|
| #! /bin/sh
|
| # Guess values for system-dependent variables and create Makefiles.
|
| -# Generated by GNU Autoconf 2.65 for google-perftools 1.8.
|
| +# Generated by GNU Autoconf 2.65 for gperftools 2.0.
|
| #
|
| -# Report bugs to <opensource@google.com>.
|
| +# Report bugs to <google-perftools@googlegroups.com>.
|
| #
|
| #
|
| # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
| @@ -231,10 +231,10 @@ fi
|
| $as_echo "$0: be upgraded to zsh 4.3.4 or later."
|
| else
|
| $as_echo "$0: Please tell bug-autoconf@gnu.org and
|
| -$0: opensource@google.com about your system, including any
|
| -$0: error possibly output before this message. Then install
|
| -$0: a modern shell, or manually run the script under such a
|
| -$0: shell if you do have one."
|
| +$0: google-perftools@googlegroups.com about your system,
|
| +$0: including any error possibly output before this
|
| +$0: message. Then install a modern shell, or manually run
|
| +$0: the script under such a shell if you do have one."
|
| fi
|
| exit 1
|
| fi
|
| @@ -699,11 +699,11 @@ MFLAGS=
|
| MAKEFLAGS=
|
|
|
| # Identity of this package.
|
| -PACKAGE_NAME='google-perftools'
|
| -PACKAGE_TARNAME='google-perftools'
|
| -PACKAGE_VERSION='1.8'
|
| -PACKAGE_STRING='google-perftools 1.8'
|
| -PACKAGE_BUGREPORT='opensource@google.com'
|
| +PACKAGE_NAME='gperftools'
|
| +PACKAGE_TARNAME='gperftools'
|
| +PACKAGE_VERSION='2.0'
|
| +PACKAGE_STRING='gperftools 2.0'
|
| +PACKAGE_BUGREPORT='google-perftools@googlegroups.com'
|
| PACKAGE_URL=''
|
|
|
| ac_unique_file="README"
|
| @@ -770,6 +770,8 @@ LIBSTDCXX_LA_LINKER_FLAG
|
| NANOSLEEP_LIBS
|
| HAVE_W_NO_UNUSED_RESULT_FALSE
|
| HAVE_W_NO_UNUSED_RESULT_TRUE
|
| +I386_FALSE
|
| +I386_TRUE
|
| X86_64_AND_NO_FP_BY_DEFAULT_FALSE
|
| X86_64_AND_NO_FP_BY_DEFAULT_TRUE
|
| ENABLE_FRAME_POINTERS_FALSE
|
| @@ -806,16 +808,16 @@ HAVE_OBJCOPY_WEAKEN_TRUE
|
| OBJCOPY
|
| GCC_FALSE
|
| GCC_TRUE
|
| -am__fastdepCXX_FALSE
|
| -am__fastdepCXX_TRUE
|
| -CXXDEPMODE
|
| -ac_ct_CXX
|
| -CXXFLAGS
|
| -CXX
|
| CPP
|
| am__fastdepCC_FALSE
|
| am__fastdepCC_TRUE
|
| CCDEPMODE
|
| +ac_ct_CC
|
| +CFLAGS
|
| +CC
|
| +am__fastdepCXX_FALSE
|
| +am__fastdepCXX_TRUE
|
| +CXXDEPMODE
|
| AMDEPBACKSLASH
|
| AMDEP_FALSE
|
| AMDEP_TRUE
|
| @@ -824,11 +826,11 @@ am__include
|
| DEPDIR
|
| OBJEXT
|
| EXEEXT
|
| -ac_ct_CC
|
| +ac_ct_CXX
|
| CPPFLAGS
|
| LDFLAGS
|
| -CFLAGS
|
| -CC
|
| +CXXFLAGS
|
| +CXX
|
| TC_VERSION_PATCH
|
| TC_VERSION_MINOR
|
| TC_VERSION_MAJOR
|
| @@ -839,6 +841,7 @@ am__leading_dot
|
| SET_MAKE
|
| AWK
|
| mkdir_p
|
| +MKDIR_P
|
| INSTALL_STRIP_PROGRAM
|
| STRIP
|
| install_sh
|
| @@ -850,6 +853,7 @@ ACLOCAL
|
| VERSION
|
| PACKAGE
|
| CYGPATH_W
|
| +am__isrc
|
| INSTALL_DATA
|
| INSTALL_SCRIPT
|
| INSTALL_PROGRAM
|
| @@ -921,15 +925,15 @@ enable_frame_pointers
|
| ac_precious_vars='build_alias
|
| host_alias
|
| target_alias
|
| -CC
|
| -CFLAGS
|
| +CXX
|
| +CXXFLAGS
|
| LDFLAGS
|
| LIBS
|
| CPPFLAGS
|
| -CPP
|
| -CXX
|
| -CXXFLAGS
|
| CCC
|
| +CC
|
| +CFLAGS
|
| +CPP
|
| CXXCPP'
|
|
|
|
|
| @@ -1472,7 +1476,7 @@ if test "$ac_init_help" = "long"; then
|
| # Omit some internal or obsolete options to make the list less imposing.
|
| # This message is too long to be a string in the A/UX 3.1 sh.
|
| cat <<_ACEOF
|
| -\`configure' configures google-perftools 1.8 to adapt to many kinds of systems.
|
| +\`configure' configures gperftools 2.0 to adapt to many kinds of systems.
|
|
|
| Usage: $0 [OPTION]... [VAR=VALUE]...
|
|
|
| @@ -1520,8 +1524,7 @@ Fine tuning of the installation directories:
|
| --infodir=DIR info documentation [DATAROOTDIR/info]
|
| --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
| --mandir=DIR man documentation [DATAROOTDIR/man]
|
| - --docdir=DIR documentation root
|
| - [DATAROOTDIR/doc/google-perftools]
|
| + --docdir=DIR documentation root [DATAROOTDIR/doc/gperftools]
|
| --htmldir=DIR html documentation [DOCDIR]
|
| --dvidir=DIR dvi documentation [DOCDIR]
|
| --pdfdir=DIR pdf documentation [DOCDIR]
|
| @@ -1543,7 +1546,7 @@ fi
|
|
|
| if test -n "$ac_init_help"; then
|
| case $ac_init_help in
|
| - short | recursive ) echo "Configuration of google-perftools 1.8:";;
|
| + short | recursive ) echo "Configuration of gperftools 2.0:";;
|
| esac
|
| cat <<\_ACEOF
|
|
|
| @@ -1575,22 +1578,22 @@ Optional Packages:
|
| --with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
|
|
| Some influential environment variables:
|
| - CC C compiler command
|
| - CFLAGS C compiler flags
|
| + CXX C++ compiler command
|
| + CXXFLAGS C++ compiler flags
|
| LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
| nonstandard directory <lib dir>
|
| LIBS libraries to pass to the linker, e.g. -l<library>
|
| CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
| you have headers in a nonstandard directory <include dir>
|
| + CC C compiler command
|
| + CFLAGS C compiler flags
|
| CPP C preprocessor
|
| - CXX C++ compiler command
|
| - CXXFLAGS C++ compiler flags
|
| CXXCPP C++ preprocessor
|
|
|
| Use these variables to override the choices made by `configure' or to help
|
| it to find libraries and programs with nonstandard names/locations.
|
|
|
| -Report bugs to <opensource@google.com>.
|
| +Report bugs to <google-perftools@googlegroups.com>.
|
| _ACEOF
|
| ac_status=$?
|
| fi
|
| @@ -1653,7 +1656,7 @@ fi
|
| test -n "$ac_init_help" && exit $ac_status
|
| if $ac_init_version; then
|
| cat <<\_ACEOF
|
| -google-perftools configure 1.8
|
| +gperftools configure 2.0
|
| generated by GNU Autoconf 2.65
|
|
|
| Copyright (C) 2009 Free Software Foundation, Inc.
|
| @@ -1667,10 +1670,10 @@ fi
|
| ## Autoconf initialization. ##
|
| ## ------------------------ ##
|
|
|
| -# ac_fn_c_try_compile LINENO
|
| -# --------------------------
|
| +# ac_fn_cxx_try_compile LINENO
|
| +# ----------------------------
|
| # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
| -ac_fn_c_try_compile ()
|
| +ac_fn_cxx_try_compile ()
|
| {
|
| as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
| rm -f conftest.$ac_objext
|
| @@ -1690,7 +1693,7 @@ $as_echo "$ac_try_echo"; } >&5
|
| fi
|
| $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
| test $ac_status = 0; } && {
|
| - test -z "$ac_c_werror_flag" ||
|
| + test -z "$ac_cxx_werror_flag" ||
|
| test ! -s conftest.err
|
| } && test -s conftest.$ac_objext; then :
|
| ac_retval=0
|
| @@ -1703,22 +1706,23 @@ fi
|
| eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
| as_fn_set_status $ac_retval
|
|
|
| -} # ac_fn_c_try_compile
|
| +} # ac_fn_cxx_try_compile
|
|
|
| -# ac_fn_c_try_cpp LINENO
|
| -# ----------------------
|
| -# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
| -ac_fn_c_try_cpp ()
|
| +# ac_fn_c_try_compile LINENO
|
| +# --------------------------
|
| +# Try to compile conftest.$ac_ext, and return whether this succeeded.
|
| +ac_fn_c_try_compile ()
|
| {
|
| as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
| - if { { ac_try="$ac_cpp conftest.$ac_ext"
|
| + 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:${as_lineno-$LINENO}: $ac_try_echo\""
|
| $as_echo "$ac_try_echo"; } >&5
|
| - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
| + (eval "$ac_compile") 2>conftest.err
|
| ac_status=$?
|
| if test -s conftest.err; then
|
| grep -v '^ *+' conftest.err >conftest.er1
|
| @@ -1726,37 +1730,36 @@ $as_echo "$ac_try_echo"; } >&5
|
| mv -f conftest.er1 conftest.err
|
| fi
|
| $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
| - test $ac_status = 0; } >/dev/null && {
|
| - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
| + test $ac_status = 0; } && {
|
| + test -z "$ac_c_werror_flag" ||
|
| test ! -s conftest.err
|
| - }; then :
|
| + } && test -s conftest.$ac_objext; then :
|
| ac_retval=0
|
| else
|
| $as_echo "$as_me: failed program was:" >&5
|
| sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
| - ac_retval=1
|
| + ac_retval=1
|
| fi
|
| eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
| as_fn_set_status $ac_retval
|
|
|
| -} # ac_fn_c_try_cpp
|
| +} # ac_fn_c_try_compile
|
|
|
| -# ac_fn_cxx_try_compile LINENO
|
| -# ----------------------------
|
| -# Try to compile conftest.$ac_ext, and return whether this succeeded.
|
| -ac_fn_cxx_try_compile ()
|
| +# ac_fn_c_try_cpp LINENO
|
| +# ----------------------
|
| +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
| +ac_fn_c_try_cpp ()
|
| {
|
| as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
| - rm -f conftest.$ac_objext
|
| - if { { ac_try="$ac_compile"
|
| + if { { ac_try="$ac_cpp conftest.$ac_ext"
|
| case "(($ac_try" in
|
| *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
| *) ac_try_echo=$ac_try;;
|
| esac
|
| eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
| $as_echo "$ac_try_echo"; } >&5
|
| - (eval "$ac_compile") 2>conftest.err
|
| + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
| ac_status=$?
|
| if test -s conftest.err; then
|
| grep -v '^ *+' conftest.err >conftest.er1
|
| @@ -1764,21 +1767,21 @@ $as_echo "$ac_try_echo"; } >&5
|
| mv -f conftest.er1 conftest.err
|
| fi
|
| $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
| - test $ac_status = 0; } && {
|
| - test -z "$ac_cxx_werror_flag" ||
|
| + test $ac_status = 0; } >/dev/null && {
|
| + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
| test ! -s conftest.err
|
| - } && test -s conftest.$ac_objext; then :
|
| + }; then :
|
| ac_retval=0
|
| else
|
| $as_echo "$as_me: failed program was:" >&5
|
| sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
| - ac_retval=1
|
| + ac_retval=1
|
| fi
|
| eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
| as_fn_set_status $ac_retval
|
|
|
| -} # ac_fn_cxx_try_compile
|
| +} # ac_fn_c_try_cpp
|
|
|
| # ac_fn_c_try_link LINENO
|
| # -----------------------
|
| @@ -2174,9 +2177,9 @@ $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >
|
| { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
| $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
| ( cat <<\_ASBOX
|
| -## ------------------------------------ ##
|
| -## Report this to opensource@google.com ##
|
| -## ------------------------------------ ##
|
| +## ------------------------------------------------ ##
|
| +## Report this to google-perftools@googlegroups.com ##
|
| +## ------------------------------------------------ ##
|
| _ASBOX
|
| ) | sed "s/^/$as_me: WARNING: /" >&2
|
| ;;
|
| @@ -2238,7 +2241,7 @@ cat >config.log <<_ACEOF
|
| This file contains any messages produced by compilers while
|
| running configure, to aid debugging if configure makes a mistake.
|
|
|
| -It was created by google-perftools $as_me 1.8, which was
|
| +It was created by gperftools $as_me 2.0, which was
|
| generated by GNU Autoconf 2.65. Invocation command line was
|
|
|
| $ $0 $@
|
| @@ -2590,8 +2593,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
| # Update this value for every release! (A:B:C will map to foo.so.(A-C).C.B)
|
| # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
|
| -TCMALLOC_SO_VERSION=2:0:2
|
| -PROFILER_SO_VERSION=1:1:1
|
| +TCMALLOC_SO_VERSION=5:0:1
|
| +PROFILER_SO_VERSION=3:0:3
|
|
|
|
|
|
|
| @@ -2694,7 +2697,8 @@ IFS=$ac_save_IFS
|
| case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
|
|
|
|
| -am__api_version="1.9"
|
| +am__api_version='1.10'
|
| +
|
| # Find a good install program. We prefer a C program (faster),
|
| # so one script is as good as another. But avoid the broken or
|
| # incompatible versions:
|
| @@ -2850,38 +2854,53 @@ else
|
| $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
|
| fi
|
|
|
| -if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
|
| - # We used to keeping the `.' as first argument, in order to
|
| - # allow $(mkdir_p) to be used without argument. As in
|
| - # $(mkdir_p) $(somedir)
|
| - # where $(somedir) is conditionally defined. However this is wrong
|
| - # for two reasons:
|
| - # 1. if the package is installed by a user who cannot write `.'
|
| - # make install will fail,
|
| - # 2. the above comment should most certainly read
|
| - # $(mkdir_p) $(DESTDIR)$(somedir)
|
| - # so it does not work when $(somedir) is undefined and
|
| - # $(DESTDIR) is not.
|
| - # To support the latter case, we have to write
|
| - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
|
| - # so the `.' trick is pointless.
|
| - mkdir_p='mkdir -p --'
|
| -else
|
| - # On NextStep and OpenStep, the `mkdir' command does not
|
| - # recognize any option. It will interpret all options as
|
| - # directories to create, and then abort because `.' already
|
| - # exists.
|
| - for d in ./-p ./--version;
|
| - do
|
| - test -d $d && rmdir $d
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
|
| +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
|
| +if test -z "$MKDIR_P"; then
|
| + if test "${ac_cv_path_mkdir+set}" = set; then :
|
| + $as_echo_n "(cached) " >&6
|
| +else
|
| + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
| +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
|
| +do
|
| + IFS=$as_save_IFS
|
| + test -z "$as_dir" && as_dir=.
|
| + for ac_prog in mkdir gmkdir; do
|
| + for ac_exec_ext in '' $ac_executable_extensions; do
|
| + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
|
| + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
|
| + 'mkdir (GNU coreutils) '* | \
|
| + 'mkdir (coreutils) '* | \
|
| + 'mkdir (fileutils) '4.1*)
|
| + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
|
| + break 3;;
|
| + esac
|
| + done
|
| + done
|
| done
|
| - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
|
| - if test -f "$ac_aux_dir/mkinstalldirs"; then
|
| - mkdir_p='$(mkinstalldirs)'
|
| +IFS=$as_save_IFS
|
| +
|
| +fi
|
| +
|
| + test -d ./--version && rmdir ./--version
|
| + if test "${ac_cv_path_mkdir+set}" = set; then
|
| + MKDIR_P="$ac_cv_path_mkdir -p"
|
| else
|
| - mkdir_p='$(install_sh) -d'
|
| + # As a last resort, use the slow shell script. Don't cache a
|
| + # value for MKDIR_P within a source directory, because that will
|
| + # break other packages using the cache if that directory is
|
| + # removed, or if the value is a relative name.
|
| + MKDIR_P="$ac_install_sh -d"
|
| fi
|
| fi
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
|
| +$as_echo "$MKDIR_P" >&6; }
|
| +
|
| +mkdir_p="$MKDIR_P"
|
| +case $mkdir_p in
|
| + [\\/$]* | ?:[\\/]*) ;;
|
| + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
|
| +esac
|
|
|
| for ac_prog in gawk mawk nawk awk
|
| do
|
| @@ -2965,10 +2984,14 @@ else
|
| fi
|
| rmdir .tst 2>/dev/null
|
|
|
| -# test to see if srcdir already configured
|
| -if test "`cd $srcdir && pwd`" != "`pwd`" &&
|
| - test -f $srcdir/config.status; then
|
| - as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
|
| +if test "`cd $srcdir && pwd`" != "`pwd`"; then
|
| + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
|
| + # is not polluted with repeated "-I."
|
| + am__isrc=' -I$(srcdir)'
|
| + # test to see if srcdir already configured
|
| + if test -f $srcdir/config.status; then
|
| + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
|
| + fi
|
| fi
|
|
|
| # test whether we have cygpath
|
| @@ -2982,8 +3005,8 @@ fi
|
|
|
|
|
| # Define the identity of the package.
|
| - PACKAGE='google-perftools'
|
| - VERSION='1.8'
|
| + PACKAGE='gperftools'
|
| + VERSION='2.0'
|
|
|
|
|
| cat >>confdefs.h <<_ACEOF
|
| @@ -3011,7 +3034,7 @@ AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
|
|
|
| MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
|
|
|
| -install_sh=${install_sh-"$am_aux_dir/install-sh"}
|
| +install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
|
|
|
| # Installed binaries are usually stripped using `strip' when the user
|
| # run `make install-strip'. However `strip' might not be the right
|
| @@ -3111,7 +3134,7 @@ else
|
| fi
|
|
|
| fi
|
| -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
|
| +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
|
|
| # We need awk for the "check" target. The system "awk" is bad on
|
| # some platforms.
|
| @@ -3130,8 +3153,8 @@ ac_config_headers="$ac_config_headers src/config.h"
|
|
|
| # Export the version information (for tc_version and friends)
|
| TC_VERSION_MAJOR=`expr "$PACKAGE_VERSION" : '\([0-9]*\)'`
|
| -TC_VERSION_MINOR=`expr "$PACKAGE_VERSION" : '[^.]*\.\([0-9]*\)'`
|
| -TC_VERSION_PATCH=`expr "$PACKAGE_VERSION" : '[^.0-9]*\([^0-9]*\)$'`
|
| +TC_VERSION_MINOR=`expr "$PACKAGE_VERSION" : '[0-9]*\.\([0-9]*\)'`
|
| +TC_VERSION_PATCH=`expr "$PACKAGE_VERSION" : '[0-9]*\.[0-9]*\(.*\)$'`
|
|
|
|
|
|
|
| @@ -3199,21 +3222,27 @@ fi
|
|
|
|
|
| # Checks for programs.
|
| -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
|
| -if test -n "$ac_tool_prefix"; then
|
| - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
| -set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
| +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:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
| $as_echo_n "checking for $ac_word... " >&6; }
|
| -if test "${ac_cv_prog_CC+set}" = set; then :
|
| +if test "${ac_cv_prog_CXX+set}" = set; then :
|
| $as_echo_n "(cached) " >&6
|
| else
|
| - if test -n "$CC"; then
|
| - ac_cv_prog_CC="$CC" # Let the user override the test.
|
| + 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
|
| @@ -3222,7 +3251,7 @@ do
|
| 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_CC="${ac_tool_prefix}gcc"
|
| + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
| $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
| break 2
|
| fi
|
| @@ -3232,28 +3261,32 @@ IFS=$as_save_IFS
|
|
|
| fi
|
| fi
|
| -CC=$ac_cv_prog_CC
|
| -if test -n "$CC"; then
|
| - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
| -$as_echo "$CC" >&6; }
|
| +CXX=$ac_cv_prog_CXX
|
| +if test -n "$CXX"; then
|
| + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
|
| +$as_echo "$CXX" >&6; }
|
| else
|
| { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
| $as_echo "no" >&6; }
|
| fi
|
|
|
|
|
| + test -n "$CXX" && break
|
| + done
|
| fi
|
| -if test -z "$ac_cv_prog_CC"; then
|
| - ac_ct_CC=$CC
|
| - # Extract the first word of "gcc", so it can be a program name with args.
|
| -set dummy gcc; ac_word=$2
|
| +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:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
| $as_echo_n "checking for $ac_word... " >&6; }
|
| -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
|
| +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
|
| $as_echo_n "(cached) " >&6
|
| else
|
| - if test -n "$ac_ct_CC"; then
|
| - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
| + 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
|
| @@ -3262,7 +3295,7 @@ do
|
| 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_CC="gcc"
|
| + ac_cv_prog_ac_ct_CXX="$ac_prog"
|
| $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
| break 2
|
| fi
|
| @@ -3272,17 +3305,21 @@ IFS=$as_save_IFS
|
|
|
| fi
|
| fi
|
| -ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
| -if test -n "$ac_ct_CC"; then
|
| - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
| -$as_echo "$ac_ct_CC" >&6; }
|
| +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
| +if test -n "$ac_ct_CXX"; then
|
| + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
|
| +$as_echo "$ac_ct_CXX" >&6; }
|
| else
|
| { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
| $as_echo "no" >&6; }
|
| fi
|
|
|
| - if test "x$ac_ct_CC" = x; then
|
| - CC=""
|
| +
|
| + 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:)
|
| @@ -3290,249 +3327,43 @@ yes:)
|
| $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
| ac_tool_warned=yes ;;
|
| esac
|
| - CC=$ac_ct_CC
|
| + CXX=$ac_ct_CXX
|
| fi
|
| -else
|
| - CC="$ac_cv_prog_CC"
|
| fi
|
|
|
| -if test -z "$CC"; then
|
| - if test -n "$ac_tool_prefix"; then
|
| - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
| -set dummy ${ac_tool_prefix}cc; ac_word=$2
|
| -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
| -$as_echo_n "checking for $ac_word... " >&6; }
|
| -if test "${ac_cv_prog_CC+set}" = set; then :
|
| - $as_echo_n "(cached) " >&6
|
| -else
|
| - if test -n "$CC"; then
|
| - ac_cv_prog_CC="$CC" # 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_CC="${ac_tool_prefix}cc"
|
| - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
| - break 2
|
| fi
|
| +fi
|
| +# Provide some information about the compiler.
|
| +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
|
| +set X $ac_compile
|
| +ac_compiler=$2
|
| +for ac_option in --version -v -V -qversion; do
|
| + { { ac_try="$ac_compiler $ac_option >&5"
|
| +case "(($ac_try" in
|
| + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
| + *) ac_try_echo=$ac_try;;
|
| +esac
|
| +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
| +$as_echo "$ac_try_echo"; } >&5
|
| + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
| + ac_status=$?
|
| + if test -s conftest.err; then
|
| + sed '10a\
|
| +... rest of stderr output deleted ...
|
| + 10q' conftest.err >conftest.er1
|
| + cat conftest.er1 >&5
|
| + fi
|
| + rm -f conftest.er1 conftest.err
|
| + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
| + test $ac_status = 0; }
|
| done
|
| - done
|
| -IFS=$as_save_IFS
|
|
|
| -fi
|
| -fi
|
| -CC=$ac_cv_prog_CC
|
| -if test -n "$CC"; then
|
| - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
| -$as_echo "$CC" >&6; }
|
| -else
|
| - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
| -$as_echo "no" >&6; }
|
| -fi
|
| +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| +/* end confdefs.h. */
|
|
|
| -
|
| - fi
|
| -fi
|
| -if test -z "$CC"; then
|
| - # Extract the first word of "cc", so it can be a program name with args.
|
| -set dummy cc; ac_word=$2
|
| -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
| -$as_echo_n "checking for $ac_word... " >&6; }
|
| -if test "${ac_cv_prog_CC+set}" = set; then :
|
| - $as_echo_n "(cached) " >&6
|
| -else
|
| - if test -n "$CC"; then
|
| - ac_cv_prog_CC="$CC" # Let the user override the test.
|
| -else
|
| - ac_prog_rejected=no
|
| -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
|
| - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
| - ac_prog_rejected=yes
|
| - continue
|
| - fi
|
| - ac_cv_prog_CC="cc"
|
| - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
| - break 2
|
| - fi
|
| -done
|
| - done
|
| -IFS=$as_save_IFS
|
| -
|
| -if test $ac_prog_rejected = yes; then
|
| - # We found a bogon in the path, so make sure we never use it.
|
| - set dummy $ac_cv_prog_CC
|
| - shift
|
| - if test $# != 0; then
|
| - # We chose a different compiler from the bogus one.
|
| - # However, it has the same basename, so the bogon will be chosen
|
| - # first if we set CC to just the basename; use the full file name.
|
| - shift
|
| - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
| - fi
|
| -fi
|
| -fi
|
| -fi
|
| -CC=$ac_cv_prog_CC
|
| -if test -n "$CC"; then
|
| - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
| -$as_echo "$CC" >&6; }
|
| -else
|
| - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
| -$as_echo "no" >&6; }
|
| -fi
|
| -
|
| -
|
| -fi
|
| -if test -z "$CC"; then
|
| - if test -n "$ac_tool_prefix"; then
|
| - for ac_prog in cl.exe
|
| - 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:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
| -$as_echo_n "checking for $ac_word... " >&6; }
|
| -if test "${ac_cv_prog_CC+set}" = set; then :
|
| - $as_echo_n "(cached) " >&6
|
| -else
|
| - if test -n "$CC"; then
|
| - ac_cv_prog_CC="$CC" # 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_CC="$ac_tool_prefix$ac_prog"
|
| - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
| - break 2
|
| - fi
|
| -done
|
| - done
|
| -IFS=$as_save_IFS
|
| -
|
| -fi
|
| -fi
|
| -CC=$ac_cv_prog_CC
|
| -if test -n "$CC"; then
|
| - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
| -$as_echo "$CC" >&6; }
|
| -else
|
| - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
| -$as_echo "no" >&6; }
|
| -fi
|
| -
|
| -
|
| - test -n "$CC" && break
|
| - done
|
| -fi
|
| -if test -z "$CC"; then
|
| - ac_ct_CC=$CC
|
| - for ac_prog in cl.exe
|
| -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:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
| -$as_echo_n "checking for $ac_word... " >&6; }
|
| -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
|
| - $as_echo_n "(cached) " >&6
|
| -else
|
| - if test -n "$ac_ct_CC"; then
|
| - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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_CC="$ac_prog"
|
| - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
| - break 2
|
| - fi
|
| -done
|
| - done
|
| -IFS=$as_save_IFS
|
| -
|
| -fi
|
| -fi
|
| -ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
| -if test -n "$ac_ct_CC"; then
|
| - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
| -$as_echo "$ac_ct_CC" >&6; }
|
| -else
|
| - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
| -$as_echo "no" >&6; }
|
| -fi
|
| -
|
| -
|
| - test -n "$ac_ct_CC" && break
|
| -done
|
| -
|
| - if test "x$ac_ct_CC" = x; then
|
| - CC=""
|
| - else
|
| - case $cross_compiling:$ac_tool_warned in
|
| -yes:)
|
| -{ $as_echo "$as_me:${as_lineno-$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
|
| - CC=$ac_ct_CC
|
| - fi
|
| -fi
|
| -
|
| -fi
|
| -
|
| -
|
| -test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
| -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
| -as_fn_error "no acceptable C compiler found in \$PATH
|
| -See \`config.log' for more details." "$LINENO" 5; }
|
| -
|
| -# Provide some information about the compiler.
|
| -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
| -set X $ac_compile
|
| -ac_compiler=$2
|
| -for ac_option in --version -v -V -qversion; do
|
| - { { ac_try="$ac_compiler $ac_option >&5"
|
| -case "(($ac_try" in
|
| - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
| - *) ac_try_echo=$ac_try;;
|
| -esac
|
| -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
| -$as_echo "$ac_try_echo"; } >&5
|
| - (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
| - ac_status=$?
|
| - if test -s conftest.err; then
|
| - sed '10a\
|
| -... rest of stderr output deleted ...
|
| - 10q' conftest.err >conftest.er1
|
| - cat conftest.er1 >&5
|
| - fi
|
| - rm -f conftest.er1 conftest.err
|
| - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
| - test $ac_status = 0; }
|
| -done
|
| -
|
| -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| -/* end confdefs.h. */
|
| -
|
| -int
|
| -main ()
|
| -{
|
| +int
|
| +main ()
|
| +{
|
|
|
| ;
|
| return 0;
|
| @@ -3543,8 +3374,8 @@ 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:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
| -$as_echo_n "checking whether the C compiler works... " >&6; }
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
|
| +$as_echo_n "checking whether the C++ compiler works... " >&6; }
|
| ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
|
|
| # The possible output files:
|
| @@ -3615,14 +3446,14 @@ sed 's/^/| /' conftest.$ac_ext >&5
|
| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
| $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
| { as_fn_set_status 77
|
| -as_fn_error "C compiler cannot create executables
|
| +as_fn_error "C++ compiler cannot create executables
|
| See \`config.log' for more details." "$LINENO" 5; }; }
|
| else
|
| { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
| $as_echo "yes" >&6; }
|
| fi
|
| -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
| -$as_echo_n "checking for C compiler default output file name... " >&6; }
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
|
| +$as_echo_n "checking for C++ compiler default output file name... " >&6; }
|
| { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
| $as_echo "$ac_file" >&6; }
|
| ac_exeext=$ac_cv_exeext
|
| @@ -3716,7 +3547,7 @@ $as_echo "$ac_try_echo"; } >&5
|
| else
|
| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
| $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
| -as_fn_error "cannot run C compiled programs.
|
| +as_fn_error "cannot run C++ compiled programs.
|
| If you meant to cross compile, use \`--host'.
|
| See \`config.log' for more details." "$LINENO" 5; }
|
| fi
|
| @@ -3778,9 +3609,9 @@ fi
|
| $as_echo "$ac_cv_objext" >&6; }
|
| OBJEXT=$ac_cv_objext
|
| ac_objext=$OBJEXT
|
| -{ $as_echo "$as_me:${as_lineno-$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_c_compiler_gnu+set}" = set; then :
|
| +{ $as_echo "$as_me:${as_lineno-$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 confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| @@ -3797,33 +3628,33 @@ main ()
|
| return 0;
|
| }
|
| _ACEOF
|
| -if ac_fn_c_try_compile "$LINENO"; then :
|
| +if ac_fn_cxx_try_compile "$LINENO"; then :
|
| ac_compiler_gnu=yes
|
| else
|
| ac_compiler_gnu=no
|
| fi
|
| rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
| -ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
| +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
|
|
| fi
|
| -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
| -$as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
|
| +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
|
| if test $ac_compiler_gnu = yes; then
|
| - GCC=yes
|
| + GXX=yes
|
| else
|
| - GCC=
|
| + GXX=
|
| fi
|
| -ac_test_CFLAGS=${CFLAGS+set}
|
| -ac_save_CFLAGS=$CFLAGS
|
| -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
| -$as_echo_n "checking whether $CC accepts -g... " >&6; }
|
| -if test "${ac_cv_prog_cc_g+set}" = set; then :
|
| +ac_test_CXXFLAGS=${CXXFLAGS+set}
|
| +ac_save_CXXFLAGS=$CXXFLAGS
|
| +{ $as_echo "$as_me:${as_lineno-$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_c_werror_flag=$ac_c_werror_flag
|
| - ac_c_werror_flag=yes
|
| - ac_cv_prog_cc_g=no
|
| - CFLAGS="-g"
|
| + ac_save_cxx_werror_flag=$ac_cxx_werror_flag
|
| + ac_cxx_werror_flag=yes
|
| + ac_cv_prog_cxx_g=no
|
| + CXXFLAGS="-g"
|
| cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| /* end confdefs.h. */
|
|
|
| @@ -3835,10 +3666,10 @@ main ()
|
| return 0;
|
| }
|
| _ACEOF
|
| -if ac_fn_c_try_compile "$LINENO"; then :
|
| - ac_cv_prog_cc_g=yes
|
| +if ac_fn_cxx_try_compile "$LINENO"; then :
|
| + ac_cv_prog_cxx_g=yes
|
| else
|
| - CFLAGS=""
|
| + CXXFLAGS=""
|
| cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| /* end confdefs.h. */
|
|
|
| @@ -3850,11 +3681,11 @@ main ()
|
| return 0;
|
| }
|
| _ACEOF
|
| -if ac_fn_c_try_compile "$LINENO"; then :
|
| +if ac_fn_cxx_try_compile "$LINENO"; then :
|
|
|
| else
|
| - ac_c_werror_flag=$ac_save_c_werror_flag
|
| - CFLAGS="-g"
|
| + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
| + CXXFLAGS="-g"
|
| cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| /* end confdefs.h. */
|
|
|
| @@ -3866,124 +3697,33 @@ main ()
|
| return 0;
|
| }
|
| _ACEOF
|
| -if ac_fn_c_try_compile "$LINENO"; then :
|
| - ac_cv_prog_cc_g=yes
|
| +if ac_fn_cxx_try_compile "$LINENO"; then :
|
| + ac_cv_prog_cxx_g=yes
|
| 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_c_werror_flag=$ac_save_c_werror_flag
|
| + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
| fi
|
| -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
| -$as_echo "$ac_cv_prog_cc_g" >&6; }
|
| -if test "$ac_test_CFLAGS" = set; then
|
| - CFLAGS=$ac_save_CFLAGS
|
| -elif test $ac_cv_prog_cc_g = yes; then
|
| - if test "$GCC" = yes; then
|
| - CFLAGS="-g -O2"
|
| - else
|
| - CFLAGS="-g"
|
| +{ $as_echo "$as_me:${as_lineno-$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 "$GCC" = yes; then
|
| - CFLAGS="-O2"
|
| + if test "$GXX" = yes; then
|
| + CXXFLAGS="-O2"
|
| else
|
| - CFLAGS=
|
| + CXXFLAGS=
|
| fi
|
| fi
|
| -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
| -$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
| -if test "${ac_cv_prog_cc_c89+set}" = set; then :
|
| - $as_echo_n "(cached) " >&6
|
| -else
|
| - ac_cv_prog_cc_c89=no
|
| -ac_save_CC=$CC
|
| -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| -/* end confdefs.h. */
|
| -#include <stdarg.h>
|
| -#include <stdio.h>
|
| -#include <sys/types.h>
|
| -#include <sys/stat.h>
|
| -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
| -struct buf { int x; };
|
| -FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
| -static char *e (p, i)
|
| - char **p;
|
| - int i;
|
| -{
|
| - return p[i];
|
| -}
|
| -static char *f (char * (*g) (char **, int), char **p, ...)
|
| -{
|
| - char *s;
|
| - va_list v;
|
| - va_start (v,p);
|
| - s = g (p, va_arg (v,int));
|
| - va_end (v);
|
| - return s;
|
| -}
|
| -
|
| -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
| - function prototypes and stuff, but not '\xHH' hex character constants.
|
| - These don't provoke an error unfortunately, instead are silently treated
|
| - as 'x'. The following induces an error, until -std is added to get
|
| - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
| - array size at least. It's necessary to write '\x00'==0 to get something
|
| - that's true only with -std. */
|
| -int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
| -
|
| -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
| - inside strings and character constants. */
|
| -#define FOO(x) 'x'
|
| -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
| -
|
| -int test (int i, double x);
|
| -struct s1 {int (*f) (int a);};
|
| -struct s2 {int (*f) (double a);};
|
| -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
| -int argc;
|
| -char **argv;
|
| -int
|
| -main ()
|
| -{
|
| -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
| - ;
|
| - return 0;
|
| -}
|
| -_ACEOF
|
| -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
| - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
| -do
|
| - CC="$ac_save_CC $ac_arg"
|
| - if ac_fn_c_try_compile "$LINENO"; then :
|
| - ac_cv_prog_cc_c89=$ac_arg
|
| -fi
|
| -rm -f core conftest.err conftest.$ac_objext
|
| - test "x$ac_cv_prog_cc_c89" != "xno" && break
|
| -done
|
| -rm -f conftest.$ac_ext
|
| -CC=$ac_save_CC
|
| -
|
| -fi
|
| -# AC_CACHE_VAL
|
| -case "x$ac_cv_prog_cc_c89" in
|
| - x)
|
| - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
| -$as_echo "none needed" >&6; } ;;
|
| - xno)
|
| - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
| -$as_echo "unsupported" >&6; } ;;
|
| - *)
|
| - CC="$CC $ac_cv_prog_cc_c89"
|
| - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
| -$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
| -esac
|
| -if test "x$ac_cv_prog_cc_c89" != xno; then :
|
| -
|
| -fi
|
| -
|
| ac_ext=c
|
| ac_cpp='$CPP $CPPFLAGS'
|
| ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
| @@ -4042,9 +3782,7 @@ if test "x$enable_dependency_tracking" != xno; then
|
| am_depcomp="$ac_aux_dir/depcomp"
|
| AMDEPBACKSLASH='\'
|
| fi
|
| -
|
| -
|
| -if test "x$enable_dependency_tracking" != xno; then
|
| + if test "x$enable_dependency_tracking" != xno; then
|
| AMDEP_TRUE=
|
| AMDEP_FALSE='#'
|
| else
|
| @@ -4054,12 +3792,11 @@ fi
|
|
|
|
|
|
|
| -
|
| -depcc="$CC" am_compiler_list=
|
| +depcc="$CXX" am_compiler_list=
|
|
|
| { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
|
| $as_echo_n "checking dependency style of $depcc... " >&6; }
|
| -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
|
| +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
|
| $as_echo_n "(cached) " >&6
|
| else
|
| if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
| @@ -4081,7 +3818,7 @@ else
|
| # directory.
|
| mkdir sub
|
|
|
| - am_cv_CC_dependencies_compiler_type=none
|
| + am_cv_CXX_dependencies_compiler_type=none
|
| if test "$am_compiler_list" = ""; then
|
| am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
| fi
|
| @@ -4122,6 +3859,7 @@ else
|
| depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
| $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
| >/dev/null 2>conftest.err &&
|
| + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
| grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
| grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
| ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
| @@ -4134,7 +3872,7 @@ else
|
| # icc: Command line remark: option '-MP' not supported
|
| if (grep 'ignoring option' conftest.err ||
|
| grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
| - am_cv_CC_dependencies_compiler_type=$depmode
|
| + am_cv_CXX_dependencies_compiler_type=$depmode
|
| break
|
| fi
|
| fi
|
| @@ -4143,24 +3881,22 @@ else
|
| cd ..
|
| rm -rf conftest.dir
|
| else
|
| - am_cv_CC_dependencies_compiler_type=none
|
| + am_cv_CXX_dependencies_compiler_type=none
|
| fi
|
|
|
| fi
|
| -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
|
| -$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
|
| -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
|
| -
|
| -
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
|
| +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
|
| +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
|
|
|
| -if
|
| + if
|
| test "x$enable_dependency_tracking" != xno \
|
| - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
|
| - am__fastdepCC_TRUE=
|
| - am__fastdepCC_FALSE='#'
|
| + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
|
| + am__fastdepCXX_TRUE=
|
| + am__fastdepCXX_FALSE='#'
|
| else
|
| - am__fastdepCC_TRUE='#'
|
| - am__fastdepCC_FALSE=
|
| + am__fastdepCXX_TRUE='#'
|
| + am__fastdepCXX_FALSE=
|
| fi
|
|
|
|
|
| @@ -4169,159 +3905,208 @@ 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
|
| -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
| -$as_echo_n "checking how to run the C preprocessor... " >&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 :
|
| +if test -n "$ac_tool_prefix"; then
|
| + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
| +set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
| +$as_echo_n "checking for $ac_word... " >&6; }
|
| +if test "${ac_cv_prog_CC+set}" = set; then :
|
| $as_echo_n "(cached) " >&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
|
| + if test -n "$CC"; then
|
| + ac_cv_prog_CC="$CC" # Let the user override the test.
|
| +else
|
| +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
| +for as_dir in $PATH
|
| 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 confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| -/* end confdefs.h. */
|
| -#ifdef __STDC__
|
| -# include <limits.h>
|
| -#else
|
| -# include <assert.h>
|
| -#endif
|
| - Syntax error
|
| -_ACEOF
|
| -if ac_fn_c_try_cpp "$LINENO"; then :
|
| + 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_CC="${ac_tool_prefix}gcc"
|
| + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
| + break 2
|
| + fi
|
| +done
|
| + done
|
| +IFS=$as_save_IFS
|
|
|
| -else
|
| - # Broken: fails on valid input.
|
| -continue
|
| fi
|
| -rm -f conftest.err conftest.$ac_ext
|
| -
|
| - # OK, works on sane cases. Now check whether nonexistent headers
|
| - # can be detected and how.
|
| - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| -/* end confdefs.h. */
|
| -#include <ac_nonexistent.h>
|
| -_ACEOF
|
| -if ac_fn_c_try_cpp "$LINENO"; then :
|
| - # Broken: success on invalid input.
|
| -continue
|
| -else
|
| - # 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
|
| +CC=$ac_cv_prog_CC
|
| +if test -n "$CC"; then
|
| + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
| +$as_echo "$CC" >&6; }
|
| +else
|
| + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
| +$as_echo "no" >&6; }
|
| fi
|
|
|
| - done
|
| - ac_cv_prog_CPP=$CPP
|
|
|
| fi
|
| - CPP=$ac_cv_prog_CPP
|
| +if test -z "$ac_cv_prog_CC"; then
|
| + ac_ct_CC=$CC
|
| + # Extract the first word of "gcc", so it can be a program name with args.
|
| +set dummy gcc; ac_word=$2
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
| +$as_echo_n "checking for $ac_word... " >&6; }
|
| +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
|
| + $as_echo_n "(cached) " >&6
|
| else
|
| - ac_cv_prog_CPP=$CPP
|
| -fi
|
| -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
| -$as_echo "$CPP" >&6; }
|
| -ac_preproc_ok=false
|
| -for ac_c_preproc_warn_flag in '' yes
|
| + if test -n "$ac_ct_CC"; then
|
| + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
| +else
|
| +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
| +for as_dir in $PATH
|
| 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 confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| -/* end confdefs.h. */
|
| -#ifdef __STDC__
|
| -# include <limits.h>
|
| -#else
|
| -# include <assert.h>
|
| -#endif
|
| - Syntax error
|
| -_ACEOF
|
| -if ac_fn_c_try_cpp "$LINENO"; then :
|
| + 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_CC="gcc"
|
| + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
| + break 2
|
| + fi
|
| +done
|
| + done
|
| +IFS=$as_save_IFS
|
|
|
| +fi
|
| +fi
|
| +ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
| +if test -n "$ac_ct_CC"; then
|
| + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
| +$as_echo "$ac_ct_CC" >&6; }
|
| else
|
| - # Broken: fails on valid input.
|
| -continue
|
| + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
| +$as_echo "no" >&6; }
|
| fi
|
| -rm -f conftest.err conftest.$ac_ext
|
|
|
| - # OK, works on sane cases. Now check whether nonexistent headers
|
| - # can be detected and how.
|
| - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| -/* end confdefs.h. */
|
| -#include <ac_nonexistent.h>
|
| -_ACEOF
|
| -if ac_fn_c_try_cpp "$LINENO"; then :
|
| - # Broken: success on invalid input.
|
| -continue
|
| + if test "x$ac_ct_CC" = x; then
|
| + CC=""
|
| + else
|
| + case $cross_compiling:$ac_tool_warned in
|
| +yes:)
|
| +{ $as_echo "$as_me:${as_lineno-$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
|
| + CC=$ac_ct_CC
|
| + fi
|
| else
|
| - # Passes both tests.
|
| -ac_preproc_ok=:
|
| -break
|
| + CC="$ac_cv_prog_CC"
|
| fi
|
| -rm -f conftest.err conftest.$ac_ext
|
|
|
| +if test -z "$CC"; then
|
| + if test -n "$ac_tool_prefix"; then
|
| + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
| +set dummy ${ac_tool_prefix}cc; ac_word=$2
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
| +$as_echo_n "checking for $ac_word... " >&6; }
|
| +if test "${ac_cv_prog_CC+set}" = set; then :
|
| + $as_echo_n "(cached) " >&6
|
| +else
|
| + if test -n "$CC"; then
|
| + ac_cv_prog_CC="$CC" # 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_CC="${ac_tool_prefix}cc"
|
| + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
| + break 2
|
| + fi
|
| done
|
| -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
| -rm -f conftest.err conftest.$ac_ext
|
| -if $ac_preproc_ok; then :
|
| + done
|
| +IFS=$as_save_IFS
|
|
|
| +fi
|
| +fi
|
| +CC=$ac_cv_prog_CC
|
| +if test -n "$CC"; then
|
| + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
| +$as_echo "$CC" >&6; }
|
| else
|
| - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
| -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
| -as_fn_error "C preprocessor \"$CPP\" fails sanity check
|
| -See \`config.log' for more details." "$LINENO" 5; }
|
| + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
| +$as_echo "no" >&6; }
|
| 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=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
|
| + fi
|
| +fi
|
| +if test -z "$CC"; then
|
| + # Extract the first word of "cc", so it can be a program name with args.
|
| +set dummy cc; ac_word=$2
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
| +$as_echo_n "checking for $ac_word... " >&6; }
|
| +if test "${ac_cv_prog_CC+set}" = set; then :
|
| + $as_echo_n "(cached) " >&6
|
| +else
|
| + if test -n "$CC"; then
|
| + ac_cv_prog_CC="$CC" # Let the user override the test.
|
| +else
|
| + ac_prog_rejected=no
|
| +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
|
| + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
| + ac_prog_rejected=yes
|
| + continue
|
| + fi
|
| + ac_cv_prog_CC="cc"
|
| + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
| + break 2
|
| + fi
|
| +done
|
| + done
|
| +IFS=$as_save_IFS
|
| +
|
| +if test $ac_prog_rejected = yes; then
|
| + # We found a bogon in the path, so make sure we never use it.
|
| + set dummy $ac_cv_prog_CC
|
| + shift
|
| + if test $# != 0; then
|
| + # We chose a different compiler from the bogus one.
|
| + # However, it has the same basename, so the bogon will be chosen
|
| + # first if we set CC to just the basename; use the full file name.
|
| + shift
|
| + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
| + fi
|
| +fi
|
| +fi
|
| +fi
|
| +CC=$ac_cv_prog_CC
|
| +if test -n "$CC"; then
|
| + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
| +$as_echo "$CC" >&6; }
|
| +else
|
| + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
| +$as_echo "no" >&6; }
|
| +fi
|
| +
|
| +
|
| +fi
|
| +if test -z "$CC"; then
|
| + if test -n "$ac_tool_prefix"; then
|
| + for ac_prog in cl.exe
|
| 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:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
| $as_echo_n "checking for $ac_word... " >&6; }
|
| -if test "${ac_cv_prog_CXX+set}" = set; then :
|
| +if test "${ac_cv_prog_CC+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.
|
| + if test -n "$CC"; then
|
| + ac_cv_prog_CC="$CC" # Let the user override the test.
|
| else
|
| as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
| for as_dir in $PATH
|
| @@ -4330,7 +4115,7 @@ do
|
| 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"
|
| + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
| $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
| break 2
|
| fi
|
| @@ -4340,32 +4125,32 @@ IFS=$as_save_IFS
|
|
|
| fi
|
| fi
|
| -CXX=$ac_cv_prog_CXX
|
| -if test -n "$CXX"; then
|
| - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
|
| -$as_echo "$CXX" >&6; }
|
| +CC=$ac_cv_prog_CC
|
| +if test -n "$CC"; then
|
| + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
| +$as_echo "$CC" >&6; }
|
| else
|
| { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
| $as_echo "no" >&6; }
|
| fi
|
|
|
|
|
| - test -n "$CXX" && break
|
| + test -n "$CC" && 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
|
| +if test -z "$CC"; then
|
| + ac_ct_CC=$CC
|
| + for ac_prog in cl.exe
|
| 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:${as_lineno-$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 :
|
| +if test "${ac_cv_prog_ac_ct_CC+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.
|
| + if test -n "$ac_ct_CC"; then
|
| + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
| else
|
| as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
| for as_dir in $PATH
|
| @@ -4374,7 +4159,7 @@ do
|
| 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"
|
| + ac_cv_prog_ac_ct_CC="$ac_prog"
|
| $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
| break 2
|
| fi
|
| @@ -4384,21 +4169,21 @@ 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:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
|
| -$as_echo "$ac_ct_CXX" >&6; }
|
| +ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
| +if test -n "$ac_ct_CC"; then
|
| + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
| +$as_echo "$ac_ct_CC" >&6; }
|
| else
|
| { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
| $as_echo "no" >&6; }
|
| fi
|
|
|
|
|
| - test -n "$ac_ct_CXX" && break
|
| + test -n "$ac_ct_CC" && break
|
| done
|
|
|
| - if test "x$ac_ct_CXX" = x; then
|
| - CXX="g++"
|
| + if test "x$ac_ct_CC" = x; then
|
| + CC=""
|
| else
|
| case $cross_compiling:$ac_tool_warned in
|
| yes:)
|
| @@ -4406,14 +4191,20 @@ yes:)
|
| $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
| ac_tool_warned=yes ;;
|
| esac
|
| - CXX=$ac_ct_CXX
|
| + CC=$ac_ct_CC
|
| fi
|
| fi
|
|
|
| - fi
|
| fi
|
| +
|
| +
|
| +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
| +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
| +as_fn_error "no acceptable C compiler found in \$PATH
|
| +See \`config.log' for more details." "$LINENO" 5; }
|
| +
|
| # Provide some information about the compiler.
|
| -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
|
| +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
| set X $ac_compile
|
| ac_compiler=$2
|
| for ac_option in --version -v -V -qversion; do
|
| @@ -4437,9 +4228,9 @@ $as_echo "$ac_try_echo"; } >&5
|
| test $ac_status = 0; }
|
| done
|
|
|
| -{ $as_echo "$as_me:${as_lineno-$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 "$as_me:${as_lineno-$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_c_compiler_gnu+set}" = set; then :
|
| $as_echo_n "(cached) " >&6
|
| else
|
| cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| @@ -4456,33 +4247,33 @@ main ()
|
| return 0;
|
| }
|
| _ACEOF
|
| -if ac_fn_cxx_try_compile "$LINENO"; then :
|
| +if ac_fn_c_try_compile "$LINENO"; then :
|
| ac_compiler_gnu=yes
|
| else
|
| ac_compiler_gnu=no
|
| fi
|
| rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
| -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
| +ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
|
|
| fi
|
| -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
|
| -$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
| +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
| if test $ac_compiler_gnu = yes; then
|
| - GXX=yes
|
| + GCC=yes
|
| else
|
| - GXX=
|
| + GCC=
|
| fi
|
| -ac_test_CXXFLAGS=${CXXFLAGS+set}
|
| -ac_save_CXXFLAGS=$CXXFLAGS
|
| -{ $as_echo "$as_me:${as_lineno-$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 :
|
| +ac_test_CFLAGS=${CFLAGS+set}
|
| +ac_save_CFLAGS=$CFLAGS
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
| +$as_echo_n "checking whether $CC accepts -g... " >&6; }
|
| +if test "${ac_cv_prog_cc_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"
|
| + ac_save_c_werror_flag=$ac_c_werror_flag
|
| + ac_c_werror_flag=yes
|
| + ac_cv_prog_cc_g=no
|
| + CFLAGS="-g"
|
| cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| /* end confdefs.h. */
|
|
|
| @@ -4494,10 +4285,10 @@ main ()
|
| return 0;
|
| }
|
| _ACEOF
|
| -if ac_fn_cxx_try_compile "$LINENO"; then :
|
| - ac_cv_prog_cxx_g=yes
|
| +if ac_fn_c_try_compile "$LINENO"; then :
|
| + ac_cv_prog_cc_g=yes
|
| else
|
| - CXXFLAGS=""
|
| + CFLAGS=""
|
| cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| /* end confdefs.h. */
|
|
|
| @@ -4509,11 +4300,11 @@ main ()
|
| return 0;
|
| }
|
| _ACEOF
|
| -if ac_fn_cxx_try_compile "$LINENO"; then :
|
| +if ac_fn_c_try_compile "$LINENO"; then :
|
|
|
| else
|
| - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
| - CXXFLAGS="-g"
|
| + ac_c_werror_flag=$ac_save_c_werror_flag
|
| + CFLAGS="-g"
|
| cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| /* end confdefs.h. */
|
|
|
| @@ -4525,44 +4316,135 @@ main ()
|
| return 0;
|
| }
|
| _ACEOF
|
| -if ac_fn_cxx_try_compile "$LINENO"; then :
|
| - ac_cv_prog_cxx_g=yes
|
| +if ac_fn_c_try_compile "$LINENO"; then :
|
| + ac_cv_prog_cc_g=yes
|
| 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
|
| + ac_c_werror_flag=$ac_save_c_werror_flag
|
| fi
|
| -{ $as_echo "$as_me:${as_lineno-$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"
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
| +$as_echo "$ac_cv_prog_cc_g" >&6; }
|
| +if test "$ac_test_CFLAGS" = set; then
|
| + CFLAGS=$ac_save_CFLAGS
|
| +elif test $ac_cv_prog_cc_g = yes; then
|
| + if test "$GCC" = yes; then
|
| + CFLAGS="-g -O2"
|
| else
|
| - CXXFLAGS="-g"
|
| + CFLAGS="-g"
|
| fi
|
| else
|
| - if test "$GXX" = yes; then
|
| - CXXFLAGS="-O2"
|
| + if test "$GCC" = yes; then
|
| + CFLAGS="-O2"
|
| else
|
| - CXXFLAGS=
|
| + CFLAGS=
|
| fi
|
| fi
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
| +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
| +if test "${ac_cv_prog_cc_c89+set}" = set; then :
|
| + $as_echo_n "(cached) " >&6
|
| +else
|
| + ac_cv_prog_cc_c89=no
|
| +ac_save_CC=$CC
|
| +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| +/* end confdefs.h. */
|
| +#include <stdarg.h>
|
| +#include <stdio.h>
|
| +#include <sys/types.h>
|
| +#include <sys/stat.h>
|
| +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
| +struct buf { int x; };
|
| +FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
| +static char *e (p, i)
|
| + char **p;
|
| + int i;
|
| +{
|
| + return p[i];
|
| +}
|
| +static char *f (char * (*g) (char **, int), char **p, ...)
|
| +{
|
| + char *s;
|
| + va_list v;
|
| + va_start (v,p);
|
| + s = g (p, va_arg (v,int));
|
| + va_end (v);
|
| + return s;
|
| +}
|
| +
|
| +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
| + function prototypes and stuff, but not '\xHH' hex character constants.
|
| + These don't provoke an error unfortunately, instead are silently treated
|
| + as 'x'. The following induces an error, until -std is added to get
|
| + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
| + array size at least. It's necessary to write '\x00'==0 to get something
|
| + that's true only with -std. */
|
| +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
| +
|
| +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
| + inside strings and character constants. */
|
| +#define FOO(x) 'x'
|
| +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
| +
|
| +int test (int i, double x);
|
| +struct s1 {int (*f) (int a);};
|
| +struct s2 {int (*f) (double a);};
|
| +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
| +int argc;
|
| +char **argv;
|
| +int
|
| +main ()
|
| +{
|
| +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
| + ;
|
| + return 0;
|
| +}
|
| +_ACEOF
|
| +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
| + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
| +do
|
| + CC="$ac_save_CC $ac_arg"
|
| + if ac_fn_c_try_compile "$LINENO"; then :
|
| + ac_cv_prog_cc_c89=$ac_arg
|
| +fi
|
| +rm -f core conftest.err conftest.$ac_objext
|
| + test "x$ac_cv_prog_cc_c89" != "xno" && break
|
| +done
|
| +rm -f conftest.$ac_ext
|
| +CC=$ac_save_CC
|
| +
|
| +fi
|
| +# AC_CACHE_VAL
|
| +case "x$ac_cv_prog_cc_c89" in
|
| + x)
|
| + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
| +$as_echo "none needed" >&6; } ;;
|
| + xno)
|
| + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
| +$as_echo "unsupported" >&6; } ;;
|
| + *)
|
| + CC="$CC $ac_cv_prog_cc_c89"
|
| + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
| +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
| +esac
|
| +if test "x$ac_cv_prog_cc_c89" != xno; then :
|
| +
|
| +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
|
|
|
| -depcc="$CXX" am_compiler_list=
|
| +depcc="$CC" am_compiler_list=
|
|
|
| { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
|
| $as_echo_n "checking dependency style of $depcc... " >&6; }
|
| -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
|
| +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
|
| $as_echo_n "(cached) " >&6
|
| else
|
| if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
| @@ -4584,7 +4466,7 @@ else
|
| # directory.
|
| mkdir sub
|
|
|
| - am_cv_CXX_dependencies_compiler_type=none
|
| + am_cv_CC_dependencies_compiler_type=none
|
| if test "$am_compiler_list" = ""; then
|
| am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
| fi
|
| @@ -4625,6 +4507,7 @@ else
|
| depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
| $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
| >/dev/null 2>conftest.err &&
|
| + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
| grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
| grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
| ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
| @@ -4637,7 +4520,7 @@ else
|
| # icc: Command line remark: option '-MP' not supported
|
| if (grep 'ignoring option' conftest.err ||
|
| grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
| - am_cv_CXX_dependencies_compiler_type=$depmode
|
| + am_cv_CC_dependencies_compiler_type=$depmode
|
| break
|
| fi
|
| fi
|
| @@ -4646,30 +4529,163 @@ else
|
| cd ..
|
| rm -rf conftest.dir
|
| else
|
| - am_cv_CXX_dependencies_compiler_type=none
|
| + am_cv_CC_dependencies_compiler_type=none
|
| fi
|
|
|
| fi
|
| -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
|
| -$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
|
| -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
|
| +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
|
| +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
|
|
|
| + if
|
| + test "x$enable_dependency_tracking" != xno \
|
| + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
|
| + am__fastdepCC_TRUE=
|
| + am__fastdepCC_FALSE='#'
|
| +else
|
| + am__fastdepCC_TRUE='#'
|
| + am__fastdepCC_FALSE=
|
| +fi
|
|
|
|
|
| -if
|
| - test "x$enable_dependency_tracking" != xno \
|
| - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
|
| - am__fastdepCXX_TRUE=
|
| - am__fastdepCXX_FALSE='#'
|
| +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
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
| +$as_echo_n "checking how to run the C preprocessor... " >&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 :
|
| + $as_echo_n "(cached) " >&6
|
| else
|
| - am__fastdepCXX_TRUE='#'
|
| - am__fastdepCXX_FALSE=
|
| + # 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 confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| +/* end confdefs.h. */
|
| +#ifdef __STDC__
|
| +# include <limits.h>
|
| +#else
|
| +# include <assert.h>
|
| +#endif
|
| + Syntax error
|
| +_ACEOF
|
| +if ac_fn_c_try_cpp "$LINENO"; then :
|
| +
|
| +else
|
| + # Broken: fails on valid input.
|
| +continue
|
| fi
|
| +rm -f conftest.err conftest.$ac_ext
|
|
|
| + # OK, works on sane cases. Now check whether nonexistent headers
|
| + # can be detected and how.
|
| + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| +/* end confdefs.h. */
|
| +#include <ac_nonexistent.h>
|
| +_ACEOF
|
| +if ac_fn_c_try_cpp "$LINENO"; then :
|
| + # Broken: success on invalid input.
|
| +continue
|
| +else
|
| + # 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
|
|
|
| -if test "$GCC" = yes; then
|
| +fi
|
| + CPP=$ac_cv_prog_CPP
|
| +else
|
| + ac_cv_prog_CPP=$CPP
|
| +fi
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
| +$as_echo "$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 confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| +/* end confdefs.h. */
|
| +#ifdef __STDC__
|
| +# include <limits.h>
|
| +#else
|
| +# include <assert.h>
|
| +#endif
|
| + Syntax error
|
| +_ACEOF
|
| +if ac_fn_c_try_cpp "$LINENO"; then :
|
| +
|
| +else
|
| + # Broken: fails on valid input.
|
| +continue
|
| +fi
|
| +rm -f conftest.err conftest.$ac_ext
|
| +
|
| + # OK, works on sane cases. Now check whether nonexistent headers
|
| + # can be detected and how.
|
| + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| +/* end confdefs.h. */
|
| +#include <ac_nonexistent.h>
|
| +_ACEOF
|
| +if ac_fn_c_try_cpp "$LINENO"; then :
|
| + # Broken: success on invalid input.
|
| +continue
|
| +else
|
| + # 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
|
| + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
| +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
| +as_fn_error "C preprocessor \"$CPP\" fails sanity check
|
| +See \`config.log' for more details." "$LINENO" 5; }
|
| +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
|
| +
|
| + if test "$GCC" = yes; then
|
| GCC_TRUE=
|
| GCC_FALSE='#'
|
| else
|
| @@ -4800,6 +4816,7 @@ if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
|
| # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
|
| CC="$am_aux_dir/compile $CC"
|
| fi
|
| +
|
| # shrug: autogen.sh suddenly needs this for some reason
|
|
|
| # Check if we have an objcopy installed that supports -W
|
| @@ -4923,9 +4940,7 @@ $as_echo "$gpt_cv_objcopy_weaken" >&6; }
|
| else
|
| gpt_cv_objcopy_weaken=no
|
| fi
|
| -
|
| -
|
| -if test $gpt_cv_objcopy_weaken = yes; then
|
| + if test $gpt_cv_objcopy_weaken = yes; then
|
| HAVE_OBJCOPY_WEAKEN_TRUE=
|
| HAVE_OBJCOPY_WEAKEN_FALSE='#'
|
| else
|
| @@ -5613,13 +5628,13 @@ if test "${lt_cv_nm_interface+set}" = set; then :
|
| else
|
| lt_cv_nm_interface="BSD nm"
|
| echo "int some_variable = 0;" > conftest.$ac_ext
|
| - (eval echo "\"\$as_me:5616: $ac_compile\"" >&5)
|
| + (eval echo "\"\$as_me:5631: $ac_compile\"" >&5)
|
| (eval "$ac_compile" 2>conftest.err)
|
| cat conftest.err >&5
|
| - (eval echo "\"\$as_me:5619: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
|
| + (eval echo "\"\$as_me:5634: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
|
| (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
|
| cat conftest.err >&5
|
| - (eval echo "\"\$as_me:5622: output\"" >&5)
|
| + (eval echo "\"\$as_me:5637: output\"" >&5)
|
| cat conftest.out >&5
|
| if $GREP 'External.*some_variable' conftest.out > /dev/null; then
|
| lt_cv_nm_interface="MS dumpbin"
|
| @@ -6824,7 +6839,7 @@ ia64-*-hpux*)
|
| ;;
|
| *-*-irix6*)
|
| # Find out which ABI we are using.
|
| - echo '#line 6827 "configure"' > conftest.$ac_ext
|
| + echo '#line 6842 "configure"' > conftest.$ac_ext
|
| if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
| (eval $ac_compile) 2>&5
|
| ac_status=$?
|
| @@ -8041,6 +8056,7 @@ else
|
| depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
| $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
| >/dev/null 2>conftest.err &&
|
| + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
| grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
| grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
| ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
| @@ -8070,9 +8086,7 @@ fi
|
| $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
|
| CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
|
|
|
| -
|
| -
|
| -if
|
| + if
|
| test "x$enable_dependency_tracking" != xno \
|
| && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
|
| am__fastdepCXX_TRUE=
|
| @@ -8697,11 +8711,11 @@ else
|
| -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
| -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
| -e 's:$: $lt_compiler_flag:'`
|
| - (eval echo "\"\$as_me:8700: $lt_compile\"" >&5)
|
| + (eval echo "\"\$as_me:8714: $lt_compile\"" >&5)
|
| (eval "$lt_compile" 2>conftest.err)
|
| ac_status=$?
|
| cat conftest.err >&5
|
| - echo "$as_me:8704: \$? = $ac_status" >&5
|
| + echo "$as_me:8718: \$? = $ac_status" >&5
|
| if (exit $ac_status) && test -s "$ac_outfile"; then
|
| # The compiler can only warn and ignore the option if not recognized
|
| # So say no if there are warnings other than the usual output.
|
| @@ -9036,11 +9050,11 @@ else
|
| -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
| -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
| -e 's:$: $lt_compiler_flag:'`
|
| - (eval echo "\"\$as_me:9039: $lt_compile\"" >&5)
|
| + (eval echo "\"\$as_me:9053: $lt_compile\"" >&5)
|
| (eval "$lt_compile" 2>conftest.err)
|
| ac_status=$?
|
| cat conftest.err >&5
|
| - echo "$as_me:9043: \$? = $ac_status" >&5
|
| + echo "$as_me:9057: \$? = $ac_status" >&5
|
| if (exit $ac_status) && test -s "$ac_outfile"; then
|
| # The compiler can only warn and ignore the option if not recognized
|
| # So say no if there are warnings other than the usual output.
|
| @@ -9141,11 +9155,11 @@ else
|
| -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
| -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
| -e 's:$: $lt_compiler_flag:'`
|
| - (eval echo "\"\$as_me:9144: $lt_compile\"" >&5)
|
| + (eval echo "\"\$as_me:9158: $lt_compile\"" >&5)
|
| (eval "$lt_compile" 2>out/conftest.err)
|
| ac_status=$?
|
| cat out/conftest.err >&5
|
| - echo "$as_me:9148: \$? = $ac_status" >&5
|
| + echo "$as_me:9162: \$? = $ac_status" >&5
|
| if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
| then
|
| # The compiler can only warn and ignore the option if not recognized
|
| @@ -9196,11 +9210,11 @@ else
|
| -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
| -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
| -e 's:$: $lt_compiler_flag:'`
|
| - (eval echo "\"\$as_me:9199: $lt_compile\"" >&5)
|
| + (eval echo "\"\$as_me:9213: $lt_compile\"" >&5)
|
| (eval "$lt_compile" 2>out/conftest.err)
|
| ac_status=$?
|
| cat out/conftest.err >&5
|
| - echo "$as_me:9203: \$? = $ac_status" >&5
|
| + echo "$as_me:9217: \$? = $ac_status" >&5
|
| if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
| then
|
| # The compiler can only warn and ignore the option if not recognized
|
| @@ -11580,7 +11594,7 @@ else
|
| lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
| lt_status=$lt_dlunknown
|
| cat > conftest.$ac_ext <<_LT_EOF
|
| -#line 11583 "configure"
|
| +#line 11597 "configure"
|
| #include "confdefs.h"
|
|
|
| #if HAVE_DLFCN_H
|
| @@ -11676,7 +11690,7 @@ else
|
| lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
| lt_status=$lt_dlunknown
|
| cat > conftest.$ac_ext <<_LT_EOF
|
| -#line 11679 "configure"
|
| +#line 11693 "configure"
|
| #include "confdefs.h"
|
|
|
| #if HAVE_DLFCN_H
|
| @@ -13632,11 +13646,11 @@ else
|
| -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
| -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
| -e 's:$: $lt_compiler_flag:'`
|
| - (eval echo "\"\$as_me:13635: $lt_compile\"" >&5)
|
| + (eval echo "\"\$as_me:13649: $lt_compile\"" >&5)
|
| (eval "$lt_compile" 2>conftest.err)
|
| ac_status=$?
|
| cat conftest.err >&5
|
| - echo "$as_me:13639: \$? = $ac_status" >&5
|
| + echo "$as_me:13653: \$? = $ac_status" >&5
|
| if (exit $ac_status) && test -s "$ac_outfile"; then
|
| # The compiler can only warn and ignore the option if not recognized
|
| # So say no if there are warnings other than the usual output.
|
| @@ -13731,11 +13745,11 @@ else
|
| -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
| -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
| -e 's:$: $lt_compiler_flag:'`
|
| - (eval echo "\"\$as_me:13734: $lt_compile\"" >&5)
|
| + (eval echo "\"\$as_me:13748: $lt_compile\"" >&5)
|
| (eval "$lt_compile" 2>out/conftest.err)
|
| ac_status=$?
|
| cat out/conftest.err >&5
|
| - echo "$as_me:13738: \$? = $ac_status" >&5
|
| + echo "$as_me:13752: \$? = $ac_status" >&5
|
| if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
| then
|
| # The compiler can only warn and ignore the option if not recognized
|
| @@ -13783,11 +13797,11 @@ else
|
| -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
| -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
| -e 's:$: $lt_compiler_flag:'`
|
| - (eval echo "\"\$as_me:13786: $lt_compile\"" >&5)
|
| + (eval echo "\"\$as_me:13800: $lt_compile\"" >&5)
|
| (eval "$lt_compile" 2>out/conftest.err)
|
| ac_status=$?
|
| cat out/conftest.err >&5
|
| - echo "$as_me:13790: \$? = $ac_status" >&5
|
| + echo "$as_me:13804: \$? = $ac_status" >&5
|
| if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
| then
|
| # The compiler can only warn and ignore the option if not recognized
|
| @@ -14751,9 +14765,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
|
| -
|
| -
|
| -if test "x$LIBTOOL" != "x"; then
|
| + if test "x$LIBTOOL" != "x"; then
|
| USE_LIBTOOL_TRUE=
|
| USE_LIBTOOL_FALSE='#'
|
| else
|
| @@ -15361,7 +15373,7 @@ _ACEOF
|
|
|
| if test "$ac_cv_type_struct_mallinfo" = yes; then
|
| ac_cv_have_struct_mallinfo=1
|
| - # google/tcmalloc.h needs this
|
| + # gperftools/tcmalloc.h needs this
|
| else
|
| ac_cv_have_struct_mallinfo=0
|
|
|
| @@ -15823,9 +15835,7 @@ $as_echo "$as_me: WARNING: Could not find the PC. Will not try to compile libpr
|
| fi
|
|
|
| # Some tests test the behavior of .so files, and only make sense for dynamic.
|
| -
|
| -
|
| -if test "$enable_static" = yes; then
|
| + if test "$enable_static" = yes; then
|
| ENABLE_STATIC_TRUE=
|
| ENABLE_STATIC_FALSE='#'
|
| else
|
| @@ -15888,9 +15898,7 @@ else
|
| enable_frame_pointers=no
|
| fi
|
|
|
| -
|
| -
|
| -if test "$enable_frame_pointers" = yes; then
|
| + if test "$enable_frame_pointers" = yes; then
|
| ENABLE_FRAME_POINTERS_TRUE=
|
| ENABLE_FRAME_POINTERS_FALSE='#'
|
| else
|
| @@ -15940,9 +15948,7 @@ else
|
| :
|
| fi
|
| rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
| -
|
| -
|
| -if test "$is_x86_64" = yes && ! grep 'mov.*rsp.*rbp' fp.s >/dev/null 2>&1; then
|
| + if test "$is_x86_64" = yes && ! grep 'mov.*rsp.*rbp' fp.s >/dev/null 2>&1; then
|
| X86_64_AND_NO_FP_BY_DEFAULT_TRUE=
|
| X86_64_AND_NO_FP_BY_DEFAULT_FALSE='#'
|
| else
|
| @@ -15953,6 +15959,34 @@ fi
|
| rm fp.s
|
| CFLAGS="$OLD_CFLAGS"
|
|
|
| +# We need to know if we're i386 so we can turn on -mmms, which is not
|
| +# on by default for i386 (it is for x86_64).
|
| +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| +/* end confdefs.h. */
|
| +
|
| +int
|
| +main ()
|
| +{
|
| +return __i386__ == 1 ? 0 : 1
|
| + ;
|
| + return 0;
|
| +}
|
| +_ACEOF
|
| +if ac_fn_c_try_compile "$LINENO"; then :
|
| + is_i386=yes
|
| +else
|
| + is_i386=no
|
| +fi
|
| +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
| + if test "$is_i386" = yes; then
|
| + I386_TRUE=
|
| + I386_FALSE='#'
|
| +else
|
| + I386_TRUE='#'
|
| + I386_FALSE=
|
| +fi
|
| +
|
| +
|
| # See if the compiler supports -Wno-unused-result.
|
| # Newer ubuntu's turn on -D_FORTIFY_SOURCE=2, enabling
|
| # __attribute__((warn_unused_result)) for things like write(),
|
| @@ -15989,9 +16023,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
| fi
|
| { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perftools_cv_w_no_unused_result" >&5
|
| $as_echo "$perftools_cv_w_no_unused_result" >&6; }
|
| -
|
| -
|
| -if test "$perftools_cv_w_no_unused_result" = yes; then
|
| + if test "$perftools_cv_w_no_unused_result" = yes; then
|
| HAVE_W_NO_UNUSED_RESULT_TRUE=
|
| HAVE_W_NO_UNUSED_RESULT_FALSE='#'
|
| else
|
| @@ -16188,7 +16220,7 @@ $as_echo "#define MALLOC_HOOK_MAYBE_VOLATILE volatile" >>confdefs.h
|
| $as_echo "yes" >&6; }
|
| else
|
| $as_echo "#define MALLOC_HOOK_MAYBE_VOLATILE /**/" >>confdefs.h
|
| -,
|
| +
|
| { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
| $as_echo "no" >&6; }
|
| fi
|
| @@ -17053,7 +17085,7 @@ $as_echo "#define PERFTOOLS_DLL_DECL /**/" >>confdefs.h
|
| # the end result is if config.h is #included twice, its #undefs get
|
| # evaluated twice, but all the ones in mingw.h/etc only get evaluated
|
| # once, potentially causing trouble. c.f.
|
| -# http://code.google.com/p/google-perftools/issues/detail?id=246
|
| +# http://code.google.com/p/gperftools/issues/detail?id=246
|
|
|
|
|
|
|
| @@ -17066,9 +17098,7 @@ $as_echo "#define PERFTOOLS_DLL_DECL /**/" >>confdefs.h
|
| # Also, manually mark systems where we have to be careful how early
|
| # we run pthreads. TODO(csilvers): turn this into an autoconf check.
|
|
|
| -
|
| -
|
| -if expr $host : '.*-mingw' >/dev/null 2>&1; then
|
| + if expr $host : '.*-mingw' >/dev/null 2>&1; then
|
| MINGW_TRUE=
|
| MINGW_FALSE='#'
|
| else
|
| @@ -17076,9 +17106,7 @@ else
|
| MINGW_FALSE=
|
| fi
|
|
|
| -
|
| -
|
| -if expr $host : '.*-apple-darwin.*' >/dev/null 2>&1; then
|
| + if expr $host : '.*-apple-darwin.*' >/dev/null 2>&1; then
|
| OSX_TRUE=
|
| OSX_FALSE='#'
|
| else
|
| @@ -17099,9 +17127,7 @@ fi
|
| # Export the --enable flags we set above. We do this at the end so
|
| # other configure rules can enable or disable targets based on what
|
| # they find.
|
| -
|
| -
|
| -if test "$enable_cpu_profiler" = yes; then
|
| + if test "$enable_cpu_profiler" = yes; then
|
| WITH_CPU_PROFILER_TRUE=
|
| WITH_CPU_PROFILER_FALSE='#'
|
| else
|
| @@ -17109,9 +17135,7 @@ else
|
| WITH_CPU_PROFILER_FALSE=
|
| fi
|
|
|
| -
|
| -
|
| -if test "$enable_heap_profiler" = yes; then
|
| + if test "$enable_heap_profiler" = yes; then
|
| WITH_HEAP_PROFILER_TRUE=
|
| WITH_HEAP_PROFILER_FALSE='#'
|
| else
|
| @@ -17119,9 +17143,7 @@ else
|
| WITH_HEAP_PROFILER_FALSE=
|
| fi
|
|
|
| -
|
| -
|
| -if test "$enable_heap_checker" = yes; then
|
| + if test "$enable_heap_checker" = yes; then
|
| WITH_HEAP_CHECKER_TRUE=
|
| WITH_HEAP_CHECKER_FALSE='#'
|
| else
|
| @@ -17129,9 +17151,7 @@ else
|
| WITH_HEAP_CHECKER_FALSE=
|
| fi
|
|
|
| -
|
| -
|
| -if test "$enable_debugalloc" = yes; then
|
| + if test "$enable_debugalloc" = yes; then
|
| WITH_DEBUGALLOC_TRUE=
|
| WITH_DEBUGALLOC_FALSE='#'
|
| else
|
| @@ -17140,9 +17160,7 @@ else
|
| fi
|
|
|
| # We make tcmalloc.so if either heap-profiler or heap-checker is asked for.
|
| -
|
| -
|
| -if test "$enable_heap_profiler" = yes -o \
|
| + if test "$enable_heap_profiler" = yes -o \
|
| "$enable_heap_checker" = yes; then
|
| WITH_HEAP_PROFILER_OR_CHECKER_TRUE=
|
| WITH_HEAP_PROFILER_OR_CHECKER_FALSE='#'
|
| @@ -17152,9 +17170,7 @@ else
|
| fi
|
|
|
| # If we don't use any profilers, we don't need stack traces (or pprof)
|
| -
|
| -
|
| -if test "$enable_cpu_profiler" = yes -o \
|
| + if test "$enable_cpu_profiler" = yes -o \
|
| "$enable_heap_profiler" = yes -o \
|
| "$enable_heap_checker" = yes; then
|
| WITH_STACK_TRACE_TRUE=
|
| @@ -17166,7 +17182,7 @@ fi
|
|
|
|
|
| # Write generated configuration file
|
| -ac_config_files="$ac_config_files Makefile src/google/tcmalloc.h src/windows/google/tcmalloc.h"
|
| +ac_config_files="$ac_config_files Makefile src/gperftools/tcmalloc.h src/windows/gperftools/tcmalloc.h"
|
|
|
| cat >confcache <<\_ACEOF
|
| # This file is a shell script that caches the results of configure
|
| @@ -17269,14 +17285,14 @@ if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
|
| as_fn_error "conditional \"AMDEP\" was never defined.
|
| Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
| fi
|
| -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
|
| - as_fn_error "conditional \"am__fastdepCC\" was never defined.
|
| -Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
| -fi
|
| if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
|
| as_fn_error "conditional \"am__fastdepCXX\" was never defined.
|
| Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
| fi
|
| +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
|
| + as_fn_error "conditional \"am__fastdepCC\" was never defined.
|
| +Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
| +fi
|
| if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
|
| as_fn_error "conditional \"GCC\" was never defined.
|
| Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
| @@ -17305,6 +17321,10 @@ if test -z "${X86_64_AND_NO_FP_BY_DEFAULT_TRUE}" && test -z "${X86_64_AND_NO_FP_
|
| as_fn_error "conditional \"X86_64_AND_NO_FP_BY_DEFAULT\" was never defined.
|
| Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
| fi
|
| +if test -z "${I386_TRUE}" && test -z "${I386_FALSE}"; then
|
| + as_fn_error "conditional \"I386\" was never defined.
|
| +Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
| +fi
|
| if test -z "${HAVE_W_NO_UNUSED_RESULT_TRUE}" && test -z "${HAVE_W_NO_UNUSED_RESULT_FALSE}"; then
|
| as_fn_error "conditional \"HAVE_W_NO_UNUSED_RESULT\" was never defined.
|
| Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
| @@ -17749,7 +17769,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
| # report actual input values of CONFIG_FILES etc. instead of their
|
| # values after options handling.
|
| ac_log="
|
| -This file was extended by google-perftools $as_me 1.8, which was
|
| +This file was extended by gperftools $as_me 2.0, which was
|
| generated by GNU Autoconf 2.65. Invocation command line was
|
|
|
| CONFIG_FILES = $CONFIG_FILES
|
| @@ -17809,13 +17829,13 @@ $config_headers
|
| Configuration commands:
|
| $config_commands
|
|
|
| -Report bugs to <opensource@google.com>."
|
| +Report bugs to <google-perftools@googlegroups.com>."
|
|
|
| _ACEOF
|
| cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
| ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
| ac_cs_version="\\
|
| -google-perftools config.status 1.8
|
| +gperftools config.status 2.0
|
| configured by $0, generated by GNU Autoconf 2.65,
|
| with options \\"\$ac_cs_config\\"
|
|
|
| @@ -17826,6 +17846,7 @@ gives unlimited permission to copy, distribute and modify it."
|
| ac_pwd='$ac_pwd'
|
| srcdir='$srcdir'
|
| INSTALL='$INSTALL'
|
| +MKDIR_P='$MKDIR_P'
|
| AWK='$AWK'
|
| test -n "\$AWK" || AWK=awk
|
| _ACEOF
|
| @@ -18292,8 +18313,8 @@ do
|
| "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
|
| "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
|
| "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
| - "src/google/tcmalloc.h") CONFIG_FILES="$CONFIG_FILES src/google/tcmalloc.h" ;;
|
| - "src/windows/google/tcmalloc.h") CONFIG_FILES="$CONFIG_FILES src/windows/google/tcmalloc.h" ;;
|
| + "src/gperftools/tcmalloc.h") CONFIG_FILES="$CONFIG_FILES src/gperftools/tcmalloc.h" ;;
|
| + "src/windows/gperftools/tcmalloc.h") CONFIG_FILES="$CONFIG_FILES src/windows/gperftools/tcmalloc.h" ;;
|
|
|
| *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
| esac
|
| @@ -18732,6 +18753,11 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
| [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
| *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
| esac
|
| + ac_MKDIR_P=$MKDIR_P
|
| + case $MKDIR_P in
|
| + [\\/$]* | ?:[\\/]* ) ;;
|
| + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
|
| + esac
|
| _ACEOF
|
|
|
| cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
| @@ -18786,6 +18812,7 @@ s&@builddir@&$ac_builddir&;t t
|
| s&@abs_builddir@&$ac_abs_builddir&;t t
|
| s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
| s&@INSTALL@&$ac_INSTALL&;t t
|
| +s&@MKDIR_P@&$ac_MKDIR_P&;t t
|
| $ac_datarootdir_hack
|
| "
|
| eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
|
| @@ -18830,21 +18857,22 @@ $as_echo "$as_me: $ac_file is unchanged" >&6;}
|
| || as_fn_error "could not create -" "$LINENO" 5
|
| fi
|
| # Compute "$ac_file"'s index in $config_headers.
|
| +_am_arg="$ac_file"
|
| _am_stamp_count=1
|
| for _am_header in $config_headers :; do
|
| case $_am_header in
|
| - "$ac_file" | "$ac_file":* )
|
| + $_am_arg | $_am_arg:* )
|
| break ;;
|
| * )
|
| _am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
| esac
|
| done
|
| -echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
|
| -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
| - X"$ac_file" : 'X\(//\)[^/]' \| \
|
| - X"$ac_file" : 'X\(//\)$' \| \
|
| - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
| -$as_echo X"$ac_file" |
|
| +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
|
| +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
| + X"$_am_arg" : 'X\(//\)[^/]' \| \
|
| + X"$_am_arg" : 'X\(//\)$' \| \
|
| + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
|
| +$as_echo X"$_am_arg" |
|
| sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
| s//\1/
|
| q
|
| @@ -18879,8 +18907,9 @@ $as_echo "$as_me: executing $ac_file commands" >&6;}
|
| # some people rename them; so instead we look at the file content.
|
| # Grep'ing the first line is not enough: some people post-process
|
| # each Makefile.in and add a new line on top of each file to say so.
|
| - # So let's grep whole file.
|
| - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
|
| + # Grep'ing the whole file is not good either: AIX grep has a line
|
| + # limit of 2048, but all sed's we know have understand at least 4000.
|
| + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
|
| dirpart=`$as_dirname -- "$mf" ||
|
| $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
| X"$mf" : 'X\(//\)[^/]' \| \
|
|
|