Skip to content
Snippets Groups Projects
configure 1.57 MiB
Newer Older
  • Learn to ignore specific revisions
  • rm -f conftest.o conftest.obj
    if { (ac_try="$ac_compile"
    case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    
    eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    $as_echo "$ac_try_echo") >&5
    
      (eval "$ac_compile") 2>&5
      ac_status=$?
    
      $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    
      (exit $ac_status); }; then
      for ac_file in conftest.o conftest.obj conftest.*; do
      test -f "$ac_file" || continue;
      case $ac_file in
    
        *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
    
        *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
           break;;
      esac
    done
    else
    
      $as_echo "$as_me: failed program was:" >&5
    
    sed 's/^/| /' conftest.$ac_ext >&5
    
    
    { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
    
    See \`config.log' for more details." >&5
    
    $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
    
    See \`config.log' for more details." >&2;}
    
       { (exit 1); exit 1; }; }; }
    
    fi
    
    rm -f conftest.$ac_cv_objext conftest.$ac_ext
    fi
    
    { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
    $as_echo "$ac_cv_objext" >&6; }
    
    OBJEXT=$ac_cv_objext
    ac_objext=$OBJEXT
    
    { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
    $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
    
    if test "${ac_cv_c_compiler_gnu+set}" = set; then
    
      $as_echo_n "(cached) " >&6
    
    else
      cat >conftest.$ac_ext <<_ACEOF
    /* confdefs.h.  */
    _ACEOF
    cat confdefs.h >>conftest.$ac_ext
    cat >>conftest.$ac_ext <<_ACEOF
    /* end confdefs.h.  */
    
    int
    main ()
    {
    #ifndef __GNUC__
           choke me
    #endif
    
      ;
      return 0;
    }
    _ACEOF
    rm -f conftest.$ac_objext
    if { (ac_try="$ac_compile"
    case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    
    eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    $as_echo "$ac_try_echo") >&5
    
      (eval "$ac_compile") 2>conftest.er1
      ac_status=$?
      grep -v '^ *+' conftest.er1 >conftest.err
      rm -f conftest.er1
      cat conftest.err >&5
    
      $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    
      (exit $ac_status); } && {
    	 test -z "$ac_c_werror_flag" ||
    	 test ! -s conftest.err
           } && test -s conftest.$ac_objext; then
      ac_compiler_gnu=yes
    else
    
      $as_echo "$as_me: failed program was:" >&5
    
    sed 's/^/| /' conftest.$ac_ext >&5
    
    	ac_compiler_gnu=no
    fi
    
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    ac_cv_c_compiler_gnu=$ac_compiler_gnu
    
    fi
    
    { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
    $as_echo "$ac_cv_c_compiler_gnu" >&6; }
    if test $ac_compiler_gnu = yes; then
      GCC=yes
    else
      GCC=
    fi
    
    ac_test_CFLAGS=${CFLAGS+set}
    ac_save_CFLAGS=$CFLAGS
    
    { $as_echo "$as_me:$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_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    $as_echo "$ac_try_echo") >&5
    
      (eval "$ac_compile") 2>conftest.er1
      ac_status=$?
      grep -v '^ *+' conftest.er1 >conftest.err
      rm -f conftest.er1
      cat conftest.err >&5
    
      $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    
      (exit $ac_status); } && {
    	 test -z "$ac_c_werror_flag" ||
    	 test ! -s conftest.err
           } && test -s conftest.$ac_objext; then
      ac_cv_prog_cc_g=yes
    else
    
      $as_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.  */
    
    int
    main ()
    {
    
      ;
      return 0;
    }
    _ACEOF
    rm -f conftest.$ac_objext
    if { (ac_try="$ac_compile"
    case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    
    eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    $as_echo "$ac_try_echo") >&5
    
      (eval "$ac_compile") 2>conftest.er1
      ac_status=$?
      grep -v '^ *+' conftest.er1 >conftest.err
      rm -f conftest.er1
      cat conftest.err >&5
    
      $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    
      (exit $ac_status); } && {
    	 test -z "$ac_c_werror_flag" ||
    	 test ! -s conftest.err
           } && test -s conftest.$ac_objext; then
      :
    else
    
      $as_echo "$as_me: failed program was:" >&5
    
    sed 's/^/| /' conftest.$ac_ext >&5
    
    	ac_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    $as_echo "$ac_try_echo") >&5
    
      (eval "$ac_compile") 2>conftest.er1
      ac_status=$?
      grep -v '^ *+' conftest.er1 >conftest.err
      rm -f conftest.er1
      cat conftest.err >&5
    
      $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    
      (exit $ac_status); } && {
    	 test -z "$ac_c_werror_flag" ||
    	 test ! -s conftest.err
           } && test -s conftest.$ac_objext; then
      ac_cv_prog_cc_g=yes
    else
    
      $as_echo "$as_me: failed program was:" >&5
    
    sed 's/^/| /' conftest.$ac_ext >&5
    
    
    fi
    
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       ac_c_werror_flag=$ac_save_c_werror_flag
    fi
    
    { $as_echo "$as_me:$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"
      fi
    else
      if test "$GCC" = yes; then
        CFLAGS="-O2"
      else
        CFLAGS=
      fi
    fi
    
    { $as_echo "$as_me:$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 >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;
    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"
      rm -f conftest.$ac_objext
    if { (ac_try="$ac_compile"
    case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    
    eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    $as_echo "$ac_try_echo") >&5
    
      (eval "$ac_compile") 2>conftest.er1
      ac_status=$?
      grep -v '^ *+' conftest.er1 >conftest.err
      rm -f conftest.er1
      cat conftest.err >&5
    
      $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    
      (exit $ac_status); } && {
    	 test -z "$ac_c_werror_flag" ||
    	 test ! -s conftest.err
           } && test -s conftest.$ac_objext; then
      ac_cv_prog_cc_c89=$ac_arg
    else
    
      $as_echo "$as_me: failed program was:" >&5
    
    sed 's/^/| /' conftest.$ac_ext >&5
    
    
    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:$LINENO: result: none needed" >&5
    $as_echo "none needed" >&6; } ;;
    
        { $as_echo "$as_me:$LINENO: result: unsupported" >&5
    $as_echo "unsupported" >&6; } ;;
    
      *)
        CC="$CC $ac_cv_prog_cc_c89"
    
        { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
    $as_echo "$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_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:$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
          # 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    $as_echo "$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
    
      $as_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
    
      $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    $as_echo "$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
    
      $as_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
    
      $as_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
    
    { $as_echo "$as_me:$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 >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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    $as_echo "$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
    
      $as_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
    
      $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    $as_echo "$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
    
      $as_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
    
      $as_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
    
      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
    
    See \`config.log' for more details." >&5
    
    $as_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
    
    
    
    { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
    $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
    
    if test "${ac_cv_path_GREP+set}" = set; then
    
      $as_echo_n "(cached) " >&6
    
      if test -z "$GREP"; then
    
      ac_path_GREP_found=false
    
      # Loop through the user's path and test for each of PROGNAME-LIST
      as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    
    for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
      for ac_prog in grep ggrep; do
    
        for ac_exec_ext in '' $ac_executable_extensions; do
          ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
          { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
    # Check for GNU ac_path_GREP and select it if it is found.
    
      # Check for GNU $ac_path_GREP
    case `"$ac_path_GREP" --version 2>&1` in
    *GNU*)
      ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
    *)
      ac_count=0
    
      $as_echo_n 0123456789 >"conftest.in"
    
      while :
      do
        cat "conftest.in" "conftest.in" >"conftest.tmp"
        mv "conftest.tmp" "conftest.in"
        cp "conftest.in" "conftest.nl"
    
        $as_echo 'GREP' >> "conftest.nl"
    
        "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
        diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
        ac_count=`expr $ac_count + 1`
        if test $ac_count -gt ${ac_path_GREP_max-0}; then
          # Best one so far, save it but keep looking for a better one
          ac_cv_path_GREP="$ac_path_GREP"
          ac_path_GREP_max=$ac_count
        fi
        # 10*(2^10) chars as input seems more than enough
        test $ac_count -gt 10 && break
      done
      rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
    esac
    
    
          $ac_path_GREP_found && break 3
        done
    
      done
    done
    IFS=$as_save_IFS
    
      if test -z "$ac_cv_path_GREP"; then
        { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
    $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
    
       { (exit 1); exit 1; }; }
    
    { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
    $as_echo "$ac_cv_path_GREP" >&6; }
    
    { $as_echo "$as_me:$LINENO: checking for egrep" >&5
    $as_echo_n "checking for egrep... " >&6; }
    
    if test "${ac_cv_path_EGREP+set}" = set; then
    
      $as_echo_n "(cached) " >&6
    
    else
      if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
       then ac_cv_path_EGREP="$GREP -E"
       else
    
         if test -z "$EGREP"; then
    
      ac_path_EGREP_found=false
    
      # Loop through the user's path and test for each of PROGNAME-LIST
      as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    
    for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
      for ac_prog in egrep; do
    
        for ac_exec_ext in '' $ac_executable_extensions; do
          ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
          { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
    # Check for GNU ac_path_EGREP and select it if it is found.
    
      # Check for GNU $ac_path_EGREP
    case `"$ac_path_EGREP" --version 2>&1` in
    *GNU*)
      ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
    *)
      ac_count=0
    
      $as_echo_n 0123456789 >"conftest.in"
    
      while :
      do
        cat "conftest.in" "conftest.in" >"conftest.tmp"
        mv "conftest.tmp" "conftest.in"
        cp "conftest.in" "conftest.nl"
    
        $as_echo 'EGREP' >> "conftest.nl"
    
        "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
        diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
        ac_count=`expr $ac_count + 1`
        if test $ac_count -gt ${ac_path_EGREP_max-0}; then
          # Best one so far, save it but keep looking for a better one
          ac_cv_path_EGREP="$ac_path_EGREP"
          ac_path_EGREP_max=$ac_count
        fi
        # 10*(2^10) chars as input seems more than enough
        test $ac_count -gt 10 && break
      done
      rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
    esac
    
    
          $ac_path_EGREP_found && break 3
        done
    
      done
    done
    IFS=$as_save_IFS
    
      if test -z "$ac_cv_path_EGREP"; then
        { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
    $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
    
       { (exit 1); exit 1; }; }
    
    { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
    $as_echo "$ac_cv_path_EGREP" >&6; }
    
     EGREP="$ac_cv_path_EGREP"
    
    
    
    { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    $as_echo_n "checking for ANSI C header files... " >&6; }
    
    if test "${ac_cv_header_stdc+set}" = set; then
    
      $as_echo_n "(cached) " >&6
    
    else
      cat >conftest.$ac_ext <<_ACEOF
    /* confdefs.h.  */
    _ACEOF
    cat confdefs.h >>conftest.$ac_ext
    cat >>conftest.$ac_ext <<_ACEOF
    /* end confdefs.h.  */
    #include <stdlib.h>
    #include <stdarg.h>
    #include <string.h>
    #include <float.h>
    
    int
    main ()
    {
    
      ;
      return 0;
    }
    _ACEOF
    rm -f conftest.$ac_objext
    if { (ac_try="$ac_compile"
    case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    
    eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    $as_echo "$ac_try_echo") >&5
    
      (eval "$ac_compile") 2>conftest.er1
      ac_status=$?
      grep -v '^ *+' conftest.er1 >conftest.err
      rm -f conftest.er1
      cat conftest.err >&5
    
      $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    
      (exit $ac_status); } && {
    	 test -z "$ac_c_werror_flag" ||
    	 test ! -s conftest.err
           } && test -s conftest.$ac_objext; then
      ac_cv_header_stdc=yes
    else
    
      $as_echo "$as_me: failed program was:" >&5
    
    sed 's/^/| /' conftest.$ac_ext >&5
    
    	ac_cv_header_stdc=no
    fi
    
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    
    if test $ac_cv_header_stdc = yes; then
      # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
      cat >conftest.$ac_ext <<_ACEOF
    /* confdefs.h.  */
    _ACEOF
    cat confdefs.h >>conftest.$ac_ext
    cat >>conftest.$ac_ext <<_ACEOF
    /* end confdefs.h.  */
    #include <string.h>
    
    _ACEOF
    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
      $EGREP "memchr" >/dev/null 2>&1; then
      :
    else
      ac_cv_header_stdc=no
    fi
    rm -f conftest*
    
    fi
    
    if test $ac_cv_header_stdc = yes; then
      # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
      cat >conftest.$ac_ext <<_ACEOF
    /* confdefs.h.  */
    _ACEOF
    cat confdefs.h >>conftest.$ac_ext
    cat >>conftest.$ac_ext <<_ACEOF
    /* end confdefs.h.  */
    #include <stdlib.h>
    
    _ACEOF
    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
      $EGREP "free" >/dev/null 2>&1; then
      :
    else
      ac_cv_header_stdc=no
    fi
    rm -f conftest*
    
    fi
    
    if test $ac_cv_header_stdc = yes; then
      # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
      if test "$cross_compiling" = yes; then
      :
    else
      cat >conftest.$ac_ext <<_ACEOF
    /* confdefs.h.  */
    _ACEOF
    cat confdefs.h >>conftest.$ac_ext
    cat >>conftest.$ac_ext <<_ACEOF
    /* end confdefs.h.  */
    #include <ctype.h>
    #include <stdlib.h>
    #if ((' ' & 0x0FF) == 0x020)
    # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    #else
    # define ISLOWER(c) \
    		   (('a' <= (c) && (c) <= 'i') \
    		     || ('j' <= (c) && (c) <= 'r') \
    		     || ('s' <= (c) && (c) <= 'z'))
    # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
    #endif
    
    #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    int
    main ()
    {
      int i;
      for (i = 0; i < 256; i++)
        if (XOR (islower (i), ISLOWER (i))
    	|| toupper (i) != TOUPPER (i))
          return 2;
      return 0;
    }
    _ACEOF
    rm -f conftest$ac_exeext
    if { (ac_try="$ac_link"
    case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    
    eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    $as_echo "$ac_try_echo") >&5
    
      (eval "$ac_link") 2>&5
      ac_status=$?
    
      $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    
      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
      { (case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    
    eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    $as_echo "$ac_try_echo") >&5
    
      (eval "$ac_try") 2>&5
      ac_status=$?
    
      $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    
      (exit $ac_status); }; }; then
      :
    else
    
      $as_echo "$as_me: program exited with status $ac_status" >&5
    $as_echo "$as_me: failed program was:" >&5
    
    sed 's/^/| /' conftest.$ac_ext >&5
    
    ( exit $ac_status )
    ac_cv_header_stdc=no
    fi
    
    rm -rf conftest.dSYM
    
    rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    fi
    
    
    fi
    fi
    
    { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    $as_echo "$ac_cv_header_stdc" >&6; }
    
    if test $ac_cv_header_stdc = yes; then
    
    cat >>confdefs.h <<\_ACEOF
    #define STDC_HEADERS 1
    _ACEOF
    
    fi
    
    # On IRIX 5.3, sys/types and inttypes.h are conflicting.
    
    
    
    
    
    
    
    
    
    for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
    		  inttypes.h stdint.h unistd.h
    do
    
    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
    $as_echo_n "checking for $ac_header... " >&6; }
    
    if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    
      $as_echo_n "(cached) " >&6
    
    else
      cat >conftest.$ac_ext <<_ACEOF
    /* confdefs.h.  */
    _ACEOF
    cat confdefs.h >>conftest.$ac_ext
    cat >>conftest.$ac_ext <<_ACEOF
    /* end confdefs.h.  */
    $ac_includes_default
    
    #include <$ac_header>
    _ACEOF
    rm -f conftest.$ac_objext
    if { (ac_try="$ac_compile"
    case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    
    eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    $as_echo "$ac_try_echo") >&5
    
      (eval "$ac_compile") 2>conftest.er1
      ac_status=$?
      grep -v '^ *+' conftest.er1 >conftest.err
      rm -f conftest.er1
      cat conftest.err >&5
    
      $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    
      (exit $ac_status); } && {
    	 test -z "$ac_c_werror_flag" ||
    	 test ! -s conftest.err
           } && test -s conftest.$ac_objext; then
      eval "$as_ac_Header=yes"
    else
    
      $as_echo "$as_me: failed program was:" >&5
    
    sed 's/^/| /' conftest.$ac_ext >&5
    
    	eval "$as_ac_Header=no"
    fi
    
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    
    ac_res=`eval 'as_val=${'$as_ac_Header'}
    		 $as_echo "$as_val"'`
    	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    $as_echo "$ac_res" >&6; }
    as_val=`eval 'as_val=${'$as_ac_Header'}
    		 $as_echo "$as_val"'`
       if test "x$as_val" = x""yes; then
    
      cat >>confdefs.h <<_ACEOF
    
    #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1