Ignore:
Timestamp:
Apr 28, 2004, 6:58:06 AM (21 years ago)
Author:
bird
Message:

#1040: Joined the GCC 3.3.3 with the trunk.

File:
1 edited

Legend:

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

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r1393 r1394  
    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"
     
    2224                          enable make rules and dependencies not useful
    2325                          (and sometimes confusing) to the casual installer"
     26ac_help="$ac_help
     27  --enable-install-libiberty       Install headers for end users"
    2428
    2529# Initialize some variables set by options.
     
    532536
    533537echo $ac_n "checking for path separator""... $ac_c" 1>&6
    534 echo "configure:535: checking for path separator" >&5
     538echo "configure:539: checking for path separator" >&5
    535539# Filter path to get backslahes into forwardslashes
    536540case "`uname -s 2> /dev/null`" in
     
    546550
    547551echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
    548 echo "configure:549: checking for Cygwin environment" >&5
     552echo "configure:553: checking for Cygwin environment" >&5
    549553if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
    550554  echo $ac_n "(cached) $ac_c" 1>&6
    551555else
    552556  cat > conftest.$ac_ext <<EOF
    553 #line 554 "configure"
     557#line 558 "configure"
    554558#include "confdefs.h"
    555559
     
    562566; return 0; }
    563567EOF
    564 if { (eval echo configure:565: \"$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
    565569  rm -rf conftest*
    566570  ac_cv_cygwin=yes
     
    579583test "$ac_cv_cygwin" = yes && CYGWIN=yes
    580584echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
    581 echo "configure:582: checking for mingw32 environment" >&5
     585echo "configure:586: checking for mingw32 environment" >&5
    582586if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
    583587  echo $ac_n "(cached) $ac_c" 1>&6
    584588else
    585589  cat > conftest.$ac_ext <<EOF
    586 #line 587 "configure"
     590#line 591 "configure"
    587591#include "confdefs.h"
    588592
     
    591595; return 0; }
    592596EOF
    593 if { (eval echo configure:594: \"$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
    594598  rm -rf conftest*
    595599  ac_cv_mingw32=yes
     
    608612test "$ac_cv_mingw32" = yes && MINGW32=yes
    609613echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
    610 echo "configure:611: checking for EMX/OS2 environment" >&5
     614echo "configure:615: checking for EMX/OS2 environment" >&5
    611615if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
    612616  echo $ac_n "(cached) $ac_c" 1>&6
     
    614618  : ${CC=gcc.exe}
    615619cat > conftest.$ac_ext <<EOF
    616 #line 617 "configure"
     620#line 621 "configure"
    617621#include "confdefs.h"
    618622
     
    621625; return 0; }
    622626EOF
    623 if { (eval echo configure:624: \"$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
    624628  rm -rf conftest*
    625629  ac_cv_emxos2=yes
     
    652656
    653657echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
    654 echo "configure:655: checking for executable suffix" >&5
     658echo "configure:659: checking for executable suffix" >&5
    655659if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
    656660  echo $ac_n "(cached) $ac_c" 1>&6
     
    662666  echo 'int main () { return 0; }' > conftest.$ac_ext
    663667  ac_cv_exeext=
    664   if { (eval echo configure:665: \"$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
    665669    for file in conftest.*; do
    666670      case $file in
     
    696700fi
    697701
     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
    698708# Check whether --with-cross-host or --without-cross-host was given.
    699709if test "${with_cross_host+set}" = set; then
     
    710720
    711721if test "${srcdir}" = "."; then
    712   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
    713726    libiberty_topdir="${srcdir}/.."
    714727  else
     
    745758
    746759echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
    747 echo "configure:748: checking whether to enable maintainer-specific portions of Makefiles" >&5
     760echo "configure:761: checking whether to enable maintainer-specific portions of Makefiles" >&5
    748761    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
    749762if test "${enable_maintainer_mode+set}" = set; then
     
    770783set dummy makeinfo; ac_word=$2
    771784echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    772 echo "configure:773: checking for $ac_word" >&5
     785echo "configure:786: checking for $ac_word" >&5
    773786if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
    774787  echo $ac_n "(cached) $ac_c" 1>&6
     
    817830set dummy perl; ac_word=$2
    818831echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    819 echo "configure:820: checking for $ac_word" >&5
     832echo "configure:833: checking for $ac_word" >&5
    820833if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
    821834  echo $ac_n "(cached) $ac_c" 1>&6
     
    858871
    859872echo $ac_n "checking host system type""... $ac_c" 1>&6
    860 echo "configure:861: checking host system type" >&5
     873echo "configure:874: checking host system type" >&5
    861874
    862875host_alias=$host
     
    881894
    882895echo $ac_n "checking build system type""... $ac_c" 1>&6
    883 echo "configure:884: checking build system type" >&5
     896echo "configure:897: checking build system type" >&5
    884897
    885898build_alias=$build
     
    907920set dummy ${ac_tool_prefix}ar; ac_word=$2
    908921echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    909 echo "configure:910: checking for $ac_word" >&5
     922echo "configure:923: checking for $ac_word" >&5
    910923if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
    911924  echo $ac_n "(cached) $ac_c" 1>&6
     
    940953set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    941954echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    942 echo "configure:943: checking for $ac_word" >&5
     955echo "configure:956: checking for $ac_word" >&5
    943956if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    944957  echo $ac_n "(cached) $ac_c" 1>&6
     
    973986set dummy ranlib; ac_word=$2
    974987echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    975 echo "configure:976: checking for $ac_word" >&5
     988echo "configure:989: checking for $ac_word" >&5
    976989if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    977990  echo $ac_n "(cached) $ac_c" 1>&6
     
    10111024set dummy gcc; ac_word=$2
    10121025echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1013 echo "configure:1014: checking for $ac_word" >&5
     1026echo "configure:1027: checking for $ac_word" >&5
    10141027if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    10151028  echo $ac_n "(cached) $ac_c" 1>&6
     
    10421055set dummy cc; ac_word=$2
    10431056echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1044 echo "configure:1045: checking for $ac_word" >&5
     1057echo "configure:1058: checking for $ac_word" >&5
    10451058if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    10461059  echo $ac_n "(cached) $ac_c" 1>&6
     
    10931106
    10941107echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    1095 echo "configure:1096: checking whether we are using GNU C" >&5
     1108echo "configure:1109: checking whether we are using GNU C" >&5
    10961109if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    10971110  echo $ac_n "(cached) $ac_c" 1>&6
     
    11021115#endif
    11031116EOF
    1104 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1105: \"$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
    11051118  ac_cv_prog_gcc=yes
    11061119else
     
    11181131  CFLAGS=
    11191132  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    1120 echo "configure:1121: checking whether ${CC-cc} accepts -g" >&5
     1133echo "configure:1134: checking whether ${CC-cc} accepts -g" >&5
    11211134if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    11221135  echo $ac_n "(cached) $ac_c" 1>&6
     
    11481161
    11491162
     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
    11501224echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
    1151 echo "configure:1152: checking for POSIXized ISC" >&5
     1225echo "configure:1226: checking for POSIXized ISC" >&5
    11521226if test -d /etc/conf/kconfig.d &&
    11531227  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
     
    11701244
    11711245echo $ac_n "checking for working const""... $ac_c" 1>&6
    1172 echo "configure:1173: checking for working const" >&5
     1246echo "configure:1247: checking for working const" >&5
    11731247if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    11741248  echo $ac_n "(cached) $ac_c" 1>&6
    11751249else
    11761250  cat > conftest.$ac_ext <<EOF
    1177 #line 1178 "configure"
     1251#line 1252 "configure"
    11781252#include "confdefs.h"
    11791253
     
    12241298; return 0; }
    12251299EOF
    1226 if { (eval echo configure:1227: \"$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
    12271301  rm -rf conftest*
    12281302  ac_cv_c_const=yes
     
    12451319
    12461320echo $ac_n "checking for inline""... $ac_c" 1>&6
    1247 echo "configure:1248: checking for inline" >&5
     1321echo "configure:1322: checking for inline" >&5
    12481322if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
    12491323  echo $ac_n "(cached) $ac_c" 1>&6
     
    12521326for ac_kw in inline __inline__ __inline; do
    12531327  cat > conftest.$ac_ext <<EOF
    1254 #line 1255 "configure"
     1328#line 1329 "configure"
    12551329#include "confdefs.h"
    12561330
     
    12591333; return 0; }
    12601334EOF
    1261 if { (eval echo configure:1262: \"$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
    12621336  rm -rf conftest*
    12631337  ac_cv_c_inline=$ac_kw; break
     
    13021376# ./install, which can be erroneously created by make from ./install.sh.
    13031377echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    1304 echo "configure:1305: checking for a BSD compatible install" >&5
     1378echo "configure:1379: checking for a BSD compatible install" >&5
    13051379if test -z "$INSTALL"; then
    13061380if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    13651439# something.
    13661440echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    1367 echo "configure:1368: checking how to run the C preprocessor" >&5
     1441echo "configure:1442: checking how to run the C preprocessor" >&5
    13681442# On Suns, sometimes $CPP names a directory.
    13691443if test -n "$CPP" && test -d "$CPP"; then
     
    13811455  cat > conftest.$ac_ext <<EOF
    13821456#include <sys/types.h>
    1383 #line 1384 "configure"
     1457#line 1458 "configure"
    13841458#include "confdefs.h"
    13851459#include <assert.h>
     
    13871461EOF
    13881462ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1389 { (eval echo configure:1390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1463{ (eval echo configure:1464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    13901464ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    13911465if test -z "$ac_err"; then
     
    13991473  cat > conftest.$ac_ext <<EOF
    14001474#include <sys/types.h>
    1401 #line 1402 "configure"
     1475#line 1476 "configure"
    14021476#include "confdefs.h"
    14031477#include <assert.h>
     
    14051479EOF
    14061480ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1407 { (eval echo configure:1408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1481{ (eval echo configure:1482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    14081482ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    14091483if test -z "$ac_err"; then
     
    14171491  cat > conftest.$ac_ext <<EOF
    14181492#include <sys/types.h>
    1419 #line 1420 "configure"
     1493#line 1494 "configure"
    14201494#include "confdefs.h"
    14211495#include <assert.h>
     
    14231497EOF
    14241498ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1425 { (eval echo configure:1426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1499{ (eval echo configure:1500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    14261500ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    14271501if test -z "$ac_err"; then
     
    14471521echo "$ac_t""$CPP" 1>&6
    14481522
    1449 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 alloca.h
     1523for ac_hdr in sys/file.h sys/param.h limits.h stdlib.h malloc.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
    14501524do
    14511525ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    14521526echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1453 echo "configure:1454: checking for $ac_hdr" >&5
     1527echo "configure:1528: checking for $ac_hdr" >&5
    14541528if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    14551529  echo $ac_n "(cached) $ac_c" 1>&6
     
    14571531  cat > conftest.$ac_ext <<EOF
    14581532#include <sys/types.h>
    1459 #line 1460 "configure"
     1533#line 1534 "configure"
    14601534#include "confdefs.h"
    14611535#include <$ac_hdr>
    14621536EOF
    14631537ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1464 { (eval echo configure:1465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1538{ (eval echo configure:1539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    14651539ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    14661540if test -z "$ac_err"; then
     
    14891563
    14901564echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
    1491 echo "configure:1492: 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
    14921566if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
    14931567  echo $ac_n "(cached) $ac_c" 1>&6
    14941568else
    14951569  cat > conftest.$ac_ext <<EOF
    1496 #line 1497 "configure"
     1570#line 1571 "configure"
    14971571#include "confdefs.h"
    14981572#include <sys/types.h>
     
    15101584; return 0; }
    15111585EOF
    1512 if { (eval echo configure:1513: \"$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
    15131587  rm -rf conftest*
    15141588  ac_cv_header_sys_wait_h=yes
     
    15311605
    15321606echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
    1533 echo "configure:1534: 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
    15341608if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    15351609  echo $ac_n "(cached) $ac_c" 1>&6
    15361610else
    15371611  cat > conftest.$ac_ext <<EOF
    1538 #line 1539 "configure"
     1612#line 1613 "configure"
    15391613#include "confdefs.h"
    15401614#include <sys/types.h>
     
    15451619; return 0; }
    15461620EOF
    1547 if { (eval echo configure:1548: \"$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
    15481622  rm -rf conftest*
    15491623  ac_cv_header_time=yes
     
    15671641
    15681642echo $ac_n "checking whether errno must be declared""... $ac_c" 1>&6
    1569 echo "configure:1570: checking whether errno must be declared" >&5
     1643echo "configure:1644: checking whether errno must be declared" >&5
    15701644if eval "test \"`echo '$''{'libiberty_cv_declare_errno'+set}'`\" = set"; then
    15711645  echo $ac_n "(cached) $ac_c" 1>&6
    15721646else
    15731647  cat > conftest.$ac_ext <<EOF
    1574 #line 1575 "configure"
     1648#line 1649 "configure"
    15751649#include "confdefs.h"
    15761650#include <errno.h>
     
    15791653; return 0; }
    15801654EOF
    1581 if { (eval echo configure:1582: \"$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
    15821656  rm -rf conftest*
    15831657  libiberty_cv_declare_errno=no
     
    16011675
    16021676echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    1603 echo "configure:1604: checking for ANSI C header files" >&5
     1677echo "configure:1678: checking for ANSI C header files" >&5
    16041678if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    16051679  echo $ac_n "(cached) $ac_c" 1>&6
     
    16071681  cat > conftest.$ac_ext <<EOF
    16081682#include <sys/types.h>
    1609 #line 1610 "configure"
     1683#line 1684 "configure"
    16101684#include "confdefs.h"
    16111685#include <stdlib.h>
     
    16151689EOF
    16161690ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1617 { (eval echo configure:1618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1691{ (eval echo configure:1692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    16181692ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    16191693if test -z "$ac_err"; then
     
    16321706  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    16331707cat > conftest.$ac_ext <<EOF
    1634 #line 1635 "configure"
     1708#line 1709 "configure"
    16351709#include "confdefs.h"
    16361710#include <string.h>
     
    16501724  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    16511725cat > conftest.$ac_ext <<EOF
    1652 #line 1653 "configure"
     1726#line 1727 "configure"
    16531727#include "confdefs.h"
    16541728#include <stdlib.h>
     
    16711745else
    16721746  cat > conftest.$ac_ext <<EOF
    1673 #line 1674 "configure"
     1747#line 1748 "configure"
    16741748#include "confdefs.h"
    16751749#include <ctype.h>
     
    16821756
    16831757EOF
    1684 if { (eval echo configure:1685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1758if { (eval echo configure:1759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    16851759then
    16861760  :
     
    17061780
    17071781echo $ac_n "checking for uintptr_t""... $ac_c" 1>&6
    1708 echo "configure:1709: checking for uintptr_t" >&5
     1782echo "configure:1783: checking for uintptr_t" >&5
    17091783if eval "test \"`echo '$''{'ac_cv_type_uintptr_t'+set}'`\" = set"; then
    17101784  echo $ac_n "(cached) $ac_c" 1>&6
    17111785else
    17121786  cat > conftest.$ac_ext <<EOF
    1713 #line 1714 "configure"
     1787#line 1788 "configure"
    17141788#include "confdefs.h"
    17151789#include <sys/types.h>
     
    17381812fi
    17391813
    1740 
    1741 if test $ac_cv_type_uintptr_t = yes
    1742 then
     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
    17431849  cat >> confdefs.h <<\EOF
    1744 #define HAVE_UINTPTR_T 1
    1745 EOF
    1746 
    1747 fi
     1850#define pid_t int
     1851EOF
     1852
     1853fi
     1854
    17481855
    17491856# This is the list of functions which libiberty will provide if they
     
    17971904
    17981905checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday"
     1906checkfuncs="$checkfuncs realpath canonicalize_file_name"
     1907checkfuncs="$checkfuncs pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl"
    17991908
    18001909# These are neither executed nor required, but they help keep
     
    18041913do
    18051914echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1806 echo "configure:1807: checking for $ac_func" >&5
     1915echo "configure:1916: checking for $ac_func" >&5
    18071916if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    18081917  echo $ac_n "(cached) $ac_c" 1>&6
    18091918else
    18101919  cat > conftest.$ac_ext <<EOF
    1811 #line 1812 "configure"
     1920#line 1921 "configure"
    18121921#include "confdefs.h"
    18131922/* System header to define __stub macros and hopefully few prototypes,
     
    18321941; return 0; }
    18331942EOF
    1834 if { (eval echo configure:1835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1943if { (eval echo configure:1944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    18351944  rm -rf conftest*
    18361945  eval "ac_cv_func_$ac_func=yes"
     
    18591968do
    18601969echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1861 echo "configure:1862: checking for $ac_func" >&5
     1970echo "configure:1971: checking for $ac_func" >&5
    18621971if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    18631972  echo $ac_n "(cached) $ac_c" 1>&6
    18641973else
    18651974  cat > conftest.$ac_ext <<EOF
    1866 #line 1867 "configure"
     1975#line 1976 "configure"
    18671976#include "confdefs.h"
    18681977/* System header to define __stub macros and hopefully few prototypes,
     
    18871996; return 0; }
    18881997EOF
    1889 if { (eval echo configure:1890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1998if { (eval echo configure:1999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    18901999  rm -rf conftest*
    18912000  eval "ac_cv_func_$ac_func=yes"
     
    19142023do
    19152024echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1916 echo "configure:1917: checking for $ac_func" >&5
     2025echo "configure:2026: checking for $ac_func" >&5
    19172026if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    19182027  echo $ac_n "(cached) $ac_c" 1>&6
    19192028else
    19202029  cat > conftest.$ac_ext <<EOF
    1921 #line 1922 "configure"
     2030#line 2031 "configure"
    19222031#include "confdefs.h"
    19232032/* System header to define __stub macros and hopefully few prototypes,
     
    19422051; return 0; }
    19432052EOF
    1944 if { (eval echo configure:1945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2053if { (eval echo configure:2054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    19452054  rm -rf conftest*
    19462055  eval "ac_cv_func_$ac_func=yes"
     
    19692078do
    19702079echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1971 echo "configure:1972: checking for $ac_func" >&5
     2080echo "configure:2081: checking for $ac_func" >&5
    19722081if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    19732082  echo $ac_n "(cached) $ac_c" 1>&6
    19742083else
    19752084  cat > conftest.$ac_ext <<EOF
    1976 #line 1977 "configure"
     2085#line 2086 "configure"
    19772086#include "confdefs.h"
    19782087/* System header to define __stub macros and hopefully few prototypes,
     
    19972106; return 0; }
    19982107EOF
    1999 if { (eval echo configure:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2108if { (eval echo configure:2109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    20002109  rm -rf conftest*
    20012110  eval "ac_cv_func_$ac_func=yes"
     
    20242133do
    20252134echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2026 echo "configure:2027: checking for $ac_func" >&5
     2135echo "configure:2136: checking for $ac_func" >&5
    20272136if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    20282137  echo $ac_n "(cached) $ac_c" 1>&6
    20292138else
    20302139  cat > conftest.$ac_ext <<EOF
    2031 #line 2032 "configure"
     2140#line 2141 "configure"
    20322141#include "confdefs.h"
    20332142/* System header to define __stub macros and hopefully few prototypes,
     
    20522161; return 0; }
    20532162EOF
    2054 if { (eval echo configure:2055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2163if { (eval echo configure:2164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    20552164  rm -rf conftest*
    20562165  eval "ac_cv_func_$ac_func=yes"
     
    20792188do
    20802189echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2081 echo "configure:2082: checking for $ac_func" >&5
     2190echo "configure:2191: checking for $ac_func" >&5
    20822191if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    20832192  echo $ac_n "(cached) $ac_c" 1>&6
    20842193else
    20852194  cat > conftest.$ac_ext <<EOF
    2086 #line 2087 "configure"
     2195#line 2196 "configure"
    20872196#include "confdefs.h"
    20882197/* System header to define __stub macros and hopefully few prototypes,
     
    21072216; return 0; }
    21082217EOF
    2109 if { (eval echo configure:2110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2218if { (eval echo configure:2219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    21102219  rm -rf conftest*
    21112220  eval "ac_cv_func_$ac_func=yes"
     
    21342243do
    21352244echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2136 echo "configure:2137: checking for $ac_func" >&5
     2245echo "configure:2246: checking for $ac_func" >&5
    21372246if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    21382247  echo $ac_n "(cached) $ac_c" 1>&6
    21392248else
    21402249  cat > conftest.$ac_ext <<EOF
    2141 #line 2142 "configure"
     2250#line 2251 "configure"
    21422251#include "confdefs.h"
    21432252/* System header to define __stub macros and hopefully few prototypes,
     
    21622271; return 0; }
    21632272EOF
    2164 if { (eval echo configure:2165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2273if { (eval echo configure:2274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    21652274  rm -rf conftest*
    21662275  eval "ac_cv_func_$ac_func=yes"
     
    21862295done
    21872296
     2297  for ac_func in realpath canonicalize_file_name
     2298do
     2299echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     2300echo "configure:2301: checking for $ac_func" >&5
     2301if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
     2302  echo $ac_n "(cached) $ac_c" 1>&6
     2303else
     2304  cat > conftest.$ac_ext <<EOF
     2305#line 2306 "configure"
     2306#include "confdefs.h"
     2307/* System header to define __stub macros and hopefully few prototypes,
     2308    which can conflict with char $ac_func(); below.  */
     2309#include <assert.h>
     2310/* Override any gcc2 internal prototype to avoid an error.  */
     2311/* We use char because int might match the return type of a gcc2
     2312    builtin and then its argument prototype would still apply.  */
     2313char $ac_func();
     2314
     2315int main() {
     2316
     2317/* The GNU C library defines this for functions which it implements
     2318    to always fail with ENOSYS.  Some functions are actually named
     2319    something starting with __ and the normal name is an alias.  */
     2320#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
     2321choke me
     2322#else
     2323$ac_func();
     2324#endif
     2325
     2326; return 0; }
     2327EOF
     2328if { (eval echo configure:2329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2329  rm -rf conftest*
     2330  eval "ac_cv_func_$ac_func=yes"
     2331else
     2332  echo "configure: failed program was:" >&5
     2333  cat conftest.$ac_ext >&5
     2334  rm -rf conftest*
     2335  eval "ac_cv_func_$ac_func=no"
     2336fi
     2337rm -f conftest*
     2338fi
     2339
     2340if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
     2341  echo "$ac_t""yes" 1>&6
     2342    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     2343  cat >> confdefs.h <<EOF
     2344#define $ac_tr_func 1
     2345EOF
     2346 
     2347else
     2348  echo "$ac_t""no" 1>&6
     2349fi
     2350done
     2351
     2352  for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl
     2353do
     2354echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     2355echo "configure:2356: checking for $ac_func" >&5
     2356if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
     2357  echo $ac_n "(cached) $ac_c" 1>&6
     2358else
     2359  cat > conftest.$ac_ext <<EOF
     2360#line 2361 "configure"
     2361#include "confdefs.h"
     2362/* System header to define __stub macros and hopefully few prototypes,
     2363    which can conflict with char $ac_func(); below.  */
     2364#include <assert.h>
     2365/* Override any gcc2 internal prototype to avoid an error.  */
     2366/* We use char because int might match the return type of a gcc2
     2367    builtin and then its argument prototype would still apply.  */
     2368char $ac_func();
     2369
     2370int main() {
     2371
     2372/* The GNU C library defines this for functions which it implements
     2373    to always fail with ENOSYS.  Some functions are actually named
     2374    something starting with __ and the normal name is an alias.  */
     2375#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
     2376choke me
     2377#else
     2378$ac_func();
     2379#endif
     2380
     2381; return 0; }
     2382EOF
     2383if { (eval echo configure:2384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2384  rm -rf conftest*
     2385  eval "ac_cv_func_$ac_func=yes"
     2386else
     2387  echo "configure: failed program was:" >&5
     2388  cat conftest.$ac_ext >&5
     2389  rm -rf conftest*
     2390  eval "ac_cv_func_$ac_func=no"
     2391fi
     2392rm -f conftest*
     2393fi
     2394
     2395if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
     2396  echo "$ac_t""yes" 1>&6
     2397    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     2398  cat >> confdefs.h <<EOF
     2399#define $ac_tr_func 1
     2400EOF
     2401 
     2402else
     2403  echo "$ac_t""no" 1>&6
     2404fi
     2405done
     2406
    21882407  cat >> confdefs.h <<\EOF
    21892408#define HAVE_SYS_ERRLIST 1
     
    22062425setobjs=
    22072426CHECK=
     2427target_header_dir=
    22082428if test -n "${with_target_subdir}"; then
    22092429
     
    22462466  fi
    22472467
     2468  # We may wish to install the target headers somewhere.
     2469  # Check whether --enable-install-libiberty or --disable-install-libiberty was given.
     2470if test "${enable_install_libiberty+set}" = set; then
     2471  enableval="$enable_install_libiberty"
     2472  enable_install_libiberty=$enableval
     2473else
     2474  enable_install_libiberty=no
     2475fi
     2476 
     2477  # Option parsed, now set things appropriately.
     2478  case x"$enable_install_libiberty" in
     2479    xyes|x)
     2480      target_header_dir=libiberty
     2481      ;;
     2482    xno)   
     2483      target_header_dir=
     2484      ;;
     2485    *)
     2486      # This could be sanity-checked in various ways...
     2487      target_header_dir="${enable_install_libiberty}"
     2488      ;;
     2489  esac
     2490
     2491
    22482492else
    22492493
     
    22522496
    22532497fi
     2498
    22542499
    22552500
     
    23662611  # tests.  This will only work if the compiler works.
    23672612  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    2368 echo "configure:2369: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     2613echo "configure:2614: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    23692614
    23702615ac_ext=c
     
    23772622cat > conftest.$ac_ext << EOF
    23782623
    2379 #line 2380 "configure"
     2624#line 2625 "configure"
    23802625#include "confdefs.h"
    23812626
    23822627main(){return(0);}
    23832628EOF
    2384 if { (eval echo configure:2385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2629if { (eval echo configure:2630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    23852630  ac_cv_prog_cc_works=yes
    23862631  # If we can't run a trivial program, we are probably using a cross compiler.
     
    24082653fi
    24092654echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    2410 echo "configure:2411: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     2655echo "configure:2656: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    24112656echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    24122657cross_compiling=$ac_cv_prog_cc_cross
     
    24152660do
    24162661echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2417 echo "configure:2418: checking for $ac_func" >&5
     2662echo "configure:2663: checking for $ac_func" >&5
    24182663if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    24192664  echo $ac_n "(cached) $ac_c" 1>&6
    24202665else
    24212666  cat > conftest.$ac_ext <<EOF
    2422 #line 2423 "configure"
     2667#line 2668 "configure"
    24232668#include "confdefs.h"
    24242669/* System header to define __stub macros and hopefully few prototypes,
     
    24432688; return 0; }
    24442689EOF
    2445 if { (eval echo configure:2446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2690if { (eval echo configure:2691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    24462691  rm -rf conftest*
    24472692  eval "ac_cv_func_$ac_func=yes"
     
    24702715
    24712716  echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
    2472 echo "configure:2473: checking whether alloca needs Cray hooks" >&5
     2717echo "configure:2718: checking whether alloca needs Cray hooks" >&5
    24732718if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
    24742719  echo $ac_n "(cached) $ac_c" 1>&6
    24752720else
    24762721  cat > conftest.$ac_ext <<EOF
    2477 #line 2478 "configure"
     2722#line 2723 "configure"
    24782723#include "confdefs.h"
    24792724#if defined(CRAY) && ! defined(CRAY2)
     
    25002745  for ac_func in _getb67 GETB67 getb67; do
    25012746    echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2502 echo "configure:2503: checking for $ac_func" >&5
     2747echo "configure:2748: checking for $ac_func" >&5
    25032748if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    25042749  echo $ac_n "(cached) $ac_c" 1>&6
    25052750else
    25062751  cat > conftest.$ac_ext <<EOF
    2507 #line 2508 "configure"
     2752#line 2753 "configure"
    25082753#include "confdefs.h"
    25092754/* System header to define __stub macros and hopefully few prototypes,
     
    25282773; return 0; }
    25292774EOF
    2530 if { (eval echo configure:2531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2775if { (eval echo configure:2776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    25312776  rm -rf conftest*
    25322777  eval "ac_cv_func_$ac_func=yes"
     
    25542799
    25552800echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
    2556 echo "configure:2557: checking stack direction for C alloca" >&5
     2801echo "configure:2802: checking stack direction for C alloca" >&5
    25572802if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
    25582803  echo $ac_n "(cached) $ac_c" 1>&6
     
    25622807else
    25632808  cat > conftest.$ac_ext <<EOF
    2564 #line 2565 "configure"
     2809#line 2810 "configure"
    25652810#include "confdefs.h"
    25662811find_stack_direction ()
     
    25812826}
    25822827EOF
    2583 if { (eval echo configure:2584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2828if { (eval echo configure:2829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    25842829then
    25852830  ac_cv_c_stack_direction=1
     
    26012846
    26022847
    2603   echo $ac_n "checking for pid_t""... $ac_c" 1>&6
    2604 echo "configure:2605: checking for pid_t" >&5
    2605 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
    2606   echo $ac_n "(cached) $ac_c" 1>&6
    2607 else
    2608   cat > conftest.$ac_ext <<EOF
    2609 #line 2610 "configure"
    2610 #include "confdefs.h"
    2611 #include <sys/types.h>
    2612 #if STDC_HEADERS
    2613 #include <stdlib.h>
    2614 #include <stddef.h>
    2615 #endif
    2616 EOF
    2617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2618   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
    2619   rm -rf conftest*
    2620   ac_cv_type_pid_t=yes
    2621 else
    2622   rm -rf conftest*
    2623   ac_cv_type_pid_t=no
    2624 fi
    2625 rm -f conftest*
    2626 
    2627 fi
    2628 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
    2629 if test $ac_cv_type_pid_t = no; then
    2630   cat >> confdefs.h <<\EOF
    2631 #define pid_t int
    2632 EOF
    2633 
    2634 fi
    2635 
    2636 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
     2848  ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
    26372849echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
    2638 echo "configure:2639: checking for vfork.h" >&5
     2850echo "configure:2851: checking for vfork.h" >&5
    26392851if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    26402852  echo $ac_n "(cached) $ac_c" 1>&6
     
    26422854  cat > conftest.$ac_ext <<EOF
    26432855#include <sys/types.h>
    2644 #line 2645 "configure"
     2856#line 2857 "configure"
    26452857#include "confdefs.h"
    26462858#include <vfork.h>
    26472859EOF
    26482860ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2649 { (eval echo configure:2650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2861{ (eval echo configure:2862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    26502862ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    26512863if test -z "$ac_err"; then
     
    26722884
    26732885echo $ac_n "checking for working vfork""... $ac_c" 1>&6
    2674 echo "configure:2675: checking for working vfork" >&5
     2886echo "configure:2887: checking for working vfork" >&5
    26752887if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
    26762888  echo $ac_n "(cached) $ac_c" 1>&6
     
    26782890  if test "$cross_compiling" = yes; then
    26792891  echo $ac_n "checking for vfork""... $ac_c" 1>&6
    2680 echo "configure:2681: checking for vfork" >&5
     2892echo "configure:2893: checking for vfork" >&5
    26812893if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
    26822894  echo $ac_n "(cached) $ac_c" 1>&6
    26832895else
    26842896  cat > conftest.$ac_ext <<EOF
    2685 #line 2686 "configure"
     2897#line 2898 "configure"
    26862898#include "confdefs.h"
    26872899/* System header to define __stub macros and hopefully few prototypes,
     
    27062918; return 0; }
    27072919EOF
    2708 if { (eval echo configure:2709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2920if { (eval echo configure:2921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    27092921  rm -rf conftest*
    27102922  eval "ac_cv_func_vfork=yes"
     
    27282940else
    27292941  cat > conftest.$ac_ext <<EOF
    2730 #line 2731 "configure"
     2942#line 2943 "configure"
    27312943#include "confdefs.h"
    27322944/* Thanks to Paul Eggert for this test.  */
     
    28233035}
    28243036EOF
    2825 if { (eval echo configure:2826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3037if { (eval echo configure:3038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    28263038then
    28273039  ac_cv_func_vfork_works=yes
     
    28553067do
    28563068echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2857 echo "configure:2858: checking for $ac_func" >&5
     3069echo "configure:3070: checking for $ac_func" >&5
    28583070if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    28593071  echo $ac_n "(cached) $ac_c" 1>&6
    28603072else
    28613073  cat > conftest.$ac_ext <<EOF
    2862 #line 2863 "configure"
     3074#line 3075 "configure"
    28633075#include "confdefs.h"
    28643076/* System header to define __stub macros and hopefully few prototypes,
     
    28833095; return 0; }
    28843096EOF
    2885 if { (eval echo configure:2886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3097if { (eval echo configure:3098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    28863098  rm -rf conftest*
    28873099  eval "ac_cv_func_$ac_func=yes"
     
    29133125do
    29143126echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2915 echo "configure:2916: checking for $ac_func" >&5
     3127echo "configure:3128: checking for $ac_func" >&5
    29163128if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    29173129  echo $ac_n "(cached) $ac_c" 1>&6
    29183130else
    29193131  cat > conftest.$ac_ext <<EOF
    2920 #line 2921 "configure"
     3132#line 3133 "configure"
    29213133#include "confdefs.h"
    29223134/* System header to define __stub macros and hopefully few prototypes,
     
    29413153; return 0; }
    29423154EOF
    2943 if { (eval echo configure:2944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3155if { (eval echo configure:3156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    29443156  rm -rf conftest*
    29453157  eval "ac_cv_func_$ac_func=yes"
     
    29693181  for v in $vars; do
    29703182    echo $ac_n "checking for $v""... $ac_c" 1>&6
    2971 echo "configure:2972: checking for $v" >&5
     3183echo "configure:3184: checking for $v" >&5
    29723184    if eval "test \"`echo '$''{'libiberty_cv_var_$v'+set}'`\" = set"; then
    29733185  echo $ac_n "(cached) $ac_c" 1>&6
    29743186else
    29753187  cat > conftest.$ac_ext <<EOF
    2976 #line 2977 "configure"
     3188#line 3189 "configure"
    29773189#include "confdefs.h"
    29783190int *p;
     
    29813193; return 0; }
    29823194EOF
    2983 if { (eval echo configure:2984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3195if { (eval echo configure:3196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    29843196  rm -rf conftest*
    29853197  eval "libiberty_cv_var_$v=yes"
     
    30043216    fi
    30053217  done
     3218
     3219  # special check for _system_configuration because AIX <4.3.2 do not
     3220  # contain the `physmem' member.
     3221  echo $ac_n "checking for external symbol _system_configuration""... $ac_c" 1>&6
     3222echo "configure:3223: checking for external symbol _system_configuration" >&5
     3223  cat > conftest.$ac_ext <<EOF
     3224#line 3225 "configure"
     3225#include "confdefs.h"
     3226#include <sys/systemcfg.h>
     3227int main() {
     3228double x = _system_configuration.physmem;
     3229; return 0; }
     3230EOF
     3231if { (eval echo configure:3232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3232  rm -rf conftest*
     3233  echo "$ac_t""yes" 1>&6
     3234    cat >> confdefs.h <<\EOF
     3235#define HAVE__SYSTEM_CONFIGURATION 1
     3236EOF
     3237
     3238else
     3239  echo "configure: failed program was:" >&5
     3240  cat conftest.$ac_ext >&5
     3241  rm -rf conftest*
     3242  echo "$ac_t""no" 1>&6
     3243fi
     3244rm -f conftest*
     3245
     3246  echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6
     3247echo "configure:3248: checking whether canonicalize_file_name must be declared" >&5
     3248if eval "test \"`echo '$''{'libiberty_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then
     3249  echo $ac_n "(cached) $ac_c" 1>&6
     3250else
     3251  cat > conftest.$ac_ext <<EOF
     3252#line 3253 "configure"
     3253#include "confdefs.h"
     3254
     3255#include "confdefs.h"
     3256#include <stdio.h>
     3257#ifdef HAVE_STRING_H
     3258#include <string.h>
     3259#else
     3260#ifdef HAVE_STRINGS_H
     3261#include <strings.h>
     3262#endif
     3263#endif
     3264#ifdef HAVE_STDLIB_H
     3265#include <stdlib.h>
     3266#endif
     3267#ifdef HAVE_UNISTD_H
     3268#include <unistd.h>
     3269#endif
     3270int main() {
     3271char *(*pfn) = (char *(*)) canonicalize_file_name
     3272; return 0; }
     3273EOF
     3274if { (eval echo configure:3275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3275  rm -rf conftest*
     3276  libiberty_cv_decl_needed_canonicalize_file_name=no
     3277else
     3278  echo "configure: failed program was:" >&5
     3279  cat conftest.$ac_ext >&5
     3280  rm -rf conftest*
     3281  libiberty_cv_decl_needed_canonicalize_file_name=yes
     3282fi
     3283rm -f conftest*
     3284fi
     3285
     3286echo "$ac_t""$libiberty_cv_decl_needed_canonicalize_file_name" 1>&6
     3287if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
     3288  cat >> confdefs.h <<\EOF
     3289#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
     3290EOF
     3291
     3292fi
     3293
    30063294  for ac_func in $checkfuncs
    30073295do
    30083296echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    3009 echo "configure:3010: checking for $ac_func" >&5
     3297echo "configure:3298: checking for $ac_func" >&5
    30103298if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    30113299  echo $ac_n "(cached) $ac_c" 1>&6
    30123300else
    30133301  cat > conftest.$ac_ext <<EOF
    3014 #line 3015 "configure"
     3302#line 3303 "configure"
    30153303#include "confdefs.h"
    30163304/* System header to define __stub macros and hopefully few prototypes,
     
    30353323; return 0; }
    30363324EOF
    3037 if { (eval echo configure:3038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3325if { (eval echo configure:3326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    30383326  rm -rf conftest*
    30393327  eval "ac_cv_func_$ac_func=yes"
     
    30653353ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    30663354echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    3067 echo "configure:3068: checking for $ac_hdr" >&5
     3355echo "configure:3356: checking for $ac_hdr" >&5
    30683356if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    30693357  echo $ac_n "(cached) $ac_c" 1>&6
     
    30713359  cat > conftest.$ac_ext <<EOF
    30723360#include <sys/types.h>
    3073 #line 3074 "configure"
     3361#line 3362 "configure"
    30743362#include "confdefs.h"
    30753363#include <$ac_hdr>
    30763364EOF
    30773365ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    3078 { (eval echo configure:3079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     3366{ (eval echo configure:3367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    30793367ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    30803368if test -z "$ac_err"; then
     
    31053393do
    31063394echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    3107 echo "configure:3108: checking for $ac_func" >&5
     3395echo "configure:3396: checking for $ac_func" >&5
    31083396if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    31093397  echo $ac_n "(cached) $ac_c" 1>&6
    31103398else
    31113399  cat > conftest.$ac_ext <<EOF
    3112 #line 3113 "configure"
     3400#line 3401 "configure"
    31133401#include "confdefs.h"
    31143402/* System header to define __stub macros and hopefully few prototypes,
     
    31333421; return 0; }
    31343422EOF
    3135 if { (eval echo configure:3136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3423if { (eval echo configure:3424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    31363424  rm -rf conftest*
    31373425  eval "ac_cv_func_$ac_func=yes"
     
    31583446
    31593447echo $ac_n "checking for working mmap""... $ac_c" 1>&6
    3160 echo "configure:3161: checking for working mmap" >&5
     3448echo "configure:3449: checking for working mmap" >&5
    31613449if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
    31623450  echo $ac_n "(cached) $ac_c" 1>&6
     
    31663454else
    31673455  cat > conftest.$ac_ext <<EOF
    3168 #line 3169 "configure"
     3456#line 3457 "configure"
    31693457#include "confdefs.h"
    31703458
     
    33063594
    33073595EOF
    3308 if { (eval echo configure:3309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3596if { (eval echo configure:3597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    33093597then
    33103598  ac_cv_func_mmap_fixed_mapped=yes
     
    33303618
    33313619echo $ac_n "checking for working strncmp""... $ac_c" 1>&6
    3332 echo "configure:3333: checking for working strncmp" >&5
     3620echo "configure:3621: checking for working strncmp" >&5
    33333621if eval "test \"`echo '$''{'ac_cv_func_strncmp_works'+set}'`\" = set"; then
    33343622  echo $ac_n "(cached) $ac_c" 1>&6
     
    33383626else
    33393627  cat > conftest.$ac_ext <<EOF
    3340 #line 3341 "configure"
     3628#line 3629 "configure"
    33413629#include "confdefs.h"
    33423630
     
    34023690
    34033691EOF
    3404 if { (eval echo configure:3405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3692if { (eval echo configure:3693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    34053693then
    34063694  ac_cv_func_strncmp_works=yes
     
    35943882s%@CC@%$CC%g
    35953883s%@ac_libiberty_warn_cflags@%$ac_libiberty_warn_cflags%g
     3884s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
     3885s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
    35963886s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
    35973887s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
     
    36013891s%@CPP@%$CPP%g
    36023892s%@CHECK@%$CHECK%g
     3893s%@target_header_dir@%$target_header_dir%g
    36033894s%@LIBOBJS@%$LIBOBJS%g
    36043895s%@INSTALL_DEST@%$INSTALL_DEST%g
     
    38194110target=${target}
    38204111with_target_subdir=${with_target_subdir}
     4112with_build_subdir=${with_build_subdir}
    38214113with_multisubdir=${with_multisubdir}
    38224114ac_configure_args="--enable-multilib ${ac_configure_args}"
    38234115CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
     4116ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
    38244117libiberty_topdir=${libiberty_topdir}
    38254118
     
    38284121test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
    38294122if test -n "$CONFIG_FILES"; then
    3830   if test -n "${with_target_subdir}"; then
     4123  if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
    38314124    # FIXME: We shouldn't need to set ac_file
    38324125    ac_file=Makefile
Note: See TracChangeset for help on using the changeset viewer.