[Patches] changes to configure.in and PC/config.h for 64-bit systems

Trent Mick trentm@activestate.com
Thu, 1 Jun 2000 13:14:12 -0700


Discussion:

This patch extends PC/config.h and configure.in as appropriate for 64-bit
readiness (the config values are needed for patches that I will be submitting
later today. The changes are as follows:

- add SIZEOF_OFF_T #define's to PC/config.h (it was already in configure.in)
- add SIZEOF_TIME_T #define to PC/config.h and configure
  Needed for some buffer overflow checking because sizeof(time_t) is
  different on Win64.
- add SIZEOF_FPOS_T #define
  Needed for the Win64 large file support implementation.
- add SIZEOF_HKEY in PC/config.h only
  Needed for proper Win32 vs. Win64 handling in PC/winreg.c
- #define HAVE_LARGEFILE_SUPPORT for Win64
- typedef long intptr_t; for all Windows except Win64 (which defines it
  itself)
  This is a new ANSI (I think) type that is useful (and used by me) for
  proper handling in msvcrtmodule.c and posixmodule.c
- indent the nested #ifdef's and #defines in PC/config.h
  This is *so* much more readable. There cannot be a compiler compatibilty
  issue here can there? Perl uses indented #defines and it compiles with
  everything.

Note: The regenerated 'configure' is included as well (I bumped the
configure.in internal version number, as Guido say he usually does). Don't
worry about looking at the diff for it, it is huge and all the info is in
configure.in.


Legal:

I confirm that, to the best of my knowledge and belief, this
contribution is free of any claims of third parties under
copyright, patent or other rights or interests ("claims").  To
the extent that I have any such claims, I hereby grant to CNRI a
nonexclusive, irrevocable, royalty-free, worldwide license to
reproduce, distribute, perform and/or display publicly, prepare
derivative versions, and otherwise use this contribution as part
of the Python software and its related documentation, or any
derivative versions thereof, at no cost to CNRI or its licensed
users, and to authorize others to do so.

I acknowledge that CNRI may, at its sole discretion, decide
whether or not to incorporate this contribution in the Python
software and its related documentation.  I further grant CNRI
permission to use my name and other identifying information
provided to CNRI by me for use in connection with the Python
software and its related documentation.


Patch:

*** /home/trentm/main/contrib/python/dist/src/PC/config.h	Thu Jun  1 00:13:40 2000
--- /home/trentm/main/Apps/Perlium/Python/dist/src/PC/config.h	Thu Jun  1 12:47:45 2000
***************
*** 233,255 ****
  
  /* End of compilers - finish up */
  
  #if defined(MS_WIN64)
  /* maintain "win32" sys.platform for backward compatibility of Python code,
     the Win64 API should be close enough to the Win32 API to make this
     preferable */
! #define PLATFORM "win32"
! #define SIZEOF_VOID_P 8
  #elif defined(MS_WIN32)
! #define PLATFORM "win32"
! #ifdef _M_ALPHA
! #define SIZEOF_VOID_P 8
! #else
! #define SIZEOF_VOID_P 4
! #endif
  #elif defined(MS_WIN16)
! #define PLATFORM "win16"
  #else
! #define PLATFORM "dos"
  #endif
  
  
--- 233,277 ----
  
  /* End of compilers - finish up */
  
+ /* define the ANSI intptr_t type for portable use of a pointer sized
+    integer */
+ #include <basetsd.h>
+ #if defined(MS_WINDOWS) && !defined(MS_WIN64)
+ typedef long intptr_t;
+ #endif
+ 
  #if defined(MS_WIN64)
  /* maintain "win32" sys.platform for backward compatibility of Python code,
     the Win64 API should be close enough to the Win32 API to make this
     preferable */
! #	define PLATFORM "win32"
! #	define SIZEOF_VOID_P 8
! #	define SIZEOF_TIME_T 8
! #	define SIZEOF_OFF_T 4
! #	define SIZEOF_FPOS_T 8
! #	define SIZEOF_HKEY 8
! /* configure.in defines HAVE_LARGEFILE_SUPPORT iff HAVE_LONG_LONG,
!    sizeof(off_t) > sizeof(long), and sizeof(LONG_LONG) >= sizeof(off_t).
!    On Win64 the second condition is not true, but if fpos_t replaces off_t
!    then this is true. The uses of HAVE_LARGEFILE_SUPPORT imply that Win64
!    should define this. */
! #	define HAVE_LARGEFILE_SUPPORT
  #elif defined(MS_WIN32)
! #	define PLATFORM "win32"
! #	ifdef _M_ALPHA
! #		define SIZEOF_VOID_P 8
! #		define SIZEOF_TIME_T 8
! #	else
! #		define SIZEOF_VOID_P 4
! #		define SIZEOF_TIME_T 4
! #		define SIZEOF_OFF_T 4
! #		define SIZEOF_FPOS_T 8
! #		define SIZEOF_HKEY 4
! #	endif
  #elif defined(MS_WIN16)
! #	define PLATFORM "win16"
  #else
! #	define PLATFORM "dos"
  #endif
  
  
*** /home/trentm/main/contrib/python/dist/src/configure.in	Thu Jun  1 00:13:41 2000
--- /home/trentm/main/Apps/Perlium/Python/dist/src/configure.in	Wed May 31 23:54:21 2000
***************
*** 1,5 ****
  dnl Process this file with autoconf 2.0 or later to make a configure script.
! AC_REVISION($Revision: 1.124 $)
  AC_PREREQ(2.0)
  AC_INIT(Include/object.h)
  AC_CONFIG_HEADER(config.h)
--- 1,5 ----
  dnl Process this file with autoconf 2.0 or later to make a configure script.
! AC_REVISION($Revision: 1.125 $)
  AC_PREREQ(2.0)
  AC_INIT(Include/object.h)
  AC_CONFIG_HEADER(config.h)
***************
*** 389,394 ****
--- 389,395 ----
  AC_CHECK_SIZEOF(short)
  AC_CHECK_SIZEOF(float)
  AC_CHECK_SIZEOF(double)
+ AC_CHECK_SIZEOF(fpos_t)
  
  AC_MSG_CHECKING(for long long support)
  have_long_long=no
***************
*** 423,428 ****
--- 424,445 ----
  else
    AC_MSG_RESULT(no)
  fi
+ 
+ # AC_CHECK_SIZEOF() doesn't include <time.h>.
+ AC_MSG_CHECKING(size of time_t)
+ AC_CACHE_VAL(ac_cv_sizeof_time_t,
+ [AC_TRY_RUN([#include <stdio.h>
+ #include <time.h>
+ main()
+ {
+   FILE *f=fopen("conftestval", "w");
+   if (!f) exit(1);
+   fprintf(f, "%d\n", sizeof(time_t));
+   exit(0);
+ }], ac_cv_sizeof_time_t=`cat conftestval`, ac_cv_sizeof_time_t=0)
+ ])
+ AC_MSG_RESULT($ac_cv_sizeof_time_t)
+ AC_DEFINE_UNQUOTED(SIZEOF_TIME_T, $ac_cv_sizeof_time_t)
  
  
  # Minor variations in building a framework between NextStep versions 4 and 5
*** /home/trentm/main/contrib/python/dist/src/configure	Thu Jun  1 00:13:41 2000
--- /home/trentm/main/Apps/Perlium/Python/dist/src/configure	Wed May 31 23:54:21 2000
***************
*** 1,6 ****
  #! /bin/sh
  
! # From configure.in Revision: 1.123 
  
  # Guess values for system-dependent variables and create Makefiles.
  # Generated automatically using autoconf version 2.13 
--- 1,6 ----
  #! /bin/sh
  
! # From configure.in Revision: 1.125 
  
  # Guess values for system-dependent variables and create Makefiles.
  # Generated automatically using autoconf version 2.13 
***************
*** 2233,2251 ****
  EOF
  
  
  
  echo $ac_n "checking for long long support""... $ac_c" 1>&6
! echo "configure:2239: checking for long long support" >&5
  have_long_long=no
  cat > conftest.$ac_ext <<EOF
! #line 2242 "configure"
  #include "confdefs.h"
  
  int main() {
  long long x; x = (long long)0;
  ; return 0; }
  EOF
! if { (eval echo configure:2249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    cat >> confdefs.h <<\EOF
  #define HAVE_LONG_LONG 1
--- 2233,2290 ----
  EOF
  
  
+ echo $ac_n "checking size of fpos_t""... $ac_c" 1>&6
+ echo "configure:2238: checking size of fpos_t" >&5
+ if eval "test \"`echo '$''{'ac_cv_sizeof_fpos_t'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   if test "$cross_compiling" = yes; then
+     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 2246 "configure"
+ #include "confdefs.h"
+ #include <stdio.h>
+ main()
+ {
+   FILE *f=fopen("conftestval", "w");
+   if (!f) exit(1);
+   fprintf(f, "%d\n", sizeof(fpos_t));
+   exit(0);
+ }
+ EOF
+ if { (eval echo configure:2257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+ then
+   ac_cv_sizeof_fpos_t=`cat conftestval`
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -fr conftest*
+   ac_cv_sizeof_fpos_t=0
+ fi
+ rm -fr conftest*
+ fi
+ 
+ fi
+ echo "$ac_t""$ac_cv_sizeof_fpos_t" 1>&6
+ cat >> confdefs.h <<EOF
+ #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
+ EOF
+ 
+ 
  
  echo $ac_n "checking for long long support""... $ac_c" 1>&6
! echo "configure:2278: checking for long long support" >&5
  have_long_long=no
  cat > conftest.$ac_ext <<EOF
! #line 2281 "configure"
  #include "confdefs.h"
  
  int main() {
  long long x; x = (long long)0;
  ; return 0; }
  EOF
! if { (eval echo configure:2288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    cat >> confdefs.h <<\EOF
  #define HAVE_LONG_LONG 1
***************
*** 2259,2265 ****
  echo "$ac_t""$have_long_long" 1>&6
  if test "$have_long_long" = yes ; then
  echo $ac_n "checking size of long long""... $ac_c" 1>&6
! echo "configure:2263: checking size of long long" >&5
  if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 2298,2304 ----
  echo "$ac_t""$have_long_long" 1>&6
  if test "$have_long_long" = yes ; then
  echo $ac_n "checking size of long long""... $ac_c" 1>&6
! echo "configure:2302: checking size of long long" >&5
  if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 2267,2273 ****
      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  else
    cat > conftest.$ac_ext <<EOF
! #line 2271 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  main()
--- 2306,2312 ----
      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  else
    cat > conftest.$ac_ext <<EOF
! #line 2310 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  main()
***************
*** 2278,2284 ****
    exit(0);
  }
  EOF
! if { (eval echo configure:2282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
    ac_cv_sizeof_long_long=`cat conftestval`
  else
--- 2317,2323 ----
    exit(0);
  }
  EOF
! if { (eval echo configure:2321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
    ac_cv_sizeof_long_long=`cat conftestval`
  else
***************
*** 2301,2307 ****
  
  # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
  echo $ac_n "checking size of off_t""... $ac_c" 1>&6
! echo "configure:2305: checking size of off_t" >&5
  if eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 2340,2346 ----
  
  # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
  echo $ac_n "checking size of off_t""... $ac_c" 1>&6
! echo "configure:2344: checking size of off_t" >&5
  if eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 2309,2315 ****
      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  else
    cat > conftest.$ac_ext <<EOF
! #line 2313 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  #include <sys/types.h>
--- 2348,2354 ----
      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  else
    cat > conftest.$ac_ext <<EOF
! #line 2352 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  #include <sys/types.h>
***************
*** 2321,2327 ****
    exit(0);
  }
  EOF
! if { (eval echo configure:2325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
    ac_cv_sizeof_off_t=`cat conftestval`
  else
--- 2360,2366 ----
    exit(0);
  }
  EOF
! if { (eval echo configure:2364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
    ac_cv_sizeof_off_t=`cat conftestval`
  else
***************
*** 2343,2349 ****
  
  
  echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6
! echo "configure:2347: checking whether to enable large file support" >&5
  if test "$have_long_long" = yes -a \
  	"$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
  	"$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
--- 2382,2388 ----
  
  
  echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6
! echo "configure:2386: checking whether to enable large file support" >&5
  if test "$have_long_long" = yes -a \
  	"$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
  	"$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
***************
*** 2356,2361 ****
--- 2395,2443 ----
    echo "$ac_t""no" 1>&6
  fi
  
+ # AC_CHECK_SIZEOF() doesn't include <time.h>.
+ echo $ac_n "checking size of time_t""... $ac_c" 1>&6
+ echo "configure:2401: checking size of time_t" >&5
+ if eval "test \"`echo '$''{'ac_cv_sizeof_time_t'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   if test "$cross_compiling" = yes; then
+     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 2409 "configure"
+ #include "confdefs.h"
+ #include <stdio.h>
+ #include <time.h>
+ main()
+ {
+   FILE *f=fopen("conftestval", "w");
+   if (!f) exit(1);
+   fprintf(f, "%d\n", sizeof(time_t));
+   exit(0);
+ }
+ EOF
+ if { (eval echo configure:2421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+ then
+   ac_cv_sizeof_time_t=`cat conftestval`
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -fr conftest*
+   ac_cv_sizeof_time_t=0
+ fi
+ rm -fr conftest*
+ fi
+ 
+ 
+ fi
+ 
+ echo "$ac_t""$ac_cv_sizeof_time_t" 1>&6
+ cat >> confdefs.h <<EOF
+ #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
+ EOF
+ 
+ 
  
  # Minor variations in building a framework between NextStep versions 4 and 5
  
***************
*** 2369,2375 ****
  esac
  
  echo $ac_n "checking for --with-next-framework""... $ac_c" 1>&6
! echo "configure:2373: checking for --with-next-framework" >&5
  if test "$with_next_framework"
  then
  	OPT="$OPT -fno-common"
--- 2451,2457 ----
  esac
  
  echo $ac_n "checking for --with-next-framework""... $ac_c" 1>&6
! echo "configure:2455: checking for --with-next-framework" >&5
  if test "$with_next_framework"
  then
  	OPT="$OPT -fno-common"
***************
*** 2386,2392 ****
  fi
  
  echo $ac_n "checking for --with-dyld""... $ac_c" 1>&6
! echo "configure:2390: checking for --with-dyld" >&5
  if test "$with_next_framework" -o "$with_dyld"
  then
  	if test "$with_dyld"
--- 2468,2474 ----
  fi
  
  echo $ac_n "checking for --with-dyld""... $ac_c" 1>&6
! echo "configure:2472: checking for --with-dyld" >&5
  if test "$with_next_framework" -o "$with_dyld"
  then
  	if test "$with_dyld"
***************
*** 2412,2418 ****
  # SO is the extension of shared libraries `(including the dot!)
  # -- usually .so, .sl on HP-UX
  echo $ac_n "checking SO""... $ac_c" 1>&6
! echo "configure:2416: checking SO" >&5
  if test -z "$SO"
  then
  	case $ac_sys_system in
--- 2494,2500 ----
  # SO is the extension of shared libraries `(including the dot!)
  # -- usually .so, .sl on HP-UX
  echo $ac_n "checking SO""... $ac_c" 1>&6
! echo "configure:2498: checking SO" >&5
  if test -z "$SO"
  then
  	case $ac_sys_system in
***************
*** 2426,2432 ****
  # (Shared libraries in this instance are shared modules to be loaded into
  # Python, as opposed to building Python itself as a shared library.)
  echo $ac_n "checking LDSHARED""... $ac_c" 1>&6
! echo "configure:2430: checking LDSHARED" >&5
  if test -z "$LDSHARED"
  then
  	case $ac_sys_system/$ac_sys_release in
--- 2508,2514 ----
  # (Shared libraries in this instance are shared modules to be loaded into
  # Python, as opposed to building Python itself as a shared library.)
  echo $ac_n "checking LDSHARED""... $ac_c" 1>&6
! echo "configure:2512: checking LDSHARED" >&5
  if test -z "$LDSHARED"
  then
  	case $ac_sys_system/$ac_sys_release in
***************
*** 2471,2477 ****
  # CCSHARED are the C *flags* used to create objects to go into a shared
  # library (module) -- this is only needed for a few systems
  echo $ac_n "checking CCSHARED""... $ac_c" 1>&6
! echo "configure:2475: checking CCSHARED" >&5
  if test -z "$CCSHARED"
  then
  	case $ac_sys_system/$ac_sys_release in
--- 2553,2559 ----
  # CCSHARED are the C *flags* used to create objects to go into a shared
  # library (module) -- this is only needed for a few systems
  echo $ac_n "checking CCSHARED""... $ac_c" 1>&6
! echo "configure:2557: checking CCSHARED" >&5
  if test -z "$CCSHARED"
  then
  	case $ac_sys_system/$ac_sys_release in
***************
*** 2494,2500 ****
  # LINKFORSHARED are the flags passed to the $(CC) command that links
  # the python executable -- this is only needed for a few systems
  echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6
! echo "configure:2498: checking LINKFORSHARED" >&5
  if test -z "$LINKFORSHARED"
  then
  	case $ac_sys_system/$ac_sys_release in
--- 2576,2582 ----
  # LINKFORSHARED are the flags passed to the $(CC) command that links
  # the python executable -- this is only needed for a few systems
  echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6
! echo "configure:2580: checking LINKFORSHARED" >&5
  if test -z "$LINKFORSHARED"
  then
  	case $ac_sys_system/$ac_sys_release in
***************
*** 2530,2536 ****
  
  # checks for libraries
  echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
! echo "configure:2534: checking for dlopen in -ldl" >&5
  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 2612,2618 ----
  
  # checks for libraries
  echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
! echo "configure:2616: checking for dlopen in -ldl" >&5
  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 2538,2544 ****
    ac_save_LIBS="$LIBS"
  LIBS="-ldl  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 2542 "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
--- 2620,2626 ----
    ac_save_LIBS="$LIBS"
  LIBS="-ldl  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 2624 "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
***************
*** 2549,2555 ****
  dlopen()
  ; return 0; }
  EOF
! if { (eval echo configure:2553: \"$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
--- 2631,2637 ----
  dlopen()
  ; return 0; }
  EOF
! if { (eval echo configure:2635: \"$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
***************
*** 2577,2583 ****
  fi
  	# Dynamic linking for SunOS/Solaris and SYSV
  echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
! echo "configure:2581: checking for shl_load in -ldld" >&5
  ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 2659,2665 ----
  fi
  	# Dynamic linking for SunOS/Solaris and SYSV
  echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
! echo "configure:2663: checking for shl_load in -ldld" >&5
  ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 2585,2591 ****
    ac_save_LIBS="$LIBS"
  LIBS="-ldld  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 2589 "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
--- 2667,2673 ----
    ac_save_LIBS="$LIBS"
  LIBS="-ldld  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 2671 "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
***************
*** 2596,2602 ****
  shl_load()
  ; return 0; }
  EOF
! if { (eval echo configure:2600: \"$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
--- 2678,2684 ----
  shl_load()
  ; return 0; }
  EOF
! if { (eval echo configure:2682: \"$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
***************
*** 2627,2642 ****
  # checks for system dependent C++ extensions support
  case "$ac_sys_system" in
  	AIX*)	echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6
! echo "configure:2631: checking for genuine AIX C++ extensions support" >&5
  		cat > conftest.$ac_ext <<EOF
! #line 2633 "configure"
  #include "confdefs.h"
  #include "/usr/lpp/xlC/include/load.h"
  int main() {
  loadAndInit("", 0, "")
  ; return 0; }
  EOF
! if { (eval echo configure:2640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    cat >> confdefs.h <<\EOF
  #define AIX_GENUINE_CPLUSPLUS 1
--- 2709,2724 ----
  # checks for system dependent C++ extensions support
  case "$ac_sys_system" in
  	AIX*)	echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6
! echo "configure:2713: checking for genuine AIX C++ extensions support" >&5
  		cat > conftest.$ac_ext <<EOF
! #line 2715 "configure"
  #include "confdefs.h"
  #include "/usr/lpp/xlC/include/load.h"
  int main() {
  loadAndInit("", 0, "")
  ; return 0; }
  EOF
! if { (eval echo configure:2722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    cat >> confdefs.h <<\EOF
  #define AIX_GENUINE_CPLUSPLUS 1
***************
*** 2660,2666 ****
  IRIX*) ;;
  *)
  echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6
! echo "configure:2664: checking for t_open in -lnsl" >&5
  ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 2742,2748 ----
  IRIX*) ;;
  *)
  echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6
! echo "configure:2746: checking for t_open in -lnsl" >&5
  ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 2668,2674 ****
    ac_save_LIBS="$LIBS"
  LIBS="-lnsl  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 2672 "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
--- 2750,2756 ----
    ac_save_LIBS="$LIBS"
  LIBS="-lnsl  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 2754 "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
***************
*** 2679,2685 ****
  t_open()
  ; return 0; }
  EOF
! if { (eval echo configure:2683: \"$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
--- 2761,2767 ----
  t_open()
  ; return 0; }
  EOF
! if { (eval echo configure:2765: \"$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
***************
*** 2700,2706 ****
  fi
   # SVR4
  echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
! echo "configure:2704: checking for socket in -lsocket" >&5
  ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 2782,2788 ----
  fi
   # SVR4
  echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
! echo "configure:2786: checking for socket in -lsocket" >&5
  ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 2708,2714 ****
    ac_save_LIBS="$LIBS"
  LIBS="-lsocket $LIBS $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 2712 "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
--- 2790,2796 ----
    ac_save_LIBS="$LIBS"
  LIBS="-lsocket $LIBS $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 2794 "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
***************
*** 2719,2725 ****
  socket()
  ; return 0; }
  EOF
! if { (eval echo configure:2723: \"$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
--- 2801,2807 ----
  socket()
  ; return 0; }
  EOF
! if { (eval echo configure:2805: \"$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
***************
*** 2740,2746 ****
  fi
   # SVR4 sockets
  echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
! echo "configure:2744: checking for socket in -lnet" >&5
  ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 2822,2828 ----
  fi
   # SVR4 sockets
  echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
! echo "configure:2826: checking for socket in -lnet" >&5
  ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 2748,2754 ****
    ac_save_LIBS="$LIBS"
  LIBS="-lnet $LIBS $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 2752 "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
--- 2830,2836 ----
    ac_save_LIBS="$LIBS"
  LIBS="-lnet $LIBS $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 2834 "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
***************
*** 2759,2765 ****
  socket()
  ; return 0; }
  EOF
! if { (eval echo configure:2763: \"$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
--- 2841,2847 ----
  socket()
  ; return 0; }
  EOF
! if { (eval echo configure:2845: \"$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
***************
*** 2783,2789 ****
  esac
  
  echo $ac_n "checking for --with-libs""... $ac_c" 1>&6
! echo "configure:2787: checking for --with-libs" >&5
  # Check whether --with-libs or --without-libs was given.
  if test "${with_libs+set}" = set; then
    withval="$with_libs"
--- 2865,2871 ----
  esac
  
  echo $ac_n "checking for --with-libs""... $ac_c" 1>&6
! echo "configure:2869: checking for --with-libs" >&5
  # Check whether --with-libs or --without-libs was given.
  if test "${with_libs+set}" = set; then
    withval="$with_libs"
***************
*** 2797,2803 ****
  
  
  echo $ac_n "checking for --with(out)-readline""... $ac_c" 1>&6
! echo "configure:2801: checking for --with(out)-readline" >&5
  # Check whether --with-readline or --without-readline was given.
  if test "${with_readline+set}" = set; then
    withval="$with_readline"
--- 2879,2885 ----
  
  
  echo $ac_n "checking for --with(out)-readline""... $ac_c" 1>&6
! echo "configure:2883: checking for --with(out)-readline" >&5
  # Check whether --with-readline or --without-readline was given.
  if test "${with_readline+set}" = set; then
    withval="$with_readline"
***************
*** 2812,2818 ****
  USE_THREAD_MODULE="#"
  
  echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6
! echo "configure:2816: checking for --with-dec-threads" >&5
  
  # Check whether --with-dec-threads or --without-dec-threads was given.
  if test "${with_dec_threads+set}" = set; then
--- 2894,2900 ----
  USE_THREAD_MODULE="#"
  
  echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6
! echo "configure:2898: checking for --with-dec-threads" >&5
  
  # Check whether --with-dec-threads or --without-dec-threads was given.
  if test "${with_dec_threads+set}" = set; then
***************
*** 2828,2834 ****
  
  
  echo $ac_n "checking for --with-threads""... $ac_c" 1>&6
! echo "configure:2832: checking for --with-threads" >&5
  # Check whether --with-threads or --without-threads was given.
  if test "${with_threads+set}" = set; then
    withval="$with_threads"
--- 2910,2916 ----
  
  
  echo $ac_n "checking for --with-threads""... $ac_c" 1>&6
! echo "configure:2914: checking for --with-threads" >&5
  # Check whether --with-threads or --without-threads was given.
  if test "${with_threads+set}" = set; then
    withval="$with_threads"
***************
*** 2842,2848 ****
  
  
  echo $ac_n "checking for --with-thread""... $ac_c" 1>&6
! echo "configure:2846: checking for --with-thread" >&5
  # Check whether --with-thread or --without-thread was given.
  if test "${with_thread+set}" = set; then
    withval="$with_thread"
--- 2924,2930 ----
  
  
  echo $ac_n "checking for --with-thread""... $ac_c" 1>&6
! echo "configure:2928: checking for --with-thread" >&5
  # Check whether --with-thread or --without-thread was given.
  if test "${with_thread+set}" = set; then
    withval="$with_thread"
***************
*** 2858,2874 ****
  
  ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6
! echo "configure:2862: checking for mach/cthreads.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 2867 "configure"
  #include "confdefs.h"
  #include <mach/cthreads.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2872: \"$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*
--- 2940,2956 ----
  
  ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6
! echo "configure:2944: checking for mach/cthreads.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 2949 "configure"
  #include "confdefs.h"
  #include <mach/cthreads.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2954: \"$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*
***************
*** 2897,2903 ****
    echo "$ac_t""no" 1>&6
  
  echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
! echo "configure:2901: checking for pth_init in -lpth" >&5
  ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 2979,2985 ----
    echo "$ac_t""no" 1>&6
  
  echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
! echo "configure:2983: checking for pth_init in -lpth" >&5
  ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 2905,2911 ****
    ac_save_LIBS="$LIBS"
  LIBS="-lpth  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 2909 "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
--- 2987,2993 ----
    ac_save_LIBS="$LIBS"
  LIBS="-lpth  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 2991 "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
***************
*** 2916,2922 ****
  pth_init()
  ; return 0; }
  EOF
! if { (eval echo configure:2920: \"$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
--- 2998,3004 ----
  pth_init()
  ; return 0; }
  EOF
! if { (eval echo configure:3002: \"$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
***************
*** 2945,2951 ****
    echo "$ac_t""no" 1>&6
  
  echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
! echo "configure:2949: checking for pthread_create in -lpthread" >&5
  ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 3027,3033 ----
    echo "$ac_t""no" 1>&6
  
  echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
! echo "configure:3031: checking for pthread_create in -lpthread" >&5
  ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 2953,2959 ****
    ac_save_LIBS="$LIBS"
  LIBS="-lpthread  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 2957 "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
--- 3035,3041 ----
    ac_save_LIBS="$LIBS"
  LIBS="-lpthread  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3039 "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
***************
*** 2964,2970 ****
  pthread_create()
  ; return 0; }
  EOF
! if { (eval echo configure:2968: \"$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
--- 3046,3052 ----
  pthread_create()
  ; return 0; }
  EOF
! if { (eval echo configure:3050: \"$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
***************
*** 2993,3004 ****
    echo "$ac_t""no" 1>&6
  
  echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6
! echo "configure:2997: checking for pthread_detach" >&5
  if eval "test \"`echo '$''{'ac_cv_func_pthread_detach'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3002 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char pthread_detach(); below.  */
--- 3075,3086 ----
    echo "$ac_t""no" 1>&6
  
  echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6
! echo "configure:3079: checking for pthread_detach" >&5
  if eval "test \"`echo '$''{'ac_cv_func_pthread_detach'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3084 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char pthread_detach(); below.  */
***************
*** 3021,3027 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:3025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    eval "ac_cv_func_pthread_detach=yes"
  else
--- 3103,3109 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:3107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    eval "ac_cv_func_pthread_detach=yes"
  else
***************
*** 3049,3065 ****
  
  ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6
! echo "configure:3053: checking for kernel/OS.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 3058 "configure"
  #include "confdefs.h"
  #include <kernel/OS.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:3063: \"$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*
--- 3131,3147 ----
  
  ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6
! echo "configure:3135: checking for kernel/OS.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 3140 "configure"
  #include "confdefs.h"
  #include <kernel/OS.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:3145: \"$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*
***************
*** 3088,3094 ****
    echo "$ac_t""no" 1>&6
  
  echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
! echo "configure:3092: checking for pthread_create in -lpthreads" >&5
  ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 3170,3176 ----
    echo "$ac_t""no" 1>&6
  
  echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
! echo "configure:3174: checking for pthread_create in -lpthreads" >&5
  ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 3096,3102 ****
    ac_save_LIBS="$LIBS"
  LIBS="-lpthreads  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3100 "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
--- 3178,3184 ----
    ac_save_LIBS="$LIBS"
  LIBS="-lpthreads  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3182 "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
***************
*** 3107,3113 ****
  pthread_create()
  ; return 0; }
  EOF
! if { (eval echo configure:3111: \"$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
--- 3189,3195 ----
  pthread_create()
  ; return 0; }
  EOF
! if { (eval echo configure:3193: \"$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
***************
*** 3136,3142 ****
    echo "$ac_t""no" 1>&6
  
  echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
! echo "configure:3140: checking for pthread_create in -lc_r" >&5
  ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 3218,3224 ----
    echo "$ac_t""no" 1>&6
  
  echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
! echo "configure:3222: checking for pthread_create in -lc_r" >&5
  ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 3144,3150 ****
    ac_save_LIBS="$LIBS"
  LIBS="-lc_r  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3148 "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
--- 3226,3232 ----
    ac_save_LIBS="$LIBS"
  LIBS="-lc_r  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3230 "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
***************
*** 3155,3161 ****
  pthread_create()
  ; return 0; }
  EOF
! if { (eval echo configure:3159: \"$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
--- 3237,3243 ----
  pthread_create()
  ; return 0; }
  EOF
! if { (eval echo configure:3241: \"$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
***************
*** 3184,3190 ****
    echo "$ac_t""no" 1>&6
  
  echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6
! echo "configure:3188: checking for __d6_pthread_create in -lthread" >&5
  ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 3266,3272 ----
    echo "$ac_t""no" 1>&6
  
  echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6
! echo "configure:3270: checking for __d6_pthread_create in -lthread" >&5
  ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 3192,3198 ****
    ac_save_LIBS="$LIBS"
  LIBS="-lthread  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3196 "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
--- 3274,3280 ----
    ac_save_LIBS="$LIBS"
  LIBS="-lthread  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3278 "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
***************
*** 3203,3209 ****
  __d6_pthread_create()
  ; return 0; }
  EOF
! if { (eval echo configure:3207: \"$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
--- 3285,3291 ----
  __d6_pthread_create()
  ; return 0; }
  EOF
! if { (eval echo configure:3289: \"$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
***************
*** 3232,3238 ****
    echo "$ac_t""no" 1>&6
  
  echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6
! echo "configure:3236: checking for pthread_create in -lcma" >&5
  ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 3314,3320 ----
    echo "$ac_t""no" 1>&6
  
  echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6
! echo "configure:3318: checking for pthread_create in -lcma" >&5
  ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 3240,3246 ****
    ac_save_LIBS="$LIBS"
  LIBS="-lcma  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3244 "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
--- 3322,3328 ----
    ac_save_LIBS="$LIBS"
  LIBS="-lcma  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3326 "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
***************
*** 3251,3257 ****
  pthread_create()
  ; return 0; }
  EOF
! if { (eval echo configure:3255: \"$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
--- 3333,3339 ----
  pthread_create()
  ; return 0; }
  EOF
! if { (eval echo configure:3337: \"$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
***************
*** 3299,3305 ****
  
  
  echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6
! echo "configure:3303: checking for usconfig in -lmpc" >&5
  ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 3381,3387 ----
  
  
  echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6
! echo "configure:3385: checking for usconfig in -lmpc" >&5
  ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 3307,3313 ****
    ac_save_LIBS="$LIBS"
  LIBS="-lmpc  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3311 "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
--- 3389,3395 ----
    ac_save_LIBS="$LIBS"
  LIBS="-lmpc  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3393 "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
***************
*** 3318,3324 ****
  usconfig()
  ; return 0; }
  EOF
! if { (eval echo configure:3322: \"$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
--- 3400,3406 ----
  usconfig()
  ; return 0; }
  EOF
! if { (eval echo configure:3404: \"$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
***************
*** 3344,3350 ****
  fi
  
  echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
! echo "configure:3348: checking for thr_create in -lthread" >&5
  ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 3426,3432 ----
  fi
  
  echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
! echo "configure:3430: checking for thr_create in -lthread" >&5
  ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 3352,3358 ****
    ac_save_LIBS="$LIBS"
  LIBS="-lthread  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3356 "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
--- 3434,3440 ----
    ac_save_LIBS="$LIBS"
  LIBS="-lthread  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3438 "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
***************
*** 3363,3369 ****
  thr_create()
  ; return 0; }
  EOF
! if { (eval echo configure:3367: \"$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
--- 3445,3451 ----
  thr_create()
  ; return 0; }
  EOF
! if { (eval echo configure:3449: \"$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
***************
*** 3399,3405 ****
  DLINCLDIR=/
  
  echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6
! echo "configure:3403: checking for --with-sgi-dl" >&5
  # Check whether --with-sgi-dl or --without-sgi-dl was given.
  if test "${with_sgi_dl+set}" = set; then
    withval="$with_sgi_dl"
--- 3481,3487 ----
  DLINCLDIR=/
  
  echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6
! echo "configure:3485: checking for --with-sgi-dl" >&5
  # Check whether --with-sgi-dl or --without-sgi-dl was given.
  if test "${with_sgi_dl+set}" = set; then
    withval="$with_sgi_dl"
***************
*** 3423,3429 ****
  
  
  echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6
! echo "configure:3427: checking for --with-dl-dld" >&5
  # Check whether --with-dl-dld or --without-dl-dld was given.
  if test "${with_dl_dld+set}" = set; then
    withval="$with_dl_dld"
--- 3505,3511 ----
  
  
  echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6
! echo "configure:3509: checking for --with-dl-dld" >&5
  # Check whether --with-dl-dld or --without-dl-dld was given.
  if test "${with_dl_dld+set}" = set; then
    withval="$with_dl_dld"
***************
*** 3450,3461 ****
  # the dlopen() function means we might want to use dynload_shlib.o. some
  # platforms, such as AIX, have dlopen(), but don't want to use it.
  echo $ac_n "checking for dlopen""... $ac_c" 1>&6
! echo "configure:3454: checking for dlopen" >&5
  if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3459 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char dlopen(); below.  */
--- 3532,3543 ----
  # the dlopen() function means we might want to use dynload_shlib.o. some
  # platforms, such as AIX, have dlopen(), but don't want to use it.
  echo $ac_n "checking for dlopen""... $ac_c" 1>&6
! echo "configure:3536: checking for dlopen" >&5
  if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3541 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char dlopen(); below.  */
***************
*** 3478,3484 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:3482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    eval "ac_cv_func_dlopen=yes"
  else
--- 3560,3566 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:3564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    eval "ac_cv_func_dlopen=yes"
  else
***************
*** 3502,3508 ****
  # loading of modules.
  
  echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6
! echo "configure:3506: checking DYNLOADFILE" >&5
  if test -z "$DYNLOADFILE"
  then
  	case $ac_sys_system/$ac_sys_release in
--- 3584,3590 ----
  # loading of modules.
  
  echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6
! echo "configure:3588: checking DYNLOADFILE" >&5
  if test -z "$DYNLOADFILE"
  then
  	case $ac_sys_system/$ac_sys_release in
***************
*** 3541,3552 ****
   truncate uname waitpid
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:3545: 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 3550 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
--- 3623,3634 ----
   truncate uname waitpid
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:3627: 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 3632 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
***************
*** 3569,3575 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:3573: \"$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
--- 3651,3657 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:3655: \"$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
***************
*** 3598,3609 ****
  for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:3602: 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 3607 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
--- 3680,3691 ----
  for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:3684: 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 3689 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
***************
*** 3626,3632 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:3630: \"$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
--- 3708,3714 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:3712: \"$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
***************
*** 3654,3665 ****
  for ac_func in dup2 getcwd strdup strerror memmove
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:3658: 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 3663 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
--- 3736,3747 ----
  for ac_func in dup2 getcwd strdup strerror memmove
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:3740: 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 3745 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
***************
*** 3682,3688 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:3686: \"$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
--- 3764,3770 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:3768: \"$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
***************
*** 3709,3720 ****
  
  
  echo $ac_n "checking for getpgrp""... $ac_c" 1>&6
! echo "configure:3713: checking for getpgrp" >&5
  if eval "test \"`echo '$''{'ac_cv_func_getpgrp'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3718 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char getpgrp(); below.  */
--- 3791,3802 ----
  
  
  echo $ac_n "checking for getpgrp""... $ac_c" 1>&6
! echo "configure:3795: checking for getpgrp" >&5
  if eval "test \"`echo '$''{'ac_cv_func_getpgrp'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3800 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char getpgrp(); below.  */
***************
*** 3737,3743 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:3741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    eval "ac_cv_func_getpgrp=yes"
  else
--- 3819,3825 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:3823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    eval "ac_cv_func_getpgrp=yes"
  else
***************
*** 3752,3765 ****
  if eval "test \"`echo '$ac_cv_func_'getpgrp`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    cat > conftest.$ac_ext <<EOF
! #line 3756 "configure"
  #include "confdefs.h"
  #include <unistd.h>
  int main() {
  getpgrp(0);
  ; return 0; }
  EOF
! if { (eval echo configure:3763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    cat >> confdefs.h <<\EOF
  #define GETPGRP_HAVE_ARG 1
--- 3834,3847 ----
  if eval "test \"`echo '$ac_cv_func_'getpgrp`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    cat > conftest.$ac_ext <<EOF
! #line 3838 "configure"
  #include "confdefs.h"
  #include <unistd.h>
  int main() {
  getpgrp(0);
  ; return 0; }
  EOF
! if { (eval echo configure:3845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    cat >> confdefs.h <<\EOF
  #define GETPGRP_HAVE_ARG 1
***************
*** 3775,3786 ****
  fi
  
  echo $ac_n "checking for setpgrp""... $ac_c" 1>&6
! echo "configure:3779: checking for setpgrp" >&5
  if eval "test \"`echo '$''{'ac_cv_func_setpgrp'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3784 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char setpgrp(); below.  */
--- 3857,3868 ----
  fi
  
  echo $ac_n "checking for setpgrp""... $ac_c" 1>&6
! echo "configure:3861: checking for setpgrp" >&5
  if eval "test \"`echo '$''{'ac_cv_func_setpgrp'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3866 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char setpgrp(); below.  */
***************
*** 3803,3809 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:3807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    eval "ac_cv_func_setpgrp=yes"
  else
--- 3885,3891 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:3889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    eval "ac_cv_func_setpgrp=yes"
  else
***************
*** 3818,3831 ****
  if eval "test \"`echo '$ac_cv_func_'setpgrp`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    cat > conftest.$ac_ext <<EOF
! #line 3822 "configure"
  #include "confdefs.h"
  #include <unistd.h>
  int main() {
  setpgrp(0,0);
  ; return 0; }
  EOF
! if { (eval echo configure:3829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    cat >> confdefs.h <<\EOF
  #define SETPGRP_HAVE_ARG 1
--- 3900,3913 ----
  if eval "test \"`echo '$ac_cv_func_'setpgrp`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    cat > conftest.$ac_ext <<EOF
! #line 3904 "configure"
  #include "confdefs.h"
  #include <unistd.h>
  int main() {
  setpgrp(0,0);
  ; return 0; }
  EOF
! if { (eval echo configure:3911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    cat >> confdefs.h <<\EOF
  #define SETPGRP_HAVE_ARG 1
***************
*** 3841,3852 ****
  fi
  
  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
! echo "configure:3845: checking for gettimeofday" >&5
  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3850 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char gettimeofday(); below.  */
--- 3923,3934 ----
  fi
  
  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
! echo "configure:3927: checking for gettimeofday" >&5
  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3932 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char gettimeofday(); below.  */
***************
*** 3869,3875 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:3873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    eval "ac_cv_func_gettimeofday=yes"
  else
--- 3951,3957 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:3955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    eval "ac_cv_func_gettimeofday=yes"
  else
***************
*** 3884,3897 ****
  if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    cat > conftest.$ac_ext <<EOF
! #line 3888 "configure"
  #include "confdefs.h"
  #include <sys/time.h>
  int main() {
  gettimeofday((struct timeval*)0,(struct timezone*)0);
  ; return 0; }
  EOF
! if { (eval echo configure:3895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    :
  else
    echo "configure: failed program was:" >&5
--- 3966,3979 ----
  if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    cat > conftest.$ac_ext <<EOF
! #line 3970 "configure"
  #include "confdefs.h"
  #include <sys/time.h>
  int main() {
  gettimeofday((struct timeval*)0,(struct timezone*)0);
  ; return 0; }
  EOF
! if { (eval echo configure:3977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    :
  else
    echo "configure: failed program was:" >&5
***************
*** 3910,3921 ****
  
  # checks for structures
  echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
! echo "configure:3914: 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 3919 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <sys/time.h>
--- 3992,4003 ----
  
  # checks for structures
  echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
! echo "configure:3996: 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 4001 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <sys/time.h>
***************
*** 3924,3930 ****
  struct tm *tp;
  ; return 0; }
  EOF
! if { (eval echo configure:3928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_header_time=yes
  else
--- 4006,4012 ----
  struct tm *tp;
  ; return 0; }
  EOF
! if { (eval echo configure:4010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_header_time=yes
  else
***************
*** 3945,3956 ****
  fi
  
  echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
! echo "configure:3949: checking whether struct tm is in sys/time.h or time.h" >&5
  if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3954 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <time.h>
--- 4027,4038 ----
  fi
  
  echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
! echo "configure:4031: checking whether struct tm is in sys/time.h or time.h" >&5
  if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4036 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <time.h>
***************
*** 3958,3964 ****
  struct tm *tp; tp->tm_sec;
  ; return 0; }
  EOF
! if { (eval echo configure:3962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_struct_tm=time.h
  else
--- 4040,4046 ----
  struct tm *tp; tp->tm_sec;
  ; return 0; }
  EOF
! if { (eval echo configure:4044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_struct_tm=time.h
  else
***************
*** 3979,3990 ****
  fi
  
  echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
! echo "configure:3983: checking for tm_zone in struct tm" >&5
  if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3988 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <$ac_cv_struct_tm>
--- 4061,4072 ----
  fi
  
  echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
! echo "configure:4065: checking for tm_zone in struct tm" >&5
  if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4070 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <$ac_cv_struct_tm>
***************
*** 3992,3998 ****
  struct tm tm; tm.tm_zone;
  ; return 0; }
  EOF
! if { (eval echo configure:3996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_struct_tm_zone=yes
  else
--- 4074,4080 ----
  struct tm tm; tm.tm_zone;
  ; return 0; }
  EOF
! if { (eval echo configure:4078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_struct_tm_zone=yes
  else
***************
*** 4012,4023 ****
  
  else
    echo $ac_n "checking for tzname""... $ac_c" 1>&6
! echo "configure:4016: checking for tzname" >&5
  if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4021 "configure"
  #include "confdefs.h"
  #include <time.h>
  #ifndef tzname /* For SGI.  */
--- 4094,4105 ----
  
  else
    echo $ac_n "checking for tzname""... $ac_c" 1>&6
! echo "configure:4098: checking for tzname" >&5
  if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4103 "configure"
  #include "confdefs.h"
  #include <time.h>
  #ifndef tzname /* For SGI.  */
***************
*** 4027,4033 ****
  atoi(*tzname);
  ; return 0; }
  EOF
! if { (eval echo configure:4031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    ac_cv_var_tzname=yes
  else
--- 4109,4115 ----
  atoi(*tzname);
  ; return 0; }
  EOF
! if { (eval echo configure:4113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    ac_cv_var_tzname=yes
  else
***************
*** 4050,4068 ****
  
  
  echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6
! echo "configure:4054: checking for time.h that defines altzone" >&5
  if eval "test \"`echo '$''{'ac_cv_header_time_altzone'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4059 "configure"
  #include "confdefs.h"
  #include <time.h>
  int main() {
  return altzone;
  ; return 0; }
  EOF
! if { (eval echo configure:4066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_header_time_altzone=yes
  else
--- 4132,4150 ----
  
  
  echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6
! echo "configure:4136: checking for time.h that defines altzone" >&5
  if eval "test \"`echo '$''{'ac_cv_header_time_altzone'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4141 "configure"
  #include "confdefs.h"
  #include <time.h>
  int main() {
  return altzone;
  ; return 0; }
  EOF
! if { (eval echo configure:4148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_header_time_altzone=yes
  else
***************
*** 4084,4092 ****
  
  was_it_defined=no
  echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6
! echo "configure:4088: checking whether sys/select.h and sys/time.h may both be included" >&5
  cat > conftest.$ac_ext <<EOF
! #line 4090 "configure"
  #include "confdefs.h"
  
  #include <sys/types.h>
--- 4166,4174 ----
  
  was_it_defined=no
  echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6
! echo "configure:4170: checking whether sys/select.h and sys/time.h may both be included" >&5
  cat > conftest.$ac_ext <<EOF
! #line 4172 "configure"
  #include "confdefs.h"
  
  #include <sys/types.h>
***************
*** 4097,4103 ****
  ;
  ; return 0; }
  EOF
! if { (eval echo configure:4101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    cat >> confdefs.h <<\EOF
  #define SYS_SELECT_WITH_SYS_TIME 1
--- 4179,4185 ----
  ;
  ; return 0; }
  EOF
! if { (eval echo configure:4183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    cat >> confdefs.h <<\EOF
  #define SYS_SELECT_WITH_SYS_TIME 1
***************
*** 4113,4126 ****
  # checks for compiler characteristics
  
  echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
! echo "configure:4117: checking whether char is unsigned" >&5
  if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    if test "$GCC" = yes; then
    # GCC predefines this symbol on systems where it applies.
  cat > conftest.$ac_ext <<EOF
! #line 4124 "configure"
  #include "confdefs.h"
  #ifdef __CHAR_UNSIGNED__
    yes
--- 4195,4208 ----
  # checks for compiler characteristics
  
  echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
! echo "configure:4199: checking whether char is unsigned" >&5
  if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    if test "$GCC" = yes; then
    # GCC predefines this symbol on systems where it applies.
  cat > conftest.$ac_ext <<EOF
! #line 4206 "configure"
  #include "confdefs.h"
  #ifdef __CHAR_UNSIGNED__
    yes
***************
*** 4142,4148 ****
      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  else
    cat > conftest.$ac_ext <<EOF
! #line 4146 "configure"
  #include "confdefs.h"
  /* volatile prevents gcc2 from optimizing the test away on sparcs.  */
  #if !defined(__STDC__) || __STDC__ != 1
--- 4224,4230 ----
      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  else
    cat > conftest.$ac_ext <<EOF
! #line 4228 "configure"
  #include "confdefs.h"
  /* volatile prevents gcc2 from optimizing the test away on sparcs.  */
  #if !defined(__STDC__) || __STDC__ != 1
***************
*** 4152,4158 ****
    volatile char c = 255; exit(c < 0);
  }
  EOF
! if { (eval echo configure:4156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
    ac_cv_c_char_unsigned=yes
  else
--- 4234,4240 ----
    volatile char c = 255; exit(c < 0);
  }
  EOF
! if { (eval echo configure:4238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
    ac_cv_c_char_unsigned=yes
  else
***************
*** 4176,4187 ****
  fi
  
  echo $ac_n "checking for working const""... $ac_c" 1>&6
! echo "configure:4180: checking for working const" >&5
  if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4185 "configure"
  #include "confdefs.h"
  
  int main() {
--- 4258,4269 ----
  fi
  
  echo $ac_n "checking for working const""... $ac_c" 1>&6
! echo "configure:4262: checking for working const" >&5
  if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4267 "configure"
  #include "confdefs.h"
  
  int main() {
***************
*** 4230,4236 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:4234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_c_const=yes
  else
--- 4312,4318 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:4316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_c_const=yes
  else
***************
*** 4251,4271 ****
  fi
  
  echo $ac_n "checking for inline""... $ac_c" 1>&6
! echo "configure:4255: checking for inline" >&5
  if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    ac_cv_c_inline=no
  for ac_kw in inline __inline__ __inline; do
    cat > conftest.$ac_ext <<EOF
! #line 4262 "configure"
  #include "confdefs.h"
  
  int main() {
  } $ac_kw foo() {
  ; return 0; }
  EOF
! if { (eval echo configure:4269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_c_inline=$ac_kw; break
  else
--- 4333,4353 ----
  fi
  
  echo $ac_n "checking for inline""... $ac_c" 1>&6
! echo "configure:4337: checking for inline" >&5
  if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    ac_cv_c_inline=no
  for ac_kw in inline __inline__ __inline; do
    cat > conftest.$ac_ext <<EOF
! #line 4344 "configure"
  #include "confdefs.h"
  
  int main() {
  } $ac_kw foo() {
  ; return 0; }
  EOF
! if { (eval echo configure:4351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_c_inline=$ac_kw; break
  else
***************
*** 4293,4308 ****
  
  works=no
  echo $ac_n "checking for working volatile""... $ac_c" 1>&6
! echo "configure:4297: checking for working volatile" >&5
  cat > conftest.$ac_ext <<EOF
! #line 4299 "configure"
  #include "confdefs.h"
  
  int main() {
  volatile int x; x = 0;
  ; return 0; }
  EOF
! if { (eval echo configure:4306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    works=yes
  else
--- 4375,4390 ----
  
  works=no
  echo $ac_n "checking for working volatile""... $ac_c" 1>&6
! echo "configure:4379: checking for working volatile" >&5
  cat > conftest.$ac_ext <<EOF
! #line 4381 "configure"
  #include "confdefs.h"
  
  int main() {
  volatile int x; x = 0;
  ; return 0; }
  EOF
! if { (eval echo configure:4388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    works=yes
  else
***************
*** 4319,4334 ****
  
  works=no
  echo $ac_n "checking for working signed char""... $ac_c" 1>&6
! echo "configure:4323: checking for working signed char" >&5
  cat > conftest.$ac_ext <<EOF
! #line 4325 "configure"
  #include "confdefs.h"
  
  int main() {
  signed char c;
  ; return 0; }
  EOF
! if { (eval echo configure:4332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    works=yes
  else
--- 4401,4416 ----
  
  works=no
  echo $ac_n "checking for working signed char""... $ac_c" 1>&6
! echo "configure:4405: checking for working signed char" >&5
  cat > conftest.$ac_ext <<EOF
! #line 4407 "configure"
  #include "confdefs.h"
  
  int main() {
  signed char c;
  ; return 0; }
  EOF
! if { (eval echo configure:4414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    works=yes
  else
***************
*** 4345,4360 ****
  
  have_prototypes=no
  echo $ac_n "checking for prototypes""... $ac_c" 1>&6
! echo "configure:4349: checking for prototypes" >&5
  cat > conftest.$ac_ext <<EOF
! #line 4351 "configure"
  #include "confdefs.h"
  int foo(int x) { return 0; }
  int main() {
  return foo(10);
  ; return 0; }
  EOF
! if { (eval echo configure:4358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    cat >> confdefs.h <<\EOF
  #define HAVE_PROTOTYPES 1
--- 4427,4442 ----
  
  have_prototypes=no
  echo $ac_n "checking for prototypes""... $ac_c" 1>&6
! echo "configure:4431: checking for prototypes" >&5
  cat > conftest.$ac_ext <<EOF
! #line 4433 "configure"
  #include "confdefs.h"
  int foo(int x) { return 0; }
  int main() {
  return foo(10);
  ; return 0; }
  EOF
! if { (eval echo configure:4440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    cat >> confdefs.h <<\EOF
  #define HAVE_PROTOTYPES 1
***************
*** 4369,4377 ****
  
  works=no
  echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6
! echo "configure:4373: checking for variable length prototypes and stdarg.h" >&5
  cat > conftest.$ac_ext <<EOF
! #line 4375 "configure"
  #include "confdefs.h"
  
  #include <stdarg.h>
--- 4451,4459 ----
  
  works=no
  echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6
! echo "configure:4455: checking for variable length prototypes and stdarg.h" >&5
  cat > conftest.$ac_ext <<EOF
! #line 4457 "configure"
  #include "confdefs.h"
  
  #include <stdarg.h>
***************
*** 4388,4394 ****
  return foo(10, "", 3.14);
  ; return 0; }
  EOF
! if { (eval echo configure:4392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    cat >> confdefs.h <<\EOF
  #define HAVE_STDARG_PROTOTYPES 1
--- 4470,4476 ----
  return foo(10, "", 3.14);
  ; return 0; }
  EOF
! if { (eval echo configure:4474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    cat >> confdefs.h <<\EOF
  #define HAVE_STDARG_PROTOTYPES 1
***************
*** 4404,4419 ****
  if test "$have_prototypes" = yes; then
  bad_prototypes=no
  echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6
! echo "configure:4408: checking for bad exec* prototypes" >&5
  cat > conftest.$ac_ext <<EOF
! #line 4410 "configure"
  #include "confdefs.h"
  #include <unistd.h>
  int main() {
  char **t;execve("@",t,t);
  ; return 0; }
  EOF
! if { (eval echo configure:4417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    :
  else
    echo "configure: failed program was:" >&5
--- 4486,4501 ----
  if test "$have_prototypes" = yes; then
  bad_prototypes=no
  echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6
! echo "configure:4490: checking for bad exec* prototypes" >&5
  cat > conftest.$ac_ext <<EOF
! #line 4492 "configure"
  #include "confdefs.h"
  #include <unistd.h>
  int main() {
  char **t;execve("@",t,t);
  ; return 0; }
  EOF
! if { (eval echo configure:4499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    :
  else
    echo "configure: failed program was:" >&5
***************
*** 4430,4441 ****
  
  bad_forward=no
  echo $ac_n "checking for bad static forward""... $ac_c" 1>&6
! echo "configure:4434: checking for bad static forward" >&5
  if test "$cross_compiling" = yes; then
      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  else
    cat > conftest.$ac_ext <<EOF
! #line 4439 "configure"
  #include "confdefs.h"
  
  struct s { int a; int b; };
--- 4512,4523 ----
  
  bad_forward=no
  echo $ac_n "checking for bad static forward""... $ac_c" 1>&6
! echo "configure:4516: checking for bad static forward" >&5
  if test "$cross_compiling" = yes; then
      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  else
    cat > conftest.$ac_ext <<EOF
! #line 4521 "configure"
  #include "confdefs.h"
  
  struct s { int a; int b; };
***************
*** 4451,4457 ****
  }
  
  EOF
! if { (eval echo configure:4455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
    :
  else
--- 4533,4539 ----
  }
  
  EOF
! if { (eval echo configure:4537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
    :
  else
***************
*** 4470,4478 ****
  
  va_list_is_array=no
  echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6
! echo "configure:4474: checking whether va_list is an array" >&5
  cat > conftest.$ac_ext <<EOF
! #line 4476 "configure"
  #include "confdefs.h"
  
  #ifdef HAVE_STDARG_PROTOTYPES
--- 4552,4560 ----
  
  va_list_is_array=no
  echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6
! echo "configure:4556: checking whether va_list is an array" >&5
  cat > conftest.$ac_ext <<EOF
! #line 4558 "configure"
  #include "confdefs.h"
  
  #ifdef HAVE_STDARG_PROTOTYPES
***************
*** 4485,4491 ****
  va_list list1, list2; list1 = list2;
  ; return 0; }
  EOF
! if { (eval echo configure:4489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    :
  else
    echo "configure: failed program was:" >&5
--- 4567,4573 ----
  va_list list1, list2; list1 = list2;
  ; return 0; }
  EOF
! if { (eval echo configure:4571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    :
  else
    echo "configure: failed program was:" >&5
***************
*** 4501,4512 ****
  
  # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
  echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
! echo "configure:4505: checking for gethostbyname_r" >&5
  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4510 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char gethostbyname_r(); below.  */
--- 4583,4594 ----
  
  # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
  echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
! echo "configure:4587: checking for gethostbyname_r" >&5
  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4592 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char gethostbyname_r(); below.  */
***************
*** 4529,4535 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:4533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    eval "ac_cv_func_gethostbyname_r=yes"
  else
--- 4611,4617 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:4615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    eval "ac_cv_func_gethostbyname_r=yes"
  else
***************
*** 4549,4559 ****
  EOF
  
    echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6
! echo "configure:4553: checking gethostbyname_r with 6 args" >&5
    OLD_CFLAGS=$CFLAGS
    CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
    cat > conftest.$ac_ext <<EOF
! #line 4557 "configure"
  #include "confdefs.h"
  
  #   include <netdb.h>
--- 4631,4641 ----
  EOF
  
    echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6
! echo "configure:4635: checking gethostbyname_r with 6 args" >&5
    OLD_CFLAGS=$CFLAGS
    CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
    cat > conftest.$ac_ext <<EOF
! #line 4639 "configure"
  #include "confdefs.h"
  
  #   include <netdb.h>
***************
*** 4570,4576 ****
    
  ; return 0; }
  EOF
! if { (eval echo configure:4574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    
      cat >> confdefs.h <<\EOF
--- 4652,4658 ----
    
  ; return 0; }
  EOF
! if { (eval echo configure:4656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    
      cat >> confdefs.h <<\EOF
***************
*** 4590,4598 ****
    
      echo "$ac_t""no" 1>&6
      echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6
! echo "configure:4594: checking gethostbyname_r with 5 args" >&5
      cat > conftest.$ac_ext <<EOF
! #line 4596 "configure"
  #include "confdefs.h"
  
  #     include <netdb.h>
--- 4672,4680 ----
    
      echo "$ac_t""no" 1>&6
      echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6
! echo "configure:4676: checking gethostbyname_r with 5 args" >&5
      cat > conftest.$ac_ext <<EOF
! #line 4678 "configure"
  #include "confdefs.h"
  
  #     include <netdb.h>
***************
*** 4609,4615 ****
      
  ; return 0; }
  EOF
! if { (eval echo configure:4613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    
        cat >> confdefs.h <<\EOF
--- 4691,4697 ----
      
  ; return 0; }
  EOF
! if { (eval echo configure:4695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    
        cat >> confdefs.h <<\EOF
***************
*** 4629,4637 ****
    
        echo "$ac_t""no" 1>&6
        echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6
! echo "configure:4633: checking gethostbyname_r with 3 args" >&5
        cat > conftest.$ac_ext <<EOF
! #line 4635 "configure"
  #include "confdefs.h"
  
  #       include <netdb.h>
--- 4711,4719 ----
    
        echo "$ac_t""no" 1>&6
        echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6
! echo "configure:4715: checking gethostbyname_r with 3 args" >&5
        cat > conftest.$ac_ext <<EOF
! #line 4717 "configure"
  #include "confdefs.h"
  
  #       include <netdb.h>
***************
*** 4646,4652 ****
        
  ; return 0; }
  EOF
! if { (eval echo configure:4650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    
          cat >> confdefs.h <<\EOF
--- 4728,4734 ----
        
  ; return 0; }
  EOF
! if { (eval echo configure:4732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    
          cat >> confdefs.h <<\EOF
***************
*** 4680,4691 ****
    echo "$ac_t""no" 1>&6
  
    echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
! echo "configure:4684: checking for gethostbyname" >&5
  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4689 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char gethostbyname(); below.  */
--- 4762,4773 ----
    echo "$ac_t""no" 1>&6
  
    echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
! echo "configure:4766: checking for gethostbyname" >&5
  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4771 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char gethostbyname(); below.  */
***************
*** 4708,4714 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:4712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    eval "ac_cv_func_gethostbyname=yes"
  else
--- 4790,4796 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:4794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    eval "ac_cv_func_gethostbyname=yes"
  else
***************
*** 4744,4750 ****
  
  # Linux requires this for correct f.p. operations
  echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6
! echo "configure:4748: checking for __fpu_control in -lieee" >&5
  ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 4826,4832 ----
  
  # Linux requires this for correct f.p. operations
  echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6
! echo "configure:4830: checking for __fpu_control in -lieee" >&5
  ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 4752,4758 ****
    ac_save_LIBS="$LIBS"
  LIBS="-lieee  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 4756 "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
--- 4834,4840 ----
    ac_save_LIBS="$LIBS"
  LIBS="-lieee  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 4838 "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
***************
*** 4763,4769 ****
  __fpu_control()
  ; return 0; }
  EOF
! if { (eval echo configure:4767: \"$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
--- 4845,4851 ----
  __fpu_control()
  ; return 0; }
  EOF
! if { (eval echo configure:4849: \"$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
***************
*** 4793,4799 ****
  
  # Check for --with-fpectl
  echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6
! echo "configure:4797: checking for --with-fpectl" >&5
  # Check whether --with-fpectl or --without-fpectl was given.
  if test "${with_fpectl+set}" = set; then
    withval="$with_fpectl"
--- 4875,4881 ----
  
  # Check for --with-fpectl
  echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6
! echo "configure:4879: checking for --with-fpectl" >&5
  # Check whether --with-fpectl or --without-fpectl was given.
  if test "${with_fpectl+set}" = set; then
    withval="$with_fpectl"
***************
*** 4818,4824 ****
  *) LIBM=-lm
  esac
  echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6
! echo "configure:4822: checking for --with-libm=STRING" >&5
  # Check whether --with-libm or --without-libm was given.
  if test "${with_libm+set}" = set; then
    withval="$with_libm"
--- 4900,4906 ----
  *) LIBM=-lm
  esac
  echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6
! echo "configure:4904: checking for --with-libm=STRING" >&5
  # Check whether --with-libm or --without-libm was given.
  if test "${with_libm+set}" = set; then
    withval="$with_libm"
***************
*** 4839,4845 ****
  # check for --with-libc=...
  
  echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6
! echo "configure:4843: checking for --with-libc=STRING" >&5
  # Check whether --with-libc or --without-libc was given.
  if test "${with_libc+set}" = set; then
    withval="$with_libc"
--- 4921,4927 ----
  # check for --with-libc=...
  
  echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6
! echo "configure:4925: checking for --with-libc=STRING" >&5
  # Check whether --with-libc or --without-libc was given.
  if test "${with_libc+set}" = set; then
    withval="$with_libc"
***************
*** 4863,4874 ****
  for ac_func in hypot
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:4867: 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 4872 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
--- 4945,4956 ----
  for ac_func in hypot
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:4949: 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 4954 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
***************
*** 4891,4897 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:4895: \"$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
--- 4973,4979 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:4977: \"$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
***************
*** 4918,4929 ****
  for ac_func in hypot
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:4922: 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 4927 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
--- 5000,5011 ----
  for ac_func in hypot
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:5004: 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 5009 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
***************
*** 4946,4952 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:4950: \"$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
--- 5028,5034 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:5032: \"$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
***************
*** 4980,4991 ****
  for ac_func in rint
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:4984: 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 4989 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
--- 5062,5073 ----
  for ac_func in rint
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:5066: 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 5071 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
***************
*** 5008,5014 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:5012: \"$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
--- 5090,5096 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:5094: \"$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
***************
*** 5036,5042 ****
  
  # check for getopt
  echo $ac_n "checking for genuine getopt""... $ac_c" 1>&6
! echo "configure:5040: checking for genuine getopt" >&5
  if eval "test \"`echo '$''{'ac_cv_func_getopt'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 5118,5124 ----
  
  # check for getopt
  echo $ac_n "checking for genuine getopt""... $ac_c" 1>&6
! echo "configure:5122: checking for genuine getopt" >&5
  if eval "test \"`echo '$''{'ac_cv_func_getopt'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 5044,5050 ****
    ac_cv_func_getopt=no
  else
    cat > conftest.$ac_ext <<EOF
! #line 5048 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  extern int optind, opterr, getopt();
--- 5126,5132 ----
    ac_cv_func_getopt=no
  else
    cat > conftest.$ac_ext <<EOF
! #line 5130 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  extern int optind, opterr, getopt();
***************
*** 5056,5062 ****
  	exit(0);
  }
  EOF
! if { (eval echo configure:5060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
    ac_cv_func_getopt=yes
  else
--- 5138,5144 ----
  	exit(0);
  }
  EOF
! if { (eval echo configure:5142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
    ac_cv_func_getopt=yes
  else
***************
*** 5074,5080 ****
  
  # check whether malloc(0) returns NULL or not
  echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6
! echo "configure:5078: checking what malloc(0) returns" >&5
  if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 5156,5162 ----
  
  # check whether malloc(0) returns NULL or not
  echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6
! echo "configure:5160: checking what malloc(0) returns" >&5
  if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 5082,5088 ****
      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  else
    cat > conftest.$ac_ext <<EOF
! #line 5086 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  #ifdef HAVE_STDLIB
--- 5164,5170 ----
      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  else
    cat > conftest.$ac_ext <<EOF
! #line 5168 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  #ifdef HAVE_STDLIB
***************
*** 5101,5107 ****
  	exit(0);
  }
  EOF
! if { (eval echo configure:5105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
    ac_cv_malloc_zero=nonnull
  else
--- 5183,5189 ----
  	exit(0);
  }
  EOF
! if { (eval echo configure:5187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
    ac_cv_malloc_zero=nonnull
  else
***************
*** 5127,5143 ****
  # check for wchar.h
  ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for wchar.h""... $ac_c" 1>&6
! echo "configure:5131: checking for wchar.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 5136 "configure"
  #include "confdefs.h"
  #include <wchar.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:5141: \"$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*
--- 5209,5225 ----
  # check for wchar.h
  ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for wchar.h""... $ac_c" 1>&6
! echo "configure:5213: checking for wchar.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 5218 "configure"
  #include "confdefs.h"
  #include <wchar.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:5223: \"$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*
***************
*** 5167,5178 ****
  # check for usable wchar_t
  usable_wchar_t="unkown"
  echo $ac_n "checking for usable wchar_t""... $ac_c" 1>&6
! echo "configure:5171: checking for usable wchar_t" >&5
  if test "$cross_compiling" = yes; then
      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  else
    cat > conftest.$ac_ext <<EOF
! #line 5176 "configure"
  #include "confdefs.h"
  
  #include "wchar.h"
--- 5249,5260 ----
  # check for usable wchar_t
  usable_wchar_t="unkown"
  echo $ac_n "checking for usable wchar_t""... $ac_c" 1>&6
! echo "configure:5253: checking for usable wchar_t" >&5
  if test "$cross_compiling" = yes; then
      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  else
    cat > conftest.$ac_ext <<EOF
! #line 5258 "configure"
  #include "confdefs.h"
  
  #include "wchar.h"
***************
*** 5186,5192 ****
  }
  
  EOF
! if { (eval echo configure:5190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
    cat >> confdefs.h <<\EOF
  #define HAVE_USABLE_WCHAR_T 1
--- 5268,5274 ----
  }
  
  EOF
! if { (eval echo configure:5272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
    cat >> confdefs.h <<\EOF
  #define HAVE_USABLE_WCHAR_T 1
***************
*** 5205,5218 ****
  
  # check for endianness
  echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
! echo "configure:5209: checking whether byte ordering is bigendian" >&5
  if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    ac_cv_c_bigendian=unknown
  # See if sys/param.h defines the BYTE_ORDER macro.
  cat > conftest.$ac_ext <<EOF
! #line 5216 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <sys/param.h>
--- 5287,5300 ----
  
  # check for endianness
  echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
! echo "configure:5291: checking whether byte ordering is bigendian" >&5
  if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    ac_cv_c_bigendian=unknown
  # See if sys/param.h defines the BYTE_ORDER macro.
  cat > conftest.$ac_ext <<EOF
! #line 5298 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <sys/param.h>
***************
*** 5223,5233 ****
  #endif
  ; return 0; }
  EOF
! if { (eval echo configure:5227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    # It does; now see whether it defined to BIG_ENDIAN or not.
  cat > conftest.$ac_ext <<EOF
! #line 5231 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <sys/param.h>
--- 5305,5315 ----
  #endif
  ; return 0; }
  EOF
! if { (eval echo configure:5309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    # It does; now see whether it defined to BIG_ENDIAN or not.
  cat > conftest.$ac_ext <<EOF
! #line 5313 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <sys/param.h>
***************
*** 5238,5244 ****
  #endif
  ; return 0; }
  EOF
! if { (eval echo configure:5242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_c_bigendian=yes
  else
--- 5320,5326 ----
  #endif
  ; return 0; }
  EOF
! if { (eval echo configure:5324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_c_bigendian=yes
  else
***************
*** 5258,5264 ****
      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  else
    cat > conftest.$ac_ext <<EOF
! #line 5262 "configure"
  #include "confdefs.h"
  main () {
    /* Are we little or big endian?  From Harbison&Steele.  */
--- 5340,5346 ----
      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  else
    cat > conftest.$ac_ext <<EOF
! #line 5344 "configure"
  #include "confdefs.h"
  main () {
    /* Are we little or big endian?  From Harbison&Steele.  */
***************
*** 5271,5277 ****
    exit (u.c[sizeof (long) - 1] == 1);
  }
  EOF
! if { (eval echo configure:5275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
    ac_cv_c_bigendian=no
  else
--- 5353,5359 ----
    exit (u.c[sizeof (long) - 1] == 1);
  }
  EOF
! if { (eval echo configure:5357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
    ac_cv_c_bigendian=no
  else
***************
*** 5297,5303 ****
  
  # Check for --with-wctype-functions
  echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6
! echo "configure:5301: checking for --with-wctype-functions" >&5
  # Check whether --with-wctype-functions or --without-wctype-functions was given.
  if test "${with_wctype_functions+set}" = set; then
    withval="$with_wctype_functions"
--- 5379,5385 ----
  
  # Check for --with-wctype-functions
  echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6
! echo "configure:5383: checking for --with-wctype-functions" >&5
  # Check whether --with-wctype-functions or --without-wctype-functions was given.
  if test "${with_wctype_functions+set}" = set; then
    withval="$with_wctype_functions"
***************
*** 5322,5333 ****
  #endif
  EOF
  echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
! echo "configure:5326: checking for socklen_t" >&5
  if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 5331 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #if STDC_HEADERS
--- 5404,5415 ----
  #endif
  EOF
  echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
! echo "configure:5408: checking for socklen_t" >&5
  if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 5413 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #if STDC_HEADERS

-- 
Trent Mick
trentm@activestate.com