diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 97 |
1 files changed, 73 insertions, 24 deletions
diff --git a/configure b/configure index 5c1acaa02f..282c82239f 100755 --- a/configure +++ b/configure @@ -1,8 +1,8 @@ #! /bin/sh -# From configure.in Id: configure.in,v 1.72 1995/01/30 07:26:57 roland Exp roland +# From configure.in CVSid # Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.1.1 +# Generated automatically using autoconf version 2.2 # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc. # # This configure script is free software; the Free Software Foundation @@ -24,6 +24,12 @@ ac_help="$ac_help --with-elf if using the ELF object format" ac_help="$ac_help --with-weak-symbols if weak symbols are available in as and ld" +ac_help="$ac_help + --enable-shared build shared library [default=yes if GNU ld & ELF]" +ac_help="$ac_help + --enable-profile build profiled library [default=yes]" +ac_help="$ac_help + --enable-omitfp build undebuggable optimized library [default=no]" # Initialize some variables set by options. # The variables have the same names as the options, with @@ -229,7 +235,7 @@ EOF verbose=yes ;; -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.1.1" + echo "configure generated by autoconf version 2.2" exit 0 ;; -with-* | --with-*) @@ -480,6 +486,31 @@ else fi +# Check whether --enable-shared or --disable-shared was given. +enableval="$enable_shared" +if test -n "$enableval"; then + shared=$enableval +else + shared=default +fi + +# Check whether --enable-profile or --disable-profile was given. +enableval="$enable_profile" +if test -n "$enableval"; then + profile=$enableval +else + profile=yes +fi + +# Check whether --enable-omitfp or --disable-omitfp was given. +enableval="$enable_omitfp" +if test -n "$enableval"; then + omitfp=$enableval +else + omitfp=no +fi + + ac_aux_dir= for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do if test -f $ac_dir/install-sh; then @@ -532,7 +563,7 @@ config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os sysdep_dir=$srcdir/sysdeps echo $ac_n "checking sysdep dirs""... $ac_c" 1>&4 -if eval "test \"`echo '${'libc_cv_sysdirs'+set}'`\" = set"; then +if eval "test \"`echo '$''{'libc_cv_sysdirs'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else machine=$config_machine @@ -735,7 +766,7 @@ esac # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4 if test -z "$INSTALL"; then -if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then +if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" @@ -806,7 +837,7 @@ fi # 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 $ac_n "checking for $ac_word""... $ac_c" 1>&4 -if eval "test \"`echo '${'ac_cv_prog_CC'+set}'`\" = set"; then +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else if test -n "$CC"; then @@ -836,7 +867,7 @@ fi # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4 -if eval "test \"`echo '${'ac_cv_prog_AR'+set}'`\" = set"; then +if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else if test -n "$AR"; then @@ -866,7 +897,7 @@ fi # 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 $ac_n "checking for $ac_word""... $ac_c" 1>&4 -if eval "test \"`echo '${'ac_cv_prog_RANLIB'+set}'`\" = set"; then +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else if test -n "$RANLIB"; then @@ -896,7 +927,7 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4 -if eval "test \"`echo '${'ac_cv_prog_RANLIB'+set}'`\" = set"; then +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else if test -n "$RANLIB"; then @@ -932,7 +963,7 @@ if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then -if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then +if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else # This must be in double quotes, not single quotes, because CPP may get @@ -941,7 +972,7 @@ else # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext <<EOF -#line 945 "configure" +#line 976 "configure" #include "confdefs.h" #include <assert.h> Syntax Error @@ -955,7 +986,7 @@ else rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext <<EOF -#line 959 "configure" +#line 990 "configure" #include "confdefs.h" #include <assert.h> Syntax Error @@ -980,7 +1011,7 @@ echo "$ac_t""$CPP" 1>&4 echo $ac_n "checking signed size_t type""... $ac_c" 1>&4 -if eval "test \"`echo '${'libc_cv_signed_size_t'+set}'`\" = set"; then +if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else echo '#include <stddef.h> @@ -1003,11 +1034,11 @@ EOF fi echo $ac_n "checking libc-friendly stddef.h""... $ac_c" 1>&4 -if eval "test \"`echo '${'libc_cv_friendly_stddef'+set}'`\" = set"; then +if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.$ac_ext <<EOF -#line 1011 "configure" +#line 1042 "configure" #include "confdefs.h" #define __need_size_t #define __need_wchar_t @@ -1041,7 +1072,7 @@ override stddef.h = # The installed <stddef.h> seems to be libc-friendly." fi echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&4 -if eval "test \"`echo '${'libc_cv_need_minus_P'+set}'`\" = set"; then +if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.S <<EOF @@ -1092,7 +1123,7 @@ if test "$uname" = generic; then fi echo $ac_n "checking OS release for uname""... $ac_c" 1>&4 - if eval "test \"`echo '${'libc_cv_uname_release'+set}'`\" = set"; then + if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'` @@ -1113,7 +1144,7 @@ fi uname_release="$libc_cv_uname_release" echo $ac_n "checking OS version for uname""... $ac_c" 1>&4 - if eval "test \"`echo '${'libc_cv_uname_version'+set}'`\" = set"; then + if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'` @@ -1160,6 +1191,15 @@ EOF fi +if test $shared = default; then + if test $gnu_ld = yes; then + shared=$elf + fi +fi + + + + if test "`(cd $srcdir; pwd)`" = "`pwd`"; then config_makefile= else @@ -1167,9 +1207,7 @@ else fi trap '' 1 2 15 -if test -w $cache_file; then -echo "updating cache $cache_file" -cat > $cache_file <<\EOF +cat > confcache <<\EOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs. It is not useful on other systems. @@ -1189,10 +1227,18 @@ EOF # and sets the high bit in the cache file unless we assign to the vars. (set) 2>&1 | sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \ - >> $cache_file + >> confcache +if cmp -s $cache_file confcache; then + : else -echo "not updating unwritable cache $cache_file" + if test -w $cache_file; then + echo "updating cache $cache_file" + cat confcache > $cache_file + else + echo "not updating unwritable cache $cache_file" + fi fi +rm -f confcache trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 @@ -1236,7 +1282,7 @@ do echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.1.1" + echo "$CONFIG_STATUS generated by autoconf version 2.2" exit 0 ;; -help | --help | --hel | --he | --h) echo "\$ac_cs_usage"; exit 0 ;; @@ -1287,6 +1333,9 @@ s%@gnu_ld@%$gnu_ld%g s%@gnu_as@%$gnu_as%g s%@elf@%$elf%g s%@weak@%$weak%g +s%@shared@%$shared%g +s%@profile@%$profile%g +s%@omitfp@%$omitfp%g CEOF EOF |