Skip to content
Snippets Groups Projects
configure 1.4 MiB
Newer Older
  • Learn to ignore specific revisions
  •   echo "$as_me: failed program was:" >&5
    sed 's/^/| /' conftest.$ac_ext >&5
    
    
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    
    ac_cv_c_compiler_gnu=$ac_compiler_gnu
    
    fi
    
    { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
    echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
    
    GCC=`test $ac_compiler_gnu = yes && echo yes`
    ac_test_CFLAGS=${CFLAGS+set}
    ac_save_CFLAGS=$CFLAGS
    
    { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
    echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
    
    if test "${ac_cv_prog_cc_g+set}" = set; then
      echo $ECHO_N "(cached) $ECHO_C" >&6
    else
    
      ac_save_c_werror_flag=$ac_c_werror_flag
       ac_c_werror_flag=yes
       ac_cv_prog_cc_g=no
       CFLAGS="-g"
       cat >conftest.$ac_ext <<_ACEOF
    
    /* confdefs.h.  */
    _ACEOF
    cat confdefs.h >>conftest.$ac_ext
    cat >>conftest.$ac_ext <<_ACEOF
    /* end confdefs.h.  */
    
    int
    main ()
    {
    
      ;
      return 0;
    }
    _ACEOF
    rm -f conftest.$ac_objext
    
    if { (ac_try="$ac_compile"
    case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
      (eval "$ac_compile") 2>conftest.er1
    
      ac_status=$?
      grep -v '^ *+' conftest.er1 >conftest.err
      rm -f conftest.er1
      cat conftest.err >&5
      echo "$as_me:$LINENO: \$? = $ac_status" >&5
    
      (exit $ac_status); } && {
    	 test -z "$ac_c_werror_flag" ||
    	 test ! -s conftest.err
           } && test -s conftest.$ac_objext; then
    
      ac_cv_prog_cc_g=yes
    
    else
      echo "$as_me: failed program was:" >&5
    sed 's/^/| /' conftest.$ac_ext >&5
    
    
    	CFLAGS=""
          cat >conftest.$ac_ext <<_ACEOF
    
    /* confdefs.h.  */
    _ACEOF
    cat confdefs.h >>conftest.$ac_ext
    cat >>conftest.$ac_ext <<_ACEOF
    /* end confdefs.h.  */
    
      ;
      return 0;
    }
    _ACEOF
    rm -f conftest.$ac_objext
    
    if { (ac_try="$ac_compile"
    case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
      (eval "$ac_compile") 2>conftest.er1
    
      ac_status=$?
      grep -v '^ *+' conftest.er1 >conftest.err
      rm -f conftest.er1
      cat conftest.err >&5
      echo "$as_me:$LINENO: \$? = $ac_status" >&5
    
      (exit $ac_status); } && {
    	 test -z "$ac_c_werror_flag" ||
    	 test ! -s conftest.err
           } && test -s conftest.$ac_objext; then
    
      :
    else
      echo "$as_me: failed program was:" >&5
    sed 's/^/| /' conftest.$ac_ext >&5
    
    	ac_c_werror_flag=$ac_save_c_werror_flag
    	 CFLAGS="-g"
    	 cat >conftest.$ac_ext <<_ACEOF
    /* confdefs.h.  */
    _ACEOF
    cat confdefs.h >>conftest.$ac_ext
    cat >>conftest.$ac_ext <<_ACEOF
    /* end confdefs.h.  */
    
    int
    main ()
    {
    
      ;
      return 0;
    }
    _ACEOF
    rm -f conftest.$ac_objext
    if { (ac_try="$ac_compile"
    case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
      (eval "$ac_compile") 2>conftest.er1
      ac_status=$?
      grep -v '^ *+' conftest.er1 >conftest.err
      rm -f conftest.er1
      cat conftest.err >&5
      echo "$as_me:$LINENO: \$? = $ac_status" >&5
    
      (exit $ac_status); } && {
    	 test -z "$ac_c_werror_flag" ||
    	 test ! -s conftest.err
           } && test -s conftest.$ac_objext; then
    
    else
      echo "$as_me: failed program was:" >&5
    sed 's/^/| /' conftest.$ac_ext >&5
    
    
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    
       ac_c_werror_flag=$ac_save_c_werror_flag
    fi
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
    echo "${ECHO_T}$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"
      fi
    else
      if test "$GCC" = yes; then
        CFLAGS="-O2"
      else
        CFLAGS=
      fi
    fi
    { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
    echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
    if test "${ac_cv_prog_cc_c89+set}" = set; then
      echo $ECHO_N "(cached) $ECHO_C" >&6
    else
      ac_cv_prog_cc_c89=no
    ac_save_CC=$CC
    cat >conftest.$ac_ext <<_ACEOF
    
    /* confdefs.h.  */
    _ACEOF
    cat confdefs.h >>conftest.$ac_ext
    cat >>conftest.$ac_ext <<_ACEOF
    /* 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;
    
    return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
    
    for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
    	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
    do
      CC="$ac_save_CC $ac_arg"
      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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
      (eval "$ac_compile") 2>conftest.er1
    
      ac_status=$?
      grep -v '^ *+' conftest.er1 >conftest.err
      rm -f conftest.er1
      cat conftest.err >&5
      echo "$as_me:$LINENO: \$? = $ac_status" >&5
    
      (exit $ac_status); } && {
    	 test -z "$ac_c_werror_flag" ||
    	 test ! -s conftest.err
           } && test -s conftest.$ac_objext; then
    
      ac_cv_prog_cc_c89=$ac_arg
    
    else
      echo "$as_me: failed program was:" >&5
    sed 's/^/| /' conftest.$ac_ext >&5
    
    
    rm -f core conftest.err conftest.$ac_objext
    
      test "x$ac_cv_prog_cc_c89" != "xno" && break
    
    rm -f conftest.$ac_ext
    CC=$ac_save_CC
    
    
    # AC_CACHE_VAL
    case "x$ac_cv_prog_cc_c89" in
      x)
        { echo "$as_me:$LINENO: result: none needed" >&5
    echo "${ECHO_T}none needed" >&6; } ;;
      xno)
        { echo "$as_me:$LINENO: result: unsupported" >&5
    echo "${ECHO_T}unsupported" >&6; } ;;
      *)
        CC="$CC $ac_cv_prog_cc_c89"
        { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
    echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
    esac
    
    
    
    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_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
    
    { echo "$as_me:$LINENO: checking for $ac_word" >&5
    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
    
    if test "${ac_cv_prog_CXX+set}" = set; then
      echo $ECHO_N "(cached) $ECHO_C" >&6
    else
      if test -n "$CXX"; then
      ac_cv_prog_CXX="$CXX" # Let the user override the test.
    else
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
      for ac_exec_ext in '' $ac_executable_extensions; do
    
      if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    
        ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        break 2
      fi
    done
    done
    
    
    fi
    fi
    CXX=$ac_cv_prog_CXX
    if test -n "$CXX"; then
    
      { echo "$as_me:$LINENO: result: $CXX" >&5
    echo "${ECHO_T}$CXX" >&6; }
    
      { echo "$as_me:$LINENO: result: no" >&5
    echo "${ECHO_T}no" >&6; }
    
        test -n "$CXX" && break
      done
    fi
    if test -z "$CXX"; then
      ac_ct_CXX=$CXX
    
      for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
    
    do
      # Extract the first word of "$ac_prog", so it can be a program name with args.
    set dummy $ac_prog; ac_word=$2
    
    { echo "$as_me:$LINENO: checking for $ac_word" >&5
    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
    
    if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
      echo $ECHO_N "(cached) $ECHO_C" >&6
    else
      if test -n "$ac_ct_CXX"; then
      ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
    else
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
      for ac_exec_ext in '' $ac_executable_extensions; do
    
      if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    
        ac_cv_prog_ac_ct_CXX="$ac_prog"
        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        break 2
      fi
    done
    done
    
    
    fi
    fi
    ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
    if test -n "$ac_ct_CXX"; then
    
      { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
    echo "${ECHO_T}$ac_ct_CXX" >&6; }
    
      { echo "$as_me:$LINENO: result: no" >&5
    echo "${ECHO_T}no" >&6; }
    
      if test "x$ac_ct_CXX" = x; then
        CXX="g++"
      else
        case $cross_compiling:$ac_tool_warned in
    yes:)
    { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
    whose name does not start with the host triplet.  If you think this
    configuration is useful to you, please write to autoconf@gnu.org." >&5
    echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
    whose name does not start with the host triplet.  If you think this
    configuration is useful to you, please write to autoconf@gnu.org." >&2;}
    ac_tool_warned=yes ;;
    esac
        CXX=$ac_ct_CXX
      fi
    
    # Provide some information about the compiler.
    
    echo "$as_me:$LINENO: checking for C++ compiler version" >&5
    
    ac_compiler=`set X $ac_compile; echo $2`
    
    { (ac_try="$ac_compiler --version >&5"
    case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
      (eval "$ac_compiler --version >&5") 2>&5
    
      ac_status=$?
      echo "$as_me:$LINENO: \$? = $ac_status" >&5
      (exit $ac_status); }
    
    { (ac_try="$ac_compiler -v >&5"
    case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
      (eval "$ac_compiler -v >&5") 2>&5
    
      ac_status=$?
      echo "$as_me:$LINENO: \$? = $ac_status" >&5
      (exit $ac_status); }
    
    { (ac_try="$ac_compiler -V >&5"
    case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
      (eval "$ac_compiler -V >&5") 2>&5
    
      ac_status=$?
      echo "$as_me:$LINENO: \$? = $ac_status" >&5
      (exit $ac_status); }
    
    
    { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
    echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
    
    if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
      echo $ECHO_N "(cached) $ECHO_C" >&6
    else
      cat >conftest.$ac_ext <<_ACEOF
    /* confdefs.h.  */
    _ACEOF
    cat confdefs.h >>conftest.$ac_ext
    cat >>conftest.$ac_ext <<_ACEOF
    /* end confdefs.h.  */
    
    int
    main ()
    {
    #ifndef __GNUC__
           choke me
    #endif
    
      ;
      return 0;
    }
    _ACEOF
    rm -f conftest.$ac_objext
    
    if { (ac_try="$ac_compile"
    case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
      (eval "$ac_compile") 2>conftest.er1
    
      ac_status=$?
      grep -v '^ *+' conftest.er1 >conftest.err
      rm -f conftest.er1
      cat conftest.err >&5
      echo "$as_me:$LINENO: \$? = $ac_status" >&5
    
      (exit $ac_status); } && {
    	 test -z "$ac_cxx_werror_flag" ||
    	 test ! -s conftest.err
           } && test -s conftest.$ac_objext; then
    
      ac_compiler_gnu=yes
    else
      echo "$as_me: failed program was:" >&5
    sed 's/^/| /' conftest.$ac_ext >&5
    
    
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    
    ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
    
    fi
    
    { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
    echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
    
    GXX=`test $ac_compiler_gnu = yes && echo yes`
    ac_test_CXXFLAGS=${CXXFLAGS+set}
    ac_save_CXXFLAGS=$CXXFLAGS
    
    { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
    echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
    
    if test "${ac_cv_prog_cxx_g+set}" = set; then
      echo $ECHO_N "(cached) $ECHO_C" >&6
    else
    
      ac_save_cxx_werror_flag=$ac_cxx_werror_flag
       ac_cxx_werror_flag=yes
       ac_cv_prog_cxx_g=no
       CXXFLAGS="-g"
       cat >conftest.$ac_ext <<_ACEOF
    
    /* confdefs.h.  */
    _ACEOF
    cat confdefs.h >>conftest.$ac_ext
    cat >>conftest.$ac_ext <<_ACEOF
    /* end confdefs.h.  */
    
    int
    main ()
    {
    
      ;
      return 0;
    }
    _ACEOF
    rm -f conftest.$ac_objext
    
    if { (ac_try="$ac_compile"
    case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
      (eval "$ac_compile") 2>conftest.er1
    
      ac_status=$?
      grep -v '^ *+' conftest.er1 >conftest.err
      rm -f conftest.er1
      cat conftest.err >&5
      echo "$as_me:$LINENO: \$? = $ac_status" >&5
    
      (exit $ac_status); } && {
    	 test -z "$ac_cxx_werror_flag" ||
    	 test ! -s conftest.err
           } && test -s conftest.$ac_objext; then
    
      ac_cv_prog_cxx_g=yes
    else
      echo "$as_me: failed program was:" >&5
    sed 's/^/| /' conftest.$ac_ext >&5
    
    
    	CXXFLAGS=""
          cat >conftest.$ac_ext <<_ACEOF
    
    /* confdefs.h.  */
    _ACEOF
    cat confdefs.h >>conftest.$ac_ext
    cat >>conftest.$ac_ext <<_ACEOF
    /* end confdefs.h.  */
    
      ;
      return 0;
    }
    _ACEOF
    rm -f conftest.$ac_objext
    
    if { (ac_try="$ac_compile"
    case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
      (eval "$ac_compile") 2>conftest.er1
    
      ac_status=$?
      grep -v '^ *+' conftest.er1 >conftest.err
      rm -f conftest.er1
      cat conftest.err >&5
      echo "$as_me:$LINENO: \$? = $ac_status" >&5
    
      (exit $ac_status); } && {
    	 test -z "$ac_cxx_werror_flag" ||
    	 test ! -s conftest.err
           } && test -s conftest.$ac_objext; then
    
      :
    else
      echo "$as_me: failed program was:" >&5
    sed 's/^/| /' conftest.$ac_ext >&5
    
    
    	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
    	 CXXFLAGS="-g"
    	 cat >conftest.$ac_ext <<_ACEOF
    
    /* confdefs.h.  */
    _ACEOF
    cat confdefs.h >>conftest.$ac_ext
    cat >>conftest.$ac_ext <<_ACEOF
    /* end confdefs.h.  */
    
      ;
      return 0;
    }
    _ACEOF
    rm -f conftest.$ac_objext
    
    if { (ac_try="$ac_compile"
    case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
      (eval "$ac_compile") 2>conftest.er1
    
      ac_status=$?
      grep -v '^ *+' conftest.er1 >conftest.err
      rm -f conftest.er1
      cat conftest.err >&5
      echo "$as_me:$LINENO: \$? = $ac_status" >&5
    
      (exit $ac_status); } && {
    	 test -z "$ac_cxx_werror_flag" ||
    	 test ! -s conftest.err
           } && test -s conftest.$ac_objext; then
    
    else
      echo "$as_me: failed program was:" >&5
    sed 's/^/| /' conftest.$ac_ext >&5
    
    
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    
       ac_cxx_werror_flag=$ac_save_cxx_werror_flag
    fi
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
    echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
    if test "$ac_test_CXXFLAGS" = set; then
      CXXFLAGS=$ac_save_CXXFLAGS
    elif test $ac_cv_prog_cxx_g = yes; then
      if test "$GXX" = yes; then
        CXXFLAGS="-g -O2"
      else
        CXXFLAGS="-g"
      fi
    else
      if test "$GXX" = yes; then
        CXXFLAGS="-O2"
      else
        CXXFLAGS=
      fi
    fi
    
    ac_ext=c
    ac_cpp='$CPP $CPPFLAGS'
    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    ac_compiler_gnu=$ac_cv_c_compiler_gnu
    
    ac_ext=c
    ac_cpp='$CPP $CPPFLAGS'
    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    ac_compiler_gnu=$ac_cv_c_compiler_gnu
    
    { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
    echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
    
    # On Suns, sometimes $CPP names a directory.
    if test -n "$CPP" && test -d "$CPP"; then
      CPP=
    fi
    if test -z "$CPP"; then
      if test "${ac_cv_prog_CPP+set}" = set; then
      echo $ECHO_N "(cached) $ECHO_C" >&6
    else
          # Double quotes because CPP needs to be expanded
        for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
        do
          ac_preproc_ok=false
    for ac_c_preproc_warn_flag in '' yes
    do
      # Use a header file that comes with gcc, so configuring glibc
      # with a fresh cross-compiler works.
      # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
      # <limits.h> exists even on freestanding compilers.
      # On the NeXT, cc -E runs the code through the compiler's parser,
      # not just through cpp. "Syntax error" is here to catch this case.
      cat >conftest.$ac_ext <<_ACEOF
    /* confdefs.h.  */
    _ACEOF
    cat confdefs.h >>conftest.$ac_ext
    cat >>conftest.$ac_ext <<_ACEOF
    /* end confdefs.h.  */
    #ifdef __STDC__
    # include <limits.h>
    #else
    # include <assert.h>
    #endif
    		     Syntax error
    _ACEOF
    
    if { (ac_try="$ac_cpp conftest.$ac_ext"
    case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
      (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    
      ac_status=$?
      grep -v '^ *+' conftest.er1 >conftest.err
      rm -f conftest.er1
      cat conftest.err >&5
      echo "$as_me:$LINENO: \$? = $ac_status" >&5
    
      (exit $ac_status); } >/dev/null && {
    	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
    	 test ! -s conftest.err
           }; then
    
      :
    else
      echo "$as_me: failed program was:" >&5
    sed 's/^/| /' conftest.$ac_ext >&5
    
      # Broken: fails on valid input.
    continue
    fi
    
    rm -f conftest.err conftest.$ac_ext
    
    
      # OK, works on sane cases.  Now check whether nonexistent headers
    
      # can be detected and how.
      cat >conftest.$ac_ext <<_ACEOF
    /* confdefs.h.  */
    _ACEOF
    cat confdefs.h >>conftest.$ac_ext
    cat >>conftest.$ac_ext <<_ACEOF
    /* end confdefs.h.  */
    #include <ac_nonexistent.h>
    _ACEOF
    
    if { (ac_try="$ac_cpp conftest.$ac_ext"
    case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
      (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    
      ac_status=$?
      grep -v '^ *+' conftest.er1 >conftest.err
      rm -f conftest.er1
      cat conftest.err >&5
      echo "$as_me:$LINENO: \$? = $ac_status" >&5
    
      (exit $ac_status); } >/dev/null && {
    	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
    	 test ! -s conftest.err
           }; then
    
      # Broken: success on invalid input.
    continue
    else
      echo "$as_me: failed program was:" >&5
    sed 's/^/| /' conftest.$ac_ext >&5
    
      # Passes both tests.
    ac_preproc_ok=:
    break
    fi
    
    rm -f conftest.err conftest.$ac_ext
    
    done
    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    rm -f conftest.err conftest.$ac_ext
    if $ac_preproc_ok; then
      break
    fi
    
        done
        ac_cv_prog_CPP=$CPP
    
    fi
      CPP=$ac_cv_prog_CPP
    else
      ac_cv_prog_CPP=$CPP
    fi
    
    { echo "$as_me:$LINENO: result: $CPP" >&5
    echo "${ECHO_T}$CPP" >&6; }
    
    ac_preproc_ok=false
    for ac_c_preproc_warn_flag in '' yes
    do
      # Use a header file that comes with gcc, so configuring glibc
      # with a fresh cross-compiler works.
      # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
      # <limits.h> exists even on freestanding compilers.
      # On the NeXT, cc -E runs the code through the compiler's parser,
      # not just through cpp. "Syntax error" is here to catch this case.
      cat >conftest.$ac_ext <<_ACEOF
    /* confdefs.h.  */
    _ACEOF
    cat confdefs.h >>conftest.$ac_ext
    cat >>conftest.$ac_ext <<_ACEOF
    /* end confdefs.h.  */
    #ifdef __STDC__
    # include <limits.h>
    #else
    # include <assert.h>
    #endif
    		     Syntax error
    _ACEOF
    
    if { (ac_try="$ac_cpp conftest.$ac_ext"
    case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
      (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    
      ac_status=$?
      grep -v '^ *+' conftest.er1 >conftest.err
      rm -f conftest.er1
      cat conftest.err >&5
      echo "$as_me:$LINENO: \$? = $ac_status" >&5
    
      (exit $ac_status); } >/dev/null && {
    	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
    	 test ! -s conftest.err
           }; then
    
      :
    else
      echo "$as_me: failed program was:" >&5
    sed 's/^/| /' conftest.$ac_ext >&5
    
      # Broken: fails on valid input.
    continue
    fi
    
    rm -f conftest.err conftest.$ac_ext
    
    
      # OK, works on sane cases.  Now check whether nonexistent headers
    
      # can be detected and how.
      cat >conftest.$ac_ext <<_ACEOF
    /* confdefs.h.  */
    _ACEOF
    cat confdefs.h >>conftest.$ac_ext
    cat >>conftest.$ac_ext <<_ACEOF
    /* end confdefs.h.  */
    #include <ac_nonexistent.h>
    _ACEOF
    
    if { (ac_try="$ac_cpp conftest.$ac_ext"
    case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
      (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    
      ac_status=$?
      grep -v '^ *+' conftest.er1 >conftest.err
      rm -f conftest.er1
      cat conftest.err >&5
      echo "$as_me:$LINENO: \$? = $ac_status" >&5
    
      (exit $ac_status); } >/dev/null && {
    	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
    	 test ! -s conftest.err
           }; then
    
      # Broken: success on invalid input.
    continue
    else
      echo "$as_me: failed program was:" >&5
    sed 's/^/| /' conftest.$ac_ext >&5
    
      # Passes both tests.
    ac_preproc_ok=:
    break
    fi
    
    rm -f conftest.err conftest.$ac_ext
    
    done
    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    rm -f conftest.err conftest.$ac_ext
    if $ac_preproc_ok; then
      :
    else
      { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
    See \`config.log' for more details." >&5
    echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
    See \`config.log' for more details." >&2;}
       { (exit 1); exit 1; }; }
    fi
    
    ac_ext=c
    ac_cpp='$CPP $CPPFLAGS'
    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    ac_compiler_gnu=$ac_cv_c_compiler_gnu
    
    
    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
    
    { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
    echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
    
    if test -z "$CXXCPP"; then
      if test "${ac_cv_prog_CXXCPP+set}" = set; then
      echo $ECHO_N "(cached) $ECHO_C" >&6
    else
          # Double quotes because CXXCPP needs to be expanded
        for CXXCPP in "$CXX -E" "/lib/cpp"
        do
          ac_preproc_ok=false
    for ac_cxx_preproc_warn_flag in '' yes
    do
      # Use a header file that comes with gcc, so configuring glibc
      # with a fresh cross-compiler works.
      # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
      # <limits.h> exists even on freestanding compilers.
      # On the NeXT, cc -E runs the code through the compiler's parser,
      # not just through cpp. "Syntax error" is here to catch this case.
      cat >conftest.$ac_ext <<_ACEOF
    /* confdefs.h.  */
    _ACEOF
    cat confdefs.h >>conftest.$ac_ext
    cat >>conftest.$ac_ext <<_ACEOF
    /* end confdefs.h.  */
    #ifdef __STDC__
    # include <limits.h>
    #else
    # include <assert.h>
    #endif
    		     Syntax error
    _ACEOF
    
    if { (ac_try="$ac_cpp conftest.$ac_ext"
    case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
      (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    
      ac_status=$?
      grep -v '^ *+' conftest.er1 >conftest.err
      rm -f conftest.er1
      cat conftest.err >&5
      echo "$as_me:$LINENO: \$? = $ac_status" >&5
    
      (exit $ac_status); } >/dev/null && {
    	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
    	 test ! -s conftest.err
           }; then
    
      :
    else
      echo "$as_me: failed program was:" >&5
    sed 's/^/| /' conftest.$ac_ext >&5
    
      # Broken: fails on valid input.
    continue
    fi
    
    rm -f conftest.err conftest.$ac_ext
    
    
      # OK, works on sane cases.  Now check whether nonexistent headers
    
      # can be detected and how.
      cat >conftest.$ac_ext <<_ACEOF
    /* confdefs.h.  */
    _ACEOF
    cat confdefs.h >>conftest.$ac_ext
    cat >>conftest.$ac_ext <<_ACEOF
    /* end confdefs.h.  */
    #include <ac_nonexistent.h>
    _ACEOF
    
    if { (ac_try="$ac_cpp conftest.$ac_ext"
    case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
      (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    
      ac_status=$?
      grep -v '^ *+' conftest.er1 >conftest.err
      rm -f conftest.er1
      cat conftest.err >&5
      echo "$as_me:$LINENO: \$? = $ac_status" >&5
    
      (exit $ac_status); } >/dev/null && {
    	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
    	 test ! -s conftest.err
           }; then
    
      # Broken: success on invalid input.
    continue
    else
      echo "$as_me: failed program was:" >&5
    sed 's/^/| /' conftest.$ac_ext >&5
    
      # Passes both tests.
    ac_preproc_ok=:
    break
    fi
    
    rm -f conftest.err conftest.$ac_ext
    
    done
    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    rm -f conftest.err conftest.$ac_ext
    if $ac_preproc_ok; then
      break
    fi
    
        done
        ac_cv_prog_CXXCPP=$CXXCPP
    
    fi
      CXXCPP=$ac_cv_prog_CXXCPP
    else
      ac_cv_prog_CXXCPP=$CXXCPP
    fi
    { echo "$as_me:$LINENO: result: $CXXCPP" >&5