Skip to content
Snippets Groups Projects
configure 1.4 MiB
Newer Older
  • Learn to ignore specific revisions
  • { 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;
    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 "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
    
    
    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)
        { 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_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
    
    
    { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
    echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
    if test "${ac_cv_path_GREP+set}" = set; then
      echo $ECHO_N "(cached) $ECHO_C" >&6
    else
      # Extract the first word of "grep ggrep" to use in msg output
    if test -z "$GREP"; then
    set dummy grep ggrep; ac_prog_name=$2
    if test "${ac_cv_path_GREP+set}" = set; then
      echo $ECHO_N "(cached) $ECHO_C" >&6
    else
      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
      echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
      while :
      do
        cat "conftest.in" "conftest.in" >"conftest.tmp"
        mv "conftest.tmp" "conftest.in"
        cp "conftest.in" "conftest.nl"
        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
    
    
    fi
    
    GREP="$ac_cv_path_GREP"
    if test -z "$GREP"; then
      { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
    echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
       { (exit 1); exit 1; }; }
    fi
    
    else
      ac_cv_path_GREP=$GREP
    fi
    
    
    fi
    { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
    echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
     GREP="$ac_cv_path_GREP"
    
    
    { echo "$as_me:$LINENO: checking for egrep" >&5
    echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
    if test "${ac_cv_path_EGREP+set}" = set; then
      echo $ECHO_N "(cached) $ECHO_C" >&6
    else
      if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
       then ac_cv_path_EGREP="$GREP -E"
       else
         # Extract the first word of "egrep" to use in msg output
    if test -z "$EGREP"; then
    set dummy egrep; ac_prog_name=$2
    if test "${ac_cv_path_EGREP+set}" = set; then
      echo $ECHO_N "(cached) $ECHO_C" >&6
    else
      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
      echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
      while :
      do
        cat "conftest.in" "conftest.in" >"conftest.tmp"
        mv "conftest.tmp" "conftest.in"
        cp "conftest.in" "conftest.nl"
        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
    
    
    fi
    
    EGREP="$ac_cv_path_EGREP"
    if test -z "$EGREP"; then
      { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
    echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
       { (exit 1); exit 1; }; }
    fi
    
    else
      ac_cv_path_EGREP=$EGREP
    fi
    
    
       fi
    fi
    { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
    echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
     EGREP="$ac_cv_path_EGREP"
    
    
    
    { echo "$as_me:$LINENO: checking for AIX" >&5
    echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
    cat >conftest.$ac_ext <<_ACEOF
    /* confdefs.h.  */
    _ACEOF
    cat confdefs.h >>conftest.$ac_ext
    cat >>conftest.$ac_ext <<_ACEOF
    /* end confdefs.h.  */
    #ifdef _AIX
      yes
    #endif
    
    _ACEOF
    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
      $EGREP "yes" >/dev/null 2>&1; then
      { echo "$as_me:$LINENO: result: yes" >&5
    echo "${ECHO_T}yes" >&6; }
    cat >>confdefs.h <<\_ACEOF
    #define _ALL_SOURCE 1
    _ACEOF
    
    else
      { echo "$as_me:$LINENO: result: no" >&5
    echo "${ECHO_T}no" >&6; }
    fi
    rm -f conftest*
    
    
    { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
    if test "${ac_cv_header_stdc+set}" = set; then
      echo $ECHO_N "(cached) $ECHO_C" >&6
    else
      cat >conftest.$ac_ext <<_ACEOF
    /* confdefs.h.  */
    _ACEOF
    cat confdefs.h >>conftest.$ac_ext
    cat >>conftest.$ac_ext <<_ACEOF
    /* end confdefs.h.  */
    #include <stdlib.h>
    #include <stdarg.h>
    #include <string.h>
    #include <float.h>
    
    int
    main ()
    {
    
      ;
      return 0;
    }
    _ACEOF
    rm -f conftest.$ac_objext
    if { (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_header_stdc=yes
    else
      echo "$as_me: failed program was:" >&5
    sed 's/^/| /' conftest.$ac_ext >&5
    
    	ac_cv_header_stdc=no
    fi
    
    rm -f 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
      (eval "$ac_link") 2>&5
      ac_status=$?
      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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
      (eval "$ac_try") 2>&5
      ac_status=$?
      echo "$as_me:$LINENO: \$? = $ac_status" >&5
      (exit $ac_status); }; }; then
      :
    else
      echo "$as_me: program exited with status $ac_status" >&5
    echo "$as_me: failed program was:" >&5
    sed 's/^/| /' conftest.$ac_ext >&5
    
    ( exit $ac_status )
    ac_cv_header_stdc=no
    fi
    rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    fi
    
    
    fi
    fi
    { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
    if test $ac_cv_header_stdc = yes; then
    
    cat >>confdefs.h <<\_ACEOF
    #define STDC_HEADERS 1
    _ACEOF
    
    fi
    
    # On IRIX 5.3, sys/types and inttypes.h are conflicting.
    
    
    
    
    
    
    
    
    
    for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
    		  inttypes.h stdint.h unistd.h
    do
    as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    { echo "$as_me:$LINENO: checking for $ac_header" >&5
    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
    if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
      echo $ECHO_N "(cached) $ECHO_C" >&6
    else
      cat >conftest.$ac_ext <<_ACEOF
    /* confdefs.h.  */
    _ACEOF
    cat confdefs.h >>conftest.$ac_ext
    cat >>conftest.$ac_ext <<_ACEOF
    /* end confdefs.h.  */
    $ac_includes_default
    
    #include <$ac_header>
    _ACEOF
    rm -f conftest.$ac_objext
    if { (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
    
      eval "$as_ac_Header=yes"
    else
      echo "$as_me: failed program was:" >&5
    sed 's/^/| /' conftest.$ac_ext >&5
    
    	eval "$as_ac_Header=no"
    fi
    
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    ac_res=`eval echo '${'$as_ac_Header'}'`
    	       { echo "$as_me:$LINENO: result: $ac_res" >&5
    echo "${ECHO_T}$ac_res" >&6; }
    if test `eval echo '${'$as_ac_Header'}'` = yes; then
      cat >>confdefs.h <<_ACEOF
    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    _ACEOF
    
    fi
    
    done
    
    
    if test "${ac_cv_header_minix_config_h+set}" = set; then
      { echo "$as_me:$LINENO: checking for minix/config.h" >&5
    echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
    if test "${ac_cv_header_minix_config_h+set}" = set; then
      echo $ECHO_N "(cached) $ECHO_C" >&6
    fi
    { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
    echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
    else
      # Is the header compilable?
    { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
    echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
    cat >conftest.$ac_ext <<_ACEOF
    /* confdefs.h.  */
    _ACEOF
    cat confdefs.h >>conftest.$ac_ext
    cat >>conftest.$ac_ext <<_ACEOF
    /* end confdefs.h.  */
    $ac_includes_default
    #include <minix/config.h>
    _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_header_compiler=yes
    else
      echo "$as_me: failed program was:" >&5
    sed 's/^/| /' conftest.$ac_ext >&5
    
    	ac_header_compiler=no
    fi
    
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    echo "${ECHO_T}$ac_header_compiler" >&6; }
    
    # Is the header present?
    { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
    echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
    cat >conftest.$ac_ext <<_ACEOF
    /* confdefs.h.  */
    _ACEOF
    cat confdefs.h >>conftest.$ac_ext
    cat >>conftest.$ac_ext <<_ACEOF
    /* end confdefs.h.  */
    #include <minix/config.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
    
      ac_header_preproc=yes
    else
      echo "$as_me: failed program was:" >&5
    sed 's/^/| /' conftest.$ac_ext >&5
    
      ac_header_preproc=no
    fi
    
    rm -f conftest.err conftest.$ac_ext
    { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    echo "${ECHO_T}$ac_header_preproc" >&6; }
    
    # So?  What about this header?
    case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
      yes:no: )
        { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
    echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
        { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
    echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
        ac_header_preproc=yes
        ;;
      no:yes:* )
        { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
    echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
        { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
    echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
        { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
    echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
        { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
    echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
        { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
    echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
        { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
    echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
    
        ( cat <<\_ASBOX
    ## ------------------------------- ##
    ## Report this to www.asterisk.org ##
    ## ------------------------------- ##
    _ASBOX
         ) | sed "s/^/$as_me: WARNING:     /" >&2
    
        ;;
    esac
    { echo "$as_me:$LINENO: checking for minix/config.h" >&5
    echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
    if test "${ac_cv_header_minix_config_h+set}" = set; then
      echo $ECHO_N "(cached) $ECHO_C" >&6
    else
      ac_cv_header_minix_config_h=$ac_header_preproc
    fi
    { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
    echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
    
    fi
    if test $ac_cv_header_minix_config_h = yes; then
      MINIX=yes
    else
      MINIX=
    fi
    
    
    if test "$MINIX" = yes; then
    
    cat >>confdefs.h <<\_ACEOF
    #define _POSIX_SOURCE 1
    _ACEOF
    
    
    cat >>confdefs.h <<\_ACEOF
    #define _POSIX_1_SOURCE 2
    _ACEOF
    
    
    cat >>confdefs.h <<\_ACEOF
    #define _MINIX 1
    _ACEOF
    
    fi
    
    
    
    
    
    
    
    
    
    
    
      { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
    echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
    if test "${ac_cv_safe_to_define___extensions__+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.  */
    
    #	  define __EXTENSIONS__ 1
    	  $ac_includes_default
    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=$?