/[LeafOK_CVS]/pvpgn-1.7.4/src/configure
ViewVC logotype

Diff of /pvpgn-1.7.4/src/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 by sysadm, Tue Jun 6 03:41:37 2006 UTC Revision 1.2 by sysadm, Sat Jul 12 10:28:37 2008 UTC
# Line 1  Line 1 
1  #! /bin/sh  #! /bin/sh
   
2  # Guess values for system-dependent variables and create Makefiles.  # Guess values for system-dependent variables and create Makefiles.
3  # Generated automatically using autoconf version 2.13  # Generated by GNU Autoconf 2.59.
 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.  
4  #  #
5    # Copyright (C) 2003 Free Software Foundation, Inc.
6  # This configure script is free software; the Free Software Foundation  # This configure script is free software; the Free Software Foundation
7  # gives unlimited permission to copy, distribute and modify it.  # gives unlimited permission to copy, distribute and modify it.
8    ## --------------------- ##
9    ## M4sh Initialization.  ##
10    ## --------------------- ##
11    
12    # Be Bourne compatible
13    if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14      emulate sh
15      NULLCMD=:
16      # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17      # is contrary to our usage.  Disable this feature.
18      alias -g '${1+"$@"}'='"$@"'
19    elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20      set -o posix
21    fi
22    DUALCASE=1; export DUALCASE # for MKS sh
23    
24    # Support unset when possible.
25    if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26      as_unset=unset
27    else
28      as_unset=false
29    fi
30    
31    
32    # Work around bugs in pre-3.0 UWIN ksh.
33    $as_unset ENV MAIL MAILPATH
34    PS1='$ '
35    PS2='> '
36    PS4='+ '
37    
38  # Defaults:  # NLS nuisances.
39  ac_help=  for as_var in \
40      LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41      LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42      LC_TELEPHONE LC_TIME
43    do
44      if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45        eval $as_var=C; export $as_var
46      else
47        $as_unset $as_var
48      fi
49    done
50    
51    # Required to use basename.
52    if expr a : '\(a\)' >/dev/null 2>&1; then
53      as_expr=expr
54    else
55      as_expr=false
56    fi
57    
58    if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59      as_basename=basename
60    else
61      as_basename=false
62    fi
63    
64    
65    # Name of the executable.
66    as_me=`$as_basename "$0" ||
67    $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68             X"$0" : 'X\(//\)$' \| \
69             X"$0" : 'X\(/\)$' \| \
70             .     : '\(.\)' 2>/dev/null ||
71    echo X/"$0" |
72        sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73              /^X\/\(\/\/\)$/{ s//\1/; q; }
74              /^X\/\(\/\).*/{ s//\1/; q; }
75              s/.*/./; q'`
76    
77    
78    # PATH needs CR, and LINENO needs CR and PATH.
79    # Avoid depending upon Character Ranges.
80    as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81    as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82    as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83    as_cr_digits='0123456789'
84    as_cr_alnum=$as_cr_Letters$as_cr_digits
85    
86    # The user is always right.
87    if test "${PATH_SEPARATOR+set}" != set; then
88      echo "#! /bin/sh" >conf$$.sh
89      echo  "exit 0"   >>conf$$.sh
90      chmod +x conf$$.sh
91      if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92        PATH_SEPARATOR=';'
93      else
94        PATH_SEPARATOR=:
95      fi
96      rm -f conf$$.sh
97    fi
98    
99    
100      as_lineno_1=$LINENO
101      as_lineno_2=$LINENO
102      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103      test "x$as_lineno_1" != "x$as_lineno_2" &&
104      test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105      # Find who we are.  Look in the path if we contain no path at all
106      # relative or not.
107      case $0 in
108        *[\\/]* ) as_myself=$0 ;;
109        *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110    for as_dir in $PATH
111    do
112      IFS=$as_save_IFS
113      test -z "$as_dir" && as_dir=.
114      test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115    done
116    
117           ;;
118      esac
119      # We did not find ourselves, most probably we were run as `sh COMMAND'
120      # in which case we are not to be found in the path.
121      if test "x$as_myself" = x; then
122        as_myself=$0
123      fi
124      if test ! -f "$as_myself"; then
125        { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126       { (exit 1); exit 1; }; }
127      fi
128      case $CONFIG_SHELL in
129      '')
130        as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131    for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132    do
133      IFS=$as_save_IFS
134      test -z "$as_dir" && as_dir=.
135      for as_base in sh bash ksh sh5; do
136             case $as_dir in
137             /*)
138               if ("$as_dir/$as_base" -c '
139      as_lineno_1=$LINENO
140      as_lineno_2=$LINENO
141      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142      test "x$as_lineno_1" != "x$as_lineno_2" &&
143      test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144                 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145                 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146                 CONFIG_SHELL=$as_dir/$as_base
147                 export CONFIG_SHELL
148                 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149               fi;;
150             esac
151           done
152    done
153    ;;
154      esac
155    
156      # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157      # uniformly replaced by the line number.  The first 'sed' inserts a
158      # line-number line before each line; the second 'sed' does the real
159      # work.  The second script uses 'N' to pair each line-number line
160      # with the numbered line, and appends trailing '-' during
161      # substitution so that $LINENO is not a special case at line end.
162      # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163      # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164      sed '=' <$as_myself |
165        sed '
166          N
167          s,$,-,
168          : loop
169          s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170          t loop
171          s,-$,,
172          s,^['$as_cr_digits']*\n,,
173        ' >$as_me.lineno &&
174      chmod +x $as_me.lineno ||
175        { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176       { (exit 1); exit 1; }; }
177    
178      # Don't try to exec as it changes $[0], causing all sort of problems
179      # (the dirname of $[0] is not the place where we might find the
180      # original and so on.  Autoconf is especially sensible to this).
181      . ./$as_me.lineno
182      # Exit status is that of the last command.
183      exit
184    }
185    
186    
187    case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188      *c*,-n*) ECHO_N= ECHO_C='
189    ' ECHO_T='      ' ;;
190      *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191      *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192    esac
193    
194    if expr a : '\(a\)' >/dev/null 2>&1; then
195      as_expr=expr
196    else
197      as_expr=false
198    fi
199    
200    rm -f conf$$ conf$$.exe conf$$.file
201    echo >conf$$.file
202    if ln -s conf$$.file conf$$ 2>/dev/null; then
203      # We could just check for DJGPP; but this test a) works b) is more generic
204      # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205      if test -f conf$$.exe; then
206        # Don't use ln at all; we don't have any links
207        as_ln_s='cp -p'
208      else
209        as_ln_s='ln -s'
210      fi
211    elif ln conf$$.file conf$$ 2>/dev/null; then
212      as_ln_s=ln
213    else
214      as_ln_s='cp -p'
215    fi
216    rm -f conf$$ conf$$.exe conf$$.file
217    
218    if mkdir -p . 2>/dev/null; then
219      as_mkdir_p=:
220    else
221      test -d ./-p && rmdir ./-p
222      as_mkdir_p=false
223    fi
224    
225    as_executable_p="test -f"
226    
227    # Sed expression to map a string onto a valid CPP name.
228    as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229    
230    # Sed expression to map a string onto a valid variable name.
231    as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232    
233    
234    # IFS
235    # We need space, tab and new line, in precisely that order.
236    as_nl='
237    '
238    IFS="   $as_nl"
239    
240    # CDPATH.
241    $as_unset CDPATH
242    
243    
244    # Name of the host.
245    # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246    # so uname gets run too.
247    ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248    
249    exec 6>&1
250    
251    #
252    # Initializations.
253    #
254  ac_default_prefix=/usr/local  ac_default_prefix=/usr/local
255  # Any additions from configure.in:  ac_config_libobj_dir=.
256  ac_help="$ac_help  cross_compiling=no
257    --with-warn             enable compiler warnings"  subdirs=
258  ac_help="$ac_help  MFLAGS=
259    --with-ansi             use ANSI C mode"  MAKEFLAGS=
260  ac_help="$ac_help  SHELL=${CONFIG_SHELL-/bin/sh}
261    --with-includes=DIR     search include DIR for header files"  
262  ac_help="$ac_help  # Maximum number of lines to put in a shell here document.
263    --with-libraries=DIR    search library DIR for libraries"  # This variable seems obsolete.  It should probably be removed, and
264  ac_help="$ac_help  # only ac_max_sed_lines should be used.
265    --with-efence           link with Electric Fence to find memory problems"  : ${ac_max_here_lines=38}
266  ac_help="$ac_help  
267    --with-mysql            include MySQL user accounts support"  # Identity of this package.
268  ac_help="$ac_help  PACKAGE_NAME=
269    --with-pgsql            include PostgreSQL user accounts support"  PACKAGE_TARNAME=
270  ac_help="$ac_help  PACKAGE_VERSION=
271    --with-mssql            include MSSQL user accounts support (requires FreeTDS includes/libs)"  PACKAGE_STRING=
272  ac_help="$ac_help  PACKAGE_BUGREPORT=
273    --enable-poll           Enable poll() instead of select().  Normally poll  
274                            is preferred over select, but configure knows poll  ac_unique_file="bnetd/handle_bnet.c"
275                            is broken on some platforms.  If you think you are  # Factoring default headers for most tests.
276                            smarter than the configure script, you may enable  ac_includes_default="\
277                            poll with this option.  #include <stdio.h>
278    --disable-poll          Disable the use of poll()."  #if HAVE_SYS_TYPES_H
279  ac_help="$ac_help  # include <sys/types.h>
280    --enable-bnetd          Enable building of bnetd server (default)  #endif
281    --disable-bnetd         Disable building of bnetd server"  #if HAVE_SYS_STAT_H
282  ac_help="$ac_help  # include <sys/stat.h>
283    --enable-d2cs           Enable building of d2cs server (default)  #endif
284    --disable-d2cs          Disable building of d2cs server"  #if STDC_HEADERS
285  ac_help="$ac_help  # include <stdlib.h>
286    --enable-d2dbs          Enable building of d2dbs server (default)  # include <stddef.h>
287    --disable-d2dbs         Disable building of d2dbs server"  #else
288    # if HAVE_STDLIB_H
289    #  include <stdlib.h>
290    # endif
291    #endif
292    #if HAVE_STRING_H
293    # if !STDC_HEADERS && HAVE_MEMORY_H
294    #  include <memory.h>
295    # endif
296    # include <string.h>
297    #endif
298    #if HAVE_STRINGS_H
299    # include <strings.h>
300    #endif
301    #if HAVE_INTTYPES_H
302    # include <inttypes.h>
303    #else
304    # if HAVE_STDINT_H
305    #  include <stdint.h>
306    # endif
307    #endif
308    #if HAVE_UNISTD_H
309    # include <unistd.h>
310    #endif"
311    
312    ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP DEFINES enable_bnetd enable_d2cs enable_d2dbs COMPILEANSI1 COMPILEANSI2 COMPILEANSI3 ANSI2KNR_TMP ANSI2KNR_DEP LIBOBJS LTLIBOBJS'
313    ac_subst_files=''
314    
315  # Initialize some variables set by options.  # Initialize some variables set by options.
316    ac_init_help=
317    ac_init_version=false
318  # The variables have the same names as the options, with  # The variables have the same names as the options, with
319  # dashes changed to underlines.  # dashes changed to underlines.
320  build=NONE  cache_file=/dev/null
 cache_file=./config.cache  
321  exec_prefix=NONE  exec_prefix=NONE
 host=NONE  
322  no_create=  no_create=
 nonopt=NONE  
323  no_recursion=  no_recursion=
324  prefix=NONE  prefix=NONE
325  program_prefix=NONE  program_prefix=NONE
# Line 61  program_transform_name=s,x,x, Line 328  program_transform_name=s,x,x,
328  silent=  silent=
329  site=  site=
330  srcdir=  srcdir=
 target=NONE  
331  verbose=  verbose=
332  x_includes=NONE  x_includes=NONE
333  x_libraries=NONE  x_libraries=NONE
334    
335    # Installation directory options.
336    # These are left unexpanded so users can "make install exec_prefix=/foo"
337    # and all the variables that are supposed to be based on exec_prefix
338    # by default will actually change.
339    # Use braces instead of parens because sh, perl, etc. also accept them.
340  bindir='${exec_prefix}/bin'  bindir='${exec_prefix}/bin'
341  sbindir='${exec_prefix}/sbin'  sbindir='${exec_prefix}/sbin'
342  libexecdir='${exec_prefix}/libexec'  libexecdir='${exec_prefix}/libexec'
# Line 78  oldincludedir='/usr/include' Line 350  oldincludedir='/usr/include'
350  infodir='${prefix}/info'  infodir='${prefix}/info'
351  mandir='${prefix}/man'  mandir='${prefix}/man'
352    
 # Initialize some other variables.  
 subdirs=  
 MFLAGS= MAKEFLAGS=  
 SHELL=${CONFIG_SHELL-/bin/sh}  
 # Maximum number of lines to put in a shell here document.  
 ac_max_here_lines=12  
   
353  ac_prev=  ac_prev=
354  for ac_option  for ac_option
355  do  do
   
356    # If the previous option needs an argument, assign it.    # If the previous option needs an argument, assign it.
357    if test -n "$ac_prev"; then    if test -n "$ac_prev"; then
358      eval "$ac_prev=\$ac_option"      eval "$ac_prev=\$ac_option"
# Line 96  do Line 360  do
360      continue      continue
361    fi    fi
362    
363    case "$ac_option" in    ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;  
   *) ac_optarg= ;;  
   esac  
364    
365    # Accept the important Cygnus configure options, so we can diagnose typos.    # Accept the important Cygnus configure options, so we can diagnose typos.
366    
367    case "$ac_option" in    case $ac_option in
368    
369    -bindir | --bindir | --bindi | --bind | --bin | --bi)    -bindir | --bindir | --bindi | --bind | --bin | --bi)
370      ac_prev=bindir ;;      ac_prev=bindir ;;
371    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372      bindir="$ac_optarg" ;;      bindir=$ac_optarg ;;
373    
374    -build | --build | --buil | --bui | --bu)    -build | --build | --buil | --bui | --bu)
375      ac_prev=build ;;      ac_prev=build_alias ;;
376    -build=* | --build=* | --buil=* | --bui=* | --bu=*)    -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377      build="$ac_optarg" ;;      build_alias=$ac_optarg ;;
378    
379    -cache-file | --cache-file | --cache-fil | --cache-fi \    -cache-file | --cache-file | --cache-fil | --cache-fi \
380    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381      ac_prev=cache_file ;;      ac_prev=cache_file ;;
382    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384      cache_file="$ac_optarg" ;;      cache_file=$ac_optarg ;;
385    
386      --config-cache | -C)
387        cache_file=config.cache ;;
388    
389    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390      ac_prev=datadir ;;      ac_prev=datadir ;;
391    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392    | --da=*)    | --da=*)
393      datadir="$ac_optarg" ;;      datadir=$ac_optarg ;;
394    
395    -disable-* | --disable-*)    -disable-* | --disable-*)
396      ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`      ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
398      if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then      expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399        { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400      fi     { (exit 1); exit 1; }; }
401      ac_feature=`echo $ac_feature| sed 's/-/_/g'`      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402      eval "enable_${ac_feature}=no" ;;      eval "enable_$ac_feature=no" ;;
403    
404    -enable-* | --enable-*)    -enable-* | --enable-*)
405      ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`      ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
407      if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then      expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408        { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409      fi     { (exit 1); exit 1; }; }
410      ac_feature=`echo $ac_feature| sed 's/-/_/g'`      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411      case "$ac_option" in      case $ac_option in
412        *=*) ;;        *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413        *) ac_optarg=yes ;;        *) ac_optarg=yes ;;
414      esac      esac
415      eval "enable_${ac_feature}='$ac_optarg'" ;;      eval "enable_$ac_feature='$ac_optarg'" ;;
416    
417    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
# Line 157  do Line 421  do
421    -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \    -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422    | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \    | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423    | --exec=* | --exe=* | --ex=*)    | --exec=* | --exe=* | --ex=*)
424      exec_prefix="$ac_optarg" ;;      exec_prefix=$ac_optarg ;;
425    
426    -gas | --gas | --ga | --g)    -gas | --gas | --ga | --g)
427      # Obsolete; use --with-gas.      # Obsolete; use --with-gas.
428      with_gas=yes ;;      with_gas=yes ;;
429    
430    -help | --help | --hel | --he)    -help | --help | --hel | --he | -h)
431      # Omit some internal or obsolete options to make the list less imposing.      ac_init_help=long ;;
432      # This message is too long to be a string in the A/UX 3.1 sh.    -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433      cat << EOF      ac_init_help=recursive ;;
434  Usage: configure [options] [host]    -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435  Options: [defaults in brackets after descriptions]      ac_init_help=short ;;
 Configuration:  
   --cache-file=FILE       cache test results in FILE  
   --help                  print this message  
   --no-create             do not create output files  
   --quiet, --silent       do not print \`checking...' messages  
   --version               print the version of autoconf that created configure  
 Directory and file names:  
   --prefix=PREFIX         install architecture-independent files in PREFIX  
                           [$ac_default_prefix]  
   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX  
                           [same as prefix]  
   --bindir=DIR            user executables in DIR [EPREFIX/bin]  
   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]  
   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]  
   --datadir=DIR           read-only architecture-independent data in DIR  
                           [PREFIX/share]  
   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]  
   --sharedstatedir=DIR    modifiable architecture-independent data in DIR  
                           [PREFIX/com]  
   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]  
   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]  
   --includedir=DIR        C header files in DIR [PREFIX/include]  
   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]  
   --infodir=DIR           info documentation in DIR [PREFIX/info]  
   --mandir=DIR            man documentation in DIR [PREFIX/man]  
   --srcdir=DIR            find the sources in DIR [configure dir or ..]  
   --program-prefix=PREFIX prepend PREFIX to installed program names  
   --program-suffix=SUFFIX append SUFFIX to installed program names  
   --program-transform-name=PROGRAM  
                           run sed PROGRAM on installed program names  
 EOF  
     cat << EOF  
 Host type:  
   --build=BUILD           configure for building on BUILD [BUILD=HOST]  
   --host=HOST             configure for HOST [guessed]  
   --target=TARGET         configure for TARGET [TARGET=HOST]  
 Features and packages:  
   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)  
   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]  
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]  
   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)  
   --x-includes=DIR        X include files are in DIR  
   --x-libraries=DIR       X library files are in DIR  
 EOF  
     if test -n "$ac_help"; then  
       echo "--enable and --with options recognized:$ac_help"  
     fi  
     exit 0 ;;  
436    
437    -host | --host | --hos | --ho)    -host | --host | --hos | --ho)
438      ac_prev=host ;;      ac_prev=host_alias ;;
439    -host=* | --host=* | --hos=* | --ho=*)    -host=* | --host=* | --hos=* | --ho=*)
440      host="$ac_optarg" ;;      host_alias=$ac_optarg ;;
441    
442    -includedir | --includedir | --includedi | --included | --include \    -includedir | --includedir | --includedi | --included | --include \
443    | --includ | --inclu | --incl | --inc)    | --includ | --inclu | --incl | --inc)
444      ac_prev=includedir ;;      ac_prev=includedir ;;
445    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446    | --includ=* | --inclu=* | --incl=* | --inc=*)    | --includ=* | --inclu=* | --incl=* | --inc=*)
447      includedir="$ac_optarg" ;;      includedir=$ac_optarg ;;
448    
449    -infodir | --infodir | --infodi | --infod | --info | --inf)    -infodir | --infodir | --infodi | --infod | --info | --inf)
450      ac_prev=infodir ;;      ac_prev=infodir ;;
451    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452      infodir="$ac_optarg" ;;      infodir=$ac_optarg ;;
453    
454    -libdir | --libdir | --libdi | --libd)    -libdir | --libdir | --libdi | --libd)
455      ac_prev=libdir ;;      ac_prev=libdir ;;
456    -libdir=* | --libdir=* | --libdi=* | --libd=*)    -libdir=* | --libdir=* | --libdi=* | --libd=*)
457      libdir="$ac_optarg" ;;      libdir=$ac_optarg ;;
458    
459    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460    | --libexe | --libex | --libe)    | --libexe | --libex | --libe)
461      ac_prev=libexecdir ;;      ac_prev=libexecdir ;;
462    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463    | --libexe=* | --libex=* | --libe=*)    | --libexe=* | --libex=* | --libe=*)
464      libexecdir="$ac_optarg" ;;      libexecdir=$ac_optarg ;;
465    
466    -localstatedir | --localstatedir | --localstatedi | --localstated \    -localstatedir | --localstatedir | --localstatedi | --localstated \
467    | --localstate | --localstat | --localsta | --localst \    | --localstate | --localstat | --localsta | --localst \
# Line 254  EOF Line 470  EOF
470    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471    | --localstate=* | --localstat=* | --localsta=* | --localst=* \    | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472    | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)    | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473      localstatedir="$ac_optarg" ;;      localstatedir=$ac_optarg ;;
474    
475    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476      ac_prev=mandir ;;      ac_prev=mandir ;;
477    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478      mandir="$ac_optarg" ;;      mandir=$ac_optarg ;;
479    
480    -nfp | --nfp | --nf)    -nfp | --nfp | --nf)
481      # Obsolete; use --without-fp.      # Obsolete; use --without-fp.
482      with_fp=no ;;      with_fp=no ;;
483    
484    -no-create | --no-create | --no-creat | --no-crea | --no-cre \    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485    | --no-cr | --no-c)    | --no-cr | --no-c | -n)
486      no_create=yes ;;      no_create=yes ;;
487    
488    -no-recursion | --no-recursion | --no-recursio | --no-recursi \    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
# Line 280  EOF Line 496  EOF
496    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499      oldincludedir="$ac_optarg" ;;      oldincludedir=$ac_optarg ;;
500    
501    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502      ac_prev=prefix ;;      ac_prev=prefix ;;
503    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504      prefix="$ac_optarg" ;;      prefix=$ac_optarg ;;
505    
506    -program-prefix | --program-prefix | --program-prefi | --program-pref \    -program-prefix | --program-prefix | --program-prefi | --program-pref \
507    | --program-pre | --program-pr | --program-p)    | --program-pre | --program-pr | --program-p)
508      ac_prev=program_prefix ;;      ac_prev=program_prefix ;;
509    -program-prefix=* | --program-prefix=* | --program-prefi=* \    -program-prefix=* | --program-prefix=* | --program-prefi=* \
510    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511      program_prefix="$ac_optarg" ;;      program_prefix=$ac_optarg ;;
512    
513    -program-suffix | --program-suffix | --program-suffi | --program-suff \    -program-suffix | --program-suffix | --program-suffi | --program-suff \
514    | --program-suf | --program-su | --program-s)    | --program-suf | --program-su | --program-s)
515      ac_prev=program_suffix ;;      ac_prev=program_suffix ;;
516    -program-suffix=* | --program-suffix=* | --program-suffi=* \    -program-suffix=* | --program-suffix=* | --program-suffi=* \
517    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518      program_suffix="$ac_optarg" ;;      program_suffix=$ac_optarg ;;
519    
520    -program-transform-name | --program-transform-name \    -program-transform-name | --program-transform-name \
521    | --program-transform-nam | --program-transform-na \    | --program-transform-nam | --program-transform-na \
# Line 316  EOF Line 532  EOF
532    | --program-transfo=* | --program-transf=* \    | --program-transfo=* | --program-transf=* \
533    | --program-trans=* | --program-tran=* \    | --program-trans=* | --program-tran=* \
534    | --progr-tra=* | --program-tr=* | --program-t=*)    | --progr-tra=* | --program-tr=* | --program-t=*)
535      program_transform_name="$ac_optarg" ;;      program_transform_name=$ac_optarg ;;
536    
537    -q | -quiet | --quiet | --quie | --qui | --qu | --q \    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538    | -silent | --silent | --silen | --sile | --sil)    | -silent | --silent | --silen | --sile | --sil)
# Line 326  EOF Line 542  EOF
542      ac_prev=sbindir ;;      ac_prev=sbindir ;;
543    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544    | --sbi=* | --sb=*)    | --sbi=* | --sb=*)
545      sbindir="$ac_optarg" ;;      sbindir=$ac_optarg ;;
546    
547    -sharedstatedir | --sharedstatedir | --sharedstatedi \    -sharedstatedir | --sharedstatedir | --sharedstatedi \
548    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
# Line 337  EOF Line 553  EOF
553    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555    | --sha=* | --sh=*)    | --sha=* | --sh=*)
556      sharedstatedir="$ac_optarg" ;;      sharedstatedir=$ac_optarg ;;
557    
558    -site | --site | --sit)    -site | --site | --sit)
559      ac_prev=site ;;      ac_prev=site ;;
560    -site=* | --site=* | --sit=*)    -site=* | --site=* | --sit=*)
561      site="$ac_optarg" ;;      site=$ac_optarg ;;
562    
563    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564      ac_prev=srcdir ;;      ac_prev=srcdir ;;
565    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566      srcdir="$ac_optarg" ;;      srcdir=$ac_optarg ;;
567    
568    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569    | --syscon | --sysco | --sysc | --sys | --sy)    | --syscon | --sysco | --sysc | --sys | --sy)
570      ac_prev=sysconfdir ;;      ac_prev=sysconfdir ;;
571    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573      sysconfdir="$ac_optarg" ;;      sysconfdir=$ac_optarg ;;
574    
575    -target | --target | --targe | --targ | --tar | --ta | --t)    -target | --target | --targe | --targ | --tar | --ta | --t)
576      ac_prev=target ;;      ac_prev=target_alias ;;
577    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578      target="$ac_optarg" ;;      target_alias=$ac_optarg ;;
579    
580    -v | -verbose | --verbose | --verbos | --verbo | --verb)    -v | -verbose | --verbose | --verbos | --verbo | --verb)
581      verbose=yes ;;      verbose=yes ;;
582    
583    -version | --version | --versio | --versi | --vers)    -version | --version | --versio | --versi | --vers | -V)
584      echo "configure generated by autoconf version 2.13"      ac_init_version=: ;;
     exit 0 ;;  
585    
586    -with-* | --with-*)    -with-* | --with-*)
587      ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`      ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
589      if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then      expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590        { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }        { echo "$as_me: error: invalid package name: $ac_package" >&2
591      fi     { (exit 1); exit 1; }; }
592      ac_package=`echo $ac_package| sed 's/-/_/g'`      ac_package=`echo $ac_package| sed 's/-/_/g'`
593      case "$ac_option" in      case $ac_option in
594        *=*) ;;        *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595        *) ac_optarg=yes ;;        *) ac_optarg=yes ;;
596      esac      esac
597      eval "with_${ac_package}='$ac_optarg'" ;;      eval "with_$ac_package='$ac_optarg'" ;;
598    
599    -without-* | --without-*)    -without-* | --without-*)
600      ac_package=`echo $ac_option|sed -e 's/-*without-//'`      ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
602      if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then      expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603        { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }        { echo "$as_me: error: invalid package name: $ac_package" >&2
604      fi     { (exit 1); exit 1; }; }
605      ac_package=`echo $ac_package| sed 's/-/_/g'`      ac_package=`echo $ac_package | sed 's/-/_/g'`
606      eval "with_${ac_package}=no" ;;      eval "with_$ac_package=no" ;;
607    
608    --x)    --x)
609      # Obsolete; use --with-x.      # Obsolete; use --with-x.
# Line 399  EOF Line 614  EOF
614      ac_prev=x_includes ;;      ac_prev=x_includes ;;
615    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617      x_includes="$ac_optarg" ;;      x_includes=$ac_optarg ;;
618    
619    -x-libraries | --x-libraries | --x-librarie | --x-librari \    -x-libraries | --x-libraries | --x-librarie | --x-librari \
620    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621      ac_prev=x_libraries ;;      ac_prev=x_libraries ;;
622    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624      x_libraries="$ac_optarg" ;;      x_libraries=$ac_optarg ;;
625    
626    -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }    -*) { echo "$as_me: error: unrecognized option: $ac_option
627    Try \`$0 --help' for more information." >&2
628       { (exit 1); exit 1; }; }
629      ;;      ;;
630    
631      *=*)
632        ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633        # Reject names that are not valid shell variable names.
634        expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635          { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636       { (exit 1); exit 1; }; }
637        ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638        eval "$ac_envvar='$ac_optarg'"
639        export $ac_envvar ;;
640    
641    *)    *)
642      if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then      # FIXME: should be removed in autoconf 3.0.
643        echo "configure: warning: $ac_option: invalid host type" 1>&2      echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644      fi      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645      if test "x$nonopt" != xNONE; then        echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646        { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }      : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
     fi  
     nonopt="$ac_option"  
647      ;;      ;;
648    
649    esac    esac
650  done  done
651    
652  if test -n "$ac_prev"; then  if test -n "$ac_prev"; then
653    { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }    ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654  fi    { echo "$as_me: error: missing argument to $ac_option" >&2
655       { (exit 1); exit 1; }; }
 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15  
   
 # File descriptor usage:  
 # 0 standard input  
 # 1 file creation  
 # 2 errors and warnings  
 # 3 some systems may open it to /dev/tty  
 # 4 used on the Kubota Titan  
 # 6 checking for... messages and results  
 # 5 compiler messages saved in config.log  
 if test "$silent" = yes; then  
   exec 6>/dev/null  
 else  
   exec 6>&1  
656  fi  fi
 exec 5>./config.log  
657    
658  echo "\  # Be sure to have absolute paths.
659  This file contains any messages produced by compilers while  for ac_var in exec_prefix prefix
660  running configure, to aid debugging if configure makes a mistake.  do
661  " 1>&5    eval ac_val=$`echo $ac_var`
662      case $ac_val in
663        [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664        *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665       { (exit 1); exit 1; }; };;
666      esac
667    done
668    
669  # Strip out --no-create and --no-recursion so they do not pile up.  # Be sure to have absolute paths.
670  # Also quote any args containing shell metacharacters.  for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671  ac_configure_args=                localstatedir libdir includedir oldincludedir infodir mandir
 for ac_arg  
672  do  do
673    case "$ac_arg" in    eval ac_val=$`echo $ac_var`
674    -no-create | --no-create | --no-creat | --no-crea | --no-cre \    case $ac_val in
675    | --no-cr | --no-c) ;;      [\\/$]* | ?:[\\/]* ) ;;
676    -no-recursion | --no-recursion | --no-recursio | --no-recursi \      *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;     { (exit 1); exit 1; }; };;
   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)  
   ac_configure_args="$ac_configure_args '$ac_arg'" ;;  
   *) ac_configure_args="$ac_configure_args $ac_arg" ;;  
678    esac    esac
679  done  done
680    
681  # NLS nuisances.  # There might be people who depend on the old broken behavior: `$host'
682  # Only set these to C if already set.  These must not be set unconditionally  # used to hold the argument of --host etc.
683  # because not all systems understand e.g. LANG=C (notably SCO).  # FIXME: To remove some day.
684  # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!  build=$build_alias
685  # Non-C LC_CTYPE values break the ctype check.  host=$host_alias
686  if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi  target=$target_alias
687  if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi  
688  if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi  # FIXME: To remove some day.
689  if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi  if test "x$host_alias" != x; then
690      if test "x$build_alias" = x; then
691        cross_compiling=maybe
692        echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693        If a cross compiler is detected then cross compile mode will be used." >&2
694      elif test "x$build_alias" != "x$host_alias"; then
695        cross_compiling=yes
696      fi
697    fi
698    
699  # confdefs.h avoids OS command line length limits that DEFS can exceed.  ac_tool_prefix=
700  rm -rf conftest* confdefs.h  test -n "$host_alias" && ac_tool_prefix=$host_alias-
701  # AIX cpp loses on an empty file, so make sure it contains at least a newline.  
702  echo > confdefs.h  test "$silent" = yes && exec 6>/dev/null
703    
 # A filename unique to this package, relative to the directory that  
 # configure is in, which we can look for to find out if srcdir is correct.  
 ac_unique_file=bnetd/handle_bnet.c  
704    
705  # Find the source files, if location was not specified.  # Find the source files, if location was not specified.
706  if test -z "$srcdir"; then  if test -z "$srcdir"; then
707    ac_srcdir_defaulted=yes    ac_srcdir_defaulted=yes
708    # Try the directory containing this script, then its parent.    # Try the directory containing this script, then its parent.
709    ac_prog=$0    ac_confdir=`(dirname "$0") 2>/dev/null ||
710    ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`  $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711    test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.           X"$0" : 'X\(//\)[^/]' \| \
712             X"$0" : 'X\(//\)$' \| \
713             X"$0" : 'X\(/\)' \| \
714             .     : '\(.\)' 2>/dev/null ||
715    echo X"$0" |
716        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718              /^X\(\/\/\)$/{ s//\1/; q; }
719              /^X\(\/\).*/{ s//\1/; q; }
720              s/.*/./; q'`
721    srcdir=$ac_confdir    srcdir=$ac_confdir
722    if test ! -r $srcdir/$ac_unique_file; then    if test ! -r $srcdir/$ac_unique_file; then
723      srcdir=..      srcdir=..
# Line 501  else Line 727  else
727  fi  fi
728  if test ! -r $srcdir/$ac_unique_file; then  if test ! -r $srcdir/$ac_unique_file; then
729    if test "$ac_srcdir_defaulted" = yes; then    if test "$ac_srcdir_defaulted" = yes; then
730      { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }      { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731       { (exit 1); exit 1; }; }
732    else    else
733      { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }      { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734       { (exit 1); exit 1; }; }
735    fi    fi
736  fi  fi
737  srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`  (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738      { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739       { (exit 1); exit 1; }; }
740    srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741    ac_env_build_alias_set=${build_alias+set}
742    ac_env_build_alias_value=$build_alias
743    ac_cv_env_build_alias_set=${build_alias+set}
744    ac_cv_env_build_alias_value=$build_alias
745    ac_env_host_alias_set=${host_alias+set}
746    ac_env_host_alias_value=$host_alias
747    ac_cv_env_host_alias_set=${host_alias+set}
748    ac_cv_env_host_alias_value=$host_alias
749    ac_env_target_alias_set=${target_alias+set}
750    ac_env_target_alias_value=$target_alias
751    ac_cv_env_target_alias_set=${target_alias+set}
752    ac_cv_env_target_alias_value=$target_alias
753    ac_env_CC_set=${CC+set}
754    ac_env_CC_value=$CC
755    ac_cv_env_CC_set=${CC+set}
756    ac_cv_env_CC_value=$CC
757    ac_env_CFLAGS_set=${CFLAGS+set}
758    ac_env_CFLAGS_value=$CFLAGS
759    ac_cv_env_CFLAGS_set=${CFLAGS+set}
760    ac_cv_env_CFLAGS_value=$CFLAGS
761    ac_env_LDFLAGS_set=${LDFLAGS+set}
762    ac_env_LDFLAGS_value=$LDFLAGS
763    ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764    ac_cv_env_LDFLAGS_value=$LDFLAGS
765    ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766    ac_env_CPPFLAGS_value=$CPPFLAGS
767    ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768    ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769    ac_env_CPP_set=${CPP+set}
770    ac_env_CPP_value=$CPP
771    ac_cv_env_CPP_set=${CPP+set}
772    ac_cv_env_CPP_value=$CPP
773    
774    #
775    # Report the --help message.
776    #
777    if test "$ac_init_help" = "long"; then
778      # Omit some internal or obsolete options to make the list less imposing.
779      # This message is too long to be a string in the A/UX 3.1 sh.
780      cat <<_ACEOF
781    \`configure' configures this package to adapt to many kinds of systems.
782    
783    Usage: $0 [OPTION]... [VAR=VALUE]...
784    
785    To assign environment variables (e.g., CC, CFLAGS...), specify them as
786    VAR=VALUE.  See below for descriptions of some of the useful variables.
787    
788    Defaults for the options are specified in brackets.
789    
790    Configuration:
791      -h, --help              display this help and exit
792          --help=short        display options specific to this package
793          --help=recursive    display the short help of all the included packages
794      -V, --version           display version information and exit
795      -q, --quiet, --silent   do not print \`checking...' messages
796          --cache-file=FILE   cache test results in FILE [disabled]
797      -C, --config-cache      alias for \`--cache-file=config.cache'
798      -n, --no-create         do not create output files
799          --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800    
801    _ACEOF
802    
803      cat <<_ACEOF
804    Installation directories:
805      --prefix=PREFIX         install architecture-independent files in PREFIX
806                              [$ac_default_prefix]
807      --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                              [PREFIX]
809    
810    By default, \`make install' will install all the files in
811    \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812    an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813    for instance \`--prefix=\$HOME'.
814    
815    For better control, use the options below.
816    
817    Fine tuning of the installation directories:
818      --bindir=DIR           user executables [EPREFIX/bin]
819      --sbindir=DIR          system admin executables [EPREFIX/sbin]
820      --libexecdir=DIR       program executables [EPREFIX/libexec]
821      --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822      --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823      --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824      --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825      --libdir=DIR           object code libraries [EPREFIX/lib]
826      --includedir=DIR       C header files [PREFIX/include]
827      --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828      --infodir=DIR          info documentation [PREFIX/info]
829      --mandir=DIR           man documentation [PREFIX/man]
830    _ACEOF
831    
832      cat <<\_ACEOF
833    
834    System types:
835      --build=BUILD     configure for building on BUILD [guessed]
836      --host=HOST       cross-compile to build programs to run on HOST [BUILD]
837      --target=TARGET   configure for building compilers for TARGET [HOST]
838    _ACEOF
839    fi
840    
841    if test -n "$ac_init_help"; then
842    
843      cat <<\_ACEOF
844    
845    Optional Features:
846      --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
847      --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
848      --enable-poll           Enable poll() instead of select().  Normally poll
849                              is preferred over select, but configure knows poll
850                              is broken on some platforms.  If you think you are
851                              smarter than the configure script, you may enable
852                              poll with this option.
853      --disable-poll          Disable the use of poll().
854      --enable-bnetd          Enable building of bnetd server (default)
855      --disable-bnetd         Disable building of bnetd server
856      --enable-d2cs           Enable building of d2cs server (default)
857      --disable-d2cs          Disable building of d2cs server
858      --enable-d2dbs          Enable building of d2dbs server (default)
859      --disable-d2dbs         Disable building of d2dbs server
860    
861    Optional Packages:
862      --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
863      --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
864      --with-warn             enable compiler warnings
865      --with-ansi             use ANSI C mode
866      --with-includes=DIR     search include DIR for header files
867      --with-libraries=DIR    search library DIR for libraries
868      --with-efence           link with Electric Fence to find memory problems
869      --with-mysql            include MySQL user accounts support
870      --with-pgsql            include PostgreSQL user accounts support
871      --with-mssql            include MSSQL user accounts support (requires FreeTDS includes/libs)
872    
873    Some influential environment variables:
874      CC          C compiler command
875      CFLAGS      C compiler flags
876      LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
877                  nonstandard directory <lib dir>
878      CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
879                  headers in a nonstandard directory <include dir>
880      CPP         C preprocessor
881    
882    Use these variables to override the choices made by `configure' or to help
883    it to find libraries and programs with nonstandard names/locations.
884    
885    _ACEOF
886    fi
887    
888    if test "$ac_init_help" = "recursive"; then
889      # If there are subdirs, report their specific --help.
890      ac_popdir=`pwd`
891      for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892        test -d $ac_dir || continue
893        ac_builddir=.
894    
895    if test "$ac_dir" != .; then
896      ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897      # A "../" for each directory in $ac_dir_suffix.
898      ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899    else
900      ac_dir_suffix= ac_top_builddir=
901    fi
902    
903    case $srcdir in
904      .)  # No --srcdir option.  We are building in place.
905        ac_srcdir=.
906        if test -z "$ac_top_builddir"; then
907           ac_top_srcdir=.
908        else
909           ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
910        fi ;;
911      [\\/]* | ?:[\\/]* )  # Absolute path.
912        ac_srcdir=$srcdir$ac_dir_suffix;
913        ac_top_srcdir=$srcdir ;;
914      *) # Relative path.
915        ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916        ac_top_srcdir=$ac_top_builddir$srcdir ;;
917    esac
918    
919    # Do not use `cd foo && pwd` to compute absolute paths, because
920    # the directories may not exist.
921    case `pwd` in
922    .) ac_abs_builddir="$ac_dir";;
923    *)
924      case "$ac_dir" in
925      .) ac_abs_builddir=`pwd`;;
926      [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
927      *) ac_abs_builddir=`pwd`/"$ac_dir";;
928      esac;;
929    esac
930    case $ac_abs_builddir in
931    .) ac_abs_top_builddir=${ac_top_builddir}.;;
932    *)
933      case ${ac_top_builddir}. in
934      .) ac_abs_top_builddir=$ac_abs_builddir;;
935      [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
936      *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
937      esac;;
938    esac
939    case $ac_abs_builddir in
940    .) ac_abs_srcdir=$ac_srcdir;;
941    *)
942      case $ac_srcdir in
943      .) ac_abs_srcdir=$ac_abs_builddir;;
944      [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
945      *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
946      esac;;
947    esac
948    case $ac_abs_builddir in
949    .) ac_abs_top_srcdir=$ac_top_srcdir;;
950    *)
951      case $ac_top_srcdir in
952      .) ac_abs_top_srcdir=$ac_abs_builddir;;
953      [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
954      *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
955      esac;;
956    esac
957    
958        cd $ac_dir
959        # Check for guested configure; otherwise get Cygnus style configure.
960        if test -f $ac_srcdir/configure.gnu; then
961          echo
962          $SHELL $ac_srcdir/configure.gnu  --help=recursive
963        elif test -f $ac_srcdir/configure; then
964          echo
965          $SHELL $ac_srcdir/configure  --help=recursive
966        elif test -f $ac_srcdir/configure.ac ||
967               test -f $ac_srcdir/configure.in; then
968          echo
969          $ac_configure --help
970        else
971          echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972        fi
973        cd $ac_popdir
974      done
975    fi
976    
977    test -n "$ac_init_help" && exit 0
978    if $ac_init_version; then
979      cat <<\_ACEOF
980    
981    Copyright (C) 2003 Free Software Foundation, Inc.
982    This configure script is free software; the Free Software Foundation
983    gives unlimited permission to copy, distribute and modify it.
984    _ACEOF
985      exit 0
986    fi
987    exec 5>config.log
988    cat >&5 <<_ACEOF
989    This file contains any messages produced by compilers while
990    running configure, to aid debugging if configure makes a mistake.
991    
992    It was created by $as_me, which was
993    generated by GNU Autoconf 2.59.  Invocation command line was
994    
995      $ $0 $@
996    
997    _ACEOF
998    {
999    cat <<_ASUNAME
1000    ## --------- ##
1001    ## Platform. ##
1002    ## --------- ##
1003    
1004    hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1005    uname -m = `(uname -m) 2>/dev/null || echo unknown`
1006    uname -r = `(uname -r) 2>/dev/null || echo unknown`
1007    uname -s = `(uname -s) 2>/dev/null || echo unknown`
1008    uname -v = `(uname -v) 2>/dev/null || echo unknown`
1009    
1010    /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1011    /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1012    
1013    /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1014    /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1015    /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1016    hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1017    /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1018    /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1019    /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1020    
1021    _ASUNAME
1022    
1023    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1024    for as_dir in $PATH
1025    do
1026      IFS=$as_save_IFS
1027      test -z "$as_dir" && as_dir=.
1028      echo "PATH: $as_dir"
1029    done
1030    
1031    } >&5
1032    
1033    cat >&5 <<_ACEOF
1034    
1035    
1036    ## ----------- ##
1037    ## Core tests. ##
1038    ## ----------- ##
1039    
1040    _ACEOF
1041    
1042    
1043    # Keep a trace of the command line.
1044    # Strip out --no-create and --no-recursion so they do not pile up.
1045    # Strip out --silent because we don't want to record it for future runs.
1046    # Also quote any args containing shell meta-characters.
1047    # Make two passes to allow for proper duplicate-argument suppression.
1048    ac_configure_args=
1049    ac_configure_args0=
1050    ac_configure_args1=
1051    ac_sep=
1052    ac_must_keep_next=false
1053    for ac_pass in 1 2
1054    do
1055      for ac_arg
1056      do
1057        case $ac_arg in
1058        -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1059        -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060        | -silent | --silent | --silen | --sile | --sil)
1061          continue ;;
1062        *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1063          ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1064        esac
1065        case $ac_pass in
1066        1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1067        2)
1068          ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1069          if test $ac_must_keep_next = true; then
1070            ac_must_keep_next=false # Got value, back to normal.
1071          else
1072            case $ac_arg in
1073              *=* | --config-cache | -C | -disable-* | --disable-* \
1074              | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1075              | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1076              | -with-* | --with-* | -without-* | --without-* | --x)
1077                case "$ac_configure_args0 " in
1078                  "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1079                esac
1080                ;;
1081              -* ) ac_must_keep_next=true ;;
1082            esac
1083          fi
1084          ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1085          # Get rid of the leading space.
1086          ac_sep=" "
1087          ;;
1088        esac
1089      done
1090    done
1091    $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1092    $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1093    
1094    # When interrupted or exit'd, cleanup temporary files, and complete
1095    # config.log.  We remove comments because anyway the quotes in there
1096    # would cause problems or look ugly.
1097    # WARNING: Be sure not to use single quotes in there, as some shells,
1098    # such as our DU 5.0 friend, will then `close' the trap.
1099    trap 'exit_status=$?
1100      # Save into config.log some information that might help in debugging.
1101      {
1102        echo
1103    
1104        cat <<\_ASBOX
1105    ## ---------------- ##
1106    ## Cache variables. ##
1107    ## ---------------- ##
1108    _ASBOX
1109        echo
1110        # The following way of writing the cache mishandles newlines in values,
1111    {
1112      (set) 2>&1 |
1113        case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1114        *ac_space=\ *)
1115          sed -n \
1116            "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1117              s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1118          ;;
1119        *)
1120          sed -n \
1121            "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1122          ;;
1123        esac;
1124    }
1125        echo
1126    
1127        cat <<\_ASBOX
1128    ## ----------------- ##
1129    ## Output variables. ##
1130    ## ----------------- ##
1131    _ASBOX
1132        echo
1133        for ac_var in $ac_subst_vars
1134        do
1135          eval ac_val=$`echo $ac_var`
1136          echo "$ac_var='"'"'$ac_val'"'"'"
1137        done | sort
1138        echo
1139    
1140        if test -n "$ac_subst_files"; then
1141          cat <<\_ASBOX
1142    ## ------------- ##
1143    ## Output files. ##
1144    ## ------------- ##
1145    _ASBOX
1146          echo
1147          for ac_var in $ac_subst_files
1148          do
1149            eval ac_val=$`echo $ac_var`
1150            echo "$ac_var='"'"'$ac_val'"'"'"
1151          done | sort
1152          echo
1153        fi
1154    
1155        if test -s confdefs.h; then
1156          cat <<\_ASBOX
1157    ## ----------- ##
1158    ## confdefs.h. ##
1159    ## ----------- ##
1160    _ASBOX
1161          echo
1162          sed "/^$/d" confdefs.h | sort
1163          echo
1164        fi
1165        test "$ac_signal" != 0 &&
1166          echo "$as_me: caught signal $ac_signal"
1167        echo "$as_me: exit $exit_status"
1168      } >&5
1169      rm -f core *.core &&
1170      rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1171        exit $exit_status
1172         ' 0
1173    for ac_signal in 1 2 13 15; do
1174      trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1175    done
1176    ac_signal=0
1177    
1178    # confdefs.h avoids OS command line length limits that DEFS can exceed.
1179    rm -rf conftest* confdefs.h
1180    # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1181    echo >confdefs.h
1182    
1183    # Predefined preprocessor variables.
1184    
1185    cat >>confdefs.h <<_ACEOF
1186    #define PACKAGE_NAME "$PACKAGE_NAME"
1187    _ACEOF
1188    
1189    
1190    cat >>confdefs.h <<_ACEOF
1191    #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1192    _ACEOF
1193    
1194    
1195    cat >>confdefs.h <<_ACEOF
1196    #define PACKAGE_VERSION "$PACKAGE_VERSION"
1197    _ACEOF
1198    
1199    
1200    cat >>confdefs.h <<_ACEOF
1201    #define PACKAGE_STRING "$PACKAGE_STRING"
1202    _ACEOF
1203    
1204    
1205    cat >>confdefs.h <<_ACEOF
1206    #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1207    _ACEOF
1208    
1209    
1210    # Let the site file select an alternate cache file if it wants to.
1211  # Prefer explicitly selected file to automatically selected ones.  # Prefer explicitly selected file to automatically selected ones.
1212  if test -z "$CONFIG_SITE"; then  if test -z "$CONFIG_SITE"; then
1213    if test "x$prefix" != xNONE; then    if test "x$prefix" != xNONE; then
# Line 518  if test -z "$CONFIG_SITE"; then Line 1218  if test -z "$CONFIG_SITE"; then
1218  fi  fi
1219  for ac_site_file in $CONFIG_SITE; do  for ac_site_file in $CONFIG_SITE; do
1220    if test -r "$ac_site_file"; then    if test -r "$ac_site_file"; then
1221      echo "loading site script $ac_site_file"      { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1222    echo "$as_me: loading site script $ac_site_file" >&6;}
1223        sed 's/^/| /' "$ac_site_file" >&5
1224      . "$ac_site_file"      . "$ac_site_file"
1225    fi    fi
1226  done  done
1227    
1228  if test -r "$cache_file"; then  if test -r "$cache_file"; then
1229    echo "loading cache $cache_file"    # Some versions of bash will fail to source /dev/null (special
1230    . $cache_file    # files actually), so we avoid doing that.
1231      if test -f "$cache_file"; then
1232        { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1233    echo "$as_me: loading cache $cache_file" >&6;}
1234        case $cache_file in
1235          [\\/]* | ?:[\\/]* ) . $cache_file;;
1236          *)                      . ./$cache_file;;
1237        esac
1238      fi
1239  else  else
1240    echo "creating cache $cache_file"    { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1241    > $cache_file  echo "$as_me: creating cache $cache_file" >&6;}
1242      >$cache_file
1243    fi
1244    
1245    # Check that the precious variables saved in the cache have kept the same
1246    # value.
1247    ac_cache_corrupted=false
1248    for ac_var in `(set) 2>&1 |
1249                   sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1250      eval ac_old_set=\$ac_cv_env_${ac_var}_set
1251      eval ac_new_set=\$ac_env_${ac_var}_set
1252      eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1253      eval ac_new_val="\$ac_env_${ac_var}_value"
1254      case $ac_old_set,$ac_new_set in
1255        set,)
1256          { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1257    echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1258          ac_cache_corrupted=: ;;
1259        ,set)
1260          { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1261    echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1262          ac_cache_corrupted=: ;;
1263        ,);;
1264        *)
1265          if test "x$ac_old_val" != "x$ac_new_val"; then
1266            { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1267    echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1268            { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1269    echo "$as_me:   former value:  $ac_old_val" >&2;}
1270            { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1271    echo "$as_me:   current value: $ac_new_val" >&2;}
1272            ac_cache_corrupted=:
1273          fi;;
1274      esac
1275      # Pass precious variables to config.status.
1276      if test "$ac_new_set" = set; then
1277        case $ac_new_val in
1278        *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1279          ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1280        *) ac_arg=$ac_var=$ac_new_val ;;
1281        esac
1282        case " $ac_configure_args " in
1283          *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1284          *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1285        esac
1286      fi
1287    done
1288    if $ac_cache_corrupted; then
1289      { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1290    echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1291      { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1292    echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1293       { (exit 1); exit 1; }; }
1294  fi  fi
1295    
1296  ac_ext=c  ac_ext=c
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  
1297  ac_cpp='$CPP $CPPFLAGS'  ac_cpp='$CPP $CPPFLAGS'
1298  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1299  ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1300  cross_compiling=$ac_cv_prog_cc_cross  ac_compiler_gnu=$ac_cv_c_compiler_gnu
1301    
1302  ac_exeext=  
1303  ac_objext=o  
1304  if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then  
1305    # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.  
1306    if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then  
1307      ac_n= ac_c='  
1308  ' ac_t='        '  
1309    else  
1310      ac_n=-n ac_c= ac_t=  
1311    fi  
 else  
   ac_n= ac_c='\c' ac_t=  
 fi  
1312    
1313    
1314    
1315    
1316    
1317    
1318    
1319    
1320              ac_config_headers="$ac_config_headers config.h"
1321    
1322    
1323  AUTOCONF_CONFIG_DIR="autoconf"  AUTOCONF_CONFIG_DIR="autoconf"
1324  ac_aux_dir=  ac_aux_dir=
1325  for ac_dir in ${AUTOCONF_CONFIG_DIR} $srcdir/${AUTOCONF_CONFIG_DIR}; do  for ac_dir in ${AUTOCONF_CONFIG_DIR} $srcdir/${AUTOCONF_CONFIG_DIR}; do
# Line 566  for ac_dir in ${AUTOCONF_CONFIG_DIR} $sr Line 1331  for ac_dir in ${AUTOCONF_CONFIG_DIR} $sr
1331      ac_aux_dir=$ac_dir      ac_aux_dir=$ac_dir
1332      ac_install_sh="$ac_aux_dir/install.sh -c"      ac_install_sh="$ac_aux_dir/install.sh -c"
1333      break      break
1334      elif test -f $ac_dir/shtool; then
1335        ac_aux_dir=$ac_dir
1336        ac_install_sh="$ac_aux_dir/shtool install -c"
1337        break
1338    fi    fi
1339  done  done
1340  if test -z "$ac_aux_dir"; then  if test -z "$ac_aux_dir"; then
1341    { echo "configure: error: can not find install-sh or install.sh in ${AUTOCONF_CONFIG_DIR} $srcdir/${AUTOCONF_CONFIG_DIR}" 1>&2; exit 1; }    { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${AUTOCONF_CONFIG_DIR} $srcdir/${AUTOCONF_CONFIG_DIR}" >&5
1342  fi  echo "$as_me: error: cannot find install-sh or install.sh in ${AUTOCONF_CONFIG_DIR} $srcdir/${AUTOCONF_CONFIG_DIR}" >&2;}
1343  ac_config_guess=$ac_aux_dir/config.guess     { (exit 1); exit 1; }; }
1344  ac_config_sub=$ac_aux_dir/config.sub  fi
1345  ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.  ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1346    ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1347    ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1348    
1349  ## ----------------------------------------- ##  ## ----------------------------------------- ##
1350  ## ANSIfy the C compiler whenever possible.  ##  ## ANSIfy the C compiler whenever possible.  ##
# Line 603  ac_configure=$ac_aux_dir/configure # Thi Line 1374  ac_configure=$ac_aux_dir/configure # Thi
1374    
1375    
1376    
1377    # Make sure we can run config.sub.
1378    $ac_config_sub sun4 >/dev/null 2>&1 ||
1379      { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1380    echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1381       { (exit 1); exit 1; }; }
1382    
1383    echo "$as_me:$LINENO: checking build system type" >&5
1384    echo $ECHO_N "checking build system type... $ECHO_C" >&6
1385    if test "${ac_cv_build+set}" = set; then
1386      echo $ECHO_N "(cached) $ECHO_C" >&6
1387    else
1388      ac_cv_build_alias=$build_alias
1389    test -z "$ac_cv_build_alias" &&
1390      ac_cv_build_alias=`$ac_config_guess`
1391    test -z "$ac_cv_build_alias" &&
1392      { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1393    echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1394       { (exit 1); exit 1; }; }
1395    ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1396      { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1397    echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1398       { (exit 1); exit 1; }; }
1399    
1400    fi
1401    echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1402    echo "${ECHO_T}$ac_cv_build" >&6
1403    build=$ac_cv_build
1404    build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1405    build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1406    build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1407    
1408    
1409    echo "$as_me:$LINENO: checking host system type" >&5
1410    echo $ECHO_N "checking host system type... $ECHO_C" >&6
1411    if test "${ac_cv_host+set}" = set; then
1412      echo $ECHO_N "(cached) $ECHO_C" >&6
1413    else
1414      ac_cv_host_alias=$host_alias
1415    test -z "$ac_cv_host_alias" &&
1416      ac_cv_host_alias=$ac_cv_build_alias
1417    ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1418      { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1419    echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1420       { (exit 1); exit 1; }; }
1421    
1422    fi
1423    echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1424    echo "${ECHO_T}$ac_cv_host" >&6
1425    host=$ac_cv_host
1426    host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1427    host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1428    host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1429    
1430    
1431    echo "$as_me:$LINENO: checking target system type" >&5
1432    echo $ECHO_N "checking target system type... $ECHO_C" >&6
1433    if test "${ac_cv_target+set}" = set; then
1434      echo $ECHO_N "(cached) $ECHO_C" >&6
1435    else
1436      ac_cv_target_alias=$target_alias
1437    test "x$ac_cv_target_alias" = "x" &&
1438      ac_cv_target_alias=$ac_cv_host_alias
1439    ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1440      { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1441    echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1442       { (exit 1); exit 1; }; }
1443    
1444    fi
1445    echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1446    echo "${ECHO_T}$ac_cv_target" >&6
1447    target=$ac_cv_target
1448    target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1449    target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1450    target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1451    
 # Do some error checking and defaulting for the host and target type.  
 # The inputs are:  
 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT  
 #  
 # The rules are:  
 # 1. You are not allowed to specify --host, --target, and nonopt at the  
 #    same time.  
 # 2. Host defaults to nonopt.  
 # 3. If nonopt is not specified, then host defaults to the current host,  
 #    as determined by config.guess.  
 # 4. Target and build default to nonopt.  
 # 5. If nonopt is not specified, then target and build default to host.  
1452    
1453  # The aliases save the names the user supplied, while $host etc.  # The aliases save the names the user supplied, while $host etc.
1454  # will get canonicalized.  # will get canonicalized.
1455  case $host---$target---$nonopt in  test -n "$target_alias" &&
1456  NONE---*---* | *---NONE---* | *---*---NONE) ;;    test "$program_prefix$program_suffix$program_transform_name" = \
1457  *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;      NONENONEs,x,x, &&
1458  esac    program_prefix=${target_alias}-
1459    
1460    # Checks for programs.
1461    ac_ext=c
1462    ac_cpp='$CPP $CPPFLAGS'
1463    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1464    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1465    ac_compiler_gnu=$ac_cv_c_compiler_gnu
1466    if test -n "$ac_tool_prefix"; then
1467      # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1468    set dummy ${ac_tool_prefix}gcc; ac_word=$2
1469    echo "$as_me:$LINENO: checking for $ac_word" >&5
1470    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1471    if test "${ac_cv_prog_CC+set}" = set; then
1472      echo $ECHO_N "(cached) $ECHO_C" >&6
1473    else
1474      if test -n "$CC"; then
1475      ac_cv_prog_CC="$CC" # Let the user override the test.
1476    else
1477    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1478    for as_dir in $PATH
1479    do
1480      IFS=$as_save_IFS
1481      test -z "$as_dir" && as_dir=.
1482      for ac_exec_ext in '' $ac_executable_extensions; do
1483      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1484        ac_cv_prog_CC="${ac_tool_prefix}gcc"
1485        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1486        break 2
1487      fi
1488    done
1489    done
1490    
1491  # Make sure we can run config.sub.  fi
1492  if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :  fi
1493  else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }  CC=$ac_cv_prog_CC
1494    if test -n "$CC"; then
1495      echo "$as_me:$LINENO: result: $CC" >&5
1496    echo "${ECHO_T}$CC" >&6
1497    else
1498      echo "$as_me:$LINENO: result: no" >&5
1499    echo "${ECHO_T}no" >&6
1500  fi  fi
1501    
1502  echo $ac_n "checking host system type""... $ac_c" 1>&6  fi
1503  echo "configure:635: checking host system type" >&5  if test -z "$ac_cv_prog_CC"; then
1504      ac_ct_CC=$CC
1505  host_alias=$host    # Extract the first word of "gcc", so it can be a program name with args.
1506  case "$host_alias" in  set dummy gcc; ac_word=$2
1507  NONE)  echo "$as_me:$LINENO: checking for $ac_word" >&5
1508    case $nonopt in  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1509    NONE)  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1510      if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :    echo $ECHO_N "(cached) $ECHO_C" >&6
1511      else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }  else
1512      fi ;;    if test -n "$ac_ct_CC"; then
1513    *) host_alias=$nonopt ;;    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1514    esac ;;  else
1515  esac  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1516    for as_dir in $PATH
1517  host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`  do
1518  host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`    IFS=$as_save_IFS
1519  host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`    test -z "$as_dir" && as_dir=.
1520  host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`    for ac_exec_ext in '' $ac_executable_extensions; do
1521  echo "$ac_t""$host" 1>&6    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1522        ac_cv_prog_ac_ct_CC="gcc"
1523  echo $ac_n "checking target system type""... $ac_c" 1>&6      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1524  echo "configure:656: checking target system type" >&5      break 2
1525      fi
1526  target_alias=$target  done
1527  case "$target_alias" in  done
 NONE)  
   case $nonopt in  
   NONE) target_alias=$host_alias ;;  
   *) target_alias=$nonopt ;;  
   esac ;;  
 esac  
   
 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`  
 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`  
 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`  
 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`  
 echo "$ac_t""$target" 1>&6  
   
 echo $ac_n "checking build system type""... $ac_c" 1>&6  
 echo "configure:674: checking build system type" >&5  
   
 build_alias=$build  
 case "$build_alias" in  
 NONE)  
   case $nonopt in  
   NONE) build_alias=$host_alias ;;  
   *) build_alias=$nonopt ;;  
   esac ;;  
 esac  
   
 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`  
 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`  
 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`  
 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`  
 echo "$ac_t""$build" 1>&6  
1528    
1529  test "$host_alias" != "$target_alias" &&  fi
1530    test "$program_prefix$program_suffix$program_transform_name" = \  fi
1531      NONENONEs,x,x, &&  ac_ct_CC=$ac_cv_prog_ac_ct_CC
1532    program_prefix=${target_alias}-  if test -n "$ac_ct_CC"; then
1533      echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1534    echo "${ECHO_T}$ac_ct_CC" >&6
1535    else
1536      echo "$as_me:$LINENO: result: no" >&5
1537    echo "${ECHO_T}no" >&6
1538    fi
1539    
1540      CC=$ac_ct_CC
1541    else
1542      CC="$ac_cv_prog_CC"
1543    fi
1544    
1545  # Checks for programs.  if test -z "$CC"; then
1546  # Extract the first word of "gcc", so it can be a program name with args.    if test -n "$ac_tool_prefix"; then
1547  set dummy gcc; ac_word=$2    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1548  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  set dummy ${ac_tool_prefix}cc; ac_word=$2
1549  echo "configure:701: checking for $ac_word" >&5  echo "$as_me:$LINENO: checking for $ac_word" >&5
1550  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1551    echo $ac_n "(cached) $ac_c" 1>&6  if test "${ac_cv_prog_CC+set}" = set; then
1552      echo $ECHO_N "(cached) $ECHO_C" >&6
1553  else  else
1554    if test -n "$CC"; then    if test -n "$CC"; then
1555    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1556  else  else
1557    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1558    ac_dummy="$PATH"  for as_dir in $PATH
1559    for ac_dir in $ac_dummy; do  do
1560      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
1561      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
1562        ac_cv_prog_CC="gcc"    for ac_exec_ext in '' $ac_executable_extensions; do
1563        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1564      fi      ac_cv_prog_CC="${ac_tool_prefix}cc"
1565    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1566    IFS="$ac_save_ifs"      break 2
1567      fi
1568    done
1569    done
1570    
1571  fi  fi
1572  fi  fi
1573  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
1574  if test -n "$CC"; then  if test -n "$CC"; then
1575    echo "$ac_t""$CC" 1>&6    echo "$as_me:$LINENO: result: $CC" >&5
1576    echo "${ECHO_T}$CC" >&6
1577    else
1578      echo "$as_me:$LINENO: result: no" >&5
1579    echo "${ECHO_T}no" >&6
1580    fi
1581    
1582    fi
1583    if test -z "$ac_cv_prog_CC"; then
1584      ac_ct_CC=$CC
1585      # Extract the first word of "cc", so it can be a program name with args.
1586    set dummy cc; ac_word=$2
1587    echo "$as_me:$LINENO: checking for $ac_word" >&5
1588    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1589    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1590      echo $ECHO_N "(cached) $ECHO_C" >&6
1591    else
1592      if test -n "$ac_ct_CC"; then
1593      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1594    else
1595    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596    for as_dir in $PATH
1597    do
1598      IFS=$as_save_IFS
1599      test -z "$as_dir" && as_dir=.
1600      for ac_exec_ext in '' $ac_executable_extensions; do
1601      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1602        ac_cv_prog_ac_ct_CC="cc"
1603        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1604        break 2
1605      fi
1606    done
1607    done
1608    
1609    fi
1610    fi
1611    ac_ct_CC=$ac_cv_prog_ac_ct_CC
1612    if test -n "$ac_ct_CC"; then
1613      echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1614    echo "${ECHO_T}$ac_ct_CC" >&6
1615  else  else
1616    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
1617    echo "${ECHO_T}no" >&6
1618  fi  fi
1619    
1620      CC=$ac_ct_CC
1621    else
1622      CC="$ac_cv_prog_CC"
1623    fi
1624    
1625    fi
1626  if test -z "$CC"; then  if test -z "$CC"; then
1627    # Extract the first word of "cc", so it can be a program name with args.    # Extract the first word of "cc", so it can be a program name with args.
1628  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
1629  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
1630  echo "configure:731: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1631  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if test "${ac_cv_prog_CC+set}" = set; then
1632    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
1633  else  else
1634    if test -n "$CC"; then    if test -n "$CC"; then
1635    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1636  else  else
   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  
1637    ac_prog_rejected=no    ac_prog_rejected=no
1638    ac_dummy="$PATH"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639    for ac_dir in $ac_dummy; do  for as_dir in $PATH
1640      test -z "$ac_dir" && ac_dir=.  do
1641      if test -f $ac_dir/$ac_word; then    IFS=$as_save_IFS
1642        if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then    test -z "$as_dir" && as_dir=.
1643          ac_prog_rejected=yes    for ac_exec_ext in '' $ac_executable_extensions; do
1644          continue    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1645        fi      if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1646        ac_cv_prog_CC="cc"         ac_prog_rejected=yes
1647        break         continue
1648      fi       fi
1649    done      ac_cv_prog_CC="cc"
1650    IFS="$ac_save_ifs"      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1651        break 2
1652      fi
1653    done
1654    done
1655    
1656  if test $ac_prog_rejected = yes; then  if test $ac_prog_rejected = yes; then
1657    # We found a bogon in the path, so make sure we never use it.    # We found a bogon in the path, so make sure we never use it.
1658    set dummy $ac_cv_prog_CC    set dummy $ac_cv_prog_CC
1659    shift    shift
1660    if test $# -gt 0; then    if test $# != 0; then
1661      # We chose a different compiler from the bogus one.      # We chose a different compiler from the bogus one.
1662      # However, it has the same basename, so the bogon will be chosen      # However, it has the same basename, so the bogon will be chosen
1663      # first if we set CC to just the basename; use the full file name.      # first if we set CC to just the basename; use the full file name.
1664      shift      shift
1665      set dummy "$ac_dir/$ac_word" "$@"      ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
     shift  
     ac_cv_prog_CC="$@"  
1666    fi    fi
1667  fi  fi
1668  fi  fi
1669  fi  fi
1670  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
1671  if test -n "$CC"; then  if test -n "$CC"; then
1672    echo "$ac_t""$CC" 1>&6    echo "$as_me:$LINENO: result: $CC" >&5
1673    echo "${ECHO_T}$CC" >&6
1674  else  else
1675    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
1676    echo "${ECHO_T}no" >&6
1677  fi  fi
1678    
1679    if test -z "$CC"; then  fi
1680      case "`uname -s`" in  if test -z "$CC"; then
1681      *win32* | *WIN32*)    if test -n "$ac_tool_prefix"; then
1682        # Extract the first word of "cl", so it can be a program name with args.    for ac_prog in cl
1683  set dummy cl; ac_word=$2    do
1684  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1685  echo "configure:782: checking for $ac_word" >&5  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1686  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  echo "$as_me:$LINENO: checking for $ac_word" >&5
1687    echo $ac_n "(cached) $ac_c" 1>&6  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688    if test "${ac_cv_prog_CC+set}" = set; then
1689      echo $ECHO_N "(cached) $ECHO_C" >&6
1690  else  else
1691    if test -n "$CC"; then    if test -n "$CC"; then
1692    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1693  else  else
1694    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695    ac_dummy="$PATH"  for as_dir in $PATH
1696    for ac_dir in $ac_dummy; do  do
1697      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
1698      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
1699        ac_cv_prog_CC="cl"    for ac_exec_ext in '' $ac_executable_extensions; do
1700        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1701      fi      ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1702    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1703    IFS="$ac_save_ifs"      break 2
1704      fi
1705    done
1706    done
1707    
1708  fi  fi
1709  fi  fi
1710  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
1711  if test -n "$CC"; then  if test -n "$CC"; then
1712    echo "$ac_t""$CC" 1>&6    echo "$as_me:$LINENO: result: $CC" >&5
1713    echo "${ECHO_T}$CC" >&6
1714  else  else
1715    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
1716    echo "${ECHO_T}no" >&6
1717  fi  fi
1718   ;;  
1719      esac      test -n "$CC" && break
1720      done
1721    fi
1722    if test -z "$CC"; then
1723      ac_ct_CC=$CC
1724      for ac_prog in cl
1725    do
1726      # Extract the first word of "$ac_prog", so it can be a program name with args.
1727    set dummy $ac_prog; ac_word=$2
1728    echo "$as_me:$LINENO: checking for $ac_word" >&5
1729    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1730    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1731      echo $ECHO_N "(cached) $ECHO_C" >&6
1732    else
1733      if test -n "$ac_ct_CC"; then
1734      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1735    else
1736    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1737    for as_dir in $PATH
1738    do
1739      IFS=$as_save_IFS
1740      test -z "$as_dir" && as_dir=.
1741      for ac_exec_ext in '' $ac_executable_extensions; do
1742      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1743        ac_cv_prog_ac_ct_CC="$ac_prog"
1744        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1745        break 2
1746    fi    fi
1747    test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }  done
1748    done
1749    
1750    fi
1751    fi
1752    ac_ct_CC=$ac_cv_prog_ac_ct_CC
1753    if test -n "$ac_ct_CC"; then
1754      echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1755    echo "${ECHO_T}$ac_ct_CC" >&6
1756    else
1757      echo "$as_me:$LINENO: result: no" >&5
1758    echo "${ECHO_T}no" >&6
1759  fi  fi
1760    
1761  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6    test -n "$ac_ct_CC" && break
1762  echo "configure:814: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  done
1763    
1764      CC=$ac_ct_CC
1765    fi
1766    
1767    fi
1768    
 ac_ext=c  
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  
 ac_cpp='$CPP $CPPFLAGS'  
 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  
 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'  
 cross_compiling=$ac_cv_prog_cc_cross  
1769    
1770  cat > conftest.$ac_ext << EOF  test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1771    See \`config.log' for more details." >&5
1772    echo "$as_me: error: no acceptable C compiler found in \$PATH
1773    See \`config.log' for more details." >&2;}
1774       { (exit 1); exit 1; }; }
1775    
1776    # Provide some information about the compiler.
1777    echo "$as_me:$LINENO:" \
1778         "checking for C compiler version" >&5
1779    ac_compiler=`set X $ac_compile; echo $2`
1780    { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1781      (eval $ac_compiler --version </dev/null >&5) 2>&5
1782      ac_status=$?
1783      echo "$as_me:$LINENO: \$? = $ac_status" >&5
1784      (exit $ac_status); }
1785    { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1786      (eval $ac_compiler -v </dev/null >&5) 2>&5
1787      ac_status=$?
1788      echo "$as_me:$LINENO: \$? = $ac_status" >&5
1789      (exit $ac_status); }
1790    { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1791      (eval $ac_compiler -V </dev/null >&5) 2>&5
1792      ac_status=$?
1793      echo "$as_me:$LINENO: \$? = $ac_status" >&5
1794      (exit $ac_status); }
1795    
1796    cat >conftest.$ac_ext <<_ACEOF
1797    /* confdefs.h.  */
1798    _ACEOF
1799    cat confdefs.h >>conftest.$ac_ext
1800    cat >>conftest.$ac_ext <<_ACEOF
1801    /* end confdefs.h.  */
1802    
1803  #line 825 "configure"  int
1804  #include "confdefs.h"  main ()
1805    {
1806    
1807      ;
1808      return 0;
1809    }
1810    _ACEOF
1811    ac_clean_files_save=$ac_clean_files
1812    ac_clean_files="$ac_clean_files a.out a.exe b.out"
1813    # Try to create an executable without -o first, disregard a.out.
1814    # It will help us diagnose broken compilers, and finding out an intuition
1815    # of exeext.
1816    echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1817    echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1818    ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1819    if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1820      (eval $ac_link_default) 2>&5
1821      ac_status=$?
1822      echo "$as_me:$LINENO: \$? = $ac_status" >&5
1823      (exit $ac_status); }; then
1824      # Find the output, starting from the most likely.  This scheme is
1825    # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1826    # resort.
1827    
1828    # Be careful to initialize this variable, since it used to be cached.
1829    # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1830    ac_cv_exeext=
1831    # b.out is created by i960 compilers.
1832    for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1833    do
1834      test -f "$ac_file" || continue
1835      case $ac_file in
1836        *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1837            ;;
1838        conftest.$ac_ext )
1839            # This is the source file.
1840            ;;
1841        [ab].out )
1842            # We found the default executable, but exeext='' is most
1843            # certainly right.
1844            break;;
1845        *.* )
1846            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1847            # FIXME: I believe we export ac_cv_exeext for Libtool,
1848            # but it would be cool to find out if it's true.  Does anybody
1849            # maintain Libtool? --akim.
1850            export ac_cv_exeext
1851            break;;
1852        * )
1853            break;;
1854      esac
1855    done
1856    else
1857      echo "$as_me: failed program was:" >&5
1858    sed 's/^/| /' conftest.$ac_ext >&5
1859    
1860  main(){return(0);}  { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1861  EOF  See \`config.log' for more details." >&5
1862  if { (eval echo configure:830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  echo "$as_me: error: C compiler cannot create executables
1863    ac_cv_prog_cc_works=yes  See \`config.log' for more details." >&2;}
1864    # If we can't run a trivial program, we are probably using a cross compiler.     { (exit 77); exit 77; }; }
1865    if (./conftest; exit) 2>/dev/null; then  fi
1866      ac_cv_prog_cc_cross=no  
1867    ac_exeext=$ac_cv_exeext
1868    echo "$as_me:$LINENO: result: $ac_file" >&5
1869    echo "${ECHO_T}$ac_file" >&6
1870    
1871    # Check the compiler produces executables we can run.  If not, either
1872    # the compiler is broken, or we cross compile.
1873    echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1874    echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1875    # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1876    # If not cross compiling, check that we can run a simple program.
1877    if test "$cross_compiling" != yes; then
1878      if { ac_try='./$ac_file'
1879      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1880      (eval $ac_try) 2>&5
1881      ac_status=$?
1882      echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883      (exit $ac_status); }; }; then
1884        cross_compiling=no
1885    else    else
1886      ac_cv_prog_cc_cross=yes      if test "$cross_compiling" = maybe; then
1887            cross_compiling=yes
1888        else
1889            { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1890    If you meant to cross compile, use \`--host'.
1891    See \`config.log' for more details." >&5
1892    echo "$as_me: error: cannot run C compiled programs.
1893    If you meant to cross compile, use \`--host'.
1894    See \`config.log' for more details." >&2;}
1895       { (exit 1); exit 1; }; }
1896        fi
1897    fi    fi
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   ac_cv_prog_cc_works=no  
1898  fi  fi
1899  rm -fr conftest*  echo "$as_me:$LINENO: result: yes" >&5
1900  ac_ext=c  echo "${ECHO_T}yes" >&6
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  
 ac_cpp='$CPP $CPPFLAGS'  
 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  
 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'  
 cross_compiling=$ac_cv_prog_cc_cross  
1901    
1902  echo "$ac_t""$ac_cv_prog_cc_works" 1>&6  rm -f a.out a.exe conftest$ac_cv_exeext b.out
1903  if test $ac_cv_prog_cc_works = no; then  ac_clean_files=$ac_clean_files_save
1904    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }  # Check the compiler produces executables we can run.  If not, either
1905  fi  # the compiler is broken, or we cross compile.
1906  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1907  echo "configure:856: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1908  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  echo "$as_me:$LINENO: result: $cross_compiling" >&5
1909  cross_compiling=$ac_cv_prog_cc_cross  echo "${ECHO_T}$cross_compiling" >&6
1910    
1911    echo "$as_me:$LINENO: checking for suffix of executables" >&5
1912    echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1913    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1914      (eval $ac_link) 2>&5
1915      ac_status=$?
1916      echo "$as_me:$LINENO: \$? = $ac_status" >&5
1917      (exit $ac_status); }; then
1918      # If both `conftest.exe' and `conftest' are `present' (well, observable)
1919    # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1920    # work properly (i.e., refer to `conftest.exe'), while it won't with
1921    # `rm'.
1922    for ac_file in conftest.exe conftest conftest.*; do
1923      test -f "$ac_file" || continue
1924      case $ac_file in
1925        *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1926        *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1927              export ac_cv_exeext
1928              break;;
1929        * ) break;;
1930      esac
1931    done
1932    else
1933      { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1934    See \`config.log' for more details." >&5
1935    echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1936    See \`config.log' for more details." >&2;}
1937       { (exit 1); exit 1; }; }
1938    fi
1939    
1940    rm -f conftest$ac_cv_exeext
1941    echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1942    echo "${ECHO_T}$ac_cv_exeext" >&6
1943    
1944    rm -f conftest.$ac_ext
1945    EXEEXT=$ac_cv_exeext
1946    ac_exeext=$EXEEXT
1947    echo "$as_me:$LINENO: checking for suffix of object files" >&5
1948    echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1949    if test "${ac_cv_objext+set}" = set; then
1950      echo $ECHO_N "(cached) $ECHO_C" >&6
1951    else
1952      cat >conftest.$ac_ext <<_ACEOF
1953    /* confdefs.h.  */
1954    _ACEOF
1955    cat confdefs.h >>conftest.$ac_ext
1956    cat >>conftest.$ac_ext <<_ACEOF
1957    /* end confdefs.h.  */
1958    
1959    int
1960    main ()
1961    {
1962    
1963  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6    ;
1964  echo "configure:861: checking whether we are using GNU C" >&5    return 0;
1965  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  }
1966    echo $ac_n "(cached) $ac_c" 1>&6  _ACEOF
1967    rm -f conftest.o conftest.obj
1968    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1969      (eval $ac_compile) 2>&5
1970      ac_status=$?
1971      echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972      (exit $ac_status); }; then
1973      for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1974      case $ac_file in
1975        *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1976        *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1977           break;;
1978      esac
1979    done
1980  else  else
1981    cat > conftest.c <<EOF    echo "$as_me: failed program was:" >&5
1982  #ifdef __GNUC__  sed 's/^/| /' conftest.$ac_ext >&5
1983    yes;  
1984    { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1985    See \`config.log' for more details." >&5
1986    echo "$as_me: error: cannot compute suffix of object files: cannot compile
1987    See \`config.log' for more details." >&2;}
1988       { (exit 1); exit 1; }; }
1989    fi
1990    
1991    rm -f conftest.$ac_cv_objext conftest.$ac_ext
1992    fi
1993    echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1994    echo "${ECHO_T}$ac_cv_objext" >&6
1995    OBJEXT=$ac_cv_objext
1996    ac_objext=$OBJEXT
1997    echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1998    echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1999    if test "${ac_cv_c_compiler_gnu+set}" = set; then
2000      echo $ECHO_N "(cached) $ECHO_C" >&6
2001    else
2002      cat >conftest.$ac_ext <<_ACEOF
2003    /* confdefs.h.  */
2004    _ACEOF
2005    cat confdefs.h >>conftest.$ac_ext
2006    cat >>conftest.$ac_ext <<_ACEOF
2007    /* end confdefs.h.  */
2008    
2009    int
2010    main ()
2011    {
2012    #ifndef __GNUC__
2013           choke me
2014  #endif  #endif
 EOF  
 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then  
   ac_cv_prog_gcc=yes  
 else  
   ac_cv_prog_gcc=no  
 fi  
 fi  
2015    
2016  echo "$ac_t""$ac_cv_prog_gcc" 1>&6    ;
2017      return 0;
2018    }
2019    _ACEOF
2020    rm -f conftest.$ac_objext
2021    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2022      (eval $ac_compile) 2>conftest.er1
2023      ac_status=$?
2024      grep -v '^ *+' conftest.er1 >conftest.err
2025      rm -f conftest.er1
2026      cat conftest.err >&5
2027      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028      (exit $ac_status); } &&
2029             { ac_try='test -z "$ac_c_werror_flag"
2030                             || test ! -s conftest.err'
2031      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2032      (eval $ac_try) 2>&5
2033      ac_status=$?
2034      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035      (exit $ac_status); }; } &&
2036             { ac_try='test -s conftest.$ac_objext'
2037      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2038      (eval $ac_try) 2>&5
2039      ac_status=$?
2040      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041      (exit $ac_status); }; }; then
2042      ac_compiler_gnu=yes
2043    else
2044      echo "$as_me: failed program was:" >&5
2045    sed 's/^/| /' conftest.$ac_ext >&5
2046    
2047    ac_compiler_gnu=no
2048    fi
2049    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2050    ac_cv_c_compiler_gnu=$ac_compiler_gnu
2051    
2052    fi
2053    echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2054    echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2055    GCC=`test $ac_compiler_gnu = yes && echo yes`
2056    ac_test_CFLAGS=${CFLAGS+set}
2057    ac_save_CFLAGS=$CFLAGS
2058    CFLAGS="-g"
2059    echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2060    echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2061    if test "${ac_cv_prog_cc_g+set}" = set; then
2062      echo $ECHO_N "(cached) $ECHO_C" >&6
2063    else
2064      cat >conftest.$ac_ext <<_ACEOF
2065    /* confdefs.h.  */
2066    _ACEOF
2067    cat confdefs.h >>conftest.$ac_ext
2068    cat >>conftest.$ac_ext <<_ACEOF
2069    /* end confdefs.h.  */
2070    
2071  if test $ac_cv_prog_gcc = yes; then  int
2072    GCC=yes  main ()
2073  else  {
   GCC=  
 fi  
2074    
2075  ac_test_CFLAGS="${CFLAGS+set}"    ;
2076  ac_save_CFLAGS="$CFLAGS"    return 0;
2077  CFLAGS=  }
2078  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6  _ACEOF
2079  echo "configure:889: checking whether ${CC-cc} accepts -g" >&5  rm -f conftest.$ac_objext
2080  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2081    echo $ac_n "(cached) $ac_c" 1>&6    (eval $ac_compile) 2>conftest.er1
2082  else    ac_status=$?
2083    echo 'void f(){}' > conftest.c    grep -v '^ *+' conftest.er1 >conftest.err
2084  if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then    rm -f conftest.er1
2085      cat conftest.err >&5
2086      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087      (exit $ac_status); } &&
2088             { ac_try='test -z "$ac_c_werror_flag"
2089                             || test ! -s conftest.err'
2090      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2091      (eval $ac_try) 2>&5
2092      ac_status=$?
2093      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094      (exit $ac_status); }; } &&
2095             { ac_try='test -s conftest.$ac_objext'
2096      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2097      (eval $ac_try) 2>&5
2098      ac_status=$?
2099      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100      (exit $ac_status); }; }; then
2101    ac_cv_prog_cc_g=yes    ac_cv_prog_cc_g=yes
2102  else  else
2103    ac_cv_prog_cc_g=no    echo "$as_me: failed program was:" >&5
2104  fi  sed 's/^/| /' conftest.$ac_ext >&5
 rm -f conftest*  
2105    
2106    ac_cv_prog_cc_g=no
2107  fi  fi
2108    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2109  echo "$ac_t""$ac_cv_prog_cc_g" 1>&6  fi
2110    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2111    echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2112  if test "$ac_test_CFLAGS" = set; then  if test "$ac_test_CFLAGS" = set; then
2113    CFLAGS="$ac_save_CFLAGS"    CFLAGS=$ac_save_CFLAGS
2114  elif test $ac_cv_prog_cc_g = yes; then  elif test $ac_cv_prog_cc_g = yes; then
2115    if test "$GCC" = yes; then    if test "$GCC" = yes; then
2116      CFLAGS="-g -O2"      CFLAGS="-g -O2"
# Line 915  else Line 2124  else
2124      CFLAGS=      CFLAGS=
2125    fi    fi
2126  fi  fi
2127    echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2128    echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2129    if test "${ac_cv_prog_cc_stdc+set}" = set; then
2130      echo $ECHO_N "(cached) $ECHO_C" >&6
2131    else
2132      ac_cv_prog_cc_stdc=no
2133    ac_save_CC=$CC
2134    cat >conftest.$ac_ext <<_ACEOF
2135    /* confdefs.h.  */
2136    _ACEOF
2137    cat confdefs.h >>conftest.$ac_ext
2138    cat >>conftest.$ac_ext <<_ACEOF
2139    /* end confdefs.h.  */
2140    #include <stdarg.h>
2141    #include <stdio.h>
2142    #include <sys/types.h>
2143    #include <sys/stat.h>
2144    /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2145    struct buf { int x; };
2146    FILE * (*rcsopen) (struct buf *, struct stat *, int);
2147    static char *e (p, i)
2148         char **p;
2149         int i;
2150    {
2151      return p[i];
2152    }
2153    static char *f (char * (*g) (char **, int), char **p, ...)
2154    {
2155      char *s;
2156      va_list v;
2157      va_start (v,p);
2158      s = g (p, va_arg (v,int));
2159      va_end (v);
2160      return s;
2161    }
2162    
2163    /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2164       function prototypes and stuff, but not '\xHH' hex character constants.
2165       These don't provoke an error unfortunately, instead are silently treated
2166       as 'x'.  The following induces an error, until -std1 is added to get
2167       proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2168       array size at least.  It's necessary to write '\x00'==0 to get something
2169       that's true only with -std1.  */
2170    int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2171    
2172    int test (int i, double x);
2173    struct s1 {int (*f) (int a);};
2174    struct s2 {int (*f) (double a);};
2175    int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2176    int argc;
2177    char **argv;
2178    int
2179    main ()
2180    {
2181    return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2182      ;
2183      return 0;
2184    }
2185    _ACEOF
2186    # Don't try gcc -ansi; that turns off useful extensions and
2187    # breaks some systems' header files.
2188    # AIX                   -qlanglvl=ansi
2189    # Ultrix and OSF/1      -std1
2190    # HP-UX 10.20 and later -Ae
2191    # HP-UX older versions  -Aa -D_HPUX_SOURCE
2192    # SVR4                  -Xc -D__EXTENSIONS__
2193    for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2194    do
2195      CC="$ac_save_CC $ac_arg"
2196      rm -f conftest.$ac_objext
2197    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2198      (eval $ac_compile) 2>conftest.er1
2199      ac_status=$?
2200      grep -v '^ *+' conftest.er1 >conftest.err
2201      rm -f conftest.er1
2202      cat conftest.err >&5
2203      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204      (exit $ac_status); } &&
2205             { ac_try='test -z "$ac_c_werror_flag"
2206                             || test ! -s conftest.err'
2207      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208      (eval $ac_try) 2>&5
2209      ac_status=$?
2210      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211      (exit $ac_status); }; } &&
2212             { ac_try='test -s conftest.$ac_objext'
2213      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214      (eval $ac_try) 2>&5
2215      ac_status=$?
2216      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217      (exit $ac_status); }; }; then
2218      ac_cv_prog_cc_stdc=$ac_arg
2219    break
2220    else
2221      echo "$as_me: failed program was:" >&5
2222    sed 's/^/| /' conftest.$ac_ext >&5
2223    
2224    fi
2225    rm -f conftest.err conftest.$ac_objext
2226    done
2227    rm -f conftest.$ac_ext conftest.$ac_objext
2228    CC=$ac_save_CC
2229    
2230    fi
2231    
2232    case "x$ac_cv_prog_cc_stdc" in
2233      x|xno)
2234        echo "$as_me:$LINENO: result: none needed" >&5
2235    echo "${ECHO_T}none needed" >&6 ;;
2236      *)
2237        echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2238    echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2239        CC="$CC $ac_cv_prog_cc_stdc" ;;
2240    esac
2241    
2242    # Some people use a C++ compiler to compile C.  Since we use `exit',
2243    # in C++ we need to declare it.  In case someone uses the same compiler
2244    # for both compiling C and C++ we need to have the C++ compiler decide
2245    # the declaration of exit, since it's the most demanding environment.
2246    cat >conftest.$ac_ext <<_ACEOF
2247    #ifndef __cplusplus
2248      choke me
2249    #endif
2250    _ACEOF
2251    rm -f conftest.$ac_objext
2252    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253      (eval $ac_compile) 2>conftest.er1
2254      ac_status=$?
2255      grep -v '^ *+' conftest.er1 >conftest.err
2256      rm -f conftest.er1
2257      cat conftest.err >&5
2258      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259      (exit $ac_status); } &&
2260             { ac_try='test -z "$ac_c_werror_flag"
2261                             || test ! -s conftest.err'
2262      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263      (eval $ac_try) 2>&5
2264      ac_status=$?
2265      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266      (exit $ac_status); }; } &&
2267             { ac_try='test -s conftest.$ac_objext'
2268      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269      (eval $ac_try) 2>&5
2270      ac_status=$?
2271      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272      (exit $ac_status); }; }; then
2273      for ac_declaration in \
2274       '' \
2275       'extern "C" void std::exit (int) throw (); using std::exit;' \
2276       'extern "C" void std::exit (int); using std::exit;' \
2277       'extern "C" void exit (int) throw ();' \
2278       'extern "C" void exit (int);' \
2279       'void exit (int);'
2280    do
2281      cat >conftest.$ac_ext <<_ACEOF
2282    /* confdefs.h.  */
2283    _ACEOF
2284    cat confdefs.h >>conftest.$ac_ext
2285    cat >>conftest.$ac_ext <<_ACEOF
2286    /* end confdefs.h.  */
2287    $ac_declaration
2288    #include <stdlib.h>
2289    int
2290    main ()
2291    {
2292    exit (42);
2293      ;
2294      return 0;
2295    }
2296    _ACEOF
2297    rm -f conftest.$ac_objext
2298    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299      (eval $ac_compile) 2>conftest.er1
2300      ac_status=$?
2301      grep -v '^ *+' conftest.er1 >conftest.err
2302      rm -f conftest.er1
2303      cat conftest.err >&5
2304      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305      (exit $ac_status); } &&
2306             { ac_try='test -z "$ac_c_werror_flag"
2307                             || test ! -s conftest.err'
2308      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309      (eval $ac_try) 2>&5
2310      ac_status=$?
2311      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312      (exit $ac_status); }; } &&
2313             { ac_try='test -s conftest.$ac_objext'
2314      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315      (eval $ac_try) 2>&5
2316      ac_status=$?
2317      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318      (exit $ac_status); }; }; then
2319      :
2320    else
2321      echo "$as_me: failed program was:" >&5
2322    sed 's/^/| /' conftest.$ac_ext >&5
2323    
2324    continue
2325    fi
2326    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2327      cat >conftest.$ac_ext <<_ACEOF
2328    /* confdefs.h.  */
2329    _ACEOF
2330    cat confdefs.h >>conftest.$ac_ext
2331    cat >>conftest.$ac_ext <<_ACEOF
2332    /* end confdefs.h.  */
2333    $ac_declaration
2334    int
2335    main ()
2336    {
2337    exit (42);
2338      ;
2339      return 0;
2340    }
2341    _ACEOF
2342    rm -f conftest.$ac_objext
2343    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344      (eval $ac_compile) 2>conftest.er1
2345      ac_status=$?
2346      grep -v '^ *+' conftest.er1 >conftest.err
2347      rm -f conftest.er1
2348      cat conftest.err >&5
2349      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350      (exit $ac_status); } &&
2351             { ac_try='test -z "$ac_c_werror_flag"
2352                             || test ! -s conftest.err'
2353      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354      (eval $ac_try) 2>&5
2355      ac_status=$?
2356      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357      (exit $ac_status); }; } &&
2358             { ac_try='test -s conftest.$ac_objext'
2359      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360      (eval $ac_try) 2>&5
2361      ac_status=$?
2362      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363      (exit $ac_status); }; }; then
2364      break
2365    else
2366      echo "$as_me: failed program was:" >&5
2367    sed 's/^/| /' conftest.$ac_ext >&5
2368    
2369    fi
2370    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2371    done
2372    rm -f conftest*
2373    if test -n "$ac_declaration"; then
2374      echo '#ifdef __cplusplus' >>confdefs.h
2375      echo $ac_declaration      >>confdefs.h
2376      echo '#endif'             >>confdefs.h
2377    fi
2378    
2379    else
2380      echo "$as_me: failed program was:" >&5
2381    sed 's/^/| /' conftest.$ac_ext >&5
2382    
2383    fi
2384    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2385    ac_ext=c
2386    ac_cpp='$CPP $CPPFLAGS'
2387    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389    ac_compiler_gnu=$ac_cv_c_compiler_gnu
2390    
2391  # Find a good install program.  We prefer a C program (faster),  # Find a good install program.  We prefer a C program (faster),
2392  # so one script is as good as another.  But avoid the broken or  # so one script is as good as another.  But avoid the broken or
# Line 923  fi Line 2395  fi
2395  # SunOS /usr/etc/install  # SunOS /usr/etc/install
2396  # IRIX /sbin/install  # IRIX /sbin/install
2397  # AIX /bin/install  # AIX /bin/install
2398    # AmigaOS /C/install, which installs bootblocks on floppy discs
2399  # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag  # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2400  # AFS /usr/afsws/bin/install, which mishandles nonexistent args  # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2401  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2402    # OS/2's system install, which has a completely different semantic
2403  # ./install, which can be erroneously created by make from ./install.sh.  # ./install, which can be erroneously created by make from ./install.sh.
2404  echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2405  echo "configure:932: checking for a BSD compatible install" >&5  echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2406  if test -z "$INSTALL"; then  if test -z "$INSTALL"; then
2407  if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then  if test "${ac_cv_path_install+set}" = set; then
2408    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2409  else  else
2410      IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411    for ac_dir in $PATH; do  for as_dir in $PATH
2412      # Account for people who put trailing slashes in PATH elements.  do
2413      case "$ac_dir/" in    IFS=$as_save_IFS
2414      /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;    test -z "$as_dir" && as_dir=.
2415      *)    # Account for people who put trailing slashes in PATH elements.
2416        # OSF1 and SCO ODT 3.0 have their own names for install.  case $as_dir/ in
2417        # Don't use installbsd from OSF since it installs stuff as root    ./ | .// | /cC/* | \
2418        # by default.    /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2419        for ac_prog in ginstall scoinst install; do    ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2420          if test -f $ac_dir/$ac_prog; then    /usr/ucb/* ) ;;
2421      *)
2422        # OSF1 and SCO ODT 3.0 have their own names for install.
2423        # Don't use installbsd from OSF since it installs stuff as root
2424        # by default.
2425        for ac_prog in ginstall scoinst install; do
2426          for ac_exec_ext in '' $ac_executable_extensions; do
2427            if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2428            if test $ac_prog = install &&            if test $ac_prog = install &&
2429              grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then              grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2430              # AIX install.  It has an incompatible calling convention.              # AIX install.  It has an incompatible calling convention.
2431              :              :
2432              elif test $ac_prog = install &&
2433                grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2434                # program-specific install script used by HP pwplus--don't use.
2435                :
2436            else            else
2437              ac_cv_path_install="$ac_dir/$ac_prog -c"              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2438              break 2              break 3
2439            fi            fi
2440          fi          fi
2441        done        done
2442        ;;      done
2443      esac      ;;
2444    done  esac
2445    IFS="$ac_save_IFS"  done
2446    
2447    
2448  fi  fi
2449    if test "${ac_cv_path_install+set}" = set; then    if test "${ac_cv_path_install+set}" = set; then
2450      INSTALL="$ac_cv_path_install"      INSTALL=$ac_cv_path_install
2451    else    else
2452      # As a last resort, use the slow shell script.  We don't cache a      # As a last resort, use the slow shell script.  We don't cache a
2453      # path for INSTALL within a source directory, because that will      # path for INSTALL within a source directory, because that will
2454      # break other packages using the cache if that directory is      # break other packages using the cache if that directory is
2455      # removed, or if the path is relative.      # removed, or if the path is relative.
2456      INSTALL="$ac_install_sh"      INSTALL=$ac_install_sh
2457    fi    fi
2458  fi  fi
2459  echo "$ac_t""$INSTALL" 1>&6  echo "$as_me:$LINENO: result: $INSTALL" >&5
2460    echo "${ECHO_T}$INSTALL" >&6
2461    
2462  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2463  # It thinks the first close brace ends the variable substitution.  # It thinks the first close brace ends the variable substitution.
2464  test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'  test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2465    
2466  test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'  test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2467    
2468  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2469    
2470    
2471  # Checks compiler.  # Checks compiler.
2472  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  ac_ext=c
2473  echo "configure:987: checking how to run the C preprocessor" >&5  ac_cpp='$CPP $CPPFLAGS'
2474    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2475    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2476    ac_compiler_gnu=$ac_cv_c_compiler_gnu
2477    echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2478    echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2479  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
2480  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
2481    CPP=    CPP=
2482  fi  fi
2483  if test -z "$CPP"; then  if test -z "$CPP"; then
2484  if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then    if test "${ac_cv_prog_CPP+set}" = set; then
2485    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2486  else  else
2487      # This must be in double quotes, not single quotes, because CPP may get        # Double quotes because CPP needs to be expanded
2488    # substituted into the Makefile and "${CC-cc}" will confuse make.      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2489    CPP="${CC-cc} -E"      do
2490          ac_preproc_ok=false
2491    for ac_c_preproc_warn_flag in '' yes
2492    do
2493      # Use a header file that comes with gcc, so configuring glibc
2494      # with a fresh cross-compiler works.
2495      # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2496      # <limits.h> exists even on freestanding compilers.
2497    # On the NeXT, cc -E runs the code through the compiler's parser,    # On the NeXT, cc -E runs the code through the compiler's parser,
2498    # not just through cpp.    # not just through cpp. "Syntax error" is here to catch this case.
2499    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
2500  #line 1002 "configure"  /* confdefs.h.  */
2501  #include "confdefs.h"  _ACEOF
2502  #include <assert.h>  cat confdefs.h >>conftest.$ac_ext
2503  Syntax Error  cat >>conftest.$ac_ext <<_ACEOF
2504  EOF  /* end confdefs.h.  */
2505  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  #ifdef __STDC__
2506  { (eval echo configure:1008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  # include <limits.h>
2507  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  #else
2508  if test -z "$ac_err"; then  # include <assert.h>
2509    :  #endif
2510                         Syntax error
2511    _ACEOF
2512    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2513      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2514      ac_status=$?
2515      grep -v '^ *+' conftest.er1 >conftest.err
2516      rm -f conftest.er1
2517      cat conftest.err >&5
2518      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519      (exit $ac_status); } >/dev/null; then
2520      if test -s conftest.err; then
2521        ac_cpp_err=$ac_c_preproc_warn_flag
2522        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2523      else
2524        ac_cpp_err=
2525      fi
2526  else  else
2527    echo "$ac_err" >&5    ac_cpp_err=yes
2528    echo "configure: failed program was:" >&5  fi
2529    cat conftest.$ac_ext >&5  if test -z "$ac_cpp_err"; then
   rm -rf conftest*  
   CPP="${CC-cc} -E -traditional-cpp"  
   cat > conftest.$ac_ext <<EOF  
 #line 1019 "configure"  
 #include "confdefs.h"  
 #include <assert.h>  
 Syntax Error  
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:1025: \"$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  
2530    :    :
2531  else  else
2532    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
2533    echo "configure: failed program was:" >&5  sed 's/^/| /' conftest.$ac_ext >&5
2534    cat conftest.$ac_ext >&5  
2535    rm -rf conftest*    # Broken: fails on valid input.
2536    CPP="${CC-cc} -nologo -E"  continue
2537    cat > conftest.$ac_ext <<EOF  fi
2538  #line 1036 "configure"  rm -f conftest.err conftest.$ac_ext
2539  #include "confdefs.h"  
2540  #include <assert.h>    # OK, works on sane cases.  Now check whether non-existent headers
2541  Syntax Error    # can be detected and how.
2542  EOF    cat >conftest.$ac_ext <<_ACEOF
2543  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  /* confdefs.h.  */
2544  { (eval echo configure:1042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  _ACEOF
2545  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat confdefs.h >>conftest.$ac_ext
2546  if test -z "$ac_err"; then  cat >>conftest.$ac_ext <<_ACEOF
2547    :  /* end confdefs.h.  */
2548    #include <ac_nonexistent.h>
2549    _ACEOF
2550    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2551      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2552      ac_status=$?
2553      grep -v '^ *+' conftest.er1 >conftest.err
2554      rm -f conftest.er1
2555      cat conftest.err >&5
2556      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557      (exit $ac_status); } >/dev/null; then
2558      if test -s conftest.err; then
2559        ac_cpp_err=$ac_c_preproc_warn_flag
2560        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2561      else
2562        ac_cpp_err=
2563      fi
2564  else  else
2565    echo "$ac_err" >&5    ac_cpp_err=yes
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   CPP=/lib/cpp  
2566  fi  fi
2567  rm -f conftest*  if test -z "$ac_cpp_err"; then
2568      # Broken: success on invalid input.
2569    continue
2570    else
2571      echo "$as_me: failed program was:" >&5
2572    sed 's/^/| /' conftest.$ac_ext >&5
2573    
2574      # Passes both tests.
2575    ac_preproc_ok=:
2576    break
2577  fi  fi
2578  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
2579    
2580    done
2581    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2582    rm -f conftest.err conftest.$ac_ext
2583    if $ac_preproc_ok; then
2584      break
2585  fi  fi
2586  rm -f conftest*  
2587    ac_cv_prog_CPP="$CPP"      done
2588        ac_cv_prog_CPP=$CPP
2589    
2590    fi
2591      CPP=$ac_cv_prog_CPP
2592    else
2593      ac_cv_prog_CPP=$CPP
2594    fi
2595    echo "$as_me:$LINENO: result: $CPP" >&5
2596    echo "${ECHO_T}$CPP" >&6
2597    ac_preproc_ok=false
2598    for ac_c_preproc_warn_flag in '' yes
2599    do
2600      # Use a header file that comes with gcc, so configuring glibc
2601      # with a fresh cross-compiler works.
2602      # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2603      # <limits.h> exists even on freestanding compilers.
2604      # On the NeXT, cc -E runs the code through the compiler's parser,
2605      # not just through cpp. "Syntax error" is here to catch this case.
2606      cat >conftest.$ac_ext <<_ACEOF
2607    /* confdefs.h.  */
2608    _ACEOF
2609    cat confdefs.h >>conftest.$ac_ext
2610    cat >>conftest.$ac_ext <<_ACEOF
2611    /* end confdefs.h.  */
2612    #ifdef __STDC__
2613    # include <limits.h>
2614    #else
2615    # include <assert.h>
2616    #endif
2617                         Syntax error
2618    _ACEOF
2619    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2620      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2621      ac_status=$?
2622      grep -v '^ *+' conftest.er1 >conftest.err
2623      rm -f conftest.er1
2624      cat conftest.err >&5
2625      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626      (exit $ac_status); } >/dev/null; then
2627      if test -s conftest.err; then
2628        ac_cpp_err=$ac_c_preproc_warn_flag
2629        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2630      else
2631        ac_cpp_err=
2632      fi
2633    else
2634      ac_cpp_err=yes
2635    fi
2636    if test -z "$ac_cpp_err"; then
2637      :
2638    else
2639      echo "$as_me: failed program was:" >&5
2640    sed 's/^/| /' conftest.$ac_ext >&5
2641    
2642      # Broken: fails on valid input.
2643    continue
2644    fi
2645    rm -f conftest.err conftest.$ac_ext
2646    
2647      # OK, works on sane cases.  Now check whether non-existent headers
2648      # can be detected and how.
2649      cat >conftest.$ac_ext <<_ACEOF
2650    /* confdefs.h.  */
2651    _ACEOF
2652    cat confdefs.h >>conftest.$ac_ext
2653    cat >>conftest.$ac_ext <<_ACEOF
2654    /* end confdefs.h.  */
2655    #include <ac_nonexistent.h>
2656    _ACEOF
2657    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2658      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2659      ac_status=$?
2660      grep -v '^ *+' conftest.er1 >conftest.err
2661      rm -f conftest.er1
2662      cat conftest.err >&5
2663      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664      (exit $ac_status); } >/dev/null; then
2665      if test -s conftest.err; then
2666        ac_cpp_err=$ac_c_preproc_warn_flag
2667        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2668      else
2669        ac_cpp_err=
2670      fi
2671    else
2672      ac_cpp_err=yes
2673    fi
2674    if test -z "$ac_cpp_err"; then
2675      # Broken: success on invalid input.
2676    continue
2677    else
2678      echo "$as_me: failed program was:" >&5
2679    sed 's/^/| /' conftest.$ac_ext >&5
2680    
2681      # Passes both tests.
2682    ac_preproc_ok=:
2683    break
2684  fi  fi
2685    CPP="$ac_cv_prog_CPP"  rm -f conftest.err conftest.$ac_ext
2686    
2687    done
2688    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2689    rm -f conftest.err conftest.$ac_ext
2690    if $ac_preproc_ok; then
2691      :
2692  else  else
2693    ac_cv_prog_CPP="$CPP"    { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2694    See \`config.log' for more details." >&5
2695    echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2696    See \`config.log' for more details." >&2;}
2697       { (exit 1); exit 1; }; }
2698  fi  fi
2699  echo "$ac_t""$CPP" 1>&6  
2700    ac_ext=c
2701    ac_cpp='$CPP $CPPFLAGS'
2702    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2703    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2704    ac_compiler_gnu=$ac_cv_c_compiler_gnu
2705    
2706    
2707  # Checks for systems.  # Checks for systems.
2708  echo $ac_n "checking for AIX""... $ac_c" 1>&6  
2709  echo "configure:1069: checking for AIX" >&5  
2710  cat > conftest.$ac_ext <<EOF  echo "$as_me:$LINENO: checking for egrep" >&5
2711  #line 1071 "configure"  echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2712  #include "confdefs.h"  if test "${ac_cv_prog_egrep+set}" = set; then
2713      echo $ECHO_N "(cached) $ECHO_C" >&6
2714    else
2715      if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2716        then ac_cv_prog_egrep='grep -E'
2717        else ac_cv_prog_egrep='egrep'
2718        fi
2719    fi
2720    echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2721    echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2722     EGREP=$ac_cv_prog_egrep
2723    
2724    
2725    
2726    echo "$as_me:$LINENO: checking for AIX" >&5
2727    echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2728    cat >conftest.$ac_ext <<_ACEOF
2729    /* confdefs.h.  */
2730    _ACEOF
2731    cat confdefs.h >>conftest.$ac_ext
2732    cat >>conftest.$ac_ext <<_ACEOF
2733    /* end confdefs.h.  */
2734  #ifdef _AIX  #ifdef _AIX
2735    yes    yes
2736  #endif  #endif
2737    
2738  EOF  _ACEOF
2739  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2740    egrep "yes" >/dev/null 2>&1; then    $EGREP "yes" >/dev/null 2>&1; then
2741    rm -rf conftest*    echo "$as_me:$LINENO: result: yes" >&5
2742    echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF  echo "${ECHO_T}yes" >&6
2743    cat >>confdefs.h <<\_ACEOF
2744  #define _ALL_SOURCE 1  #define _ALL_SOURCE 1
2745  EOF  _ACEOF
2746    
2747  else  else
2748    rm -rf conftest*    echo "$as_me:$LINENO: result: no" >&5
2749    echo "$ac_t""no" 1>&6  echo "${ECHO_T}no" >&6
2750  fi  fi
2751  rm -f conftest*  rm -f conftest*
2752    
2753    
2754  echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for library containing strerror" >&5
2755  echo "configure:1093: checking for POSIXized ISC" >&5  echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2756  if test -d /etc/conf/kconfig.d &&  if test "${ac_cv_search_strerror+set}" = set; then
2757    grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1    echo $ECHO_N "(cached) $ECHO_C" >&6
2758  then  else
2759    echo "$ac_t""yes" 1>&6    ac_func_search_save_LIBS=$LIBS
2760    ISC=yes # If later tests want to check for ISC.  ac_cv_search_strerror=no
2761    cat >> confdefs.h <<\EOF  cat >conftest.$ac_ext <<_ACEOF
2762  #define _POSIX_SOURCE 1  /* confdefs.h.  */
2763  EOF  _ACEOF
2764    cat confdefs.h >>conftest.$ac_ext
2765    cat >>conftest.$ac_ext <<_ACEOF
2766    /* end confdefs.h.  */
2767    
2768    if test "$GCC" = yes; then  /* Override any gcc2 internal prototype to avoid an error.  */
2769      CC="$CC -posix"  #ifdef __cplusplus
2770    extern "C"
2771    #endif
2772    /* We use char because int might match the return type of a gcc2
2773       builtin and then its argument prototype would still apply.  */
2774    char strerror ();
2775    int
2776    main ()
2777    {
2778    strerror ();
2779      ;
2780      return 0;
2781    }
2782    _ACEOF
2783    rm -f conftest.$ac_objext conftest$ac_exeext
2784    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2785      (eval $ac_link) 2>conftest.er1
2786      ac_status=$?
2787      grep -v '^ *+' conftest.er1 >conftest.err
2788      rm -f conftest.er1
2789      cat conftest.err >&5
2790      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791      (exit $ac_status); } &&
2792             { ac_try='test -z "$ac_c_werror_flag"
2793                             || test ! -s conftest.err'
2794      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795      (eval $ac_try) 2>&5
2796      ac_status=$?
2797      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798      (exit $ac_status); }; } &&
2799             { ac_try='test -s conftest$ac_exeext'
2800      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801      (eval $ac_try) 2>&5
2802      ac_status=$?
2803      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804      (exit $ac_status); }; }; then
2805      ac_cv_search_strerror="none required"
2806    else
2807      echo "$as_me: failed program was:" >&5
2808    sed 's/^/| /' conftest.$ac_ext >&5
2809    
2810    fi
2811    rm -f conftest.err conftest.$ac_objext \
2812          conftest$ac_exeext conftest.$ac_ext
2813    if test "$ac_cv_search_strerror" = no; then
2814      for ac_lib in cposix; do
2815        LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2816        cat >conftest.$ac_ext <<_ACEOF
2817    /* confdefs.h.  */
2818    _ACEOF
2819    cat confdefs.h >>conftest.$ac_ext
2820    cat >>conftest.$ac_ext <<_ACEOF
2821    /* end confdefs.h.  */
2822    
2823    /* Override any gcc2 internal prototype to avoid an error.  */
2824    #ifdef __cplusplus
2825    extern "C"
2826    #endif
2827    /* We use char because int might match the return type of a gcc2
2828       builtin and then its argument prototype would still apply.  */
2829    char strerror ();
2830    int
2831    main ()
2832    {
2833    strerror ();
2834      ;
2835      return 0;
2836    }
2837    _ACEOF
2838    rm -f conftest.$ac_objext conftest$ac_exeext
2839    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2840      (eval $ac_link) 2>conftest.er1
2841      ac_status=$?
2842      grep -v '^ *+' conftest.er1 >conftest.err
2843      rm -f conftest.er1
2844      cat conftest.err >&5
2845      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846      (exit $ac_status); } &&
2847             { ac_try='test -z "$ac_c_werror_flag"
2848                             || test ! -s conftest.err'
2849      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850      (eval $ac_try) 2>&5
2851      ac_status=$?
2852      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853      (exit $ac_status); }; } &&
2854             { ac_try='test -s conftest$ac_exeext'
2855      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856      (eval $ac_try) 2>&5
2857      ac_status=$?
2858      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859      (exit $ac_status); }; }; then
2860      ac_cv_search_strerror="-l$ac_lib"
2861    break
2862    else
2863      echo "$as_me: failed program was:" >&5
2864    sed 's/^/| /' conftest.$ac_ext >&5
2865    
2866    fi
2867    rm -f conftest.err conftest.$ac_objext \
2868          conftest$ac_exeext conftest.$ac_ext
2869      done
2870    fi
2871    LIBS=$ac_func_search_save_LIBS
2872    fi
2873    echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2874    echo "${ECHO_T}$ac_cv_search_strerror" >&6
2875    if test "$ac_cv_search_strerror" != no; then
2876      test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2877    
2878    fi
2879    
2880    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2881    echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2882    if test "${ac_cv_header_stdc+set}" = set; then
2883      echo $ECHO_N "(cached) $ECHO_C" >&6
2884    else
2885      cat >conftest.$ac_ext <<_ACEOF
2886    /* confdefs.h.  */
2887    _ACEOF
2888    cat confdefs.h >>conftest.$ac_ext
2889    cat >>conftest.$ac_ext <<_ACEOF
2890    /* end confdefs.h.  */
2891    #include <stdlib.h>
2892    #include <stdarg.h>
2893    #include <string.h>
2894    #include <float.h>
2895    
2896    int
2897    main ()
2898    {
2899    
2900      ;
2901      return 0;
2902    }
2903    _ACEOF
2904    rm -f conftest.$ac_objext
2905    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2906      (eval $ac_compile) 2>conftest.er1
2907      ac_status=$?
2908      grep -v '^ *+' conftest.er1 >conftest.err
2909      rm -f conftest.er1
2910      cat conftest.err >&5
2911      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912      (exit $ac_status); } &&
2913             { ac_try='test -z "$ac_c_werror_flag"
2914                             || test ! -s conftest.err'
2915      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916      (eval $ac_try) 2>&5
2917      ac_status=$?
2918      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919      (exit $ac_status); }; } &&
2920             { ac_try='test -s conftest.$ac_objext'
2921      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2922      (eval $ac_try) 2>&5
2923      ac_status=$?
2924      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925      (exit $ac_status); }; }; then
2926      ac_cv_header_stdc=yes
2927    else
2928      echo "$as_me: failed program was:" >&5
2929    sed 's/^/| /' conftest.$ac_ext >&5
2930    
2931    ac_cv_header_stdc=no
2932    fi
2933    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2934    
2935    if test $ac_cv_header_stdc = yes; then
2936      # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2937      cat >conftest.$ac_ext <<_ACEOF
2938    /* confdefs.h.  */
2939    _ACEOF
2940    cat confdefs.h >>conftest.$ac_ext
2941    cat >>conftest.$ac_ext <<_ACEOF
2942    /* end confdefs.h.  */
2943    #include <string.h>
2944    
2945    _ACEOF
2946    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2947      $EGREP "memchr" >/dev/null 2>&1; then
2948      :
2949    else
2950      ac_cv_header_stdc=no
2951    fi
2952    rm -f conftest*
2953    
2954    fi
2955    
2956    if test $ac_cv_header_stdc = yes; then
2957      # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2958      cat >conftest.$ac_ext <<_ACEOF
2959    /* confdefs.h.  */
2960    _ACEOF
2961    cat confdefs.h >>conftest.$ac_ext
2962    cat >>conftest.$ac_ext <<_ACEOF
2963    /* end confdefs.h.  */
2964    #include <stdlib.h>
2965    
2966    _ACEOF
2967    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2968      $EGREP "free" >/dev/null 2>&1; then
2969      :
2970    else
2971      ac_cv_header_stdc=no
2972    fi
2973    rm -f conftest*
2974    
2975    fi
2976    
2977    if test $ac_cv_header_stdc = yes; then
2978      # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2979      if test "$cross_compiling" = yes; then
2980      :
2981    else
2982      cat >conftest.$ac_ext <<_ACEOF
2983    /* confdefs.h.  */
2984    _ACEOF
2985    cat confdefs.h >>conftest.$ac_ext
2986    cat >>conftest.$ac_ext <<_ACEOF
2987    /* end confdefs.h.  */
2988    #include <ctype.h>
2989    #if ((' ' & 0x0FF) == 0x020)
2990    # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2991    # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2992    #else
2993    # define ISLOWER(c) \
2994                       (('a' <= (c) && (c) <= 'i') \
2995                         || ('j' <= (c) && (c) <= 'r') \
2996                         || ('s' <= (c) && (c) <= 'z'))
2997    # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2998    #endif
2999    
3000    #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3001    int
3002    main ()
3003    {
3004      int i;
3005      for (i = 0; i < 256; i++)
3006        if (XOR (islower (i), ISLOWER (i))
3007            || toupper (i) != TOUPPER (i))
3008          exit(2);
3009      exit (0);
3010    }
3011    _ACEOF
3012    rm -f conftest$ac_exeext
3013    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3014      (eval $ac_link) 2>&5
3015      ac_status=$?
3016      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3018      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3019      (eval $ac_try) 2>&5
3020      ac_status=$?
3021      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022      (exit $ac_status); }; }; then
3023      :
3024    else
3025      echo "$as_me: program exited with status $ac_status" >&5
3026    echo "$as_me: failed program was:" >&5
3027    sed 's/^/| /' conftest.$ac_ext >&5
3028    
3029    ( exit $ac_status )
3030    ac_cv_header_stdc=no
3031    fi
3032    rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3033    fi
3034    fi
3035    fi
3036    echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3037    echo "${ECHO_T}$ac_cv_header_stdc" >&6
3038    if test $ac_cv_header_stdc = yes; then
3039    
3040    cat >>confdefs.h <<\_ACEOF
3041    #define STDC_HEADERS 1
3042    _ACEOF
3043    
3044    fi
3045    
3046    # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3047    
3048    
3049    
3050    
3051    
3052    
3053    
3054    
3055    
3056    for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3057                      inttypes.h stdint.h unistd.h
3058    do
3059    as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3060    echo "$as_me:$LINENO: checking for $ac_header" >&5
3061    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3062    if eval "test \"\${$as_ac_Header+set}\" = set"; then
3063      echo $ECHO_N "(cached) $ECHO_C" >&6
3064    else
3065      cat >conftest.$ac_ext <<_ACEOF
3066    /* confdefs.h.  */
3067    _ACEOF
3068    cat confdefs.h >>conftest.$ac_ext
3069    cat >>conftest.$ac_ext <<_ACEOF
3070    /* end confdefs.h.  */
3071    $ac_includes_default
3072    
3073    #include <$ac_header>
3074    _ACEOF
3075    rm -f conftest.$ac_objext
3076    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3077      (eval $ac_compile) 2>conftest.er1
3078      ac_status=$?
3079      grep -v '^ *+' conftest.er1 >conftest.err
3080      rm -f conftest.er1
3081      cat conftest.err >&5
3082      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083      (exit $ac_status); } &&
3084             { ac_try='test -z "$ac_c_werror_flag"
3085                             || test ! -s conftest.err'
3086      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087      (eval $ac_try) 2>&5
3088      ac_status=$?
3089      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090      (exit $ac_status); }; } &&
3091             { ac_try='test -s conftest.$ac_objext'
3092      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093      (eval $ac_try) 2>&5
3094      ac_status=$?
3095      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096      (exit $ac_status); }; }; then
3097      eval "$as_ac_Header=yes"
3098    else
3099      echo "$as_me: failed program was:" >&5
3100    sed 's/^/| /' conftest.$ac_ext >&5
3101    
3102    eval "$as_ac_Header=no"
3103    fi
3104    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3105    fi
3106    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3107    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3108    if test `eval echo '${'$as_ac_Header'}'` = yes; then
3109      cat >>confdefs.h <<_ACEOF
3110    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3111    _ACEOF
3112    
3113    fi
3114    
3115    done
3116    
3117    
3118    if test "${ac_cv_header_minix_config_h+set}" = set; then
3119      echo "$as_me:$LINENO: checking for minix/config.h" >&5
3120    echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3121    if test "${ac_cv_header_minix_config_h+set}" = set; then
3122      echo $ECHO_N "(cached) $ECHO_C" >&6
3123    fi
3124    echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3125    echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3126    else
3127      # Is the header compilable?
3128    echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3129    echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3130    cat >conftest.$ac_ext <<_ACEOF
3131    /* confdefs.h.  */
3132    _ACEOF
3133    cat confdefs.h >>conftest.$ac_ext
3134    cat >>conftest.$ac_ext <<_ACEOF
3135    /* end confdefs.h.  */
3136    $ac_includes_default
3137    #include <minix/config.h>
3138    _ACEOF
3139    rm -f conftest.$ac_objext
3140    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3141      (eval $ac_compile) 2>conftest.er1
3142      ac_status=$?
3143      grep -v '^ *+' conftest.er1 >conftest.err
3144      rm -f conftest.er1
3145      cat conftest.err >&5
3146      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147      (exit $ac_status); } &&
3148             { ac_try='test -z "$ac_c_werror_flag"
3149                             || test ! -s conftest.err'
3150      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151      (eval $ac_try) 2>&5
3152      ac_status=$?
3153      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154      (exit $ac_status); }; } &&
3155             { ac_try='test -s conftest.$ac_objext'
3156      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157      (eval $ac_try) 2>&5
3158      ac_status=$?
3159      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160      (exit $ac_status); }; }; then
3161      ac_header_compiler=yes
3162    else
3163      echo "$as_me: failed program was:" >&5
3164    sed 's/^/| /' conftest.$ac_ext >&5
3165    
3166    ac_header_compiler=no
3167    fi
3168    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3169    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3170    echo "${ECHO_T}$ac_header_compiler" >&6
3171    
3172    # Is the header present?
3173    echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3174    echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3175    cat >conftest.$ac_ext <<_ACEOF
3176    /* confdefs.h.  */
3177    _ACEOF
3178    cat confdefs.h >>conftest.$ac_ext
3179    cat >>conftest.$ac_ext <<_ACEOF
3180    /* end confdefs.h.  */
3181    #include <minix/config.h>
3182    _ACEOF
3183    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3184      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3185      ac_status=$?
3186      grep -v '^ *+' conftest.er1 >conftest.err
3187      rm -f conftest.er1
3188      cat conftest.err >&5
3189      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190      (exit $ac_status); } >/dev/null; then
3191      if test -s conftest.err; then
3192        ac_cpp_err=$ac_c_preproc_warn_flag
3193        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3194    else    else
3195      CC="$CC -Xp"      ac_cpp_err=
3196    fi    fi
3197  else  else
3198    echo "$ac_t""no" 1>&6    ac_cpp_err=yes
   ISC=  
3199  fi  fi
3200    if test -z "$ac_cpp_err"; then
3201      ac_header_preproc=yes
3202    else
3203      echo "$as_me: failed program was:" >&5
3204    sed 's/^/| /' conftest.$ac_ext >&5
3205    
3206  ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`    ac_header_preproc=no
3207  echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6  fi
3208  echo "configure:1115: checking for minix/config.h" >&5  rm -f conftest.err conftest.$ac_ext
3209  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3210    echo $ac_n "(cached) $ac_c" 1>&6  echo "${ECHO_T}$ac_header_preproc" >&6
3211    
3212    # So?  What about this header?
3213    case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3214      yes:no: )
3215        { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3216    echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3217        { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3218    echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3219        ac_header_preproc=yes
3220        ;;
3221      no:yes:* )
3222        { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3223    echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3224        { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3225    echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3226        { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3227    echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3228        { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3229    echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3230        { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3231    echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3232        { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3233    echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3234        (
3235          cat <<\_ASBOX
3236    ## ------------------------------------------ ##
3237    ## Report this to the AC_PACKAGE_NAME lists.  ##
3238    ## ------------------------------------------ ##
3239    _ASBOX
3240        ) |
3241          sed "s/^/$as_me: WARNING:     /" >&2
3242        ;;
3243    esac
3244    echo "$as_me:$LINENO: checking for minix/config.h" >&5
3245    echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3246    if test "${ac_cv_header_minix_config_h+set}" = set; then
3247      echo $ECHO_N "(cached) $ECHO_C" >&6
3248  else  else
3249    cat > conftest.$ac_ext <<EOF    ac_cv_header_minix_config_h=$ac_header_preproc
 #line 1120 "configure"  
 #include "confdefs.h"  
 #include <minix/config.h>  
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:1125: \"$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*  
   eval "ac_cv_header_$ac_safe=yes"  
 else  
   echo "$ac_err" >&5  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=no"  
3250  fi  fi
3251  rm -f conftest*  echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3252    echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3253    
3254  fi  fi
3255  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test $ac_cv_header_minix_config_h = yes; then
   echo "$ac_t""yes" 1>&6  
3256    MINIX=yes    MINIX=yes
3257  else  else
3258    echo "$ac_t""no" 1>&6    MINIX=
 MINIX=  
3259  fi  fi
3260    
3261    
3262  if test "$MINIX" = yes; then  if test "$MINIX" = yes; then
3263    cat >> confdefs.h <<\EOF  
3264    cat >>confdefs.h <<\_ACEOF
3265  #define _POSIX_SOURCE 1  #define _POSIX_SOURCE 1
3266  EOF  _ACEOF
3267    
3268    
3269    cat >> confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
3270  #define _POSIX_1_SOURCE 2  #define _POSIX_1_SOURCE 2
3271  EOF  _ACEOF
3272    
3273    cat >> confdefs.h <<\EOF  
3274    cat >>confdefs.h <<\_ACEOF
3275  #define _MINIX 1  #define _MINIX 1
3276  EOF  _ACEOF
3277    
3278  fi  fi
3279    
3280    
3281  # Custom checks.  # Custom checks.
3282  zwarnflags=""  zwarnflags=""
3283    
3284  # Check whether --with-warn or --without-warn was given.  # Check whether --with-warn or --without-warn was given.
3285  if test "${with_warn+set}" = set; then  if test "${with_warn+set}" = set; then
3286    withval="$with_warn"    withval="$with_warn"
3287    zwarnflags="-pedantic -Wall -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wunreachable-code -Winline -Wpacked -Wno-sign-compare"    zwarnflags="-pedantic -Wall -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wunreachable-code -Winline -Wpacked -Wno-sign-compare"
3288  fi  fi;
   
3289    
3290  zlangflags=""  zlangflags=""
3291    
3292  # Check whether --with-ansi or --without-ansi was given.  # Check whether --with-ansi or --without-ansi was given.
3293  if test "${with_ansi+set}" = set; then  if test "${with_ansi+set}" = set; then
3294    withval="$with_ansi"    withval="$with_ansi"
3295    zlangflags="-ansi -pedantic"    zlangflags="-ansi -pedantic"
3296  fi  fi;
   
3297    
3298  extra_include=""  extra_include=""
3299    
3300  # Check whether --with-includes or --without-includes was given.  # Check whether --with-includes or --without-includes was given.
3301  if test "${with_includes+set}" = set; then  if test "${with_includes+set}" = set; then
3302    withval="$with_includes"    withval="$with_includes"
3303      
3304  case "x$withval" in  case "x$withval" in
3305  x/*|x.*)  x/*|x.*)
3306    echo "$ac_t""adding ${withval} to include search path" 1>&6    echo "$as_me:$LINENO: result: adding ${withval} to include search path" >&5
3307    echo "${ECHO_T}adding ${withval} to include search path" >&6
3308    if test ! -d ${withval}; then    if test ! -d ${withval}; then
3309      echo "$ac_t""Warning: directory ${withval} does not exist" 1>&6      echo "$as_me:$LINENO: result: Warning: directory ${withval} does not exist" >&5
3310    echo "${ECHO_T}Warning: directory ${withval} does not exist" >&6
3311    fi    fi
3312    extra_include="${extra_include} -I${withval}"    extra_include="${extra_include} -I${withval}"
3313    ;;    ;;
3314  *)  *)
3315    echo "$ac_t""not adding any includes" 1>&6    echo "$as_me:$LINENO: result: not adding any includes" >&5
3316    echo "${ECHO_T}not adding any includes" >&6
3317    ;;    ;;
3318  esac  esac
3319  fi  fi;
   
3320    
3321  extra_lib_dir=""  extra_lib_dir=""
3322    
3323  # Check whether --with-libraries or --without-libraries was given.  # Check whether --with-libraries or --without-libraries was given.
3324  if test "${with_libraries+set}" = set; then  if test "${with_libraries+set}" = set; then
3325    withval="$with_libraries"    withval="$with_libraries"
3326      
3327  case "x${withval}" in  case "x${withval}" in
3328  x/*|x.*)  x/*|x.*)
3329    echo "$ac_t""adding ${withval} to library search path" 1>&6    echo "$as_me:$LINENO: result: adding ${withval} to library search path" >&5
3330    echo "${ECHO_T}adding ${withval} to library search path" >&6
3331    if test ! -d ${withval}; then    if test ! -d ${withval}; then
3332      echo "$ac_t""Warning: directory ${withval} does not exist" 1>&6      echo "$as_me:$LINENO: result: Warning: directory ${withval} does not exist" >&5
3333    echo "${ECHO_T}Warning: directory ${withval} does not exist" >&6
3334    fi    fi
3335    extra_lib_dir="${extra_lib_dir} -L${withval}"    extra_lib_dir="${extra_lib_dir} -L${withval}"
3336    ;;    ;;
3337  *)  *)
3338    echo "$ac_t""not adding any libs" 1>&6    echo "$as_me:$LINENO: result: not adding any libs" >&5
3339    echo "${ECHO_T}not adding any libs" >&6
3340    ;;    ;;
3341  esac  esac
3342  fi  fi;
   
3343    
3344  extra_lib=""  extra_lib=""
3345    
3346  # Check whether --with-efence or --without-efence was given.  # Check whether --with-efence or --without-efence was given.
3347  if test "${with_efence+set}" = set; then  if test "${with_efence+set}" = set; then
3348    withval="$with_efence"    withval="$with_efence"
3349    extra_lib="${extra_lib} -lefence"    extra_lib="${extra_lib} -lefence"
3350  fi  fi;
3351    
3352    
3353  # Check whether --with-mysql or --without-mysql was given.  # Check whether --with-mysql or --without-mysql was given.
3354  if test "${with_mysql+set}" = set; then  if test "${with_mysql+set}" = set; then
3355    withval="$with_mysql"    withval="$with_mysql"
3356    ac_with_mysql='yes'    ac_with_mysql='yes'
3357  fi  fi;
3358    
3359    
3360  # Check whether --with-pgsql or --without-pgsql was given.  # Check whether --with-pgsql or --without-pgsql was given.
3361  if test "${with_pgsql+set}" = set; then  if test "${with_pgsql+set}" = set; then
3362    withval="$with_pgsql"    withval="$with_pgsql"
3363    ac_with_pgsql='yes'    ac_with_pgsql='yes'
3364  fi  fi;
3365    
3366    
3367  # Check whether --with-mssql or --without-mssql was given.  # Check whether --with-mssql or --without-mssql was given.
3368  if test "${with_mssql+set}" = set; then  if test "${with_mssql+set}" = set; then
3369    withval="$with_mssql"    withval="$with_mssql"
3370    ac_with_mssql='yes'    ac_with_mssql='yes'
3371  fi  fi;
   
3372    
3373  extra_define=""  extra_define=""
3374  # Check whether --enable-poll or --disable-poll was given.  # Check whether --enable-poll or --disable-poll was given.
3375  if test "${enable_poll+set}" = set; then  if test "${enable_poll+set}" = set; then
3376    enableval="$enable_poll"    enableval="$enable_poll"
3377      
3378    case "$enableval" in    case "$enableval" in
3379    yes)    yes)
3380      echo "Forcing poll() to be enabled"      echo "Forcing poll() to be enabled"
# Line 1261  if test "${enable_poll+set}" = set; then Line 3386  if test "${enable_poll+set}" = set; then
3386      ;;      ;;
3387    esac    esac
3388    
3389  fi  fi;
   
3390    
3391  # Disable poll() on certain platforms. Override by setting ac_cv_func_poll  # Disable poll() on certain platforms. Override by setting ac_cv_func_poll
3392  # when running configure.  # when running configure.
# Line 1306  fi Line 3430  fi
3430  # Check whether --enable-bnetd or --disable-bnetd was given.  # Check whether --enable-bnetd or --disable-bnetd was given.
3431  if test "${enable_bnetd+set}" = set; then  if test "${enable_bnetd+set}" = set; then
3432    enableval="$enable_bnetd"    enableval="$enable_bnetd"
   :  
 fi  
3433    
3434    fi;
3435  # Check whether --enable-d2cs or --disable-d2cs was given.  # Check whether --enable-d2cs or --disable-d2cs was given.
3436  if test "${enable_d2cs+set}" = set; then  if test "${enable_d2cs+set}" = set; then
3437    enableval="$enable_d2cs"    enableval="$enable_d2cs"
   :  
 fi  
3438    
3439    fi;
3440  # Check whether --enable-d2dbs or --disable-d2dbs was given.  # Check whether --enable-d2dbs or --disable-d2dbs was given.
3441  if test "${enable_d2dbs+set}" = set; then  if test "${enable_d2dbs+set}" = set; then
3442    enableval="$enable_d2dbs"    enableval="$enable_d2dbs"
   :  
 fi  
3443    
3444    fi;
3445    
3446  LDFLAGS="${LDFLAGS} ${extra_lib_dir}"  LDFLAGS="${LDFLAGS} ${extra_lib_dir}"
3447  LIBS="${LIBS} ${extra_lib}"  LIBS="${LIBS} ${extra_lib}"
# Line 1336  CPPFLAGS="${CPPFLAGS} ${extra_include}" Line 3457  CPPFLAGS="${CPPFLAGS} ${extra_include}"
3457    
3458    
3459  # Checks for compiler quirks.  # Checks for compiler quirks.
3460  if test $ac_cv_prog_gcc = yes; then  if test $ac_cv_c_compiler_gnu = yes; then
3461      echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3462  echo "configure:1342: checking whether ${CC-cc} needs -traditional" >&5  echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3463  if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then  if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3464    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3465  else  else
3466      ac_pattern="Autoconf.*'x'"      ac_pattern="Autoconf.*'x'"
3467    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3468  #line 1348 "configure"  /* confdefs.h.  */
3469  #include "confdefs.h"  _ACEOF
3470    cat confdefs.h >>conftest.$ac_ext
3471    cat >>conftest.$ac_ext <<_ACEOF
3472    /* end confdefs.h.  */
3473  #include <sgtty.h>  #include <sgtty.h>
3474  Autoconf TIOCGETP  Autoconf TIOCGETP
3475  EOF  _ACEOF
3476  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3477    egrep "$ac_pattern" >/dev/null 2>&1; then    $EGREP "$ac_pattern" >/dev/null 2>&1; then
   rm -rf conftest*  
3478    ac_cv_prog_gcc_traditional=yes    ac_cv_prog_gcc_traditional=yes
3479  else  else
   rm -rf conftest*  
3480    ac_cv_prog_gcc_traditional=no    ac_cv_prog_gcc_traditional=no
3481  fi  fi
3482  rm -f conftest*  rm -f conftest*
3483    
3484    
3485    if test $ac_cv_prog_gcc_traditional = no; then    if test $ac_cv_prog_gcc_traditional = no; then
3486      cat > conftest.$ac_ext <<EOF      cat >conftest.$ac_ext <<_ACEOF
3487  #line 1366 "configure"  /* confdefs.h.  */
3488  #include "confdefs.h"  _ACEOF
3489    cat confdefs.h >>conftest.$ac_ext
3490    cat >>conftest.$ac_ext <<_ACEOF
3491    /* end confdefs.h.  */
3492  #include <termio.h>  #include <termio.h>
3493  Autoconf TCGETA  Autoconf TCGETA
3494  EOF  _ACEOF
3495  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3496    egrep "$ac_pattern" >/dev/null 2>&1; then    $EGREP "$ac_pattern" >/dev/null 2>&1; then
   rm -rf conftest*  
3497    ac_cv_prog_gcc_traditional=yes    ac_cv_prog_gcc_traditional=yes
3498  fi  fi
3499  rm -f conftest*  rm -f conftest*
3500    
3501    fi    fi
3502  fi  fi
3503    echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3504  echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6  echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3505    if test $ac_cv_prog_gcc_traditional = yes; then    if test $ac_cv_prog_gcc_traditional = yes; then
3506      CC="$CC -traditional"      CC="$CC -traditional"
3507    fi    fi
# Line 1386  fi Line 3510  fi
3510    
3511    
3512    
3513  echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3514  echo "configure:1391: checking for ${CC-cc} option to accept ANSI C" >&5  echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3515  if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then  if test "${am_cv_prog_cc_stdc+set}" = set; then
3516    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3517  else  else
3518    am_cv_prog_cc_stdc=no    am_cv_prog_cc_stdc=no
3519  ac_save_CC="$CC"  ac_save_CC="$CC"
# Line 1402  ac_save_CC="$CC" Line 3526  ac_save_CC="$CC"
3526  for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"  for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3527  do  do
3528    CC="$ac_save_CC $ac_arg"    CC="$ac_save_CC $ac_arg"
3529    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3530  #line 1407 "configure"  /* confdefs.h.  */
3531  #include "confdefs.h"  _ACEOF
3532    cat confdefs.h >>conftest.$ac_ext
3533    cat >>conftest.$ac_ext <<_ACEOF
3534    /* end confdefs.h.  */
3535  #include <stdarg.h>  #include <stdarg.h>
3536  #include <stdio.h>  #include <stdio.h>
3537  #include <sys/types.h>  #include <sys/types.h>
# Line 1434  int pairnames (int, char **, FILE *(*)(s Line 3561  int pairnames (int, char **, FILE *(*)(s
3561  int argc;  int argc;
3562  char **argv;  char **argv;
3563    
3564  int main() {  int
3565    main ()
3566    {
3567    
3568  return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];  return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3569    
3570  ; return 0; }    ;
3571  EOF    return 0;
3572  if { (eval echo configure:1444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
3573    rm -rf conftest*  _ACEOF
3574    rm -f conftest.$ac_objext
3575    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3576      (eval $ac_compile) 2>conftest.er1
3577      ac_status=$?
3578      grep -v '^ *+' conftest.er1 >conftest.err
3579      rm -f conftest.er1
3580      cat conftest.err >&5
3581      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582      (exit $ac_status); } &&
3583             { ac_try='test -z "$ac_c_werror_flag"
3584                             || test ! -s conftest.err'
3585      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586      (eval $ac_try) 2>&5
3587      ac_status=$?
3588      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589      (exit $ac_status); }; } &&
3590             { ac_try='test -s conftest.$ac_objext'
3591      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592      (eval $ac_try) 2>&5
3593      ac_status=$?
3594      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595      (exit $ac_status); }; }; then
3596    am_cv_prog_cc_stdc="$ac_arg"; break    am_cv_prog_cc_stdc="$ac_arg"; break
3597  else  else
3598    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3599    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
3600    
3601  fi  fi
3602  rm -f conftest*  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3603  done  done
3604  CC="$ac_save_CC"  CC="$ac_save_CC"
3605    
3606  fi  fi
3607    
3608  if test -z "$am_cv_prog_cc_stdc"; then  if test -z "$am_cv_prog_cc_stdc"; then
3609    echo "$ac_t""none needed" 1>&6    echo "$as_me:$LINENO: result: none needed" >&5
3610    echo "${ECHO_T}none needed" >&6
3611  else  else
3612    echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6    echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3613    echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3614  fi  fi
3615  case "x$am_cv_prog_cc_stdc" in  case "x$am_cv_prog_cc_stdc" in
3616    x|xno) ;;    x|xno) ;;
3617    *) CC="$CC $am_cv_prog_cc_stdc" ;;    *) CC="$CC $am_cv_prog_cc_stdc" ;;
3618  esac  esac
3619    
3620  echo $ac_n "checking for working const""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3621  echo "configure:1468: checking for working const" >&5  echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3622  if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then  if test "${ac_cv_c_const+set}" = set; then
3623    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3624  else  else
3625    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3626  #line 1473 "configure"  /* confdefs.h.  */
3627  #include "confdefs.h"  _ACEOF
3628    cat confdefs.h >>conftest.$ac_ext
3629  int main() {  cat >>conftest.$ac_ext <<_ACEOF
3630    /* end confdefs.h.  */
3631  /* Ultrix mips cc rejects this.  */  
3632  typedef int charset[2]; const charset x;  int
3633  /* SunOS 4.1.1 cc rejects this.  */  main ()
3634  char const *const *ccp;  {
3635  char **p;  /* FIXME: Include the comments suggested by Paul. */
3636  /* NEC SVR4.0.2 mips cc rejects this.  */  #ifndef __cplusplus
3637  struct point {int x, y;};    /* Ultrix mips cc rejects this.  */
3638  static struct point const zero = {0,0};    typedef int charset[2];
3639  /* AIX XL C 1.02.0.0 rejects this.    const charset x;
3640     It does not let you subtract one const X* pointer from another in an arm    /* SunOS 4.1.1 cc rejects this.  */
3641     of an if-expression whose if-part is not a constant expression */    char const *const *ccp;
3642  const char *g = "string";    char **p;
3643  ccp = &g + (g ? g-g : 0);    /* NEC SVR4.0.2 mips cc rejects this.  */
3644  /* HPUX 7.0 cc rejects these. */    struct point {int x, y;};
3645  ++ccp;    static struct point const zero = {0,0};
3646  p = (char**) ccp;    /* AIX XL C 1.02.0.0 rejects this.
3647  ccp = (char const *const *) p;       It does not let you subtract one const X* pointer from another in
3648  { /* SCO 3.2v4 cc rejects this.  */       an arm of an if-expression whose if-part is not a constant
3649    char *t;       expression */
3650    char const *s = 0 ? (char *) 0 : (char const *) 0;    const char *g = "string";
3651      ccp = &g + (g ? g-g : 0);
3652    *t++ = 0;    /* HPUX 7.0 cc rejects these. */
3653  }    ++ccp;
3654  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */    p = (char**) ccp;
3655    int x[] = {25, 17};    ccp = (char const *const *) p;
3656    const int *foo = &x[0];    { /* SCO 3.2v4 cc rejects this.  */
3657    ++foo;      char *t;
3658  }      char const *s = 0 ? (char *) 0 : (char const *) 0;
3659  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */  
3660    typedef const int *iptr;      *t++ = 0;
3661    iptr p = 0;    }
3662    ++p;    { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3663  }      int x[] = {25, 17};
3664  { /* AIX XL C 1.02.0.0 rejects this saying      const int *foo = &x[0];
3665       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */      ++foo;
3666    struct s { int j; const int *ap[3]; };    }
3667    struct s *b; b->j = 5;    { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3668  }      typedef const int *iptr;
3669  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */      iptr p = 0;
3670    const int foo = 10;      ++p;
3671  }    }
3672      { /* AIX XL C 1.02.0.0 rejects this saying
3673  ; return 0; }         "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3674  EOF      struct s { int j; const int *ap[3]; };
3675  if { (eval echo configure:1522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then      struct s *b; b->j = 5;
3676    rm -rf conftest*    }
3677      { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3678        const int foo = 10;
3679      }
3680    #endif
3681    
3682      ;
3683      return 0;
3684    }
3685    _ACEOF
3686    rm -f conftest.$ac_objext
3687    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3688      (eval $ac_compile) 2>conftest.er1
3689      ac_status=$?
3690      grep -v '^ *+' conftest.er1 >conftest.err
3691      rm -f conftest.er1
3692      cat conftest.err >&5
3693      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694      (exit $ac_status); } &&
3695             { ac_try='test -z "$ac_c_werror_flag"
3696                             || test ! -s conftest.err'
3697      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3698      (eval $ac_try) 2>&5
3699      ac_status=$?
3700      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701      (exit $ac_status); }; } &&
3702             { ac_try='test -s conftest.$ac_objext'
3703      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704      (eval $ac_try) 2>&5
3705      ac_status=$?
3706      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707      (exit $ac_status); }; }; then
3708    ac_cv_c_const=yes    ac_cv_c_const=yes
3709  else  else
3710    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3711    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
3712    rm -rf conftest*  
3713    ac_cv_c_const=no  ac_cv_c_const=no
3714  fi  fi
3715  rm -f conftest*  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3716  fi  fi
3717    echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3718  echo "$ac_t""$ac_cv_c_const" 1>&6  echo "${ECHO_T}$ac_cv_c_const" >&6
3719  if test $ac_cv_c_const = no; then  if test $ac_cv_c_const = no; then
3720    cat >> confdefs.h <<\EOF  
3721  #define const  cat >>confdefs.h <<\_ACEOF
3722  EOF  #define const
3723    _ACEOF
3724    
3725  fi  fi
3726    
3727  echo $ac_n "checking for inline""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for inline" >&5
3728  echo "configure:1543: checking for inline" >&5  echo $ECHO_N "checking for inline... $ECHO_C" >&6
3729  if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then  if test "${ac_cv_c_inline+set}" = set; then
3730    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3731  else  else
3732    ac_cv_c_inline=no    ac_cv_c_inline=no
3733  for ac_kw in inline __inline__ __inline; do  for ac_kw in inline __inline__ __inline; do
3734    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3735  #line 1550 "configure"  /* confdefs.h.  */
3736  #include "confdefs.h"  _ACEOF
3737    cat confdefs.h >>conftest.$ac_ext
3738  int main() {  cat >>conftest.$ac_ext <<_ACEOF
3739  } $ac_kw foo() {  /* end confdefs.h.  */
3740  ; return 0; }  #ifndef __cplusplus
3741  EOF  typedef int foo_t;
3742  if { (eval echo configure:1557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  static $ac_kw foo_t static_foo () {return 0; }
3743    rm -rf conftest*  $ac_kw foo_t foo () {return 0; }
3744    #endif
3745    
3746    _ACEOF
3747    rm -f conftest.$ac_objext
3748    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3749      (eval $ac_compile) 2>conftest.er1
3750      ac_status=$?
3751      grep -v '^ *+' conftest.er1 >conftest.err
3752      rm -f conftest.er1
3753      cat conftest.err >&5
3754      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755      (exit $ac_status); } &&
3756             { ac_try='test -z "$ac_c_werror_flag"
3757                             || test ! -s conftest.err'
3758      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759      (eval $ac_try) 2>&5
3760      ac_status=$?
3761      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762      (exit $ac_status); }; } &&
3763             { ac_try='test -s conftest.$ac_objext'
3764      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765      (eval $ac_try) 2>&5
3766      ac_status=$?
3767      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768      (exit $ac_status); }; }; then
3769    ac_cv_c_inline=$ac_kw; break    ac_cv_c_inline=$ac_kw; break
3770  else  else
3771    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3772    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
3773    
3774  fi  fi
3775  rm -f conftest*  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3776  done  done
3777    
3778  fi  fi
3779    echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3780    echo "${ECHO_T}$ac_cv_c_inline" >&6
3781    
3782    
3783  echo "$ac_t""$ac_cv_c_inline" 1>&6  case $ac_cv_c_inline in
 case "$ac_cv_c_inline" in  
3784    inline | yes) ;;    inline | yes) ;;
3785    no) cat >> confdefs.h <<\EOF    *)
3786  #define inline      case $ac_cv_c_inline in
3787  EOF        no) ac_val=;;
3788   ;;        *) ac_val=$ac_cv_c_inline;;
3789    *)  cat >> confdefs.h <<EOF      esac
3790  #define inline $ac_cv_c_inline      cat >>confdefs.h <<_ACEOF
3791  EOF  #ifndef __cplusplus
3792   ;;  #define inline $ac_val
3793    #endif
3794    _ACEOF
3795        ;;
3796  esac  esac
3797    
3798  #AC_EXEEXT  #AC_EXEEXT
3799    
3800  # Checks for libraries.  # Checks for libraries.
3801  echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for pow in -lm" >&5
3802  echo "configure:1586: checking for pow in -lm" >&5  echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
3803  ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_m_pow+set}" = set; then
3804  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
3805  else  else
3806    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
3807  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
3808  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
3809  #line 1594 "configure"  /* confdefs.h.  */
3810  #include "confdefs.h"  _ACEOF
3811  /* Override any gcc2 internal prototype to avoid an error.  */  cat confdefs.h >>conftest.$ac_ext
3812  /* We use char because int might match the return type of a gcc2  cat >>conftest.$ac_ext <<_ACEOF
3813      builtin and then its argument prototype would still apply.  */  /* end confdefs.h.  */
 char pow();  
   
 int main() {  
 pow()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:1605: \"$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  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
3814    
3815  fi  /* Override any gcc2 internal prototype to avoid an error.  */
3816  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #ifdef __cplusplus
3817    echo "$ac_t""yes" 1>&6  extern "C"
3818    #endif
3819    /* We use char because int might match the return type of a gcc2
3820       builtin and then its argument prototype would still apply.  */
3821    char pow ();
3822    int
3823    main ()
3824    {
3825    pow ();
3826      ;
3827      return 0;
3828    }
3829    _ACEOF
3830    rm -f conftest.$ac_objext conftest$ac_exeext
3831    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3832      (eval $ac_link) 2>conftest.er1
3833      ac_status=$?
3834      grep -v '^ *+' conftest.er1 >conftest.err
3835      rm -f conftest.er1
3836      cat conftest.err >&5
3837      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838      (exit $ac_status); } &&
3839             { ac_try='test -z "$ac_c_werror_flag"
3840                             || test ! -s conftest.err'
3841      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842      (eval $ac_try) 2>&5
3843      ac_status=$?
3844      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845      (exit $ac_status); }; } &&
3846             { ac_try='test -s conftest$ac_exeext'
3847      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848      (eval $ac_try) 2>&5
3849      ac_status=$?
3850      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851      (exit $ac_status); }; }; then
3852      ac_cv_lib_m_pow=yes
3853    else
3854      echo "$as_me: failed program was:" >&5
3855    sed 's/^/| /' conftest.$ac_ext >&5
3856    
3857    ac_cv_lib_m_pow=no
3858    fi
3859    rm -f conftest.err conftest.$ac_objext \
3860          conftest$ac_exeext conftest.$ac_ext
3861    LIBS=$ac_check_lib_save_LIBS
3862    fi
3863    echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
3864    echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
3865    if test $ac_cv_lib_m_pow = yes; then
3866    LIBS="$LIBS -lm"    LIBS="$LIBS -lm"
 else  
   echo "$ac_t""no" 1>&6  
3867  fi  fi
3868    
3869    
3870  echo $ac_n "checking for compress in -lz""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for compress in -lz" >&5
3871  echo "configure:1627: checking for compress in -lz" >&5  echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6
3872  ac_lib_var=`echo z'_'compress | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_z_compress+set}" = set; then
3873  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
3874  else  else
3875    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
3876  LIBS="-lz  $LIBS"  LIBS="-lz  $LIBS"
3877  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
3878  #line 1635 "configure"  /* confdefs.h.  */
3879  #include "confdefs.h"  _ACEOF
3880  /* Override any gcc2 internal prototype to avoid an error.  */  cat confdefs.h >>conftest.$ac_ext
3881  /* We use char because int might match the return type of a gcc2  cat >>conftest.$ac_ext <<_ACEOF
3882      builtin and then its argument prototype would still apply.  */  /* end confdefs.h.  */
 char compress();  
   
 int main() {  
 compress()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:1646: \"$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  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
3883    
3884  fi  /* Override any gcc2 internal prototype to avoid an error.  */
3885  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #ifdef __cplusplus
3886    echo "$ac_t""yes" 1>&6  extern "C"
3887    #endif
3888    /* We use char because int might match the return type of a gcc2
3889       builtin and then its argument prototype would still apply.  */
3890    char compress ();
3891    int
3892    main ()
3893    {
3894    compress ();
3895      ;
3896      return 0;
3897    }
3898    _ACEOF
3899    rm -f conftest.$ac_objext conftest$ac_exeext
3900    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3901      (eval $ac_link) 2>conftest.er1
3902      ac_status=$?
3903      grep -v '^ *+' conftest.er1 >conftest.err
3904      rm -f conftest.er1
3905      cat conftest.err >&5
3906      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907      (exit $ac_status); } &&
3908             { ac_try='test -z "$ac_c_werror_flag"
3909                             || test ! -s conftest.err'
3910      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911      (eval $ac_try) 2>&5
3912      ac_status=$?
3913      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914      (exit $ac_status); }; } &&
3915             { ac_try='test -s conftest$ac_exeext'
3916      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917      (eval $ac_try) 2>&5
3918      ac_status=$?
3919      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920      (exit $ac_status); }; }; then
3921      ac_cv_lib_z_compress=yes
3922    else
3923      echo "$as_me: failed program was:" >&5
3924    sed 's/^/| /' conftest.$ac_ext >&5
3925    
3926    ac_cv_lib_z_compress=no
3927    fi
3928    rm -f conftest.err conftest.$ac_objext \
3929          conftest$ac_exeext conftest.$ac_ext
3930    LIBS=$ac_check_lib_save_LIBS
3931    fi
3932    echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
3933    echo "${ECHO_T}$ac_cv_lib_z_compress" >&6
3934    if test $ac_cv_lib_z_compress = yes; then
3935    LIBS="$LIBS -lz"    LIBS="$LIBS -lz"
 else  
   echo "$ac_t""no" 1>&6  
3936  fi  fi
3937    
3938    
# Line 1679  fi Line 3952  fi
3952    
3953  mysql_lib_path=""  mysql_lib_path=""
3954  if test "$ac_with_mysql" = "yes" ; then  if test "$ac_with_mysql" = "yes" ; then
3955      echo $ac_n "checking for mysql_init  in -lmysqlclient""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for mysql_init  in -lmysqlclient" >&5
3956  echo "configure:1684: checking for mysql_init  in -lmysqlclient" >&5  echo $ECHO_N "checking for mysql_init  in -lmysqlclient... $ECHO_C" >&6
3957  ac_lib_var=`echo mysqlclient'_'mysql_init  | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_mysqlclient_mysql_init_+set}" = set; then
3958  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
3959  else  else
3960    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
3961  LIBS="-lmysqlclient  $LIBS"  LIBS="-lmysqlclient  $LIBS"
3962  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
3963  #line 1692 "configure"  /* confdefs.h.  */
3964  #include "confdefs.h"  _ACEOF
3965  /* Override any gcc2 internal prototype to avoid an error.  */  cat confdefs.h >>conftest.$ac_ext
3966  /* We use char because int might match the return type of a gcc2  cat >>conftest.$ac_ext <<_ACEOF
3967      builtin and then its argument prototype would still apply.  */  /* end confdefs.h.  */
 char mysql_init ();  
   
 int main() {  
 mysql_init ()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:1703: \"$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  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
3968    
3969  fi  /* Override any gcc2 internal prototype to avoid an error.  */
3970  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #ifdef __cplusplus
3971    echo "$ac_t""yes" 1>&6  extern "C"
3972    #endif
3973    /* We use char because int might match the return type of a gcc2
3974       builtin and then its argument prototype would still apply.  */
3975    char mysql_init  ();
3976    int
3977    main ()
3978    {
3979    mysql_init  ();
3980      ;
3981      return 0;
3982    }
3983    _ACEOF
3984    rm -f conftest.$ac_objext conftest$ac_exeext
3985    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3986      (eval $ac_link) 2>conftest.er1
3987      ac_status=$?
3988      grep -v '^ *+' conftest.er1 >conftest.err
3989      rm -f conftest.er1
3990      cat conftest.err >&5
3991      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992      (exit $ac_status); } &&
3993             { ac_try='test -z "$ac_c_werror_flag"
3994                             || test ! -s conftest.err'
3995      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996      (eval $ac_try) 2>&5
3997      ac_status=$?
3998      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999      (exit $ac_status); }; } &&
4000             { ac_try='test -s conftest$ac_exeext'
4001      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002      (eval $ac_try) 2>&5
4003      ac_status=$?
4004      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005      (exit $ac_status); }; }; then
4006      ac_cv_lib_mysqlclient_mysql_init_=yes
4007    else
4008      echo "$as_me: failed program was:" >&5
4009    sed 's/^/| /' conftest.$ac_ext >&5
4010    
4011    ac_cv_lib_mysqlclient_mysql_init_=no
4012    fi
4013    rm -f conftest.err conftest.$ac_objext \
4014          conftest$ac_exeext conftest.$ac_ext
4015    LIBS=$ac_check_lib_save_LIBS
4016    fi
4017    echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_init_" >&5
4018    echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_init_" >&6
4019    if test $ac_cv_lib_mysqlclient_mysql_init_ = yes; then
4020    DEFINES="${DEFINES} -DWITH_SQL_MYSQL" ; LIBS="${LIBS} -lmysqlclient"    DEFINES="${DEFINES} -DWITH_SQL_MYSQL" ; LIBS="${LIBS} -lmysqlclient"
4021  else  else
   echo "$ac_t""no" 1>&6  
4022    
4023          echo -n "checking for mysql lib path ... "          echo -n "checking for mysql lib path ... "
4024          mysql_try_libs="/usr/lib /usr/lib/mysql /usr/local/lib /usr/local/lib/mysql /usr/local/mysql/lib /usr/local/mysql/lib/mysql"          mysql_try_libs="/usr/lib /usr/lib/mysql /usr/local/lib /usr/local/lib/mysql /usr/local/mysql/lib /usr/local/mysql/lib/mysql"
# Line 1725  else Line 4027  else
4027                  echo ${i}                  echo ${i}
4028                  save_ldflags="${LDFLAGS}"                  save_ldflags="${LDFLAGS}"
4029                  LDFLAGS="${LDFLAGS} -L${i}"                  LDFLAGS="${LDFLAGS} -L${i}"
4030                  echo $ac_n "checking for mysql_close  in -lmysqlclient""... $ac_c" 1>&6                  echo "$as_me:$LINENO: checking for mysql_close  in -lmysqlclient" >&5
4031  echo "configure:1730: checking for mysql_close  in -lmysqlclient" >&5  echo $ECHO_N "checking for mysql_close  in -lmysqlclient... $ECHO_C" >&6
4032  ac_lib_var=`echo mysqlclient'_'mysql_close  | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_mysqlclient_mysql_close_+set}" = set; then
4033  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4034  else  else
4035    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4036  LIBS="-lmysqlclient  $LIBS"  LIBS="-lmysqlclient  $LIBS"
4037  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4038  #line 1738 "configure"  /* confdefs.h.  */
4039  #include "confdefs.h"  _ACEOF
4040  /* Override any gcc2 internal prototype to avoid an error.  */  cat confdefs.h >>conftest.$ac_ext
4041  /* We use char because int might match the return type of a gcc2  cat >>conftest.$ac_ext <<_ACEOF
4042      builtin and then its argument prototype would still apply.  */  /* end confdefs.h.  */
 char mysql_close ();  
   
 int main() {  
 mysql_close ()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:1749: \"$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  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
4043    
4044  fi  /* Override any gcc2 internal prototype to avoid an error.  */
4045  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #ifdef __cplusplus
4046    echo "$ac_t""yes" 1>&6  extern "C"
4047    #endif
4048    /* We use char because int might match the return type of a gcc2
4049       builtin and then its argument prototype would still apply.  */
4050    char mysql_close  ();
4051    int
4052    main ()
4053    {
4054    mysql_close  ();
4055      ;
4056      return 0;
4057    }
4058    _ACEOF
4059    rm -f conftest.$ac_objext conftest$ac_exeext
4060    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4061      (eval $ac_link) 2>conftest.er1
4062      ac_status=$?
4063      grep -v '^ *+' conftest.er1 >conftest.err
4064      rm -f conftest.er1
4065      cat conftest.err >&5
4066      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067      (exit $ac_status); } &&
4068             { ac_try='test -z "$ac_c_werror_flag"
4069                             || test ! -s conftest.err'
4070      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071      (eval $ac_try) 2>&5
4072      ac_status=$?
4073      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074      (exit $ac_status); }; } &&
4075             { ac_try='test -s conftest$ac_exeext'
4076      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077      (eval $ac_try) 2>&5
4078      ac_status=$?
4079      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080      (exit $ac_status); }; }; then
4081      ac_cv_lib_mysqlclient_mysql_close_=yes
4082    else
4083      echo "$as_me: failed program was:" >&5
4084    sed 's/^/| /' conftest.$ac_ext >&5
4085    
4086    ac_cv_lib_mysqlclient_mysql_close_=no
4087    fi
4088    rm -f conftest.err conftest.$ac_objext \
4089          conftest$ac_exeext conftest.$ac_ext
4090    LIBS=$ac_check_lib_save_LIBS
4091    fi
4092    echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_close_" >&5
4093    echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_close_" >&6
4094    if test $ac_cv_lib_mysqlclient_mysql_close_ = yes; then
4095    DEFINES="${DEFINES} -DWITH_SQL_MYSQL" ; LIBS="${LIBS} -lmysqlclient" ; mysql_lib_path="${i}"    DEFINES="${DEFINES} -DWITH_SQL_MYSQL" ; LIBS="${LIBS} -lmysqlclient" ; mysql_lib_path="${i}"
4096  else  else
4097    echo "$ac_t""no" 1>&6    LDFLAGS="${save_ldflags}"
 LDFLAGS="${save_ldflags}"  
4098  fi  fi
4099    
4100                  break                  break
4101              fi              fi
4102          done          done
4103        
4104  fi  fi
4105    
4106  fi  fi
# Line 1790  fi Line 4121  fi
4121    
4122  pgsql_lib_path=""  pgsql_lib_path=""
4123  if test "$ac_with_pgsql" = "yes" ; then  if test "$ac_with_pgsql" = "yes" ; then
4124       echo $ac_n "checking for PQsetdbLogin  in -lpq""... $ac_c" 1>&6       echo "$as_me:$LINENO: checking for PQsetdbLogin  in -lpq" >&5
4125  echo "configure:1795: checking for PQsetdbLogin  in -lpq" >&5  echo $ECHO_N "checking for PQsetdbLogin  in -lpq... $ECHO_C" >&6
4126  ac_lib_var=`echo pq'_'PQsetdbLogin  | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_pq_PQsetdbLogin_+set}" = set; then
4127  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4128  else  else
4129    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4130  LIBS="-lpq  $LIBS"  LIBS="-lpq  $LIBS"
4131  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4132  #line 1803 "configure"  /* confdefs.h.  */
4133  #include "confdefs.h"  _ACEOF
4134  /* Override any gcc2 internal prototype to avoid an error.  */  cat confdefs.h >>conftest.$ac_ext
4135  /* We use char because int might match the return type of a gcc2  cat >>conftest.$ac_ext <<_ACEOF
4136      builtin and then its argument prototype would still apply.  */  /* end confdefs.h.  */
 char PQsetdbLogin ();  
   
 int main() {  
 PQsetdbLogin ()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:1814: \"$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  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
4137    
4138  fi  /* Override any gcc2 internal prototype to avoid an error.  */
4139  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #ifdef __cplusplus
4140    echo "$ac_t""yes" 1>&6  extern "C"
4141    #endif
4142    /* We use char because int might match the return type of a gcc2
4143       builtin and then its argument prototype would still apply.  */
4144    char PQsetdbLogin  ();
4145    int
4146    main ()
4147    {
4148    PQsetdbLogin  ();
4149      ;
4150      return 0;
4151    }
4152    _ACEOF
4153    rm -f conftest.$ac_objext conftest$ac_exeext
4154    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4155      (eval $ac_link) 2>conftest.er1
4156      ac_status=$?
4157      grep -v '^ *+' conftest.er1 >conftest.err
4158      rm -f conftest.er1
4159      cat conftest.err >&5
4160      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161      (exit $ac_status); } &&
4162             { ac_try='test -z "$ac_c_werror_flag"
4163                             || test ! -s conftest.err'
4164      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165      (eval $ac_try) 2>&5
4166      ac_status=$?
4167      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168      (exit $ac_status); }; } &&
4169             { ac_try='test -s conftest$ac_exeext'
4170      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171      (eval $ac_try) 2>&5
4172      ac_status=$?
4173      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174      (exit $ac_status); }; }; then
4175      ac_cv_lib_pq_PQsetdbLogin_=yes
4176    else
4177      echo "$as_me: failed program was:" >&5
4178    sed 's/^/| /' conftest.$ac_ext >&5
4179    
4180    ac_cv_lib_pq_PQsetdbLogin_=no
4181    fi
4182    rm -f conftest.err conftest.$ac_objext \
4183          conftest$ac_exeext conftest.$ac_ext
4184    LIBS=$ac_check_lib_save_LIBS
4185    fi
4186    echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQsetdbLogin_" >&5
4187    echo "${ECHO_T}$ac_cv_lib_pq_PQsetdbLogin_" >&6
4188    if test $ac_cv_lib_pq_PQsetdbLogin_ = yes; then
4189    DEFINES="${DEFINES} -DWITH_SQL_PGSQL" ; LIBS="${LIBS} -lpq"    DEFINES="${DEFINES} -DWITH_SQL_PGSQL" ; LIBS="${LIBS} -lpq"
4190  else  else
   echo "$ac_t""no" 1>&6  
4191    
4192          echo -n "checking for pgsql lib path ... "          echo -n "checking for pgsql lib path ... "
4193          pgsql_try_libs="/usr/lib /usr/lib/pgsql /usr/local/lib /usr/local/lib/pgsql /usr/local/pgsql/lib"          pgsql_try_libs="/usr/lib /usr/lib/pgsql /usr/local/lib /usr/local/lib/pgsql /usr/local/pgsql/lib"
# Line 1836  else Line 4196  else
4196                  echo ${i}                  echo ${i}
4197                  save_ldflags="${LDFLAGS}"                  save_ldflags="${LDFLAGS}"
4198                  LDFLAGS="${LDFLAGS} -L${i}"                  LDFLAGS="${LDFLAGS} -L${i}"
4199                  echo $ac_n "checking for PQfinish  in -lpq""... $ac_c" 1>&6                  echo "$as_me:$LINENO: checking for PQfinish  in -lpq" >&5
4200  echo "configure:1841: checking for PQfinish  in -lpq" >&5  echo $ECHO_N "checking for PQfinish  in -lpq... $ECHO_C" >&6
4201  ac_lib_var=`echo pq'_'PQfinish  | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_pq_PQfinish_+set}" = set; then
4202  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4203  else  else
4204    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4205  LIBS="-lpq  $LIBS"  LIBS="-lpq  $LIBS"
4206  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4207  #line 1849 "configure"  /* confdefs.h.  */
4208  #include "confdefs.h"  _ACEOF
4209  /* Override any gcc2 internal prototype to avoid an error.  */  cat confdefs.h >>conftest.$ac_ext
4210  /* We use char because int might match the return type of a gcc2  cat >>conftest.$ac_ext <<_ACEOF
4211      builtin and then its argument prototype would still apply.  */  /* end confdefs.h.  */
 char PQfinish ();  
   
 int main() {  
 PQfinish ()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:1860: \"$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  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
4212    
4213  fi  /* Override any gcc2 internal prototype to avoid an error.  */
4214  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #ifdef __cplusplus
4215    echo "$ac_t""yes" 1>&6  extern "C"
4216    #endif
4217    /* We use char because int might match the return type of a gcc2
4218       builtin and then its argument prototype would still apply.  */
4219    char PQfinish  ();
4220    int
4221    main ()
4222    {
4223    PQfinish  ();
4224      ;
4225      return 0;
4226    }
4227    _ACEOF
4228    rm -f conftest.$ac_objext conftest$ac_exeext
4229    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4230      (eval $ac_link) 2>conftest.er1
4231      ac_status=$?
4232      grep -v '^ *+' conftest.er1 >conftest.err
4233      rm -f conftest.er1
4234      cat conftest.err >&5
4235      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236      (exit $ac_status); } &&
4237             { ac_try='test -z "$ac_c_werror_flag"
4238                             || test ! -s conftest.err'
4239      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240      (eval $ac_try) 2>&5
4241      ac_status=$?
4242      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243      (exit $ac_status); }; } &&
4244             { ac_try='test -s conftest$ac_exeext'
4245      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246      (eval $ac_try) 2>&5
4247      ac_status=$?
4248      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249      (exit $ac_status); }; }; then
4250      ac_cv_lib_pq_PQfinish_=yes
4251    else
4252      echo "$as_me: failed program was:" >&5
4253    sed 's/^/| /' conftest.$ac_ext >&5
4254    
4255    ac_cv_lib_pq_PQfinish_=no
4256    fi
4257    rm -f conftest.err conftest.$ac_objext \
4258          conftest$ac_exeext conftest.$ac_ext
4259    LIBS=$ac_check_lib_save_LIBS
4260    fi
4261    echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQfinish_" >&5
4262    echo "${ECHO_T}$ac_cv_lib_pq_PQfinish_" >&6
4263    if test $ac_cv_lib_pq_PQfinish_ = yes; then
4264    DEFINES="${DEFINES} -DWITH_SQL_PGSQL" ; LIBS="${LIBS} -lpq" ; pgsql_lib_path="${i}"    DEFINES="${DEFINES} -DWITH_SQL_PGSQL" ; LIBS="${LIBS} -lpq" ; pgsql_lib_path="${i}"
4265  else  else
4266    echo "$ac_t""no" 1>&6    LDFLAGS="${save_ldflags}"
 LDFLAGS="${save_ldflags}"  
4267  fi  fi
4268    
4269                  break                  break
4270              fi              fi
4271          done          done
4272        
4273  fi  fi
4274    
4275  fi  fi
# Line 1901  fi Line 4290  fi
4290    
4291  mssql_lib_path=""  mssql_lib_path=""
4292  if test "$ac_with_mssql" = "yes" ; then  if test "$ac_with_mssql" = "yes" ; then
4293       echo $ac_n "checking for dbinit in -lsybdb""... $ac_c" 1>&6       echo "$as_me:$LINENO: checking for dbinit in -lsybdb" >&5
4294  echo "configure:1906: checking for dbinit in -lsybdb" >&5  echo $ECHO_N "checking for dbinit in -lsybdb... $ECHO_C" >&6
4295  ac_lib_var=`echo sybdb'_'dbinit | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_sybdb_dbinit+set}" = set; then
4296  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4297  else  else
4298    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4299  LIBS="-lsybdb  $LIBS"  LIBS="-lsybdb  $LIBS"
4300  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4301  #line 1914 "configure"  /* confdefs.h.  */
4302  #include "confdefs.h"  _ACEOF
4303  /* Override any gcc2 internal prototype to avoid an error.  */  cat confdefs.h >>conftest.$ac_ext
4304  /* We use char because int might match the return type of a gcc2  cat >>conftest.$ac_ext <<_ACEOF
4305      builtin and then its argument prototype would still apply.  */  /* end confdefs.h.  */
 char dbinit();  
   
 int main() {  
 dbinit()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:1925: \"$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  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
4306    
4307  fi  /* Override any gcc2 internal prototype to avoid an error.  */
4308  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #ifdef __cplusplus
4309    echo "$ac_t""yes" 1>&6  extern "C"
4310    #endif
4311    /* We use char because int might match the return type of a gcc2
4312       builtin and then its argument prototype would still apply.  */
4313    char dbinit ();
4314    int
4315    main ()
4316    {
4317    dbinit ();
4318      ;
4319      return 0;
4320    }
4321    _ACEOF
4322    rm -f conftest.$ac_objext conftest$ac_exeext
4323    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4324      (eval $ac_link) 2>conftest.er1
4325      ac_status=$?
4326      grep -v '^ *+' conftest.er1 >conftest.err
4327      rm -f conftest.er1
4328      cat conftest.err >&5
4329      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330      (exit $ac_status); } &&
4331             { ac_try='test -z "$ac_c_werror_flag"
4332                             || test ! -s conftest.err'
4333      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4334      (eval $ac_try) 2>&5
4335      ac_status=$?
4336      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337      (exit $ac_status); }; } &&
4338             { ac_try='test -s conftest$ac_exeext'
4339      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340      (eval $ac_try) 2>&5
4341      ac_status=$?
4342      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343      (exit $ac_status); }; }; then
4344      ac_cv_lib_sybdb_dbinit=yes
4345    else
4346      echo "$as_me: failed program was:" >&5
4347    sed 's/^/| /' conftest.$ac_ext >&5
4348    
4349    ac_cv_lib_sybdb_dbinit=no
4350    fi
4351    rm -f conftest.err conftest.$ac_objext \
4352          conftest$ac_exeext conftest.$ac_ext
4353    LIBS=$ac_check_lib_save_LIBS
4354    fi
4355    echo "$as_me:$LINENO: result: $ac_cv_lib_sybdb_dbinit" >&5
4356    echo "${ECHO_T}$ac_cv_lib_sybdb_dbinit" >&6
4357    if test $ac_cv_lib_sybdb_dbinit = yes; then
4358    DEFINES="${DEFINES} -DWITH_SQL_MSSQL" ; LIBS="${LIBS} -lsybdb"    DEFINES="${DEFINES} -DWITH_SQL_MSSQL" ; LIBS="${LIBS} -lsybdb"
4359  else  else
   echo "$ac_t""no" 1>&6  
4360    
4361          echo -n "checking for mssql/FreeTDS lib path ... "          echo -n "checking for mssql/FreeTDS lib path ... "
4362          mssql_try_libs="/usr/lib /usr/lib/freetds /usr/local/lib /usr/local/lib/freetds /usr/local/freetds/lib"          mssql_try_libs="/usr/lib /usr/lib/freetds /usr/local/lib /usr/local/lib/freetds /usr/local/freetds/lib"
# Line 1947  else Line 4365  else
4365                  echo ${i}                  echo ${i}
4366                  save_ldflags="${LDFLAGS}"                  save_ldflags="${LDFLAGS}"
4367                  LDFLAGS="${LDFLAGS} -L${i}"                  LDFLAGS="${LDFLAGS} -L${i}"
4368                  echo $ac_n "checking for dbclose in -lsybdb""... $ac_c" 1>&6                  echo "$as_me:$LINENO: checking for dbclose in -lsybdb" >&5
4369  echo "configure:1952: checking for dbclose in -lsybdb" >&5  echo $ECHO_N "checking for dbclose in -lsybdb... $ECHO_C" >&6
4370  ac_lib_var=`echo sybdb'_'dbclose | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_sybdb_dbclose+set}" = set; then
4371  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4372  else  else
4373    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4374  LIBS="-lsybdb  $LIBS"  LIBS="-lsybdb  $LIBS"
4375  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4376  #line 1960 "configure"  /* confdefs.h.  */
4377  #include "confdefs.h"  _ACEOF
4378  /* Override any gcc2 internal prototype to avoid an error.  */  cat confdefs.h >>conftest.$ac_ext
4379  /* We use char because int might match the return type of a gcc2  cat >>conftest.$ac_ext <<_ACEOF
4380      builtin and then its argument prototype would still apply.  */  /* end confdefs.h.  */
 char dbclose();  
   
 int main() {  
 dbclose()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:1971: \"$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  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
4381    
4382  fi  /* Override any gcc2 internal prototype to avoid an error.  */
4383  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #ifdef __cplusplus
4384    echo "$ac_t""yes" 1>&6  extern "C"
4385    #endif
4386    /* We use char because int might match the return type of a gcc2
4387       builtin and then its argument prototype would still apply.  */
4388    char dbclose ();
4389    int
4390    main ()
4391    {
4392    dbclose ();
4393      ;
4394      return 0;
4395    }
4396    _ACEOF
4397    rm -f conftest.$ac_objext conftest$ac_exeext
4398    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4399      (eval $ac_link) 2>conftest.er1
4400      ac_status=$?
4401      grep -v '^ *+' conftest.er1 >conftest.err
4402      rm -f conftest.er1
4403      cat conftest.err >&5
4404      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405      (exit $ac_status); } &&
4406             { ac_try='test -z "$ac_c_werror_flag"
4407                             || test ! -s conftest.err'
4408      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409      (eval $ac_try) 2>&5
4410      ac_status=$?
4411      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412      (exit $ac_status); }; } &&
4413             { ac_try='test -s conftest$ac_exeext'
4414      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415      (eval $ac_try) 2>&5
4416      ac_status=$?
4417      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418      (exit $ac_status); }; }; then
4419      ac_cv_lib_sybdb_dbclose=yes
4420    else
4421      echo "$as_me: failed program was:" >&5
4422    sed 's/^/| /' conftest.$ac_ext >&5
4423    
4424    ac_cv_lib_sybdb_dbclose=no
4425    fi
4426    rm -f conftest.err conftest.$ac_objext \
4427          conftest$ac_exeext conftest.$ac_ext
4428    LIBS=$ac_check_lib_save_LIBS
4429    fi
4430    echo "$as_me:$LINENO: result: $ac_cv_lib_sybdb_dbclose" >&5
4431    echo "${ECHO_T}$ac_cv_lib_sybdb_dbclose" >&6
4432    if test $ac_cv_lib_sybdb_dbclose = yes; then
4433    DEFINES="${DEFINES} -DWITH_SQL_MSSQL" ; LIBS="${LIBS} -lsybdb" ; mssql_lib_path="${i}"    DEFINES="${DEFINES} -DWITH_SQL_MSSQL" ; LIBS="${LIBS} -lsybdb" ; mssql_lib_path="${i}"
4434  else  else
4435    echo "$ac_t""no" 1>&6    LDFLAGS="${save_ldflags}"
 LDFLAGS="${save_ldflags}"  
4436  fi  fi
4437    
4438                  break                  break
4439              fi              fi
4440          done          done
4441        
4442  fi  fi
4443    
4444  fi  fi
4445    
4446  echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4447  echo "configure:2001: checking for gethostbyname in -lnsl" >&5  echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4448  ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4449  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4450  else  else
4451    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4452  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
4453  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4454  #line 2009 "configure"  /* confdefs.h.  */
4455  #include "confdefs.h"  _ACEOF
4456  /* Override any gcc2 internal prototype to avoid an error.  */  cat confdefs.h >>conftest.$ac_ext
4457  /* We use char because int might match the return type of a gcc2  cat >>conftest.$ac_ext <<_ACEOF
4458      builtin and then its argument prototype would still apply.  */  /* end confdefs.h.  */
 char gethostbyname();  
   
 int main() {  
 gethostbyname()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2020: \"$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  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
4459    
4460  fi  /* Override any gcc2 internal prototype to avoid an error.  */
4461  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #ifdef __cplusplus
4462    echo "$ac_t""yes" 1>&6  extern "C"
4463    #endif
4464    /* We use char because int might match the return type of a gcc2
4465       builtin and then its argument prototype would still apply.  */
4466    char gethostbyname ();
4467    int
4468    main ()
4469    {
4470    gethostbyname ();
4471      ;
4472      return 0;
4473    }
4474    _ACEOF
4475    rm -f conftest.$ac_objext conftest$ac_exeext
4476    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4477      (eval $ac_link) 2>conftest.er1
4478      ac_status=$?
4479      grep -v '^ *+' conftest.er1 >conftest.err
4480      rm -f conftest.er1
4481      cat conftest.err >&5
4482      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483      (exit $ac_status); } &&
4484             { ac_try='test -z "$ac_c_werror_flag"
4485                             || test ! -s conftest.err'
4486      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487      (eval $ac_try) 2>&5
4488      ac_status=$?
4489      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490      (exit $ac_status); }; } &&
4491             { ac_try='test -s conftest$ac_exeext'
4492      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493      (eval $ac_try) 2>&5
4494      ac_status=$?
4495      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496      (exit $ac_status); }; }; then
4497      ac_cv_lib_nsl_gethostbyname=yes
4498    else
4499      echo "$as_me: failed program was:" >&5
4500    sed 's/^/| /' conftest.$ac_ext >&5
4501    
4502    ac_cv_lib_nsl_gethostbyname=no
4503    fi
4504    rm -f conftest.err conftest.$ac_objext \
4505          conftest$ac_exeext conftest.$ac_ext
4506    LIBS=$ac_check_lib_save_LIBS
4507    fi
4508    echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4509    echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4510    if test $ac_cv_lib_nsl_gethostbyname = yes; then
4511    LIBS="$LIBS -lnsl"    LIBS="$LIBS -lnsl"
 else  
   echo "$ac_t""no" 1>&6  
4512  fi  fi
4513    
4514  echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4515  echo "configure:2041: checking for socket in -lsocket" >&5  echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4516  ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_socket_socket+set}" = set; then
4517  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4518  else  else
4519    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4520  LIBS="-lsocket  $LIBS"  LIBS="-lsocket  $LIBS"
4521  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4522  #line 2049 "configure"  /* confdefs.h.  */
4523  #include "confdefs.h"  _ACEOF
4524  /* Override any gcc2 internal prototype to avoid an error.  */  cat confdefs.h >>conftest.$ac_ext
4525  /* We use char because int might match the return type of a gcc2  cat >>conftest.$ac_ext <<_ACEOF
4526      builtin and then its argument prototype would still apply.  */  /* end confdefs.h.  */
 char socket();  
   
 int main() {  
 socket()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2060: \"$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  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
4527    
4528  fi  /* Override any gcc2 internal prototype to avoid an error.  */
4529  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #ifdef __cplusplus
4530    echo "$ac_t""yes" 1>&6  extern "C"
4531    #endif
4532    /* We use char because int might match the return type of a gcc2
4533       builtin and then its argument prototype would still apply.  */
4534    char socket ();
4535    int
4536    main ()
4537    {
4538    socket ();
4539      ;
4540      return 0;
4541    }
4542    _ACEOF
4543    rm -f conftest.$ac_objext conftest$ac_exeext
4544    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4545      (eval $ac_link) 2>conftest.er1
4546      ac_status=$?
4547      grep -v '^ *+' conftest.er1 >conftest.err
4548      rm -f conftest.er1
4549      cat conftest.err >&5
4550      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551      (exit $ac_status); } &&
4552             { ac_try='test -z "$ac_c_werror_flag"
4553                             || test ! -s conftest.err'
4554      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555      (eval $ac_try) 2>&5
4556      ac_status=$?
4557      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558      (exit $ac_status); }; } &&
4559             { ac_try='test -s conftest$ac_exeext'
4560      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561      (eval $ac_try) 2>&5
4562      ac_status=$?
4563      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564      (exit $ac_status); }; }; then
4565      ac_cv_lib_socket_socket=yes
4566    else
4567      echo "$as_me: failed program was:" >&5
4568    sed 's/^/| /' conftest.$ac_ext >&5
4569    
4570    ac_cv_lib_socket_socket=no
4571    fi
4572    rm -f conftest.err conftest.$ac_objext \
4573          conftest$ac_exeext conftest.$ac_ext
4574    LIBS=$ac_check_lib_save_LIBS
4575    fi
4576    echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4577    echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4578    if test $ac_cv_lib_socket_socket = yes; then
4579    LIBS="$LIBS -lsocket"    LIBS="$LIBS -lsocket"
 else  
   echo "$ac_t""no" 1>&6  
4580  fi  fi
4581    
4582  echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
4583  echo "configure:2081: checking for inet_aton in -lresolv" >&5  echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
4584  ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
4585  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4586  else  else
4587    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4588  LIBS="-lresolv  $LIBS"  LIBS="-lresolv  $LIBS"
4589  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4590  #line 2089 "configure"  /* confdefs.h.  */
4591  #include "confdefs.h"  _ACEOF
4592  /* Override any gcc2 internal prototype to avoid an error.  */  cat confdefs.h >>conftest.$ac_ext
4593  /* We use char because int might match the return type of a gcc2  cat >>conftest.$ac_ext <<_ACEOF
4594      builtin and then its argument prototype would still apply.  */  /* end confdefs.h.  */
 char inet_aton();  
   
 int main() {  
 inet_aton()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2100: \"$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  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
4595    
4596  fi  /* Override any gcc2 internal prototype to avoid an error.  */
4597  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #ifdef __cplusplus
4598    echo "$ac_t""yes" 1>&6  extern "C"
4599    #endif
4600    /* We use char because int might match the return type of a gcc2
4601       builtin and then its argument prototype would still apply.  */
4602    char inet_aton ();
4603    int
4604    main ()
4605    {
4606    inet_aton ();
4607      ;
4608      return 0;
4609    }
4610    _ACEOF
4611    rm -f conftest.$ac_objext conftest$ac_exeext
4612    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4613      (eval $ac_link) 2>conftest.er1
4614      ac_status=$?
4615      grep -v '^ *+' conftest.er1 >conftest.err
4616      rm -f conftest.er1
4617      cat conftest.err >&5
4618      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619      (exit $ac_status); } &&
4620             { ac_try='test -z "$ac_c_werror_flag"
4621                             || test ! -s conftest.err'
4622      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623      (eval $ac_try) 2>&5
4624      ac_status=$?
4625      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626      (exit $ac_status); }; } &&
4627             { ac_try='test -s conftest$ac_exeext'
4628      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629      (eval $ac_try) 2>&5
4630      ac_status=$?
4631      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632      (exit $ac_status); }; }; then
4633      ac_cv_lib_resolv_inet_aton=yes
4634    else
4635      echo "$as_me: failed program was:" >&5
4636    sed 's/^/| /' conftest.$ac_ext >&5
4637    
4638    ac_cv_lib_resolv_inet_aton=no
4639    fi
4640    rm -f conftest.err conftest.$ac_objext \
4641          conftest$ac_exeext conftest.$ac_ext
4642    LIBS=$ac_check_lib_save_LIBS
4643    fi
4644    echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
4645    echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
4646    if test $ac_cv_lib_resolv_inet_aton = yes; then
4647    LIBS="$LIBS -lresolv"    LIBS="$LIBS -lresolv"
 else  
   echo "$ac_t""no" 1>&6  
4648  fi  fi
4649    
4650  echo $ac_n "checking for __inet_aton in -lbind""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for __inet_aton in -lbind" >&5
4651  echo "configure:2121: checking for __inet_aton in -lbind" >&5  echo $ECHO_N "checking for __inet_aton in -lbind... $ECHO_C" >&6
4652  ac_lib_var=`echo bind'_'__inet_aton | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_bind___inet_aton+set}" = set; then
4653  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4654  else  else
4655    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4656  LIBS="-lbind  $LIBS"  LIBS="-lbind  $LIBS"
4657  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4658  #line 2129 "configure"  /* confdefs.h.  */
4659  #include "confdefs.h"  _ACEOF
4660  /* Override any gcc2 internal prototype to avoid an error.  */  cat confdefs.h >>conftest.$ac_ext
4661  /* We use char because int might match the return type of a gcc2  cat >>conftest.$ac_ext <<_ACEOF
4662      builtin and then its argument prototype would still apply.  */  /* end confdefs.h.  */
 char __inet_aton();  
   
 int main() {  
 __inet_aton()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2140: \"$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  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
4663    
4664  fi  /* Override any gcc2 internal prototype to avoid an error.  */
4665  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #ifdef __cplusplus
4666    echo "$ac_t""yes" 1>&6  extern "C"
4667    #endif
4668    /* We use char because int might match the return type of a gcc2
4669       builtin and then its argument prototype would still apply.  */
4670    char __inet_aton ();
4671    int
4672    main ()
4673    {
4674    __inet_aton ();
4675      ;
4676      return 0;
4677    }
4678    _ACEOF
4679    rm -f conftest.$ac_objext conftest$ac_exeext
4680    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4681      (eval $ac_link) 2>conftest.er1
4682      ac_status=$?
4683      grep -v '^ *+' conftest.er1 >conftest.err
4684      rm -f conftest.er1
4685      cat conftest.err >&5
4686      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687      (exit $ac_status); } &&
4688             { ac_try='test -z "$ac_c_werror_flag"
4689                             || test ! -s conftest.err'
4690      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691      (eval $ac_try) 2>&5
4692      ac_status=$?
4693      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694      (exit $ac_status); }; } &&
4695             { ac_try='test -s conftest$ac_exeext'
4696      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697      (eval $ac_try) 2>&5
4698      ac_status=$?
4699      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700      (exit $ac_status); }; }; then
4701      ac_cv_lib_bind___inet_aton=yes
4702    else
4703      echo "$as_me: failed program was:" >&5
4704    sed 's/^/| /' conftest.$ac_ext >&5
4705    
4706    ac_cv_lib_bind___inet_aton=no
4707    fi
4708    rm -f conftest.err conftest.$ac_objext \
4709          conftest$ac_exeext conftest.$ac_ext
4710    LIBS=$ac_check_lib_save_LIBS
4711    fi
4712    echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_aton" >&5
4713    echo "${ECHO_T}$ac_cv_lib_bind___inet_aton" >&6
4714    if test $ac_cv_lib_bind___inet_aton = yes; then
4715    LIBS="$LIBS -lbind"    LIBS="$LIBS -lbind"
 else  
   echo "$ac_t""no" 1>&6  
4716  fi  fi
4717    
4718  case "$host" in  case "$host" in
# Line 2167  case "$host" in Line 4726  case "$host" in
4726  esac  esac
4727    
4728  # Checks for header files.  # Checks for header files.
4729    
4730    
4731    
4732    
4733    
4734  ac_header_dirent=no  ac_header_dirent=no
4735  for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h  for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4736  do    as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4737  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4738  echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6  echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4739  echo "configure:2176: checking for $ac_hdr that defines DIR" >&5  if eval "test \"\${$as_ac_Header+set}\" = set"; then
4740  if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
4741    echo $ac_n "(cached) $ac_c" 1>&6  else
4742  else    cat >conftest.$ac_ext <<_ACEOF
4743    cat > conftest.$ac_ext <<EOF  /* confdefs.h.  */
4744  #line 2181 "configure"  _ACEOF
4745  #include "confdefs.h"  cat confdefs.h >>conftest.$ac_ext
4746    cat >>conftest.$ac_ext <<_ACEOF
4747    /* end confdefs.h.  */
4748  #include <sys/types.h>  #include <sys/types.h>
4749  #include <$ac_hdr>  #include <$ac_hdr>
4750  int main() {  
4751  DIR *dirp = 0;  int
4752  ; return 0; }  main ()
4753  EOF  {
4754  if { (eval echo configure:2189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if ((DIR *) 0)
4755    rm -rf conftest*  return 0;
4756    eval "ac_cv_header_dirent_$ac_safe=yes"    ;
4757  else    return 0;
4758    echo "configure: failed program was:" >&5  }
4759    cat conftest.$ac_ext >&5  _ACEOF
4760    rm -rf conftest*  rm -f conftest.$ac_objext
4761    eval "ac_cv_header_dirent_$ac_safe=no"  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4762  fi    (eval $ac_compile) 2>conftest.er1
4763  rm -f conftest*    ac_status=$?
4764  fi    grep -v '^ *+' conftest.er1 >conftest.err
4765  if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then    rm -f conftest.er1
4766    echo "$ac_t""yes" 1>&6    cat conftest.err >&5
4767      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768    cat >> confdefs.h <<EOF    (exit $ac_status); } &&
4769  #define $ac_tr_hdr 1           { ac_try='test -z "$ac_c_werror_flag"
4770  EOF                           || test ! -s conftest.err'
4771   ac_header_dirent=$ac_hdr; break    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772  else    (eval $ac_try) 2>&5
4773    echo "$ac_t""no" 1>&6    ac_status=$?
4774      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775      (exit $ac_status); }; } &&
4776             { ac_try='test -s conftest.$ac_objext'
4777      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778      (eval $ac_try) 2>&5
4779      ac_status=$?
4780      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781      (exit $ac_status); }; }; then
4782      eval "$as_ac_Header=yes"
4783    else
4784      echo "$as_me: failed program was:" >&5
4785    sed 's/^/| /' conftest.$ac_ext >&5
4786    
4787    eval "$as_ac_Header=no"
4788    fi
4789    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4790    fi
4791    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4792    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4793    if test `eval echo '${'$as_ac_Header'}'` = yes; then
4794      cat >>confdefs.h <<_ACEOF
4795    #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4796    _ACEOF
4797    
4798    ac_header_dirent=$ac_hdr; break
4799  fi  fi
4800    
4801  done  done
4802  # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.  # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4803  if test $ac_header_dirent = dirent.h; then  if test $ac_header_dirent = dirent.h; then
4804  echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6    echo "$as_me:$LINENO: checking for library containing opendir" >&5
4805  echo "configure:2214: checking for opendir in -ldir" >&5  echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4806  ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`  if test "${ac_cv_search_opendir+set}" = set; then
4807  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
4808    echo $ac_n "(cached) $ac_c" 1>&6  else
4809  else    ac_func_search_save_LIBS=$LIBS
4810    ac_save_LIBS="$LIBS"  ac_cv_search_opendir=no
4811  LIBS="-ldir  $LIBS"  cat >conftest.$ac_ext <<_ACEOF
4812  cat > conftest.$ac_ext <<EOF  /* confdefs.h.  */
4813  #line 2222 "configure"  _ACEOF
4814  #include "confdefs.h"  cat confdefs.h >>conftest.$ac_ext
4815  /* Override any gcc2 internal prototype to avoid an error.  */  cat >>conftest.$ac_ext <<_ACEOF
4816  /* We use char because int might match the return type of a gcc2  /* end confdefs.h.  */
     builtin and then its argument prototype would still apply.  */  
 char opendir();  
   
 int main() {  
 opendir()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2233: \"$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  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
4817    
4818  fi  /* Override any gcc2 internal prototype to avoid an error.  */
4819  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #ifdef __cplusplus
4820    echo "$ac_t""yes" 1>&6  extern "C"
4821    LIBS="$LIBS -ldir"  #endif
4822    /* We use char because int might match the return type of a gcc2
4823       builtin and then its argument prototype would still apply.  */
4824    char opendir ();
4825    int
4826    main ()
4827    {
4828    opendir ();
4829      ;
4830      return 0;
4831    }
4832    _ACEOF
4833    rm -f conftest.$ac_objext conftest$ac_exeext
4834    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4835      (eval $ac_link) 2>conftest.er1
4836      ac_status=$?
4837      grep -v '^ *+' conftest.er1 >conftest.err
4838      rm -f conftest.er1
4839      cat conftest.err >&5
4840      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841      (exit $ac_status); } &&
4842             { ac_try='test -z "$ac_c_werror_flag"
4843                             || test ! -s conftest.err'
4844      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845      (eval $ac_try) 2>&5
4846      ac_status=$?
4847      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848      (exit $ac_status); }; } &&
4849             { ac_try='test -s conftest$ac_exeext'
4850      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851      (eval $ac_try) 2>&5
4852      ac_status=$?
4853      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854      (exit $ac_status); }; }; then
4855      ac_cv_search_opendir="none required"
4856    else
4857      echo "$as_me: failed program was:" >&5
4858    sed 's/^/| /' conftest.$ac_ext >&5
4859    
4860    fi
4861    rm -f conftest.err conftest.$ac_objext \
4862          conftest$ac_exeext conftest.$ac_ext
4863    if test "$ac_cv_search_opendir" = no; then
4864      for ac_lib in dir; do
4865        LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4866        cat >conftest.$ac_ext <<_ACEOF
4867    /* confdefs.h.  */
4868    _ACEOF
4869    cat confdefs.h >>conftest.$ac_ext
4870    cat >>conftest.$ac_ext <<_ACEOF
4871    /* end confdefs.h.  */
4872    
4873    /* Override any gcc2 internal prototype to avoid an error.  */
4874    #ifdef __cplusplus
4875    extern "C"
4876    #endif
4877    /* We use char because int might match the return type of a gcc2
4878       builtin and then its argument prototype would still apply.  */
4879    char opendir ();
4880    int
4881    main ()
4882    {
4883    opendir ();
4884      ;
4885      return 0;
4886    }
4887    _ACEOF
4888    rm -f conftest.$ac_objext conftest$ac_exeext
4889    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4890      (eval $ac_link) 2>conftest.er1
4891      ac_status=$?
4892      grep -v '^ *+' conftest.er1 >conftest.err
4893      rm -f conftest.er1
4894      cat conftest.err >&5
4895      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896      (exit $ac_status); } &&
4897             { ac_try='test -z "$ac_c_werror_flag"
4898                             || test ! -s conftest.err'
4899      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900      (eval $ac_try) 2>&5
4901      ac_status=$?
4902      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903      (exit $ac_status); }; } &&
4904             { ac_try='test -s conftest$ac_exeext'
4905      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906      (eval $ac_try) 2>&5
4907      ac_status=$?
4908      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909      (exit $ac_status); }; }; then
4910      ac_cv_search_opendir="-l$ac_lib"
4911    break
4912  else  else
4913    echo "$ac_t""no" 1>&6    echo "$as_me: failed program was:" >&5
4914    sed 's/^/| /' conftest.$ac_ext >&5
4915    
4916    fi
4917    rm -f conftest.err conftest.$ac_objext \
4918          conftest$ac_exeext conftest.$ac_ext
4919      done
4920    fi
4921    LIBS=$ac_func_search_save_LIBS
4922    fi
4923    echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4924    echo "${ECHO_T}$ac_cv_search_opendir" >&6
4925    if test "$ac_cv_search_opendir" != no; then
4926      test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4927    
4928  fi  fi
4929    
4930  else  else
4931  echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6    echo "$as_me:$LINENO: checking for library containing opendir" >&5
4932  echo "configure:2255: checking for opendir in -lx" >&5  echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4933  ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`  if test "${ac_cv_search_opendir+set}" = set; then
4934  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4935  else  else
4936    ac_save_LIBS="$LIBS"    ac_func_search_save_LIBS=$LIBS
4937  LIBS="-lx  $LIBS"  ac_cv_search_opendir=no
4938  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4939  #line 2263 "configure"  /* confdefs.h.  */
4940  #include "confdefs.h"  _ACEOF
4941    cat confdefs.h >>conftest.$ac_ext
4942    cat >>conftest.$ac_ext <<_ACEOF
4943    /* end confdefs.h.  */
4944    
4945  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4946    #ifdef __cplusplus
4947    extern "C"
4948    #endif
4949  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
4950      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4951  char opendir();  char opendir ();
4952    int
4953    main ()
4954    {
4955    opendir ();
4956      ;
4957      return 0;
4958    }
4959    _ACEOF
4960    rm -f conftest.$ac_objext conftest$ac_exeext
4961    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4962      (eval $ac_link) 2>conftest.er1
4963      ac_status=$?
4964      grep -v '^ *+' conftest.er1 >conftest.err
4965      rm -f conftest.er1
4966      cat conftest.err >&5
4967      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968      (exit $ac_status); } &&
4969             { ac_try='test -z "$ac_c_werror_flag"
4970                             || test ! -s conftest.err'
4971      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972      (eval $ac_try) 2>&5
4973      ac_status=$?
4974      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975      (exit $ac_status); }; } &&
4976             { ac_try='test -s conftest$ac_exeext'
4977      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978      (eval $ac_try) 2>&5
4979      ac_status=$?
4980      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981      (exit $ac_status); }; }; then
4982      ac_cv_search_opendir="none required"
4983    else
4984      echo "$as_me: failed program was:" >&5
4985    sed 's/^/| /' conftest.$ac_ext >&5
4986    
4987    fi
4988    rm -f conftest.err conftest.$ac_objext \
4989          conftest$ac_exeext conftest.$ac_ext
4990    if test "$ac_cv_search_opendir" = no; then
4991      for ac_lib in x; do
4992        LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4993        cat >conftest.$ac_ext <<_ACEOF
4994    /* confdefs.h.  */
4995    _ACEOF
4996    cat confdefs.h >>conftest.$ac_ext
4997    cat >>conftest.$ac_ext <<_ACEOF
4998    /* end confdefs.h.  */
4999    
5000  int main() {  /* Override any gcc2 internal prototype to avoid an error.  */
5001  opendir()  #ifdef __cplusplus
5002  ; return 0; }  extern "C"
5003  EOF  #endif
5004  if { (eval echo configure:2274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  /* We use char because int might match the return type of a gcc2
5005    rm -rf conftest*     builtin and then its argument prototype would still apply.  */
5006    eval "ac_cv_lib_$ac_lib_var=yes"  char opendir ();
5007    int
5008    main ()
5009    {
5010    opendir ();
5011      ;
5012      return 0;
5013    }
5014    _ACEOF
5015    rm -f conftest.$ac_objext conftest$ac_exeext
5016    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5017      (eval $ac_link) 2>conftest.er1
5018      ac_status=$?
5019      grep -v '^ *+' conftest.er1 >conftest.err
5020      rm -f conftest.er1
5021      cat conftest.err >&5
5022      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023      (exit $ac_status); } &&
5024             { ac_try='test -z "$ac_c_werror_flag"
5025                             || test ! -s conftest.err'
5026      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027      (eval $ac_try) 2>&5
5028      ac_status=$?
5029      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030      (exit $ac_status); }; } &&
5031             { ac_try='test -s conftest$ac_exeext'
5032      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033      (eval $ac_try) 2>&5
5034      ac_status=$?
5035      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036      (exit $ac_status); }; }; then
5037      ac_cv_search_opendir="-l$ac_lib"
5038    break
5039  else  else
5040    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
5041    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
5042    
5043  fi  fi
5044  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  rm -f conftest.err conftest.$ac_objext \
5045    echo "$ac_t""yes" 1>&6        conftest$ac_exeext conftest.$ac_ext
5046    LIBS="$LIBS -lx"    done
 else  
   echo "$ac_t""no" 1>&6  
5047  fi  fi
5048    LIBS=$ac_func_search_save_LIBS
5049    fi
5050    echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5051    echo "${ECHO_T}$ac_cv_search_opendir" >&6
5052    if test "$ac_cv_search_opendir" != no; then
5053      test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5054    
5055  fi  fi
5056    
5057  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6  fi
5058  echo "configure:2297: checking for ANSI C header files" >&5  
5059  if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5060    echo $ac_n "(cached) $ac_c" 1>&6  echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5061    if test "${ac_cv_header_stdc+set}" = set; then
5062      echo $ECHO_N "(cached) $ECHO_C" >&6
5063  else  else
5064    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5065  #line 2302 "configure"  /* confdefs.h.  */
5066  #include "confdefs.h"  _ACEOF
5067    cat confdefs.h >>conftest.$ac_ext
5068    cat >>conftest.$ac_ext <<_ACEOF
5069    /* end confdefs.h.  */
5070  #include <stdlib.h>  #include <stdlib.h>
5071  #include <stdarg.h>  #include <stdarg.h>
5072  #include <string.h>  #include <string.h>
5073  #include <float.h>  #include <float.h>
5074  EOF  
5075  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  int
5076  { (eval echo configure:2310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  main ()
5077  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  {
5078  if test -z "$ac_err"; then  
5079    rm -rf conftest*    ;
5080      return 0;
5081    }
5082    _ACEOF
5083    rm -f conftest.$ac_objext
5084    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5085      (eval $ac_compile) 2>conftest.er1
5086      ac_status=$?
5087      grep -v '^ *+' conftest.er1 >conftest.err
5088      rm -f conftest.er1
5089      cat conftest.err >&5
5090      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091      (exit $ac_status); } &&
5092             { ac_try='test -z "$ac_c_werror_flag"
5093                             || test ! -s conftest.err'
5094      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095      (eval $ac_try) 2>&5
5096      ac_status=$?
5097      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098      (exit $ac_status); }; } &&
5099             { ac_try='test -s conftest.$ac_objext'
5100      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101      (eval $ac_try) 2>&5
5102      ac_status=$?
5103      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104      (exit $ac_status); }; }; then
5105    ac_cv_header_stdc=yes    ac_cv_header_stdc=yes
5106  else  else
5107    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
5108    echo "configure: failed program was:" >&5  sed 's/^/| /' conftest.$ac_ext >&5
5109    cat conftest.$ac_ext >&5  
5110    rm -rf conftest*  ac_cv_header_stdc=no
   ac_cv_header_stdc=no  
5111  fi  fi
5112  rm -f conftest*  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5113    
5114  if test $ac_cv_header_stdc = yes; then  if test $ac_cv_header_stdc = yes; then
5115    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5116  cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5117  #line 2327 "configure"  /* confdefs.h.  */
5118  #include "confdefs.h"  _ACEOF
5119    cat confdefs.h >>conftest.$ac_ext
5120    cat >>conftest.$ac_ext <<_ACEOF
5121    /* end confdefs.h.  */
5122  #include <string.h>  #include <string.h>
5123  EOF  
5124    _ACEOF
5125  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5126    egrep "memchr" >/dev/null 2>&1; then    $EGREP "memchr" >/dev/null 2>&1; then
5127    :    :
5128  else  else
   rm -rf conftest*  
5129    ac_cv_header_stdc=no    ac_cv_header_stdc=no
5130  fi  fi
5131  rm -f conftest*  rm -f conftest*
# Line 2340  fi Line 5134  fi
5134    
5135  if test $ac_cv_header_stdc = yes; then  if test $ac_cv_header_stdc = yes; then
5136    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5137  cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5138  #line 2345 "configure"  /* confdefs.h.  */
5139  #include "confdefs.h"  _ACEOF
5140    cat confdefs.h >>conftest.$ac_ext
5141    cat >>conftest.$ac_ext <<_ACEOF
5142    /* end confdefs.h.  */
5143  #include <stdlib.h>  #include <stdlib.h>
5144  EOF  
5145    _ACEOF
5146  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5147    egrep "free" >/dev/null 2>&1; then    $EGREP "free" >/dev/null 2>&1; then
5148    :    :
5149  else  else
   rm -rf conftest*  
5150    ac_cv_header_stdc=no    ac_cv_header_stdc=no
5151  fi  fi
5152  rm -f conftest*  rm -f conftest*
# Line 2358  fi Line 5155  fi
5155    
5156  if test $ac_cv_header_stdc = yes; then  if test $ac_cv_header_stdc = yes; then
5157    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5158  if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
5159    :    :
5160  else  else
5161    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5162  #line 2366 "configure"  /* confdefs.h.  */
5163  #include "confdefs.h"  _ACEOF
5164    cat confdefs.h >>conftest.$ac_ext
5165    cat >>conftest.$ac_ext <<_ACEOF
5166    /* end confdefs.h.  */
5167  #include <ctype.h>  #include <ctype.h>
5168  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')  #if ((' ' & 0x0FF) == 0x020)
5169  #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))  # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5170    # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5171    #else
5172    # define ISLOWER(c) \
5173                       (('a' <= (c) && (c) <= 'i') \
5174                         || ('j' <= (c) && (c) <= 'r') \
5175                         || ('s' <= (c) && (c) <= 'z'))
5176    # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5177    #endif
5178    
5179  #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))  #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5180  int main () { int i; for (i = 0; i < 256; i++)  int
5181  if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);  main ()
5182  exit (0); }  {
5183      int i;
5184  EOF    for (i = 0; i < 256; i++)
5185  if { (eval echo configure:2377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null      if (XOR (islower (i), ISLOWER (i))
5186  then          || toupper (i) != TOUPPER (i))
5187          exit(2);
5188      exit (0);
5189    }
5190    _ACEOF
5191    rm -f conftest$ac_exeext
5192    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5193      (eval $ac_link) 2>&5
5194      ac_status=$?
5195      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5197      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198      (eval $ac_try) 2>&5
5199      ac_status=$?
5200      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201      (exit $ac_status); }; }; then
5202    :    :
5203  else  else
5204    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
5205    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
5206    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
5207    ac_cv_header_stdc=no  
5208    ( exit $ac_status )
5209    ac_cv_header_stdc=no
5210  fi  fi
5211  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5212  fi  fi
   
5213  fi  fi
5214  fi  fi
5215    echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5216  echo "$ac_t""$ac_cv_header_stdc" 1>&6  echo "${ECHO_T}$ac_cv_header_stdc" >&6
5217  if test $ac_cv_header_stdc = yes; then  if test $ac_cv_header_stdc = yes; then
5218    cat >> confdefs.h <<\EOF  
5219    cat >>confdefs.h <<\_ACEOF
5220  #define STDC_HEADERS 1  #define STDC_HEADERS 1
5221  EOF  _ACEOF
5222    
5223  fi  fi
5224    
5225  echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5226  echo "configure:2401: checking whether time.h and sys/time.h may both be included" >&5  echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5227  if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then  if test "${ac_cv_header_time+set}" = set; then
5228    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5229  else  else
5230    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5231  #line 2406 "configure"  /* confdefs.h.  */
5232  #include "confdefs.h"  _ACEOF
5233    cat confdefs.h >>conftest.$ac_ext
5234    cat >>conftest.$ac_ext <<_ACEOF
5235    /* end confdefs.h.  */
5236  #include <sys/types.h>  #include <sys/types.h>
5237  #include <sys/time.h>  #include <sys/time.h>
5238  #include <time.h>  #include <time.h>
5239  int main() {  
5240  struct tm *tp;  int
5241  ; return 0; }  main ()
5242  EOF  {
5243  if { (eval echo configure:2415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if ((struct tm *) 0)
5244    rm -rf conftest*  return 0;
5245      ;
5246      return 0;
5247    }
5248    _ACEOF
5249    rm -f conftest.$ac_objext
5250    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5251      (eval $ac_compile) 2>conftest.er1
5252      ac_status=$?
5253      grep -v '^ *+' conftest.er1 >conftest.err
5254      rm -f conftest.er1
5255      cat conftest.err >&5
5256      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257      (exit $ac_status); } &&
5258             { ac_try='test -z "$ac_c_werror_flag"
5259                             || test ! -s conftest.err'
5260      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5261      (eval $ac_try) 2>&5
5262      ac_status=$?
5263      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264      (exit $ac_status); }; } &&
5265             { ac_try='test -s conftest.$ac_objext'
5266      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5267      (eval $ac_try) 2>&5
5268      ac_status=$?
5269      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270      (exit $ac_status); }; }; then
5271    ac_cv_header_time=yes    ac_cv_header_time=yes
5272  else  else
5273    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
5274    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
5275    rm -rf conftest*  
5276    ac_cv_header_time=no  ac_cv_header_time=no
5277  fi  fi
5278  rm -f conftest*  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5279  fi  fi
5280    echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5281  echo "$ac_t""$ac_cv_header_time" 1>&6  echo "${ECHO_T}$ac_cv_header_time" >&6
5282  if test $ac_cv_header_time = yes; then  if test $ac_cv_header_time = yes; then
5283    cat >> confdefs.h <<\EOF  
5284    cat >>confdefs.h <<\_ACEOF
5285  #define TIME_WITH_SYS_TIME 1  #define TIME_WITH_SYS_TIME 1
5286  EOF  _ACEOF
5287    
5288  fi  fi
5289    
5290  echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5291  echo "configure:2436: checking whether stat file-mode macros are broken" >&5  echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5292  if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then  if test "${ac_cv_header_stat_broken+set}" = set; then
5293    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5294  else  else
5295    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5296  #line 2441 "configure"  /* confdefs.h.  */
5297  #include "confdefs.h"  _ACEOF
5298    cat confdefs.h >>conftest.$ac_ext
5299    cat >>conftest.$ac_ext <<_ACEOF
5300    /* end confdefs.h.  */
5301  #include <sys/types.h>  #include <sys/types.h>
5302  #include <sys/stat.h>  #include <sys/stat.h>
5303    
# Line 2466  You lose. Line 5325  You lose.
5325  # endif  # endif
5326  #endif  #endif
5327    
5328  EOF  _ACEOF
5329  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5330    egrep "You lose" >/dev/null 2>&1; then    $EGREP "You lose" >/dev/null 2>&1; then
   rm -rf conftest*  
5331    ac_cv_header_stat_broken=yes    ac_cv_header_stat_broken=yes
5332  else  else
   rm -rf conftest*  
5333    ac_cv_header_stat_broken=no    ac_cv_header_stat_broken=no
5334  fi  fi
5335  rm -f conftest*  rm -f conftest*
5336    
5337  fi  fi
5338    echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5339  echo "$ac_t""$ac_cv_header_stat_broken" 1>&6  echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5340  if test $ac_cv_header_stat_broken = yes; then  if test $ac_cv_header_stat_broken = yes; then
5341    cat >> confdefs.h <<\EOF  
5342    cat >>confdefs.h <<\_ACEOF
5343  #define STAT_MACROS_BROKEN 1  #define STAT_MACROS_BROKEN 1
5344  EOF  _ACEOF
5345    
5346  fi  fi
5347    
5348  for ac_hdr in fcntl.h sys/time.h time.h sys/select.h string.h strings.h unistd.h stdarg.h varargs.h malloc.h sys/utsname.h sys/timeb.h sys/socket.h sys/param.h netinet/in.h arpa/inet.h netdb.h termios.h stddef.h memory.h sys/types.h sys/wait.h sys/ioctl.h stdint.h sys/file.h limits.h poll.h sys/poll.h stropts.h sys/stropts.h sys/stat.h pwd.h grp.h dir.h direct.h sys/mman.h sys/event.h sys/epoll.h sys/resource.h assert.h  
5349    
5350    
5351    
5352    
5353    
5354    
5355    
5356    
5357    
5358    
5359    
5360    
5361    
5362    
5363    
5364    
5365    
5366    
5367    
5368    
5369    
5370    
5371    
5372    
5373    
5374    
5375    
5376    
5377    
5378    
5379    
5380    
5381    
5382    
5383    
5384    
5385    
5386    
5387    
5388    for ac_header in fcntl.h sys/time.h time.h sys/select.h string.h strings.h unistd.h stdarg.h varargs.h malloc.h sys/utsname.h sys/timeb.h sys/socket.h sys/param.h netinet/in.h arpa/inet.h netdb.h termios.h stddef.h memory.h sys/types.h sys/wait.h sys/ioctl.h stdint.h sys/file.h limits.h poll.h sys/poll.h stropts.h sys/stropts.h sys/stat.h pwd.h grp.h dir.h direct.h sys/mman.h sys/event.h sys/epoll.h sys/resource.h assert.h
5389  do  do
5390  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5391  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
5392  echo "configure:2495: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
5393  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5394    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
5395      echo $ECHO_N "(cached) $ECHO_C" >&6
5396    fi
5397    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5398    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5399    else
5400      # Is the header compilable?
5401    echo "$as_me:$LINENO: checking $ac_header usability" >&5
5402    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5403    cat >conftest.$ac_ext <<_ACEOF
5404    /* confdefs.h.  */
5405    _ACEOF
5406    cat confdefs.h >>conftest.$ac_ext
5407    cat >>conftest.$ac_ext <<_ACEOF
5408    /* end confdefs.h.  */
5409    $ac_includes_default
5410    #include <$ac_header>
5411    _ACEOF
5412    rm -f conftest.$ac_objext
5413    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5414      (eval $ac_compile) 2>conftest.er1
5415      ac_status=$?
5416      grep -v '^ *+' conftest.er1 >conftest.err
5417      rm -f conftest.er1
5418      cat conftest.err >&5
5419      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420      (exit $ac_status); } &&
5421             { ac_try='test -z "$ac_c_werror_flag"
5422                             || test ! -s conftest.err'
5423      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5424      (eval $ac_try) 2>&5
5425      ac_status=$?
5426      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427      (exit $ac_status); }; } &&
5428             { ac_try='test -s conftest.$ac_objext'
5429      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430      (eval $ac_try) 2>&5
5431      ac_status=$?
5432      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433      (exit $ac_status); }; }; then
5434      ac_header_compiler=yes
5435    else
5436      echo "$as_me: failed program was:" >&5
5437    sed 's/^/| /' conftest.$ac_ext >&5
5438    
5439    ac_header_compiler=no
5440    fi
5441    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5442    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5443    echo "${ECHO_T}$ac_header_compiler" >&6
5444    
5445    # Is the header present?
5446    echo "$as_me:$LINENO: checking $ac_header presence" >&5
5447    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5448    cat >conftest.$ac_ext <<_ACEOF
5449    /* confdefs.h.  */
5450    _ACEOF
5451    cat confdefs.h >>conftest.$ac_ext
5452    cat >>conftest.$ac_ext <<_ACEOF
5453    /* end confdefs.h.  */
5454    #include <$ac_header>
5455    _ACEOF
5456    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5457      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5458      ac_status=$?
5459      grep -v '^ *+' conftest.er1 >conftest.err
5460      rm -f conftest.er1
5461      cat conftest.err >&5
5462      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463      (exit $ac_status); } >/dev/null; then
5464      if test -s conftest.err; then
5465        ac_cpp_err=$ac_c_preproc_warn_flag
5466        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5467      else
5468        ac_cpp_err=
5469      fi
5470  else  else
5471    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
 #line 2500 "configure"  
 #include "confdefs.h"  
 #include <$ac_hdr>  
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:2505: \"$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*  
   eval "ac_cv_header_$ac_safe=yes"  
 else  
   echo "$ac_err" >&5  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=no"  
5472  fi  fi
5473  rm -f conftest*  if test -z "$ac_cpp_err"; then
5474  fi    ac_header_preproc=yes
5475  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  else
5476    echo "$ac_t""yes" 1>&6    echo "$as_me: failed program was:" >&5
5477      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  sed 's/^/| /' conftest.$ac_ext >&5
5478    cat >> confdefs.h <<EOF  
5479  #define $ac_tr_hdr 1    ac_header_preproc=no
5480  EOF  fi
5481    rm -f conftest.err conftest.$ac_ext
5482    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5483    echo "${ECHO_T}$ac_header_preproc" >&6
5484    
5485    # So?  What about this header?
5486    case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5487      yes:no: )
5488        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5489    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5490        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5491    echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5492        ac_header_preproc=yes
5493        ;;
5494      no:yes:* )
5495        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5496    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5497        { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5498    echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5499        { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5500    echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5501        { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5502    echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5503        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5504    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5505        { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5506    echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5507        (
5508          cat <<\_ASBOX
5509    ## ------------------------------------------ ##
5510    ## Report this to the AC_PACKAGE_NAME lists.  ##
5511    ## ------------------------------------------ ##
5512    _ASBOX
5513        ) |
5514          sed "s/^/$as_me: WARNING:     /" >&2
5515        ;;
5516    esac
5517    echo "$as_me:$LINENO: checking for $ac_header" >&5
5518    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5519    if eval "test \"\${$as_ac_Header+set}\" = set"; then
5520      echo $ECHO_N "(cached) $ECHO_C" >&6
5521  else  else
5522    echo "$ac_t""no" 1>&6    eval "$as_ac_Header=\$ac_header_preproc"
5523    fi
5524    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5525    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5526    
5527    fi
5528    if test `eval echo '${'$as_ac_Header'}'` = yes; then
5529      cat >>confdefs.h <<_ACEOF
5530    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5531    _ACEOF
5532    
5533  fi  fi
5534    
5535  done  done
5536    
5537    
5538  # Checks for typedefs and structures  # Checks for typedefs and structures
5539  echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5540  echo "configure:2534: checking whether struct tm is in sys/time.h or time.h" >&5  echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5541  if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then  if test "${ac_cv_struct_tm+set}" = set; then
5542    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5543  else  else
5544    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5545  #line 2539 "configure"  /* confdefs.h.  */
5546  #include "confdefs.h"  _ACEOF
5547    cat confdefs.h >>conftest.$ac_ext
5548    cat >>conftest.$ac_ext <<_ACEOF
5549    /* end confdefs.h.  */
5550  #include <sys/types.h>  #include <sys/types.h>
5551  #include <time.h>  #include <time.h>
5552  int main() {  
5553    int
5554    main ()
5555    {
5556  struct tm *tp; tp->tm_sec;  struct tm *tp; tp->tm_sec;
5557  ; return 0; }    ;
5558  EOF    return 0;
5559  if { (eval echo configure:2547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
5560    rm -rf conftest*  _ACEOF
5561    rm -f conftest.$ac_objext
5562    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5563      (eval $ac_compile) 2>conftest.er1
5564      ac_status=$?
5565      grep -v '^ *+' conftest.er1 >conftest.err
5566      rm -f conftest.er1
5567      cat conftest.err >&5
5568      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569      (exit $ac_status); } &&
5570             { ac_try='test -z "$ac_c_werror_flag"
5571                             || test ! -s conftest.err'
5572      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573      (eval $ac_try) 2>&5
5574      ac_status=$?
5575      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576      (exit $ac_status); }; } &&
5577             { ac_try='test -s conftest.$ac_objext'
5578      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579      (eval $ac_try) 2>&5
5580      ac_status=$?
5581      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582      (exit $ac_status); }; }; then
5583    ac_cv_struct_tm=time.h    ac_cv_struct_tm=time.h
5584  else  else
5585    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
5586    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
5587    rm -rf conftest*  
5588    ac_cv_struct_tm=sys/time.h  ac_cv_struct_tm=sys/time.h
5589  fi  fi
5590  rm -f conftest*  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5591  fi  fi
5592    echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5593  echo "$ac_t""$ac_cv_struct_tm" 1>&6  echo "${ECHO_T}$ac_cv_struct_tm" >&6
5594  if test $ac_cv_struct_tm = sys/time.h; then  if test $ac_cv_struct_tm = sys/time.h; then
5595    cat >> confdefs.h <<\EOF  
5596    cat >>confdefs.h <<\_ACEOF
5597  #define TM_IN_SYS_TIME 1  #define TM_IN_SYS_TIME 1
5598  EOF  _ACEOF
5599    
5600  fi  fi
5601    
5602  echo $ac_n "checking for pid_t""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for pid_t" >&5
5603  echo "configure:2568: checking for pid_t" >&5  echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5604  if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then  if test "${ac_cv_type_pid_t+set}" = set; then
5605    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5606  else  else
5607    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5608  #line 2573 "configure"  /* confdefs.h.  */
5609  #include "confdefs.h"  _ACEOF
5610  #include <sys/types.h>  cat confdefs.h >>conftest.$ac_ext
5611  #if STDC_HEADERS  cat >>conftest.$ac_ext <<_ACEOF
5612  #include <stdlib.h>  /* end confdefs.h.  */
5613  #include <stddef.h>  $ac_includes_default
5614  #endif  int
5615  EOF  main ()
5616  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  {
5617    egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then  if ((pid_t *) 0)
5618    rm -rf conftest*    return 0;
5619    if (sizeof (pid_t))
5620      return 0;
5621      ;
5622      return 0;
5623    }
5624    _ACEOF
5625    rm -f conftest.$ac_objext
5626    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5627      (eval $ac_compile) 2>conftest.er1
5628      ac_status=$?
5629      grep -v '^ *+' conftest.er1 >conftest.err
5630      rm -f conftest.er1
5631      cat conftest.err >&5
5632      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633      (exit $ac_status); } &&
5634             { ac_try='test -z "$ac_c_werror_flag"
5635                             || test ! -s conftest.err'
5636      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637      (eval $ac_try) 2>&5
5638      ac_status=$?
5639      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640      (exit $ac_status); }; } &&
5641             { ac_try='test -s conftest.$ac_objext'
5642      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643      (eval $ac_try) 2>&5
5644      ac_status=$?
5645      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646      (exit $ac_status); }; }; then
5647    ac_cv_type_pid_t=yes    ac_cv_type_pid_t=yes
5648  else  else
5649    rm -rf conftest*    echo "$as_me: failed program was:" >&5
5650    ac_cv_type_pid_t=no  sed 's/^/| /' conftest.$ac_ext >&5
 fi  
 rm -f conftest*  
5651    
5652    ac_cv_type_pid_t=no
5653    fi
5654    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5655  fi  fi
5656  echo "$ac_t""$ac_cv_type_pid_t" 1>&6  echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5657  if test $ac_cv_type_pid_t = no; then  echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5658    cat >> confdefs.h <<\EOF  if test $ac_cv_type_pid_t = yes; then
5659      :
5660    else
5661    
5662    cat >>confdefs.h <<_ACEOF
5663  #define pid_t int  #define pid_t int
5664  EOF  _ACEOF
5665    
5666  fi  fi
5667    
5668  echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5669  echo "configure:2601: checking return type of signal handlers" >&5  echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5670  if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then  if test "${ac_cv_type_signal+set}" = set; then
5671    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5672  else  else
5673    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5674  #line 2606 "configure"  /* confdefs.h.  */
5675  #include "confdefs.h"  _ACEOF
5676    cat confdefs.h >>conftest.$ac_ext
5677    cat >>conftest.$ac_ext <<_ACEOF
5678    /* end confdefs.h.  */
5679  #include <sys/types.h>  #include <sys/types.h>
5680  #include <signal.h>  #include <signal.h>
5681  #ifdef signal  #ifdef signal
5682  #undef signal  # undef signal
5683  #endif  #endif
5684  #ifdef __cplusplus  #ifdef __cplusplus
5685  extern "C" void (*signal (int, void (*)(int)))(int);  extern "C" void (*signal (int, void (*)(int)))(int);
# Line 2615  extern "C" void (*signal (int, void (*)( Line 5687  extern "C" void (*signal (int, void (*)(
5687  void (*signal ()) ();  void (*signal ()) ();
5688  #endif  #endif
5689    
5690  int main() {  int
5691    main ()
5692    {
5693  int i;  int i;
5694  ; return 0; }    ;
5695  EOF    return 0;
5696  if { (eval echo configure:2623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
5697    rm -rf conftest*  _ACEOF
5698    rm -f conftest.$ac_objext
5699    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5700      (eval $ac_compile) 2>conftest.er1
5701      ac_status=$?
5702      grep -v '^ *+' conftest.er1 >conftest.err
5703      rm -f conftest.er1
5704      cat conftest.err >&5
5705      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706      (exit $ac_status); } &&
5707             { ac_try='test -z "$ac_c_werror_flag"
5708                             || test ! -s conftest.err'
5709      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710      (eval $ac_try) 2>&5
5711      ac_status=$?
5712      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713      (exit $ac_status); }; } &&
5714             { ac_try='test -s conftest.$ac_objext'
5715      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716      (eval $ac_try) 2>&5
5717      ac_status=$?
5718      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719      (exit $ac_status); }; }; then
5720    ac_cv_type_signal=void    ac_cv_type_signal=void
5721  else  else
5722    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
5723    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
5724    rm -rf conftest*  
5725    ac_cv_type_signal=int  ac_cv_type_signal=int
5726  fi  fi
5727  rm -f conftest*  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5728  fi  fi
5729    echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5730    echo "${ECHO_T}$ac_cv_type_signal" >&6
5731    
5732  echo "$ac_t""$ac_cv_type_signal" 1>&6  cat >>confdefs.h <<_ACEOF
 cat >> confdefs.h <<EOF  
5733  #define RETSIGTYPE $ac_cv_type_signal  #define RETSIGTYPE $ac_cv_type_signal
5734  EOF  _ACEOF
5735    
5736    
5737  echo $ac_n "checking for off_t""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for off_t" >&5
5738  echo "configure:2642: checking for off_t" >&5  echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5739  if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then  if test "${ac_cv_type_off_t+set}" = set; then
5740    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5741  else  else
5742    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5743  #line 2647 "configure"  /* confdefs.h.  */
5744  #include "confdefs.h"  _ACEOF
5745  #include <sys/types.h>  cat confdefs.h >>conftest.$ac_ext
5746  #if STDC_HEADERS  cat >>conftest.$ac_ext <<_ACEOF
5747  #include <stdlib.h>  /* end confdefs.h.  */
5748  #include <stddef.h>  $ac_includes_default
5749  #endif  int
5750  EOF  main ()
5751  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  {
5752    egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then  if ((off_t *) 0)
5753    rm -rf conftest*    return 0;
5754    if (sizeof (off_t))
5755      return 0;
5756      ;
5757      return 0;
5758    }
5759    _ACEOF
5760    rm -f conftest.$ac_objext
5761    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5762      (eval $ac_compile) 2>conftest.er1
5763      ac_status=$?
5764      grep -v '^ *+' conftest.er1 >conftest.err
5765      rm -f conftest.er1
5766      cat conftest.err >&5
5767      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768      (exit $ac_status); } &&
5769             { ac_try='test -z "$ac_c_werror_flag"
5770                             || test ! -s conftest.err'
5771      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772      (eval $ac_try) 2>&5
5773      ac_status=$?
5774      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775      (exit $ac_status); }; } &&
5776             { ac_try='test -s conftest.$ac_objext'
5777      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778      (eval $ac_try) 2>&5
5779      ac_status=$?
5780      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781      (exit $ac_status); }; }; then
5782    ac_cv_type_off_t=yes    ac_cv_type_off_t=yes
5783  else  else
5784    rm -rf conftest*    echo "$as_me: failed program was:" >&5
5785    ac_cv_type_off_t=no  sed 's/^/| /' conftest.$ac_ext >&5
 fi  
 rm -f conftest*  
5786    
5787    ac_cv_type_off_t=no
5788  fi  fi
5789  echo "$ac_t""$ac_cv_type_off_t" 1>&6  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5790  if test $ac_cv_type_off_t = no; then  fi
5791    cat >> confdefs.h <<\EOF  echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5792    echo "${ECHO_T}$ac_cv_type_off_t" >&6
5793    if test $ac_cv_type_off_t = yes; then
5794      :
5795    else
5796    
5797    cat >>confdefs.h <<_ACEOF
5798  #define off_t long  #define off_t long
5799  EOF  _ACEOF
5800    
5801  fi  fi
5802    
5803  echo $ac_n "checking for size_t""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for size_t" >&5
5804  echo "configure:2675: checking for size_t" >&5  echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5805  if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then  if test "${ac_cv_type_size_t+set}" = set; then
5806    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5807  else  else
5808    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5809  #line 2680 "configure"  /* confdefs.h.  */
5810  #include "confdefs.h"  _ACEOF
5811  #include <sys/types.h>  cat confdefs.h >>conftest.$ac_ext
5812  #if STDC_HEADERS  cat >>conftest.$ac_ext <<_ACEOF
5813  #include <stdlib.h>  /* end confdefs.h.  */
5814  #include <stddef.h>  $ac_includes_default
5815  #endif  int
5816  EOF  main ()
5817  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  {
5818    egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then  if ((size_t *) 0)
5819    rm -rf conftest*    return 0;
5820    if (sizeof (size_t))
5821      return 0;
5822      ;
5823      return 0;
5824    }
5825    _ACEOF
5826    rm -f conftest.$ac_objext
5827    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5828      (eval $ac_compile) 2>conftest.er1
5829      ac_status=$?
5830      grep -v '^ *+' conftest.er1 >conftest.err
5831      rm -f conftest.er1
5832      cat conftest.err >&5
5833      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834      (exit $ac_status); } &&
5835             { ac_try='test -z "$ac_c_werror_flag"
5836                             || test ! -s conftest.err'
5837      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838      (eval $ac_try) 2>&5
5839      ac_status=$?
5840      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841      (exit $ac_status); }; } &&
5842             { ac_try='test -s conftest.$ac_objext'
5843      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844      (eval $ac_try) 2>&5
5845      ac_status=$?
5846      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847      (exit $ac_status); }; }; then
5848    ac_cv_type_size_t=yes    ac_cv_type_size_t=yes
5849  else  else
5850    rm -rf conftest*    echo "$as_me: failed program was:" >&5
5851    ac_cv_type_size_t=no  sed 's/^/| /' conftest.$ac_ext >&5
 fi  
 rm -f conftest*  
5852    
5853    ac_cv_type_size_t=no
5854    fi
5855    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5856  fi  fi
5857  echo "$ac_t""$ac_cv_type_size_t" 1>&6  echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5858  if test $ac_cv_type_size_t = no; then  echo "${ECHO_T}$ac_cv_type_size_t" >&6
5859    cat >> confdefs.h <<\EOF  if test $ac_cv_type_size_t = yes; then
5860      :
5861    else
5862    
5863    cat >>confdefs.h <<_ACEOF
5864  #define size_t unsigned  #define size_t unsigned
5865  EOF  _ACEOF
5866    
5867  fi  fi
5868    
5869  echo $ac_n "checking size of unsigned char""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for unsigned char" >&5
5870  echo "configure:2708: checking size of unsigned char" >&5  echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6
5871  if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_char'+set}'`\" = set"; then  if test "${ac_cv_type_unsigned_char+set}" = set; then
5872    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5873  else  else
5874      cat >conftest.$ac_ext <<_ACEOF
5875    /* confdefs.h.  */
5876    _ACEOF
5877    cat confdefs.h >>conftest.$ac_ext
5878    cat >>conftest.$ac_ext <<_ACEOF
5879    /* end confdefs.h.  */
5880    $ac_includes_default
5881    int
5882    main ()
5883    {
5884    if ((unsigned char *) 0)
5885      return 0;
5886    if (sizeof (unsigned char))
5887      return 0;
5888      ;
5889      return 0;
5890    }
5891    _ACEOF
5892    rm -f conftest.$ac_objext
5893    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5894      (eval $ac_compile) 2>conftest.er1
5895      ac_status=$?
5896      grep -v '^ *+' conftest.er1 >conftest.err
5897      rm -f conftest.er1
5898      cat conftest.err >&5
5899      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900      (exit $ac_status); } &&
5901             { ac_try='test -z "$ac_c_werror_flag"
5902                             || test ! -s conftest.err'
5903      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5904      (eval $ac_try) 2>&5
5905      ac_status=$?
5906      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907      (exit $ac_status); }; } &&
5908             { ac_try='test -s conftest.$ac_objext'
5909      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910      (eval $ac_try) 2>&5
5911      ac_status=$?
5912      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913      (exit $ac_status); }; }; then
5914      ac_cv_type_unsigned_char=yes
5915    else
5916      echo "$as_me: failed program was:" >&5
5917    sed 's/^/| /' conftest.$ac_ext >&5
5918    
5919    ac_cv_type_unsigned_char=no
5920    fi
5921    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5922    fi
5923    echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
5924    echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6
5925    
5926    echo "$as_me:$LINENO: checking size of unsigned char" >&5
5927    echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6
5928    if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
5929      echo $ECHO_N "(cached) $ECHO_C" >&6
5930    else
5931      if test "$ac_cv_type_unsigned_char" = yes; then
5932      # The cast to unsigned long works around a bug in the HP C Compiler
5933      # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5934      # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5935      # This bug is HP SR number 8606223364.
5936    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
5937    ac_cv_sizeof_unsigned_char=1    # Depending upon the size, compute the lo and hi bounds.
5938    cat >conftest.$ac_ext <<_ACEOF
5939    /* confdefs.h.  */
5940    _ACEOF
5941    cat confdefs.h >>conftest.$ac_ext
5942    cat >>conftest.$ac_ext <<_ACEOF
5943    /* end confdefs.h.  */
5944    $ac_includes_default
5945    int
5946    main ()
5947    {
5948    static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) >= 0)];
5949    test_array [0] = 0
5950    
5951      ;
5952      return 0;
5953    }
5954    _ACEOF
5955    rm -f conftest.$ac_objext
5956    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5957      (eval $ac_compile) 2>conftest.er1
5958      ac_status=$?
5959      grep -v '^ *+' conftest.er1 >conftest.err
5960      rm -f conftest.er1
5961      cat conftest.err >&5
5962      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963      (exit $ac_status); } &&
5964             { ac_try='test -z "$ac_c_werror_flag"
5965                             || test ! -s conftest.err'
5966      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5967      (eval $ac_try) 2>&5
5968      ac_status=$?
5969      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970      (exit $ac_status); }; } &&
5971             { ac_try='test -s conftest.$ac_objext'
5972      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5973      (eval $ac_try) 2>&5
5974      ac_status=$?
5975      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976      (exit $ac_status); }; }; then
5977      ac_lo=0 ac_mid=0
5978      while :; do
5979        cat >conftest.$ac_ext <<_ACEOF
5980    /* confdefs.h.  */
5981    _ACEOF
5982    cat confdefs.h >>conftest.$ac_ext
5983    cat >>conftest.$ac_ext <<_ACEOF
5984    /* end confdefs.h.  */
5985    $ac_includes_default
5986    int
5987    main ()
5988    {
5989    static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) <= $ac_mid)];
5990    test_array [0] = 0
5991    
5992      ;
5993      return 0;
5994    }
5995    _ACEOF
5996    rm -f conftest.$ac_objext
5997    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5998      (eval $ac_compile) 2>conftest.er1
5999      ac_status=$?
6000      grep -v '^ *+' conftest.er1 >conftest.err
6001      rm -f conftest.er1
6002      cat conftest.err >&5
6003      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004      (exit $ac_status); } &&
6005             { ac_try='test -z "$ac_c_werror_flag"
6006                             || test ! -s conftest.err'
6007      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008      (eval $ac_try) 2>&5
6009      ac_status=$?
6010      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011      (exit $ac_status); }; } &&
6012             { ac_try='test -s conftest.$ac_objext'
6013      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014      (eval $ac_try) 2>&5
6015      ac_status=$?
6016      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017      (exit $ac_status); }; }; then
6018      ac_hi=$ac_mid; break
6019    else
6020      echo "$as_me: failed program was:" >&5
6021    sed 's/^/| /' conftest.$ac_ext >&5
6022    
6023    ac_lo=`expr $ac_mid + 1`
6024                        if test $ac_lo -le $ac_mid; then
6025                          ac_lo= ac_hi=
6026                          break
6027                        fi
6028                        ac_mid=`expr 2 '*' $ac_mid + 1`
6029    fi
6030    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6031      done
6032    else
6033      echo "$as_me: failed program was:" >&5
6034    sed 's/^/| /' conftest.$ac_ext >&5
6035    
6036    cat >conftest.$ac_ext <<_ACEOF
6037    /* confdefs.h.  */
6038    _ACEOF
6039    cat confdefs.h >>conftest.$ac_ext
6040    cat >>conftest.$ac_ext <<_ACEOF
6041    /* end confdefs.h.  */
6042    $ac_includes_default
6043    int
6044    main ()
6045    {
6046    static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) < 0)];
6047    test_array [0] = 0
6048    
6049      ;
6050      return 0;
6051    }
6052    _ACEOF
6053    rm -f conftest.$ac_objext
6054    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6055      (eval $ac_compile) 2>conftest.er1
6056      ac_status=$?
6057      grep -v '^ *+' conftest.er1 >conftest.err
6058      rm -f conftest.er1
6059      cat conftest.err >&5
6060      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061      (exit $ac_status); } &&
6062             { ac_try='test -z "$ac_c_werror_flag"
6063                             || test ! -s conftest.err'
6064      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065      (eval $ac_try) 2>&5
6066      ac_status=$?
6067      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068      (exit $ac_status); }; } &&
6069             { ac_try='test -s conftest.$ac_objext'
6070      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071      (eval $ac_try) 2>&5
6072      ac_status=$?
6073      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074      (exit $ac_status); }; }; then
6075      ac_hi=-1 ac_mid=-1
6076      while :; do
6077        cat >conftest.$ac_ext <<_ACEOF
6078    /* confdefs.h.  */
6079    _ACEOF
6080    cat confdefs.h >>conftest.$ac_ext
6081    cat >>conftest.$ac_ext <<_ACEOF
6082    /* end confdefs.h.  */
6083    $ac_includes_default
6084    int
6085    main ()
6086    {
6087    static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) >= $ac_mid)];
6088    test_array [0] = 0
6089    
6090      ;
6091      return 0;
6092    }
6093    _ACEOF
6094    rm -f conftest.$ac_objext
6095    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6096      (eval $ac_compile) 2>conftest.er1
6097      ac_status=$?
6098      grep -v '^ *+' conftest.er1 >conftest.err
6099      rm -f conftest.er1
6100      cat conftest.err >&5
6101      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102      (exit $ac_status); } &&
6103             { ac_try='test -z "$ac_c_werror_flag"
6104                             || test ! -s conftest.err'
6105      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106      (eval $ac_try) 2>&5
6107      ac_status=$?
6108      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109      (exit $ac_status); }; } &&
6110             { ac_try='test -s conftest.$ac_objext'
6111      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112      (eval $ac_try) 2>&5
6113      ac_status=$?
6114      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115      (exit $ac_status); }; }; then
6116      ac_lo=$ac_mid; break
6117    else
6118      echo "$as_me: failed program was:" >&5
6119    sed 's/^/| /' conftest.$ac_ext >&5
6120    
6121    ac_hi=`expr '(' $ac_mid ')' - 1`
6122                           if test $ac_mid -le $ac_hi; then
6123                             ac_lo= ac_hi=
6124                             break
6125                           fi
6126                           ac_mid=`expr 2 '*' $ac_mid`
6127    fi
6128    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6129      done
6130  else  else
6131    cat > conftest.$ac_ext <<EOF    echo "$as_me: failed program was:" >&5
6132  #line 2716 "configure"  sed 's/^/| /' conftest.$ac_ext >&5
6133  #include "confdefs.h"  
6134    ac_lo= ac_hi=
6135    fi
6136    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6137    fi
6138    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6139    # Binary search between lo and hi bounds.
6140    while test "x$ac_lo" != "x$ac_hi"; do
6141      ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6142      cat >conftest.$ac_ext <<_ACEOF
6143    /* confdefs.h.  */
6144    _ACEOF
6145    cat confdefs.h >>conftest.$ac_ext
6146    cat >>conftest.$ac_ext <<_ACEOF
6147    /* end confdefs.h.  */
6148    $ac_includes_default
6149    int
6150    main ()
6151    {
6152    static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) <= $ac_mid)];
6153    test_array [0] = 0
6154    
6155      ;
6156      return 0;
6157    }
6158    _ACEOF
6159    rm -f conftest.$ac_objext
6160    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6161      (eval $ac_compile) 2>conftest.er1
6162      ac_status=$?
6163      grep -v '^ *+' conftest.er1 >conftest.err
6164      rm -f conftest.er1
6165      cat conftest.err >&5
6166      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167      (exit $ac_status); } &&
6168             { ac_try='test -z "$ac_c_werror_flag"
6169                             || test ! -s conftest.err'
6170      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171      (eval $ac_try) 2>&5
6172      ac_status=$?
6173      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174      (exit $ac_status); }; } &&
6175             { ac_try='test -s conftest.$ac_objext'
6176      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177      (eval $ac_try) 2>&5
6178      ac_status=$?
6179      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180      (exit $ac_status); }; }; then
6181      ac_hi=$ac_mid
6182    else
6183      echo "$as_me: failed program was:" >&5
6184    sed 's/^/| /' conftest.$ac_ext >&5
6185    
6186    ac_lo=`expr '(' $ac_mid ')' + 1`
6187    fi
6188    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6189    done
6190    case $ac_lo in
6191    ?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
6192    '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char), 77
6193    See \`config.log' for more details." >&5
6194    echo "$as_me: error: cannot compute sizeof (unsigned char), 77
6195    See \`config.log' for more details." >&2;}
6196       { (exit 1); exit 1; }; } ;;
6197    esac
6198    else
6199      if test "$cross_compiling" = yes; then
6200      { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6201    See \`config.log' for more details." >&5
6202    echo "$as_me: error: cannot run test program while cross compiling
6203    See \`config.log' for more details." >&2;}
6204       { (exit 1); exit 1; }; }
6205    else
6206      cat >conftest.$ac_ext <<_ACEOF
6207    /* confdefs.h.  */
6208    _ACEOF
6209    cat confdefs.h >>conftest.$ac_ext
6210    cat >>conftest.$ac_ext <<_ACEOF
6211    /* end confdefs.h.  */
6212    $ac_includes_default
6213    long longval () { return (long) (sizeof (unsigned char)); }
6214    unsigned long ulongval () { return (long) (sizeof (unsigned char)); }
6215  #include <stdio.h>  #include <stdio.h>
6216  main()  #include <stdlib.h>
6217    int
6218    main ()
6219  {  {
6220    FILE *f=fopen("conftestval", "w");  
6221    if (!f) exit(1);    FILE *f = fopen ("conftest.val", "w");
6222    fprintf(f, "%d\n", sizeof(unsigned char));    if (! f)
6223    exit(0);      exit (1);
6224  }    if (((long) (sizeof (unsigned char))) < 0)
6225  EOF      {
6226  if { (eval echo configure:2727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null        long i = longval ();
6227  then        if (i != ((long) (sizeof (unsigned char))))
6228    ac_cv_sizeof_unsigned_char=`cat conftestval`          exit (1);
6229  else        fprintf (f, "%ld\n", i);
6230    echo "configure: failed program was:" >&5      }
6231    cat conftest.$ac_ext >&5    else
6232    rm -fr conftest*      {
6233          unsigned long i = ulongval ();
6234          if (i != ((long) (sizeof (unsigned char))))
6235            exit (1);
6236          fprintf (f, "%lu\n", i);
6237        }
6238      exit (ferror (f) || fclose (f) != 0);
6239    
6240      ;
6241      return 0;
6242    }
6243    _ACEOF
6244    rm -f conftest$ac_exeext
6245    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6246      (eval $ac_link) 2>&5
6247      ac_status=$?
6248      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6250      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251      (eval $ac_try) 2>&5
6252      ac_status=$?
6253      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254      (exit $ac_status); }; }; then
6255      ac_cv_sizeof_unsigned_char=`cat conftest.val`
6256    else
6257      echo "$as_me: program exited with status $ac_status" >&5
6258    echo "$as_me: failed program was:" >&5
6259    sed 's/^/| /' conftest.$ac_ext >&5
6260    
6261    ( exit $ac_status )
6262    { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char), 77
6263    See \`config.log' for more details." >&5
6264    echo "$as_me: error: cannot compute sizeof (unsigned char), 77
6265    See \`config.log' for more details." >&2;}
6266       { (exit 1); exit 1; }; }
6267    fi
6268    rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6269    fi
6270    fi
6271    rm -f conftest.val
6272    else
6273    ac_cv_sizeof_unsigned_char=0    ac_cv_sizeof_unsigned_char=0
6274  fi  fi
 rm -fr conftest*  
6275  fi  fi
6276    echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
6277    echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6
6278    cat >>confdefs.h <<_ACEOF
6279    #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
6280    _ACEOF
6281    
6282    
6283    echo "$as_me:$LINENO: checking for unsigned short" >&5
6284    echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6
6285    if test "${ac_cv_type_unsigned_short+set}" = set; then
6286      echo $ECHO_N "(cached) $ECHO_C" >&6
6287    else
6288      cat >conftest.$ac_ext <<_ACEOF
6289    /* confdefs.h.  */
6290    _ACEOF
6291    cat confdefs.h >>conftest.$ac_ext
6292    cat >>conftest.$ac_ext <<_ACEOF
6293    /* end confdefs.h.  */
6294    $ac_includes_default
6295    int
6296    main ()
6297    {
6298    if ((unsigned short *) 0)
6299      return 0;
6300    if (sizeof (unsigned short))
6301      return 0;
6302      ;
6303      return 0;
6304    }
6305    _ACEOF
6306    rm -f conftest.$ac_objext
6307    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6308      (eval $ac_compile) 2>conftest.er1
6309      ac_status=$?
6310      grep -v '^ *+' conftest.er1 >conftest.err
6311      rm -f conftest.er1
6312      cat conftest.err >&5
6313      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314      (exit $ac_status); } &&
6315             { ac_try='test -z "$ac_c_werror_flag"
6316                             || test ! -s conftest.err'
6317      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318      (eval $ac_try) 2>&5
6319      ac_status=$?
6320      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321      (exit $ac_status); }; } &&
6322             { ac_try='test -s conftest.$ac_objext'
6323      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324      (eval $ac_try) 2>&5
6325      ac_status=$?
6326      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327      (exit $ac_status); }; }; then
6328      ac_cv_type_unsigned_short=yes
6329    else
6330      echo "$as_me: failed program was:" >&5
6331    sed 's/^/| /' conftest.$ac_ext >&5
6332    
6333    ac_cv_type_unsigned_short=no
6334    fi
6335    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6336    fi
6337    echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
6338    echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6
6339    
6340    echo "$as_me:$LINENO: checking size of unsigned short" >&5
6341    echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6
6342    if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
6343      echo $ECHO_N "(cached) $ECHO_C" >&6
6344    else
6345      if test "$ac_cv_type_unsigned_short" = yes; then
6346      # The cast to unsigned long works around a bug in the HP C Compiler
6347      # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6348      # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6349      # This bug is HP SR number 8606223364.
6350      if test "$cross_compiling" = yes; then
6351      # Depending upon the size, compute the lo and hi bounds.
6352    cat >conftest.$ac_ext <<_ACEOF
6353    /* confdefs.h.  */
6354    _ACEOF
6355    cat confdefs.h >>conftest.$ac_ext
6356    cat >>conftest.$ac_ext <<_ACEOF
6357    /* end confdefs.h.  */
6358    $ac_includes_default
6359    int
6360    main ()
6361    {
6362    static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)];
6363    test_array [0] = 0
6364    
6365      ;
6366      return 0;
6367    }
6368    _ACEOF
6369    rm -f conftest.$ac_objext
6370    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6371      (eval $ac_compile) 2>conftest.er1
6372      ac_status=$?
6373      grep -v '^ *+' conftest.er1 >conftest.err
6374      rm -f conftest.er1
6375      cat conftest.err >&5
6376      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377      (exit $ac_status); } &&
6378             { ac_try='test -z "$ac_c_werror_flag"
6379                             || test ! -s conftest.err'
6380      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6381      (eval $ac_try) 2>&5
6382      ac_status=$?
6383      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384      (exit $ac_status); }; } &&
6385             { ac_try='test -s conftest.$ac_objext'
6386      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387      (eval $ac_try) 2>&5
6388      ac_status=$?
6389      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390      (exit $ac_status); }; }; then
6391      ac_lo=0 ac_mid=0
6392      while :; do
6393        cat >conftest.$ac_ext <<_ACEOF
6394    /* confdefs.h.  */
6395    _ACEOF
6396    cat confdefs.h >>conftest.$ac_ext
6397    cat >>conftest.$ac_ext <<_ACEOF
6398    /* end confdefs.h.  */
6399    $ac_includes_default
6400    int
6401    main ()
6402    {
6403    static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
6404    test_array [0] = 0
6405    
6406      ;
6407      return 0;
6408    }
6409    _ACEOF
6410    rm -f conftest.$ac_objext
6411    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6412      (eval $ac_compile) 2>conftest.er1
6413      ac_status=$?
6414      grep -v '^ *+' conftest.er1 >conftest.err
6415      rm -f conftest.er1
6416      cat conftest.err >&5
6417      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418      (exit $ac_status); } &&
6419             { ac_try='test -z "$ac_c_werror_flag"
6420                             || test ! -s conftest.err'
6421      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422      (eval $ac_try) 2>&5
6423      ac_status=$?
6424      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425      (exit $ac_status); }; } &&
6426             { ac_try='test -s conftest.$ac_objext'
6427      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428      (eval $ac_try) 2>&5
6429      ac_status=$?
6430      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431      (exit $ac_status); }; }; then
6432      ac_hi=$ac_mid; break
6433    else
6434      echo "$as_me: failed program was:" >&5
6435    sed 's/^/| /' conftest.$ac_ext >&5
6436    
6437    ac_lo=`expr $ac_mid + 1`
6438                        if test $ac_lo -le $ac_mid; then
6439                          ac_lo= ac_hi=
6440                          break
6441                        fi
6442                        ac_mid=`expr 2 '*' $ac_mid + 1`
6443  fi  fi
6444  echo "$ac_t""$ac_cv_sizeof_unsigned_char" 1>&6  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6445  cat >> confdefs.h <<EOF    done
6446  #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char  else
6447  EOF    echo "$as_me: failed program was:" >&5
6448    sed 's/^/| /' conftest.$ac_ext >&5
6449    
6450    cat >conftest.$ac_ext <<_ACEOF
6451    /* confdefs.h.  */
6452    _ACEOF
6453    cat confdefs.h >>conftest.$ac_ext
6454    cat >>conftest.$ac_ext <<_ACEOF
6455    /* end confdefs.h.  */
6456    $ac_includes_default
6457    int
6458    main ()
6459    {
6460    static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)];
6461    test_array [0] = 0
6462    
6463  echo $ac_n "checking size of unsigned short""... $ac_c" 1>&6    ;
6464  echo "configure:2747: checking size of unsigned short" >&5    return 0;
6465  if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_short'+set}'`\" = set"; then  }
6466    echo $ac_n "(cached) $ac_c" 1>&6  _ACEOF
6467    rm -f conftest.$ac_objext
6468    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6469      (eval $ac_compile) 2>conftest.er1
6470      ac_status=$?
6471      grep -v '^ *+' conftest.er1 >conftest.err
6472      rm -f conftest.er1
6473      cat conftest.err >&5
6474      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475      (exit $ac_status); } &&
6476             { ac_try='test -z "$ac_c_werror_flag"
6477                             || test ! -s conftest.err'
6478      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479      (eval $ac_try) 2>&5
6480      ac_status=$?
6481      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482      (exit $ac_status); }; } &&
6483             { ac_try='test -s conftest.$ac_objext'
6484      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485      (eval $ac_try) 2>&5
6486      ac_status=$?
6487      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488      (exit $ac_status); }; }; then
6489      ac_hi=-1 ac_mid=-1
6490      while :; do
6491        cat >conftest.$ac_ext <<_ACEOF
6492    /* confdefs.h.  */
6493    _ACEOF
6494    cat confdefs.h >>conftest.$ac_ext
6495    cat >>conftest.$ac_ext <<_ACEOF
6496    /* end confdefs.h.  */
6497    $ac_includes_default
6498    int
6499    main ()
6500    {
6501    static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)];
6502    test_array [0] = 0
6503    
6504      ;
6505      return 0;
6506    }
6507    _ACEOF
6508    rm -f conftest.$ac_objext
6509    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6510      (eval $ac_compile) 2>conftest.er1
6511      ac_status=$?
6512      grep -v '^ *+' conftest.er1 >conftest.err
6513      rm -f conftest.er1
6514      cat conftest.err >&5
6515      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516      (exit $ac_status); } &&
6517             { ac_try='test -z "$ac_c_werror_flag"
6518                             || test ! -s conftest.err'
6519      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520      (eval $ac_try) 2>&5
6521      ac_status=$?
6522      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523      (exit $ac_status); }; } &&
6524             { ac_try='test -s conftest.$ac_objext'
6525      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526      (eval $ac_try) 2>&5
6527      ac_status=$?
6528      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529      (exit $ac_status); }; }; then
6530      ac_lo=$ac_mid; break
6531    else
6532      echo "$as_me: failed program was:" >&5
6533    sed 's/^/| /' conftest.$ac_ext >&5
6534    
6535    ac_hi=`expr '(' $ac_mid ')' - 1`
6536                           if test $ac_mid -le $ac_hi; then
6537                             ac_lo= ac_hi=
6538                             break
6539                           fi
6540                           ac_mid=`expr 2 '*' $ac_mid`
6541    fi
6542    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6543      done
6544  else  else
6545    if test "$cross_compiling" = yes; then    echo "$as_me: failed program was:" >&5
6546    ac_cv_sizeof_unsigned_short=2  sed 's/^/| /' conftest.$ac_ext >&5
6547    
6548    ac_lo= ac_hi=
6549    fi
6550    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6551    fi
6552    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6553    # Binary search between lo and hi bounds.
6554    while test "x$ac_lo" != "x$ac_hi"; do
6555      ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6556      cat >conftest.$ac_ext <<_ACEOF
6557    /* confdefs.h.  */
6558    _ACEOF
6559    cat confdefs.h >>conftest.$ac_ext
6560    cat >>conftest.$ac_ext <<_ACEOF
6561    /* end confdefs.h.  */
6562    $ac_includes_default
6563    int
6564    main ()
6565    {
6566    static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
6567    test_array [0] = 0
6568    
6569      ;
6570      return 0;
6571    }
6572    _ACEOF
6573    rm -f conftest.$ac_objext
6574    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6575      (eval $ac_compile) 2>conftest.er1
6576      ac_status=$?
6577      grep -v '^ *+' conftest.er1 >conftest.err
6578      rm -f conftest.er1
6579      cat conftest.err >&5
6580      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581      (exit $ac_status); } &&
6582             { ac_try='test -z "$ac_c_werror_flag"
6583                             || test ! -s conftest.err'
6584      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585      (eval $ac_try) 2>&5
6586      ac_status=$?
6587      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588      (exit $ac_status); }; } &&
6589             { ac_try='test -s conftest.$ac_objext'
6590      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591      (eval $ac_try) 2>&5
6592      ac_status=$?
6593      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594      (exit $ac_status); }; }; then
6595      ac_hi=$ac_mid
6596  else  else
6597    cat > conftest.$ac_ext <<EOF    echo "$as_me: failed program was:" >&5
6598  #line 2755 "configure"  sed 's/^/| /' conftest.$ac_ext >&5
6599  #include "confdefs.h"  
6600    ac_lo=`expr '(' $ac_mid ')' + 1`
6601    fi
6602    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6603    done
6604    case $ac_lo in
6605    ?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
6606    '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
6607    See \`config.log' for more details." >&5
6608    echo "$as_me: error: cannot compute sizeof (unsigned short), 77
6609    See \`config.log' for more details." >&2;}
6610       { (exit 1); exit 1; }; } ;;
6611    esac
6612    else
6613      if test "$cross_compiling" = yes; then
6614      { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6615    See \`config.log' for more details." >&5
6616    echo "$as_me: error: cannot run test program while cross compiling
6617    See \`config.log' for more details." >&2;}
6618       { (exit 1); exit 1; }; }
6619    else
6620      cat >conftest.$ac_ext <<_ACEOF
6621    /* confdefs.h.  */
6622    _ACEOF
6623    cat confdefs.h >>conftest.$ac_ext
6624    cat >>conftest.$ac_ext <<_ACEOF
6625    /* end confdefs.h.  */
6626    $ac_includes_default
6627    long longval () { return (long) (sizeof (unsigned short)); }
6628    unsigned long ulongval () { return (long) (sizeof (unsigned short)); }
6629  #include <stdio.h>  #include <stdio.h>
6630  main()  #include <stdlib.h>
6631    int
6632    main ()
6633  {  {
6634    FILE *f=fopen("conftestval", "w");  
6635    if (!f) exit(1);    FILE *f = fopen ("conftest.val", "w");
6636    fprintf(f, "%d\n", sizeof(unsigned short));    if (! f)
6637    exit(0);      exit (1);
6638  }    if (((long) (sizeof (unsigned short))) < 0)
6639  EOF      {
6640  if { (eval echo configure:2766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null        long i = longval ();
6641  then        if (i != ((long) (sizeof (unsigned short))))
6642    ac_cv_sizeof_unsigned_short=`cat conftestval`          exit (1);
6643  else        fprintf (f, "%ld\n", i);
6644    echo "configure: failed program was:" >&5      }
6645    cat conftest.$ac_ext >&5    else
6646    rm -fr conftest*      {
6647          unsigned long i = ulongval ();
6648          if (i != ((long) (sizeof (unsigned short))))
6649            exit (1);
6650          fprintf (f, "%lu\n", i);
6651        }
6652      exit (ferror (f) || fclose (f) != 0);
6653    
6654      ;
6655      return 0;
6656    }
6657    _ACEOF
6658    rm -f conftest$ac_exeext
6659    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6660      (eval $ac_link) 2>&5
6661      ac_status=$?
6662      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6664      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665      (eval $ac_try) 2>&5
6666      ac_status=$?
6667      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668      (exit $ac_status); }; }; then
6669      ac_cv_sizeof_unsigned_short=`cat conftest.val`
6670    else
6671      echo "$as_me: program exited with status $ac_status" >&5
6672    echo "$as_me: failed program was:" >&5
6673    sed 's/^/| /' conftest.$ac_ext >&5
6674    
6675    ( exit $ac_status )
6676    { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
6677    See \`config.log' for more details." >&5
6678    echo "$as_me: error: cannot compute sizeof (unsigned short), 77
6679    See \`config.log' for more details." >&2;}
6680       { (exit 1); exit 1; }; }
6681    fi
6682    rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6683    fi
6684    fi
6685    rm -f conftest.val
6686    else
6687    ac_cv_sizeof_unsigned_short=0    ac_cv_sizeof_unsigned_short=0
6688  fi  fi
 rm -fr conftest*  
6689  fi  fi
6690    echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
6691    echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6
6692    cat >>confdefs.h <<_ACEOF
6693    #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
6694    _ACEOF
6695    
6696    
6697    echo "$as_me:$LINENO: checking for unsigned int" >&5
6698    echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
6699    if test "${ac_cv_type_unsigned_int+set}" = set; then
6700      echo $ECHO_N "(cached) $ECHO_C" >&6
6701    else
6702      cat >conftest.$ac_ext <<_ACEOF
6703    /* confdefs.h.  */
6704    _ACEOF
6705    cat confdefs.h >>conftest.$ac_ext
6706    cat >>conftest.$ac_ext <<_ACEOF
6707    /* end confdefs.h.  */
6708    $ac_includes_default
6709    int
6710    main ()
6711    {
6712    if ((unsigned int *) 0)
6713      return 0;
6714    if (sizeof (unsigned int))
6715      return 0;
6716      ;
6717      return 0;
6718    }
6719    _ACEOF
6720    rm -f conftest.$ac_objext
6721    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6722      (eval $ac_compile) 2>conftest.er1
6723      ac_status=$?
6724      grep -v '^ *+' conftest.er1 >conftest.err
6725      rm -f conftest.er1
6726      cat conftest.err >&5
6727      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728      (exit $ac_status); } &&
6729             { ac_try='test -z "$ac_c_werror_flag"
6730                             || test ! -s conftest.err'
6731      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6732      (eval $ac_try) 2>&5
6733      ac_status=$?
6734      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735      (exit $ac_status); }; } &&
6736             { ac_try='test -s conftest.$ac_objext'
6737      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6738      (eval $ac_try) 2>&5
6739      ac_status=$?
6740      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741      (exit $ac_status); }; }; then
6742      ac_cv_type_unsigned_int=yes
6743    else
6744      echo "$as_me: failed program was:" >&5
6745    sed 's/^/| /' conftest.$ac_ext >&5
6746    
6747    ac_cv_type_unsigned_int=no
6748    fi
6749    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6750    fi
6751    echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
6752    echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
6753    
6754    echo "$as_me:$LINENO: checking size of unsigned int" >&5
6755    echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
6756    if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
6757      echo $ECHO_N "(cached) $ECHO_C" >&6
6758    else
6759      if test "$ac_cv_type_unsigned_int" = yes; then
6760      # The cast to unsigned long works around a bug in the HP C Compiler
6761      # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6762      # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6763      # This bug is HP SR number 8606223364.
6764      if test "$cross_compiling" = yes; then
6765      # Depending upon the size, compute the lo and hi bounds.
6766    cat >conftest.$ac_ext <<_ACEOF
6767    /* confdefs.h.  */
6768    _ACEOF
6769    cat confdefs.h >>conftest.$ac_ext
6770    cat >>conftest.$ac_ext <<_ACEOF
6771    /* end confdefs.h.  */
6772    $ac_includes_default
6773    int
6774    main ()
6775    {
6776    static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
6777    test_array [0] = 0
6778    
6779      ;
6780      return 0;
6781    }
6782    _ACEOF
6783    rm -f conftest.$ac_objext
6784    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6785      (eval $ac_compile) 2>conftest.er1
6786      ac_status=$?
6787      grep -v '^ *+' conftest.er1 >conftest.err
6788      rm -f conftest.er1
6789      cat conftest.err >&5
6790      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791      (exit $ac_status); } &&
6792             { ac_try='test -z "$ac_c_werror_flag"
6793                             || test ! -s conftest.err'
6794      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795      (eval $ac_try) 2>&5
6796      ac_status=$?
6797      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798      (exit $ac_status); }; } &&
6799             { ac_try='test -s conftest.$ac_objext'
6800      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801      (eval $ac_try) 2>&5
6802      ac_status=$?
6803      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804      (exit $ac_status); }; }; then
6805      ac_lo=0 ac_mid=0
6806      while :; do
6807        cat >conftest.$ac_ext <<_ACEOF
6808    /* confdefs.h.  */
6809    _ACEOF
6810    cat confdefs.h >>conftest.$ac_ext
6811    cat >>conftest.$ac_ext <<_ACEOF
6812    /* end confdefs.h.  */
6813    $ac_includes_default
6814    int
6815    main ()
6816    {
6817    static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
6818    test_array [0] = 0
6819    
6820      ;
6821      return 0;
6822    }
6823    _ACEOF
6824    rm -f conftest.$ac_objext
6825    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6826      (eval $ac_compile) 2>conftest.er1
6827      ac_status=$?
6828      grep -v '^ *+' conftest.er1 >conftest.err
6829      rm -f conftest.er1
6830      cat conftest.err >&5
6831      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832      (exit $ac_status); } &&
6833             { ac_try='test -z "$ac_c_werror_flag"
6834                             || test ! -s conftest.err'
6835      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836      (eval $ac_try) 2>&5
6837      ac_status=$?
6838      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839      (exit $ac_status); }; } &&
6840             { ac_try='test -s conftest.$ac_objext'
6841      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842      (eval $ac_try) 2>&5
6843      ac_status=$?
6844      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845      (exit $ac_status); }; }; then
6846      ac_hi=$ac_mid; break
6847    else
6848      echo "$as_me: failed program was:" >&5
6849    sed 's/^/| /' conftest.$ac_ext >&5
6850    
6851    ac_lo=`expr $ac_mid + 1`
6852                        if test $ac_lo -le $ac_mid; then
6853                          ac_lo= ac_hi=
6854                          break
6855                        fi
6856                        ac_mid=`expr 2 '*' $ac_mid + 1`
6857  fi  fi
6858  echo "$ac_t""$ac_cv_sizeof_unsigned_short" 1>&6  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6859  cat >> confdefs.h <<EOF    done
6860  #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short  else
6861  EOF    echo "$as_me: failed program was:" >&5
6862    sed 's/^/| /' conftest.$ac_ext >&5
6863    
6864    cat >conftest.$ac_ext <<_ACEOF
6865    /* confdefs.h.  */
6866    _ACEOF
6867    cat confdefs.h >>conftest.$ac_ext
6868    cat >>conftest.$ac_ext <<_ACEOF
6869    /* end confdefs.h.  */
6870    $ac_includes_default
6871    int
6872    main ()
6873    {
6874    static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
6875    test_array [0] = 0
6876    
6877      ;
6878      return 0;
6879    }
6880    _ACEOF
6881    rm -f conftest.$ac_objext
6882    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6883      (eval $ac_compile) 2>conftest.er1
6884      ac_status=$?
6885      grep -v '^ *+' conftest.er1 >conftest.err
6886      rm -f conftest.er1
6887      cat conftest.err >&5
6888      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889      (exit $ac_status); } &&
6890             { ac_try='test -z "$ac_c_werror_flag"
6891                             || test ! -s conftest.err'
6892      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893      (eval $ac_try) 2>&5
6894      ac_status=$?
6895      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896      (exit $ac_status); }; } &&
6897             { ac_try='test -s conftest.$ac_objext'
6898      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899      (eval $ac_try) 2>&5
6900      ac_status=$?
6901      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902      (exit $ac_status); }; }; then
6903      ac_hi=-1 ac_mid=-1
6904      while :; do
6905        cat >conftest.$ac_ext <<_ACEOF
6906    /* confdefs.h.  */
6907    _ACEOF
6908    cat confdefs.h >>conftest.$ac_ext
6909    cat >>conftest.$ac_ext <<_ACEOF
6910    /* end confdefs.h.  */
6911    $ac_includes_default
6912    int
6913    main ()
6914    {
6915    static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
6916    test_array [0] = 0
6917    
6918      ;
6919      return 0;
6920    }
6921    _ACEOF
6922    rm -f conftest.$ac_objext
6923    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6924      (eval $ac_compile) 2>conftest.er1
6925      ac_status=$?
6926      grep -v '^ *+' conftest.er1 >conftest.err
6927      rm -f conftest.er1
6928      cat conftest.err >&5
6929      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930      (exit $ac_status); } &&
6931             { ac_try='test -z "$ac_c_werror_flag"
6932                             || test ! -s conftest.err'
6933      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6934      (eval $ac_try) 2>&5
6935      ac_status=$?
6936      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937      (exit $ac_status); }; } &&
6938             { ac_try='test -s conftest.$ac_objext'
6939      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6940      (eval $ac_try) 2>&5
6941      ac_status=$?
6942      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943      (exit $ac_status); }; }; then
6944      ac_lo=$ac_mid; break
6945    else
6946      echo "$as_me: failed program was:" >&5
6947    sed 's/^/| /' conftest.$ac_ext >&5
6948    
6949    ac_hi=`expr '(' $ac_mid ')' - 1`
6950                           if test $ac_mid -le $ac_hi; then
6951                             ac_lo= ac_hi=
6952                             break
6953                           fi
6954                           ac_mid=`expr 2 '*' $ac_mid`
6955    fi
6956    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6957      done
6958    else
6959      echo "$as_me: failed program was:" >&5
6960    sed 's/^/| /' conftest.$ac_ext >&5
6961    
6962    ac_lo= ac_hi=
6963    fi
6964    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6965    fi
6966    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6967    # Binary search between lo and hi bounds.
6968    while test "x$ac_lo" != "x$ac_hi"; do
6969      ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6970      cat >conftest.$ac_ext <<_ACEOF
6971    /* confdefs.h.  */
6972    _ACEOF
6973    cat confdefs.h >>conftest.$ac_ext
6974    cat >>conftest.$ac_ext <<_ACEOF
6975    /* end confdefs.h.  */
6976    $ac_includes_default
6977    int
6978    main ()
6979    {
6980    static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
6981    test_array [0] = 0
6982    
6983  echo $ac_n "checking size of unsigned int""... $ac_c" 1>&6    ;
6984  echo "configure:2786: checking size of unsigned int" >&5    return 0;
6985  if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_int'+set}'`\" = set"; then  }
6986    echo $ac_n "(cached) $ac_c" 1>&6  _ACEOF
6987    rm -f conftest.$ac_objext
6988    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6989      (eval $ac_compile) 2>conftest.er1
6990      ac_status=$?
6991      grep -v '^ *+' conftest.er1 >conftest.err
6992      rm -f conftest.er1
6993      cat conftest.err >&5
6994      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995      (exit $ac_status); } &&
6996             { ac_try='test -z "$ac_c_werror_flag"
6997                             || test ! -s conftest.err'
6998      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999      (eval $ac_try) 2>&5
7000      ac_status=$?
7001      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002      (exit $ac_status); }; } &&
7003             { ac_try='test -s conftest.$ac_objext'
7004      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005      (eval $ac_try) 2>&5
7006      ac_status=$?
7007      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008      (exit $ac_status); }; }; then
7009      ac_hi=$ac_mid
7010  else  else
7011    if test "$cross_compiling" = yes; then    echo "$as_me: failed program was:" >&5
7012    ac_cv_sizeof_unsigned_int=4  sed 's/^/| /' conftest.$ac_ext >&5
7013    
7014    ac_lo=`expr '(' $ac_mid ')' + 1`
7015    fi
7016    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7017    done
7018    case $ac_lo in
7019    ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
7020    '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
7021    See \`config.log' for more details." >&5
7022    echo "$as_me: error: cannot compute sizeof (unsigned int), 77
7023    See \`config.log' for more details." >&2;}
7024       { (exit 1); exit 1; }; } ;;
7025    esac
7026  else  else
7027    cat > conftest.$ac_ext <<EOF    if test "$cross_compiling" = yes; then
7028  #line 2794 "configure"    { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7029  #include "confdefs.h"  See \`config.log' for more details." >&5
7030    echo "$as_me: error: cannot run test program while cross compiling
7031    See \`config.log' for more details." >&2;}
7032       { (exit 1); exit 1; }; }
7033    else
7034      cat >conftest.$ac_ext <<_ACEOF
7035    /* confdefs.h.  */
7036    _ACEOF
7037    cat confdefs.h >>conftest.$ac_ext
7038    cat >>conftest.$ac_ext <<_ACEOF
7039    /* end confdefs.h.  */
7040    $ac_includes_default
7041    long longval () { return (long) (sizeof (unsigned int)); }
7042    unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
7043  #include <stdio.h>  #include <stdio.h>
7044  main()  #include <stdlib.h>
7045    int
7046    main ()
7047  {  {
7048    FILE *f=fopen("conftestval", "w");  
7049    if (!f) exit(1);    FILE *f = fopen ("conftest.val", "w");
7050    fprintf(f, "%d\n", sizeof(unsigned int));    if (! f)
7051    exit(0);      exit (1);
7052  }    if (((long) (sizeof (unsigned int))) < 0)
7053  EOF      {
7054  if { (eval echo configure:2805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null        long i = longval ();
7055  then        if (i != ((long) (sizeof (unsigned int))))
7056    ac_cv_sizeof_unsigned_int=`cat conftestval`          exit (1);
7057  else        fprintf (f, "%ld\n", i);
7058    echo "configure: failed program was:" >&5      }
7059    cat conftest.$ac_ext >&5    else
7060    rm -fr conftest*      {
7061          unsigned long i = ulongval ();
7062          if (i != ((long) (sizeof (unsigned int))))
7063            exit (1);
7064          fprintf (f, "%lu\n", i);
7065        }
7066      exit (ferror (f) || fclose (f) != 0);
7067    
7068      ;
7069      return 0;
7070    }
7071    _ACEOF
7072    rm -f conftest$ac_exeext
7073    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7074      (eval $ac_link) 2>&5
7075      ac_status=$?
7076      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7078      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079      (eval $ac_try) 2>&5
7080      ac_status=$?
7081      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082      (exit $ac_status); }; }; then
7083      ac_cv_sizeof_unsigned_int=`cat conftest.val`
7084    else
7085      echo "$as_me: program exited with status $ac_status" >&5
7086    echo "$as_me: failed program was:" >&5
7087    sed 's/^/| /' conftest.$ac_ext >&5
7088    
7089    ( exit $ac_status )
7090    { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
7091    See \`config.log' for more details." >&5
7092    echo "$as_me: error: cannot compute sizeof (unsigned int), 77
7093    See \`config.log' for more details." >&2;}
7094       { (exit 1); exit 1; }; }
7095    fi
7096    rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7097    fi
7098    fi
7099    rm -f conftest.val
7100    else
7101    ac_cv_sizeof_unsigned_int=0    ac_cv_sizeof_unsigned_int=0
7102  fi  fi
 rm -fr conftest*  
7103  fi  fi
7104    echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
7105    echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
7106    cat >>confdefs.h <<_ACEOF
7107    #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
7108    _ACEOF
7109    
7110    
7111    echo "$as_me:$LINENO: checking for unsigned long" >&5
7112    echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
7113    if test "${ac_cv_type_unsigned_long+set}" = set; then
7114      echo $ECHO_N "(cached) $ECHO_C" >&6
7115    else
7116      cat >conftest.$ac_ext <<_ACEOF
7117    /* confdefs.h.  */
7118    _ACEOF
7119    cat confdefs.h >>conftest.$ac_ext
7120    cat >>conftest.$ac_ext <<_ACEOF
7121    /* end confdefs.h.  */
7122    $ac_includes_default
7123    int
7124    main ()
7125    {
7126    if ((unsigned long *) 0)
7127      return 0;
7128    if (sizeof (unsigned long))
7129      return 0;
7130      ;
7131      return 0;
7132    }
7133    _ACEOF
7134    rm -f conftest.$ac_objext
7135    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7136      (eval $ac_compile) 2>conftest.er1
7137      ac_status=$?
7138      grep -v '^ *+' conftest.er1 >conftest.err
7139      rm -f conftest.er1
7140      cat conftest.err >&5
7141      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142      (exit $ac_status); } &&
7143             { ac_try='test -z "$ac_c_werror_flag"
7144                             || test ! -s conftest.err'
7145      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7146      (eval $ac_try) 2>&5
7147      ac_status=$?
7148      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149      (exit $ac_status); }; } &&
7150             { ac_try='test -s conftest.$ac_objext'
7151      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152      (eval $ac_try) 2>&5
7153      ac_status=$?
7154      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155      (exit $ac_status); }; }; then
7156      ac_cv_type_unsigned_long=yes
7157    else
7158      echo "$as_me: failed program was:" >&5
7159    sed 's/^/| /' conftest.$ac_ext >&5
7160    
7161    ac_cv_type_unsigned_long=no
7162    fi
7163    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7164    fi
7165    echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
7166    echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
7167    
7168    echo "$as_me:$LINENO: checking size of unsigned long" >&5
7169    echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
7170    if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
7171      echo $ECHO_N "(cached) $ECHO_C" >&6
7172    else
7173      if test "$ac_cv_type_unsigned_long" = yes; then
7174      # The cast to unsigned long works around a bug in the HP C Compiler
7175      # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7176      # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7177      # This bug is HP SR number 8606223364.
7178      if test "$cross_compiling" = yes; then
7179      # Depending upon the size, compute the lo and hi bounds.
7180    cat >conftest.$ac_ext <<_ACEOF
7181    /* confdefs.h.  */
7182    _ACEOF
7183    cat confdefs.h >>conftest.$ac_ext
7184    cat >>conftest.$ac_ext <<_ACEOF
7185    /* end confdefs.h.  */
7186    $ac_includes_default
7187    int
7188    main ()
7189    {
7190    static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
7191    test_array [0] = 0
7192    
7193      ;
7194      return 0;
7195    }
7196    _ACEOF
7197    rm -f conftest.$ac_objext
7198    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7199      (eval $ac_compile) 2>conftest.er1
7200      ac_status=$?
7201      grep -v '^ *+' conftest.er1 >conftest.err
7202      rm -f conftest.er1
7203      cat conftest.err >&5
7204      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205      (exit $ac_status); } &&
7206             { ac_try='test -z "$ac_c_werror_flag"
7207                             || test ! -s conftest.err'
7208      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209      (eval $ac_try) 2>&5
7210      ac_status=$?
7211      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212      (exit $ac_status); }; } &&
7213             { ac_try='test -s conftest.$ac_objext'
7214      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7215      (eval $ac_try) 2>&5
7216      ac_status=$?
7217      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218      (exit $ac_status); }; }; then
7219      ac_lo=0 ac_mid=0
7220      while :; do
7221        cat >conftest.$ac_ext <<_ACEOF
7222    /* confdefs.h.  */
7223    _ACEOF
7224    cat confdefs.h >>conftest.$ac_ext
7225    cat >>conftest.$ac_ext <<_ACEOF
7226    /* end confdefs.h.  */
7227    $ac_includes_default
7228    int
7229    main ()
7230    {
7231    static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
7232    test_array [0] = 0
7233    
7234      ;
7235      return 0;
7236    }
7237    _ACEOF
7238    rm -f conftest.$ac_objext
7239    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7240      (eval $ac_compile) 2>conftest.er1
7241      ac_status=$?
7242      grep -v '^ *+' conftest.er1 >conftest.err
7243      rm -f conftest.er1
7244      cat conftest.err >&5
7245      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246      (exit $ac_status); } &&
7247             { ac_try='test -z "$ac_c_werror_flag"
7248                             || test ! -s conftest.err'
7249      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250      (eval $ac_try) 2>&5
7251      ac_status=$?
7252      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253      (exit $ac_status); }; } &&
7254             { ac_try='test -s conftest.$ac_objext'
7255      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256      (eval $ac_try) 2>&5
7257      ac_status=$?
7258      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259      (exit $ac_status); }; }; then
7260      ac_hi=$ac_mid; break
7261    else
7262      echo "$as_me: failed program was:" >&5
7263    sed 's/^/| /' conftest.$ac_ext >&5
7264    
7265    ac_lo=`expr $ac_mid + 1`
7266                        if test $ac_lo -le $ac_mid; then
7267                          ac_lo= ac_hi=
7268                          break
7269                        fi
7270                        ac_mid=`expr 2 '*' $ac_mid + 1`
7271  fi  fi
7272  echo "$ac_t""$ac_cv_sizeof_unsigned_int" 1>&6  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7273  cat >> confdefs.h <<EOF    done
7274  #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int  else
7275  EOF    echo "$as_me: failed program was:" >&5
7276    sed 's/^/| /' conftest.$ac_ext >&5
7277    
7278    cat >conftest.$ac_ext <<_ACEOF
7279    /* confdefs.h.  */
7280    _ACEOF
7281    cat confdefs.h >>conftest.$ac_ext
7282    cat >>conftest.$ac_ext <<_ACEOF
7283    /* end confdefs.h.  */
7284    $ac_includes_default
7285    int
7286    main ()
7287    {
7288    static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
7289    test_array [0] = 0
7290    
7291  echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6    ;
7292  echo "configure:2825: checking size of unsigned long" >&5    return 0;
7293  if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then  }
7294    echo $ac_n "(cached) $ac_c" 1>&6  _ACEOF
7295    rm -f conftest.$ac_objext
7296    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7297      (eval $ac_compile) 2>conftest.er1
7298      ac_status=$?
7299      grep -v '^ *+' conftest.er1 >conftest.err
7300      rm -f conftest.er1
7301      cat conftest.err >&5
7302      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303      (exit $ac_status); } &&
7304             { ac_try='test -z "$ac_c_werror_flag"
7305                             || test ! -s conftest.err'
7306      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307      (eval $ac_try) 2>&5
7308      ac_status=$?
7309      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310      (exit $ac_status); }; } &&
7311             { ac_try='test -s conftest.$ac_objext'
7312      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313      (eval $ac_try) 2>&5
7314      ac_status=$?
7315      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316      (exit $ac_status); }; }; then
7317      ac_hi=-1 ac_mid=-1
7318      while :; do
7319        cat >conftest.$ac_ext <<_ACEOF
7320    /* confdefs.h.  */
7321    _ACEOF
7322    cat confdefs.h >>conftest.$ac_ext
7323    cat >>conftest.$ac_ext <<_ACEOF
7324    /* end confdefs.h.  */
7325    $ac_includes_default
7326    int
7327    main ()
7328    {
7329    static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
7330    test_array [0] = 0
7331    
7332      ;
7333      return 0;
7334    }
7335    _ACEOF
7336    rm -f conftest.$ac_objext
7337    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7338      (eval $ac_compile) 2>conftest.er1
7339      ac_status=$?
7340      grep -v '^ *+' conftest.er1 >conftest.err
7341      rm -f conftest.er1
7342      cat conftest.err >&5
7343      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344      (exit $ac_status); } &&
7345             { ac_try='test -z "$ac_c_werror_flag"
7346                             || test ! -s conftest.err'
7347      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348      (eval $ac_try) 2>&5
7349      ac_status=$?
7350      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351      (exit $ac_status); }; } &&
7352             { ac_try='test -s conftest.$ac_objext'
7353      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354      (eval $ac_try) 2>&5
7355      ac_status=$?
7356      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357      (exit $ac_status); }; }; then
7358      ac_lo=$ac_mid; break
7359    else
7360      echo "$as_me: failed program was:" >&5
7361    sed 's/^/| /' conftest.$ac_ext >&5
7362    
7363    ac_hi=`expr '(' $ac_mid ')' - 1`
7364                           if test $ac_mid -le $ac_hi; then
7365                             ac_lo= ac_hi=
7366                             break
7367                           fi
7368                           ac_mid=`expr 2 '*' $ac_mid`
7369    fi
7370    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7371      done
7372  else  else
7373    if test "$cross_compiling" = yes; then    echo "$as_me: failed program was:" >&5
7374    ac_cv_sizeof_unsigned_long=4  sed 's/^/| /' conftest.$ac_ext >&5
7375    
7376    ac_lo= ac_hi=
7377    fi
7378    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7379    fi
7380    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7381    # Binary search between lo and hi bounds.
7382    while test "x$ac_lo" != "x$ac_hi"; do
7383      ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7384      cat >conftest.$ac_ext <<_ACEOF
7385    /* confdefs.h.  */
7386    _ACEOF
7387    cat confdefs.h >>conftest.$ac_ext
7388    cat >>conftest.$ac_ext <<_ACEOF
7389    /* end confdefs.h.  */
7390    $ac_includes_default
7391    int
7392    main ()
7393    {
7394    static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
7395    test_array [0] = 0
7396    
7397      ;
7398      return 0;
7399    }
7400    _ACEOF
7401    rm -f conftest.$ac_objext
7402    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7403      (eval $ac_compile) 2>conftest.er1
7404      ac_status=$?
7405      grep -v '^ *+' conftest.er1 >conftest.err
7406      rm -f conftest.er1
7407      cat conftest.err >&5
7408      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409      (exit $ac_status); } &&
7410             { ac_try='test -z "$ac_c_werror_flag"
7411                             || test ! -s conftest.err'
7412      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413      (eval $ac_try) 2>&5
7414      ac_status=$?
7415      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416      (exit $ac_status); }; } &&
7417             { ac_try='test -s conftest.$ac_objext'
7418      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7419      (eval $ac_try) 2>&5
7420      ac_status=$?
7421      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422      (exit $ac_status); }; }; then
7423      ac_hi=$ac_mid
7424    else
7425      echo "$as_me: failed program was:" >&5
7426    sed 's/^/| /' conftest.$ac_ext >&5
7427    
7428    ac_lo=`expr '(' $ac_mid ')' + 1`
7429    fi
7430    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7431    done
7432    case $ac_lo in
7433    ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
7434    '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
7435    See \`config.log' for more details." >&5
7436    echo "$as_me: error: cannot compute sizeof (unsigned long), 77
7437    See \`config.log' for more details." >&2;}
7438       { (exit 1); exit 1; }; } ;;
7439    esac
7440  else  else
7441    cat > conftest.$ac_ext <<EOF    if test "$cross_compiling" = yes; then
7442  #line 2833 "configure"    { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7443  #include "confdefs.h"  See \`config.log' for more details." >&5
7444    echo "$as_me: error: cannot run test program while cross compiling
7445    See \`config.log' for more details." >&2;}
7446       { (exit 1); exit 1; }; }
7447    else
7448      cat >conftest.$ac_ext <<_ACEOF
7449    /* confdefs.h.  */
7450    _ACEOF
7451    cat confdefs.h >>conftest.$ac_ext
7452    cat >>conftest.$ac_ext <<_ACEOF
7453    /* end confdefs.h.  */
7454    $ac_includes_default
7455    long longval () { return (long) (sizeof (unsigned long)); }
7456    unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
7457  #include <stdio.h>  #include <stdio.h>
7458  main()  #include <stdlib.h>
7459    int
7460    main ()
7461  {  {
7462    FILE *f=fopen("conftestval", "w");  
7463    if (!f) exit(1);    FILE *f = fopen ("conftest.val", "w");
7464    fprintf(f, "%d\n", sizeof(unsigned long));    if (! f)
7465    exit(0);      exit (1);
7466  }    if (((long) (sizeof (unsigned long))) < 0)
7467  EOF      {
7468  if { (eval echo configure:2844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null        long i = longval ();
7469  then        if (i != ((long) (sizeof (unsigned long))))
7470    ac_cv_sizeof_unsigned_long=`cat conftestval`          exit (1);
7471  else        fprintf (f, "%ld\n", i);
7472    echo "configure: failed program was:" >&5      }
7473    cat conftest.$ac_ext >&5    else
7474    rm -fr conftest*      {
7475          unsigned long i = ulongval ();
7476          if (i != ((long) (sizeof (unsigned long))))
7477            exit (1);
7478          fprintf (f, "%lu\n", i);
7479        }
7480      exit (ferror (f) || fclose (f) != 0);
7481    
7482      ;
7483      return 0;
7484    }
7485    _ACEOF
7486    rm -f conftest$ac_exeext
7487    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7488      (eval $ac_link) 2>&5
7489      ac_status=$?
7490      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7492      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7493      (eval $ac_try) 2>&5
7494      ac_status=$?
7495      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496      (exit $ac_status); }; }; then
7497      ac_cv_sizeof_unsigned_long=`cat conftest.val`
7498    else
7499      echo "$as_me: program exited with status $ac_status" >&5
7500    echo "$as_me: failed program was:" >&5
7501    sed 's/^/| /' conftest.$ac_ext >&5
7502    
7503    ( exit $ac_status )
7504    { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
7505    See \`config.log' for more details." >&5
7506    echo "$as_me: error: cannot compute sizeof (unsigned long), 77
7507    See \`config.log' for more details." >&2;}
7508       { (exit 1); exit 1; }; }
7509    fi
7510    rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7511    fi
7512    fi
7513    rm -f conftest.val
7514    else
7515    ac_cv_sizeof_unsigned_long=0    ac_cv_sizeof_unsigned_long=0
7516  fi  fi
 rm -fr conftest*  
7517  fi  fi
7518    echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
7519    echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
7520    cat >>confdefs.h <<_ACEOF
7521    #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7522    _ACEOF
7523    
7524    
7525    echo "$as_me:$LINENO: checking for unsigned long long" >&5
7526    echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
7527    if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7528      echo $ECHO_N "(cached) $ECHO_C" >&6
7529    else
7530      cat >conftest.$ac_ext <<_ACEOF
7531    /* confdefs.h.  */
7532    _ACEOF
7533    cat confdefs.h >>conftest.$ac_ext
7534    cat >>conftest.$ac_ext <<_ACEOF
7535    /* end confdefs.h.  */
7536    $ac_includes_default
7537    int
7538    main ()
7539    {
7540    if ((unsigned long long *) 0)
7541      return 0;
7542    if (sizeof (unsigned long long))
7543      return 0;
7544      ;
7545      return 0;
7546    }
7547    _ACEOF
7548    rm -f conftest.$ac_objext
7549    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7550      (eval $ac_compile) 2>conftest.er1
7551      ac_status=$?
7552      grep -v '^ *+' conftest.er1 >conftest.err
7553      rm -f conftest.er1
7554      cat conftest.err >&5
7555      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556      (exit $ac_status); } &&
7557             { ac_try='test -z "$ac_c_werror_flag"
7558                             || test ! -s conftest.err'
7559      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560      (eval $ac_try) 2>&5
7561      ac_status=$?
7562      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563      (exit $ac_status); }; } &&
7564             { ac_try='test -s conftest.$ac_objext'
7565      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7566      (eval $ac_try) 2>&5
7567      ac_status=$?
7568      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569      (exit $ac_status); }; }; then
7570      ac_cv_type_unsigned_long_long=yes
7571    else
7572      echo "$as_me: failed program was:" >&5
7573    sed 's/^/| /' conftest.$ac_ext >&5
7574    
7575    ac_cv_type_unsigned_long_long=no
7576    fi
7577    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7578    fi
7579    echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7580    echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
7581    
7582    echo "$as_me:$LINENO: checking size of unsigned long long" >&5
7583    echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6
7584    if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
7585      echo $ECHO_N "(cached) $ECHO_C" >&6
7586    else
7587      if test "$ac_cv_type_unsigned_long_long" = yes; then
7588      # The cast to unsigned long works around a bug in the HP C Compiler
7589      # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7590      # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7591      # This bug is HP SR number 8606223364.
7592      if test "$cross_compiling" = yes; then
7593      # Depending upon the size, compute the lo and hi bounds.
7594    cat >conftest.$ac_ext <<_ACEOF
7595    /* confdefs.h.  */
7596    _ACEOF
7597    cat confdefs.h >>conftest.$ac_ext
7598    cat >>conftest.$ac_ext <<_ACEOF
7599    /* end confdefs.h.  */
7600    $ac_includes_default
7601    int
7602    main ()
7603    {
7604    static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) >= 0)];
7605    test_array [0] = 0
7606    
7607      ;
7608      return 0;
7609    }
7610    _ACEOF
7611    rm -f conftest.$ac_objext
7612    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7613      (eval $ac_compile) 2>conftest.er1
7614      ac_status=$?
7615      grep -v '^ *+' conftest.er1 >conftest.err
7616      rm -f conftest.er1
7617      cat conftest.err >&5
7618      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619      (exit $ac_status); } &&
7620             { ac_try='test -z "$ac_c_werror_flag"
7621                             || test ! -s conftest.err'
7622      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623      (eval $ac_try) 2>&5
7624      ac_status=$?
7625      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626      (exit $ac_status); }; } &&
7627             { ac_try='test -s conftest.$ac_objext'
7628      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629      (eval $ac_try) 2>&5
7630      ac_status=$?
7631      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632      (exit $ac_status); }; }; then
7633      ac_lo=0 ac_mid=0
7634      while :; do
7635        cat >conftest.$ac_ext <<_ACEOF
7636    /* confdefs.h.  */
7637    _ACEOF
7638    cat confdefs.h >>conftest.$ac_ext
7639    cat >>conftest.$ac_ext <<_ACEOF
7640    /* end confdefs.h.  */
7641    $ac_includes_default
7642    int
7643    main ()
7644    {
7645    static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) <= $ac_mid)];
7646    test_array [0] = 0
7647    
7648      ;
7649      return 0;
7650    }
7651    _ACEOF
7652    rm -f conftest.$ac_objext
7653    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7654      (eval $ac_compile) 2>conftest.er1
7655      ac_status=$?
7656      grep -v '^ *+' conftest.er1 >conftest.err
7657      rm -f conftest.er1
7658      cat conftest.err >&5
7659      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660      (exit $ac_status); } &&
7661             { ac_try='test -z "$ac_c_werror_flag"
7662                             || test ! -s conftest.err'
7663      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664      (eval $ac_try) 2>&5
7665      ac_status=$?
7666      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667      (exit $ac_status); }; } &&
7668             { ac_try='test -s conftest.$ac_objext'
7669      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7670      (eval $ac_try) 2>&5
7671      ac_status=$?
7672      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673      (exit $ac_status); }; }; then
7674      ac_hi=$ac_mid; break
7675    else
7676      echo "$as_me: failed program was:" >&5
7677    sed 's/^/| /' conftest.$ac_ext >&5
7678    
7679    ac_lo=`expr $ac_mid + 1`
7680                        if test $ac_lo -le $ac_mid; then
7681                          ac_lo= ac_hi=
7682                          break
7683                        fi
7684                        ac_mid=`expr 2 '*' $ac_mid + 1`
7685  fi  fi
7686  echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7687  cat >> confdefs.h <<EOF    done
7688  #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long  else
7689  EOF    echo "$as_me: failed program was:" >&5
7690    sed 's/^/| /' conftest.$ac_ext >&5
7691    
7692    cat >conftest.$ac_ext <<_ACEOF
7693    /* confdefs.h.  */
7694    _ACEOF
7695    cat confdefs.h >>conftest.$ac_ext
7696    cat >>conftest.$ac_ext <<_ACEOF
7697    /* end confdefs.h.  */
7698    $ac_includes_default
7699    int
7700    main ()
7701    {
7702    static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) < 0)];
7703    test_array [0] = 0
7704    
7705      ;
7706      return 0;
7707    }
7708    _ACEOF
7709    rm -f conftest.$ac_objext
7710    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7711      (eval $ac_compile) 2>conftest.er1
7712      ac_status=$?
7713      grep -v '^ *+' conftest.er1 >conftest.err
7714      rm -f conftest.er1
7715      cat conftest.err >&5
7716      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717      (exit $ac_status); } &&
7718             { ac_try='test -z "$ac_c_werror_flag"
7719                             || test ! -s conftest.err'
7720      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721      (eval $ac_try) 2>&5
7722      ac_status=$?
7723      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724      (exit $ac_status); }; } &&
7725             { ac_try='test -s conftest.$ac_objext'
7726      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727      (eval $ac_try) 2>&5
7728      ac_status=$?
7729      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730      (exit $ac_status); }; }; then
7731      ac_hi=-1 ac_mid=-1
7732      while :; do
7733        cat >conftest.$ac_ext <<_ACEOF
7734    /* confdefs.h.  */
7735    _ACEOF
7736    cat confdefs.h >>conftest.$ac_ext
7737    cat >>conftest.$ac_ext <<_ACEOF
7738    /* end confdefs.h.  */
7739    $ac_includes_default
7740    int
7741    main ()
7742    {
7743    static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) >= $ac_mid)];
7744    test_array [0] = 0
7745    
7746      ;
7747      return 0;
7748    }
7749    _ACEOF
7750    rm -f conftest.$ac_objext
7751    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7752      (eval $ac_compile) 2>conftest.er1
7753      ac_status=$?
7754      grep -v '^ *+' conftest.er1 >conftest.err
7755      rm -f conftest.er1
7756      cat conftest.err >&5
7757      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758      (exit $ac_status); } &&
7759             { ac_try='test -z "$ac_c_werror_flag"
7760                             || test ! -s conftest.err'
7761      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762      (eval $ac_try) 2>&5
7763      ac_status=$?
7764      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765      (exit $ac_status); }; } &&
7766             { ac_try='test -s conftest.$ac_objext'
7767      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7768      (eval $ac_try) 2>&5
7769      ac_status=$?
7770      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771      (exit $ac_status); }; }; then
7772      ac_lo=$ac_mid; break
7773    else
7774      echo "$as_me: failed program was:" >&5
7775    sed 's/^/| /' conftest.$ac_ext >&5
7776    
7777    ac_hi=`expr '(' $ac_mid ')' - 1`
7778                           if test $ac_mid -le $ac_hi; then
7779                             ac_lo= ac_hi=
7780                             break
7781                           fi
7782                           ac_mid=`expr 2 '*' $ac_mid`
7783    fi
7784    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7785      done
7786    else
7787      echo "$as_me: failed program was:" >&5
7788    sed 's/^/| /' conftest.$ac_ext >&5
7789    
7790    ac_lo= ac_hi=
7791    fi
7792    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7793    fi
7794    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7795    # Binary search between lo and hi bounds.
7796    while test "x$ac_lo" != "x$ac_hi"; do
7797      ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7798      cat >conftest.$ac_ext <<_ACEOF
7799    /* confdefs.h.  */
7800    _ACEOF
7801    cat confdefs.h >>conftest.$ac_ext
7802    cat >>conftest.$ac_ext <<_ACEOF
7803    /* end confdefs.h.  */
7804    $ac_includes_default
7805    int
7806    main ()
7807    {
7808    static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) <= $ac_mid)];
7809    test_array [0] = 0
7810    
7811  echo $ac_n "checking size of unsigned long long""... $ac_c" 1>&6    ;
7812  echo "configure:2864: checking size of unsigned long long" >&5    return 0;
7813  if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long_long'+set}'`\" = set"; then  }
7814    echo $ac_n "(cached) $ac_c" 1>&6  _ACEOF
7815    rm -f conftest.$ac_objext
7816    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7817      (eval $ac_compile) 2>conftest.er1
7818      ac_status=$?
7819      grep -v '^ *+' conftest.er1 >conftest.err
7820      rm -f conftest.er1
7821      cat conftest.err >&5
7822      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823      (exit $ac_status); } &&
7824             { ac_try='test -z "$ac_c_werror_flag"
7825                             || test ! -s conftest.err'
7826      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7827      (eval $ac_try) 2>&5
7828      ac_status=$?
7829      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830      (exit $ac_status); }; } &&
7831             { ac_try='test -s conftest.$ac_objext'
7832      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833      (eval $ac_try) 2>&5
7834      ac_status=$?
7835      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836      (exit $ac_status); }; }; then
7837      ac_hi=$ac_mid
7838  else  else
7839    if test "$cross_compiling" = yes; then    echo "$as_me: failed program was:" >&5
7840    ac_cv_sizeof_unsigned_long_long=0  sed 's/^/| /' conftest.$ac_ext >&5
7841    
7842    ac_lo=`expr '(' $ac_mid ')' + 1`
7843    fi
7844    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7845    done
7846    case $ac_lo in
7847    ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
7848    '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long), 77
7849    See \`config.log' for more details." >&5
7850    echo "$as_me: error: cannot compute sizeof (unsigned long long), 77
7851    See \`config.log' for more details." >&2;}
7852       { (exit 1); exit 1; }; } ;;
7853    esac
7854  else  else
7855    cat > conftest.$ac_ext <<EOF    if test "$cross_compiling" = yes; then
7856  #line 2872 "configure"    { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7857  #include "confdefs.h"  See \`config.log' for more details." >&5
7858    echo "$as_me: error: cannot run test program while cross compiling
7859    See \`config.log' for more details." >&2;}
7860       { (exit 1); exit 1; }; }
7861    else
7862      cat >conftest.$ac_ext <<_ACEOF
7863    /* confdefs.h.  */
7864    _ACEOF
7865    cat confdefs.h >>conftest.$ac_ext
7866    cat >>conftest.$ac_ext <<_ACEOF
7867    /* end confdefs.h.  */
7868    $ac_includes_default
7869    long longval () { return (long) (sizeof (unsigned long long)); }
7870    unsigned long ulongval () { return (long) (sizeof (unsigned long long)); }
7871  #include <stdio.h>  #include <stdio.h>
7872  main()  #include <stdlib.h>
7873    int
7874    main ()
7875  {  {
7876    FILE *f=fopen("conftestval", "w");  
7877    if (!f) exit(1);    FILE *f = fopen ("conftest.val", "w");
7878    fprintf(f, "%d\n", sizeof(unsigned long long));    if (! f)
7879    exit(0);      exit (1);
7880  }    if (((long) (sizeof (unsigned long long))) < 0)
7881  EOF      {
7882  if { (eval echo configure:2883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null        long i = longval ();
7883  then        if (i != ((long) (sizeof (unsigned long long))))
7884    ac_cv_sizeof_unsigned_long_long=`cat conftestval`          exit (1);
7885  else        fprintf (f, "%ld\n", i);
7886    echo "configure: failed program was:" >&5      }
7887    cat conftest.$ac_ext >&5    else
7888    rm -fr conftest*      {
7889    ac_cv_sizeof_unsigned_long_long=0        unsigned long i = ulongval ();
7890          if (i != ((long) (sizeof (unsigned long long))))
7891            exit (1);
7892          fprintf (f, "%lu\n", i);
7893        }
7894      exit (ferror (f) || fclose (f) != 0);
7895    
7896      ;
7897      return 0;
7898    }
7899    _ACEOF
7900    rm -f conftest$ac_exeext
7901    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7902      (eval $ac_link) 2>&5
7903      ac_status=$?
7904      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7906      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7907      (eval $ac_try) 2>&5
7908      ac_status=$?
7909      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910      (exit $ac_status); }; }; then
7911      ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
7912    else
7913      echo "$as_me: program exited with status $ac_status" >&5
7914    echo "$as_me: failed program was:" >&5
7915    sed 's/^/| /' conftest.$ac_ext >&5
7916    
7917    ( exit $ac_status )
7918    { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long), 77
7919    See \`config.log' for more details." >&5
7920    echo "$as_me: error: cannot compute sizeof (unsigned long long), 77
7921    See \`config.log' for more details." >&2;}
7922       { (exit 1); exit 1; }; }
7923  fi  fi
7924  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7925    fi
7926    fi
7927    rm -f conftest.val
7928    else
7929      ac_cv_sizeof_unsigned_long_long=0
7930  fi  fi
   
7931  fi  fi
7932  echo "$ac_t""$ac_cv_sizeof_unsigned_long_long" 1>&6  echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
7933  cat >> confdefs.h <<EOF  echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6
7934    cat >>confdefs.h <<_ACEOF
7935  #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long  #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
7936  EOF  _ACEOF
7937    
7938    
7939    
7940  # Checks for library functions.  # Checks for library functions.
7941  for ac_hdr in unistd.h  
7942    
7943    for ac_header in stdlib.h unistd.h
7944  do  do
7945  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7946  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7947  echo "configure:2908: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
7948  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7949    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7950  else    echo $ECHO_N "(cached) $ECHO_C" >&6
7951    cat > conftest.$ac_ext <<EOF  fi
7952  #line 2913 "configure"  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7953  #include "confdefs.h"  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7954  #include <$ac_hdr>  else
7955  EOF    # Is the header compilable?
7956  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
7957  { (eval echo configure:2918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7958  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  cat >conftest.$ac_ext <<_ACEOF
7959  if test -z "$ac_err"; then  /* confdefs.h.  */
7960    rm -rf conftest*  _ACEOF
7961    eval "ac_cv_header_$ac_safe=yes"  cat confdefs.h >>conftest.$ac_ext
7962  else  cat >>conftest.$ac_ext <<_ACEOF
7963    echo "$ac_err" >&5  /* end confdefs.h.  */
7964    echo "configure: failed program was:" >&5  $ac_includes_default
7965    cat conftest.$ac_ext >&5  #include <$ac_header>
7966    rm -rf conftest*  _ACEOF
7967    eval "ac_cv_header_$ac_safe=no"  rm -f conftest.$ac_objext
7968  fi  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7969  rm -f conftest*    (eval $ac_compile) 2>conftest.er1
7970      ac_status=$?
7971      grep -v '^ *+' conftest.er1 >conftest.err
7972      rm -f conftest.er1
7973      cat conftest.err >&5
7974      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975      (exit $ac_status); } &&
7976             { ac_try='test -z "$ac_c_werror_flag"
7977                             || test ! -s conftest.err'
7978      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979      (eval $ac_try) 2>&5
7980      ac_status=$?
7981      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982      (exit $ac_status); }; } &&
7983             { ac_try='test -s conftest.$ac_objext'
7984      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7985      (eval $ac_try) 2>&5
7986      ac_status=$?
7987      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988      (exit $ac_status); }; }; then
7989      ac_header_compiler=yes
7990    else
7991      echo "$as_me: failed program was:" >&5
7992    sed 's/^/| /' conftest.$ac_ext >&5
7993    
7994    ac_header_compiler=no
7995    fi
7996    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7997    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7998    echo "${ECHO_T}$ac_header_compiler" >&6
7999    
8000    # Is the header present?
8001    echo "$as_me:$LINENO: checking $ac_header presence" >&5
8002    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8003    cat >conftest.$ac_ext <<_ACEOF
8004    /* confdefs.h.  */
8005    _ACEOF
8006    cat confdefs.h >>conftest.$ac_ext
8007    cat >>conftest.$ac_ext <<_ACEOF
8008    /* end confdefs.h.  */
8009    #include <$ac_header>
8010    _ACEOF
8011    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8012      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8013      ac_status=$?
8014      grep -v '^ *+' conftest.er1 >conftest.err
8015      rm -f conftest.er1
8016      cat conftest.err >&5
8017      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018      (exit $ac_status); } >/dev/null; then
8019      if test -s conftest.err; then
8020        ac_cpp_err=$ac_c_preproc_warn_flag
8021        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8022      else
8023        ac_cpp_err=
8024      fi
8025    else
8026      ac_cpp_err=yes
8027  fi  fi
8028  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if test -z "$ac_cpp_err"; then
8029    echo "$ac_t""yes" 1>&6    ac_header_preproc=yes
8030      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  else
8031    cat >> confdefs.h <<EOF    echo "$as_me: failed program was:" >&5
8032  #define $ac_tr_hdr 1  sed 's/^/| /' conftest.$ac_ext >&5
8033  EOF  
8034      ac_header_preproc=no
8035    fi
8036    rm -f conftest.err conftest.$ac_ext
8037    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8038    echo "${ECHO_T}$ac_header_preproc" >&6
8039    
8040    # So?  What about this header?
8041    case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8042      yes:no: )
8043        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8044    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8045        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8046    echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8047        ac_header_preproc=yes
8048        ;;
8049      no:yes:* )
8050        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8051    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8052        { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8053    echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8054        { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8055    echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8056        { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8057    echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8058        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8059    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8060        { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8061    echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8062        (
8063          cat <<\_ASBOX
8064    ## ------------------------------------------ ##
8065    ## Report this to the AC_PACKAGE_NAME lists.  ##
8066    ## ------------------------------------------ ##
8067    _ASBOX
8068        ) |
8069          sed "s/^/$as_me: WARNING:     /" >&2
8070        ;;
8071    esac
8072    echo "$as_me:$LINENO: checking for $ac_header" >&5
8073    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8074    if eval "test \"\${$as_ac_Header+set}\" = set"; then
8075      echo $ECHO_N "(cached) $ECHO_C" >&6
8076  else  else
8077    echo "$ac_t""no" 1>&6    eval "$as_ac_Header=\$ac_header_preproc"
8078    fi
8079    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8080    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8081    
8082  fi  fi
8083    if test `eval echo '${'$as_ac_Header'}'` = yes; then
8084      cat >>confdefs.h <<_ACEOF
8085    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8086    _ACEOF
8087    
8088    fi
8089    
8090  done  done
8091    
8092    
8093  for ac_func in getpagesize  for ac_func in getpagesize
8094  do  do
8095  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8096  echo "configure:2947: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
8097  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8098    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_var+set}\" = set"; then
8099  else    echo $ECHO_N "(cached) $ECHO_C" >&6
8100    cat > conftest.$ac_ext <<EOF  else
8101  #line 2952 "configure"    cat >conftest.$ac_ext <<_ACEOF
8102  #include "confdefs.h"  /* confdefs.h.  */
8103    _ACEOF
8104    cat confdefs.h >>conftest.$ac_ext
8105    cat >>conftest.$ac_ext <<_ACEOF
8106    /* end confdefs.h.  */
8107    /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8108       For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8109    #define $ac_func innocuous_$ac_func
8110    
8111  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8112      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func (); below.
8113  #include <assert.h>      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8114  /* Override any gcc2 internal prototype to avoid an error.  */      <limits.h> exists even on freestanding compilers.  */
 /* We use char because int might match the return type of a gcc2  
     builtin and then its argument prototype would still apply.  */  
 char $ac_func();  
8115    
8116  int main() {  #ifdef __STDC__
8117    # include <limits.h>
8118    #else
8119    # include <assert.h>
8120    #endif
8121    
8122    #undef $ac_func
8123    
8124    /* Override any gcc2 internal prototype to avoid an error.  */
8125    #ifdef __cplusplus
8126    extern "C"
8127    {
8128    #endif
8129    /* We use char because int might match the return type of a gcc2
8130       builtin and then its argument prototype would still apply.  */
8131    char $ac_func ();
8132  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
8133      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
8134      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
8135  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8136  choke me  choke me
8137  #else  #else
8138  $ac_func();  char (*f) () = $ac_func;
8139    #endif
8140    #ifdef __cplusplus
8141    }
8142  #endif  #endif
8143    
8144  ; return 0; }  int
8145  EOF  main ()
8146  if { (eval echo configure:2975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
8147    rm -rf conftest*  return f != $ac_func;
8148    eval "ac_cv_func_$ac_func=yes"    ;
8149  else    return 0;
8150    echo "configure: failed program was:" >&5  }
8151    cat conftest.$ac_ext >&5  _ACEOF
8152    rm -rf conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
8153    eval "ac_cv_func_$ac_func=no"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8154  fi    (eval $ac_link) 2>conftest.er1
8155  rm -f conftest*    ac_status=$?
8156  fi    grep -v '^ *+' conftest.er1 >conftest.err
8157      rm -f conftest.er1
8158      cat conftest.err >&5
8159      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160      (exit $ac_status); } &&
8161             { ac_try='test -z "$ac_c_werror_flag"
8162                             || test ! -s conftest.err'
8163      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164      (eval $ac_try) 2>&5
8165      ac_status=$?
8166      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167      (exit $ac_status); }; } &&
8168             { ac_try='test -s conftest$ac_exeext'
8169      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170      (eval $ac_try) 2>&5
8171      ac_status=$?
8172      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173      (exit $ac_status); }; }; then
8174      eval "$as_ac_var=yes"
8175    else
8176      echo "$as_me: failed program was:" >&5
8177    sed 's/^/| /' conftest.$ac_ext >&5
8178    
8179    eval "$as_ac_var=no"
8180    fi
8181    rm -f conftest.err conftest.$ac_objext \
8182          conftest$ac_exeext conftest.$ac_ext
8183    fi
8184    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8185    echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8186    if test `eval echo '${'$as_ac_var'}'` = yes; then
8187      cat >>confdefs.h <<_ACEOF
8188    #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8189    _ACEOF
8190    
 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`  
   cat >> confdefs.h <<EOF  
 #define $ac_tr_func 1  
 EOF  
   
 else  
   echo "$ac_t""no" 1>&6  
8191  fi  fi
8192  done  done
8193    
8194  echo $ac_n "checking for working mmap""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for working mmap" >&5
8195  echo "configure:3000: checking for working mmap" >&5  echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8196  if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then  if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8197    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
8198  else  else
8199    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
8200    ac_cv_func_mmap_fixed_mapped=no    ac_cv_func_mmap_fixed_mapped=no
8201  else  else
8202    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
8203  #line 3008 "configure"  /* confdefs.h.  */
8204  #include "confdefs.h"  _ACEOF
8205    cat confdefs.h >>conftest.$ac_ext
8206    cat >>conftest.$ac_ext <<_ACEOF
8207    /* end confdefs.h.  */
8208    $ac_includes_default
8209    /* malloc might have been renamed as rpl_malloc. */
8210    #undef malloc
8211    
8212  /* Thanks to Mike Haertel and Jim Avera for this test.  /* Thanks to Mike Haertel and Jim Avera for this test.
8213     Here is a matrix of mmap possibilities:     Here is a matrix of mmap possibilities:
# Line 3019  else Line 8221  else
8221     back from the file, nor mmap's back from the file at a different     back from the file, nor mmap's back from the file at a different
8222     address.  (There have been systems where private was not correctly     address.  (There have been systems where private was not correctly
8223     implemented like the infamous i386 svr4.0, and systems where the     implemented like the infamous i386 svr4.0, and systems where the
8224     VM page cache was not coherent with the filesystem buffer cache     VM page cache was not coherent with the file system buffer cache
8225     like early versions of FreeBSD and possibly contemporary NetBSD.)     like early versions of FreeBSD and possibly contemporary NetBSD.)
8226     For shared mappings, we should conversely verify that changes get     For shared mappings, we should conversely verify that changes get
8227     propogated back to all the places they're supposed to be.     propagated back to all the places they're supposed to be.
8228    
8229     Grep wants private fixed already mapped.     Grep wants private fixed already mapped.
8230     The main things grep needs to know about mmap are:     The main things grep needs to know about mmap are:
8231     * does it exist and is it safe to write into the mmap'd area     * does it exist and is it safe to write into the mmap'd area
8232     * how to use it (BSD variants)  */     * how to use it (BSD variants)  */
8233  #include <sys/types.h>  
8234  #include <fcntl.h>  #include <fcntl.h>
8235  #include <sys/mman.h>  #include <sys/mman.h>
8236    
8237  /* This mess was copied from the GNU getpagesize.h.  */  #if !STDC_HEADERS && !HAVE_STDLIB_H
8238  #ifndef HAVE_GETPAGESIZE  char *malloc ();
8239  # ifdef HAVE_UNISTD_H  #endif
 #  include <unistd.h>  
 # endif  
8240    
8241    /* This mess was copied from the GNU getpagesize.h.  */
8242    #if !HAVE_GETPAGESIZE
8243  /* Assume that all systems that can run configure have sys/param.h.  */  /* Assume that all systems that can run configure have sys/param.h.  */
8244  # ifndef HAVE_SYS_PARAM_H  # if !HAVE_SYS_PARAM_H
8245  #  define HAVE_SYS_PARAM_H 1  #  define HAVE_SYS_PARAM_H 1
8246  # endif  # endif
8247    
8248  # ifdef _SC_PAGESIZE  # ifdef _SC_PAGESIZE
8249  #  define getpagesize() sysconf(_SC_PAGESIZE)  #  define getpagesize() sysconf(_SC_PAGESIZE)
8250  # else /* no _SC_PAGESIZE */  # else /* no _SC_PAGESIZE */
8251  #  ifdef HAVE_SYS_PARAM_H  #  if HAVE_SYS_PARAM_H
8252  #   include <sys/param.h>  #   include <sys/param.h>
8253  #   ifdef EXEC_PAGESIZE  #   ifdef EXEC_PAGESIZE
8254  #    define getpagesize() EXEC_PAGESIZE  #    define getpagesize() EXEC_PAGESIZE
# Line 3073  else Line 8275  else
8275    
8276  #endif /* no HAVE_GETPAGESIZE */  #endif /* no HAVE_GETPAGESIZE */
8277    
 #ifdef __cplusplus  
 extern "C" { void *malloc(unsigned); }  
 #else  
 char *malloc();  
 #endif  
   
8278  int  int
8279  main()  main ()
8280  {  {
8281          char *data, *data2, *data3;    char *data, *data2, *data3;
8282          int i, pagesize;    int i, pagesize;
8283          int fd;    int fd;
8284    
8285          pagesize = getpagesize();    pagesize = getpagesize ();
8286    
8287          /*    /* First, make a file with some known garbage in it. */
8288           * First, make a file with some known garbage in it.    data = (char *) malloc (pagesize);
8289           */    if (!data)
8290          data = malloc(pagesize);      exit (1);
8291          if (!data)    for (i = 0; i < pagesize; ++i)
8292                  exit(1);      *(data + i) = rand ();
8293          for (i = 0; i < pagesize; ++i)    umask (0);
8294                  *(data + i) = rand();    fd = creat ("conftest.mmap", 0600);
8295          umask(0);    if (fd < 0)
8296          fd = creat("conftestmmap", 0600);      exit (1);
8297          if (fd < 0)    if (write (fd, data, pagesize) != pagesize)
8298                  exit(1);      exit (1);
8299          if (write(fd, data, pagesize) != pagesize)    close (fd);
8300                  exit(1);  
8301          close(fd);    /* Next, try to mmap the file at a fixed address which already has
8302         something else allocated at it.  If we can, also make sure that
8303          /*       we see the same garbage.  */
8304           * Next, try to mmap the file at a fixed address which    fd = open ("conftest.mmap", O_RDWR);
8305           * already has something else allocated at it.  If we can,    if (fd < 0)
8306           * also make sure that we see the same garbage.      exit (1);
8307           */    data2 = (char *) malloc (2 * pagesize);
8308          fd = open("conftestmmap", O_RDWR);    if (!data2)
8309          if (fd < 0)      exit (1);
8310                  exit(1);    data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8311          data2 = malloc(2 * pagesize);    if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8312          if (!data2)                       MAP_PRIVATE | MAP_FIXED, fd, 0L))
8313                  exit(1);      exit (1);
8314          data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);    for (i = 0; i < pagesize; ++i)
8315          if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,      if (*(data + i) != *(data2 + i))
8316              MAP_PRIVATE | MAP_FIXED, fd, 0L))        exit (1);
8317                  exit(1);  
8318          for (i = 0; i < pagesize; ++i)    /* Finally, make sure that changes to the mapped area do not
8319                  if (*(data + i) != *(data2 + i))       percolate back to the file as seen by read().  (This is a bug on
8320                          exit(1);       some variants of i386 svr4.0.)  */
8321      for (i = 0; i < pagesize; ++i)
8322          /*      *(data2 + i) = *(data2 + i) + 1;
8323           * Finally, make sure that changes to the mapped area    data3 = (char *) malloc (pagesize);
8324           * do not percolate back to the file as seen by read().    if (!data3)
8325           * (This is a bug on some variants of i386 svr4.0.)      exit (1);
8326           */    if (read (fd, data3, pagesize) != pagesize)
8327          for (i = 0; i < pagesize; ++i)      exit (1);
8328                  *(data2 + i) = *(data2 + i) + 1;    for (i = 0; i < pagesize; ++i)
8329          data3 = malloc(pagesize);      if (*(data + i) != *(data3 + i))
8330          if (!data3)        exit (1);
8331                  exit(1);    close (fd);
8332          if (read(fd, data3, pagesize) != pagesize)    exit (0);
8333                  exit(1);  }
8334          for (i = 0; i < pagesize; ++i)  _ACEOF
8335                  if (*(data + i) != *(data3 + i))  rm -f conftest$ac_exeext
8336                          exit(1);  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8337          close(fd);    (eval $ac_link) 2>&5
8338          unlink("conftestmmap");    ac_status=$?
8339          exit(0);    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340  }    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8341      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8342  EOF    (eval $ac_try) 2>&5
8343  if { (eval echo configure:3148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null    ac_status=$?
8344  then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345      (exit $ac_status); }; }; then
8346    ac_cv_func_mmap_fixed_mapped=yes    ac_cv_func_mmap_fixed_mapped=yes
8347  else  else
8348    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
8349    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
8350    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
8351    ac_cv_func_mmap_fixed_mapped=no  
8352    ( exit $ac_status )
8353    ac_cv_func_mmap_fixed_mapped=no
8354  fi  fi
8355  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8356  fi  fi
   
8357  fi  fi
8358    echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8359  echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6  echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8360  if test $ac_cv_func_mmap_fixed_mapped = yes; then  if test $ac_cv_func_mmap_fixed_mapped = yes; then
8361    cat >> confdefs.h <<\EOF  
8362    cat >>confdefs.h <<\_ACEOF
8363  #define HAVE_MMAP 1  #define HAVE_MMAP 1
8364  EOF  _ACEOF
8365    
8366  fi  fi
8367    rm -f conftest.mmap
8368    
8369    
8370    for ac_func in strftime
8371    do
8372    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8373    echo "$as_me:$LINENO: checking for $ac_func" >&5
8374    echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8375    if eval "test \"\${$as_ac_var+set}\" = set"; then
8376      echo $ECHO_N "(cached) $ECHO_C" >&6
8377    else
8378      cat >conftest.$ac_ext <<_ACEOF
8379    /* confdefs.h.  */
8380    _ACEOF
8381    cat confdefs.h >>conftest.$ac_ext
8382    cat >>conftest.$ac_ext <<_ACEOF
8383    /* end confdefs.h.  */
8384    /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8385       For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8386    #define $ac_func innocuous_$ac_func
8387    
 echo $ac_n "checking for strftime""... $ac_c" 1>&6  
 echo "configure:3171: checking for strftime" >&5  
 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
 else  
   cat > conftest.$ac_ext <<EOF  
 #line 3176 "configure"  
 #include "confdefs.h"  
8388  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8389      which can conflict with char strftime(); below.  */      which can conflict with char $ac_func (); below.
8390  #include <assert.h>      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8391  /* Override any gcc2 internal prototype to avoid an error.  */      <limits.h> exists even on freestanding compilers.  */
8392  /* We use char because int might match the return type of a gcc2  
8393      builtin and then its argument prototype would still apply.  */  #ifdef __STDC__
8394  char strftime();  # include <limits.h>
8395    #else
8396    # include <assert.h>
8397    #endif
8398    
8399  int main() {  #undef $ac_func
8400    
8401    /* Override any gcc2 internal prototype to avoid an error.  */
8402    #ifdef __cplusplus
8403    extern "C"
8404    {
8405    #endif
8406    /* We use char because int might match the return type of a gcc2
8407       builtin and then its argument prototype would still apply.  */
8408    char $ac_func ();
8409  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
8410      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
8411      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
8412  #if defined (__stub_strftime) || defined (__stub___strftime)  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8413  choke me  choke me
8414  #else  #else
8415  strftime();  char (*f) () = $ac_func;
8416    #endif
8417    #ifdef __cplusplus
8418    }
8419  #endif  #endif
8420    
8421  ; return 0; }  int
8422  EOF  main ()
8423  if { (eval echo configure:3199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
8424    rm -rf conftest*  return f != $ac_func;
8425    eval "ac_cv_func_strftime=yes"    ;
8426  else    return 0;
8427    echo "configure: failed program was:" >&5  }
8428    cat conftest.$ac_ext >&5  _ACEOF
8429    rm -rf conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
8430    eval "ac_cv_func_strftime=no"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8431  fi    (eval $ac_link) 2>conftest.er1
8432  rm -f conftest*    ac_status=$?
8433  fi    grep -v '^ *+' conftest.er1 >conftest.err
8434      rm -f conftest.er1
8435  if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then    cat conftest.err >&5
8436    echo "$ac_t""yes" 1>&6    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437    cat >> confdefs.h <<\EOF    (exit $ac_status); } &&
8438  #define HAVE_STRFTIME 1           { ac_try='test -z "$ac_c_werror_flag"
8439  EOF                           || test ! -s conftest.err'
8440      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441  else    (eval $ac_try) 2>&5
8442    echo "$ac_t""no" 1>&6    ac_status=$?
8443  # strftime is in -lintl on SCO UNIX.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444  echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6    (exit $ac_status); }; } &&
8445  echo "configure:3221: checking for strftime in -lintl" >&5           { ac_try='test -s conftest$ac_exeext'
8446  ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    (eval $ac_try) 2>&5
8448    echo $ac_n "(cached) $ac_c" 1>&6    ac_status=$?
8449      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450      (exit $ac_status); }; }; then
8451      eval "$as_ac_var=yes"
8452    else
8453      echo "$as_me: failed program was:" >&5
8454    sed 's/^/| /' conftest.$ac_ext >&5
8455    
8456    eval "$as_ac_var=no"
8457    fi
8458    rm -f conftest.err conftest.$ac_objext \
8459          conftest$ac_exeext conftest.$ac_ext
8460    fi
8461    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8462    echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8463    if test `eval echo '${'$as_ac_var'}'` = yes; then
8464      cat >>confdefs.h <<_ACEOF
8465    #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8466    _ACEOF
8467    
8468    else
8469      # strftime is in -lintl on SCO UNIX.
8470    echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
8471    echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
8472    if test "${ac_cv_lib_intl_strftime+set}" = set; then
8473      echo $ECHO_N "(cached) $ECHO_C" >&6
8474  else  else
8475    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
8476  LIBS="-lintl  $LIBS"  LIBS="-lintl  $LIBS"
8477  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8478  #line 3229 "configure"  /* confdefs.h.  */
8479  #include "confdefs.h"  _ACEOF
8480  /* Override any gcc2 internal prototype to avoid an error.  */  cat confdefs.h >>conftest.$ac_ext
8481  /* We use char because int might match the return type of a gcc2  cat >>conftest.$ac_ext <<_ACEOF
8482      builtin and then its argument prototype would still apply.  */  /* end confdefs.h.  */
 char strftime();  
   
 int main() {  
 strftime()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:3240: \"$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  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
8483    
8484  fi  /* Override any gcc2 internal prototype to avoid an error.  */
8485  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #ifdef __cplusplus
8486    echo "$ac_t""yes" 1>&6  extern "C"
8487    cat >> confdefs.h <<\EOF  #endif
8488    /* We use char because int might match the return type of a gcc2
8489       builtin and then its argument prototype would still apply.  */
8490    char strftime ();
8491    int
8492    main ()
8493    {
8494    strftime ();
8495      ;
8496      return 0;
8497    }
8498    _ACEOF
8499    rm -f conftest.$ac_objext conftest$ac_exeext
8500    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8501      (eval $ac_link) 2>conftest.er1
8502      ac_status=$?
8503      grep -v '^ *+' conftest.er1 >conftest.err
8504      rm -f conftest.er1
8505      cat conftest.err >&5
8506      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507      (exit $ac_status); } &&
8508             { ac_try='test -z "$ac_c_werror_flag"
8509                             || test ! -s conftest.err'
8510      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511      (eval $ac_try) 2>&5
8512      ac_status=$?
8513      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514      (exit $ac_status); }; } &&
8515             { ac_try='test -s conftest$ac_exeext'
8516      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8517      (eval $ac_try) 2>&5
8518      ac_status=$?
8519      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520      (exit $ac_status); }; }; then
8521      ac_cv_lib_intl_strftime=yes
8522    else
8523      echo "$as_me: failed program was:" >&5
8524    sed 's/^/| /' conftest.$ac_ext >&5
8525    
8526    ac_cv_lib_intl_strftime=no
8527    fi
8528    rm -f conftest.err conftest.$ac_objext \
8529          conftest$ac_exeext conftest.$ac_ext
8530    LIBS=$ac_check_lib_save_LIBS
8531    fi
8532    echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
8533    echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
8534    if test $ac_cv_lib_intl_strftime = yes; then
8535      cat >>confdefs.h <<\_ACEOF
8536  #define HAVE_STRFTIME 1  #define HAVE_STRFTIME 1
8537  EOF  _ACEOF
8538    
8539  LIBS="-lintl $LIBS"  LIBS="-lintl $LIBS"
 else  
   echo "$ac_t""no" 1>&6  
8540  fi  fi
8541    
8542  fi  fi
8543    done
8544    
8545    
8546    for ac_func in vprintf
8547    do
8548    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8549    echo "$as_me:$LINENO: checking for $ac_func" >&5
8550    echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8551    if eval "test \"\${$as_ac_var+set}\" = set"; then
8552      echo $ECHO_N "(cached) $ECHO_C" >&6
8553    else
8554      cat >conftest.$ac_ext <<_ACEOF
8555    /* confdefs.h.  */
8556    _ACEOF
8557    cat confdefs.h >>conftest.$ac_ext
8558    cat >>conftest.$ac_ext <<_ACEOF
8559    /* end confdefs.h.  */
8560    /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8561       For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8562    #define $ac_func innocuous_$ac_func
8563    
 echo $ac_n "checking for vprintf""... $ac_c" 1>&6  
 echo "configure:3267: checking for vprintf" >&5  
 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
 else  
   cat > conftest.$ac_ext <<EOF  
 #line 3272 "configure"  
 #include "confdefs.h"  
8564  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8565      which can conflict with char vprintf(); below.  */      which can conflict with char $ac_func (); below.
8566  #include <assert.h>      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8567  /* Override any gcc2 internal prototype to avoid an error.  */      <limits.h> exists even on freestanding compilers.  */
8568  /* We use char because int might match the return type of a gcc2  
8569      builtin and then its argument prototype would still apply.  */  #ifdef __STDC__
8570  char vprintf();  # include <limits.h>
8571    #else
8572    # include <assert.h>
8573    #endif
8574    
8575  int main() {  #undef $ac_func
8576    
8577    /* Override any gcc2 internal prototype to avoid an error.  */
8578    #ifdef __cplusplus
8579    extern "C"
8580    {
8581    #endif
8582    /* We use char because int might match the return type of a gcc2
8583       builtin and then its argument prototype would still apply.  */
8584    char $ac_func ();
8585  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
8586      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
8587      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
8588  #if defined (__stub_vprintf) || defined (__stub___vprintf)  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8589  choke me  choke me
8590  #else  #else
8591  vprintf();  char (*f) () = $ac_func;
8592    #endif
8593    #ifdef __cplusplus
8594    }
8595  #endif  #endif
8596    
8597  ; return 0; }  int
8598  EOF  main ()
8599  if { (eval echo configure:3295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
8600    rm -rf conftest*  return f != $ac_func;
8601    eval "ac_cv_func_vprintf=yes"    ;
8602  else    return 0;
8603    echo "configure: failed program was:" >&5  }
8604    cat conftest.$ac_ext >&5  _ACEOF
8605    rm -rf conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
8606    eval "ac_cv_func_vprintf=no"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8607  fi    (eval $ac_link) 2>conftest.er1
8608  rm -f conftest*    ac_status=$?
8609  fi    grep -v '^ *+' conftest.er1 >conftest.err
8610      rm -f conftest.er1
8611      cat conftest.err >&5
8612      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613      (exit $ac_status); } &&
8614             { ac_try='test -z "$ac_c_werror_flag"
8615                             || test ! -s conftest.err'
8616      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617      (eval $ac_try) 2>&5
8618      ac_status=$?
8619      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620      (exit $ac_status); }; } &&
8621             { ac_try='test -s conftest$ac_exeext'
8622      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623      (eval $ac_try) 2>&5
8624      ac_status=$?
8625      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626      (exit $ac_status); }; }; then
8627      eval "$as_ac_var=yes"
8628    else
8629      echo "$as_me: failed program was:" >&5
8630    sed 's/^/| /' conftest.$ac_ext >&5
8631    
8632    eval "$as_ac_var=no"
8633    fi
8634    rm -f conftest.err conftest.$ac_objext \
8635          conftest$ac_exeext conftest.$ac_ext
8636    fi
8637    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8638    echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8639    if test `eval echo '${'$as_ac_var'}'` = yes; then
8640      cat >>confdefs.h <<_ACEOF
8641    #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8642    _ACEOF
8643    
8644    echo "$as_me:$LINENO: checking for _doprnt" >&5
8645    echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
8646    if test "${ac_cv_func__doprnt+set}" = set; then
8647      echo $ECHO_N "(cached) $ECHO_C" >&6
8648    else
8649      cat >conftest.$ac_ext <<_ACEOF
8650    /* confdefs.h.  */
8651    _ACEOF
8652    cat confdefs.h >>conftest.$ac_ext
8653    cat >>conftest.$ac_ext <<_ACEOF
8654    /* end confdefs.h.  */
8655    /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8656       For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8657    #define _doprnt innocuous__doprnt
8658    
8659  if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then  /* System header to define __stub macros and hopefully few prototypes,
8660    echo "$ac_t""yes" 1>&6      which can conflict with char _doprnt (); below.
8661    cat >> confdefs.h <<\EOF      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8662  #define HAVE_VPRINTF 1      <limits.h> exists even on freestanding compilers.  */
 EOF  
8663    
8664  else  #ifdef __STDC__
8665    echo "$ac_t""no" 1>&6  # include <limits.h>
8666  fi  #else
8667    # include <assert.h>
8668    #endif
8669    
8670    #undef _doprnt
8671    
 if test "$ac_cv_func_vprintf" != yes; then  
 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6  
 echo "configure:3319: checking for _doprnt" >&5  
 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
 else  
   cat > conftest.$ac_ext <<EOF  
 #line 3324 "configure"  
 #include "confdefs.h"  
 /* System header to define __stub macros and hopefully few prototypes,  
     which can conflict with char _doprnt(); below.  */  
 #include <assert.h>  
8672  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
8673    #ifdef __cplusplus
8674    extern "C"
8675    {
8676    #endif
8677  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
8678      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8679  char _doprnt();  char _doprnt ();
   
 int main() {  
   
8680  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
8681      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
8682      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
8683  #if defined (__stub__doprnt) || defined (__stub____doprnt)  #if defined (__stub__doprnt) || defined (__stub____doprnt)
8684  choke me  choke me
8685  #else  #else
8686  _doprnt();  char (*f) () = _doprnt;
8687    #endif
8688    #ifdef __cplusplus
8689    }
8690  #endif  #endif
8691    
8692  ; return 0; }  int
8693  EOF  main ()
8694  if { (eval echo configure:3347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
8695    rm -rf conftest*  return f != _doprnt;
8696    eval "ac_cv_func__doprnt=yes"    ;
8697  else    return 0;
8698    echo "configure: failed program was:" >&5  }
8699    cat conftest.$ac_ext >&5  _ACEOF
8700    rm -rf conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
8701    eval "ac_cv_func__doprnt=no"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8702  fi    (eval $ac_link) 2>conftest.er1
8703  rm -f conftest*    ac_status=$?
8704  fi    grep -v '^ *+' conftest.er1 >conftest.err
8705      rm -f conftest.er1
8706      cat conftest.err >&5
8707      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708      (exit $ac_status); } &&
8709             { ac_try='test -z "$ac_c_werror_flag"
8710                             || test ! -s conftest.err'
8711      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712      (eval $ac_try) 2>&5
8713      ac_status=$?
8714      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715      (exit $ac_status); }; } &&
8716             { ac_try='test -s conftest$ac_exeext'
8717      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718      (eval $ac_try) 2>&5
8719      ac_status=$?
8720      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721      (exit $ac_status); }; }; then
8722      ac_cv_func__doprnt=yes
8723    else
8724      echo "$as_me: failed program was:" >&5
8725    sed 's/^/| /' conftest.$ac_ext >&5
8726    
8727    ac_cv_func__doprnt=no
8728    fi
8729    rm -f conftest.err conftest.$ac_objext \
8730          conftest$ac_exeext conftest.$ac_ext
8731    fi
8732    echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8733    echo "${ECHO_T}$ac_cv_func__doprnt" >&6
8734    if test $ac_cv_func__doprnt = yes; then
8735    
8736  if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then  cat >>confdefs.h <<\_ACEOF
   echo "$ac_t""yes" 1>&6  
   cat >> confdefs.h <<\EOF  
8737  #define HAVE_DOPRNT 1  #define HAVE_DOPRNT 1
8738  EOF  _ACEOF
8739    
 else  
   echo "$ac_t""no" 1>&6  
8740  fi  fi
8741    
8742  fi  fi
8743    done
8744    
8745  echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6  
8746  echo "configure:3372: checking whether setpgrp takes no argument" >&5  echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
8747  if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then  echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
8748    echo $ac_n "(cached) $ac_c" 1>&6  if test "${ac_cv_func_setpgrp_void+set}" = set; then
8749      echo $ECHO_N "(cached) $ECHO_C" >&6
8750  else  else
8751    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
8752    { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }    { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
8753  else  echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
8754    cat > conftest.$ac_ext <<EOF     { (exit 1); exit 1; }; }
8755  #line 3380 "configure"  else
8756  #include "confdefs.h"    cat >conftest.$ac_ext <<_ACEOF
8757    /* confdefs.h.  */
8758  #ifdef HAVE_UNISTD_H  _ACEOF
8759  #include <unistd.h>  cat confdefs.h >>conftest.$ac_ext
8760    cat >>conftest.$ac_ext <<_ACEOF
8761    /* end confdefs.h.  */
8762    #if HAVE_UNISTD_H
8763    # include <unistd.h>
8764  #endif  #endif
8765    
8766  /*  int
8767   * If this system has a BSD-style setpgrp, which takes arguments, exit  main ()
  * successfully.  
  */  
 main()  
8768  {  {
8769      if (setpgrp(1,1) == -1)  /* If this system has a BSD-style setpgrp which takes arguments,
8770          exit(0);    setpgrp(1, 1) will fail with ESRCH and return -1, in that case
8771      else    exit successfully. */
8772          exit(1);    exit (setpgrp (1,1) == -1 ? 0 : 1);
8773      ;
8774      return 0;
8775  }  }
8776    _ACEOF
8777  EOF  rm -f conftest$ac_exeext
8778  if { (eval echo configure:3400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8779  then    (eval $ac_link) 2>&5
8780      ac_status=$?
8781      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8783      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8784      (eval $ac_try) 2>&5
8785      ac_status=$?
8786      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787      (exit $ac_status); }; }; then
8788    ac_cv_func_setpgrp_void=no    ac_cv_func_setpgrp_void=no
8789  else  else
8790    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
8791    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
8792    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
8793    ac_cv_func_setpgrp_void=yes  
8794    ( exit $ac_status )
8795    ac_cv_func_setpgrp_void=yes
8796  fi  fi
8797  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8798  fi  fi
   
   
8799  fi  fi
8800    echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
8801  echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6  echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
8802  if test $ac_cv_func_setpgrp_void = yes; then  if test $ac_cv_func_setpgrp_void = yes; then
8803    cat >> confdefs.h <<\EOF  
8804    cat >>confdefs.h <<\_ACEOF
8805  #define SETPGRP_VOID 1  #define SETPGRP_VOID 1
8806  EOF  _ACEOF
8807    
8808  fi  fi
8809    
8810  echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking whether closedir returns void" >&5
8811  echo "configure:3424: checking whether closedir returns void" >&5  echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
8812  if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then  if test "${ac_cv_func_closedir_void+set}" = set; then
8813    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
8814  else  else
8815    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
8816    ac_cv_func_closedir_void=yes    ac_cv_func_closedir_void=yes
8817  else  else
8818    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
8819  #line 3432 "configure"  /* confdefs.h.  */
8820  #include "confdefs.h"  _ACEOF
8821  #include <sys/types.h>  cat confdefs.h >>conftest.$ac_ext
8822    cat >>conftest.$ac_ext <<_ACEOF
8823    /* end confdefs.h.  */
8824    $ac_includes_default
8825  #include <$ac_header_dirent>  #include <$ac_header_dirent>
8826  int closedir(); main() { exit(closedir(opendir(".")) != 0); }  #ifndef __cplusplus
8827  EOF  int closedir ();
8828  if { (eval echo configure:3438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  #endif
8829  then  
8830    int
8831    main ()
8832    {
8833    exit (closedir (opendir (".")) != 0);
8834      ;
8835      return 0;
8836    }
8837    _ACEOF
8838    rm -f conftest$ac_exeext
8839    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8840      (eval $ac_link) 2>&5
8841      ac_status=$?
8842      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8844      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8845      (eval $ac_try) 2>&5
8846      ac_status=$?
8847      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848      (exit $ac_status); }; }; then
8849    ac_cv_func_closedir_void=no    ac_cv_func_closedir_void=no
8850  else  else
8851    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
8852    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
8853    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
8854    ac_cv_func_closedir_void=yes  
8855    ( exit $ac_status )
8856    ac_cv_func_closedir_void=yes
8857  fi  fi
8858  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8859  fi  fi
   
8860  fi  fi
8861    echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
8862  echo "$ac_t""$ac_cv_func_closedir_void" 1>&6  echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
8863  if test $ac_cv_func_closedir_void = yes; then  if test $ac_cv_func_closedir_void = yes; then
8864    cat >> confdefs.h <<\EOF  
8865    cat >>confdefs.h <<\_ACEOF
8866  #define CLOSEDIR_VOID 1  #define CLOSEDIR_VOID 1
8867  EOF  _ACEOF
8868    
8869  fi  fi
8870    
8871    
8872    
8873  for ac_func in mkdir _mkdir  for ac_func in mkdir _mkdir
8874  do  do
8875  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8876  echo "configure:3463: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
8877  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8878    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_var+set}\" = set"; then
8879  else    echo $ECHO_N "(cached) $ECHO_C" >&6
8880    cat > conftest.$ac_ext <<EOF  else
8881  #line 3468 "configure"    cat >conftest.$ac_ext <<_ACEOF
8882  #include "confdefs.h"  /* confdefs.h.  */
8883    _ACEOF
8884    cat confdefs.h >>conftest.$ac_ext
8885    cat >>conftest.$ac_ext <<_ACEOF
8886    /* end confdefs.h.  */
8887    /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8888       For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8889    #define $ac_func innocuous_$ac_func
8890    
8891  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8892      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func (); below.
8893  #include <assert.h>      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8894  /* Override any gcc2 internal prototype to avoid an error.  */      <limits.h> exists even on freestanding compilers.  */
8895  /* We use char because int might match the return type of a gcc2  
8896      builtin and then its argument prototype would still apply.  */  #ifdef __STDC__
8897  char $ac_func();  # include <limits.h>
8898    #else
8899    # include <assert.h>
8900    #endif
8901    
8902  int main() {  #undef $ac_func
8903    
8904    /* Override any gcc2 internal prototype to avoid an error.  */
8905    #ifdef __cplusplus
8906    extern "C"
8907    {
8908    #endif
8909    /* We use char because int might match the return type of a gcc2
8910       builtin and then its argument prototype would still apply.  */
8911    char $ac_func ();
8912  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
8913      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
8914      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
8915  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8916  choke me  choke me
8917  #else  #else
8918  $ac_func();  char (*f) () = $ac_func;
8919    #endif
8920    #ifdef __cplusplus
8921    }
8922  #endif  #endif
8923    
8924  ; return 0; }  int
8925  EOF  main ()
8926  if { (eval echo configure:3491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
8927    rm -rf conftest*  return f != $ac_func;
8928    eval "ac_cv_func_$ac_func=yes"    ;
8929  else    return 0;
8930    echo "configure: failed program was:" >&5  }
8931    cat conftest.$ac_ext >&5  _ACEOF
8932    rm -rf conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
8933    eval "ac_cv_func_$ac_func=no"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8934  fi    (eval $ac_link) 2>conftest.er1
8935  rm -f conftest*    ac_status=$?
8936  fi    grep -v '^ *+' conftest.er1 >conftest.err
8937      rm -f conftest.er1
8938      cat conftest.err >&5
8939      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940      (exit $ac_status); } &&
8941             { ac_try='test -z "$ac_c_werror_flag"
8942                             || test ! -s conftest.err'
8943      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8944      (eval $ac_try) 2>&5
8945      ac_status=$?
8946      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947      (exit $ac_status); }; } &&
8948             { ac_try='test -s conftest$ac_exeext'
8949      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950      (eval $ac_try) 2>&5
8951      ac_status=$?
8952      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953      (exit $ac_status); }; }; then
8954      eval "$as_ac_var=yes"
8955    else
8956      echo "$as_me: failed program was:" >&5
8957    sed 's/^/| /' conftest.$ac_ext >&5
8958    
8959    eval "$as_ac_var=no"
8960    fi
8961    rm -f conftest.err conftest.$ac_objext \
8962          conftest$ac_exeext conftest.$ac_ext
8963    fi
8964    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8965    echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8966    if test `eval echo '${'$as_ac_var'}'` = yes; then
8967      cat >>confdefs.h <<_ACEOF
8968    #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8969    _ACEOF
8970    
 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`  
   cat >> confdefs.h <<EOF  
 #define $ac_tr_func 1  
 EOF  
   
 else  
   echo "$ac_t""no" 1>&6  
8971  fi  fi
8972  done  done
8973    
8974  echo $ac_n "checking whether mkdir takes one argument""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking whether mkdir takes one argument" >&5
8975  echo "configure:3516: checking whether mkdir takes one argument" >&5  echo $ECHO_N "checking whether mkdir takes one argument... $ECHO_C" >&6
8976  if eval "test \"`echo '$''{'ac_cv_mkdir_takes_one_arg'+set}'`\" = set"; then  if test "${ac_cv_mkdir_takes_one_arg+set}" = set; then
8977    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
8978  else  else
8979    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
8980  #line 3521 "configure"  /* confdefs.h.  */
8981  #include "confdefs.h"  _ACEOF
8982    cat confdefs.h >>conftest.$ac_ext
8983    cat >>conftest.$ac_ext <<_ACEOF
8984    /* end confdefs.h.  */
8985    
8986  #ifdef HAVE_SYS_STAT_H  #ifdef HAVE_SYS_STAT_H
8987  # include <sys/stat.h>  # include <sys/stat.h>
# Line 3538  else Line 9001  else
9001  # endif  # endif
9002  #endif  #endif
9003    
9004  int main() {  int
9005    main ()
9006    {
9007  mkdir(".");  mkdir(".");
9008  ; return 0; }    ;
9009  EOF    return 0;
9010  if { (eval echo configure:3546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
9011    rm -rf conftest*  _ACEOF
9012    rm -f conftest.$ac_objext
9013    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9014      (eval $ac_compile) 2>conftest.er1
9015      ac_status=$?
9016      grep -v '^ *+' conftest.er1 >conftest.err
9017      rm -f conftest.er1
9018      cat conftest.err >&5
9019      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020      (exit $ac_status); } &&
9021             { ac_try='test -z "$ac_c_werror_flag"
9022                             || test ! -s conftest.err'
9023      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9024      (eval $ac_try) 2>&5
9025      ac_status=$?
9026      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027      (exit $ac_status); }; } &&
9028             { ac_try='test -s conftest.$ac_objext'
9029      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9030      (eval $ac_try) 2>&5
9031      ac_status=$?
9032      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033      (exit $ac_status); }; }; then
9034    ac_cv_mkdir_takes_one_arg=yes    ac_cv_mkdir_takes_one_arg=yes
9035  else  else
9036    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
9037    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
9038    rm -rf conftest*  
9039    ac_cv_mkdir_takes_one_arg=no  ac_cv_mkdir_takes_one_arg=no
9040  fi  fi
9041  rm -f conftest*  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9042  fi  fi
9043    echo "$as_me:$LINENO: result: $ac_cv_mkdir_takes_one_arg" >&5
9044  echo "$ac_t""$ac_cv_mkdir_takes_one_arg" 1>&6  echo "${ECHO_T}$ac_cv_mkdir_takes_one_arg" >&6
9045  if test x"$ac_cv_mkdir_takes_one_arg" = xyes; then  if test x"$ac_cv_mkdir_takes_one_arg" = xyes; then
9046    cat >> confdefs.h <<\EOF  
9047    cat >>confdefs.h <<\_ACEOF
9048  #define MKDIR_TAKES_ONE_ARG 1  #define MKDIR_TAKES_ONE_ARG 1
9049  EOF  _ACEOF
9050    
9051  fi  fi
9052    
9053    
9054    
9055    
9056    
9057    
9058    
9059    
9060    
9061    
9062    
9063    
9064    
9065    
9066    
9067    
9068    
9069    
9070    
9071    
9072    
9073    
9074    
9075    
9076    
9077    
9078    
9079    
9080    
9081    
9082    
9083    
9084    
9085    
9086    
9087    
9088    
9089    
9090    
9091    
9092    
9093    
9094    
9095    
9096    
9097    
9098    
9099    
9100    
9101    
9102    
9103    
9104    
9105    
9106    
9107    
9108    
9109    
9110    
9111    
9112    
9113    
9114    
9115    
9116    
9117    
9118  for ac_func in gethostname gettimeofday select socket strdup strtoul strerror inet_aton inet_ntoa uname recv send recvfrom sendto uname fork getpid sigaction sigprocmask sigaddset setpgid setpgrp ftime strcasecmp strncasecmp stricmp strnicmp chdir difftime strchr strrchr index rindex memcpy memset memmove bcopy wait waitpid pipe getenv ioctl setsid mktime poll gethostbyname getservbyname getlogin pow getpwnam getgrnam getuid getgid setuid setgid mkdir _mkdir strsep getopt kqueue setitimer epoll_create getrlimit vsnprintf _vsnprintf  for ac_func in gethostname gettimeofday select socket strdup strtoul strerror inet_aton inet_ntoa uname recv send recvfrom sendto uname fork getpid sigaction sigprocmask sigaddset setpgid setpgrp ftime strcasecmp strncasecmp stricmp strnicmp chdir difftime strchr strrchr index rindex memcpy memset memmove bcopy wait waitpid pipe getenv ioctl setsid mktime poll gethostbyname getservbyname getlogin pow getpwnam getgrnam getuid getgid setuid setgid mkdir _mkdir strsep getopt kqueue setitimer epoll_create getrlimit vsnprintf _vsnprintf
9119  do  do
9120  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9121  echo "configure:3569: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
9122  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9123    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_var+set}\" = set"; then
9124  else    echo $ECHO_N "(cached) $ECHO_C" >&6
9125    cat > conftest.$ac_ext <<EOF  else
9126  #line 3574 "configure"    cat >conftest.$ac_ext <<_ACEOF
9127  #include "confdefs.h"  /* confdefs.h.  */
9128    _ACEOF
9129    cat confdefs.h >>conftest.$ac_ext
9130    cat >>conftest.$ac_ext <<_ACEOF
9131    /* end confdefs.h.  */
9132    /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9133       For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9134    #define $ac_func innocuous_$ac_func
9135    
9136  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
9137      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func (); below.
9138  #include <assert.h>      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9139  /* Override any gcc2 internal prototype to avoid an error.  */      <limits.h> exists even on freestanding compilers.  */
 /* We use char because int might match the return type of a gcc2  
     builtin and then its argument prototype would still apply.  */  
 char $ac_func();  
9140    
9141  int main() {  #ifdef __STDC__
9142    # include <limits.h>
9143    #else
9144    # include <assert.h>
9145    #endif
9146    
9147    #undef $ac_func
9148    
9149    /* Override any gcc2 internal prototype to avoid an error.  */
9150    #ifdef __cplusplus
9151    extern "C"
9152    {
9153    #endif
9154    /* We use char because int might match the return type of a gcc2
9155       builtin and then its argument prototype would still apply.  */
9156    char $ac_func ();
9157  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
9158      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
9159      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
9160  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9161  choke me  choke me
9162  #else  #else
9163  $ac_func();  char (*f) () = $ac_func;
9164    #endif
9165    #ifdef __cplusplus
9166    }
9167  #endif  #endif
9168    
9169  ; return 0; }  int
9170  EOF  main ()
9171  if { (eval echo configure:3597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
9172    rm -rf conftest*  return f != $ac_func;
9173    eval "ac_cv_func_$ac_func=yes"    ;
9174  else    return 0;
9175    echo "configure: failed program was:" >&5  }
9176    cat conftest.$ac_ext >&5  _ACEOF
9177    rm -rf conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
9178    eval "ac_cv_func_$ac_func=no"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9179  fi    (eval $ac_link) 2>conftest.er1
9180  rm -f conftest*    ac_status=$?
9181  fi    grep -v '^ *+' conftest.er1 >conftest.err
9182      rm -f conftest.er1
9183      cat conftest.err >&5
9184      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185      (exit $ac_status); } &&
9186             { ac_try='test -z "$ac_c_werror_flag"
9187                             || test ! -s conftest.err'
9188      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189      (eval $ac_try) 2>&5
9190      ac_status=$?
9191      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192      (exit $ac_status); }; } &&
9193             { ac_try='test -s conftest$ac_exeext'
9194      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195      (eval $ac_try) 2>&5
9196      ac_status=$?
9197      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198      (exit $ac_status); }; }; then
9199      eval "$as_ac_var=yes"
9200    else
9201      echo "$as_me: failed program was:" >&5
9202    sed 's/^/| /' conftest.$ac_ext >&5
9203    
9204    eval "$as_ac_var=no"
9205    fi
9206    rm -f conftest.err conftest.$ac_objext \
9207          conftest$ac_exeext conftest.$ac_ext
9208    fi
9209    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9210    echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9211    if test `eval echo '${'$as_ac_var'}'` = yes; then
9212      cat >>confdefs.h <<_ACEOF
9213    #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9214    _ACEOF
9215    
 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`  
   cat >> confdefs.h <<EOF  
 #define $ac_tr_func 1  
 EOF  
   
 else  
   echo "$ac_t""no" 1>&6  
9216  fi  fi
9217  done  done
9218    
# Line 3637  fi Line 9236  fi
9236    
9237    
9238    
9239  trap '' 1 2 15            ac_config_files="$ac_config_files Makefile"
9240  cat > confcache <<\EOF  cat >confcache <<\_ACEOF
9241  # This file is a shell script that caches the results of configure  # This file is a shell script that caches the results of configure
9242  # tests run on this system so they can be shared between configure  # tests run on this system so they can be shared between configure
9243  # scripts and configure runs.  It is not useful on other systems.  # scripts and configure runs, see configure's option --config-cache.
9244  # If it contains results you don't want to keep, you may remove or edit it.  # It is not useful on other systems.  If it contains results you don't
9245    # want to keep, you may remove or edit it.
9246  #  #
9247  # By default, configure uses ./config.cache as the cache file,  # config.status only pays attention to the cache file if you give it
9248  # creating it if it does not exist already.  You can give configure  # the --recheck option to rerun configure.
 # the --cache-file=FILE option to use a different cache file; that is  
 # what configure does when it calls configure scripts in  
 # subdirectories, so they share the cache.  
 # Giving --cache-file=/dev/null disables caching, for debugging configure.  
 # config.status only pays attention to the cache file if you give it the  
 # --recheck option to rerun configure.  
9249  #  #
9250  EOF  # `ac_cv_env_foo' variables (set or unset) will be overridden when
9251    # loading this file, other *unset* `ac_cv_foo' will be assigned the
9252    # following values.
9253    
9254    _ACEOF
9255    
9256  # The following way of writing the cache mishandles newlines in values,  # The following way of writing the cache mishandles newlines in values,
9257  # but we know of no workaround that is simple, portable, and efficient.  # but we know of no workaround that is simple, portable, and efficient.
9258  # So, don't put newlines in cache variables' values.  # So, don't put newlines in cache variables' values.
9259  # Ultrix sh set writes to stderr and can't be redirected directly,  # Ultrix sh set writes to stderr and can't be redirected directly,
9260  # and sets the high bit in the cache file unless we assign to the vars.  # and sets the high bit in the cache file unless we assign to the vars.
9261  (set) 2>&1 |  {
9262    case `(ac_space=' '; set | grep ac_space) 2>&1` in    (set) 2>&1 |
9263    *ac_space=\ *)      case `(ac_space=' '; set | grep ac_space) 2>&1` in
9264      # `set' does not quote correctly, so add quotes (double-quote substitution      *ac_space=\ *)
9265      # turns \\\\ into \\, and sed turns \\ into \).        # `set' does not quote correctly, so add quotes (double-quote
9266      sed -n \        # substitution turns \\\\ into \\, and sed turns \\ into \).
9267        -e "s/'/'\\\\''/g" \        sed -n \
9268        -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"          "s/'/'\\\\''/g;
9269      ;;            s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9270    *)        ;;
9271      # `set' quotes correctly as required by POSIX, so do not add quotes.      *)
9272      sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'        # `set' quotes correctly as required by POSIX, so do not add quotes.
9273      ;;        sed -n \
9274    esac >> confcache          "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9275  if cmp -s $cache_file confcache; then        ;;
9276    :      esac;
9277  else  } |
9278      sed '
9279         t clear
9280         : clear
9281         s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9282         t end
9283         /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9284         : end' >>confcache
9285    if diff $cache_file confcache >/dev/null 2>&1; then :; else
9286    if test -w $cache_file; then    if test -w $cache_file; then
9287      echo "updating cache $cache_file"      test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9288      cat confcache > $cache_file      cat confcache >$cache_file
9289    else    else
9290      echo "not updating unwritable cache $cache_file"      echo "not updating unwritable cache $cache_file"
9291    fi    fi
9292  fi  fi
9293  rm -f confcache  rm -f confcache
9294    
 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15  
   
9295  test "x$prefix" = xNONE && prefix=$ac_default_prefix  test "x$prefix" = xNONE && prefix=$ac_default_prefix
9296  # Let make expand exec_prefix.  # Let make expand exec_prefix.
9297  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9298    
9299  # Any assignment to VPATH causes Sun make to only execute  # VPATH may cause trouble with some makes, so we remove $(srcdir),
9300  # the first set of double-colon rules, so remove it if not needed.  # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9301  # If there is a colon in the path, we need to keep it.  # trailing colons and then remove the whole line if VPATH becomes empty
9302    # (actually we leave an empty line to preserve line numbers).
9303  if test "x$srcdir" = x.; then  if test "x$srcdir" = x.; then
9304    ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'    ac_vpsub='/^[  ]*VPATH[        ]*=/{
9305    s/:*\$(srcdir):*/:/;
9306    s/:*\${srcdir}:*/:/;
9307    s/:*@srcdir@:*/:/;
9308    s/^\([^=]*=[     ]*\):*/\1/;
9309    s/:*$//;
9310    s/^[^=]*=[       ]*$//;
9311    }'
9312  fi  fi
9313    
 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15  
   
9314  DEFS=-DHAVE_CONFIG_H  DEFS=-DHAVE_CONFIG_H
9315    
9316  # Without the "./", some shells look in PATH for config.status.  ac_libobjs=
9317  : ${CONFIG_STATUS=./config.status}  ac_ltlibobjs=
9318    for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9319      # 1. Remove the extension, and $U if already installed.
9320      ac_i=`echo "$ac_i" |
9321             sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9322      # 2. Add them.
9323      ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9324      ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9325    done
9326    LIBOBJS=$ac_libobjs
9327    
9328  echo creating $CONFIG_STATUS  LTLIBOBJS=$ac_ltlibobjs
9329  rm -f $CONFIG_STATUS  
9330  cat > $CONFIG_STATUS <<EOF  
9331  #! /bin/sh  
9332  # Generated automatically by configure.  : ${CONFIG_STATUS=./config.status}
9333    ac_clean_files_save=$ac_clean_files
9334    ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9335    { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9336    echo "$as_me: creating $CONFIG_STATUS" >&6;}
9337    cat >$CONFIG_STATUS <<_ACEOF
9338    #! $SHELL
9339    # Generated by $as_me.
9340  # Run this file to recreate the current configuration.  # Run this file to recreate the current configuration.
 # This directory was configured as follows,  
 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:  
 #  
 # $0 $ac_configure_args  
 #  
9341  # Compiler output produced by configure, useful for debugging  # Compiler output produced by configure, useful for debugging
9342  # configure, is in ./config.log if it exists.  # configure, is in config.log if it exists.
9343    
9344  ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"  debug=false
9345  for ac_option  ac_cs_recheck=false
9346    ac_cs_silent=false
9347    SHELL=\${CONFIG_SHELL-$SHELL}
9348    _ACEOF
9349    
9350    cat >>$CONFIG_STATUS <<\_ACEOF
9351    ## --------------------- ##
9352    ## M4sh Initialization.  ##
9353    ## --------------------- ##
9354    
9355    # Be Bourne compatible
9356    if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9357      emulate sh
9358      NULLCMD=:
9359      # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9360      # is contrary to our usage.  Disable this feature.
9361      alias -g '${1+"$@"}'='"$@"'
9362    elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9363      set -o posix
9364    fi
9365    DUALCASE=1; export DUALCASE # for MKS sh
9366    
9367    # Support unset when possible.
9368    if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9369      as_unset=unset
9370    else
9371      as_unset=false
9372    fi
9373    
9374    
9375    # Work around bugs in pre-3.0 UWIN ksh.
9376    $as_unset ENV MAIL MAILPATH
9377    PS1='$ '
9378    PS2='> '
9379    PS4='+ '
9380    
9381    # NLS nuisances.
9382    for as_var in \
9383      LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9384      LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9385      LC_TELEPHONE LC_TIME
9386  do  do
9387    case "\$ac_option" in    if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9388    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)      eval $as_var=C; export $as_var
9389      echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"    else
9390      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;      $as_unset $as_var
9391    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)    fi
9392      echo "$CONFIG_STATUS generated by autoconf version 2.13"  done
9393      exit 0 ;;  
9394    -help | --help | --hel | --he | --h)  # Required to use basename.
9395      echo "\$ac_cs_usage"; exit 0 ;;  if expr a : '\(a\)' >/dev/null 2>&1; then
9396    *) echo "\$ac_cs_usage"; exit 1 ;;    as_expr=expr
9397    else
9398      as_expr=false
9399    fi
9400    
9401    if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9402      as_basename=basename
9403    else
9404      as_basename=false
9405    fi
9406    
9407    
9408    # Name of the executable.
9409    as_me=`$as_basename "$0" ||
9410    $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9411             X"$0" : 'X\(//\)$' \| \
9412             X"$0" : 'X\(/\)$' \| \
9413             .     : '\(.\)' 2>/dev/null ||
9414    echo X/"$0" |
9415        sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9416              /^X\/\(\/\/\)$/{ s//\1/; q; }
9417              /^X\/\(\/\).*/{ s//\1/; q; }
9418              s/.*/./; q'`
9419    
9420    
9421    # PATH needs CR, and LINENO needs CR and PATH.
9422    # Avoid depending upon Character Ranges.
9423    as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9424    as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9425    as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9426    as_cr_digits='0123456789'
9427    as_cr_alnum=$as_cr_Letters$as_cr_digits
9428    
9429    # The user is always right.
9430    if test "${PATH_SEPARATOR+set}" != set; then
9431      echo "#! /bin/sh" >conf$$.sh
9432      echo  "exit 0"   >>conf$$.sh
9433      chmod +x conf$$.sh
9434      if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9435        PATH_SEPARATOR=';'
9436      else
9437        PATH_SEPARATOR=:
9438      fi
9439      rm -f conf$$.sh
9440    fi
9441    
9442    
9443      as_lineno_1=$LINENO
9444      as_lineno_2=$LINENO
9445      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9446      test "x$as_lineno_1" != "x$as_lineno_2" &&
9447      test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9448      # Find who we are.  Look in the path if we contain no path at all
9449      # relative or not.
9450      case $0 in
9451        *[\\/]* ) as_myself=$0 ;;
9452        *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9453    for as_dir in $PATH
9454    do
9455      IFS=$as_save_IFS
9456      test -z "$as_dir" && as_dir=.
9457      test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9458    done
9459    
9460           ;;
9461    esac    esac
9462      # We did not find ourselves, most probably we were run as `sh COMMAND'
9463      # in which case we are not to be found in the path.
9464      if test "x$as_myself" = x; then
9465        as_myself=$0
9466      fi
9467      if test ! -f "$as_myself"; then
9468        { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9469    echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9470       { (exit 1); exit 1; }; }
9471      fi
9472      case $CONFIG_SHELL in
9473      '')
9474        as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9475    for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9476    do
9477      IFS=$as_save_IFS
9478      test -z "$as_dir" && as_dir=.
9479      for as_base in sh bash ksh sh5; do
9480             case $as_dir in
9481             /*)
9482               if ("$as_dir/$as_base" -c '
9483      as_lineno_1=$LINENO
9484      as_lineno_2=$LINENO
9485      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9486      test "x$as_lineno_1" != "x$as_lineno_2" &&
9487      test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9488                 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9489                 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9490                 CONFIG_SHELL=$as_dir/$as_base
9491                 export CONFIG_SHELL
9492                 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9493               fi;;
9494             esac
9495           done
9496  done  done
9497    ;;
9498      esac
9499    
9500  ac_given_srcdir=$srcdir    # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9501  ac_given_INSTALL="$INSTALL"    # uniformly replaced by the line number.  The first 'sed' inserts a
9502      # line-number line before each line; the second 'sed' does the real
9503      # work.  The second script uses 'N' to pair each line-number line
9504      # with the numbered line, and appends trailing '-' during
9505      # substitution so that $LINENO is not a special case at line end.
9506      # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9507      # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9508      sed '=' <$as_myself |
9509        sed '
9510          N
9511          s,$,-,
9512          : loop
9513          s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9514          t loop
9515          s,-$,,
9516          s,^['$as_cr_digits']*\n,,
9517        ' >$as_me.lineno &&
9518      chmod +x $as_me.lineno ||
9519        { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9520    echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9521       { (exit 1); exit 1; }; }
9522    
9523      # Don't try to exec as it changes $[0], causing all sort of problems
9524      # (the dirname of $[0] is not the place where we might find the
9525      # original and so on.  Autoconf is especially sensible to this).
9526      . ./$as_me.lineno
9527      # Exit status is that of the last command.
9528      exit
9529    }
9530    
 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15  
 EOF  
 cat >> $CONFIG_STATUS <<EOF  
   
 # Protect against being on the right side of a sed subst in config.status.  
 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;  
  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF  
 $ac_vpsub  
 $extrasub  
 s%@SHELL@%$SHELL%g  
 s%@CFLAGS@%$CFLAGS%g  
 s%@CPPFLAGS@%$CPPFLAGS%g  
 s%@CXXFLAGS@%$CXXFLAGS%g  
 s%@FFLAGS@%$FFLAGS%g  
 s%@DEFS@%$DEFS%g  
 s%@LDFLAGS@%$LDFLAGS%g  
 s%@LIBS@%$LIBS%g  
 s%@exec_prefix@%$exec_prefix%g  
 s%@prefix@%$prefix%g  
 s%@program_transform_name@%$program_transform_name%g  
 s%@bindir@%$bindir%g  
 s%@sbindir@%$sbindir%g  
 s%@libexecdir@%$libexecdir%g  
 s%@datadir@%$datadir%g  
 s%@sysconfdir@%$sysconfdir%g  
 s%@sharedstatedir@%$sharedstatedir%g  
 s%@localstatedir@%$localstatedir%g  
 s%@libdir@%$libdir%g  
 s%@includedir@%$includedir%g  
 s%@oldincludedir@%$oldincludedir%g  
 s%@infodir@%$infodir%g  
 s%@mandir@%$mandir%g  
 s%@host@%$host%g  
 s%@host_alias@%$host_alias%g  
 s%@host_cpu@%$host_cpu%g  
 s%@host_vendor@%$host_vendor%g  
 s%@host_os@%$host_os%g  
 s%@target@%$target%g  
 s%@target_alias@%$target_alias%g  
 s%@target_cpu@%$target_cpu%g  
 s%@target_vendor@%$target_vendor%g  
 s%@target_os@%$target_os%g  
 s%@build@%$build%g  
 s%@build_alias@%$build_alias%g  
 s%@build_cpu@%$build_cpu%g  
 s%@build_vendor@%$build_vendor%g  
 s%@build_os@%$build_os%g  
 s%@CC@%$CC%g  
 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g  
 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g  
 s%@INSTALL_DATA@%$INSTALL_DATA%g  
 s%@CPP@%$CPP%g  
 s%@DEFINES@%$DEFINES%g  
 s%@enable_bnetd@%$enable_bnetd%g  
 s%@enable_d2cs@%$enable_d2cs%g  
 s%@enable_d2dbs@%$enable_d2dbs%g  
 s%@COMPILEANSI1@%$COMPILEANSI1%g  
 s%@COMPILEANSI2@%$COMPILEANSI2%g  
 s%@COMPILEANSI3@%$COMPILEANSI3%g  
 s%@ANSI2KNR_TMP@%$ANSI2KNR_TMP%g  
 s%@ANSI2KNR_DEP@%$ANSI2KNR_DEP%g  
9531    
9532  CEOF  case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9533  EOF    *c*,-n*) ECHO_N= ECHO_C='
9534    ' ECHO_T='      ' ;;
9535      *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9536      *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9537    esac
9538    
9539  cat >> $CONFIG_STATUS <<\EOF  if expr a : '\(a\)' >/dev/null 2>&1; then
9540      as_expr=expr
9541    else
9542      as_expr=false
9543    fi
9544    
9545  # Split the substitutions into bite-sized pieces for seds with  rm -f conf$$ conf$$.exe conf$$.file
9546  # small command number limits, like on Digital OSF/1 and HP-UX.  echo >conf$$.file
9547  ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.  if ln -s conf$$.file conf$$ 2>/dev/null; then
9548  ac_file=1 # Number of current file.    # We could just check for DJGPP; but this test a) works b) is more generic
9549  ac_beg=1 # First line for current file.    # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9550  ac_end=$ac_max_sed_cmds # Line after last line for current file.    if test -f conf$$.exe; then
9551  ac_more_lines=:      # Don't use ln at all; we don't have any links
9552  ac_sed_cmds=""      as_ln_s='cp -p'
 while $ac_more_lines; do  
   if test $ac_beg -gt 1; then  
     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file  
   else  
     sed "${ac_end}q" conftest.subs > conftest.s$ac_file  
   fi  
   if test ! -s conftest.s$ac_file; then  
     ac_more_lines=false  
     rm -f conftest.s$ac_file  
9553    else    else
9554      if test -z "$ac_sed_cmds"; then      as_ln_s='ln -s'
       ac_sed_cmds="sed -f conftest.s$ac_file"  
     else  
       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"  
     fi  
     ac_file=`expr $ac_file + 1`  
     ac_beg=$ac_end  
     ac_end=`expr $ac_end + $ac_max_sed_cmds`  
9555    fi    fi
9556  done  elif ln conf$$.file conf$$ 2>/dev/null; then
9557  if test -z "$ac_sed_cmds"; then    as_ln_s=ln
9558    ac_sed_cmds=cat  else
9559      as_ln_s='cp -p'
9560  fi  fi
9561  EOF  rm -f conf$$ conf$$.exe conf$$.file
9562    
9563  cat >> $CONFIG_STATUS <<EOF  if mkdir -p . 2>/dev/null; then
9564      as_mkdir_p=:
9565    else
9566      test -d ./-p && rmdir ./-p
9567      as_mkdir_p=false
9568    fi
9569    
9570  CONFIG_FILES=\${CONFIG_FILES-"Makefile"}  as_executable_p="test -f"
9571  EOF  
9572  cat >> $CONFIG_STATUS <<\EOF  # Sed expression to map a string onto a valid CPP name.
9573  for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then  as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9574    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".  
9575    case "$ac_file" in  # Sed expression to map a string onto a valid variable name.
9576    *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`  as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9577         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;  
9578    *) ac_file_in="${ac_file}.in" ;;  
9579    # IFS
9580    # We need space, tab and new line, in precisely that order.
9581    as_nl='
9582    '
9583    IFS="   $as_nl"
9584    
9585    # CDPATH.
9586    $as_unset CDPATH
9587    
9588    exec 6>&1
9589    
9590    # Open the log real soon, to keep \$[0] and so on meaningful, and to
9591    # report actual input values of CONFIG_FILES etc. instead of their
9592    # values after options handling.  Logging --version etc. is OK.
9593    exec 5>>config.log
9594    {
9595      echo
9596      sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9597    ## Running $as_me. ##
9598    _ASBOX
9599    } >&5
9600    cat >&5 <<_CSEOF
9601    
9602    This file was extended by $as_me, which was
9603    generated by GNU Autoconf 2.59.  Invocation command line was
9604    
9605      CONFIG_FILES    = $CONFIG_FILES
9606      CONFIG_HEADERS  = $CONFIG_HEADERS
9607      CONFIG_LINKS    = $CONFIG_LINKS
9608      CONFIG_COMMANDS = $CONFIG_COMMANDS
9609      $ $0 $@
9610    
9611    _CSEOF
9612    echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9613    echo >&5
9614    _ACEOF
9615    
9616    # Files that config.status was made for.
9617    if test -n "$ac_config_files"; then
9618      echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9619    fi
9620    
9621    if test -n "$ac_config_headers"; then
9622      echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9623    fi
9624    
9625    if test -n "$ac_config_links"; then
9626      echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9627    fi
9628    
9629    if test -n "$ac_config_commands"; then
9630      echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9631    fi
9632    
9633    cat >>$CONFIG_STATUS <<\_ACEOF
9634    
9635    ac_cs_usage="\
9636    \`$as_me' instantiates files from templates according to the
9637    current configuration.
9638    
9639    Usage: $0 [OPTIONS] [FILE]...
9640    
9641      -h, --help       print this help, then exit
9642      -V, --version    print version number, then exit
9643      -q, --quiet      do not print progress messages
9644      -d, --debug      don't remove temporary files
9645          --recheck    update $as_me by reconfiguring in the same conditions
9646      --file=FILE[:TEMPLATE]
9647                       instantiate the configuration file FILE
9648      --header=FILE[:TEMPLATE]
9649                       instantiate the configuration header FILE
9650    
9651    Configuration files:
9652    $config_files
9653    
9654    Configuration headers:
9655    $config_headers
9656    
9657    Report bugs to <bug-autoconf@gnu.org>."
9658    _ACEOF
9659    
9660    cat >>$CONFIG_STATUS <<_ACEOF
9661    ac_cs_version="\\
9662    config.status
9663    configured by $0, generated by GNU Autoconf 2.59,
9664      with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9665    
9666    Copyright (C) 2003 Free Software Foundation, Inc.
9667    This config.status script is free software; the Free Software Foundation
9668    gives unlimited permission to copy, distribute and modify it."
9669    srcdir=$srcdir
9670    INSTALL="$INSTALL"
9671    _ACEOF
9672    
9673    cat >>$CONFIG_STATUS <<\_ACEOF
9674    # If no file are specified by the user, then we need to provide default
9675    # value.  By we need to know if files were specified by the user.
9676    ac_need_defaults=:
9677    while test $# != 0
9678    do
9679      case $1 in
9680      --*=*)
9681        ac_option=`expr "x$1" : 'x\([^=]*\)='`
9682        ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9683        ac_shift=:
9684        ;;
9685      -*)
9686        ac_option=$1
9687        ac_optarg=$2
9688        ac_shift=shift
9689        ;;
9690      *) # This is not an option, so the user has probably given explicit
9691         # arguments.
9692         ac_option=$1
9693         ac_need_defaults=false;;
9694    esac    esac
9695    
9696    # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.    case $ac_option in
9697      # Handling of the options.
9698    _ACEOF
9699    cat >>$CONFIG_STATUS <<\_ACEOF
9700      -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9701        ac_cs_recheck=: ;;
9702      --version | --vers* | -V )
9703        echo "$ac_cs_version"; exit 0 ;;
9704      --he | --h)
9705        # Conflict between --help and --header
9706        { { echo "$as_me:$LINENO: error: ambiguous option: $1
9707    Try \`$0 --help' for more information." >&5
9708    echo "$as_me: error: ambiguous option: $1
9709    Try \`$0 --help' for more information." >&2;}
9710       { (exit 1); exit 1; }; };;
9711      --help | --hel | -h )
9712        echo "$ac_cs_usage"; exit 0 ;;
9713      --debug | --d* | -d )
9714        debug=: ;;
9715      --file | --fil | --fi | --f )
9716        $ac_shift
9717        CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9718        ac_need_defaults=false;;
9719      --header | --heade | --head | --hea )
9720        $ac_shift
9721        CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9722        ac_need_defaults=false;;
9723      -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9724      | -silent | --silent | --silen | --sile | --sil | --si | --s)
9725        ac_cs_silent=: ;;
9726    
9727    # Remove last slash and all that follows it.  Not all systems have dirname.    # This is an error.
9728    ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`    -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9729    if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then  Try \`$0 --help' for more information." >&5
9730      # The file is in a subdirectory.  echo "$as_me: error: unrecognized option: $1
9731      test ! -d "$ac_dir" && mkdir "$ac_dir"  Try \`$0 --help' for more information." >&2;}
9732      ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"     { (exit 1); exit 1; }; } ;;
9733      # A "../" for each directory in $ac_dir_suffix.  
9734      ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`    *) ac_config_targets="$ac_config_targets $1" ;;
9735    else  
9736      ac_dir_suffix= ac_dots=    esac
9737    fi    shift
9738    done
9739    case "$ac_given_srcdir" in  
9740    .)  srcdir=.  ac_configure_extra_args=
9741        if test -z "$ac_dots"; then top_srcdir=.  
9742        else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;  if $ac_cs_silent; then
9743    /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;    exec 6>/dev/null
9744    *) # Relative path.    ac_configure_extra_args="$ac_configure_extra_args --silent"
9745      srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"  fi
9746      top_srcdir="$ac_dots$ac_given_srcdir" ;;  
9747    _ACEOF
9748    cat >>$CONFIG_STATUS <<_ACEOF
9749    if \$ac_cs_recheck; then
9750      echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9751      exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9752    fi
9753    
9754    _ACEOF
9755    
9756    
9757    
9758    
9759    
9760    cat >>$CONFIG_STATUS <<\_ACEOF
9761    for ac_config_target in $ac_config_targets
9762    do
9763      case "$ac_config_target" in
9764      # Handling of arguments.
9765      "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9766      "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9767      *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9768    echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9769       { (exit 1); exit 1; }; };;
9770    esac    esac
9771    done
9772    
9773    # If the user did not use the arguments to specify the items to instantiate,
9774    # then the envvar interface is used.  Set only those that are not.
9775    # We use the long form for the default assignment because of an extremely
9776    # bizarre bug on SunOS 4.1.3.
9777    if $ac_need_defaults; then
9778      test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9779      test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9780    fi
9781    
9782    # Have a temporary directory for convenience.  Make it in the build tree
9783    # simply because there is no reason to put it here, and in addition,
9784    # creating and moving files from /tmp can sometimes cause problems.
9785    # Create a temporary directory, and hook for its removal unless debugging.
9786    $debug ||
9787    {
9788      trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9789      trap '{ (exit 1); exit 1; }' 1 2 13 15
9790    }
9791    
9792    # Create a (secure) tmp directory for tmp files.
9793    
9794    {
9795      tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9796      test -n "$tmp" && test -d "$tmp"
9797    }  ||
9798    {
9799      tmp=./confstat$$-$RANDOM
9800      (umask 077 && mkdir $tmp)
9801    } ||
9802    {
9803       echo "$me: cannot create a temporary directory in ." >&2
9804       { (exit 1); exit 1; }
9805    }
9806    
9807    _ACEOF
9808    
9809    cat >>$CONFIG_STATUS <<_ACEOF
9810    
9811    #
9812    # CONFIG_FILES section.
9813    #
9814    
9815    # No need to generate the scripts if there are no CONFIG_FILES.
9816    # This happens for instance when ./config.status config.h
9817    if test -n "\$CONFIG_FILES"; then
9818      # Protect against being on the right side of a sed subst in config.status.
9819      sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9820       s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9821    s,@SHELL@,$SHELL,;t t
9822    s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9823    s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9824    s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9825    s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9826    s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9827    s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9828    s,@exec_prefix@,$exec_prefix,;t t
9829    s,@prefix@,$prefix,;t t
9830    s,@program_transform_name@,$program_transform_name,;t t
9831    s,@bindir@,$bindir,;t t
9832    s,@sbindir@,$sbindir,;t t
9833    s,@libexecdir@,$libexecdir,;t t
9834    s,@datadir@,$datadir,;t t
9835    s,@sysconfdir@,$sysconfdir,;t t
9836    s,@sharedstatedir@,$sharedstatedir,;t t
9837    s,@localstatedir@,$localstatedir,;t t
9838    s,@libdir@,$libdir,;t t
9839    s,@includedir@,$includedir,;t t
9840    s,@oldincludedir@,$oldincludedir,;t t
9841    s,@infodir@,$infodir,;t t
9842    s,@mandir@,$mandir,;t t
9843    s,@build_alias@,$build_alias,;t t
9844    s,@host_alias@,$host_alias,;t t
9845    s,@target_alias@,$target_alias,;t t
9846    s,@DEFS@,$DEFS,;t t
9847    s,@ECHO_C@,$ECHO_C,;t t
9848    s,@ECHO_N@,$ECHO_N,;t t
9849    s,@ECHO_T@,$ECHO_T,;t t
9850    s,@LIBS@,$LIBS,;t t
9851    s,@build@,$build,;t t
9852    s,@build_cpu@,$build_cpu,;t t
9853    s,@build_vendor@,$build_vendor,;t t
9854    s,@build_os@,$build_os,;t t
9855    s,@host@,$host,;t t
9856    s,@host_cpu@,$host_cpu,;t t
9857    s,@host_vendor@,$host_vendor,;t t
9858    s,@host_os@,$host_os,;t t
9859    s,@target@,$target,;t t
9860    s,@target_cpu@,$target_cpu,;t t
9861    s,@target_vendor@,$target_vendor,;t t
9862    s,@target_os@,$target_os,;t t
9863    s,@CC@,$CC,;t t
9864    s,@CFLAGS@,$CFLAGS,;t t
9865    s,@LDFLAGS@,$LDFLAGS,;t t
9866    s,@CPPFLAGS@,$CPPFLAGS,;t t
9867    s,@ac_ct_CC@,$ac_ct_CC,;t t
9868    s,@EXEEXT@,$EXEEXT,;t t
9869    s,@OBJEXT@,$OBJEXT,;t t
9870    s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9871    s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9872    s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9873    s,@CPP@,$CPP,;t t
9874    s,@EGREP@,$EGREP,;t t
9875    s,@DEFINES@,$DEFINES,;t t
9876    s,@enable_bnetd@,$enable_bnetd,;t t
9877    s,@enable_d2cs@,$enable_d2cs,;t t
9878    s,@enable_d2dbs@,$enable_d2dbs,;t t
9879    s,@COMPILEANSI1@,$COMPILEANSI1,;t t
9880    s,@COMPILEANSI2@,$COMPILEANSI2,;t t
9881    s,@COMPILEANSI3@,$COMPILEANSI3,;t t
9882    s,@ANSI2KNR_TMP@,$ANSI2KNR_TMP,;t t
9883    s,@ANSI2KNR_DEP@,$ANSI2KNR_DEP,;t t
9884    s,@LIBOBJS@,$LIBOBJS,;t t
9885    s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9886    CEOF
9887    
9888    _ACEOF
9889    
9890      cat >>$CONFIG_STATUS <<\_ACEOF
9891      # Split the substitutions into bite-sized pieces for seds with
9892      # small command number limits, like on Digital OSF/1 and HP-UX.
9893      ac_max_sed_lines=48
9894      ac_sed_frag=1 # Number of current file.
9895      ac_beg=1 # First line for current file.
9896      ac_end=$ac_max_sed_lines # Line after last line for current file.
9897      ac_more_lines=:
9898      ac_sed_cmds=
9899      while $ac_more_lines; do
9900        if test $ac_beg -gt 1; then
9901          sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9902        else
9903          sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9904        fi
9905        if test ! -s $tmp/subs.frag; then
9906          ac_more_lines=false
9907        else
9908          # The purpose of the label and of the branching condition is to
9909          # speed up the sed processing (if there are no `@' at all, there
9910          # is no need to browse any of the substitutions).
9911          # These are the two extra sed commands mentioned above.
9912          (echo ':t
9913      /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9914          if test -z "$ac_sed_cmds"; then
9915            ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9916          else
9917            ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9918          fi
9919          ac_sed_frag=`expr $ac_sed_frag + 1`
9920          ac_beg=$ac_end
9921          ac_end=`expr $ac_end + $ac_max_sed_lines`
9922        fi
9923      done
9924      if test -z "$ac_sed_cmds"; then
9925        ac_sed_cmds=cat
9926      fi
9927    fi # test -n "$CONFIG_FILES"
9928    
9929    case "$ac_given_INSTALL" in  _ACEOF
9930    [/$]*) INSTALL="$ac_given_INSTALL" ;;  cat >>$CONFIG_STATUS <<\_ACEOF
9931    *) INSTALL="$ac_dots$ac_given_INSTALL" ;;  for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9932      # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9933      case $ac_file in
9934      - | *:- | *:-:* ) # input from stdin
9935            cat >$tmp/stdin
9936            ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9937            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9938      *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9939            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9940      * )   ac_file_in=$ac_file.in ;;
9941    esac    esac
9942    
9943    echo creating "$ac_file"    # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9944    rm -f "$ac_file"    ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9945    configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."  $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9946    case "$ac_file" in           X"$ac_file" : 'X\(//\)[^/]' \| \
9947    *Makefile*) ac_comsub="1i\\           X"$ac_file" : 'X\(//\)$' \| \
9948  # $configure_input" ;;           X"$ac_file" : 'X\(/\)' \| \
9949    *) ac_comsub= ;;           .     : '\(.\)' 2>/dev/null ||
9950    echo X"$ac_file" |
9951        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9952              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9953              /^X\(\/\/\)$/{ s//\1/; q; }
9954              /^X\(\/\).*/{ s//\1/; q; }
9955              s/.*/./; q'`
9956      { if $as_mkdir_p; then
9957        mkdir -p "$ac_dir"
9958      else
9959        as_dir="$ac_dir"
9960        as_dirs=
9961        while test ! -d "$as_dir"; do
9962          as_dirs="$as_dir $as_dirs"
9963          as_dir=`(dirname "$as_dir") 2>/dev/null ||
9964    $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9965             X"$as_dir" : 'X\(//\)[^/]' \| \
9966             X"$as_dir" : 'X\(//\)$' \| \
9967             X"$as_dir" : 'X\(/\)' \| \
9968             .     : '\(.\)' 2>/dev/null ||
9969    echo X"$as_dir" |
9970        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9971              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9972              /^X\(\/\/\)$/{ s//\1/; q; }
9973              /^X\(\/\).*/{ s//\1/; q; }
9974              s/.*/./; q'`
9975        done
9976        test ! -n "$as_dirs" || mkdir $as_dirs
9977      fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9978    echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9979       { (exit 1); exit 1; }; }; }
9980    
9981      ac_builddir=.
9982    
9983    if test "$ac_dir" != .; then
9984      ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9985      # A "../" for each directory in $ac_dir_suffix.
9986      ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9987    else
9988      ac_dir_suffix= ac_top_builddir=
9989    fi
9990    
9991    case $srcdir in
9992      .)  # No --srcdir option.  We are building in place.
9993        ac_srcdir=.
9994        if test -z "$ac_top_builddir"; then
9995           ac_top_srcdir=.
9996        else
9997           ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9998        fi ;;
9999      [\\/]* | ?:[\\/]* )  # Absolute path.
10000        ac_srcdir=$srcdir$ac_dir_suffix;
10001        ac_top_srcdir=$srcdir ;;
10002      *) # Relative path.
10003        ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10004        ac_top_srcdir=$ac_top_builddir$srcdir ;;
10005    esac
10006    
10007    # Do not use `cd foo && pwd` to compute absolute paths, because
10008    # the directories may not exist.
10009    case `pwd` in
10010    .) ac_abs_builddir="$ac_dir";;
10011    *)
10012      case "$ac_dir" in
10013      .) ac_abs_builddir=`pwd`;;
10014      [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10015      *) ac_abs_builddir=`pwd`/"$ac_dir";;
10016      esac;;
10017    esac
10018    case $ac_abs_builddir in
10019    .) ac_abs_top_builddir=${ac_top_builddir}.;;
10020    *)
10021      case ${ac_top_builddir}. in
10022      .) ac_abs_top_builddir=$ac_abs_builddir;;
10023      [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10024      *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10025      esac;;
10026    esac
10027    case $ac_abs_builddir in
10028    .) ac_abs_srcdir=$ac_srcdir;;
10029    *)
10030      case $ac_srcdir in
10031      .) ac_abs_srcdir=$ac_abs_builddir;;
10032      [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10033      *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10034      esac;;
10035    esac
10036    case $ac_abs_builddir in
10037    .) ac_abs_top_srcdir=$ac_top_srcdir;;
10038    *)
10039      case $ac_top_srcdir in
10040      .) ac_abs_top_srcdir=$ac_abs_builddir;;
10041      [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10042      *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10043      esac;;
10044    esac
10045    
10046    
10047      case $INSTALL in
10048      [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10049      *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10050    esac    esac
10051    
10052    ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`    if test x"$ac_file" != x-; then
10053    sed -e "$ac_comsub      { echo "$as_me:$LINENO: creating $ac_file" >&5
10054  s%@configure_input@%$configure_input%g  echo "$as_me: creating $ac_file" >&6;}
10055  s%@srcdir@%$srcdir%g      rm -f "$ac_file"
10056  s%@top_srcdir@%$top_srcdir%g    fi
10057  s%@INSTALL@%$INSTALL%g    # Let's still pretend it is `configure' which instantiates (i.e., don't
10058  " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file    # use $as_me), people would be surprised to read:
10059  fi; done    #    /* config.h.  Generated by config.status.  */
10060  rm -f conftest.s*    if test x"$ac_file" = x-; then
10061        configure_input=
10062      else
10063        configure_input="$ac_file.  "
10064      fi
10065      configure_input=$configure_input"Generated from `echo $ac_file_in |
10066                                         sed 's,.*/,,'` by configure."
10067    
10068      # First look for the input files in the build tree, otherwise in the
10069      # src tree.
10070      ac_file_inputs=`IFS=:
10071        for f in $ac_file_in; do
10072          case $f in
10073          -) echo $tmp/stdin ;;
10074          [\\/$]*)
10075             # Absolute (can't be DOS-style, as IFS=:)
10076             test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10077    echo "$as_me: error: cannot find input file: $f" >&2;}
10078       { (exit 1); exit 1; }; }
10079             echo "$f";;
10080          *) # Relative
10081             if test -f "$f"; then
10082               # Build tree
10083               echo "$f"
10084             elif test -f "$srcdir/$f"; then
10085               # Source tree
10086               echo "$srcdir/$f"
10087             else
10088               # /dev/null tree
10089               { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10090    echo "$as_me: error: cannot find input file: $f" >&2;}
10091       { (exit 1); exit 1; }; }
10092             fi;;
10093          esac
10094        done` || { (exit 1); exit 1; }
10095    _ACEOF
10096    cat >>$CONFIG_STATUS <<_ACEOF
10097      sed "$ac_vpsub
10098    $extrasub
10099    _ACEOF
10100    cat >>$CONFIG_STATUS <<\_ACEOF
10101    :t
10102    /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10103    s,@configure_input@,$configure_input,;t t
10104    s,@srcdir@,$ac_srcdir,;t t
10105    s,@abs_srcdir@,$ac_abs_srcdir,;t t
10106    s,@top_srcdir@,$ac_top_srcdir,;t t
10107    s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10108    s,@builddir@,$ac_builddir,;t t
10109    s,@abs_builddir@,$ac_abs_builddir,;t t
10110    s,@top_builddir@,$ac_top_builddir,;t t
10111    s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10112    s,@INSTALL@,$ac_INSTALL,;t t
10113    " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10114      rm -f $tmp/stdin
10115      if test x"$ac_file" != x-; then
10116        mv $tmp/out $ac_file
10117      else
10118        cat $tmp/out
10119        rm -f $tmp/out
10120      fi
10121    
10122    done
10123    _ACEOF
10124    cat >>$CONFIG_STATUS <<\_ACEOF
10125    
10126    #
10127    # CONFIG_HEADER section.
10128    #
10129    
10130  # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where  # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10131  # NAME is the cpp macro being defined and VALUE is the value it is being given.  # NAME is the cpp macro being defined and VALUE is the value it is being given.
10132  #  #
10133  # ac_d sets the value in "#define NAME VALUE" lines.  # ac_d sets the value in "#define NAME VALUE" lines.
10134  ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'  ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
10135  ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'  ac_dB='[         ].*$,\1#\2'
10136  ac_dC='\3'  ac_dC=' '
10137  ac_dD='%g'  ac_dD=',;t'
10138  # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".  # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10139  ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'  ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
10140  ac_uB='\([      ]\)%\1#\2define\3'  ac_uB='$,\1#\2define\3'
10141  ac_uC=' '  ac_uC=' '
10142  ac_uD='\4%g'  ac_uD=',;t'
10143  # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".  
10144  ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'  for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 ac_eB='$%\1#\2define\3'  
 ac_eC=' '  
 ac_eD='%g'  
   
 if test "${CONFIG_HEADERS+set}" != set; then  
 EOF  
 cat >> $CONFIG_STATUS <<EOF  
   CONFIG_HEADERS="config.h"  
 EOF  
 cat >> $CONFIG_STATUS <<\EOF  
 fi  
 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then  
10145    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10146    case "$ac_file" in    case $ac_file in
10147    *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`    - | *:- | *:-:* ) # input from stdin
10148         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;          cat >$tmp/stdin
10149    *) ac_file_in="${ac_file}.in" ;;          ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10150            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10151      *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10152            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10153      * )   ac_file_in=$ac_file.in ;;
10154    esac    esac
10155    
10156    echo creating $ac_file    test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10157    echo "$as_me: creating $ac_file" >&6;}
10158    
10159    rm -f conftest.frag conftest.in conftest.out    # First look for the input files in the build tree, otherwise in the
10160    ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`    # src tree.
10161    cat $ac_file_inputs > conftest.in    ac_file_inputs=`IFS=:
10162        for f in $ac_file_in; do
10163  EOF        case $f in
10164          -) echo $tmp/stdin ;;
10165  # Transform confdefs.h into a sed script conftest.vals that substitutes        [\\/$]*)
10166  # the proper values into config.h.in to produce config.h.  And first:           # Absolute (can't be DOS-style, as IFS=:)
10167  # Protect against being on the right side of a sed subst in config.status.           test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10168  # Protect against being in an unquoted here document in config.status.  echo "$as_me: error: cannot find input file: $f" >&2;}
10169  rm -f conftest.vals     { (exit 1); exit 1; }; }
10170  cat > conftest.hdr <<\EOF           # Do quote $f, to prevent DOS paths from being IFS'd.
10171  s/[\\&%]/\\&/g           echo "$f";;
10172  s%[\\$`]%\\&%g        *) # Relative
10173  s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp           if test -f "$f"; then
10174  s%ac_d%ac_u%gp             # Build tree
10175  s%ac_u%ac_e%gp             echo "$f"
10176  EOF           elif test -f "$srcdir/$f"; then
10177  sed -n -f conftest.hdr confdefs.h > conftest.vals             # Source tree
10178  rm -f conftest.hdr             echo "$srcdir/$f"
10179             else
10180               # /dev/null tree
10181               { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10182    echo "$as_me: error: cannot find input file: $f" >&2;}
10183       { (exit 1); exit 1; }; }
10184             fi;;
10185          esac
10186        done` || { (exit 1); exit 1; }
10187      # Remove the trailing spaces.
10188      sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
10189    
10190    _ACEOF
10191    
10192    # Transform confdefs.h into two sed scripts, `conftest.defines' and
10193    # `conftest.undefs', that substitutes the proper values into
10194    # config.h.in to produce config.h.  The first handles `#define'
10195    # templates, and the second `#undef' templates.
10196    # And first: Protect against being on the right side of a sed subst in
10197    # config.status.  Protect against being in an unquoted here document
10198    # in config.status.
10199    rm -f conftest.defines conftest.undefs
10200    # Using a here document instead of a string reduces the quoting nightmare.
10201    # Putting comments in sed scripts is not portable.
10202    #
10203    # `end' is used to avoid that the second main sed command (meant for
10204    # 0-ary CPP macros) applies to n-ary macro definitions.
10205    # See the Autoconf documentation for `clear'.
10206    cat >confdef2sed.sed <<\_ACEOF
10207    s/[\\&,]/\\&/g
10208    s,[\\$`],\\&,g
10209    t clear
10210    : clear
10211    s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10212    t end
10213    s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10214    : end
10215    _ACEOF
10216    # If some macros were called several times there might be several times
10217    # the same #defines, which is useless.  Nevertheless, we may not want to
10218    # sort them, since we want the *last* AC-DEFINE to be honored.
10219    uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10220    sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10221    rm -f confdef2sed.sed
10222    
10223  # This sed command replaces #undef with comments.  This is necessary, for  # This sed command replaces #undef with comments.  This is necessary, for
10224  # example, in the case of _POSIX_SOURCE, which is predefined and required  # example, in the case of _POSIX_SOURCE, which is predefined and required
10225  # on some systems where configure will not decide to define it.  # on some systems where configure will not decide to define it.
10226  cat >> conftest.vals <<\EOF  cat >>conftest.undefs <<\_ACEOF
10227  s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%  s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10228  EOF  _ACEOF
10229    
10230  # Break up conftest.vals because some shells have a limit on  # Break up conftest.defines because some shells have a limit on the size
10231  # the size of here documents, and old seds have small limits too.  # of here documents, and old seds have small limits too (100 cmds).
10232    echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10233    echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10234    echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10235    echo '  :' >>$CONFIG_STATUS
10236  rm -f conftest.tail  rm -f conftest.tail
10237  while :  while grep . conftest.defines >/dev/null
10238  do  do
10239    ac_lines=`grep -c . conftest.vals`    # Write a limited-size here document to $tmp/defines.sed.
10240    # grep -c gives empty output for an empty file on some AIX systems.    echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10241    if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi    # Speed up: don't consider the non `#define' lines.
10242    # Write a limited-size here document to conftest.frag.    echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
10243    echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS    # Work around the forget-to-reset-the-flag bug.
10244    sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS    echo 't clr' >>$CONFIG_STATUS
10245      echo ': clr' >>$CONFIG_STATUS
10246      sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10247    echo 'CEOF    echo 'CEOF
10248    sed -f conftest.frag conftest.in > conftest.out    sed -f $tmp/defines.sed $tmp/in >$tmp/out
10249    rm -f conftest.in    rm -f $tmp/in
10250    mv conftest.out conftest.in    mv $tmp/out $tmp/in
10251  ' >> $CONFIG_STATUS  ' >>$CONFIG_STATUS
10252    sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail    sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10253    rm -f conftest.vals    rm -f conftest.defines
10254    mv conftest.tail conftest.vals    mv conftest.tail conftest.defines
10255  done  done
10256  rm -f conftest.vals  rm -f conftest.defines
10257    echo '  fi # grep' >>$CONFIG_STATUS
10258  cat >> $CONFIG_STATUS <<\EOF  echo >>$CONFIG_STATUS
10259    rm -f conftest.frag conftest.h  
10260    echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h  # Break up conftest.undefs because some shells have a limit on the size
10261    cat conftest.in >> conftest.h  # of here documents, and old seds have small limits too (100 cmds).
10262    rm -f conftest.in  echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10263    if cmp -s $ac_file conftest.h 2>/dev/null; then  rm -f conftest.tail
10264      echo "$ac_file is unchanged"  while grep . conftest.undefs >/dev/null
10265      rm -f conftest.h  do
10266    else    # Write a limited-size here document to $tmp/undefs.sed.
10267      # Remove last slash and all that follows it.  Not all systems have dirname.    echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10268        ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`    # Speed up: don't consider the non `#undef'
10269        if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then    echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10270        # The file is in a subdirectory.    # Work around the forget-to-reset-the-flag bug.
10271        test ! -d "$ac_dir" && mkdir "$ac_dir"    echo 't clr' >>$CONFIG_STATUS
10272      fi    echo ': clr' >>$CONFIG_STATUS
10273      rm -f $ac_file    sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10274      mv conftest.h $ac_file    echo 'CEOF
10275      sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10276      rm -f $tmp/in
10277      mv $tmp/out $tmp/in
10278    ' >>$CONFIG_STATUS
10279      sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10280      rm -f conftest.undefs
10281      mv conftest.tail conftest.undefs
10282    done
10283    rm -f conftest.undefs
10284    
10285    cat >>$CONFIG_STATUS <<\_ACEOF
10286      # Let's still pretend it is `configure' which instantiates (i.e., don't
10287      # use $as_me), people would be surprised to read:
10288      #    /* config.h.  Generated by config.status.  */
10289      if test x"$ac_file" = x-; then
10290        echo "/* Generated by configure.  */" >$tmp/config.h
10291      else
10292        echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10293    fi    fi
10294  fi; done    cat $tmp/in >>$tmp/config.h
10295      rm -f $tmp/in
10296      if test x"$ac_file" != x-; then
10297        if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10298          { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10299    echo "$as_me: $ac_file is unchanged" >&6;}
10300        else
10301          ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10302    $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10303             X"$ac_file" : 'X\(//\)[^/]' \| \
10304             X"$ac_file" : 'X\(//\)$' \| \
10305             X"$ac_file" : 'X\(/\)' \| \
10306             .     : '\(.\)' 2>/dev/null ||
10307    echo X"$ac_file" |
10308        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10309              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10310              /^X\(\/\/\)$/{ s//\1/; q; }
10311              /^X\(\/\).*/{ s//\1/; q; }
10312              s/.*/./; q'`
10313          { if $as_mkdir_p; then
10314        mkdir -p "$ac_dir"
10315      else
10316        as_dir="$ac_dir"
10317        as_dirs=
10318        while test ! -d "$as_dir"; do
10319          as_dirs="$as_dir $as_dirs"
10320          as_dir=`(dirname "$as_dir") 2>/dev/null ||
10321    $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10322             X"$as_dir" : 'X\(//\)[^/]' \| \
10323             X"$as_dir" : 'X\(//\)$' \| \
10324             X"$as_dir" : 'X\(/\)' \| \
10325             .     : '\(.\)' 2>/dev/null ||
10326    echo X"$as_dir" |
10327        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10328              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10329              /^X\(\/\/\)$/{ s//\1/; q; }
10330              /^X\(\/\).*/{ s//\1/; q; }
10331              s/.*/./; q'`
10332        done
10333        test ! -n "$as_dirs" || mkdir $as_dirs
10334      fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10335    echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10336       { (exit 1); exit 1; }; }; }
10337    
10338  EOF        rm -f $ac_file
10339  cat >> $CONFIG_STATUS <<EOF        mv $tmp/config.h $ac_file
10340        fi
10341      else
10342        cat $tmp/config.h
10343        rm -f $tmp/config.h
10344      fi
10345    done
10346    _ACEOF
10347    
10348  EOF  cat >>$CONFIG_STATUS <<\_ACEOF
 cat >> $CONFIG_STATUS <<\EOF  
10349    
10350  exit 0  { (exit 0); exit 0; }
10351  EOF  _ACEOF
10352  chmod +x $CONFIG_STATUS  chmod +x $CONFIG_STATUS
10353  rm -fr confdefs* $ac_clean_files  ac_clean_files=$ac_clean_files_save
10354  test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1  
10355    
10356    # configure is writing to config.log, and then calls config.status.
10357    # config.status does its own redirection, appending to config.log.
10358    # Unfortunately, on DOS this fails, as config.log is still kept open
10359    # by configure, so config.status won't be able to write to it; its
10360    # output is simply discarded.  So we exec the FD to /dev/null,
10361    # effectively closing config.log, so it can be properly (re)opened and
10362    # appended to by config.status.  When coming back to configure, we
10363    # need to make the FD available again.
10364    if test "$no_create" != yes; then
10365      ac_cs_success=:
10366      ac_config_status_args=
10367      test "$silent" = yes &&
10368        ac_config_status_args="$ac_config_status_args --quiet"
10369      exec 5>/dev/null
10370      $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10371      exec 5>>config.log
10372      # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10373      # would make configure fail if this is the last instruction.
10374      $ac_cs_success || { (exit 1); exit 1; }
10375    fi
10376    
10377    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1