Skip to content
Snippets Groups Projects
configure 658 KiB
Newer Older
  • Learn to ignore specific revisions
  • SED=$lt_cv_path_SED
    
    echo "$as_me:$LINENO: result: $SED" >&5
    echo "${ECHO_T}$SED" >&6
    
    echo "$as_me:$LINENO: checking for egrep" >&5
    echo $ECHO_N "checking for egrep... $ECHO_C" >&6
    if test "${ac_cv_prog_egrep+set}" = set; then
      echo $ECHO_N "(cached) $ECHO_C" >&6
    
      if echo a | (grep -E '(a|b)') >/dev/null 2>&1
        then ac_cv_prog_egrep='grep -E'
        else ac_cv_prog_egrep='egrep'
        fi
    
    echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
    echo "${ECHO_T}$ac_cv_prog_egrep" >&6
     EGREP=$ac_cv_prog_egrep
    
    # Check whether --with-gnu-ld or --without-gnu-ld was given.
    
    if test "${with_gnu_ld+set}" = set; then
    
      withval="$with_gnu_ld"
      test "$withval" = no || with_gnu_ld=yes
    
    ac_prog=ld
    if test "$GCC" = yes; then
      # Check if gcc -print-prog-name=ld gives a path.
    
      echo "$as_me:$LINENO: checking for ld used by $CC" >&5
    echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
    
      case $host in
      *-*-mingw*)
        # gcc leaves a trailing carriage return which upsets mingw
        ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
      *)
        ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
      esac
      case $ac_prog in
        # Accept absolute paths.
        [\\/]* | ?:[\\/]*)
          re_direlt='/[^/][^/]*/\.\./'
          # Canonicalize the pathname of ld
    
          ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
          while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
    	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
    
          done
          test -z "$LD" && LD="$ac_prog"
          ;;
      "")
        # If it fails, then pretend we aren't using GCC.
        ac_prog=ld
        ;;
      *)
        # If it is relative, then search for the first ld in PATH.
        with_gnu_ld=unknown
        ;;
      esac
    elif test "$with_gnu_ld" = yes; then
    
      echo "$as_me:$LINENO: checking for GNU ld" >&5
    echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
    
      echo "$as_me:$LINENO: checking for non-GNU ld" >&5
    echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
    
    fi
    if test "${lt_cv_path_LD+set}" = set; then
    
      echo $ECHO_N "(cached) $ECHO_C" >&6
    
    else
      if test -z "$LD"; then
      lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
      for ac_dir in $PATH; do
        IFS="$lt_save_ifs"
        test -z "$ac_dir" && ac_dir=.
        if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
          lt_cv_path_LD="$ac_dir/$ac_prog"
          # Check to see if the program is GNU ld.  I'd rather use --version,
          # but apparently some variants of GNU ld only accept -v.
          # Break only if it was the GNU/non-GNU ld that we prefer.
          case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
          *GNU* | *'with BFD'*)
    	test "$with_gnu_ld" != no && break
    	;;
          *)
    	test "$with_gnu_ld" != yes && break
    	;;
          esac
        fi
      done
      IFS="$lt_save_ifs"
    else
      lt_cv_path_LD="$LD" # Let the user override the test with a path.
    fi
    fi
    
    LD="$lt_cv_path_LD"
    if test -n "$LD"; then
    
      echo "$as_me:$LINENO: result: $LD" >&5
    echo "${ECHO_T}$LD" >&6
    
      echo "$as_me:$LINENO: result: no" >&5
    echo "${ECHO_T}no" >&6
    
    test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
    echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
    
       { (exit 1); exit 1; }; }
    
    echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
    echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
    
    if test "${lt_cv_prog_gnu_ld+set}" = set; then
    
      echo $ECHO_N "(cached) $ECHO_C" >&6
    
    else
      # I'd rather use --version here, but apparently some GNU lds only accept -v.
    case `$LD -v 2>&1 </dev/null` in
    *GNU* | *'with BFD'*)
      lt_cv_prog_gnu_ld=yes
      ;;
    *)
      lt_cv_prog_gnu_ld=no
      ;;
    esac
    fi
    
    echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
    echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
    
    with_gnu_ld=$lt_cv_prog_gnu_ld
    
    
    
    echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
    echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
    if test "${lt_cv_ld_reload_flag+set}" = set; then
      echo $ECHO_N "(cached) $ECHO_C" >&6
    else
      lt_cv_ld_reload_flag='-r'
    fi
    echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
    echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
    reload_flag=$lt_cv_ld_reload_flag
    case $reload_flag in
    "" | " "*) ;;
    *) reload_flag=" $reload_flag" ;;
    esac
    reload_cmds='$LD$reload_flag -o $output$reload_objs'
    case $host_os in
      darwin*)
        if test "$GCC" = yes; then
          reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
        else
          reload_cmds='$LD$reload_flag -o $output$reload_objs'
        fi
        ;;
    esac
    
    echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
    echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
    
    if test "${lt_cv_path_NM+set}" = set; then
    
      echo $ECHO_N "(cached) $ECHO_C" >&6
    
    else
      if test -n "$NM"; then
      # Let the user override the test.
      lt_cv_path_NM="$NM"
    else
      lt_nm_to_check="${ac_tool_prefix}nm"
      if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
        lt_nm_to_check="$lt_nm_to_check nm"
      fi
      for lt_tmp_nm in $lt_nm_to_check; do
        lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
        for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
          IFS="$lt_save_ifs"
          test -z "$ac_dir" && ac_dir=.
          tmp_nm="$ac_dir/$lt_tmp_nm"
          if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
    	# Check to see if the nm accepts a BSD-compat flag.
    	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
    	#   nm: unknown option "B" ignored
    	# Tru64's nm complains that /dev/null is an invalid object file
    	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
    	*/dev/null* | *'Invalid file or object type'*)
    	  lt_cv_path_NM="$tmp_nm -B"
    	  break
    	  ;;
    	*)
    	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
    	  */dev/null*)
    	    lt_cv_path_NM="$tmp_nm -p"
    	    break
    	    ;;
    	  *)
    	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
    	    continue # so that we can try to find one that supports BSD flags
    	    ;;
    	  esac
    	  ;;
    	esac
          fi
        done
        IFS="$lt_save_ifs"
      done
    
      test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
    
    echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
    echo "${ECHO_T}$lt_cv_path_NM" >&6
    NM="$lt_cv_path_NM"
    
    echo "$as_me:$LINENO: checking whether ln -s works" >&5
    echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
    LN_S=$as_ln_s
    if test "$LN_S" = "ln -s"; then
      echo "$as_me:$LINENO: result: yes" >&5
    echo "${ECHO_T}yes" >&6
    
      echo "$as_me:$LINENO: result: no, using $LN_S" >&5
    echo "${ECHO_T}no, using $LN_S" >&6
    fi
    
    echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
    echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
    if test "${lt_cv_deplibs_check_method+set}" = set; then
      echo $ECHO_N "(cached) $ECHO_C" >&6
    
      lt_cv_file_magic_cmd='$MAGIC_CMD'
    lt_cv_file_magic_test_file=
    lt_cv_deplibs_check_method='unknown'
    # Need to set the preceding variable on all platforms that support
    # interlibrary dependencies.
    # 'none' -- dependencies not supported.
    # `unknown' -- same as none, but documents that we really don't know.
    # 'pass_all' -- all dependencies passed with no checks.
    # 'test_compile' -- check by making test program.
    # 'file_magic [[regex]]' -- check by looking for files in library path
    # which responds to the $file_magic_cmd with a given extended regex.
    # If you have `file' or equivalent on your system and you're not sure
    # whether `pass_all' will *always* work, you probably want this one.
    
    case $host_os in
    aix4* | aix5*)
      lt_cv_deplibs_check_method=pass_all
      ;;
    
    beos*)
      lt_cv_deplibs_check_method=pass_all
      ;;
    
    bsdi[45]*)
      lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
      lt_cv_file_magic_cmd='/usr/bin/file -L'
      lt_cv_file_magic_test_file=/shlib/libc.so
      ;;
    
    cygwin*)
      # func_win32_libid is a shell function defined in ltmain.sh
      lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
      lt_cv_file_magic_cmd='func_win32_libid'
      ;;
    
    mingw* | pw32*)
      # Base MSYS/MinGW do not provide the 'file' command needed by
      # func_win32_libid shell function, so use a weaker test based on 'objdump'.
      lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
      lt_cv_file_magic_cmd='$OBJDUMP -f'
      ;;
    
    darwin* | rhapsody*)
      lt_cv_deplibs_check_method=pass_all
      ;;
    
    freebsd* | kfreebsd*-gnu | dragonfly*)
      if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
        case $host_cpu in
        i*86 )
          # Not sure whether the presence of OpenBSD here was a mistake.
          # Let's accept both of them until this is cleared up.
          lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
          lt_cv_file_magic_cmd=/usr/bin/file
          lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
          ;;
        esac
    
        lt_cv_deplibs_check_method=pass_all
    
    gnu*)
      lt_cv_deplibs_check_method=pass_all
      ;;
    
    hpux10.20* | hpux11*)
      lt_cv_file_magic_cmd=/usr/bin/file
      case $host_cpu in
      ia64*)
        lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
        lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
        ;;
      hppa*64*)
        lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
        lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
        ;;
      *)
        lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
        lt_cv_file_magic_test_file=/usr/lib/libc.sl
        ;;
      esac
      ;;
    
    interix3*)
      # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
      ;;
    
    irix5* | irix6* | nonstopux*)
      case $LD in
      *-32|*"-32 ") libmagic=32-bit;;
      *-n32|*"-n32 ") libmagic=N32;;
      *-64|*"-64 ") libmagic=64-bit;;
      *) libmagic=never-match;;
      esac
      lt_cv_deplibs_check_method=pass_all
      ;;
    
    # This must be Linux ELF.
    linux*)
      lt_cv_deplibs_check_method=pass_all
      ;;
    
    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
        lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
      else
        lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
    
    newos6*)
      lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
      lt_cv_file_magic_cmd=/usr/bin/file
      lt_cv_file_magic_test_file=/usr/lib/libnls.so
      ;;
    
    nto-qnx*)
      lt_cv_deplibs_check_method=unknown
      ;;
    
    openbsd*)
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
        lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
      else
        lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
      fi
      ;;
    
    osf3* | osf4* | osf5*)
      lt_cv_deplibs_check_method=pass_all
      ;;
    
    solaris*)
      lt_cv_deplibs_check_method=pass_all
      ;;
    
    sysv4 | sysv4.3*)
      case $host_vendor in
      motorola)
        lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
        lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
    
      ncr)
        lt_cv_deplibs_check_method=pass_all
    
      sequent)
        lt_cv_file_magic_cmd='/bin/file'
        lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
    
      sni)
        lt_cv_file_magic_cmd='/bin/file'
        lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
        lt_cv_file_magic_test_file=/lib/libc.so
    
      siemens)
        lt_cv_deplibs_check_method=pass_all
    
      pc)
        lt_cv_deplibs_check_method=pass_all
    
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
      lt_cv_deplibs_check_method=pass_all
      ;;
    esac
    
    echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
    echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
    file_magic_cmd=$lt_cv_file_magic_cmd
    deplibs_check_method=$lt_cv_deplibs_check_method
    test -z "$deplibs_check_method" && deplibs_check_method=unknown
    
    # If no C compiler was specified, use CC.
    LTCC=${LTCC-"$CC"}
    
    # If no C compiler flags were specified, use CFLAGS.
    LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
    
    # Allow CC to be a program name with arguments.
    compiler=$CC
    
    # 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 && enable_libtool_lock=yes
    
    # Some flags need to be propagated to the compiler or linker for good
    # libtool support.
    case $host in
    ia64-*-hpux*)
      # Find out which ABI we are using.
      echo 'int i;' > conftest.$ac_ext
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
      (eval $ac_compile) 2>&5
      ac_status=$?
      echo "$as_me:$LINENO: \$? = $ac_status" >&5
      (exit $ac_status); }; then
        case `/usr/bin/file conftest.$ac_objext` in
        *ELF-32*)
          HPUX_IA64_MODE="32"
          ;;
        *ELF-64*)
          HPUX_IA64_MODE="64"
          ;;
        esac
      fi
      rm -rf conftest*
    
    *-*-irix6*)
      # Find out which ABI we are using.
    
      echo '#line 4446 "configure"' > conftest.$ac_ext
    
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
      (eval $ac_compile) 2>&5
      ac_status=$?
      echo "$as_me:$LINENO: \$? = $ac_status" >&5
      (exit $ac_status); }; then
       if test "$lt_cv_prog_gnu_ld" = yes; then
        case `/usr/bin/file conftest.$ac_objext` in
        *32-bit*)
          LD="${LD-ld} -melf32bsmip"
          ;;
        *N32*)
          LD="${LD-ld} -melf32bmipn32"
          ;;
        *64-bit*)
          LD="${LD-ld} -melf64bmip"
          ;;
        esac
       else
        case `/usr/bin/file conftest.$ac_objext` in
        *32-bit*)
          LD="${LD-ld} -32"
          ;;
        *N32*)
          LD="${LD-ld} -n32"
          ;;
        *64-bit*)
          LD="${LD-ld} -64"
          ;;
        esac
       fi
      fi
      rm -rf conftest*
    
    x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
      # Find out which ABI we are using.
      echo 'int i;' > conftest.$ac_ext
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
      (eval $ac_compile) 2>&5
      ac_status=$?
      echo "$as_me:$LINENO: \$? = $ac_status" >&5
      (exit $ac_status); }; then
        case `/usr/bin/file conftest.o` in
        *32-bit*)
          case $host in
            x86_64-*linux*)
              LD="${LD-ld} -m elf_i386"
              ;;
            ppc64-*linux*|powerpc64-*linux*)
              LD="${LD-ld} -m elf32ppclinux"
              ;;
            s390x-*linux*)
              LD="${LD-ld} -m elf_s390"
              ;;
            sparc64-*linux*)
              LD="${LD-ld} -m elf32_sparc"
              ;;
          esac
          ;;
        *64-bit*)
          case $host in
            x86_64-*linux*)
              LD="${LD-ld} -m elf_x86_64"
              ;;
            ppc*-*linux*|powerpc*-*linux*)
              LD="${LD-ld} -m elf64ppc"
              ;;
            s390*-*linux*)
              LD="${LD-ld} -m elf64_s390"
              ;;
            sparc*-*linux*)
              LD="${LD-ld} -m elf64_sparc"
              ;;
          esac
          ;;
        esac
      fi
      rm -rf conftest*
      ;;
    
    *-*-sco3.2v5*)
      # On SCO OpenServer 5, we need -belf to get full-featured binaries.
      SAVE_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS -belf"
      echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
    echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
    if test "${lt_cv_cc_needs_belf+set}" = set; then
      echo $ECHO_N "(cached) $ECHO_C" >&6
    
      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
    
         cat >conftest.$ac_ext <<_ACEOF
    /* confdefs.h.  */
    _ACEOF
    cat confdefs.h >>conftest.$ac_ext
    cat >>conftest.$ac_ext <<_ACEOF
    /* end confdefs.h.  */
    
      ;
      return 0;
    }
    _ACEOF
    rm -f conftest.$ac_objext conftest$ac_exeext
    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
      (eval $ac_link) 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); } &&
    	 { ac_try='test -z "$ac_c_werror_flag"
    			 || test ! -s conftest.err'
      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
      (eval $ac_try) 2>&5
      ac_status=$?
      echo "$as_me:$LINENO: \$? = $ac_status" >&5
      (exit $ac_status); }; } &&
    	 { ac_try='test -s conftest$ac_exeext'
      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
      (eval $ac_try) 2>&5
      ac_status=$?
      echo "$as_me:$LINENO: \$? = $ac_status" >&5
      (exit $ac_status); }; }; then
      lt_cv_cc_needs_belf=yes
    else
      echo "$as_me: failed program was:" >&5
    sed 's/^/| /' conftest.$ac_ext >&5
    
    lt_cv_cc_needs_belf=no
    fi
    rm -f conftest.err conftest.$ac_objext \
          conftest$ac_exeext conftest.$ac_ext
         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
    
    fi
    echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
    echo "${ECHO_T}$lt_cv_cc_needs_belf" >&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
      ;;
    sparc*-*solaris*)
      # Find out which ABI we are using.
      echo 'int i;' > conftest.$ac_ext
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
      (eval $ac_compile) 2>&5
      ac_status=$?
      echo "$as_me:$LINENO: \$? = $ac_status" >&5
      (exit $ac_status); }; then
        case `/usr/bin/file conftest.o` in
        *64-bit*)
          case $lt_cv_prog_gnu_ld in
          yes*) LD="${LD-ld} -m elf64_sparc" ;;
          *)    LD="${LD-ld} -64" ;;
          esac
          ;;
        esac
      fi
      rm -rf conftest*
      ;;
    
    need_locks="$enable_libtool_lock"
    
    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=
    
    if test -z "$CPP"; then
      if test "${ac_cv_prog_CPP+set}" = set; then
      echo $ECHO_N "(cached) $ECHO_C" >&6
    
          # 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
    
      # 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 { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then
      if test -s conftest.err; then
        ac_cpp_err=$ac_c_preproc_warn_flag
        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    
      ac_cpp_err=yes
    
    if test -z "$ac_cpp_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 non-existent 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 { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then
      if test -s conftest.err; then
        ac_cpp_err=$ac_c_preproc_warn_flag
        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
      else
        ac_cpp_err=
      fi
    
      ac_cpp_err=yes
    fi
    if test -z "$ac_cpp_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 { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then
      if test -s conftest.err; then
        ac_cpp_err=$ac_c_preproc_warn_flag
        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    
    else
      ac_cpp_err=yes
    fi
    if test -z "$ac_cpp_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 non-existent 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 { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then
      if test -s conftest.err; then
        ac_cpp_err=$ac_c_preproc_warn_flag
        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    
    else
      ac_cpp_err=yes
    fi
    if test -z "$ac_cpp_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 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>
    
      ;
      return 0;
    }
    _ACEOF
    rm -f conftest.$ac_objext
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&
    	 { ac_try='test -z "$ac_c_werror_flag"
    			 || test ! -s conftest.err'
      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
      (eval $ac_try) 2>&5
      ac_status=$?
      echo "$as_me:$LINENO: \$? = $ac_status" >&5
      (exit $ac_status); }; } &&
    	 { ac_try='test -s conftest.$ac_objext'
      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
      (eval $ac_try) 2>&5
      ac_status=$?
      echo "$as_me:$LINENO: \$? = $ac_status" >&5
      (exit $ac_status); }; }; 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 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*
    
    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>
    #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))
          exit(2);
      exit (0);
    }
    _ACEOF
    rm -f conftest$ac_exeext
    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
      (eval $ac_link) 2>&5
      ac_status=$?
      echo "$as_me:$LINENO: \$? = $ac_status" >&5
      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'