xrealloc patch

Richard Henderson rth@cygnus.com
Thu Jan 21 21:16:00 GMT 1999


StunOS doesn't handle realloc(NULL,foo) properly.  Fix up
xrealloc to hide us from this losage.


r~

	* cccp.c (xrealloc): Call malloc given a NULL old pointer.
	* collect2.c, cppalloc.c, gcc.c, genattr.c, genattrtab.c: Likewise.
	* gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise.
	* genflags.c, genopinit.c, genoutput.c, genpeep.c: Likewise.
	* genrecog.c, mips-tfile.c, protoize.c: Likewise.

Index: cccp.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cccp.c,v
retrieving revision 1.55
diff -c -p -d -r1.55 cccp.c
*** cccp.c	1999/01/16 22:45:46	1.55
--- cccp.c	1999/01/22 01:41:49
*************** xrealloc (old, size)
*** 10743,10749 ****
    PTR old;
    size_t size;
  {
!   register PTR ptr = (PTR) realloc (old, size);
    if (!ptr)
      memory_full ();
    return ptr;
--- 10743,10753 ----
    PTR old;
    size_t size;
  {
!   register PTR ptr;
!   if (ptr)
!     ptr = (PTR) realloc (old, size);
!   else
!     ptr = (PTR) malloc (size);
    if (!ptr)
      memory_full ();
    return ptr;
Index: collect2.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/collect2.c,v
retrieving revision 1.61
diff -c -p -d -r1.61 collect2.c
*** collect2.c	1999/01/13 10:46:41	1.61
--- collect2.c	1999/01/22 01:41:50
*************** xmalloc (size)
*** 531,544 ****
  }
  
  PTR
! xrealloc (ptr, size)
!   PTR ptr;
    size_t size;
  {
!   register PTR value = (PTR) realloc (ptr, size);
!   if (value == 0)
      fatal ("virtual memory exhausted");
!   return value;
  }
  
  int
--- 531,548 ----
  }
  
  PTR
! xrealloc (old, size)
!   PTR old;
    size_t size;
  {
!   register PTR ptr;
!   if (ptr)
!     ptr = (PTR) realloc (old, size);
!   else
!     ptr = (PTR) malloc (size);
!   if (ptr == 0)
      fatal ("virtual memory exhausted");
!   return ptr;
  }
  
  int
Index: configure
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/configure,v
retrieving revision 1.192
diff -c -p -d -r1.192 configure
*** configure	1999/01/21 16:52:44	1.192
--- configure	1999/01/22 01:41:50
***************
*** 1,7 ****
  #! /bin/sh
  
  # Guess values for system-dependent variables and create Makefiles.
! # Generated automatically using autoconf version 2.13 
  # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  #
  # This configure script is free software; the Free Software Foundation
--- 1,7 ----
  #! /bin/sh
  
  # Guess values for system-dependent variables and create Makefiles.
! # Generated automatically using autoconf version 2.12.2 
  # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  #
  # This configure script is free software; the Free Software Foundation
*************** EOF
*** 380,386 ****
      verbose=yes ;;
  
    -version | --version | --versio | --versi | --vers)
!     echo "configure generated by autoconf version 2.13"
      exit 0 ;;
  
    -with-* | --with-*)
--- 380,386 ----
      verbose=yes ;;
  
    -version | --version | --versio | --versi | --vers)
!     echo "configure generated by autoconf version 2.12.2"
      exit 0 ;;
  
    -with-* | --with-*)
*************** else
*** 1012,1019 ****
    ac_cv_prog_CC="$CC" # Let the user override the test.
  else
    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
!   ac_dummy="$PATH"
!   for ac_dir in $ac_dummy; do
      test -z "$ac_dir" && ac_dir=.
      if test -f $ac_dir/$ac_word; then
        ac_cv_prog_CC="gcc"
--- 1012,1018 ----
    ac_cv_prog_CC="$CC" # Let the user override the test.
  else
    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
!   for ac_dir in $PATH; do
      test -z "$ac_dir" && ac_dir=.
      if test -f $ac_dir/$ac_word; then
        ac_cv_prog_CC="gcc"
*************** if test -z "$CC"; then
*** 1034,1040 ****
    # Extract the first word of "cc", so it can be a program name with args.
  set dummy cc; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:1038: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 1033,1039 ----
    # Extract the first word of "cc", so it can be a program name with args.
  set dummy cc; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:1037: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
*************** else
*** 1043,1050 ****
  else
    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
    ac_prog_rejected=no
!   ac_dummy="$PATH"
!   for ac_dir in $ac_dummy; do
      test -z "$ac_dir" && ac_dir=.
      if test -f $ac_dir/$ac_word; then
        if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
--- 1042,1048 ----
  else
    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
    ac_prog_rejected=no
!   for ac_dir in $PATH; do
      test -z "$ac_dir" && ac_dir=.
      if test -f $ac_dir/$ac_word; then
        if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
*************** fi
*** 1085,1091 ****
        # Extract the first word of "cl", so it can be a program name with args.
  set dummy cl; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:1089: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 1083,1089 ----
        # Extract the first word of "cl", so it can be a program name with args.
  set dummy cl; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:1087: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
*************** else
*** 1093,1100 ****
    ac_cv_prog_CC="$CC" # Let the user override the test.
  else
    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
!   ac_dummy="$PATH"
!   for ac_dir in $ac_dummy; do
      test -z "$ac_dir" && ac_dir=.
      if test -f $ac_dir/$ac_word; then
        ac_cv_prog_CC="cl"
--- 1091,1097 ----
    ac_cv_prog_CC="$CC" # Let the user override the test.
  else
    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
!   for ac_dir in $PATH; do
      test -z "$ac_dir" && ac_dir=.
      if test -f $ac_dir/$ac_word; then
        ac_cv_prog_CC="cl"
*************** fi
*** 1117,1123 ****
  fi
  
  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
! echo "configure:1121: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  
  ac_ext=c
  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
--- 1114,1120 ----
  fi
  
  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
! echo "configure:1118: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  
  ac_ext=c
  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
*************** ac_cpp='$CPP $CPPFLAGS'
*** 1125,1139 ****
  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  cross_compiling=$ac_cv_prog_cc_cross
- 
- cat > conftest.$ac_ext << EOF
  
! #line 1132 "configure"
  #include "confdefs.h"
- 
  main(){return(0);}
  EOF
! if { (eval echo configure:1137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    ac_cv_prog_cc_works=yes
    # If we can't run a trivial program, we are probably using a cross compiler.
    if (./conftest; exit) 2>/dev/null; then
--- 1122,1134 ----
  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  cross_compiling=$ac_cv_prog_cc_cross
  
! cat > conftest.$ac_ext <<EOF
! #line 1128 "configure"
  #include "confdefs.h"
  main(){return(0);}
  EOF
! if { (eval echo configure:1132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    ac_cv_prog_cc_works=yes
    # If we can't run a trivial program, we are probably using a cross compiler.
    if (./conftest; exit) 2>/dev/null; then
*************** else
*** 1147,1170 ****
    ac_cv_prog_cc_works=no
  fi
  rm -fr conftest*
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
  
  echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  if test $ac_cv_prog_cc_works = no; then
    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  fi
  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
! echo "configure:1163: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  cross_compiling=$ac_cv_prog_cc_cross
  
  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
! echo "configure:1168: checking whether we are using GNU C" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 1142,1159 ----
    ac_cv_prog_cc_works=no
  fi
  rm -fr conftest*
  
  echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  if test $ac_cv_prog_cc_works = no; then
    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  fi
  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
! echo "configure:1152: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  cross_compiling=$ac_cv_prog_cc_cross
  
  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
! echo "configure:1157: checking whether we are using GNU C" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
*************** else
*** 1173,1179 ****
    yes;
  #endif
  EOF
! if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    ac_cv_prog_gcc=yes
  else
    ac_cv_prog_gcc=no
--- 1162,1168 ----
    yes;
  #endif
  EOF
! if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    ac_cv_prog_gcc=yes
  else
    ac_cv_prog_gcc=no
*************** ac_test_CFLAGS="${CFLAGS+set}"
*** 1192,1198 ****
  ac_save_CFLAGS="$CFLAGS"
  CFLAGS=
  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
! echo "configure:1196: checking whether ${CC-cc} accepts -g" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 1181,1187 ----
  ac_save_CFLAGS="$CFLAGS"
  CFLAGS=
  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
! echo "configure:1185: checking whether ${CC-cc} accepts -g" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
*************** fi
*** 1235,1241 ****
  
  
  echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
! echo "configure:1239: checking whether ${MAKE-make} sets \${MAKE}" >&5
  set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 1224,1230 ----
  
  
  echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
! echo "configure:1228: checking whether ${MAKE-make} sets \${MAKE}" >&5
  set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
*************** fi
*** 1263,1269 ****
  
  
  echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
! echo "configure:1267: checking whether a default assembler was specified" >&5
  if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
      if test x"$with_gas" = x"no"; then
      	echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
--- 1252,1258 ----
  
  
  echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
! echo "configure:1256: checking whether a default assembler was specified" >&5
  if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
      if test x"$with_gas" = x"no"; then
      	echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
*************** else
*** 1275,1281 ****
  fi
  
  echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
! echo "configure:1279: checking whether a default linker was specified" >&5
  if test x"${DEFAULT_LINKER+set}" = x"set"; then
      if test x"$with_gnu_ld" = x"no"; then
  	echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
--- 1264,1270 ----
  fi
  
  echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
! echo "configure:1268: checking whether a default linker was specified" >&5
  if test x"${DEFAULT_LINKER+set}" = x"set"; then
      if test x"$with_gnu_ld" = x"no"; then
  	echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
*************** do
*** 1292,1298 ****
  # Extract the first word of "$ac_prog", so it can be a program name with args.
  set dummy $ac_prog; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:1296: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 1281,1287 ----
  # Extract the first word of "$ac_prog", so it can be a program name with args.
  set dummy $ac_prog; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:1285: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
*************** else
*** 1300,1307 ****
    ac_cv_prog_AWK="$AWK" # Let the user override the test.
  else
    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
!   ac_dummy="$PATH"
!   for ac_dir in $ac_dummy; do
      test -z "$ac_dir" && ac_dir=.
      if test -f $ac_dir/$ac_word; then
        ac_cv_prog_AWK="$ac_prog"
--- 1289,1295 ----
    ac_cv_prog_AWK="$AWK" # Let the user override the test.
  else
    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
!   for ac_dir in $PATH; do
      test -z "$ac_dir" && ac_dir=.
      if test -f $ac_dir/$ac_word; then
        ac_cv_prog_AWK="$ac_prog"
*************** done
*** 1324,1330 ****
  # Extract the first word of "flex", so it can be a program name with args.
  set dummy flex; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:1328: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 1312,1318 ----
  # Extract the first word of "flex", so it can be a program name with args.
  set dummy flex; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:1316: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
*************** else
*** 1332,1339 ****
    ac_cv_prog_LEX="$LEX" # Let the user override the test.
  else
    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
!   ac_dummy="$PATH"
!   for ac_dir in $ac_dummy; do
      test -z "$ac_dir" && ac_dir=.
      if test -f $ac_dir/$ac_word; then
        ac_cv_prog_LEX="flex"
--- 1320,1326 ----
    ac_cv_prog_LEX="$LEX" # Let the user override the test.
  else
    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
!   for ac_dir in $PATH; do
      test -z "$ac_dir" && ac_dir=.
      if test -f $ac_dir/$ac_word; then
        ac_cv_prog_LEX="flex"
*************** then
*** 1358,1364 ****
    *) ac_lib=l ;;
    esac
    echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
! echo "configure:1362: checking for yywrap in -l$ac_lib" >&5
  ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 1345,1351 ----
    *) ac_lib=l ;;
    esac
    echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
! echo "configure:1349: checking for yywrap in -l$ac_lib" >&5
  ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
*************** else
*** 1366,1372 ****
    ac_save_LIBS="$LIBS"
  LIBS="-l$ac_lib  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 1370 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
--- 1353,1359 ----
    ac_save_LIBS="$LIBS"
  LIBS="-l$ac_lib  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 1357 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
*************** int main() {
*** 1377,1383 ****
  yywrap()
  ; return 0; }
  EOF
! if { (eval echo configure:1381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
--- 1364,1370 ----
  yywrap()
  ; return 0; }
  EOF
! if { (eval echo configure:1368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
*************** fi
*** 1400,1406 ****
  fi
  
  echo $ac_n "checking whether ln works""... $ac_c" 1>&6
! echo "configure:1404: checking whether ln works" >&5
  if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 1387,1393 ----
  fi
  
  echo $ac_n "checking whether ln works""... $ac_c" 1>&6
! echo "configure:1391: checking whether ln works" >&5
  if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
*************** else
*** 1432,1438 ****
  fi
  
  echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
! echo "configure:1436: checking whether ln -s works" >&5
  if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 1419,1425 ----
  fi
  
  echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
! echo "configure:1423: checking whether ln -s works" >&5
  if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
*************** else
*** 1464,1482 ****
  fi
  
  echo $ac_n "checking for volatile""... $ac_c" 1>&6
! echo "configure:1468: checking for volatile" >&5
  if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1473 "configure"
  #include "confdefs.h"
  
  int main() {
  volatile int foo;
  ; return 0; }
  EOF
! if { (eval echo configure:1480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    gcc_cv_c_volatile=yes
  else
--- 1451,1469 ----
  fi
  
  echo $ac_n "checking for volatile""... $ac_c" 1>&6
! echo "configure:1455: checking for volatile" >&5
  if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1460 "configure"
  #include "confdefs.h"
  
  int main() {
  volatile int foo;
  ; return 0; }
  EOF
! if { (eval echo configure:1467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    gcc_cv_c_volatile=yes
  else
*************** fi
*** 1499,1505 ****
  # Extract the first word of "ranlib", so it can be a program name with args.
  set dummy ranlib; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:1503: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 1486,1492 ----
  # Extract the first word of "ranlib", so it can be a program name with args.
  set dummy ranlib; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:1490: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
*************** else
*** 1507,1514 ****
    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  else
    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
!   ac_dummy="$PATH"
!   for ac_dir in $ac_dummy; do
      test -z "$ac_dir" && ac_dir=.
      if test -f $ac_dir/$ac_word; then
        ac_cv_prog_RANLIB="ranlib"
--- 1494,1500 ----
    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  else
    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
!   for ac_dir in $PATH; do
      test -z "$ac_dir" && ac_dir=.
      if test -f $ac_dir/$ac_word; then
        ac_cv_prog_RANLIB="ranlib"
*************** do
*** 1531,1537 ****
  # Extract the first word of "$ac_prog", so it can be a program name with args.
  set dummy $ac_prog; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:1535: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 1517,1523 ----
  # Extract the first word of "$ac_prog", so it can be a program name with args.
  set dummy $ac_prog; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:1521: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
*************** else
*** 1539,1546 ****
    ac_cv_prog_YACC="$YACC" # Let the user override the test.
  else
    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
!   ac_dummy="$PATH"
!   for ac_dir in $ac_dummy; do
      test -z "$ac_dir" && ac_dir=.
      if test -f $ac_dir/$ac_word; then
        ac_cv_prog_YACC="$ac_prog"
--- 1525,1531 ----
    ac_cv_prog_YACC="$YACC" # Let the user override the test.
  else
    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
!   for ac_dir in $PATH; do
      test -z "$ac_dir" && ac_dir=.
      if test -f $ac_dir/$ac_word; then
        ac_cv_prog_YACC="$ac_prog"
*************** test -n "$YACC" || YACC="yacc"
*** 1572,1578 ****
  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  # ./install, which can be erroneously created by make from ./install.sh.
  echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
! echo "configure:1576: checking for a BSD compatible install" >&5
  if test -z "$INSTALL"; then
  if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 1557,1563 ----
  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  # ./install, which can be erroneously created by make from ./install.sh.
  echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
! echo "configure:1561: checking for a BSD compatible install" >&5
  if test -z "$INSTALL"; then
  if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
*************** test -z "$INSTALL_DATA" && INSTALL_DATA=
*** 1623,1629 ****
  
  
  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
! echo "configure:1627: checking how to run the C preprocessor" >&5
  # On Suns, sometimes $CPP names a directory.
  if test -n "$CPP" && test -d "$CPP"; then
    CPP=
--- 1608,1614 ----
  
  
  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
! echo "configure:1612: checking how to run the C preprocessor" >&5
  # On Suns, sometimes $CPP names a directory.
  if test -n "$CPP" && test -d "$CPP"; then
    CPP=
*************** else
*** 1638,1650 ****
    # On the NeXT, cc -E runs the code through the compiler's parser,
    # not just through cpp.
    cat > conftest.$ac_ext <<EOF
! #line 1642 "configure"
  #include "confdefs.h"
  #include <assert.h>
  Syntax Error
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  if test -z "$ac_err"; then
    :
--- 1623,1635 ----
    # On the NeXT, cc -E runs the code through the compiler's parser,
    # not just through cpp.
    cat > conftest.$ac_ext <<EOF
! #line 1627 "configure"
  #include "confdefs.h"
  #include <assert.h>
  Syntax Error
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  if test -z "$ac_err"; then
    :
*************** else
*** 1655,1667 ****
    rm -rf conftest*
    CPP="${CC-cc} -E -traditional-cpp"
    cat > conftest.$ac_ext <<EOF
! #line 1659 "configure"
  #include "confdefs.h"
  #include <assert.h>
  Syntax Error
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  if test -z "$ac_err"; then
    :
--- 1640,1652 ----
    rm -rf conftest*
    CPP="${CC-cc} -E -traditional-cpp"
    cat > conftest.$ac_ext <<EOF
! #line 1644 "configure"
  #include "confdefs.h"
  #include <assert.h>
  Syntax Error
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  if test -z "$ac_err"; then
    :
*************** else
*** 1672,1684 ****
    rm -rf conftest*
    CPP="${CC-cc} -nologo -E"
    cat > conftest.$ac_ext <<EOF
! #line 1676 "configure"
  #include "confdefs.h"
  #include <assert.h>
  Syntax Error
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  if test -z "$ac_err"; then
    :
--- 1657,1669 ----
    rm -rf conftest*
    CPP="${CC-cc} -nologo -E"
    cat > conftest.$ac_ext <<EOF
! #line 1661 "configure"
  #include "confdefs.h"
  #include <assert.h>
  Syntax Error
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  if test -z "$ac_err"; then
    :
*************** fi
*** 1703,1714 ****
  echo "$ac_t""$CPP" 1>&6
  
  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
! echo "configure:1707: checking for ANSI C header files" >&5
  if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1712 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  #include <stdarg.h>
--- 1688,1699 ----
  echo "$ac_t""$CPP" 1>&6
  
  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
! echo "configure:1692: checking for ANSI C header files" >&5
  if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1697 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  #include <stdarg.h>
*************** else
*** 1716,1722 ****
  #include <float.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  if test -z "$ac_err"; then
    rm -rf conftest*
--- 1701,1707 ----
  #include <float.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  if test -z "$ac_err"; then
    rm -rf conftest*
*************** rm -f conftest*
*** 1733,1739 ****
  if test $ac_cv_header_stdc = yes; then
    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat > conftest.$ac_ext <<EOF
! #line 1737 "configure"
  #include "confdefs.h"
  #include <string.h>
  EOF
--- 1718,1724 ----
  if test $ac_cv_header_stdc = yes; then
    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat > conftest.$ac_ext <<EOF
! #line 1722 "configure"
  #include "confdefs.h"
  #include <string.h>
  EOF
*************** fi
*** 1751,1757 ****
  if test $ac_cv_header_stdc = yes; then
    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat > conftest.$ac_ext <<EOF
! #line 1755 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  EOF
--- 1736,1742 ----
  if test $ac_cv_header_stdc = yes; then
    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat > conftest.$ac_ext <<EOF
! #line 1740 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  EOF
*************** if test "$cross_compiling" = yes; then
*** 1772,1778 ****
    :
  else
    cat > conftest.$ac_ext <<EOF
! #line 1776 "configure"
  #include "confdefs.h"
  #include <ctype.h>
  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
--- 1757,1763 ----
    :
  else
    cat > conftest.$ac_ext <<EOF
! #line 1761 "configure"
  #include "confdefs.h"
  #include <ctype.h>
  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
*************** if (XOR (islower (i), ISLOWER (i)) || to
*** 1783,1789 ****
  exit (0); }
  
  EOF
! if { (eval echo configure:1787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
    :
  else
--- 1768,1774 ----
  exit (0); }
  
  EOF
! if { (eval echo configure:1772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
    :
  else
*************** EOF
*** 1807,1818 ****
  fi
  
  echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
! echo "configure:1811: checking whether time.h and sys/time.h may both be included" >&5
  if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1816 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <sys/time.h>
--- 1792,1803 ----
  fi
  
  echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
! echo "configure:1796: checking whether time.h and sys/time.h may both be included" >&5
  if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1801 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <sys/time.h>
*************** int main() {
*** 1821,1827 ****
  struct tm *tp;
  ; return 0; }
  EOF
! if { (eval echo configure:1825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_header_time=yes
  else
--- 1806,1812 ----
  struct tm *tp;
  ; return 0; }
  EOF
! if { (eval echo configure:1810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_header_time=yes
  else
*************** EOF
*** 1842,1853 ****
  fi
  
  echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
! echo "configure:1846: checking whether string.h and strings.h may both be included" >&5
  if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1851 "configure"
  #include "confdefs.h"
  #include <string.h>
  #include <strings.h>
--- 1827,1838 ----
  fi
  
  echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
! echo "configure:1831: checking whether string.h and strings.h may both be included" >&5
  if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1836 "configure"
  #include "confdefs.h"
  #include <string.h>
  #include <strings.h>
*************** int main() {
*** 1855,1861 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:1859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    gcc_cv_header_string=yes
  else
--- 1840,1846 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:1844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    gcc_cv_header_string=yes
  else
*************** EOF
*** 1876,1887 ****
  fi
  
  echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
! echo "configure:1880: checking for sys/wait.h that is POSIX.1 compatible" >&5
  if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1885 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <sys/wait.h>
--- 1861,1872 ----
  fi
  
  echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
! echo "configure:1865: checking for sys/wait.h that is POSIX.1 compatible" >&5
  if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1870 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <sys/wait.h>
*************** wait (&s);
*** 1897,1903 ****
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  ; return 0; }
  EOF
! if { (eval echo configure:1901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_header_sys_wait_h=yes
  else
--- 1882,1888 ----
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  ; return 0; }
  EOF
! if { (eval echo configure:1886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_header_sys_wait_h=yes
  else
*************** for ac_hdr in limits.h stddef.h string.h
*** 1921,1937 ****
  do
  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! echo "configure:1925: checking for $ac_hdr" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1930 "configure"
  #include "confdefs.h"
  #include <$ac_hdr>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  if test -z "$ac_err"; then
    rm -rf conftest*
--- 1906,1922 ----
  do
  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! echo "configure:1910: checking for $ac_hdr" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1915 "configure"
  #include "confdefs.h"
  #include <$ac_hdr>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  if test -z "$ac_err"; then
    rm -rf conftest*
*************** done
*** 1961,1977 ****
  # Check for thread headers.
  ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for thread.h""... $ac_c" 1>&6
! echo "configure:1965: checking for thread.h" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1970 "configure"
  #include "confdefs.h"
  #include <thread.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  if test -z "$ac_err"; then
    rm -rf conftest*
--- 1946,1962 ----
  # Check for thread headers.
  ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for thread.h""... $ac_c" 1>&6
! echo "configure:1950: checking for thread.h" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1955 "configure"
  #include "confdefs.h"
  #include <thread.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  if test -z "$ac_err"; then
    rm -rf conftest*
*************** fi
*** 1995,2011 ****
  
  ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
! echo "configure:1999: checking for pthread.h" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2004 "configure"
  #include "confdefs.h"
  #include <pthread.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  if test -z "$ac_err"; then
    rm -rf conftest*
--- 1980,1996 ----
  
  ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
! echo "configure:1984: checking for pthread.h" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1989 "configure"
  #include "confdefs.h"
  #include <pthread.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  if test -z "$ac_err"; then
    rm -rf conftest*
*************** fi
*** 2032,2038 ****
  # Extract the first word of "gnatbind", so it can be a program name with args.
  set dummy gnatbind; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:2036: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 2017,2023 ----
  # Extract the first word of "gnatbind", so it can be a program name with args.
  set dummy gnatbind; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:2021: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
*************** else
*** 2040,2047 ****
    ac_cv_prog_gnat="$gnat" # Let the user override the test.
  else
    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
!   ac_dummy="$PATH"
!   for ac_dir in $ac_dummy; do
      test -z "$ac_dir" && ac_dir=.
      if test -f $ac_dir/$ac_word; then
        ac_cv_prog_gnat="yes"
--- 2025,2031 ----
    ac_cv_prog_gnat="$gnat" # Let the user override the test.
  else
    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
!   for ac_dir in $PATH; do
      test -z "$ac_dir" && ac_dir=.
      if test -f $ac_dir/$ac_word; then
        ac_cv_prog_gnat="yes"
*************** fi
*** 2063,2074 ****
  # See if the system preprocessor understands the ANSI C preprocessor
  # stringification operator.
  echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
! echo "configure:2067: checking whether cpp understands the stringify operator" >&5
  if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2072 "configure"
  #include "confdefs.h"
  
  int main() {
--- 2047,2058 ----
  # See if the system preprocessor understands the ANSI C preprocessor
  # stringification operator.
  echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
! echo "configure:2051: checking whether cpp understands the stringify operator" >&5
  if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2056 "configure"
  #include "confdefs.h"
  
  int main() {
*************** int main() {
*** 2076,2082 ****
  char *test = S(foo);
  ; return 0; }
  EOF
! if { (eval echo configure:2080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    gcc_cv_c_have_stringify=yes
  else
--- 2060,2066 ----
  char *test = S(foo);
  ; return 0; }
  EOF
! if { (eval echo configure:2064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    gcc_cv_c_have_stringify=yes
  else
*************** fi
*** 2099,2110 ****
  # Use <inttypes.h> only if it exists,
  # doesn't clash with <sys/types.h>, and declares intmax_t.
  echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
! echo "configure:2103: checking for inttypes.h" >&5
  if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2108 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <inttypes.h>
--- 2083,2094 ----
  # Use <inttypes.h> only if it exists,
  # doesn't clash with <sys/types.h>, and declares intmax_t.
  echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
! echo "configure:2087: checking for inttypes.h" >&5
  if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2092 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <inttypes.h>
*************** int main() {
*** 2112,2118 ****
  intmax_t i = -1;
  ; return 0; }
  EOF
! if { (eval echo configure:2116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    gcc_cv_header_inttypes_h=yes
  else
--- 2096,2102 ----
  intmax_t i = -1;
  ; return 0; }
  EOF
! if { (eval echo configure:2100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    gcc_cv_header_inttypes_h=yes
  else
*************** for ac_func in strtoul bsearch strerror 
*** 2138,2149 ****
  	fputs_unlocked
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:2142: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2147 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
--- 2122,2133 ----
  	fputs_unlocked
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:2126: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2131 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
*************** $ac_func();
*** 2166,2172 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:2170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
--- 2150,2156 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:2154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
*************** done
*** 2195,2206 ****
  #AC_CHECK_TYPE(wchar_t, unsigned int)
  
  echo $ac_n "checking for vprintf""... $ac_c" 1>&6
! echo "configure:2199: checking for vprintf" >&5
  if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2204 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char vprintf(); below.  */
--- 2179,2190 ----
  #AC_CHECK_TYPE(wchar_t, unsigned int)
  
  echo $ac_n "checking for vprintf""... $ac_c" 1>&6
! echo "configure:2183: checking for vprintf" >&5
  if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2188 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char vprintf(); below.  */
*************** vprintf();
*** 2223,2229 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:2227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    eval "ac_cv_func_vprintf=yes"
  else
--- 2207,2213 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:2211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    eval "ac_cv_func_vprintf=yes"
  else
*************** fi
*** 2247,2258 ****
  
  if test "$ac_cv_func_vprintf" != yes; then
  echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
! echo "configure:2251: checking for _doprnt" >&5
  if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2256 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char _doprnt(); below.  */
--- 2231,2242 ----
  
  if test "$ac_cv_func_vprintf" != yes; then
  echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
! echo "configure:2235: checking for _doprnt" >&5
  if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2240 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char _doprnt(); below.  */
*************** _doprnt();
*** 2275,2281 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:2279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    eval "ac_cv_func__doprnt=yes"
  else
--- 2259,2265 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:2263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    eval "ac_cv_func__doprnt=yes"
  else
*************** fi
*** 2311,2317 ****
  
  
  echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
! echo "configure:2315: checking whether the printf functions support %p" >&5
  if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 2295,2301 ----
  
  
  echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
! echo "configure:2299: checking whether the printf functions support %p" >&5
  if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
*************** else
*** 2319,2325 ****
    gcc_cv_func_printf_ptr=no
  else
    cat > conftest.$ac_ext <<EOF
! #line 2323 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  
--- 2303,2309 ----
    gcc_cv_func_printf_ptr=no
  else
    cat > conftest.$ac_ext <<EOF
! #line 2307 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  
*************** main()
*** 2332,2338 ****
    exit (p != q);
  }
  EOF
! if { (eval echo configure:2336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
    gcc_cv_func_printf_ptr=yes
  else
--- 2316,2322 ----
    exit (p != q);
  }
  EOF
! if { (eval echo configure:2320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
    gcc_cv_func_printf_ptr=yes
  else
*************** EOF
*** 2356,2367 ****
  fi
  
  echo $ac_n "checking for pid_t""... $ac_c" 1>&6
! echo "configure:2360: checking for pid_t" >&5
  if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2365 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #if STDC_HEADERS
--- 2340,2351 ----
  fi
  
  echo $ac_n "checking for pid_t""... $ac_c" 1>&6
! echo "configure:2344: checking for pid_t" >&5
  if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2349 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #if STDC_HEADERS
*************** else
*** 2370,2376 ****
  #endif
  EOF
  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
!   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
    rm -rf conftest*
    ac_cv_type_pid_t=yes
  else
--- 2354,2360 ----
  #endif
  EOF
  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
!   egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
    rm -rf conftest*
    ac_cv_type_pid_t=yes
  else
*************** fi
*** 2390,2406 ****
  
  ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
! echo "configure:2394: checking for vfork.h" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2399 "configure"
  #include "confdefs.h"
  #include <vfork.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  if test -z "$ac_err"; then
    rm -rf conftest*
--- 2374,2390 ----
  
  ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
! echo "configure:2378: checking for vfork.h" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2383 "configure"
  #include "confdefs.h"
  #include <vfork.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  if test -z "$ac_err"; then
    rm -rf conftest*
*************** else
*** 2425,2442 ****
  fi
  
  echo $ac_n "checking for working vfork""... $ac_c" 1>&6
! echo "configure:2429: checking for working vfork" >&5
  if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    if test "$cross_compiling" = yes; then
    echo $ac_n "checking for vfork""... $ac_c" 1>&6
! echo "configure:2435: checking for vfork" >&5
  if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2440 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char vfork(); below.  */
--- 2409,2426 ----
  fi
  
  echo $ac_n "checking for working vfork""... $ac_c" 1>&6
! echo "configure:2413: checking for working vfork" >&5
  if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    if test "$cross_compiling" = yes; then
    echo $ac_n "checking for vfork""... $ac_c" 1>&6
! echo "configure:2419: checking for vfork" >&5
  if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2424 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char vfork(); below.  */
*************** vfork();
*** 2459,2465 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:2463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    eval "ac_cv_func_vfork=yes"
  else
--- 2443,2449 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:2447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    eval "ac_cv_func_vfork=yes"
  else
*************** fi
*** 2481,2487 ****
  ac_cv_func_vfork_works=$ac_cv_func_vfork
  else
    cat > conftest.$ac_ext <<EOF
! #line 2485 "configure"
  #include "confdefs.h"
  /* Thanks to Paul Eggert for this test.  */
  #include <stdio.h>
--- 2465,2471 ----
  ac_cv_func_vfork_works=$ac_cv_func_vfork
  else
    cat > conftest.$ac_ext <<EOF
! #line 2469 "configure"
  #include "confdefs.h"
  /* Thanks to Paul Eggert for this test.  */
  #include <stdio.h>
*************** main() {
*** 2576,2582 ****
    }
  }
  EOF
! if { (eval echo configure:2580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
    ac_cv_func_vfork_works=yes
  else
--- 2560,2566 ----
    }
  }
  EOF
! if { (eval echo configure:2564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
    ac_cv_func_vfork_works=yes
  else
*************** for ac_func in malloc realloc calloc fre
*** 2604,2615 ****
  	strsignal
  do
  echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
! echo "configure:2608: checking whether $ac_func must be declared" >&5
  if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2613 "configure"
  #include "confdefs.h"
  
  #include <stdio.h>
--- 2588,2599 ----
  	strsignal
  do
  echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
! echo "configure:2592: checking whether $ac_func must be declared" >&5
  if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2597 "configure"
  #include "confdefs.h"
  
  #include <stdio.h>
*************** int main() {
*** 2642,2648 ****
  char *(*pfn) = (char *(*)) $ac_func
  ; return 0; }
  EOF
! if { (eval echo configure:2646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    eval "gcc_cv_decl_needed_$ac_func=no"
  else
--- 2626,2632 ----
  char *(*pfn) = (char *(*)) $ac_func
  ; return 0; }
  EOF
! if { (eval echo configure:2630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    eval "gcc_cv_decl_needed_$ac_func=no"
  else
*************** done
*** 2671,2682 ****
  for ac_func in getrlimit setrlimit
  do
  echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
! echo "configure:2675: checking whether $ac_func must be declared" >&5
  if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2680 "configure"
  #include "confdefs.h"
  
  #include <stdio.h>
--- 2655,2666 ----
  for ac_func in getrlimit setrlimit
  do
  echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
! echo "configure:2659: checking whether $ac_func must be declared" >&5
  if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2664 "configure"
  #include "confdefs.h"
  
  #include <stdio.h>
*************** int main() {
*** 2713,2719 ****
  char *(*pfn) = (char *(*)) $ac_func
  ; return 0; }
  EOF
! if { (eval echo configure:2717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    eval "gcc_cv_decl_needed_$ac_func=no"
  else
--- 2697,2703 ----
  char *(*pfn) = (char *(*)) $ac_func
  ; return 0; }
  EOF
! if { (eval echo configure:2701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    eval "gcc_cv_decl_needed_$ac_func=no"
  else
*************** done
*** 2740,2751 ****
  
  
  echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
! echo "configure:2744: checking for sys_siglist declaration in signal.h or unistd.h" >&5
  if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2749 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <signal.h>
--- 2724,2735 ----
  
  
  echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
! echo "configure:2728: checking for sys_siglist declaration in signal.h or unistd.h" >&5
  if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2733 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <signal.h>
*************** int main() {
*** 2757,2763 ****
  char *msg = *(sys_siglist + 1);
  ; return 0; }
  EOF
! if { (eval echo configure:2761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_decl_sys_siglist=yes
  else
--- 2741,2747 ----
  char *msg = *(sys_siglist + 1);
  ; return 0; }
  EOF
! if { (eval echo configure:2745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_decl_sys_siglist=yes
  else
*************** for machine in $build $host $target; do
*** 5119,5124 ****
--- 5103,5109 ----
  		;;
  	rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
  		if test "$gnu_ld" = yes
+ 		then
  			tm_file=rs6000/aix41-gld.h
  		else
  			tm_file=rs6000/aix41.h
*************** fi
*** 6011,6017 ****
  
  # Figure out what assembler alignment features are present.
  echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
! echo "configure:6015: checking assembler alignment features" >&5
  gcc_cv_as=
  gcc_cv_as_alignment_features=
  gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
--- 5996,6002 ----
  
  # Figure out what assembler alignment features are present.
  echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
! echo "configure:6000: checking assembler alignment features" >&5
  gcc_cv_as=
  gcc_cv_as_alignment_features=
  gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
*************** fi
*** 6084,6090 ****
  echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
  
  echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
! echo "configure:6088: checking assembler subsection support" >&5
  gcc_cv_as_subsections=
  if test x$gcc_cv_as != x; then
  	# Check if we have .subsection
--- 6069,6075 ----
  echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
  
  echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
! echo "configure:6073: checking assembler subsection support" >&5
  gcc_cv_as_subsections=
  if test x$gcc_cv_as != x; then
  	# Check if we have .subsection
*************** fi
*** 6356,6362 ****
  
  # Warn if using init_priority.
  echo $ac_n "checking whether to enable init_priority by default""... $ac_c" 1>&6
! echo "configure:6360: checking whether to enable init_priority by default" >&5
  if test x$enable_init_priority != xyes; then
    enable_init_priority=no
  fi
--- 6341,6347 ----
  
  # Warn if using init_priority.
  echo $ac_n "checking whether to enable init_priority by default""... $ac_c" 1>&6
! echo "configure:6345: checking whether to enable init_priority by default" >&5
  if test x$enable_init_priority != xyes; then
    enable_init_priority=no
  fi
*************** EOF
*** 6487,6493 ****
  # Ultrix sh set writes to stderr and can't be redirected directly,
  # and sets the high bit in the cache file unless we assign to the vars.
  (set) 2>&1 |
!   case `(ac_space=' '; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      # `set' does not quote correctly, so add quotes (double-quote substitution
      # turns \\\\ into \\, and sed turns \\ into \).
--- 6472,6478 ----
  # Ultrix sh set writes to stderr and can't be redirected directly,
  # and sets the high bit in the cache file unless we assign to the vars.
  (set) 2>&1 |
!   case `(ac_space=' '; set) 2>&1 | grep ac_space` in
    *ac_space=\ *)
      # `set' does not quote correctly, so add quotes (double-quote substitution
      # turns \\\\ into \\, and sed turns \\ into \).
*************** do
*** 6554,6560 ****
      echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
!     echo "$CONFIG_STATUS generated by autoconf version 2.13"
      exit 0 ;;
    -help | --help | --hel | --he | --h)
      echo "\$ac_cs_usage"; exit 0 ;;
--- 6539,6545 ----
      echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
!     echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
      exit 0 ;;
    -help | --help | --hel | --he | --h)
      echo "\$ac_cs_usage"; exit 0 ;;
*************** s%@SHELL@%$SHELL%g
*** 6577,6583 ****
  s%@CFLAGS@%$CFLAGS%g
  s%@CPPFLAGS@%$CPPFLAGS%g
  s%@CXXFLAGS@%$CXXFLAGS%g
- s%@FFLAGS@%$FFLAGS%g
  s%@DEFS@%$DEFS%g
  s%@LDFLAGS@%$LDFLAGS%g
  s%@LIBS@%$LIBS%g
--- 6562,6567 ----
Index: configure.in
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/configure.in,v
retrieving revision 1.196
diff -c -p -d -r1.196 configure.in
*** configure.in	1999/01/21 16:52:45	1.196
--- configure.in	1999/01/22 01:41:50
*************** changequote(,)dnl
*** 2864,2869 ****
--- 2864,2870 ----
  	rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
  changequote([,])dnl
  		if test "$gnu_ld" = yes
+ 		then
  			tm_file=rs6000/aix41-gld.h
  		else
  			tm_file=rs6000/aix41.h
Index: cppalloc.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cppalloc.c,v
retrieving revision 1.12
diff -c -p -d -r1.12 cppalloc.c
*** cppalloc.c	1998/12/16 20:54:32	1.12
--- cppalloc.c	1999/01/22 01:41:50
*************** xrealloc (old, size)
*** 60,66 ****
    PTR old;
    size_t size;
  {
!   register PTR ptr = (PTR) realloc (old, size);
    if (ptr == 0)
      memory_full ();
    return ptr;
--- 60,70 ----
    PTR old;
    size_t size;
  {
!   register PTR ptr;
!   if (ptr)
!     ptr = (PTR) realloc (old, size);
!   else
!     ptr = (PTR) malloc (size);
    if (ptr == 0)
      memory_full ();
    return ptr;
Index: gcc.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/gcc.c,v
retrieving revision 1.84
diff -c -p -d -r1.84 gcc.c
*** gcc.c	1999/01/16 20:53:24	1.84
--- gcc.c	1999/01/22 01:41:51
*************** xmalloc (size)
*** 5219,5232 ****
  }
  
  PTR
! xrealloc (ptr, size)
!   PTR ptr;
    size_t size;
  {
!   register PTR value = (PTR) realloc (ptr, size);
!   if (value == 0)
      fatal ("virtual memory exhausted");
!   return value;
  }
  
  static char *
--- 5219,5236 ----
  }
  
  PTR
! xrealloc (old, size)
!   PTR old;
    size_t size;
  {
!   register PTR ptr;
!   if (ptr)
!     ptr = (PTR) realloc (old, size);
!   else
!     ptr = (PTR) malloc (size);
!   if (ptr == 0)
      fatal ("virtual memory exhausted");
!   return ptr;
  }
  
  static char *
Index: genattr.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/genattr.c,v
retrieving revision 1.15
diff -c -p -d -r1.15 genattr.c
*** genattr.c	1998/12/19 07:04:29	1.15
--- genattr.c	1999/01/22 01:41:51
*************** xmalloc (size)
*** 210,223 ****
  }
  
  PTR
! xrealloc (ptr, size)
!   PTR ptr;
    size_t size;
  {
!   register PTR result = (PTR) realloc (ptr, size);
!   if (!result)
      fatal ("virtual memory exhausted");
!   return result;
  }
  
  static void
--- 210,227 ----
  }
  
  PTR
! xrealloc (old, size)
!   PTR old;
    size_t size;
  {
!   register PTR ptr;
!   if (ptr)
!     ptr = (PTR) realloc (old, size);
!   else
!     ptr = (PTR) malloc (size);
!   if (!ptr)
      fatal ("virtual memory exhausted");
!   return ptr;
  }
  
  static void
Index: genattrtab.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/genattrtab.c,v
retrieving revision 1.42
diff -c -p -d -r1.42 genattrtab.c
*** genattrtab.c	1998/12/19 07:04:30	1.42
--- genattrtab.c	1999/01/22 01:41:51
*************** extend_range (range, min, max)
*** 5753,5766 ****
  }
  
  PTR
! xrealloc (ptr, size)
!   PTR ptr;
    size_t size;
  {
!   register PTR result = (PTR) realloc (ptr, size);
!   if (!result)
      fatal ("virtual memory exhausted");
!   return result;
  }
  
  PTR
--- 5753,5770 ----
  }
  
  PTR
! xrealloc (old, size)
!   PTR old;
    size_t size;
  {
!   register PTR ptr;
!   if (ptr)
!     ptr = (PTR) realloc (old, size);
!   else
!     ptr = (PTR) malloc (size);
!   if (!ptr)
      fatal ("virtual memory exhausted");
!   return ptr;
  }
  
  PTR
Index: gencodes.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/gencodes.c,v
retrieving revision 1.13
diff -c -p -d -r1.13 gencodes.c
*** gencodes.c	1999/01/06 20:44:30	1.13
--- gencodes.c	1999/01/22 01:41:51
*************** xmalloc (size)
*** 68,81 ****
  }
  
  PTR
! xrealloc (ptr, size)
!   PTR ptr;
    size_t size;
  {
!   register PTR result = (PTR) realloc (ptr, size);
!   if (!result)
      fatal ("virtual memory exhausted");
!   return result;
  }
  
  static void
--- 68,85 ----
  }
  
  PTR
! xrealloc (old, size)
!   PTR old;
    size_t size;
  {
!   register PTR ptr;
!   if (ptr)
!     ptr = (PTR) realloc (old, size);
!   else
!     ptr = (PTR) malloc (size);
!   if (!ptr)
      fatal ("virtual memory exhausted");
!   return ptr;
  }
  
  static void
Index: genconfig.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/genconfig.c,v
retrieving revision 1.14
diff -c -p -d -r1.14 genconfig.c
*** genconfig.c	1998/12/19 07:04:33	1.14
--- genconfig.c	1999/01/22 01:41:51
*************** xmalloc (size)
*** 257,270 ****
  }
  
  PTR
! xrealloc (ptr, size)
!   PTR ptr;
    size_t size;
  {
!   register PTR result = (PTR) realloc (ptr, size);
!   if (!result)
      fatal ("virtual memory exhausted");
!   return result;
  }
  
  static void
--- 257,274 ----
  }
  
  PTR
! xrealloc (old, size)
!   PTR old;
    size_t size;
  {
!   register PTR ptr;
!   if (ptr)
!     ptr = (PTR) realloc (old, size);
!   else
!     ptr = (PTR) malloc (size);
!   if (!ptr)
      fatal ("virtual memory exhausted");
!   return ptr;
  }
  
  static void
Index: genemit.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/genemit.c,v
retrieving revision 1.26
diff -c -p -d -r1.26 genemit.c
*** genemit.c	1998/12/19 07:04:35	1.26
--- genemit.c	1999/01/22 01:41:51
*************** xmalloc (size)
*** 691,704 ****
  }
  
  PTR
! xrealloc (ptr, size)
!   PTR ptr;
    size_t size;
  {
!   register PTR result = (PTR) realloc (ptr, size);
!   if (!result)
      fatal ("virtual memory exhausted");
!   return result;
  }
  
  static void
--- 691,708 ----
  }
  
  PTR
! xrealloc (old, size)
!   PTR old;
    size_t size;
  {
!   register PTR ptr;
!   if (ptr)
!     ptr = (PTR) realloc (old, size);
!   else
!     ptr = (PTR) malloc (size);
!   if (!ptr)
      fatal ("virtual memory exhausted");
!   return ptr;
  }
  
  static void
Index: genextract.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/genextract.c,v
retrieving revision 1.22
diff -c -p -d -r1.22 genextract.c
*** genextract.c	1999/01/13 11:49:34	1.22
--- genextract.c	1999/01/22 01:41:51
*************** xmalloc (size)
*** 356,369 ****
  }
  
  PTR
! xrealloc (ptr, size)
!   PTR ptr;
    size_t size;
  {
!   register PTR result = (PTR) realloc (ptr, size);
!   if (!result)
      fatal ("virtual memory exhausted");
!   return result;
  }
  
  static void
--- 356,373 ----
  }
  
  PTR
! xrealloc (old, size)
!   PTR old;
    size_t size;
  {
!   register PTR ptr;
!   if (ptr)
!     ptr = (PTR) realloc (old, size);
!   else
!     ptr = (PTR) malloc (size);
!   if (!ptr)
      fatal ("virtual memory exhausted");
!   return ptr;
  }
  
  static void
Index: genflags.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/genflags.c,v
retrieving revision 1.13
diff -c -p -d -r1.13 genflags.c
*** genflags.c	1998/12/19 07:04:37	1.13
--- genflags.c	1999/01/22 01:41:51
*************** xmalloc (size)
*** 188,201 ****
  }
  
  PTR
! xrealloc (ptr, size)
!   PTR ptr;
    size_t size;
  {
!   register PTR result = (PTR) realloc (ptr, size);
!   if (!result)
      fatal ("virtual memory exhausted");
!   return result;
  }
  
  static void
--- 188,205 ----
  }
  
  PTR
! xrealloc (old, size)
!   PTR old;
    size_t size;
  {
!   register PTR ptr;
!   if (ptr)
!     ptr = (PTR) realloc (old, size);
!   else
!     ptr = (PTR) malloc (size);
!   if (!ptr)
      fatal ("virtual memory exhausted");
!   return ptr;
  }
  
  static void
Index: genopinit.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/genopinit.c,v
retrieving revision 1.18
diff -c -p -d -r1.18 genopinit.c
*** genopinit.c	1998/12/19 07:04:38	1.18
--- genopinit.c	1999/01/22 01:41:51
*************** xmalloc (size)
*** 293,306 ****
  }
  
  PTR
! xrealloc (ptr, size)
!   PTR ptr;
    size_t size;
  {
!   register PTR result = (PTR) realloc (ptr, size);
!   if (!result)
      fatal ("virtual memory exhausted");
!   return result;
  }
  
  static void
--- 293,310 ----
  }
  
  PTR
! xrealloc (old, size)
!   PTR old;
    size_t size;
  {
!   register PTR ptr;
!   if (ptr)
!     ptr = (PTR) realloc (old, size);
!   else
!     ptr = (PTR) malloc (size);
!   if (!ptr)
      fatal ("virtual memory exhausted");
!   return ptr;
  }
  
  static void
Index: genoutput.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/genoutput.c,v
retrieving revision 1.19
diff -c -p -d -r1.19 genoutput.c
*** genoutput.c	1999/01/19 20:24:21	1.19
--- genoutput.c	1999/01/22 01:41:51
*************** xmalloc (size)
*** 914,927 ****
  }
  
  PTR
! xrealloc (ptr, size)
!   PTR ptr;
    size_t size;
  {
!   register PTR result = (PTR) realloc (ptr, size);
!   if (!result)
      fatal ("virtual memory exhausted");
!   return result;
  }
  
  static void
--- 914,931 ----
  }
  
  PTR
! xrealloc (old, size)
!   PTR old;
    size_t size;
  {
!   register PTR ptr;
!   if (ptr)
!     ptr = (PTR) realloc (old, size);
!   else
!     ptr = (PTR) malloc (size);
!   if (!ptr)
      fatal ("virtual memory exhausted");
!   return ptr;
  }
  
  static void
Index: genpeep.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/genpeep.c,v
retrieving revision 1.21
diff -c -p -d -r1.21 genpeep.c
*** genpeep.c	1998/12/19 07:04:41	1.21
--- genpeep.c	1999/01/22 01:41:51
*************** xmalloc (size)
*** 396,409 ****
  }
  
  PTR
! xrealloc (ptr, size)
!   PTR ptr;
    size_t size;
  {
!   register PTR result = (PTR) realloc (ptr, size);
!   if (!result)
      fatal ("virtual memory exhausted");
!   return result;
  }
  
  static void
--- 396,413 ----
  }
  
  PTR
! xrealloc (old, size)
!   PTR old;
    size_t size;
  {
!   register PTR ptr;
!   if (ptr)
!     ptr = (PTR) realloc (old, size);
!   else
!     ptr = (PTR) malloc (size);
!   if (!ptr)
      fatal ("virtual memory exhausted");
!   return ptr;
  }
  
  static void
Index: genrecog.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/genrecog.c,v
retrieving revision 1.29
diff -c -p -d -r1.29 genrecog.c
*** genrecog.c	1999/01/19 21:55:28	1.29
--- genrecog.c	1999/01/22 01:41:51
*************** xstrdup (input)
*** 1671,1684 ****
  }
  
  PTR
! xrealloc (ptr, size)
!   PTR ptr;
    size_t size;
  {
!   register PTR result = (PTR) realloc (ptr, size);
!   if (!result)
      fatal ("virtual memory exhausted");
!   return result;
  }
  
  PTR
--- 1671,1688 ----
  }
  
  PTR
! xrealloc (old, size)
!   PTR old;
    size_t size;
  {
!   register PTR ptr;
!   if (ptr)
!     ptr = (PTR) realloc (old, size);
!   else
!     ptr = (PTR) malloc (size);
!   if (!ptr)
      fatal ("virtual memory exhausted");
!   return ptr;
  }
  
  PTR
Index: mips-tfile.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/mips-tfile.c,v
retrieving revision 1.22
diff -c -p -d -r1.22 mips-tfile.c
*** mips-tfile.c	1999/01/06 19:48:38	1.22
--- mips-tfile.c	1999/01/22 01:41:52
*************** xrealloc (ptr, size)
*** 5710,5716 ****
    PTR ptr;
    size_t size;
  {
!   register PTR result = (PTR) realloc (ptr, size);
    if (!result)
      fatal ("Virtual memory exhausted.");
  
--- 5710,5720 ----
    PTR ptr;
    size_t size;
  {
!   register PTR result;
!   if (ptr)
!     result = (PTR) realloc (ptr, size);
!   else
!     result = (PTR) malloc (size);
    if (!result)
      fatal ("Virtual memory exhausted.");
  
Index: protoize.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/protoize.c,v
retrieving revision 1.30
diff -c -p -d -r1.30 protoize.c
*** protoize.c	1999/01/09 20:59:12	1.30
--- protoize.c	1999/01/22 01:41:52
*************** xrealloc (old_space, byte_count)
*** 608,614 ****
       pointer_type old_space;
       size_t byte_count;
  {
!   register pointer_type rv = (pointer_type) realloc (old_space, byte_count);
    if (rv == NULL)
      {
        fprintf (stderr, "\n%s: virtual memory exceeded\n", pname);
--- 608,618 ----
       pointer_type old_space;
       size_t byte_count;
  {
!   register pointer_type rv;
!   if (old_space)
!     rv = (pointer_type) realloc (old_space, byte_count);
!   else
!     rv = (pointer_type) malloc (byte_count);
    if (rv == NULL)
      {
        fprintf (stderr, "\n%s: virtual memory exceeded\n", pname);



More information about the Gcc-patches mailing list