Skip to content
Snippets Groups Projects
configure 412 KiB
Newer Older
  • Learn to ignore specific revisions
  • 
    NM="$ac_cv_path_NM"
    echo "$ac_t""$NM" 1>&6
    
    echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    
    echo "configure:3007: checking whether ln -s works" >&5
    
    if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
    
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      rm -f conftestdata
    if ln -s X conftestdata 2>/dev/null
    then
      rm -f conftestdata
      ac_cv_prog_LN_S="ln -s"
    else
      ac_cv_prog_LN_S=ln
    fi
    fi
    LN_S="$ac_cv_prog_LN_S"
    if test "$ac_cv_prog_LN_S" = "ln -s"; then
      echo "$ac_t""yes" 1>&6
    else
      echo "$ac_t""no" 1>&6
    fi
    
    
    if test $host != $build; then
      ac_tool_prefix=${host_alias}-
    else
      ac_tool_prefix=
    fi
    
    
    case "$target" in
    NONE) lt_target="$host" ;;
    *) lt_target="$target" ;;
    esac
    
    
    # Check for any special flags to pass to ltconfig.
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    libtool_flags="--cache-file=$cache_file"
    
    test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
    test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
    
    test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
    test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
    
    libtool_flags="$libtool_flags --enable-dlopen"
    
    libtool_flags="$libtool_flags --enable-win32-dll"
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
    if test "${enable_libtool_lock+set}" = set; then
      enableval="$enable_libtool_lock"
      :
    fi
    
    test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
    test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
    
    
    # Some flags need to be propagated to the compiler or linker for good
    # libtool support.
    
    case "$lt_target" in
    
    *-*-irix6*)
      # Find out which ABI we are using.
    
      echo '#line 3062 "configure"' > conftest.$ac_ext
      if { (eval echo configure:3063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    
        case "`/usr/bin/file conftest.o`" in
        *32-bit*)
          LD="${LD-ld} -32"
          ;;
        *N32*)
          LD="${LD-ld} -n32"
          ;;
        *64-bit*)
          LD="${LD-ld} -64"
          ;;
        esac
      fi
      rm -rf conftest*
      ;;
    
    *-*-sco3.2v5*)
      # On SCO OpenServer 5, we need -belf to get full-featured binaries.
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
      SAVE_CFLAGS="$CFLAGS"
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
      echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
    
    echo "configure:3084: checking whether the C compiler needs -belf" >&5
    
    if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      cat > conftest.$ac_ext <<EOF
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    #include "confdefs.h"
    
    int main() {
    
    ; return 0; }
    EOF
    
    if { (eval echo configure:3096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
      rm -rf conftest*
      lt_cv_cc_needs_belf=yes
    else
      echo "configure: failed program was:" >&5
      cat conftest.$ac_ext >&5
      rm -rf conftest*
      lt_cv_cc_needs_belf=no
    fi
    rm -f conftest*
    fi
    
    echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
      if test x"$lt_cv_cc_needs_belf" != x"yes"; then
        # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
        CFLAGS="$SAVE_CFLAGS"
      fi
    
    *-*-cygwin* | *-*-mingw*)
      # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
    set dummy ${ac_tool_prefix}dlltool; ac_word=$2
    echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    
    echo "configure:3119: checking for $ac_word" >&5
    
    if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
    
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      if test -n "$DLLTOOL"; then
      ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
    else
      IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
      ac_dummy="$PATH"
      for ac_dir in $ac_dummy; do
        test -z "$ac_dir" && ac_dir=.
        if test -f $ac_dir/$ac_word; then
          ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
          break
        fi
      done
      IFS="$ac_save_ifs"
    fi
    fi
    DLLTOOL="$ac_cv_prog_DLLTOOL"
    if test -n "$DLLTOOL"; then
      echo "$ac_t""$DLLTOOL" 1>&6
    else
      echo "$ac_t""no" 1>&6
    fi
    
    
    if test -z "$ac_cv_prog_DLLTOOL"; then
    if test -n "$ac_tool_prefix"; then
      # Extract the first word of "dlltool", so it can be a program name with args.
    set dummy dlltool; ac_word=$2
    echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    
    echo "configure:3151: checking for $ac_word" >&5
    
    if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
    
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      if test -n "$DLLTOOL"; then
      ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
    else
      IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
      ac_dummy="$PATH"
      for ac_dir in $ac_dummy; do
        test -z "$ac_dir" && ac_dir=.
        if test -f $ac_dir/$ac_word; then
          ac_cv_prog_DLLTOOL="dlltool"
          break
        fi
      done
      IFS="$ac_save_ifs"
      test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
    fi
    fi
    DLLTOOL="$ac_cv_prog_DLLTOOL"
    if test -n "$DLLTOOL"; then
      echo "$ac_t""$DLLTOOL" 1>&6
    else
      echo "$ac_t""no" 1>&6
    fi
    
    else
      DLLTOOL="false"
    fi
    fi
    
      # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
    set dummy ${ac_tool_prefix}as; ac_word=$2
    echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    
    echo "configure:3186: checking for $ac_word" >&5
    
    if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
    
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      if test -n "$AS"; then
      ac_cv_prog_AS="$AS" # Let the user override the test.
    else
      IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
      ac_dummy="$PATH"
      for ac_dir in $ac_dummy; do
        test -z "$ac_dir" && ac_dir=.
        if test -f $ac_dir/$ac_word; then
          ac_cv_prog_AS="${ac_tool_prefix}as"
          break
        fi
      done
      IFS="$ac_save_ifs"
    fi
    fi
    AS="$ac_cv_prog_AS"
    if test -n "$AS"; then
      echo "$ac_t""$AS" 1>&6
    else
      echo "$ac_t""no" 1>&6
    fi
    
    
    if test -z "$ac_cv_prog_AS"; then
    if test -n "$ac_tool_prefix"; then
      # Extract the first word of "as", so it can be a program name with args.
    set dummy as; ac_word=$2
    echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    
    echo "configure:3218: checking for $ac_word" >&5
    
    if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
    
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      if test -n "$AS"; then
      ac_cv_prog_AS="$AS" # Let the user override the test.
    else
      IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
      ac_dummy="$PATH"
      for ac_dir in $ac_dummy; do
        test -z "$ac_dir" && ac_dir=.
        if test -f $ac_dir/$ac_word; then
          ac_cv_prog_AS="as"
          break
        fi
      done
      IFS="$ac_save_ifs"
      test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
    fi
    fi
    AS="$ac_cv_prog_AS"
    if test -n "$AS"; then
      echo "$ac_t""$AS" 1>&6
    else
      echo "$ac_t""no" 1>&6
    fi
    
    else
      AS="false"
    fi
    fi
    
      # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
    set dummy ${ac_tool_prefix}objdump; ac_word=$2
    echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    
    echo "configure:3253: checking for $ac_word" >&5
    
    if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
    
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      if test -n "$OBJDUMP"; then
      ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
    else
      IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
      ac_dummy="$PATH"
      for ac_dir in $ac_dummy; do
        test -z "$ac_dir" && ac_dir=.
        if test -f $ac_dir/$ac_word; then
          ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
          break
        fi
      done
      IFS="$ac_save_ifs"
    fi
    fi
    OBJDUMP="$ac_cv_prog_OBJDUMP"
    if test -n "$OBJDUMP"; then
      echo "$ac_t""$OBJDUMP" 1>&6
    else
      echo "$ac_t""no" 1>&6
    fi
    
    
    if test -z "$ac_cv_prog_OBJDUMP"; then
    if test -n "$ac_tool_prefix"; then
      # Extract the first word of "objdump", so it can be a program name with args.
    set dummy objdump; ac_word=$2
    echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    
    echo "configure:3285: checking for $ac_word" >&5
    
    if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
    
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      if test -n "$OBJDUMP"; then
      ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
    else
      IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
      ac_dummy="$PATH"
      for ac_dir in $ac_dummy; do
        test -z "$ac_dir" && ac_dir=.
        if test -f $ac_dir/$ac_word; then
          ac_cv_prog_OBJDUMP="objdump"
          break
        fi
      done
      IFS="$ac_save_ifs"
      test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
    fi
    fi
    OBJDUMP="$ac_cv_prog_OBJDUMP"
    if test -n "$OBJDUMP"; then
      echo "$ac_t""$OBJDUMP" 1>&6
    else
      echo "$ac_t""no" 1>&6
    fi
    
    else
      OBJDUMP="false"
    fi
    fi
    
      ;;
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    
    # Save cache, so that ltconfig can load it
    
    
    
    # Actually configure libtool.  ac_aux_dir is where install-sh is found.
    CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
    LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
    DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
    ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
    
    $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
    
    || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
    
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    # Reload cache, that may have been modified by ltconfig
    
    
    # This can be used to rebuild libtool when needed
    LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
    
    # Always use our own libtool.
    LIBTOOL='$(SHELL) $(top_builddir)/libtool'
    
    # Redirect the config.log output again, so that the ltconfig log is not
    # clobbered by the next message.
    exec 5>>./config.log
    
    
    for ac_prog in mawk gawk nawk awk
    
    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 $ac_n "checking for $ac_word""... $ac_c" 1>&6
    
    echo "configure:3353: checking for $ac_word" >&5
    
    if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
    
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      if test -n "$AWK"; then
      ac_cv_prog_AWK="$AWK" # Let the user override the test.
    else
      IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
      ac_dummy="$PATH"
      for ac_dir in $ac_dummy; do
        test -z "$ac_dir" && ac_dir=.
        if test -f $ac_dir/$ac_word; then
          ac_cv_prog_AWK="$ac_prog"
          break
        fi
      done
      IFS="$ac_save_ifs"
    fi
    fi
    AWK="$ac_cv_prog_AWK"
    if test -n "$AWK"; then
      echo "$ac_t""$AWK" 1>&6
    else
      echo "$ac_t""no" 1>&6
    fi
    
    test -n "$AWK" && break
    done
    
    
    # test for ln hardlink support
    echo $ac_n "checking whether ln works""... $ac_c" 1>&6
    
    echo "configure:3384: checking whether ln works" >&5
    
    if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
    
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      rm -f conftest.src conftest.dst
    echo "conftest" > conftest.src
    if ln conftest.src conftest.dst 2>/dev/null
    then
      ol_cv_prog_LN_H="ln"
    else
      ol_cv_prog_LN_H="cp"
    fi
    rm -f conftest.src conftest.dst
    
    fi
    LN_H="$ol_cv_prog_LN_H"
    if test "$ol_cv_prog_LN_H" = "ln"; then
    	echo "$ac_t""yes" 1>&6
    else
    	echo "$ac_t""no" 1>&6
    fi
    
    
    echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    
    echo "configure:3407: checking whether ln -s works" >&5
    
    if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
    
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      rm -f conftestdata
    if ln -s X conftestdata 2>/dev/null
    then
      rm -f conftestdata
      ac_cv_prog_LN_S="ln -s"
    else
      ac_cv_prog_LN_S=ln
    fi
    fi
    LN_S="$ac_cv_prog_LN_S"
    if test "$ac_cv_prog_LN_S" = "ln -s"; then
      echo "$ac_t""yes" 1>&6
    else
      echo "$ac_t""no" 1>&6
    fi
    
    
    
    if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
    	LN_S="$LN_H"
    fi
    
    
    # Extract the first word of "sendmail", so it can be a program name with args.
    set dummy sendmail; ac_word=$2
    echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    
    echo "configure:3435: checking for $ac_word" >&5
    
    if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
    
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      case "$SENDMAIL" in
      /*)
      ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
      ;;
    
      ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
      ;;
    
      IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
      ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
      for ac_dir in $ac_dummy; do 
    
        test -z "$ac_dir" && ac_dir=.
        if test -f $ac_dir/$ac_word; then
          ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
          break
        fi
      done
      IFS="$ac_save_ifs"
      test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
      ;;
    esac
    fi
    SENDMAIL="$ac_cv_path_SENDMAIL"
    if test -n "$SENDMAIL"; then
      echo "$ac_t""$SENDMAIL" 1>&6
    else
      echo "$ac_t""no" 1>&6
    fi
    
    # Extract the first word of "vi", so it can be a program name with args.
    set dummy vi; ac_word=$2
    echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    
    echo "configure:3471: checking for $ac_word" >&5
    
    if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
    
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      case "$EDITOR" in
      /*)
      ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
      ;;
    
      ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
      ;;
    
      IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
      ac_dummy="$PATH:/usr/ucb"
      for ac_dir in $ac_dummy; do 
    
        test -z "$ac_dir" && ac_dir=.
        if test -f $ac_dir/$ac_word; then
          ac_cv_path_EDITOR="$ac_dir/$ac_word"
          break
        fi
      done
      IFS="$ac_save_ifs"
      test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
      ;;
    esac
    fi
    EDITOR="$ac_cv_path_EDITOR"
    if test -n "$EDITOR"; then
      echo "$ac_t""$EDITOR" 1>&6
    else
      echo "$ac_t""no" 1>&6
    fi
    
    # Extract the first word of "finger", so it can be a program name with args.
    set dummy finger; ac_word=$2
    echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    
    echo "configure:3507: checking for $ac_word" >&5
    
    if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
    
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      case "$FINGER" in
      /*)
      ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
      ;;
    
      ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
      ;;
    
      IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
      ac_dummy="$PATH:/usr/ucb"
      for ac_dir in $ac_dummy; do 
    
        test -z "$ac_dir" && ac_dir=.
        if test -f $ac_dir/$ac_word; then
          ac_cv_path_FINGER="$ac_dir/$ac_word"
          break
        fi
      done
      IFS="$ac_save_ifs"
      test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
      ;;
    esac
    fi
    FINGER="$ac_cv_path_FINGER"
    if test -n "$FINGER"; then
      echo "$ac_t""$FINGER" 1>&6
    else
      echo "$ac_t""no" 1>&6
    fi
    
    
    
    ol_link_perl=no
    if test $ol_enable_perl != no ; then
    
    	# Extract the first word of "perl", so it can be a program name with args.
    set dummy perl; ac_word=$2
    echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    
    echo "configure:3546: checking for $ac_word" >&5
    
    if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
    
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      case "$PERLBIN" in
      /*)
      ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
      ;;
    
      ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
      ;;
    
      IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
      ac_dummy="$PATH"
      for ac_dir in $ac_dummy; do 
    
        test -z "$ac_dir" && ac_dir=.
        if test -f $ac_dir/$ac_word; then
          ac_cv_path_PERLBIN="$ac_dir/$ac_word"
          break
        fi
      done
      IFS="$ac_save_ifs"
      test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
      ;;
    esac
    fi
    PERLBIN="$ac_cv_path_PERLBIN"
    if test -n "$PERLBIN"; then
      echo "$ac_t""$PERLBIN" 1>&6
    else
      echo "$ac_t""no" 1>&6
    fi
    
    
    	if test "no$PERLBIN" = "no" ; then
    
    		if test $ol_enable_perl = yes ; then
    			{ echo "configure: error: could not locate perl" 1>&2; exit 1; }
    		fi
    
    	else
    
    		PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
    
    		if test x"$ol_with_perl_module" = "xstatic" ; then
    
    			SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
    		else
    			MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
    		fi
    
    echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    
    echo "configure:3597: checking how to run the C preprocessor" >&5
    
    # On Suns, sometimes $CPP names a directory.
    if test -n "$CPP" && test -d "$CPP"; then
      CPP=
    fi
    if test -z "$CPP"; then
    
    if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
    
      echo $ac_n "(cached) $ac_c" 1>&6
    else
        # This must be in double quotes, not single quotes, because CPP may get
      # substituted into the Makefile and "${CC-cc}" will confuse make.
      CPP="${CC-cc} -E"
      # On the NeXT, cc -E runs the code through the compiler's parser,
      # not just through cpp.
      cat > conftest.$ac_ext <<EOF
    
    #include "confdefs.h"
    #include <assert.h>
    Syntax Error
    EOF
    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    
    { (eval echo configure:3618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    
    ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    
    if test -z "$ac_err"; then
      :
    else
      echo "$ac_err" >&5
      echo "configure: failed program was:" >&5
      cat conftest.$ac_ext >&5
      rm -rf conftest*
      CPP="${CC-cc} -E -traditional-cpp"
      cat > conftest.$ac_ext <<EOF
    
    #include "confdefs.h"
    #include <assert.h>
    Syntax Error
    EOF
    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    
    { (eval echo configure:3635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    
    ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    if test -z "$ac_err"; then
      :
    else
      echo "$ac_err" >&5
      echo "configure: failed program was:" >&5
      cat conftest.$ac_ext >&5
      rm -rf conftest*
      CPP="${CC-cc} -nologo -E"
      cat > conftest.$ac_ext <<EOF
    
    #include "confdefs.h"
    #include <assert.h>
    Syntax Error
    EOF
    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    
    { (eval echo configure:3652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    
    ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    
    if test -z "$ac_err"; then
      :
    else
      echo "$ac_err" >&5
      echo "configure: failed program was:" >&5
      cat conftest.$ac_ext >&5
      rm -rf conftest*
      CPP=/lib/cpp
    fi
    rm -f conftest*
    fi
    
    rm -f conftest*
      ac_cv_prog_CPP="$CPP"
    fi
      CPP="$ac_cv_prog_CPP"
    else
      ac_cv_prog_CPP="$CPP"
    fi
    echo "$ac_t""$CPP" 1>&6
    
    
    
    if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
    	echo "configure: warning: cross compiling....  some functionality will be removed." 1>&2
    
    elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
    	echo "configure: warning: programs compiled here do run here..." 1>&2
    	{ echo "configure: error:   if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
    
    elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
    	echo "configure: warning: programs compiled here do not run here..." 1>&2
    	{ echo "configure: error:   if cross compiling,  add --enable-x-compile." 1>&2; exit 1; }
    fi
    
    
    echo $ac_n "checking for AIX""... $ac_c" 1>&6
    
    echo "configure:3690: checking for AIX" >&5
    
    cat > conftest.$ac_ext <<EOF
    
    #include "confdefs.h"
    #ifdef _AIX
      yes
    #endif
    
    EOF
    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
      egrep "yes" >/dev/null 2>&1; then
      rm -rf conftest*
      echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
    #define _ALL_SOURCE 1
    EOF
    
    else
      rm -rf conftest*
      echo "$ac_t""no" 1>&6
    fi
    rm -f conftest*
    
    
    echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
    
    echo "configure:3714: checking for POSIXized ISC" >&5
    
    if test -d /etc/conf/kconfig.d &&
      grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
    then
      echo "$ac_t""yes" 1>&6
      ISC=yes # If later tests want to check for ISC.
      cat >> confdefs.h <<\EOF
    #define _POSIX_SOURCE 1
    EOF
    
      if test "$GCC" = yes; then
        CC="$CC -posix"
      else
        CC="$CC -Xp"
      fi
    else
      echo "$ac_t""no" 1>&6
      ISC=
    fi
    
    ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
    echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
    
    echo "configure:3736: checking for minix/config.h" >&5
    
    if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
    
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      cat > conftest.$ac_ext <<EOF
    
    #include "confdefs.h"
    #include <minix/config.h>
    EOF
    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    
    { (eval echo configure:3746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    
    ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    
    if test -z "$ac_err"; then
      rm -rf conftest*
      eval "ac_cv_header_$ac_safe=yes"
    else
      echo "$ac_err" >&5
      echo "configure: failed program was:" >&5
      cat conftest.$ac_ext >&5
      rm -rf conftest*
      eval "ac_cv_header_$ac_safe=no"
    fi
    rm -f conftest*
    fi
    if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
      echo "$ac_t""yes" 1>&6
      MINIX=yes
    else
      echo "$ac_t""no" 1>&6
    MINIX=
    fi
    
    if test "$MINIX" = yes; then
      cat >> confdefs.h <<\EOF
    #define _POSIX_SOURCE 1
    EOF
    
      cat >> confdefs.h <<\EOF
    #define _POSIX_1_SOURCE 2
    EOF
    
      cat >> confdefs.h <<\EOF
    #define _MINIX 1
    EOF
    
    fi
    
    
    
    echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
    
    echo "configure:3785: checking for Cygwin environment" >&5
    
    if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
    
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      cat > conftest.$ac_ext <<EOF
    
    #include "confdefs.h"
    
    int main() {
    
    #ifndef __CYGWIN__
    #define __CYGWIN__ __CYGWIN32__
    #endif
    return __CYGWIN__;
    ; return 0; }
    EOF
    
    if { (eval echo configure:3801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    
      rm -rf conftest*
      ac_cv_cygwin=yes
    else
      echo "configure: failed program was:" >&5
      cat conftest.$ac_ext >&5
      rm -rf conftest*
      ac_cv_cygwin=no
    fi
    rm -f conftest*
    fi
    
    echo "$ac_t""$ac_cv_cygwin" 1>&6
    CYGWIN=
    test "$ac_cv_cygwin" = yes && CYGWIN=yes
    echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
    
    echo "configure:3817: checking for mingw32 environment" >&5
    
    if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
    
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      cat > conftest.$ac_ext <<EOF
    
    #include "confdefs.h"
    
    int main() {
    return __MINGW32__;
    ; return 0; }
    EOF
    
    if { (eval echo configure:3829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    
      rm -rf conftest*
      ac_cv_mingw32=yes
    else
      echo "configure: failed program was:" >&5
      cat conftest.$ac_ext >&5
      rm -rf conftest*
      ac_cv_mingw32=no
    fi
    rm -f conftest*
    fi
    
    echo "$ac_t""$ac_cv_mingw32" 1>&6
    MINGW32=
    test "$ac_cv_mingw32" = yes && MINGW32=yes
    
    echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
    
    echo "configure:3845: checking for EMX OS/2 environment" >&5
    
    if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      cat > conftest.$ac_ext <<EOF
    
    #include "confdefs.h"
    
    int main() {
    return __EMX__;
    ; return 0; }
    EOF
    
    if { (eval echo configure:3857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    
      rm -rf conftest*
      ac_cv_emxos2=yes
    else
      echo "configure: failed program was:" >&5
      cat conftest.$ac_ext >&5
      rm -rf conftest*
      ac_cv_emxos2=no
    fi
    rm -f conftest*
    fi
    
    echo "$ac_t""$ac_cv_emxos2" 1>&6
    EMXOS2=
    test "$ac_cv_emxos2" = yes && EMXOS2=yes
    
    
    
    
    echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
    
    echo "configure:3876: checking for executable suffix" >&5
    
    if eval "test \"\${ac_cv_exeext+set}\" = set"; then
    
      echo $ac_n "(cached) $ac_c" 1>&6
    else
    
      if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
    
      ac_cv_exeext=.exe
    else
      rm -f conftest*
      echo 'int main () { return 0; }' > conftest.$ac_ext
      ac_cv_exeext=
    
      if { (eval echo configure:3886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    
        for file in conftest.*; do
          case $file in
    
          *.c | *.C | *.o | *.obj | *.xcoff) ;;
    
          *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
          esac
        done
      else
        { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
      fi
      rm -f conftest*
      test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
    fi
    fi
    
    EXEEXT=""
    test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
    echo "$ac_t""${ac_cv_exeext}" 1>&6
    ac_exeext=$EXEEXT
    
    echo $ac_n "checking for object suffix""... $ac_c" 1>&6
    
    echo "configure:3907: checking for object suffix" >&5
    
    if eval "test \"\${ac_cv_objext+set}\" = set"; then
    
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      rm -f conftest*
    echo 'int i = 1;' > conftest.$ac_ext
    
    if { (eval echo configure:3913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    
      for ac_file in conftest.*; do
        case $ac_file in
        *.c) ;;
        *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
        esac
      done
    else
      { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
    fi
    rm -f conftest*
    fi
    
    echo "$ac_t""$ac_cv_objext" 1>&6
    OBJEXT=$ac_cv_objext
    ac_objext=$ac_cv_objext
    
    
    
    cat >> confdefs.h <<EOF
    #define EXEEXT "${EXEEXT}"
    EOF
    
    
    
    echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
    
    echo "configure:3937: checking for be_app in -lbe" >&5
    
    ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
    if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
    
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      ac_save_LIBS="$LIBS"
    LIBS="-lbe -lroot -lnet $LIBS"
    cat > conftest.$ac_ext <<EOF
    
    #include "confdefs.h"
    /* Override any gcc2 internal prototype to avoid an error.  */
    /* We use char because int might match the return type of a gcc2
        builtin and then its argument prototype would still apply.  */
    char be_app();
    
    int main() {
    be_app()
    ; return 0; }
    EOF
    
    if { (eval echo configure:3956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    
      rm -rf conftest*
      eval "ac_cv_lib_$ac_lib_var=yes"
    else
      echo "configure: failed program was:" >&5
      cat conftest.$ac_ext >&5
      rm -rf conftest*
      eval "ac_cv_lib_$ac_lib_var=no"
    fi
    rm -f conftest*
    LIBS="$ac_save_LIBS"
    
    fi
    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
      echo "$ac_t""yes" 1>&6
      LIBS="$LIBS -lbe -lroot -lnet"
    else
      echo "$ac_t""no" 1>&6
    :
    fi
    
    
    
    
    echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
    
    echo "configure:3982: checking for ${CC-cc} option to accept ANSI C" >&5
    
    if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
    
      echo $ac_n "(cached) $ac_c" 1>&6
    else
      am_cv_prog_cc_stdc=no
    ac_save_CC="$CC"
    # Don't try gcc -ansi; that turns off useful extensions and
    # breaks some systems' header files.
    # AIX			-qlanglvl=ansi
    # Ultrix and OSF/1	-std1
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    # HP-UX 10.20 and later	-Ae
    # HP-UX older versions	-Aa -D_HPUX_SOURCE
    
    Kurt Zeilenga's avatar
    Kurt Zeilenga committed
    for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
    
    do
      CC="$ac_save_CC $ac_arg"
      cat > conftest.$ac_ext <<EOF