Ignore:
Timestamp:
Aug 16, 2003, 11:56:50 PM (22 years ago)
Author:
bird
Message:

Regenerated configure files after 2.14 join.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/binutils/libiberty/configure

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r618 r619  
    1313# Any additions from configure.in:
    1414ac_help="$ac_help
    15   --with-target-subdir=SUBDIR      Configuring in a subdirectory"
     15  --with-target-subdir=SUBDIR      Configuring in a subdirectory for target"
     16ac_help="$ac_help
     17  --with-build-subdir=SUBDIR       Configuring in a subdirectory for build"
    1618ac_help="$ac_help
    1719  --with-cross-host=HOST           Configuring with a cross compiler"
    1820ac_help="$ac_help
    1921  --with-newlib                    Configuring with newlib"
     22ac_help="$ac_help
     23  --enable-maintainer-mode
     24                          enable make rules and dependencies not useful
     25                          (and sometimes confusing) to the casual installer"
     26ac_help="$ac_help
     27  --enable-install-libiberty       Install headers for end users"
    2028
    2129# Initialize some variables set by options.
     
    458466# A filename unique to this package, relative to the directory that
    459467# configure is in, which we can look for to find out if srcdir is correct.
    460 ac_unique_file=pexecute.c
     468ac_unique_file=xmalloc.c
    461469
    462470# Find the source files, if location was not specified.
     
    528536
    529537echo $ac_n "checking for path separator""... $ac_c" 1>&6
    530 echo "configure:531: checking for path separator" >&5
     538echo "configure:539: checking for path separator" >&5
    531539# Filter path to get backslahes into forwardslashes
    532540case "`uname -s 2> /dev/null`" in
     
    542550
    543551echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
    544 echo "configure:545: checking for Cygwin environment" >&5
     552echo "configure:553: checking for Cygwin environment" >&5
    545553if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
    546554  echo $ac_n "(cached) $ac_c" 1>&6
    547555else
    548556  cat > conftest.$ac_ext <<EOF
    549 #line 550 "configure"
     557#line 558 "configure"
    550558#include "confdefs.h"
    551559
     
    558566; return 0; }
    559567EOF
    560 if { (eval echo configure:561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     568if { (eval echo configure:569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    561569  rm -rf conftest*
    562570  ac_cv_cygwin=yes
     
    575583test "$ac_cv_cygwin" = yes && CYGWIN=yes
    576584echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
    577 echo "configure:578: checking for mingw32 environment" >&5
     585echo "configure:586: checking for mingw32 environment" >&5
    578586if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
    579587  echo $ac_n "(cached) $ac_c" 1>&6
    580588else
    581589  cat > conftest.$ac_ext <<EOF
    582 #line 583 "configure"
     590#line 591 "configure"
    583591#include "confdefs.h"
    584592
     
    587595; return 0; }
    588596EOF
    589 if { (eval echo configure:590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     597if { (eval echo configure:598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    590598  rm -rf conftest*
    591599  ac_cv_mingw32=yes
     
    604612test "$ac_cv_mingw32" = yes && MINGW32=yes
    605613echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
    606 echo "configure:607: checking for EMX/OS2 environment" >&5
     614echo "configure:615: checking for EMX/OS2 environment" >&5
    607615if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
    608616  echo $ac_n "(cached) $ac_c" 1>&6
     
    610618  : ${CC=gcc.exe}
    611619cat > conftest.$ac_ext <<EOF
    612 #line 613 "configure"
     620#line 621 "configure"
    613621#include "confdefs.h"
    614622
     
    617625; return 0; }
    618626EOF
    619 if { (eval echo configure:620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     627if { (eval echo configure:628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    620628  rm -rf conftest*
    621629  ac_cv_emxos2=yes
     
    648656
    649657echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
    650 echo "configure:651: checking for executable suffix" >&5
     658echo "configure:659: checking for executable suffix" >&5
    651659if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
    652660  echo $ac_n "(cached) $ac_c" 1>&6
     
    658666  echo 'int main () { return 0; }' > conftest.$ac_ext
    659667  ac_cv_exeext=
    660   if { (eval echo configure:661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     668  if { (eval echo configure:669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    661669    for file in conftest.*; do
    662670      case $file in
     
    680688
    681689
     690# This works around the fact that libtool configuration may change LD
     691# for this particular configuration, but some shells, instead of
     692# keeping the changes in LD private, export them just because LD is
     693# exported.  We don't use libtool yet, but some day we might, so...
     694ORIGINAL_LD_FOR_MULTILIBS=$LD
     695
    682696# Check whether --with-target-subdir or --without-target-subdir was given.
    683697if test "${with_target_subdir+set}" = set; then
     
    686700fi
    687701
     702# Check whether --with-build-subdir or --without-build-subdir was given.
     703if test "${with_build_subdir+set}" = set; then
     704  withval="$with_build_subdir"
     705  :
     706fi
     707
    688708# Check whether --with-cross-host or --without-cross-host was given.
    689709if test "${with_cross_host+set}" = set; then
     
    700720
    701721if test "${srcdir}" = "."; then
    702   if test -z "${with_target_subdir}"; then
     722  if test -n "${with_build_subdir}"; then
     723    libiberty_topdir="${srcdir}/../.."
     724    with_target_subdir=
     725  elif test -z "${with_target_subdir}"; then
    703726    libiberty_topdir="${srcdir}/.."
    704727  else
     
    712735  libiberty_topdir="${srcdir}/.."
    713736fi
     737
    714738ac_aux_dir=
    715739for ac_dir in $libiberty_topdir $srcdir/$libiberty_topdir; do
     
    733757
    734758
     759echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
     760echo "configure:761: checking whether to enable maintainer-specific portions of Makefiles" >&5
     761    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
     762if test "${enable_maintainer_mode+set}" = set; then
     763  enableval="$enable_maintainer_mode"
     764  maintainer_mode=$enableval
     765else
     766  maintainer_mode=no
     767fi
     768
     769
     770echo "$ac_t""$maintainer_mode" 1>&6
     771
     772if test "$maintainer_mode" = "yes"; then
     773  MAINT=''
     774  NOTMAINT='#'
     775else
     776  MAINT='#'
     777  NOTMAINT=''
     778fi
     779
     780# Do we have a single-tree copy of texinfo?  Even if we do, we can't
     781# rely on it - libiberty is built before texinfo.
     782# Extract the first word of "makeinfo", so it can be a program name with args.
     783set dummy makeinfo; ac_word=$2
     784echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     785echo "configure:786: checking for $ac_word" >&5
     786if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
     787  echo $ac_n "(cached) $ac_c" 1>&6
     788else
     789  if test -n "$MAKEINFO"; then
     790  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
     791else
     792  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
     793  ac_dummy="$PATH"
     794  for ac_dir in $ac_dummy; do
     795    test -z "$ac_dir" && ac_dir=.
     796    if test -f $ac_dir/$ac_word -o \
     797            -f $ac_dir/$ac_word$ac_exeext ; then
     798      ac_cv_prog_MAKEINFO="makeinfo"
     799      break
     800    fi
     801  done
     802  IFS="$ac_save_ifs"
     803fi
     804fi
     805MAKEINFO="$ac_cv_prog_MAKEINFO"
     806if test -n "$MAKEINFO"; then
     807  echo "$ac_t""$MAKEINFO" 1>&6
     808else
     809  echo "$ac_t""no" 1>&6
     810fi
     811
     812if test "x$MAKEINFO" = "x"; then
     813    MAKEINFO="@echo makeinfo missing; true"
     814    BUILD_INFO=
     815else
     816    BUILD_INFO=info
     817    case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in
     818      x*\ [1-3].* )
     819        MAKEINFO="@echo $MAKEINFO is too old, 4.0 or newer required; true"
     820        BUILD_INFO=
     821        echo "configure: warning:
     822*** Makeinfo is too old. Info documentation will not be built." 1>&2
     823        ;;
     824    esac
     825fi
     826
     827
     828
     829# Extract the first word of "perl", so it can be a program name with args.
     830set dummy perl; ac_word=$2
     831echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     832echo "configure:833: checking for $ac_word" >&5
     833if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
     834  echo $ac_n "(cached) $ac_c" 1>&6
     835else
     836  if test -n "$PERL"; then
     837  ac_cv_prog_PERL="$PERL" # Let the user override the test.
     838else
     839  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
     840  ac_dummy="$PATH"
     841  for ac_dir in $ac_dummy; do
     842    test -z "$ac_dir" && ac_dir=.
     843    if test -f $ac_dir/$ac_word -o \
     844            -f $ac_dir/$ac_word$ac_exeext ; then
     845      ac_cv_prog_PERL="perl"
     846      break
     847    fi
     848  done
     849  IFS="$ac_save_ifs"
     850fi
     851fi
     852PERL="$ac_cv_prog_PERL"
     853if test -n "$PERL"; then
     854  echo "$ac_t""$PERL" 1>&6
     855else
     856  echo "$ac_t""no" 1>&6
     857fi
     858
     859if test x"$PERL" = x""; then
     860  HAVE_PERL='#'
     861else
     862  HAVE_PERL=''
     863fi
     864
     865
     866
    735867# Make sure we can run config.sub.
    736868if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
     
    739871
    740872echo $ac_n "checking host system type""... $ac_c" 1>&6
    741 echo "configure:742: checking host system type" >&5
     873echo "configure:874: checking host system type" >&5
    742874
    743875host_alias=$host
     
    762894
    763895echo $ac_n "checking build system type""... $ac_c" 1>&6
    764 echo "configure:765: checking build system type" >&5
     896echo "configure:897: checking build system type" >&5
    765897
    766898build_alias=$build
     
    788920set dummy ${ac_tool_prefix}ar; ac_word=$2
    789921echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    790 echo "configure:791: checking for $ac_word" >&5
     922echo "configure:923: checking for $ac_word" >&5
    791923if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
    792924  echo $ac_n "(cached) $ac_c" 1>&6
     
    821953set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    822954echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    823 echo "configure:824: checking for $ac_word" >&5
     955echo "configure:956: checking for $ac_word" >&5
    824956if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    825957  echo $ac_n "(cached) $ac_c" 1>&6
     
    854986set dummy ranlib; ac_word=$2
    855987echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    856 echo "configure:857: checking for $ac_word" >&5
     988echo "configure:989: checking for $ac_word" >&5
    857989if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    858990  echo $ac_n "(cached) $ac_c" 1>&6
     
    8921024set dummy gcc; ac_word=$2
    8931025echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    894 echo "configure:895: checking for $ac_word" >&5
     1026echo "configure:1027: checking for $ac_word" >&5
    8951027if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    8961028  echo $ac_n "(cached) $ac_c" 1>&6
     
    9231055set dummy cc; ac_word=$2
    9241056echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    925 echo "configure:926: checking for $ac_word" >&5
     1057echo "configure:1058: checking for $ac_word" >&5
    9261058if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    9271059  echo $ac_n "(cached) $ac_c" 1>&6
     
    9741106
    9751107echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    976 echo "configure:977: checking whether we are using GNU C" >&5
     1108echo "configure:1109: checking whether we are using GNU C" >&5
    9771109if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    9781110  echo $ac_n "(cached) $ac_c" 1>&6
     
    9831115#endif
    9841116EOF
    985 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1117if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    9861118  ac_cv_prog_gcc=yes
    9871119else
     
    9991131  CFLAGS=
    10001132  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    1001 echo "configure:1002: checking whether ${CC-cc} accepts -g" >&5
     1133echo "configure:1134: checking whether ${CC-cc} accepts -g" >&5
    10021134if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    10031135  echo $ac_n "(cached) $ac_c" 1>&6
     
    10291161
    10301162
     1163if test "x$CC" != xcc; then
     1164  echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
     1165echo "configure:1166: checking whether $CC and cc understand -c and -o together" >&5
     1166else
     1167  echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
     1168echo "configure:1169: checking whether cc understands -c and -o together" >&5
     1169fi
     1170set dummy $CC; ac_cc="`echo $2 |
     1171                       sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
     1172if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
     1173  echo $ac_n "(cached) $ac_c" 1>&6
     1174else
     1175  echo 'foo(){}' > conftest.c
     1176# Make sure it works both with $CC and with simple cc.
     1177# We do the test twice because some compilers refuse to overwrite an
     1178# existing .o file with -o, though they will create one.
     1179ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
     1180if { (eval echo configure:1181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
     1181   test -f conftest.o && { (eval echo configure:1182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
     1182then
     1183  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
     1184  if test "x$CC" != xcc; then
     1185    # Test first that cc exists at all.
     1186    if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
     1187      ac_try='cc -c conftest.c -o conftest.o 1>&5'
     1188      if { (eval echo configure:1189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
     1189         test -f conftest.o && { (eval echo configure:1190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
     1190      then
     1191        # cc works too.
     1192        :
     1193      else
     1194        # cc exists but doesn't like -o.
     1195        eval ac_cv_prog_cc_${ac_cc}_c_o=no
     1196      fi
     1197    fi
     1198  fi
     1199else
     1200  eval ac_cv_prog_cc_${ac_cc}_c_o=no
     1201fi
     1202rm -f conftest*
     1203
     1204fi
     1205if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
     1206  echo "$ac_t""yes" 1>&6
     1207else
     1208  echo "$ac_t""no" 1>&6
     1209  cat >> confdefs.h <<\EOF
     1210#define NO_MINUS_C_MINUS_O 1
     1211EOF
     1212
     1213fi
     1214
     1215# autoconf is lame and doesn't give us any substitution variable for this.
     1216if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
     1217  NO_MINUS_C_MINUS_O=yes
     1218else
     1219  OUTPUT_OPTION='-o $@'
     1220fi
     1221
     1222
     1223
    10311224echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
    1032 echo "configure:1033: checking for POSIXized ISC" >&5
     1225echo "configure:1226: checking for POSIXized ISC" >&5
    10331226if test -d /etc/conf/kconfig.d &&
    10341227  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
     
    10511244
    10521245echo $ac_n "checking for working const""... $ac_c" 1>&6
    1053 echo "configure:1054: checking for working const" >&5
     1246echo "configure:1247: checking for working const" >&5
    10541247if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    10551248  echo $ac_n "(cached) $ac_c" 1>&6
    10561249else
    10571250  cat > conftest.$ac_ext <<EOF
    1058 #line 1059 "configure"
     1251#line 1252 "configure"
    10591252#include "confdefs.h"
    10601253
     
    11051298; return 0; }
    11061299EOF
    1107 if { (eval echo configure:1108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1300if { (eval echo configure:1301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    11081301  rm -rf conftest*
    11091302  ac_cv_c_const=yes
     
    11261319
    11271320echo $ac_n "checking for inline""... $ac_c" 1>&6
    1128 echo "configure:1129: checking for inline" >&5
     1321echo "configure:1322: checking for inline" >&5
    11291322if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
    11301323  echo $ac_n "(cached) $ac_c" 1>&6
     
    11331326for ac_kw in inline __inline__ __inline; do
    11341327  cat > conftest.$ac_ext <<EOF
    1135 #line 1136 "configure"
     1328#line 1329 "configure"
    11361329#include "confdefs.h"
    11371330
     
    11401333; return 0; }
    11411334EOF
    1142 if { (eval echo configure:1143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1335if { (eval echo configure:1336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    11431336  rm -rf conftest*
    11441337  ac_cv_c_inline=$ac_kw; break
     
    11831376# ./install, which can be erroneously created by make from ./install.sh.
    11841377echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    1185 echo "configure:1186: checking for a BSD compatible install" >&5
     1378echo "configure:1379: checking for a BSD compatible install" >&5
    11861379if test -z "$INSTALL"; then
    11871380if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    12461439# something.
    12471440echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    1248 echo "configure:1249: checking how to run the C preprocessor" >&5
     1441echo "configure:1442: checking how to run the C preprocessor" >&5
    12491442# On Suns, sometimes $CPP names a directory.
    12501443if test -n "$CPP" && test -d "$CPP"; then
     
    12621455  cat > conftest.$ac_ext <<EOF
    12631456#include <sys/types.h>
    1264 #line 1265 "configure"
     1457#line 1458 "configure"
    12651458#include "confdefs.h"
    12661459#include <assert.h>
     
    12681461EOF
    12691462ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1270 { (eval echo configure:1271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1463{ (eval echo configure:1464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    12711464ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    12721465if test -z "$ac_err"; then
     
    12801473  cat > conftest.$ac_ext <<EOF
    12811474#include <sys/types.h>
    1282 #line 1283 "configure"
     1475#line 1476 "configure"
    12831476#include "confdefs.h"
    12841477#include <assert.h>
     
    12861479EOF
    12871480ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1288 { (eval echo configure:1289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1481{ (eval echo configure:1482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    12891482ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    12901483if test -z "$ac_err"; then
     
    12981491  cat > conftest.$ac_ext <<EOF
    12991492#include <sys/types.h>
    1300 #line 1301 "configure"
     1493#line 1494 "configure"
    13011494#include "confdefs.h"
    13021495#include <assert.h>
     
    13041497EOF
    13051498ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1306 { (eval echo configure:1307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1499{ (eval echo configure:1500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    13071500ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    13081501if test -z "$ac_err"; then
     
    13281521echo "$ac_t""$CPP" 1>&6
    13291522
    1330 for ac_hdr in sys/file.h sys/param.h limits.h stdlib.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h
     1523for ac_hdr in sys/file.h sys/param.h limits.h stdlib.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h
    13311524do
    13321525ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    13331526echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1334 echo "configure:1335: checking for $ac_hdr" >&5
     1527echo "configure:1528: checking for $ac_hdr" >&5
    13351528if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    13361529  echo $ac_n "(cached) $ac_c" 1>&6
     
    13381531  cat > conftest.$ac_ext <<EOF
    13391532#include <sys/types.h>
    1340 #line 1341 "configure"
     1533#line 1534 "configure"
    13411534#include "confdefs.h"
    13421535#include <$ac_hdr>
    13431536EOF
    13441537ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1345 { (eval echo configure:1346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1538{ (eval echo configure:1539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    13461539ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    13471540if test -z "$ac_err"; then
     
    13701563
    13711564echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
    1372 echo "configure:1373: checking for sys/wait.h that is POSIX.1 compatible" >&5
     1565echo "configure:1566: checking for sys/wait.h that is POSIX.1 compatible" >&5
    13731566if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
    13741567  echo $ac_n "(cached) $ac_c" 1>&6
    13751568else
    13761569  cat > conftest.$ac_ext <<EOF
    1377 #line 1378 "configure"
     1570#line 1571 "configure"
    13781571#include "confdefs.h"
    13791572#include <sys/types.h>
     
    13911584; return 0; }
    13921585EOF
    1393 if { (eval echo configure:1394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1586if { (eval echo configure:1587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    13941587  rm -rf conftest*
    13951588  ac_cv_header_sys_wait_h=yes
     
    14121605
    14131606echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
    1414 echo "configure:1415: checking whether time.h and sys/time.h may both be included" >&5
     1607echo "configure:1608: checking whether time.h and sys/time.h may both be included" >&5
    14151608if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    14161609  echo $ac_n "(cached) $ac_c" 1>&6
    14171610else
    14181611  cat > conftest.$ac_ext <<EOF
    1419 #line 1420 "configure"
     1612#line 1613 "configure"
    14201613#include "confdefs.h"
    14211614#include <sys/types.h>
     
    14261619; return 0; }
    14271620EOF
    1428 if { (eval echo configure:1429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1621if { (eval echo configure:1622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    14291622  rm -rf conftest*
    14301623  ac_cv_header_time=yes
     
    14481641
    14491642echo $ac_n "checking whether errno must be declared""... $ac_c" 1>&6
    1450 echo "configure:1451: checking whether errno must be declared" >&5
     1643echo "configure:1644: checking whether errno must be declared" >&5
    14511644if eval "test \"`echo '$''{'libiberty_cv_declare_errno'+set}'`\" = set"; then
    14521645  echo $ac_n "(cached) $ac_c" 1>&6
    14531646else
    14541647  cat > conftest.$ac_ext <<EOF
    1455 #line 1456 "configure"
     1648#line 1649 "configure"
    14561649#include "confdefs.h"
    14571650#include <errno.h>
     
    14601653; return 0; }
    14611654EOF
    1462 if { (eval echo configure:1463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1655if { (eval echo configure:1656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    14631656  rm -rf conftest*
    14641657  libiberty_cv_declare_errno=no
     
    14761669then cat >> confdefs.h <<\EOF
    14771670#define NEED_DECLARATION_ERRNO 1
     1671EOF
     1672
     1673fi
     1674
     1675
     1676echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
     1677echo "configure:1678: checking for ANSI C header files" >&5
     1678if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
     1679  echo $ac_n "(cached) $ac_c" 1>&6
     1680else
     1681  cat > conftest.$ac_ext <<EOF
     1682#include <sys/types.h>
     1683#line 1684 "configure"
     1684#include "confdefs.h"
     1685#include <stdlib.h>
     1686#include <stdarg.h>
     1687#include <string.h>
     1688#include <float.h>
     1689EOF
     1690ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     1691{ (eval echo configure:1692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1692ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     1693if test -z "$ac_err"; then
     1694  rm -rf conftest*
     1695  ac_cv_header_stdc=yes
     1696else
     1697  echo "$ac_err" >&5
     1698  echo "configure: failed program was:" >&5
     1699  cat conftest.$ac_ext >&5
     1700  rm -rf conftest*
     1701  ac_cv_header_stdc=no
     1702fi
     1703rm -f conftest*
     1704
     1705if test $ac_cv_header_stdc = yes; then
     1706  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
     1707cat > conftest.$ac_ext <<EOF
     1708#line 1709 "configure"
     1709#include "confdefs.h"
     1710#include <string.h>
     1711EOF
     1712if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     1713  egrep "memchr" >/dev/null 2>&1; then
     1714  :
     1715else
     1716  rm -rf conftest*
     1717  ac_cv_header_stdc=no
     1718fi
     1719rm -f conftest*
     1720
     1721fi
     1722
     1723if test $ac_cv_header_stdc = yes; then
     1724  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
     1725cat > conftest.$ac_ext <<EOF
     1726#line 1727 "configure"
     1727#include "confdefs.h"
     1728#include <stdlib.h>
     1729EOF
     1730if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     1731  egrep "free" >/dev/null 2>&1; then
     1732  :
     1733else
     1734  rm -rf conftest*
     1735  ac_cv_header_stdc=no
     1736fi
     1737rm -f conftest*
     1738
     1739fi
     1740
     1741if test $ac_cv_header_stdc = yes; then
     1742  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
     1743if test "$cross_compiling" = yes; then
     1744  :
     1745else
     1746  cat > conftest.$ac_ext <<EOF
     1747#line 1748 "configure"
     1748#include "confdefs.h"
     1749#include <ctype.h>
     1750#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     1751#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     1752#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
     1753int main () { int i; for (i = 0; i < 256; i++)
     1754if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
     1755exit (0); }
     1756
     1757EOF
     1758if { (eval echo configure:1759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1759then
     1760  :
     1761else
     1762  echo "configure: failed program was:" >&5
     1763  cat conftest.$ac_ext >&5
     1764  rm -fr conftest*
     1765  ac_cv_header_stdc=no
     1766fi
     1767rm -fr conftest*
     1768fi
     1769
     1770fi
     1771fi
     1772
     1773echo "$ac_t""$ac_cv_header_stdc" 1>&6
     1774if test $ac_cv_header_stdc = yes; then
     1775  cat >> confdefs.h <<\EOF
     1776#define STDC_HEADERS 1
     1777EOF
     1778
     1779fi
     1780
     1781echo $ac_n "checking for uintptr_t""... $ac_c" 1>&6
     1782echo "configure:1783: checking for uintptr_t" >&5
     1783if eval "test \"`echo '$''{'ac_cv_type_uintptr_t'+set}'`\" = set"; then
     1784  echo $ac_n "(cached) $ac_c" 1>&6
     1785else
     1786  cat > conftest.$ac_ext <<EOF
     1787#line 1788 "configure"
     1788#include "confdefs.h"
     1789#include <sys/types.h>
     1790#if STDC_HEADERS
     1791#include <stdlib.h>
     1792#include <stddef.h>
     1793#endif
     1794EOF
     1795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     1796  egrep "(^|[^a-zA-Z_0-9])uintptr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
     1797  rm -rf conftest*
     1798  ac_cv_type_uintptr_t=yes
     1799else
     1800  rm -rf conftest*
     1801  ac_cv_type_uintptr_t=no
     1802fi
     1803rm -f conftest*
     1804
     1805fi
     1806echo "$ac_t""$ac_cv_type_uintptr_t" 1>&6
     1807if test $ac_cv_type_uintptr_t = no; then
     1808  cat >> confdefs.h <<\EOF
     1809#define uintptr_t unsigned long
     1810EOF
     1811
     1812fi
     1813
     1814# Given the above check, we always have uintptr_t or a fallback
     1815# definition.  So define HAVE_UINTPTR_T in case any imported code
     1816# relies on it.
     1817cat >> confdefs.h <<\EOF
     1818#define HAVE_UINTPTR_T 1
     1819EOF
     1820
     1821
     1822echo $ac_n "checking for pid_t""... $ac_c" 1>&6
     1823echo "configure:1824: checking for pid_t" >&5
     1824if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
     1825  echo $ac_n "(cached) $ac_c" 1>&6
     1826else
     1827  cat > conftest.$ac_ext <<EOF
     1828#line 1829 "configure"
     1829#include "confdefs.h"
     1830#include <sys/types.h>
     1831#if STDC_HEADERS
     1832#include <stdlib.h>
     1833#include <stddef.h>
     1834#endif
     1835EOF
     1836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     1837  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
     1838  rm -rf conftest*
     1839  ac_cv_type_pid_t=yes
     1840else
     1841  rm -rf conftest*
     1842  ac_cv_type_pid_t=no
     1843fi
     1844rm -f conftest*
     1845
     1846fi
     1847echo "$ac_t""$ac_cv_type_pid_t" 1>&6
     1848if test $ac_cv_type_pid_t = no; then
     1849  cat >> confdefs.h <<\EOF
     1850#define pid_t int
    14781851EOF
    14791852
     
    14931866funcs="$funcs calloc"
    14941867funcs="$funcs clock"
     1868funcs="$funcs ffs"
    14951869funcs="$funcs getcwd"
    14961870funcs="$funcs getpagesize"
     
    15011875funcs="$funcs memcpy"
    15021876funcs="$funcs memmove"
     1877funcs="$funcs mempcpy"
    15031878funcs="$funcs memset"
    15041879funcs="$funcs mkstemps"
     
    15081883funcs="$funcs rindex"
    15091884funcs="$funcs setenv"
     1885funcs="$funcs snprintf"
    15101886funcs="$funcs sigsetmask"
     1887funcs="$funcs stpcpy"
     1888funcs="$funcs stpncpy"
    15111889funcs="$funcs strcasecmp"
    15121890funcs="$funcs strchr"
     
    15221900funcs="$funcs vfprintf"
    15231901funcs="$funcs vprintf"
     1902funcs="$funcs vsnprintf"
    15241903funcs="$funcs vsprintf"
    15251904funcs="$funcs waitpid"
     
    15271906# Also in the old function.def file: alloca, vfork, getopt.
    15281907
    1529 vars="sys_errlist sys_nerr sys_siglist"
     1908vars="sys_errlist sys_nerr sys_siglist _system_configuration"
    15301909
    15311910checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday"
     1911checkfuncs="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp"
     1912checkfuncs="$checkfuncs getsysinfo table sysctl"
    15321913
    15331914# These are neither executed nor required, but they help keep
     
    15371918do
    15381919echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1539 echo "configure:1540: checking for $ac_func" >&5
     1920echo "configure:1921: checking for $ac_func" >&5
    15401921if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    15411922  echo $ac_n "(cached) $ac_c" 1>&6
    15421923else
    15431924  cat > conftest.$ac_ext <<EOF
    1544 #line 1545 "configure"
     1925#line 1926 "configure"
    15451926#include "confdefs.h"
    15461927/* System header to define __stub macros and hopefully few prototypes,
     
    15651946; return 0; }
    15661947EOF
    1567 if { (eval echo configure:1568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1948if { (eval echo configure:1949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    15681949  rm -rf conftest*
    15691950  eval "ac_cv_func_$ac_func=yes"
     
    15921973do
    15931974echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1594 echo "configure:1595: checking for $ac_func" >&5
     1975echo "configure:1976: checking for $ac_func" >&5
    15951976if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    15961977  echo $ac_n "(cached) $ac_c" 1>&6
    15971978else
    15981979  cat > conftest.$ac_ext <<EOF
    1599 #line 1600 "configure"
     1980#line 1981 "configure"
    16001981#include "confdefs.h"
    16011982/* System header to define __stub macros and hopefully few prototypes,
     
    16202001; return 0; }
    16212002EOF
    1622 if { (eval echo configure:1623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2003if { (eval echo configure:2004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    16232004  rm -rf conftest*
    16242005  eval "ac_cv_func_$ac_func=yes"
     
    16442025done
    16452026
    1646   for ac_func in memmove memset putenv random rename rindex sigsetmask
     2027  for ac_func in memmove mempcpy memset putenv random rename rindex sigsetmask
    16472028do
    16482029echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1649 echo "configure:1650: checking for $ac_func" >&5
     2030echo "configure:2031: checking for $ac_func" >&5
    16502031if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    16512032  echo $ac_n "(cached) $ac_c" 1>&6
    16522033else
    16532034  cat > conftest.$ac_ext <<EOF
    1654 #line 1655 "configure"
     2035#line 2036 "configure"
    16552036#include "confdefs.h"
    16562037/* System header to define __stub macros and hopefully few prototypes,
     
    16752056; return 0; }
    16762057EOF
    1677 if { (eval echo configure:1678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2058if { (eval echo configure:2059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    16782059  rm -rf conftest*
    16792060  eval "ac_cv_func_$ac_func=yes"
     
    16992080done
    17002081
    1701   for ac_func in strcasecmp setenv strchr strdup strncasecmp strrchr strstr
     2082  for ac_func in strcasecmp setenv stpcpy stpncpy strchr strdup strncasecmp strrchr strstr
    17022083do
    17032084echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1704 echo "configure:1705: checking for $ac_func" >&5
     2085echo "configure:2086: checking for $ac_func" >&5
    17052086if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    17062087  echo $ac_n "(cached) $ac_c" 1>&6
    17072088else
    17082089  cat > conftest.$ac_ext <<EOF
    1709 #line 1710 "configure"
     2090#line 2091 "configure"
    17102091#include "confdefs.h"
    17112092/* System header to define __stub macros and hopefully few prototypes,
     
    17302111; return 0; }
    17312112EOF
    1732 if { (eval echo configure:1733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2113if { (eval echo configure:2114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    17332114  rm -rf conftest*
    17342115  eval "ac_cv_func_$ac_func=yes"
     
    17572138do
    17582139echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1759 echo "configure:1760: checking for $ac_func" >&5
     2140echo "configure:2141: checking for $ac_func" >&5
    17602141if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    17612142  echo $ac_n "(cached) $ac_c" 1>&6
    17622143else
    17632144  cat > conftest.$ac_ext <<EOF
    1764 #line 1765 "configure"
     2145#line 2146 "configure"
    17652146#include "confdefs.h"
    17662147/* System header to define __stub macros and hopefully few prototypes,
     
    17852166; return 0; }
    17862167EOF
    1787 if { (eval echo configure:1788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2168if { (eval echo configure:2169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    17882169  rm -rf conftest*
    17892170  eval "ac_cv_func_$ac_func=yes"
     
    18122193do
    18132194echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1814 echo "configure:1815: checking for $ac_func" >&5
     2195echo "configure:2196: checking for $ac_func" >&5
    18152196if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    18162197  echo $ac_n "(cached) $ac_c" 1>&6
    18172198else
    18182199  cat > conftest.$ac_ext <<EOF
    1819 #line 1820 "configure"
     2200#line 2201 "configure"
    18202201#include "confdefs.h"
    18212202/* System header to define __stub macros and hopefully few prototypes,
     
    18402221; return 0; }
    18412222EOF
    1842 if { (eval echo configure:1843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2223if { (eval echo configure:2224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    18432224  rm -rf conftest*
    18442225  eval "ac_cv_func_$ac_func=yes"
     
    18642245done
    18652246
    1866   for ac_func in sysconf times sbrk gettimeofday
     2247  for ac_func in sysconf times sbrk gettimeofday ffs snprintf vsnprintf
    18672248do
    18682249echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1869 echo "configure:1870: checking for $ac_func" >&5
     2250echo "configure:2251: checking for $ac_func" >&5
    18702251if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    18712252  echo $ac_n "(cached) $ac_c" 1>&6
    18722253else
    18732254  cat > conftest.$ac_ext <<EOF
    1874 #line 1875 "configure"
     2255#line 2256 "configure"
    18752256#include "confdefs.h"
    18762257/* System header to define __stub macros and hopefully few prototypes,
     
    18952276; return 0; }
    18962277EOF
    1897 if { (eval echo configure:1898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2278if { (eval echo configure:2279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    18982279  rm -rf conftest*
    18992280  eval "ac_cv_func_$ac_func=yes"
     
    19192300done
    19202301
     2302  for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl
     2303do
     2304echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     2305echo "configure:2306: checking for $ac_func" >&5
     2306if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
     2307  echo $ac_n "(cached) $ac_c" 1>&6
     2308else
     2309  cat > conftest.$ac_ext <<EOF
     2310#line 2311 "configure"
     2311#include "confdefs.h"
     2312/* System header to define __stub macros and hopefully few prototypes,
     2313    which can conflict with char $ac_func(); below.  */
     2314#include <assert.h>
     2315/* Override any gcc2 internal prototype to avoid an error.  */
     2316/* We use char because int might match the return type of a gcc2
     2317    builtin and then its argument prototype would still apply.  */
     2318char $ac_func();
     2319
     2320int main() {
     2321
     2322/* The GNU C library defines this for functions which it implements
     2323    to always fail with ENOSYS.  Some functions are actually named
     2324    something starting with __ and the normal name is an alias.  */
     2325#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
     2326choke me
     2327#else
     2328$ac_func();
     2329#endif
     2330
     2331; return 0; }
     2332EOF
     2333if { (eval echo configure:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2334  rm -rf conftest*
     2335  eval "ac_cv_func_$ac_func=yes"
     2336else
     2337  echo "configure: failed program was:" >&5
     2338  cat conftest.$ac_ext >&5
     2339  rm -rf conftest*
     2340  eval "ac_cv_func_$ac_func=no"
     2341fi
     2342rm -f conftest*
     2343fi
     2344
     2345if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
     2346  echo "$ac_t""yes" 1>&6
     2347    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     2348  cat >> confdefs.h <<EOF
     2349#define $ac_tr_func 1
     2350EOF
     2351 
     2352else
     2353  echo "$ac_t""no" 1>&6
     2354fi
     2355done
     2356
     2357  for ac_func in realpath canonicalize_file_name
     2358do
     2359echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     2360echo "configure:2361: checking for $ac_func" >&5
     2361if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
     2362  echo $ac_n "(cached) $ac_c" 1>&6
     2363else
     2364  cat > conftest.$ac_ext <<EOF
     2365#line 2366 "configure"
     2366#include "confdefs.h"
     2367/* System header to define __stub macros and hopefully few prototypes,
     2368    which can conflict with char $ac_func(); below.  */
     2369#include <assert.h>
     2370/* Override any gcc2 internal prototype to avoid an error.  */
     2371/* We use char because int might match the return type of a gcc2
     2372    builtin and then its argument prototype would still apply.  */
     2373char $ac_func();
     2374
     2375int main() {
     2376
     2377/* The GNU C library defines this for functions which it implements
     2378    to always fail with ENOSYS.  Some functions are actually named
     2379    something starting with __ and the normal name is an alias.  */
     2380#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
     2381choke me
     2382#else
     2383$ac_func();
     2384#endif
     2385
     2386; return 0; }
     2387EOF
     2388if { (eval echo configure:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2389  rm -rf conftest*
     2390  eval "ac_cv_func_$ac_func=yes"
     2391else
     2392  echo "configure: failed program was:" >&5
     2393  cat conftest.$ac_ext >&5
     2394  rm -rf conftest*
     2395  eval "ac_cv_func_$ac_func=no"
     2396fi
     2397rm -f conftest*
     2398fi
     2399
     2400if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
     2401  echo "$ac_t""yes" 1>&6
     2402    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     2403  cat >> confdefs.h <<EOF
     2404#define $ac_tr_func 1
     2405EOF
     2406 
     2407else
     2408  echo "$ac_t""no" 1>&6
     2409fi
     2410done
     2411
    19212412  cat >> confdefs.h <<\EOF
    19222413#define HAVE_SYS_ERRLIST 1
     
    19312422EOF
    19322423
     2424  cat >> confdefs.h <<\EOF
     2425#define HAVE__SYSTEM_CONFIGURATION 1
     2426EOF
     2427
    19332428fi
    19342429
    19352430# For each of these functions, if the host does not provide the
    19362431# function we want to put FN.o in LIBOBJS, and if the host does
    1937 # provide the function, we want to define HAVE_FN in config.h.  Also,
    1938 # if the host does not provide alloca, we set ALLOCA to alloca.o
     2432# provide the function, we want to define HAVE_FN in config.h.
    19392433
    19402434setobjs=
    19412435CHECK=
     2436target_header_dir=
    19422437if test -n "${with_target_subdir}"; then
    19432438
     
    19512446
    19522447  if test "x${with_newlib}" = "xyes"; then
    1953     ALLOCA="alloca.o"
    19542448    LIBOBJS="asprintf.o basename.o insque.o random.o strdup.o vasprintf.o"
    19552449
     
    19812475  fi
    19822476
     2477  # We may wish to install the target headers somewhere.
     2478  # Check whether --enable-install-libiberty or --disable-install-libiberty was given.
     2479if test "${enable_install_libiberty+set}" = set; then
     2480  enableval="$enable_install_libiberty"
     2481  enable_install_libiberty=$enableval
     2482else
     2483  enable_install_libiberty=no
     2484fi
     2485 
     2486  # Option parsed, now set things appropriately.
     2487  case x"$enable_install_libiberty" in
     2488    xyes|x)
     2489      target_header_dir=libiberty
     2490      ;;
     2491    xno)   
     2492      target_header_dir=
     2493      ;;
     2494    *)
     2495      # This could be sanity-checked in various ways...
     2496      target_header_dir="${enable_install_libiberty}"
     2497      ;;
     2498  esac
     2499
     2500
    19832501else
    19842502
     
    19892507
    19902508
     2509
     2510
     2511case "${host}" in
     2512  *-*-cygwin* | *-*-mingw*)
     2513    cat >> confdefs.h <<\EOF
     2514#define HAVE_SYS_ERRLIST 1
     2515EOF
     2516
     2517    cat >> confdefs.h <<\EOF
     2518#define HAVE_SYS_NERR 1
     2519EOF
     2520
     2521    ;;
     2522esac
    19912523
    19922524if test -z "${setobjs}"; then
     
    20762608    ;;
    20772609
     2610  *-*-*vms*)
     2611    # Under VMS, vfork works very different than on Unix. The standard test
     2612    # won't work, and it isn't easily adaptable. It makes more sense to
     2613    # just force it.
     2614    ac_cv_func_vfork_works=yes
     2615    ;;
     2616
    20782617  esac
    20792618
     
    20812620  # tests.  This will only work if the compiler works.
    20822621  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    2083 echo "configure:2084: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     2622echo "configure:2623: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    20842623
    20852624ac_ext=c
     
    20922631cat > conftest.$ac_ext << EOF
    20932632
    2094 #line 2095 "configure"
     2633#line 2634 "configure"
    20952634#include "confdefs.h"
    20962635
    20972636main(){return(0);}
    20982637EOF
    2099 if { (eval echo configure:2100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2638if { (eval echo configure:2639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    21002639  ac_cv_prog_cc_works=yes
    21012640  # If we can't run a trivial program, we are probably using a cross compiler.
     
    21232662fi
    21242663echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    2125 echo "configure:2126: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     2664echo "configure:2665: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    21262665echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    21272666cross_compiling=$ac_cv_prog_cc_cross
     
    21302669do
    21312670echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2132 echo "configure:2133: checking for $ac_func" >&5
     2671echo "configure:2672: checking for $ac_func" >&5
    21332672if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    21342673  echo $ac_n "(cached) $ac_c" 1>&6
    21352674else
    21362675  cat > conftest.$ac_ext <<EOF
    2137 #line 2138 "configure"
     2676#line 2677 "configure"
    21382677#include "confdefs.h"
    21392678/* System header to define __stub macros and hopefully few prototypes,
     
    21582697; return 0; }
    21592698EOF
    2160 if { (eval echo configure:2161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2699if { (eval echo configure:2700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    21612700  rm -rf conftest*
    21622701  eval "ac_cv_func_$ac_func=yes"
     
    21842723
    21852724
    2186 
    2187   case "${host}" in
    2188   *-*-interix)
    2189     # On Interix, it wrongly concludes that the MSVC compiler supports alloca.
    2190     # (MSVC does on Win32, not on Interix.)
    2191     # This should be temporary.
    2192 
    2193     ac_cv_header_alloca_h=no
    2194     ac_cv_func_alloca_works=no
    2195     ALLOCA=alloca.o
    2196     cat >> confdefs.h <<\EOF
    2197 #define C_ALLOCA 1
    2198 EOF
    2199     cat >> confdefs.h <<EOF
    2200 #define STACK_DIRECTION -1
    2201 EOF
    2202     ;;
    2203   *)
    2204     # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
    2205 # for constant arguments.  Useless!
    2206 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
    2207 echo "configure:2208: checking for working alloca.h" >&5
    2208 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
     2725  echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
     2726echo "configure:2727: checking whether alloca needs Cray hooks" >&5
     2727if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
    22092728  echo $ac_n "(cached) $ac_c" 1>&6
    22102729else
    22112730  cat > conftest.$ac_ext <<EOF
    2212 #line 2213 "configure"
    2213 #include "confdefs.h"
    2214 #include <alloca.h>
    2215 int main() {
    2216 char *p = alloca(2 * sizeof(int));
    2217 ; return 0; }
    2218 EOF
    2219 if { (eval echo configure:2220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2220   rm -rf conftest*
    2221   ac_cv_header_alloca_h=yes
    2222 else
    2223   echo "configure: failed program was:" >&5
    2224   cat conftest.$ac_ext >&5
    2225   rm -rf conftest*
    2226   ac_cv_header_alloca_h=no
    2227 fi
    2228 rm -f conftest*
    2229 fi
    2230 
    2231 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
    2232 if test $ac_cv_header_alloca_h = yes; then
    2233   cat >> confdefs.h <<\EOF
    2234 #define HAVE_ALLOCA_H 1
    2235 EOF
    2236 
    2237 fi
    2238 
    2239 echo $ac_n "checking for alloca""... $ac_c" 1>&6
    2240 echo "configure:2241: checking for alloca" >&5
    2241 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
    2242   echo $ac_n "(cached) $ac_c" 1>&6
    2243 else
    2244   cat > conftest.$ac_ext <<EOF
    2245 #line 2246 "configure"
    2246 #include "confdefs.h"
    2247 
    2248 #ifdef __GNUC__
    2249 # define alloca __builtin_alloca
    2250 #else
    2251 # ifdef _MSC_VER
    2252 #  include <malloc.h>
    2253 #  define alloca _alloca
    2254 # else
    2255 #  if HAVE_ALLOCA_H
    2256 #   include <alloca.h>
    2257 #  else
    2258 #   ifdef _AIX
    2259  #pragma alloca
    2260 #   else
    2261 #    ifndef alloca /* predefined by HP cc +Olibcalls */
    2262 char *alloca ();
    2263 #    endif
    2264 #   endif
    2265 #  endif
    2266 # endif
    2267 #endif
    2268 
    2269 int main() {
    2270 char *p = (char *) alloca(1);
    2271 ; return 0; }
    2272 EOF
    2273 if { (eval echo configure:2274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2274   rm -rf conftest*
    2275   ac_cv_func_alloca_works=yes
    2276 else
    2277   echo "configure: failed program was:" >&5
    2278   cat conftest.$ac_ext >&5
    2279   rm -rf conftest*
    2280   ac_cv_func_alloca_works=no
    2281 fi
    2282 rm -f conftest*
    2283 fi
    2284 
    2285 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
    2286 if test $ac_cv_func_alloca_works = yes; then
    2287   cat >> confdefs.h <<\EOF
    2288 #define HAVE_ALLOCA 1
    2289 EOF
    2290 
    2291 fi
    2292 
    2293 if test $ac_cv_func_alloca_works = no; then
    2294   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
    2295   # that cause trouble.  Some versions do not even contain alloca or
    2296   # contain a buggy version.  If you still want to use their alloca,
    2297   # use ar to extract alloca.o from them instead of compiling alloca.c.
    2298   ALLOCA=alloca.${ac_objext}
    2299   cat >> confdefs.h <<\EOF
    2300 #define C_ALLOCA 1
    2301 EOF
    2302 
    2303 
    2304 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
    2305 echo "configure:2306: checking whether alloca needs Cray hooks" >&5
    2306 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
    2307   echo $ac_n "(cached) $ac_c" 1>&6
    2308 else
    2309   cat > conftest.$ac_ext <<EOF
    2310 #line 2311 "configure"
     2731#line 2732 "configure"
    23112732#include "confdefs.h"
    23122733#if defined(CRAY) && ! defined(CRAY2)
     
    23312752echo "$ac_t""$ac_cv_os_cray" 1>&6
    23322753if test $ac_cv_os_cray = yes; then
    2333 for ac_func in _getb67 GETB67 getb67; do
    2334   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2335 echo "configure:2336: checking for $ac_func" >&5
     2754  for ac_func in _getb67 GETB67 getb67; do
     2755    echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     2756echo "configure:2757: checking for $ac_func" >&5
    23362757if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    23372758  echo $ac_n "(cached) $ac_c" 1>&6
    23382759else
    23392760  cat > conftest.$ac_ext <<EOF
    2340 #line 2341 "configure"
     2761#line 2762 "configure"
    23412762#include "confdefs.h"
    23422763/* System header to define __stub macros and hopefully few prototypes,
     
    23612782; return 0; }
    23622783EOF
    2363 if { (eval echo configure:2364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2784if { (eval echo configure:2785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    23642785  rm -rf conftest*
    23652786  eval "ac_cv_func_$ac_func=yes"
     
    23782799#define CRAY_STACKSEG_END $ac_func
    23792800EOF
    2380 
    23812801  break
    23822802else
     
    23842804fi
    23852805
    2386 done
     2806  done
    23872807fi
    23882808
    23892809echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
    2390 echo "configure:2391: checking stack direction for C alloca" >&5
     2810echo "configure:2811: checking stack direction for C alloca" >&5
    23912811if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
    23922812  echo $ac_n "(cached) $ac_c" 1>&6
     
    23962816else
    23972817  cat > conftest.$ac_ext <<EOF
    2398 #line 2399 "configure"
     2818#line 2819 "configure"
    23992819#include "confdefs.h"
    24002820find_stack_direction ()
     
    24152835}
    24162836EOF
    2417 if { (eval echo configure:2418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2837if { (eval echo configure:2838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    24182838then
    24192839  ac_cv_c_stack_direction=1
     
    24342854EOF
    24352855
    2436 fi
    2437 
    2438     ;;
    2439   esac
    2440 
    2441   echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    2442 echo "configure:2443: checking for ANSI C header files" >&5
    2443 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
     2856
     2857  ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
     2858echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
     2859echo "configure:2860: checking for vfork.h" >&5
     2860if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    24442861  echo $ac_n "(cached) $ac_c" 1>&6
    24452862else
    24462863  cat > conftest.$ac_ext <<EOF
    24472864#include <sys/types.h>
    2448 #line 2449 "configure"
    2449 #include "confdefs.h"
    2450 #include <stdlib.h>
    2451 #include <stdarg.h>
    2452 #include <string.h>
    2453 #include <float.h>
     2865#line 2866 "configure"
     2866#include "confdefs.h"
     2867#include <vfork.h>
    24542868EOF
    24552869ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2456 { (eval echo configure:2457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    2457 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    2458 if test -z "$ac_err"; then
    2459   rm -rf conftest*
    2460   ac_cv_header_stdc=yes
    2461 else
    2462   echo "$ac_err" >&5
    2463   echo "configure: failed program was:" >&5
    2464   cat conftest.$ac_ext >&5
    2465   rm -rf conftest*
    2466   ac_cv_header_stdc=no
    2467 fi
    2468 rm -f conftest*
    2469 
    2470 if test $ac_cv_header_stdc = yes; then
    2471   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    2472 cat > conftest.$ac_ext <<EOF
    2473 #line 2474 "configure"
    2474 #include "confdefs.h"
    2475 #include <string.h>
    2476 EOF
    2477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2478   egrep "memchr" >/dev/null 2>&1; then
    2479   :
    2480 else
    2481   rm -rf conftest*
    2482   ac_cv_header_stdc=no
    2483 fi
    2484 rm -f conftest*
    2485 
    2486 fi
    2487 
    2488 if test $ac_cv_header_stdc = yes; then
    2489   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    2490 cat > conftest.$ac_ext <<EOF
    2491 #line 2492 "configure"
    2492 #include "confdefs.h"
    2493 #include <stdlib.h>
    2494 EOF
    2495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2496   egrep "free" >/dev/null 2>&1; then
    2497   :
    2498 else
    2499   rm -rf conftest*
    2500   ac_cv_header_stdc=no
    2501 fi
    2502 rm -f conftest*
    2503 
    2504 fi
    2505 
    2506 if test $ac_cv_header_stdc = yes; then
    2507   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    2508 if test "$cross_compiling" = yes; then
    2509   :
    2510 else
    2511   cat > conftest.$ac_ext <<EOF
    2512 #line 2513 "configure"
    2513 #include "confdefs.h"
    2514 #include <ctype.h>
    2515 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    2516 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    2517 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    2518 int main () { int i; for (i = 0; i < 256; i++)
    2519 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
    2520 exit (0); }
    2521 
    2522 EOF
    2523 if { (eval echo configure:2524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    2524 then
    2525   :
    2526 else
    2527   echo "configure: failed program was:" >&5
    2528   cat conftest.$ac_ext >&5
    2529   rm -fr conftest*
    2530   ac_cv_header_stdc=no
    2531 fi
    2532 rm -fr conftest*
    2533 fi
    2534 
    2535 fi
    2536 fi
    2537 
    2538 echo "$ac_t""$ac_cv_header_stdc" 1>&6
    2539 if test $ac_cv_header_stdc = yes; then
    2540   cat >> confdefs.h <<\EOF
    2541 #define STDC_HEADERS 1
    2542 EOF
    2543 
    2544 fi
    2545 
    2546 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
    2547 echo "configure:2548: checking for pid_t" >&5
    2548 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
    2549   echo $ac_n "(cached) $ac_c" 1>&6
    2550 else
    2551   cat > conftest.$ac_ext <<EOF
    2552 #line 2553 "configure"
    2553 #include "confdefs.h"
    2554 #include <sys/types.h>
    2555 #if STDC_HEADERS
    2556 #include <stdlib.h>
    2557 #include <stddef.h>
    2558 #endif
    2559 EOF
    2560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2561   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
    2562   rm -rf conftest*
    2563   ac_cv_type_pid_t=yes
    2564 else
    2565   rm -rf conftest*
    2566   ac_cv_type_pid_t=no
    2567 fi
    2568 rm -f conftest*
    2569 
    2570 fi
    2571 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
    2572 if test $ac_cv_type_pid_t = no; then
    2573   cat >> confdefs.h <<\EOF
    2574 #define pid_t int
    2575 EOF
    2576 
    2577 fi
    2578 
    2579 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
    2580 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
    2581 echo "configure:2582: checking for vfork.h" >&5
    2582 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    2583   echo $ac_n "(cached) $ac_c" 1>&6
    2584 else
    2585   cat > conftest.$ac_ext <<EOF
    2586 #include <sys/types.h>
    2587 #line 2588 "configure"
    2588 #include "confdefs.h"
    2589 #include <vfork.h>
    2590 EOF
    2591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2592 { (eval echo configure:2593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2870{ (eval echo configure:2871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    25932871ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    25942872if test -z "$ac_err"; then
     
    26152893
    26162894echo $ac_n "checking for working vfork""... $ac_c" 1>&6
    2617 echo "configure:2618: checking for working vfork" >&5
     2895echo "configure:2896: checking for working vfork" >&5
    26182896if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
    26192897  echo $ac_n "(cached) $ac_c" 1>&6
     
    26212899  if test "$cross_compiling" = yes; then
    26222900  echo $ac_n "checking for vfork""... $ac_c" 1>&6
    2623 echo "configure:2624: checking for vfork" >&5
     2901echo "configure:2902: checking for vfork" >&5
    26242902if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
    26252903  echo $ac_n "(cached) $ac_c" 1>&6
    26262904else
    26272905  cat > conftest.$ac_ext <<EOF
    2628 #line 2629 "configure"
     2906#line 2907 "configure"
    26292907#include "confdefs.h"
    26302908/* System header to define __stub macros and hopefully few prototypes,
     
    26492927; return 0; }
    26502928EOF
    2651 if { (eval echo configure:2652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2929if { (eval echo configure:2930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    26522930  rm -rf conftest*
    26532931  eval "ac_cv_func_vfork=yes"
     
    26712949else
    26722950  cat > conftest.$ac_ext <<EOF
    2673 #line 2674 "configure"
     2951#line 2952 "configure"
    26742952#include "confdefs.h"
    26752953/* Thanks to Paul Eggert for this test.  */
     
    27663044}
    27673045EOF
    2768 if { (eval echo configure:2769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3046if { (eval echo configure:3047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    27693047then
    27703048  ac_cv_func_vfork_works=yes
     
    27913069    LIBOBJS="$LIBOBJS vfork.o"
    27923070  fi
    2793   for v in $vars; do
    2794     echo $ac_n "checking for $v""... $ac_c" 1>&6
    2795 echo "configure:2796: checking for $v" >&5
    2796     if eval "test \"`echo '$''{'libiberty_cv_var_$v'+set}'`\" = set"; then
    2797   echo $ac_n "(cached) $ac_c" 1>&6
    2798 else
    2799   cat > conftest.$ac_ext <<EOF
    2800 #line 2801 "configure"
    2801 #include "confdefs.h"
    2802 int *p;
    2803 int main() {
    2804 extern int $v; p = &$v;
    2805 ; return 0; }
    2806 EOF
    2807 if { (eval echo configure:2808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2808   rm -rf conftest*
    2809   eval "libiberty_cv_var_$v=yes"
    2810 else
    2811   echo "configure: failed program was:" >&5
    2812   cat conftest.$ac_ext >&5
    2813   rm -rf conftest*
    2814   eval "libiberty_cv_var_$v=no"
    2815 fi
    2816 rm -f conftest*
    2817 fi
    2818 
    2819     if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
    2820       echo "$ac_t""yes" 1>&6
    2821       n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    2822       cat >> confdefs.h <<EOF
    2823 #define $n 1
    2824 EOF
    2825 
    2826     else
    2827       echo "$ac_t""no" 1>&6
    2828     fi
    2829   done
    2830   for ac_func in $checkfuncs
     3071  # We only need _doprnt if we might use it to implement v*printf.
     3072  if test $ac_cv_func_vprintf != yes \
     3073     || test $ac_cv_func_vfprintf != yes \
     3074     || test $ac_cv_func_vsprintf != yes; then
     3075    for ac_func in _doprnt
    28313076do
    28323077echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2833 echo "configure:2834: checking for $ac_func" >&5
     3078echo "configure:3079: checking for $ac_func" >&5
    28343079if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    28353080  echo $ac_n "(cached) $ac_c" 1>&6
    28363081else
    28373082  cat > conftest.$ac_ext <<EOF
    2838 #line 2839 "configure"
     3083#line 3084 "configure"
    28393084#include "confdefs.h"
    28403085/* System header to define __stub macros and hopefully few prototypes,
     
    28593104; return 0; }
    28603105EOF
    2861 if { (eval echo configure:2862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3106if { (eval echo configure:3107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    28623107  rm -rf conftest*
    28633108  eval "ac_cv_func_$ac_func=yes"
     
    28803125else
    28813126  echo "$ac_t""no" 1>&6
     3127LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
    28823128fi
    28833129done
    28843130
    2885 fi
    2886 
    2887 for ac_hdr in unistd.h
    2888 do
    2889 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    2890 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2891 echo "configure:2892: checking for $ac_hdr" >&5
    2892 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    2893   echo $ac_n "(cached) $ac_c" 1>&6
    2894 else
    2895   cat > conftest.$ac_ext <<EOF
    2896 #include <sys/types.h>
    2897 #line 2898 "configure"
    2898 #include "confdefs.h"
    2899 #include <$ac_hdr>
    2900 EOF
    2901 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2902 { (eval echo configure:2903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    2903 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    2904 if test -z "$ac_err"; then
    2905   rm -rf conftest*
    2906   eval "ac_cv_header_$ac_safe=yes"
    2907 else
    2908   echo "$ac_err" >&5
    2909   echo "configure: failed program was:" >&5
    2910   cat conftest.$ac_ext >&5
    2911   rm -rf conftest*
    2912   eval "ac_cv_header_$ac_safe=no"
    2913 fi
    2914 rm -f conftest*
    2915 fi
    2916 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    2917   echo "$ac_t""yes" 1>&6
    2918     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    2919   cat >> confdefs.h <<EOF
    2920 #define $ac_tr_hdr 1
    2921 EOF
    2922  
    2923 else
    2924   echo "$ac_t""no" 1>&6
    2925 fi
    2926 done
    2927 
    2928 for ac_func in getpagesize
     3131
     3132  else
     3133    for ac_func in _doprnt
    29293134do
    29303135echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2931 echo "configure:2932: checking for $ac_func" >&5
     3136echo "configure:3137: checking for $ac_func" >&5
    29323137if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    29333138  echo $ac_n "(cached) $ac_c" 1>&6
    29343139else
    29353140  cat > conftest.$ac_ext <<EOF
    2936 #line 2937 "configure"
     3141#line 3142 "configure"
    29373142#include "confdefs.h"
    29383143/* System header to define __stub macros and hopefully few prototypes,
     
    29573162; return 0; }
    29583163EOF
    2959 if { (eval echo configure:2960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3164if { (eval echo configure:3165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    29603165  rm -rf conftest*
    29613166  eval "ac_cv_func_$ac_func=yes"
     
    29813186done
    29823187
     3188  fi
     3189
     3190  for v in $vars; do
     3191    echo $ac_n "checking for $v""... $ac_c" 1>&6
     3192echo "configure:3193: checking for $v" >&5
     3193    if eval "test \"`echo '$''{'libiberty_cv_var_$v'+set}'`\" = set"; then
     3194  echo $ac_n "(cached) $ac_c" 1>&6
     3195else
     3196  cat > conftest.$ac_ext <<EOF
     3197#line 3198 "configure"
     3198#include "confdefs.h"
     3199int *p;
     3200int main() {
     3201extern int $v []; p = $v;
     3202; return 0; }
     3203EOF
     3204if { (eval echo configure:3205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3205  rm -rf conftest*
     3206  eval "libiberty_cv_var_$v=yes"
     3207else
     3208  echo "configure: failed program was:" >&5
     3209  cat conftest.$ac_ext >&5
     3210  rm -rf conftest*
     3211  eval "libiberty_cv_var_$v=no"
     3212fi
     3213rm -f conftest*
     3214fi
     3215
     3216    if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
     3217      echo "$ac_t""yes" 1>&6
     3218      n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     3219      cat >> confdefs.h <<EOF
     3220#define $n 1
     3221EOF
     3222
     3223    else
     3224      echo "$ac_t""no" 1>&6
     3225    fi
     3226  done
     3227  for ac_func in $checkfuncs
     3228do
     3229echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     3230echo "configure:3231: checking for $ac_func" >&5
     3231if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
     3232  echo $ac_n "(cached) $ac_c" 1>&6
     3233else
     3234  cat > conftest.$ac_ext <<EOF
     3235#line 3236 "configure"
     3236#include "confdefs.h"
     3237/* System header to define __stub macros and hopefully few prototypes,
     3238    which can conflict with char $ac_func(); below.  */
     3239#include <assert.h>
     3240/* Override any gcc2 internal prototype to avoid an error.  */
     3241/* We use char because int might match the return type of a gcc2
     3242    builtin and then its argument prototype would still apply.  */
     3243char $ac_func();
     3244
     3245int main() {
     3246
     3247/* The GNU C library defines this for functions which it implements
     3248    to always fail with ENOSYS.  Some functions are actually named
     3249    something starting with __ and the normal name is an alias.  */
     3250#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
     3251choke me
     3252#else
     3253$ac_func();
     3254#endif
     3255
     3256; return 0; }
     3257EOF
     3258if { (eval echo configure:3259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3259  rm -rf conftest*
     3260  eval "ac_cv_func_$ac_func=yes"
     3261else
     3262  echo "configure: failed program was:" >&5
     3263  cat conftest.$ac_ext >&5
     3264  rm -rf conftest*
     3265  eval "ac_cv_func_$ac_func=no"
     3266fi
     3267rm -f conftest*
     3268fi
     3269
     3270if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
     3271  echo "$ac_t""yes" 1>&6
     3272    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     3273  cat >> confdefs.h <<EOF
     3274#define $ac_tr_func 1
     3275EOF
     3276 
     3277else
     3278  echo "$ac_t""no" 1>&6
     3279fi
     3280done
     3281
     3282  echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6
     3283echo "configure:3284: checking whether canonicalize_file_name must be declared" >&5
     3284if eval "test \"`echo '$''{'libiberty_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then
     3285  echo $ac_n "(cached) $ac_c" 1>&6
     3286else
     3287  cat > conftest.$ac_ext <<EOF
     3288#line 3289 "configure"
     3289#include "confdefs.h"
     3290
     3291#include "confdefs.h"
     3292#include <stdio.h>
     3293#ifdef HAVE_STRING_H
     3294#include <string.h>
     3295#else
     3296#ifdef HAVE_STRINGS_H
     3297#include <strings.h>
     3298#endif
     3299#endif
     3300#ifdef HAVE_STDLIB_H
     3301#include <stdlib.h>
     3302#endif
     3303#ifdef HAVE_UNISTD_H
     3304#include <unistd.h>
     3305#endif
     3306int main() {
     3307char *(*pfn) = (char *(*)) canonicalize_file_name
     3308; return 0; }
     3309EOF
     3310if { (eval echo configure:3311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3311  rm -rf conftest*
     3312  libiberty_cv_decl_needed_canonicalize_file_name=no
     3313else
     3314  echo "configure: failed program was:" >&5
     3315  cat conftest.$ac_ext >&5
     3316  rm -rf conftest*
     3317  libiberty_cv_decl_needed_canonicalize_file_name=yes
     3318fi
     3319rm -f conftest*
     3320fi
     3321
     3322echo "$ac_t""$libiberty_cv_decl_needed_canonicalize_file_name" 1>&6
     3323if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
     3324  cat >> confdefs.h <<\EOF
     3325#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
     3326EOF
     3327
     3328fi
     3329
     3330fi
     3331
     3332# Figure out which version of pexecute to use.
     3333case "${host}" in
     3334     *-*-mingw* | *-*-winnt*)   pexecute=pex-win32.o  ;;
     3335     *-*-msdosdjgpp*)           pexecute=pex-djgpp.o  ;;
     3336     *-*-msdos*)                pexecute=pex-msdos.o  ;;
     3337     *-*-os2-emx*)              pexecute=pex-os2.o    ;;
     3338     *)                         pexecute=pex-unix.o   ;;
     3339esac
     3340
     3341
     3342for ac_hdr in unistd.h
     3343do
     3344ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
     3345echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
     3346echo "configure:3347: checking for $ac_hdr" >&5
     3347if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
     3348  echo $ac_n "(cached) $ac_c" 1>&6
     3349else
     3350  cat > conftest.$ac_ext <<EOF
     3351#include <sys/types.h>
     3352#line 3353 "configure"
     3353#include "confdefs.h"
     3354#include <$ac_hdr>
     3355EOF
     3356ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     3357{ (eval echo configure:3358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     3358ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     3359if test -z "$ac_err"; then
     3360  rm -rf conftest*
     3361  eval "ac_cv_header_$ac_safe=yes"
     3362else
     3363  echo "$ac_err" >&5
     3364  echo "configure: failed program was:" >&5
     3365  cat conftest.$ac_ext >&5
     3366  rm -rf conftest*
     3367  eval "ac_cv_header_$ac_safe=no"
     3368fi
     3369rm -f conftest*
     3370fi
     3371if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
     3372  echo "$ac_t""yes" 1>&6
     3373    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
     3374  cat >> confdefs.h <<EOF
     3375#define $ac_tr_hdr 1
     3376EOF
     3377 
     3378else
     3379  echo "$ac_t""no" 1>&6
     3380fi
     3381done
     3382
     3383for ac_func in getpagesize
     3384do
     3385echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     3386echo "configure:3387: checking for $ac_func" >&5
     3387if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
     3388  echo $ac_n "(cached) $ac_c" 1>&6
     3389else
     3390  cat > conftest.$ac_ext <<EOF
     3391#line 3392 "configure"
     3392#include "confdefs.h"
     3393/* System header to define __stub macros and hopefully few prototypes,
     3394    which can conflict with char $ac_func(); below.  */
     3395#include <assert.h>
     3396/* Override any gcc2 internal prototype to avoid an error.  */
     3397/* We use char because int might match the return type of a gcc2
     3398    builtin and then its argument prototype would still apply.  */
     3399char $ac_func();
     3400
     3401int main() {
     3402
     3403/* The GNU C library defines this for functions which it implements
     3404    to always fail with ENOSYS.  Some functions are actually named
     3405    something starting with __ and the normal name is an alias.  */
     3406#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
     3407choke me
     3408#else
     3409$ac_func();
     3410#endif
     3411
     3412; return 0; }
     3413EOF
     3414if { (eval echo configure:3415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3415  rm -rf conftest*
     3416  eval "ac_cv_func_$ac_func=yes"
     3417else
     3418  echo "configure: failed program was:" >&5
     3419  cat conftest.$ac_ext >&5
     3420  rm -rf conftest*
     3421  eval "ac_cv_func_$ac_func=no"
     3422fi
     3423rm -f conftest*
     3424fi
     3425
     3426if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
     3427  echo "$ac_t""yes" 1>&6
     3428    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     3429  cat >> confdefs.h <<EOF
     3430#define $ac_tr_func 1
     3431EOF
     3432 
     3433else
     3434  echo "$ac_t""no" 1>&6
     3435fi
     3436done
     3437
    29833438echo $ac_n "checking for working mmap""... $ac_c" 1>&6
    2984 echo "configure:2985: checking for working mmap" >&5
     3439echo "configure:3440: checking for working mmap" >&5
    29853440if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
    29863441  echo $ac_n "(cached) $ac_c" 1>&6
     
    29903445else
    29913446  cat > conftest.$ac_ext <<EOF
    2992 #line 2993 "configure"
     3447#line 3448 "configure"
    29933448#include "confdefs.h"
    29943449
     
    31303585
    31313586EOF
    3132 if { (eval echo configure:3133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3587if { (eval echo configure:3588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    31333588then
    31343589  ac_cv_func_mmap_fixed_mapped=yes
     
    31543609
    31553610echo $ac_n "checking for working strncmp""... $ac_c" 1>&6
    3156 echo "configure:3157: checking for working strncmp" >&5
     3611echo "configure:3612: checking for working strncmp" >&5
    31573612if eval "test \"`echo '$''{'ac_cv_func_strncmp_works'+set}'`\" = set"; then
    31583613  echo $ac_n "(cached) $ac_c" 1>&6
     
    31623617else
    31633618  cat > conftest.$ac_ext <<EOF
    3164 #line 3165 "configure"
     3619#line 3620 "configure"
    31653620#include "confdefs.h"
    31663621
     
    32073662                     MAP_ANON|MAP_PRIVATE, dev_zero, 0);
    32083663  if (p == (char *)-1)
     3664    p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
     3665                       MAP_ANON|MAP_PRIVATE, -1, 0);
     3666  if (p == (char *)-1)
    32093667    exit (2);
    32103668  else
     
    32233681
    32243682EOF
    3225 if { (eval echo configure:3226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3683if { (eval echo configure:3684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    32263684then
    32273685  ac_cv_func_strncmp_works=yes
     
    33943852s%@PATH_IFS@%$PATH_IFS%g
    33953853s%@EXEEXT@%$EXEEXT%g
     3854s%@libiberty_topdir@%$libiberty_topdir%g
     3855s%@MAINT@%$MAINT%g
     3856s%@NOTMAINT@%$NOTMAINT%g
     3857s%@MAKEINFO@%$MAKEINFO%g
     3858s%@BUILD_INFO@%$BUILD_INFO%g
     3859s%@PERL@%$PERL%g
     3860s%@HAVE_PERL@%$HAVE_PERL%g
    33963861s%@host@%$host%g
    33973862s%@host_alias@%$host_alias%g
     
    34083873s%@CC@%$CC%g
    34093874s%@ac_libiberty_warn_cflags@%$ac_libiberty_warn_cflags%g
     3875s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
     3876s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
    34103877s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
    34113878s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
     
    34153882s%@CPP@%$CPP%g
    34163883s%@CHECK@%$CHECK%g
     3884s%@target_header_dir@%$target_header_dir%g
    34173885s%@LIBOBJS@%$LIBOBJS%g
    3418 s%@ALLOCA@%$ALLOCA%g
     3886s%@pexecute@%$pexecute%g
    34193887s%@INSTALL_DEST@%$INSTALL_DEST%g
    34203888
     
    36344102target=${target}
    36354103with_target_subdir=${with_target_subdir}
     4104with_build_subdir=${with_build_subdir}
    36364105with_multisubdir=${with_multisubdir}
    36374106ac_configure_args="--enable-multilib ${ac_configure_args}"
    36384107CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
     4108ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
    36394109libiberty_topdir=${libiberty_topdir}
    36404110
     
    36434113test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
    36444114if test -n "$CONFIG_FILES"; then
    3645   if test -n "${with_target_subdir}"; then
     4115  if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
    36464116    # FIXME: We shouldn't need to set ac_file
    36474117    ac_file=Makefile
     4118    LD="${ORIGINAL_LD_FOR_MULTILIBS}"
    36484119    . ${libiberty_topdir}/config-ml.in
    36494120  fi
Note: See TracChangeset for help on using the changeset viewer.