Skip to content
Snippets Groups Projects
configure 1.4 MiB
Newer Older
  • Learn to ignore specific revisions
  •   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_safe_to_define___extensions__=yes
    else
      echo "$as_me: failed program was:" >&5
    sed 's/^/| /' conftest.$ac_ext >&5
    
    	ac_cv_safe_to_define___extensions__=no
    fi
    
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
    echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
      test $ac_cv_safe_to_define___extensions__ = yes &&
        cat >>confdefs.h <<\_ACEOF
    #define __EXTENSIONS__ 1
    _ACEOF
    
      cat >>confdefs.h <<\_ACEOF
    #define _POSIX_PTHREAD_SEMANTICS 1
    
    _ACEOF
    
      cat >>confdefs.h <<\_ACEOF
    #define _TANDEM_SOURCE 1
    
    	# note- does not work on FreeBSD
    
    
    case "${host_os}" in
         freebsd*)
         ac_default_prefix=/usr/local
         CPPFLAGS=-I/usr/local/include
         LDFLAGS=-L/usr/local/lib
         ;;
    
         *)
         ac_default_prefix=/usr
         if test ${sysconfdir} = '${prefix}/etc'; then
            sysconfdir=/etc
         fi
         if test ${mandir} = '${prefix}/man'; then
            mandir=/usr/share/man
         fi
         ;;
    esac
    
    if test ${localstatedir} = '${prefix}/var'; then
         localstatedir=/var
    fi
    
    BUILD_PLATFORM=${build}
    BUILD_CPU=${build_cpu}
    BUILD_VENDOR=${build_vendor}
    BUILD_OS=${build_os}
    
    
    
    
    
    
    HOST_PLATFORM=${host}
    HOST_CPU=${host_cpu}
    HOST_VENDOR=${host_vendor}
    HOST_OS=${host_os}
    
    
    
    
    
    
    
    case "${host_os}" in
         freebsd*)
         OSARCH=FreeBSD
         ;;
         netbsd*)
         OSARCH=NetBSD
         ;;
         openbsd*)
         OSARCH=OpenBSD
         ;;
         solaris*)
         OSARCH=SunOS
         ;;
    
    #  check for uname
    if test -n "$ac_tool_prefix"; then
      # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
    set dummy ${ac_tool_prefix}uname; 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_path_UNAME+set}" = set; then
      echo $ECHO_N "(cached) $ECHO_C" >&6
    else
      case $UNAME in
      [\\/]* | ?:[\\/]*)
      ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
      ;;
      *)
      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_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        break 2
      fi
    done
    done
    IFS=$as_save_IFS
    
      ;;
    esac
    fi
    UNAME=$ac_cv_path_UNAME
    if test -n "$UNAME"; then
      { echo "$as_me:$LINENO: result: $UNAME" >&5
    echo "${ECHO_T}$UNAME" >&6; }
    else
      { echo "$as_me:$LINENO: result: no" >&5
    echo "${ECHO_T}no" >&6; }
    fi
    
    
    fi
    if test -z "$ac_cv_path_UNAME"; then
      ac_pt_UNAME=$UNAME
      # Extract the first word of "uname", so it can be a program name with args.
    set dummy uname; 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_path_ac_pt_UNAME+set}" = set; then
      echo $ECHO_N "(cached) $ECHO_C" >&6
    else
      case $ac_pt_UNAME in
      [\\/]* | ?:[\\/]*)
      ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
      ;;
      *)
      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_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        break 2
      fi
    done
    done
    IFS=$as_save_IFS
    
      ;;
    esac
    fi
    ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
    if test -n "$ac_pt_UNAME"; then
      { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
    echo "${ECHO_T}$ac_pt_UNAME" >&6; }
    else
      { echo "$as_me:$LINENO: result: no" >&5
    echo "${ECHO_T}no" >&6; }
    fi
    
      if test "x$ac_pt_UNAME" = x; then
        UNAME="No"
      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
        UNAME=$ac_pt_UNAME
      fi
    else
      UNAME="$ac_cv_path_UNAME"
    fi
    
    if test ! x"${UNAME}" = xNo; then
       PBX_OSREV=$(${UNAME} -r)
    fi
    
    
    
    
    
    
    
    
    # cross-compile checks
    if test "${cross_compiling}" = "yes";
    then
       if test -n "$ac_tool_prefix"; then
      # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    set dummy ${ac_tool_prefix}gcc; ac_word=$2
    { echo "$as_me:$LINENO: checking for $ac_word" >&5
    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
    if test "${ac_cv_prog_CC+set}" = set; then
      echo $ECHO_N "(cached) $ECHO_C" >&6
    else
      if test -n "$CC"; then
      ac_cv_prog_CC="$CC" # Let the user override the test.
    else
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
      for ac_exec_ext in '' $ac_executable_extensions; do
    
      if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    
        ac_cv_prog_CC="${ac_tool_prefix}gcc"
        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        break 2
      fi
    done
    done
    IFS=$as_save_IFS
    
    fi
    fi
    CC=$ac_cv_prog_CC
    if test -n "$CC"; then
      { echo "$as_me:$LINENO: result: $CC" >&5
    echo "${ECHO_T}$CC" >&6; }
    else
      { echo "$as_me:$LINENO: result: no" >&5
    echo "${ECHO_T}no" >&6; }
    fi
    
    
    fi
    if test -z "$ac_cv_prog_CC"; then
      ac_ct_CC=$CC
      # Extract the first word of "gcc", so it can be a program name with args.
    set dummy gcc; ac_word=$2
    { 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_CC+set}" = set; then
      echo $ECHO_N "(cached) $ECHO_C" >&6
    else
      if test -n "$ac_ct_CC"; then
      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    else
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
      for ac_exec_ext in '' $ac_executable_extensions; do
    
      if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    
        ac_cv_prog_ac_ct_CC="gcc"
        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        break 2
      fi
    done
    done
    IFS=$as_save_IFS
    
    fi
    fi
    ac_ct_CC=$ac_cv_prog_ac_ct_CC
    if test -n "$ac_ct_CC"; then
      { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    echo "${ECHO_T}$ac_ct_CC" >&6; }
    else
      { echo "$as_me:$LINENO: result: no" >&5
    echo "${ECHO_T}no" >&6; }
    fi
    
      if test "x$ac_ct_CC" = x; then
        CC=":"
      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
        CC=$ac_ct_CC
      fi
    else
      CC="$ac_cv_prog_CC"
    fi
    
       if test -n "$ac_tool_prefix"; then
      # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
    set dummy ${ac_tool_prefix}g++; 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}g++"
        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        break 2
      fi
    done
    done
    IFS=$as_save_IFS
    
    fi
    fi
    CXX=$ac_cv_prog_CXX
    if test -n "$CXX"; then
      { echo "$as_me:$LINENO: result: $CXX" >&5
    echo "${ECHO_T}$CXX" >&6; }
    else
      { echo "$as_me:$LINENO: result: no" >&5
    echo "${ECHO_T}no" >&6; }
    fi
    
    
    fi
    if test -z "$ac_cv_prog_CXX"; then
      ac_ct_CXX=$CXX
      # Extract the first word of "g++", so it can be a program name with args.
    set dummy g++; 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="g++"
        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        break 2
      fi
    done
    done
    IFS=$as_save_IFS
    
    fi
    fi
    ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
    if test -n "$ac_ct_CXX"; then
      { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
    echo "${ECHO_T}$ac_ct_CXX" >&6; }
    else
      { echo "$as_me:$LINENO: result: no" >&5
    echo "${ECHO_T}no" >&6; }
    fi
    
      if test "x$ac_ct_CXX" = x; then
        CXX=":"
      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
    else
      CXX="$ac_cv_prog_CXX"
    fi
    
       if test -n "$ac_tool_prefix"; then
      # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
    set dummy ${ac_tool_prefix}ld; 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_LD+set}" = set; then
      echo $ECHO_N "(cached) $ECHO_C" >&6
    else
      if test -n "$LD"; then
      ac_cv_prog_LD="$LD" # 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_LD="${ac_tool_prefix}ld"
        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        break 2
      fi
    done
    done
    IFS=$as_save_IFS
    
    fi
    fi
    LD=$ac_cv_prog_LD
    if test -n "$LD"; then
      { echo "$as_me:$LINENO: result: $LD" >&5
    echo "${ECHO_T}$LD" >&6; }
    else
      { echo "$as_me:$LINENO: result: no" >&5
    echo "${ECHO_T}no" >&6; }
    fi
    
    
    fi
    if test -z "$ac_cv_prog_LD"; then
      ac_ct_LD=$LD
      # Extract the first word of "ld", so it can be a program name with args.
    set dummy ld; 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_LD+set}" = set; then
      echo $ECHO_N "(cached) $ECHO_C" >&6
    else
      if test -n "$ac_ct_LD"; then
      ac_cv_prog_ac_ct_LD="$ac_ct_LD" # 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_LD="ld"
        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        break 2
      fi
    done
    done
    IFS=$as_save_IFS
    
    fi
    fi
    ac_ct_LD=$ac_cv_prog_ac_ct_LD
    if test -n "$ac_ct_LD"; then
      { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
    echo "${ECHO_T}$ac_ct_LD" >&6; }
    else
      { echo "$as_me:$LINENO: result: no" >&5
    echo "${ECHO_T}no" >&6; }
    fi
    
      if test "x$ac_ct_LD" = x; then
        LD=":"
      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
        LD=$ac_ct_LD
      fi
    else
      LD="$ac_cv_prog_LD"
    fi
    
       if test -n "$ac_tool_prefix"; then
      # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
    set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+set}" = set; then
      echo $ECHO_N "(cached) $ECHO_C" >&6
    else
      if test -n "$RANLIB"; then
      ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        break 2
      fi
    done
    done
    IFS=$as_save_IFS
    
    fi
    fi
    RANLIB=$ac_cv_prog_RANLIB
    if test -n "$RANLIB"; then
      { echo "$as_me:$LINENO: result: $RANLIB" >&5
    echo "${ECHO_T}$RANLIB" >&6; }
    else
      { echo "$as_me:$LINENO: result: no" >&5
    echo "${ECHO_T}no" >&6; }
    fi
    
    
    fi
    if test -z "$ac_cv_prog_RANLIB"; then
      ac_ct_RANLIB=$RANLIB
      # Extract the first word of "ranlib", so it can be a program name with args.
    set dummy ranlib; 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_RANLIB+set}" = set; then
      echo $ECHO_N "(cached) $ECHO_C" >&6
    else
      if test -n "$ac_ct_RANLIB"; then
      ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_RANLIB="ranlib"
        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        break 2
      fi
    done
    done
    IFS=$as_save_IFS
    
    fi
    fi
    ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    if test -n "$ac_ct_RANLIB"; then
      { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
    echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
    else
      { echo "$as_me:$LINENO: result: no" >&5
    echo "${ECHO_T}no" >&6; }
    fi
    
      if test "x$ac_ct_RANLIB" = x; then
        RANLIB=":"
      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
        RANLIB=$ac_ct_RANLIB
      fi
    else
      RANLIB="$ac_cv_prog_RANLIB"
    fi
    
    
    # Checks for programs.
    ac_ext=c
    ac_cpp='$CPP $CPPFLAGS'
    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    ac_compiler_gnu=$ac_cv_c_compiler_gnu
    if test -n "$ac_tool_prefix"; then
      # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    set dummy ${ac_tool_prefix}gcc; ac_word=$2
    
    { echo "$as_me:$LINENO: checking for $ac_word" >&5
    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
    
    if test "${ac_cv_prog_CC+set}" = set; then
    
      echo $ECHO_N "(cached) $ECHO_C" >&6
    else
    
      if test -n "$CC"; then
      ac_cv_prog_CC="$CC" # Let the user override the test.
    
    else
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
      for ac_exec_ext in '' $ac_executable_extensions; do
    
      if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    
        ac_cv_prog_CC="${ac_tool_prefix}gcc"
    
        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        break 2
      fi
    done
    done
    
    CC=$ac_cv_prog_CC
    if test -n "$CC"; then
      { echo "$as_me:$LINENO: result: $CC" >&5
    echo "${ECHO_T}$CC" >&6; }
    
      { echo "$as_me:$LINENO: result: no" >&5
    echo "${ECHO_T}no" >&6; }
    
    if test -z "$ac_cv_prog_CC"; then
      ac_ct_CC=$CC
      # Extract the first word of "gcc", so it can be a program name with args.
    set dummy gcc; ac_word=$2
    
    { 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_CC+set}" = set; then
    
      echo $ECHO_N "(cached) $ECHO_C" >&6
    else
    
      if test -n "$ac_ct_CC"; then
      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    
    else
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
      for ac_exec_ext in '' $ac_executable_extensions; do
    
      if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    
        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        break 2
      fi
    done
    done
    
    ac_ct_CC=$ac_cv_prog_ac_ct_CC
    if test -n "$ac_ct_CC"; then
      { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    echo "${ECHO_T}$ac_ct_CC" >&6; }
    
      { echo "$as_me:$LINENO: result: no" >&5
    echo "${ECHO_T}no" >&6; }
    
      if test "x$ac_ct_CC" = x; then
        CC=""
    
      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
    
    if test -z "$CC"; then
              if test -n "$ac_tool_prefix"; then
        # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    set dummy ${ac_tool_prefix}cc; ac_word=$2
    
    { echo "$as_me:$LINENO: checking for $ac_word" >&5
    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
    
    if test "${ac_cv_prog_CC+set}" = set; then
    
      echo $ECHO_N "(cached) $ECHO_C" >&6
    else
    
      if test -n "$CC"; then
      ac_cv_prog_CC="$CC" # Let the user override the test.
    
    else
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
      for ac_exec_ext in '' $ac_executable_extensions; do
    
      if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    
        ac_cv_prog_CC="${ac_tool_prefix}cc"
    
        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        break 2
      fi
    done
    done
    
    CC=$ac_cv_prog_CC
    if test -n "$CC"; then
      { echo "$as_me:$LINENO: result: $CC" >&5
    echo "${ECHO_T}$CC" >&6; }
    
      { echo "$as_me:$LINENO: result: no" >&5
    echo "${ECHO_T}no" >&6; }
    
    if test -z "$CC"; then
      # Extract the first word of "cc", so it can be a program name with args.
    set dummy cc; ac_word=$2
    
    { echo "$as_me:$LINENO: checking for $ac_word" >&5
    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
    
    if test "${ac_cv_prog_CC+set}" = set; then
    
      echo $ECHO_N "(cached) $ECHO_C" >&6
    else
    
      if test -n "$CC"; then
      ac_cv_prog_CC="$CC" # Let the user override the test.
    
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
      for ac_exec_ext in '' $ac_executable_extensions; do
    
      if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    
        if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
           ac_prog_rejected=yes
           continue
         fi
        ac_cv_prog_CC="cc"
    
        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        break 2
      fi
    done
    done
    
    if test $ac_prog_rejected = yes; then
      # We found a bogon in the path, so make sure we never use it.
      set dummy $ac_cv_prog_CC
      shift
      if test $# != 0; then
        # We chose a different compiler from the bogus one.
        # However, it has the same basename, so the bogon will be chosen
        # first if we set CC to just the basename; use the full file name.
        shift
        ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
      fi
    fi
    
    CC=$ac_cv_prog_CC
    if test -n "$CC"; then
      { echo "$as_me:$LINENO: result: $CC" >&5
    echo "${ECHO_T}$CC" >&6; }
    
      { echo "$as_me:$LINENO: result: no" >&5
    echo "${ECHO_T}no" >&6; }
    
    fi
    if test -z "$CC"; then
      if test -n "$ac_tool_prefix"; then
      for ac_prog in cl.exe
      do
        # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    
    { echo "$as_me:$LINENO: checking for $ac_word" >&5
    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
    
    if test "${ac_cv_prog_CC+set}" = set; then
    
      echo $ECHO_N "(cached) $ECHO_C" >&6
    else
    
      if test -n "$CC"; then
      ac_cv_prog_CC="$CC" # Let the user override the test.
    
    else
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
      for ac_exec_ext in '' $ac_executable_extensions; do
    
      if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    
        ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    
        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        break 2
      fi
    done
    done
    
    CC=$ac_cv_prog_CC
    if test -n "$CC"; then
      { echo "$as_me:$LINENO: result: $CC" >&5
    echo "${ECHO_T}$CC" >&6; }
    
      { echo "$as_me:$LINENO: result: no" >&5
    echo "${ECHO_T}no" >&6; }
    
      for ac_prog in cl.exe
    do
      # Extract the first word of "$ac_prog", so it can be a program name with args.
    set dummy $ac_prog; ac_word=$2
    
    { 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_CC+set}" = set; then
      echo $ECHO_N "(cached) $ECHO_C" >&6
    else
      if test -n "$ac_ct_CC"; then
      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    else
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
      for ac_exec_ext in '' $ac_executable_extensions; do
    
      if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    
        ac_cv_prog_ac_ct_CC="$ac_prog"
    
        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        break 2
      fi
    done
    done
    
    
    fi
    fi
    ac_ct_CC=$ac_cv_prog_ac_ct_CC
    if test -n "$ac_ct_CC"; then
    
      { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    echo "${ECHO_T}$ac_ct_CC" >&6; }
    
      { echo "$as_me:$LINENO: result: no" >&5
    echo "${ECHO_T}no" >&6; }
    
      if test "x$ac_ct_CC" = x; then
        CC=""
      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
        CC=$ac_ct_CC
      fi
    
    test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
    See \`config.log' for more details." >&5
    echo "$as_me: error: no acceptable C compiler found in \$PATH
    See \`config.log' for more details." >&2;}
       { (exit 1); exit 1; }; }
    
    # 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_c_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_c_werror_flag" ||
    	 test ! -s conftest.err
           } && test -s conftest.$ac_objext; then