Author: Fredrik Soderblom <froo@quakenet.org> via hikari
[ircu2.10.12-pk.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 if expr a : '\(a\)' >/dev/null 2>&1; then
11   as_expr=expr
12 else
13   as_expr=false
14 fi
15
16
17 ## --------------------- ##
18 ## M4sh Initialization.  ##
19 ## --------------------- ##
20
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23   emulate sh
24   NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26   set -o posix
27 fi
28
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32   as_unset=unset
33 else
34   as_unset=false
35 fi
36
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38     { $as_unset LANG || test "${LANG+set}" != set; } ||
39       { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42       { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45       { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48       { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51       { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54       { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57       { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60       { LC_MESSAGES=C; export LC_MESSAGES; }
61
62
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66          X"$0" : 'X\(//\)$' \| \
67          X"$0" : 'X\(/\)$' \| \
68          .     : '\(.\)' 2>/dev/null ||
69 echo X/"$0" |
70     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71           /^X\/\(\/\/\)$/{ s//\1/; q; }
72           /^X\/\(\/\).*/{ s//\1/; q; }
73           s/.*/./; q'`
74
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85   echo "#! /bin/sh" >conftest.sh
86   echo  "exit 0"   >>conftest.sh
87   chmod +x conftest.sh
88   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89     PATH_SEPARATOR=';'
90   else
91     PATH_SEPARATOR=:
92   fi
93   rm -f conftest.sh
94 fi
95
96
97   as_lineno_1=$LINENO
98   as_lineno_2=$LINENO
99   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100   test "x$as_lineno_1" != "x$as_lineno_2" &&
101   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
102   # Find who we are.  Look in the path if we contain no path at all
103   # relative or not.
104   case $0 in
105     *[\\/]* ) as_myself=$0 ;;
106     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
108 do
109   IFS=$as_save_IFS
110   test -z "$as_dir" && as_dir=.
111   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
113
114        ;;
115   esac
116   # We did not find ourselves, most probably we were run as `sh COMMAND'
117   # in which case we are not to be found in the path.
118   if test "x$as_myself" = x; then
119     as_myself=$0
120   fi
121   if test ! -f "$as_myself"; then
122     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123    { (exit 1); exit 1; }; }
124   fi
125   case $CONFIG_SHELL in
126   '')
127     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
130   IFS=$as_save_IFS
131   test -z "$as_dir" && as_dir=.
132   for as_base in sh bash ksh sh5; do
133          case $as_dir in
134          /*)
135            if ("$as_dir/$as_base" -c '
136   as_lineno_1=$LINENO
137   as_lineno_2=$LINENO
138   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139   test "x$as_lineno_1" != "x$as_lineno_2" &&
140   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
141              CONFIG_SHELL=$as_dir/$as_base
142              export CONFIG_SHELL
143              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144            fi;;
145          esac
146        done
147 done
148 ;;
149   esac
150
151   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152   # uniformly replaced by the line number.  The first 'sed' inserts a
153   # line-number line before each line; the second 'sed' does the real
154   # work.  The second script uses 'N' to pair each line-number line
155   # with the numbered line, and appends trailing '-' during
156   # substitution so that $LINENO is not a special case at line end.
157   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
159   sed '=' <$as_myself |
160     sed '
161       N
162       s,$,-,
163       : loop
164       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165       t loop
166       s,-$,,
167       s,^['$as_cr_digits']*\n,,
168     ' >$as_me.lineno &&
169   chmod +x $as_me.lineno ||
170     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171    { (exit 1); exit 1; }; }
172
173   # Don't try to exec as it changes $[0], causing all sort of problems
174   # (the dirname of $[0] is not the place where we might find the
175   # original and so on.  Autoconf is especially sensible to this).
176   . ./$as_me.lineno
177   # Exit status is that of the last command.
178   exit
179 }
180
181
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183   *c*,-n*) ECHO_N= ECHO_C='
184 ' ECHO_T='      ' ;;
185   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
187 esac
188
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190   as_expr=expr
191 else
192   as_expr=false
193 fi
194
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198   # We could just check for DJGPP; but this test a) works b) is more generic
199   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200   if test -f conf$$.exe; then
201     # Don't use ln at all; we don't have any links
202     as_ln_s='cp -p'
203   else
204     as_ln_s='ln -s'
205   fi
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207   as_ln_s=ln
208 else
209   as_ln_s='cp -p'
210 fi
211 rm -f conf$$ conf$$.exe conf$$.file
212
213 as_executable_p="test -f"
214
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
225 '
226 IFS="   $as_nl"
227
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
231
232 # Name of the host.
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237 exec 6>&1
238
239 #
240 # Initializations.
241 #
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete.  It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
253
254 # Identity of this package.
255 PACKAGE_NAME=
256 PACKAGE_TARNAME=
257 PACKAGE_VERSION=
258 PACKAGE_STRING=
259 PACKAGE_BUGREPORT=
260
261 ac_unique_file="ircd/ircd.c"
262 ac_default_prefix=$HOME
263 # Factoring default headers for most tests.
264 ac_includes_default="\
265 #include <stdio.h>
266 #if HAVE_SYS_TYPES_H
267 # include <sys/types.h>
268 #endif
269 #if HAVE_SYS_STAT_H
270 # include <sys/stat.h>
271 #endif
272 #if STDC_HEADERS
273 # include <stdlib.h>
274 # include <stddef.h>
275 #else
276 # if HAVE_STDLIB_H
277 #  include <stdlib.h>
278 # endif
279 #endif
280 #if HAVE_STRING_H
281 # if !STDC_HEADERS && HAVE_MEMORY_H
282 #  include <memory.h>
283 # endif
284 # include <string.h>
285 #endif
286 #if HAVE_STRINGS_H
287 # include <strings.h>
288 #endif
289 #if HAVE_INTTYPES_H
290 # include <inttypes.h>
291 #else
292 # if HAVE_STDINT_H
293 #  include <stdint.h>
294 # endif
295 #endif
296 #if HAVE_UNISTD_H
297 # include <unistd.h>
298 #endif"
299
300 ac_subdirs_all="$ac_subdirs_all adns"
301
302 # Initialize some variables set by options.
303 ac_init_help=
304 ac_init_version=false
305 # The variables have the same names as the options, with
306 # dashes changed to underlines.
307 cache_file=/dev/null
308 exec_prefix=NONE
309 no_create=
310 no_recursion=
311 prefix=NONE
312 program_prefix=NONE
313 program_suffix=NONE
314 program_transform_name=s,x,x,
315 silent=
316 site=
317 srcdir=
318 verbose=
319 x_includes=NONE
320 x_libraries=NONE
321
322 # Installation directory options.
323 # These are left unexpanded so users can "make install exec_prefix=/foo"
324 # and all the variables that are supposed to be based on exec_prefix
325 # by default will actually change.
326 # Use braces instead of parens because sh, perl, etc. also accept them.
327 bindir='${exec_prefix}/bin'
328 sbindir='${exec_prefix}/sbin'
329 libexecdir='${exec_prefix}/libexec'
330 datadir='${prefix}/share'
331 sysconfdir='${prefix}/etc'
332 sharedstatedir='${prefix}/com'
333 localstatedir='${prefix}/var'
334 libdir='${exec_prefix}/lib'
335 includedir='${prefix}/include'
336 oldincludedir='/usr/include'
337 infodir='${prefix}/info'
338 mandir='${prefix}/man'
339
340 ac_prev=
341 for ac_option
342 do
343   # If the previous option needs an argument, assign it.
344   if test -n "$ac_prev"; then
345     eval "$ac_prev=\$ac_option"
346     ac_prev=
347     continue
348   fi
349
350   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
351
352   # Accept the important Cygnus configure options, so we can diagnose typos.
353
354   case $ac_option in
355
356   -bindir | --bindir | --bindi | --bind | --bin | --bi)
357     ac_prev=bindir ;;
358   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
359     bindir=$ac_optarg ;;
360
361   -build | --build | --buil | --bui | --bu)
362     ac_prev=build_alias ;;
363   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
364     build_alias=$ac_optarg ;;
365
366   -cache-file | --cache-file | --cache-fil | --cache-fi \
367   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
368     ac_prev=cache_file ;;
369   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
370   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
371     cache_file=$ac_optarg ;;
372
373   --config-cache | -C)
374     cache_file=config.cache ;;
375
376   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
377     ac_prev=datadir ;;
378   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
379   | --da=*)
380     datadir=$ac_optarg ;;
381
382   -disable-* | --disable-*)
383     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
384     # Reject names that are not valid shell variable names.
385     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
386       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
387    { (exit 1); exit 1; }; }
388     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
389     eval "enable_$ac_feature=no" ;;
390
391   -enable-* | --enable-*)
392     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
393     # Reject names that are not valid shell variable names.
394     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
395       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
396    { (exit 1); exit 1; }; }
397     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
398     case $ac_option in
399       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
400       *) ac_optarg=yes ;;
401     esac
402     eval "enable_$ac_feature='$ac_optarg'" ;;
403
404   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
405   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
406   | --exec | --exe | --ex)
407     ac_prev=exec_prefix ;;
408   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
409   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
410   | --exec=* | --exe=* | --ex=*)
411     exec_prefix=$ac_optarg ;;
412
413   -gas | --gas | --ga | --g)
414     # Obsolete; use --with-gas.
415     with_gas=yes ;;
416
417   -help | --help | --hel | --he | -h)
418     ac_init_help=long ;;
419   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
420     ac_init_help=recursive ;;
421   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
422     ac_init_help=short ;;
423
424   -host | --host | --hos | --ho)
425     ac_prev=host_alias ;;
426   -host=* | --host=* | --hos=* | --ho=*)
427     host_alias=$ac_optarg ;;
428
429   -includedir | --includedir | --includedi | --included | --include \
430   | --includ | --inclu | --incl | --inc)
431     ac_prev=includedir ;;
432   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
433   | --includ=* | --inclu=* | --incl=* | --inc=*)
434     includedir=$ac_optarg ;;
435
436   -infodir | --infodir | --infodi | --infod | --info | --inf)
437     ac_prev=infodir ;;
438   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
439     infodir=$ac_optarg ;;
440
441   -libdir | --libdir | --libdi | --libd)
442     ac_prev=libdir ;;
443   -libdir=* | --libdir=* | --libdi=* | --libd=*)
444     libdir=$ac_optarg ;;
445
446   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
447   | --libexe | --libex | --libe)
448     ac_prev=libexecdir ;;
449   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
450   | --libexe=* | --libex=* | --libe=*)
451     libexecdir=$ac_optarg ;;
452
453   -localstatedir | --localstatedir | --localstatedi | --localstated \
454   | --localstate | --localstat | --localsta | --localst \
455   | --locals | --local | --loca | --loc | --lo)
456     ac_prev=localstatedir ;;
457   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
458   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
459   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
460     localstatedir=$ac_optarg ;;
461
462   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
463     ac_prev=mandir ;;
464   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
465     mandir=$ac_optarg ;;
466
467   -nfp | --nfp | --nf)
468     # Obsolete; use --without-fp.
469     with_fp=no ;;
470
471   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
472   | --no-cr | --no-c | -n)
473     no_create=yes ;;
474
475   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
476   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
477     no_recursion=yes ;;
478
479   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
480   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
481   | --oldin | --oldi | --old | --ol | --o)
482     ac_prev=oldincludedir ;;
483   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
484   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
485   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
486     oldincludedir=$ac_optarg ;;
487
488   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
489     ac_prev=prefix ;;
490   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
491     prefix=$ac_optarg ;;
492
493   -program-prefix | --program-prefix | --program-prefi | --program-pref \
494   | --program-pre | --program-pr | --program-p)
495     ac_prev=program_prefix ;;
496   -program-prefix=* | --program-prefix=* | --program-prefi=* \
497   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
498     program_prefix=$ac_optarg ;;
499
500   -program-suffix | --program-suffix | --program-suffi | --program-suff \
501   | --program-suf | --program-su | --program-s)
502     ac_prev=program_suffix ;;
503   -program-suffix=* | --program-suffix=* | --program-suffi=* \
504   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
505     program_suffix=$ac_optarg ;;
506
507   -program-transform-name | --program-transform-name \
508   | --program-transform-nam | --program-transform-na \
509   | --program-transform-n | --program-transform- \
510   | --program-transform | --program-transfor \
511   | --program-transfo | --program-transf \
512   | --program-trans | --program-tran \
513   | --progr-tra | --program-tr | --program-t)
514     ac_prev=program_transform_name ;;
515   -program-transform-name=* | --program-transform-name=* \
516   | --program-transform-nam=* | --program-transform-na=* \
517   | --program-transform-n=* | --program-transform-=* \
518   | --program-transform=* | --program-transfor=* \
519   | --program-transfo=* | --program-transf=* \
520   | --program-trans=* | --program-tran=* \
521   | --progr-tra=* | --program-tr=* | --program-t=*)
522     program_transform_name=$ac_optarg ;;
523
524   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
525   | -silent | --silent | --silen | --sile | --sil)
526     silent=yes ;;
527
528   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
529     ac_prev=sbindir ;;
530   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
531   | --sbi=* | --sb=*)
532     sbindir=$ac_optarg ;;
533
534   -sharedstatedir | --sharedstatedir | --sharedstatedi \
535   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
536   | --sharedst | --shareds | --shared | --share | --shar \
537   | --sha | --sh)
538     ac_prev=sharedstatedir ;;
539   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
540   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
541   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
542   | --sha=* | --sh=*)
543     sharedstatedir=$ac_optarg ;;
544
545   -site | --site | --sit)
546     ac_prev=site ;;
547   -site=* | --site=* | --sit=*)
548     site=$ac_optarg ;;
549
550   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
551     ac_prev=srcdir ;;
552   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
553     srcdir=$ac_optarg ;;
554
555   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
556   | --syscon | --sysco | --sysc | --sys | --sy)
557     ac_prev=sysconfdir ;;
558   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
559   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
560     sysconfdir=$ac_optarg ;;
561
562   -target | --target | --targe | --targ | --tar | --ta | --t)
563     ac_prev=target_alias ;;
564   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
565     target_alias=$ac_optarg ;;
566
567   -v | -verbose | --verbose | --verbos | --verbo | --verb)
568     verbose=yes ;;
569
570   -version | --version | --versio | --versi | --vers | -V)
571     ac_init_version=: ;;
572
573   -with-* | --with-*)
574     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
575     # Reject names that are not valid shell variable names.
576     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
577       { echo "$as_me: error: invalid package name: $ac_package" >&2
578    { (exit 1); exit 1; }; }
579     ac_package=`echo $ac_package| sed 's/-/_/g'`
580     case $ac_option in
581       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582       *) ac_optarg=yes ;;
583     esac
584     eval "with_$ac_package='$ac_optarg'" ;;
585
586   -without-* | --without-*)
587     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package | sed 's/-/_/g'`
593     eval "with_$ac_package=no" ;;
594
595   --x)
596     # Obsolete; use --with-x.
597     with_x=yes ;;
598
599   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
600   | --x-incl | --x-inc | --x-in | --x-i)
601     ac_prev=x_includes ;;
602   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
603   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
604     x_includes=$ac_optarg ;;
605
606   -x-libraries | --x-libraries | --x-librarie | --x-librari \
607   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
608     ac_prev=x_libraries ;;
609   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
610   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
611     x_libraries=$ac_optarg ;;
612
613   -*) { echo "$as_me: error: unrecognized option: $ac_option
614 Try \`$0 --help' for more information." >&2
615    { (exit 1); exit 1; }; }
616     ;;
617
618   *=*)
619     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
620     # Reject names that are not valid shell variable names.
621     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
622       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
623    { (exit 1); exit 1; }; }
624     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
625     eval "$ac_envvar='$ac_optarg'"
626     export $ac_envvar ;;
627
628   *)
629     # FIXME: should be removed in autoconf 3.0.
630     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
631     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
632       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
633     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
634     ;;
635
636   esac
637 done
638
639 if test -n "$ac_prev"; then
640   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
641   { echo "$as_me: error: missing argument to $ac_option" >&2
642    { (exit 1); exit 1; }; }
643 fi
644
645 # Be sure to have absolute paths.
646 for ac_var in exec_prefix prefix
647 do
648   eval ac_val=$`echo $ac_var`
649   case $ac_val in
650     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
651     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
652    { (exit 1); exit 1; }; };;
653   esac
654 done
655
656 # Be sure to have absolute paths.
657 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
658               localstatedir libdir includedir oldincludedir infodir mandir
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # There might be people who depend on the old broken behavior: `$host'
669 # used to hold the argument of --host etc.
670 # FIXME: To remove some day.
671 build=$build_alias
672 host=$host_alias
673 target=$target_alias
674
675 # FIXME: To remove some day.
676 if test "x$host_alias" != x; then
677   if test "x$build_alias" = x; then
678     cross_compiling=maybe
679     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
680     If a cross compiler is detected then cross compile mode will be used." >&2
681   elif test "x$build_alias" != "x$host_alias"; then
682     cross_compiling=yes
683   fi
684 fi
685
686 ac_tool_prefix=
687 test -n "$host_alias" && ac_tool_prefix=$host_alias-
688
689 test "$silent" = yes && exec 6>/dev/null
690
691
692 # Find the source files, if location was not specified.
693 if test -z "$srcdir"; then
694   ac_srcdir_defaulted=yes
695   # Try the directory containing this script, then its parent.
696   ac_confdir=`(dirname "$0") 2>/dev/null ||
697 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
698          X"$0" : 'X\(//\)[^/]' \| \
699          X"$0" : 'X\(//\)$' \| \
700          X"$0" : 'X\(/\)' \| \
701          .     : '\(.\)' 2>/dev/null ||
702 echo X"$0" |
703     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
704           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
705           /^X\(\/\/\)$/{ s//\1/; q; }
706           /^X\(\/\).*/{ s//\1/; q; }
707           s/.*/./; q'`
708   srcdir=$ac_confdir
709   if test ! -r $srcdir/$ac_unique_file; then
710     srcdir=..
711   fi
712 else
713   ac_srcdir_defaulted=no
714 fi
715 if test ! -r $srcdir/$ac_unique_file; then
716   if test "$ac_srcdir_defaulted" = yes; then
717     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
718    { (exit 1); exit 1; }; }
719   else
720     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
721    { (exit 1); exit 1; }; }
722   fi
723 fi
724 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
725 ac_env_build_alias_set=${build_alias+set}
726 ac_env_build_alias_value=$build_alias
727 ac_cv_env_build_alias_set=${build_alias+set}
728 ac_cv_env_build_alias_value=$build_alias
729 ac_env_host_alias_set=${host_alias+set}
730 ac_env_host_alias_value=$host_alias
731 ac_cv_env_host_alias_set=${host_alias+set}
732 ac_cv_env_host_alias_value=$host_alias
733 ac_env_target_alias_set=${target_alias+set}
734 ac_env_target_alias_value=$target_alias
735 ac_cv_env_target_alias_set=${target_alias+set}
736 ac_cv_env_target_alias_value=$target_alias
737 ac_env_CC_set=${CC+set}
738 ac_env_CC_value=$CC
739 ac_cv_env_CC_set=${CC+set}
740 ac_cv_env_CC_value=$CC
741 ac_env_CFLAGS_set=${CFLAGS+set}
742 ac_env_CFLAGS_value=$CFLAGS
743 ac_cv_env_CFLAGS_set=${CFLAGS+set}
744 ac_cv_env_CFLAGS_value=$CFLAGS
745 ac_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_env_LDFLAGS_value=$LDFLAGS
747 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
748 ac_cv_env_LDFLAGS_value=$LDFLAGS
749 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_env_CPPFLAGS_value=$CPPFLAGS
751 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
752 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
753 ac_env_CPP_set=${CPP+set}
754 ac_env_CPP_value=$CPP
755 ac_cv_env_CPP_set=${CPP+set}
756 ac_cv_env_CPP_value=$CPP
757
758 #
759 # Report the --help message.
760 #
761 if test "$ac_init_help" = "long"; then
762   # Omit some internal or obsolete options to make the list less imposing.
763   # This message is too long to be a string in the A/UX 3.1 sh.
764   cat <<_ACEOF
765 \`configure' configures this package to adapt to many kinds of systems.
766
767 Usage: $0 [OPTION]... [VAR=VALUE]...
768
769 To assign environment variables (e.g., CC, CFLAGS...), specify them as
770 VAR=VALUE.  See below for descriptions of some of the useful variables.
771
772 Defaults for the options are specified in brackets.
773
774 Configuration:
775   -h, --help              display this help and exit
776       --help=short        display options specific to this package
777       --help=recursive    display the short help of all the included packages
778   -V, --version           display version information and exit
779   -q, --quiet, --silent   do not print \`checking...' messages
780       --cache-file=FILE   cache test results in FILE [disabled]
781   -C, --config-cache      alias for \`--cache-file=config.cache'
782   -n, --no-create         do not create output files
783       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
784
785 _ACEOF
786
787   cat <<_ACEOF
788 Installation directories:
789   --prefix=PREFIX         install architecture-independent files in PREFIX
790                           [$ac_default_prefix]
791   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
792                           [PREFIX]
793
794 By default, \`make install' will install all the files in
795 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
796 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
797 for instance \`--prefix=\$HOME'.
798
799 For better control, use the options below.
800
801 Fine tuning of the installation directories:
802   --bindir=DIR           user executables [EPREFIX/bin]
803   --sbindir=DIR          system admin executables [EPREFIX/sbin]
804   --libexecdir=DIR       program executables [EPREFIX/libexec]
805   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
806   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
807   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
808   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
809   --libdir=DIR           object code libraries [EPREFIX/lib]
810   --includedir=DIR       C header files [PREFIX/include]
811   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
812   --infodir=DIR          info documentation [PREFIX/info]
813   --mandir=DIR           man documentation [PREFIX/man]
814 _ACEOF
815
816   cat <<\_ACEOF
817
818 System types:
819   --build=BUILD     configure for building on BUILD [guessed]
820   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
821 _ACEOF
822 fi
823
824 if test -n "$ac_init_help"; then
825
826   cat <<\_ACEOF
827
828 Optional Features:
829   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
830   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
831   --enable-poll           Force poll to be used regardless of whether or not
832                           it is a system call
833   --enable-debug          Turn on debugging mode
834   --disable-asserts       Disable assertion checking
835   --disable-symbols       Disable debugging symbols (remove -g from CFLAGS)
836   --enable-profile        Enable profiling support (add -pg to CFLAGS)
837   --enable-pedantic       Enable pedantic warnings (add -pedantic to CFLAGS)
838   --enable-warnings       Enable warnings (add -Wall to CFLAGS)
839   --disable-inlines       Disable inlining for a few critical functions
840   --disable-devpoll       Disable the /dev/poll-based engine
841   --disable-kqueue        Disable the kqueue-based engine
842   --disable-adns          Disable adns resolver
843
844 Optional Packages:
845   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
846   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
847   --with-leak-detect          Turn on the leak detector(requires patched boehm)
848   --with-symlink=name     Name to give the symlink; if name is "no," no
849                           symlink will be created.
850   --with-mode=mode        Permissions (in octal) to give the binary
851   --with-owner=owner      Specify owner of the installed binary
852   --with-group=group      Specify group owner of the installed binary
853   --with-domain=domain    Domain name to use in local statistics gathering
854   --with-chroot=dir       Specify that the server will be operated under
855                           a different root directory given by dir.  See
856                           doc/readme.chroot for more information.
857   --with-dpath=dir        Directory for all server data files
858   --with-cpath=file       Set server configuration file
859   --with-lpath=file       Set the debugging log file
860   --with-maxcon=maxcon    Maximum number of connections server will accept
861
862 Some influential environment variables:
863   CC          C compiler command
864   CFLAGS      C compiler flags
865   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
866               nonstandard directory <lib dir>
867   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
868               headers in a nonstandard directory <include dir>
869   CPP         C preprocessor
870
871 Use these variables to override the choices made by `configure' or to help
872 it to find libraries and programs with nonstandard names/locations.
873
874 _ACEOF
875 fi
876
877 if test "$ac_init_help" = "recursive"; then
878   # If there are subdirs, report their specific --help.
879   ac_popdir=`pwd`
880   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
881     test -d $ac_dir || continue
882     ac_builddir=.
883
884 if test "$ac_dir" != .; then
885   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
886   # A "../" for each directory in $ac_dir_suffix.
887   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
888 else
889   ac_dir_suffix= ac_top_builddir=
890 fi
891
892 case $srcdir in
893   .)  # No --srcdir option.  We are building in place.
894     ac_srcdir=.
895     if test -z "$ac_top_builddir"; then
896        ac_top_srcdir=.
897     else
898        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
899     fi ;;
900   [\\/]* | ?:[\\/]* )  # Absolute path.
901     ac_srcdir=$srcdir$ac_dir_suffix;
902     ac_top_srcdir=$srcdir ;;
903   *) # Relative path.
904     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
905     ac_top_srcdir=$ac_top_builddir$srcdir ;;
906 esac
907 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
908 # absolute.
909 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
910 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
911 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
912 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
913
914     cd $ac_dir
915     # Check for guested configure; otherwise get Cygnus style configure.
916     if test -f $ac_srcdir/configure.gnu; then
917       echo
918       $SHELL $ac_srcdir/configure.gnu  --help=recursive
919     elif test -f $ac_srcdir/configure; then
920       echo
921       $SHELL $ac_srcdir/configure  --help=recursive
922     elif test -f $ac_srcdir/configure.ac ||
923            test -f $ac_srcdir/configure.in; then
924       echo
925       $ac_configure --help
926     else
927       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
928     fi
929     cd $ac_popdir
930   done
931 fi
932
933 test -n "$ac_init_help" && exit 0
934 if $ac_init_version; then
935   cat <<\_ACEOF
936
937 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
938 Free Software Foundation, Inc.
939 This configure script is free software; the Free Software Foundation
940 gives unlimited permission to copy, distribute and modify it.
941 _ACEOF
942   exit 0
943 fi
944 exec 5>config.log
945 cat >&5 <<_ACEOF
946 This file contains any messages produced by compilers while
947 running configure, to aid debugging if configure makes a mistake.
948
949 It was created by $as_me, which was
950 generated by GNU Autoconf 2.53.  Invocation command line was
951
952   $ $0 $@
953
954 _ACEOF
955 {
956 cat <<_ASUNAME
957 ## --------- ##
958 ## Platform. ##
959 ## --------- ##
960
961 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
962 uname -m = `(uname -m) 2>/dev/null || echo unknown`
963 uname -r = `(uname -r) 2>/dev/null || echo unknown`
964 uname -s = `(uname -s) 2>/dev/null || echo unknown`
965 uname -v = `(uname -v) 2>/dev/null || echo unknown`
966
967 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
968 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
969
970 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
971 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
972 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
973 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
974 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
975 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
976 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
977
978 _ASUNAME
979
980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
981 for as_dir in $PATH
982 do
983   IFS=$as_save_IFS
984   test -z "$as_dir" && as_dir=.
985   echo "PATH: $as_dir"
986 done
987
988 } >&5
989
990 cat >&5 <<_ACEOF
991
992
993 ## ----------- ##
994 ## Core tests. ##
995 ## ----------- ##
996
997 _ACEOF
998
999
1000 # Keep a trace of the command line.
1001 # Strip out --no-create and --no-recursion so they do not pile up.
1002 # Also quote any args containing shell meta-characters.
1003 ac_configure_args=
1004 ac_sep=
1005 for ac_arg
1006 do
1007   case $ac_arg in
1008   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009   | --no-cr | --no-c | -n ) continue ;;
1010   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012     continue ;;
1013   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1014     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1015   esac
1016   case " $ac_configure_args " in
1017     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1018     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1019        ac_sep=" " ;;
1020   esac
1021   # Get rid of the leading space.
1022 done
1023
1024 # When interrupted or exit'd, cleanup temporary files, and complete
1025 # config.log.  We remove comments because anyway the quotes in there
1026 # would cause problems or look ugly.
1027 # WARNING: Be sure not to use single quotes in there, as some shells,
1028 # such as our DU 5.0 friend, will then `close' the trap.
1029 trap 'exit_status=$?
1030   # Save into config.log some information that might help in debugging.
1031   {
1032     echo
1033     cat <<\_ASBOX
1034 ## ---------------- ##
1035 ## Cache variables. ##
1036 ## ---------------- ##
1037 _ASBOX
1038     echo
1039     # The following way of writing the cache mishandles newlines in values,
1040 {
1041   (set) 2>&1 |
1042     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1043     *ac_space=\ *)
1044       sed -n \
1045         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1046           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1047       ;;
1048     *)
1049       sed -n \
1050         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1051       ;;
1052     esac;
1053 }
1054     echo
1055     if test -s confdefs.h; then
1056       cat <<\_ASBOX
1057 ## ----------- ##
1058 ## confdefs.h. ##
1059 ## ----------- ##
1060 _ASBOX
1061       echo
1062       sed "/^$/d" confdefs.h
1063       echo
1064     fi
1065     test "$ac_signal" != 0 &&
1066       echo "$as_me: caught signal $ac_signal"
1067     echo "$as_me: exit $exit_status"
1068   } >&5
1069   rm -f core core.* *.core &&
1070   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1071     exit $exit_status
1072      ' 0
1073 for ac_signal in 1 2 13 15; do
1074   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1075 done
1076 ac_signal=0
1077
1078 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1079 rm -rf conftest* confdefs.h
1080 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1081 echo >confdefs.h
1082
1083 # Predefined preprocessor variables.
1084
1085 cat >>confdefs.h <<_ACEOF
1086 #define PACKAGE_NAME "$PACKAGE_NAME"
1087 _ACEOF
1088
1089
1090 cat >>confdefs.h <<_ACEOF
1091 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1092 _ACEOF
1093
1094
1095 cat >>confdefs.h <<_ACEOF
1096 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1097 _ACEOF
1098
1099
1100 cat >>confdefs.h <<_ACEOF
1101 #define PACKAGE_STRING "$PACKAGE_STRING"
1102 _ACEOF
1103
1104
1105 cat >>confdefs.h <<_ACEOF
1106 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1107 _ACEOF
1108
1109
1110 # Let the site file select an alternate cache file if it wants to.
1111 # Prefer explicitly selected file to automatically selected ones.
1112 if test -z "$CONFIG_SITE"; then
1113   if test "x$prefix" != xNONE; then
1114     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1115   else
1116     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1117   fi
1118 fi
1119 for ac_site_file in $CONFIG_SITE; do
1120   if test -r "$ac_site_file"; then
1121     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1122 echo "$as_me: loading site script $ac_site_file" >&6;}
1123     sed 's/^/| /' "$ac_site_file" >&5
1124     . "$ac_site_file"
1125   fi
1126 done
1127
1128 if test -r "$cache_file"; then
1129   # Some versions of bash will fail to source /dev/null (special
1130   # files actually), so we avoid doing that.
1131   if test -f "$cache_file"; then
1132     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1133 echo "$as_me: loading cache $cache_file" >&6;}
1134     case $cache_file in
1135       [\\/]* | ?:[\\/]* ) . $cache_file;;
1136       *)                      . ./$cache_file;;
1137     esac
1138   fi
1139 else
1140   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1141 echo "$as_me: creating cache $cache_file" >&6;}
1142   >$cache_file
1143 fi
1144
1145 # Check that the precious variables saved in the cache have kept the same
1146 # value.
1147 ac_cache_corrupted=false
1148 for ac_var in `(set) 2>&1 |
1149                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1150   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1151   eval ac_new_set=\$ac_env_${ac_var}_set
1152   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1153   eval ac_new_val="\$ac_env_${ac_var}_value"
1154   case $ac_old_set,$ac_new_set in
1155     set,)
1156       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1157 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1158       ac_cache_corrupted=: ;;
1159     ,set)
1160       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1161 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1162       ac_cache_corrupted=: ;;
1163     ,);;
1164     *)
1165       if test "x$ac_old_val" != "x$ac_new_val"; then
1166         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1167 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1168         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1169 echo "$as_me:   former value:  $ac_old_val" >&2;}
1170         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1171 echo "$as_me:   current value: $ac_new_val" >&2;}
1172         ac_cache_corrupted=:
1173       fi;;
1174   esac
1175   # Pass precious variables to config.status.
1176   if test "$ac_new_set" = set; then
1177     case $ac_new_val in
1178     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1179       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1180     *) ac_arg=$ac_var=$ac_new_val ;;
1181     esac
1182     case " $ac_configure_args " in
1183       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1184       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1185     esac
1186   fi
1187 done
1188 if $ac_cache_corrupted; then
1189   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1190 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1191   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1192 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1193    { (exit 1); exit 1; }; }
1194 fi
1195
1196 ac_ext=c
1197 ac_cpp='$CPP $CPPFLAGS'
1198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221 echo "$as_me:$LINENO: checking for installation prefix" >&5
1222 echo $ECHO_N "checking for installation prefix... $ECHO_C" >&6
1223 if test "${unet_cv_prefix+set}" = set; then
1224   echo $ECHO_N "(cached) $ECHO_C" >&6
1225 else
1226   unet_cv_prefix=$HOME
1227 fi
1228
1229 if test x"$prefix" != xNONE; then
1230     unet_cv_prefix=$prefix
1231 fi
1232 echo "$as_me:$LINENO: result: $unet_cv_prefix" >&5
1233 echo "${ECHO_T}$unet_cv_prefix" >&6
1234 ac_default_prefix=$unet_cv_prefix
1235
1236 ac_config_headers="$ac_config_headers config.h"
1237
1238
1239
1240
1241 ac_aux_dir=
1242 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1243   if test -f $ac_dir/install-sh; then
1244     ac_aux_dir=$ac_dir
1245     ac_install_sh="$ac_aux_dir/install-sh -c"
1246     break
1247   elif test -f $ac_dir/install.sh; then
1248     ac_aux_dir=$ac_dir
1249     ac_install_sh="$ac_aux_dir/install.sh -c"
1250     break
1251   elif test -f $ac_dir/shtool; then
1252     ac_aux_dir=$ac_dir
1253     ac_install_sh="$ac_aux_dir/shtool install -c"
1254     break
1255   fi
1256 done
1257 if test -z "$ac_aux_dir"; then
1258   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1259 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1260    { (exit 1); exit 1; }; }
1261 fi
1262 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1263 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1264 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1265
1266 # Make sure we can run config.sub.
1267 $ac_config_sub sun4 >/dev/null 2>&1 ||
1268   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1269 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1270    { (exit 1); exit 1; }; }
1271
1272 echo "$as_me:$LINENO: checking build system type" >&5
1273 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1274 if test "${ac_cv_build+set}" = set; then
1275   echo $ECHO_N "(cached) $ECHO_C" >&6
1276 else
1277   ac_cv_build_alias=$build_alias
1278 test -z "$ac_cv_build_alias" &&
1279   ac_cv_build_alias=`$ac_config_guess`
1280 test -z "$ac_cv_build_alias" &&
1281   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1282 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1283    { (exit 1); exit 1; }; }
1284 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1285   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1286 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1287    { (exit 1); exit 1; }; }
1288
1289 fi
1290 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1291 echo "${ECHO_T}$ac_cv_build" >&6
1292 build=$ac_cv_build
1293 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1294 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1295 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1296
1297 test -z "$build_alias" &&
1298   build_alias=$ac_cv_build
1299
1300 echo "$as_me:$LINENO: checking host system type" >&5
1301 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1302 if test "${ac_cv_host+set}" = set; then
1303   echo $ECHO_N "(cached) $ECHO_C" >&6
1304 else
1305   ac_cv_host_alias=$host_alias
1306 test -z "$ac_cv_host_alias" &&
1307   ac_cv_host_alias=$ac_cv_build_alias
1308 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1309   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1310 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1311    { (exit 1); exit 1; }; }
1312
1313 fi
1314 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1315 echo "${ECHO_T}$ac_cv_host" >&6
1316 host=$ac_cv_host
1317 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1318 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1319 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1320
1321 test -z "$host_alias" &&
1322   host_alias=$ac_cv_host
1323
1324
1325 ac_ext=c
1326 ac_cpp='$CPP $CPPFLAGS'
1327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1330 if test -n "$ac_tool_prefix"; then
1331   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1332 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1333 echo "$as_me:$LINENO: checking for $ac_word" >&5
1334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1335 if test "${ac_cv_prog_CC+set}" = set; then
1336   echo $ECHO_N "(cached) $ECHO_C" >&6
1337 else
1338   if test -n "$CC"; then
1339   ac_cv_prog_CC="$CC" # Let the user override the test.
1340 else
1341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1342 for as_dir in $PATH
1343 do
1344   IFS=$as_save_IFS
1345   test -z "$as_dir" && as_dir=.
1346   for ac_exec_ext in '' $ac_executable_extensions; do
1347   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1348     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1349     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1350     break 2
1351   fi
1352 done
1353 done
1354
1355 fi
1356 fi
1357 CC=$ac_cv_prog_CC
1358 if test -n "$CC"; then
1359   echo "$as_me:$LINENO: result: $CC" >&5
1360 echo "${ECHO_T}$CC" >&6
1361 else
1362   echo "$as_me:$LINENO: result: no" >&5
1363 echo "${ECHO_T}no" >&6
1364 fi
1365
1366 fi
1367 if test -z "$ac_cv_prog_CC"; then
1368   ac_ct_CC=$CC
1369   # Extract the first word of "gcc", so it can be a program name with args.
1370 set dummy gcc; ac_word=$2
1371 echo "$as_me:$LINENO: checking for $ac_word" >&5
1372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1373 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1374   echo $ECHO_N "(cached) $ECHO_C" >&6
1375 else
1376   if test -n "$ac_ct_CC"; then
1377   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1378 else
1379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1380 for as_dir in $PATH
1381 do
1382   IFS=$as_save_IFS
1383   test -z "$as_dir" && as_dir=.
1384   for ac_exec_ext in '' $ac_executable_extensions; do
1385   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1386     ac_cv_prog_ac_ct_CC="gcc"
1387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1388     break 2
1389   fi
1390 done
1391 done
1392
1393 fi
1394 fi
1395 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1396 if test -n "$ac_ct_CC"; then
1397   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1398 echo "${ECHO_T}$ac_ct_CC" >&6
1399 else
1400   echo "$as_me:$LINENO: result: no" >&5
1401 echo "${ECHO_T}no" >&6
1402 fi
1403
1404   CC=$ac_ct_CC
1405 else
1406   CC="$ac_cv_prog_CC"
1407 fi
1408
1409 if test -z "$CC"; then
1410   if test -n "$ac_tool_prefix"; then
1411   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1412 set dummy ${ac_tool_prefix}cc; ac_word=$2
1413 echo "$as_me:$LINENO: checking for $ac_word" >&5
1414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1415 if test "${ac_cv_prog_CC+set}" = set; then
1416   echo $ECHO_N "(cached) $ECHO_C" >&6
1417 else
1418   if test -n "$CC"; then
1419   ac_cv_prog_CC="$CC" # Let the user override the test.
1420 else
1421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1422 for as_dir in $PATH
1423 do
1424   IFS=$as_save_IFS
1425   test -z "$as_dir" && as_dir=.
1426   for ac_exec_ext in '' $ac_executable_extensions; do
1427   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1428     ac_cv_prog_CC="${ac_tool_prefix}cc"
1429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1430     break 2
1431   fi
1432 done
1433 done
1434
1435 fi
1436 fi
1437 CC=$ac_cv_prog_CC
1438 if test -n "$CC"; then
1439   echo "$as_me:$LINENO: result: $CC" >&5
1440 echo "${ECHO_T}$CC" >&6
1441 else
1442   echo "$as_me:$LINENO: result: no" >&5
1443 echo "${ECHO_T}no" >&6
1444 fi
1445
1446 fi
1447 if test -z "$ac_cv_prog_CC"; then
1448   ac_ct_CC=$CC
1449   # Extract the first word of "cc", so it can be a program name with args.
1450 set dummy cc; ac_word=$2
1451 echo "$as_me:$LINENO: checking for $ac_word" >&5
1452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1453 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1454   echo $ECHO_N "(cached) $ECHO_C" >&6
1455 else
1456   if test -n "$ac_ct_CC"; then
1457   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1458 else
1459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1460 for as_dir in $PATH
1461 do
1462   IFS=$as_save_IFS
1463   test -z "$as_dir" && as_dir=.
1464   for ac_exec_ext in '' $ac_executable_extensions; do
1465   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1466     ac_cv_prog_ac_ct_CC="cc"
1467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1468     break 2
1469   fi
1470 done
1471 done
1472
1473 fi
1474 fi
1475 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1476 if test -n "$ac_ct_CC"; then
1477   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1478 echo "${ECHO_T}$ac_ct_CC" >&6
1479 else
1480   echo "$as_me:$LINENO: result: no" >&5
1481 echo "${ECHO_T}no" >&6
1482 fi
1483
1484   CC=$ac_ct_CC
1485 else
1486   CC="$ac_cv_prog_CC"
1487 fi
1488
1489 fi
1490 if test -z "$CC"; then
1491   # Extract the first word of "cc", so it can be a program name with args.
1492 set dummy cc; ac_word=$2
1493 echo "$as_me:$LINENO: checking for $ac_word" >&5
1494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1495 if test "${ac_cv_prog_CC+set}" = set; then
1496   echo $ECHO_N "(cached) $ECHO_C" >&6
1497 else
1498   if test -n "$CC"; then
1499   ac_cv_prog_CC="$CC" # Let the user override the test.
1500 else
1501   ac_prog_rejected=no
1502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1503 for as_dir in $PATH
1504 do
1505   IFS=$as_save_IFS
1506   test -z "$as_dir" && as_dir=.
1507   for ac_exec_ext in '' $ac_executable_extensions; do
1508   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1509     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1510        ac_prog_rejected=yes
1511        continue
1512      fi
1513     ac_cv_prog_CC="cc"
1514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1515     break 2
1516   fi
1517 done
1518 done
1519
1520 if test $ac_prog_rejected = yes; then
1521   # We found a bogon in the path, so make sure we never use it.
1522   set dummy $ac_cv_prog_CC
1523   shift
1524   if test $# != 0; then
1525     # We chose a different compiler from the bogus one.
1526     # However, it has the same basename, so the bogon will be chosen
1527     # first if we set CC to just the basename; use the full file name.
1528     shift
1529     set dummy "$as_dir/$ac_word" ${1+"$@"}
1530     shift
1531     ac_cv_prog_CC="$@"
1532   fi
1533 fi
1534 fi
1535 fi
1536 CC=$ac_cv_prog_CC
1537 if test -n "$CC"; then
1538   echo "$as_me:$LINENO: result: $CC" >&5
1539 echo "${ECHO_T}$CC" >&6
1540 else
1541   echo "$as_me:$LINENO: result: no" >&5
1542 echo "${ECHO_T}no" >&6
1543 fi
1544
1545 fi
1546 if test -z "$CC"; then
1547   if test -n "$ac_tool_prefix"; then
1548   for ac_prog in cl
1549   do
1550     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1551 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1552 echo "$as_me:$LINENO: checking for $ac_word" >&5
1553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1554 if test "${ac_cv_prog_CC+set}" = set; then
1555   echo $ECHO_N "(cached) $ECHO_C" >&6
1556 else
1557   if test -n "$CC"; then
1558   ac_cv_prog_CC="$CC" # Let the user override the test.
1559 else
1560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561 for as_dir in $PATH
1562 do
1563   IFS=$as_save_IFS
1564   test -z "$as_dir" && as_dir=.
1565   for ac_exec_ext in '' $ac_executable_extensions; do
1566   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1567     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1569     break 2
1570   fi
1571 done
1572 done
1573
1574 fi
1575 fi
1576 CC=$ac_cv_prog_CC
1577 if test -n "$CC"; then
1578   echo "$as_me:$LINENO: result: $CC" >&5
1579 echo "${ECHO_T}$CC" >&6
1580 else
1581   echo "$as_me:$LINENO: result: no" >&5
1582 echo "${ECHO_T}no" >&6
1583 fi
1584
1585     test -n "$CC" && break
1586   done
1587 fi
1588 if test -z "$CC"; then
1589   ac_ct_CC=$CC
1590   for ac_prog in cl
1591 do
1592   # Extract the first word of "$ac_prog", so it can be a program name with args.
1593 set dummy $ac_prog; ac_word=$2
1594 echo "$as_me:$LINENO: checking for $ac_word" >&5
1595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1597   echo $ECHO_N "(cached) $ECHO_C" >&6
1598 else
1599   if test -n "$ac_ct_CC"; then
1600   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1601 else
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 for as_dir in $PATH
1604 do
1605   IFS=$as_save_IFS
1606   test -z "$as_dir" && as_dir=.
1607   for ac_exec_ext in '' $ac_executable_extensions; do
1608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609     ac_cv_prog_ac_ct_CC="$ac_prog"
1610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1611     break 2
1612   fi
1613 done
1614 done
1615
1616 fi
1617 fi
1618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1619 if test -n "$ac_ct_CC"; then
1620   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1621 echo "${ECHO_T}$ac_ct_CC" >&6
1622 else
1623   echo "$as_me:$LINENO: result: no" >&5
1624 echo "${ECHO_T}no" >&6
1625 fi
1626
1627   test -n "$ac_ct_CC" && break
1628 done
1629
1630   CC=$ac_ct_CC
1631 fi
1632
1633 fi
1634
1635
1636 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1637 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1638    { (exit 1); exit 1; }; }
1639
1640 # Provide some information about the compiler.
1641 echo "$as_me:$LINENO:" \
1642      "checking for C compiler version" >&5
1643 ac_compiler=`set X $ac_compile; echo $2`
1644 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1645   (eval $ac_compiler --version </dev/null >&5) 2>&5
1646   ac_status=$?
1647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1648   (exit $ac_status); }
1649 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1650   (eval $ac_compiler -v </dev/null >&5) 2>&5
1651   ac_status=$?
1652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1653   (exit $ac_status); }
1654 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1655   (eval $ac_compiler -V </dev/null >&5) 2>&5
1656   ac_status=$?
1657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1658   (exit $ac_status); }
1659
1660 cat >conftest.$ac_ext <<_ACEOF
1661 #line $LINENO "configure"
1662 #include "confdefs.h"
1663
1664 #ifdef F77_DUMMY_MAIN
1665 #  ifdef __cplusplus
1666      extern "C"
1667 #  endif
1668    int F77_DUMMY_MAIN() { return 1; }
1669 #endif
1670 int
1671 main ()
1672 {
1673
1674   ;
1675   return 0;
1676 }
1677 _ACEOF
1678 ac_clean_files_save=$ac_clean_files
1679 ac_clean_files="$ac_clean_files a.out a.exe"
1680 # Try to create an executable without -o first, disregard a.out.
1681 # It will help us diagnose broken compilers, and finding out an intuition
1682 # of exeext.
1683 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1684 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1685 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1686 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1687   (eval $ac_link_default) 2>&5
1688   ac_status=$?
1689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1690   (exit $ac_status); }; then
1691   # Find the output, starting from the most likely.  This scheme is
1692 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1693 # resort.
1694
1695 # Be careful to initialize this variable, since it used to be cached.
1696 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1697 ac_cv_exeext=
1698 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1699                 ls a.out conftest 2>/dev/null;
1700                 ls a.* conftest.* 2>/dev/null`; do
1701   case $ac_file in
1702     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1703     a.out ) # We found the default executable, but exeext='' is most
1704             # certainly right.
1705             break;;
1706     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1707           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1708           export ac_cv_exeext
1709           break;;
1710     * ) break;;
1711   esac
1712 done
1713 else
1714   echo "$as_me: failed program was:" >&5
1715 cat conftest.$ac_ext >&5
1716 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1717 echo "$as_me: error: C compiler cannot create executables" >&2;}
1718    { (exit 77); exit 77; }; }
1719 fi
1720
1721 ac_exeext=$ac_cv_exeext
1722 echo "$as_me:$LINENO: result: $ac_file" >&5
1723 echo "${ECHO_T}$ac_file" >&6
1724
1725 # Check the compiler produces executables we can run.  If not, either
1726 # the compiler is broken, or we cross compile.
1727 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1728 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1729 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1730 # If not cross compiling, check that we can run a simple program.
1731 if test "$cross_compiling" != yes; then
1732   if { ac_try='./$ac_file'
1733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1734   (eval $ac_try) 2>&5
1735   ac_status=$?
1736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1737   (exit $ac_status); }; }; then
1738     cross_compiling=no
1739   else
1740     if test "$cross_compiling" = maybe; then
1741         cross_compiling=yes
1742     else
1743         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1744 If you meant to cross compile, use \`--host'." >&5
1745 echo "$as_me: error: cannot run C compiled programs.
1746 If you meant to cross compile, use \`--host'." >&2;}
1747    { (exit 1); exit 1; }; }
1748     fi
1749   fi
1750 fi
1751 echo "$as_me:$LINENO: result: yes" >&5
1752 echo "${ECHO_T}yes" >&6
1753
1754 rm -f a.out a.exe conftest$ac_cv_exeext
1755 ac_clean_files=$ac_clean_files_save
1756 # Check the compiler produces executables we can run.  If not, either
1757 # the compiler is broken, or we cross compile.
1758 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1759 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1760 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1761 echo "${ECHO_T}$cross_compiling" >&6
1762
1763 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1764 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1766   (eval $ac_link) 2>&5
1767   ac_status=$?
1768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1769   (exit $ac_status); }; then
1770   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1771 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1772 # work properly (i.e., refer to `conftest.exe'), while it won't with
1773 # `rm'.
1774 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1775   case $ac_file in
1776     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1777     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1778           export ac_cv_exeext
1779           break;;
1780     * ) break;;
1781   esac
1782 done
1783 else
1784   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1785 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1786    { (exit 1); exit 1; }; }
1787 fi
1788
1789 rm -f conftest$ac_cv_exeext
1790 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1791 echo "${ECHO_T}$ac_cv_exeext" >&6
1792
1793 rm -f conftest.$ac_ext
1794 EXEEXT=$ac_cv_exeext
1795 ac_exeext=$EXEEXT
1796 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1797 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1798 if test "${ac_cv_objext+set}" = set; then
1799   echo $ECHO_N "(cached) $ECHO_C" >&6
1800 else
1801   cat >conftest.$ac_ext <<_ACEOF
1802 #line $LINENO "configure"
1803 #include "confdefs.h"
1804
1805 #ifdef F77_DUMMY_MAIN
1806 #  ifdef __cplusplus
1807      extern "C"
1808 #  endif
1809    int F77_DUMMY_MAIN() { return 1; }
1810 #endif
1811 int
1812 main ()
1813 {
1814
1815   ;
1816   return 0;
1817 }
1818 _ACEOF
1819 rm -f conftest.o conftest.obj
1820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1821   (eval $ac_compile) 2>&5
1822   ac_status=$?
1823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1824   (exit $ac_status); }; then
1825   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1826   case $ac_file in
1827     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1828     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1829        break;;
1830   esac
1831 done
1832 else
1833   echo "$as_me: failed program was:" >&5
1834 cat conftest.$ac_ext >&5
1835 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1836 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1837    { (exit 1); exit 1; }; }
1838 fi
1839
1840 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1841 fi
1842 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1843 echo "${ECHO_T}$ac_cv_objext" >&6
1844 OBJEXT=$ac_cv_objext
1845 ac_objext=$OBJEXT
1846 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1847 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1848 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1849   echo $ECHO_N "(cached) $ECHO_C" >&6
1850 else
1851   cat >conftest.$ac_ext <<_ACEOF
1852 #line $LINENO "configure"
1853 #include "confdefs.h"
1854
1855 #ifdef F77_DUMMY_MAIN
1856 #  ifdef __cplusplus
1857      extern "C"
1858 #  endif
1859    int F77_DUMMY_MAIN() { return 1; }
1860 #endif
1861 int
1862 main ()
1863 {
1864 #ifndef __GNUC__
1865        choke me
1866 #endif
1867
1868   ;
1869   return 0;
1870 }
1871 _ACEOF
1872 rm -f conftest.$ac_objext
1873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1874   (eval $ac_compile) 2>&5
1875   ac_status=$?
1876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877   (exit $ac_status); } &&
1878          { ac_try='test -s conftest.$ac_objext'
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   ac_compiler_gnu=yes
1885 else
1886   echo "$as_me: failed program was:" >&5
1887 cat conftest.$ac_ext >&5
1888 ac_compiler_gnu=no
1889 fi
1890 rm -f conftest.$ac_objext conftest.$ac_ext
1891 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1892
1893 fi
1894 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1895 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1896 GCC=`test $ac_compiler_gnu = yes && echo yes`
1897 ac_test_CFLAGS=${CFLAGS+set}
1898 ac_save_CFLAGS=$CFLAGS
1899 CFLAGS="-g"
1900 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1901 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1902 if test "${ac_cv_prog_cc_g+set}" = set; then
1903   echo $ECHO_N "(cached) $ECHO_C" >&6
1904 else
1905   cat >conftest.$ac_ext <<_ACEOF
1906 #line $LINENO "configure"
1907 #include "confdefs.h"
1908
1909 #ifdef F77_DUMMY_MAIN
1910 #  ifdef __cplusplus
1911      extern "C"
1912 #  endif
1913    int F77_DUMMY_MAIN() { return 1; }
1914 #endif
1915 int
1916 main ()
1917 {
1918
1919   ;
1920   return 0;
1921 }
1922 _ACEOF
1923 rm -f conftest.$ac_objext
1924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1925   (eval $ac_compile) 2>&5
1926   ac_status=$?
1927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928   (exit $ac_status); } &&
1929          { ac_try='test -s conftest.$ac_objext'
1930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1931   (eval $ac_try) 2>&5
1932   ac_status=$?
1933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934   (exit $ac_status); }; }; then
1935   ac_cv_prog_cc_g=yes
1936 else
1937   echo "$as_me: failed program was:" >&5
1938 cat conftest.$ac_ext >&5
1939 ac_cv_prog_cc_g=no
1940 fi
1941 rm -f conftest.$ac_objext conftest.$ac_ext
1942 fi
1943 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1944 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1945 if test "$ac_test_CFLAGS" = set; then
1946   CFLAGS=$ac_save_CFLAGS
1947 elif test $ac_cv_prog_cc_g = yes; then
1948   if test "$GCC" = yes; then
1949     CFLAGS="-g -O2"
1950   else
1951     CFLAGS="-g"
1952   fi
1953 else
1954   if test "$GCC" = yes; then
1955     CFLAGS="-O2"
1956   else
1957     CFLAGS=
1958   fi
1959 fi
1960 # Some people use a C++ compiler to compile C.  Since we use `exit',
1961 # in C++ we need to declare it.  In case someone uses the same compiler
1962 # for both compiling C and C++ we need to have the C++ compiler decide
1963 # the declaration of exit, since it's the most demanding environment.
1964 cat >conftest.$ac_ext <<_ACEOF
1965 #ifndef __cplusplus
1966   choke me
1967 #endif
1968 _ACEOF
1969 rm -f conftest.$ac_objext
1970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1971   (eval $ac_compile) 2>&5
1972   ac_status=$?
1973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974   (exit $ac_status); } &&
1975          { ac_try='test -s conftest.$ac_objext'
1976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1977   (eval $ac_try) 2>&5
1978   ac_status=$?
1979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980   (exit $ac_status); }; }; then
1981   for ac_declaration in \
1982    ''\
1983    '#include <stdlib.h>' \
1984    'extern "C" void std::exit (int) throw (); using std::exit;' \
1985    'extern "C" void std::exit (int); using std::exit;' \
1986    'extern "C" void exit (int) throw ();' \
1987    'extern "C" void exit (int);' \
1988    'void exit (int);'
1989 do
1990   cat >conftest.$ac_ext <<_ACEOF
1991 #line $LINENO "configure"
1992 #include "confdefs.h"
1993 #include <stdlib.h>
1994 $ac_declaration
1995 #ifdef F77_DUMMY_MAIN
1996 #  ifdef __cplusplus
1997      extern "C"
1998 #  endif
1999    int F77_DUMMY_MAIN() { return 1; }
2000 #endif
2001 int
2002 main ()
2003 {
2004 exit (42);
2005   ;
2006   return 0;
2007 }
2008 _ACEOF
2009 rm -f conftest.$ac_objext
2010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2011   (eval $ac_compile) 2>&5
2012   ac_status=$?
2013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014   (exit $ac_status); } &&
2015          { ac_try='test -s conftest.$ac_objext'
2016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2017   (eval $ac_try) 2>&5
2018   ac_status=$?
2019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020   (exit $ac_status); }; }; then
2021   :
2022 else
2023   echo "$as_me: failed program was:" >&5
2024 cat conftest.$ac_ext >&5
2025 continue
2026 fi
2027 rm -f conftest.$ac_objext conftest.$ac_ext
2028   cat >conftest.$ac_ext <<_ACEOF
2029 #line $LINENO "configure"
2030 #include "confdefs.h"
2031 $ac_declaration
2032 #ifdef F77_DUMMY_MAIN
2033 #  ifdef __cplusplus
2034      extern "C"
2035 #  endif
2036    int F77_DUMMY_MAIN() { return 1; }
2037 #endif
2038 int
2039 main ()
2040 {
2041 exit (42);
2042   ;
2043   return 0;
2044 }
2045 _ACEOF
2046 rm -f conftest.$ac_objext
2047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2048   (eval $ac_compile) 2>&5
2049   ac_status=$?
2050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051   (exit $ac_status); } &&
2052          { ac_try='test -s conftest.$ac_objext'
2053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2054   (eval $ac_try) 2>&5
2055   ac_status=$?
2056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057   (exit $ac_status); }; }; then
2058   break
2059 else
2060   echo "$as_me: failed program was:" >&5
2061 cat conftest.$ac_ext >&5
2062 fi
2063 rm -f conftest.$ac_objext conftest.$ac_ext
2064 done
2065 rm -f conftest*
2066 if test -n "$ac_declaration"; then
2067   echo '#ifdef __cplusplus' >>confdefs.h
2068   echo $ac_declaration      >>confdefs.h
2069   echo '#endif'             >>confdefs.h
2070 fi
2071
2072 else
2073   echo "$as_me: failed program was:" >&5
2074 cat conftest.$ac_ext >&5
2075 fi
2076 rm -f conftest.$ac_objext conftest.$ac_ext
2077 ac_ext=c
2078 ac_cpp='$CPP $CPPFLAGS'
2079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2082
2083
2084
2085
2086
2087
2088 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2089 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2090 if test "${am_cv_prog_cc_stdc+set}" = set; then
2091   echo $ECHO_N "(cached) $ECHO_C" >&6
2092 else
2093   am_cv_prog_cc_stdc=no
2094 ac_save_CC="$CC"
2095 # Don't try gcc -ansi; that turns off useful extensions and
2096 # breaks some systems' header files.
2097 # AIX                   -qlanglvl=ansi
2098 # Ultrix and OSF/1      -std1
2099 # HP-UX                 -Aa -D_HPUX_SOURCE
2100 # SVR4                  -Xc -D__EXTENSIONS__
2101 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2102 do
2103   CC="$ac_save_CC $ac_arg"
2104   cat >conftest.$ac_ext <<_ACEOF
2105 #line $LINENO "configure"
2106 #include "confdefs.h"
2107 #include <stdarg.h>
2108 #include <stdio.h>
2109 #include <sys/types.h>
2110 #include <sys/stat.h>
2111 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2112 struct buf { int x; };
2113 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2114 static char *e (p, i)
2115      char **p;
2116      int i;
2117 {
2118   return p[i];
2119 }
2120 static char *f (char * (*g) (char **, int), char **p, ...)
2121 {
2122   char *s;
2123   va_list v;
2124   va_start (v,p);
2125   s = g (p, va_arg (v,int));
2126   va_end (v);
2127   return s;
2128 }
2129 int test (int i, double x);
2130 struct s1 {int (*f) (int a);};
2131 struct s2 {int (*f) (double a);};
2132 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2133 int argc;
2134 char **argv;
2135
2136 #ifdef F77_DUMMY_MAIN
2137 #  ifdef __cplusplus
2138      extern "C"
2139 #  endif
2140    int F77_DUMMY_MAIN() { return 1; }
2141 #endif
2142 int
2143 main ()
2144 {
2145
2146 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2147
2148   ;
2149   return 0;
2150 }
2151 _ACEOF
2152 rm -f conftest.$ac_objext
2153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154   (eval $ac_compile) 2>&5
2155   ac_status=$?
2156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157   (exit $ac_status); } &&
2158          { ac_try='test -s conftest.$ac_objext'
2159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160   (eval $ac_try) 2>&5
2161   ac_status=$?
2162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163   (exit $ac_status); }; }; then
2164   am_cv_prog_cc_stdc="$ac_arg"; break
2165 else
2166   echo "$as_me: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2168 fi
2169 rm -f conftest.$ac_objext conftest.$ac_ext
2170 done
2171 CC="$ac_save_CC"
2172
2173 fi
2174
2175 if test -z "$am_cv_prog_cc_stdc"; then
2176   echo "$as_me:$LINENO: result: none needed" >&5
2177 echo "${ECHO_T}none needed" >&6
2178 else
2179   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2180 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2181 fi
2182 case "x$am_cv_prog_cc_stdc" in
2183   x|xno) ;;
2184   *) CC="$CC $am_cv_prog_cc_stdc" ;;
2185 esac
2186
2187 if test x"$CFLAGS" != x; then
2188     CFLAGS=`echo "$CFLAGS" | sed -e 's/-O2/-O3/'`
2189 fi
2190 if test x"$CFLAGS" != x; then
2191     CFLAGS=`echo "$CFLAGS" | sed -e 's/-pipe//g'`
2192 fi
2193 if test x"$CFLAGS" != x; then
2194     unet_old_cflags=$CFLAGS
2195     CFLAGS=`echo "$CFLAGS" | sed -e 's/-g//g'`
2196 fi
2197 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2198     # If -g was already there, force symbols to be enabled
2199     unet_cv_enable_symbols=yes
2200 fi
2201 if test x"$CFLAGS" != x; then
2202     unet_old_cflags=$CFLAGS
2203     CFLAGS=`echo "$CFLAGS" | sed -e 's/-pg//g'`
2204 fi
2205 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2206     # If -pg was already there, force profiling to be enabled
2207     unet_cv_enable_profile=yes
2208 fi
2209 if test x"$CFLAGS" != x; then
2210     unet_old_cflags=$CFLAGS
2211     CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wall//g'`
2212 fi
2213 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2214     # If -Wall was already there, force warnings to be enabled
2215     unet_cv_enable_warnings=yes
2216 fi
2217 if test x"$CFLAGS" != x; then
2218     unet_old_cflags=$CFLAGS
2219     CFLAGS=`echo "$CFLAGS" | sed -e 's/-pedantic//g'`
2220 fi
2221 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2222     # If -pedantic was already there, force pedatic to be enabled
2223     unet_cv_enable_pedantic=yes
2224 fi
2225
2226
2227 echo "$as_me:$LINENO: checking for library containing crypt" >&5
2228 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
2229 if test "${ac_cv_search_crypt+set}" = set; then
2230   echo $ECHO_N "(cached) $ECHO_C" >&6
2231 else
2232   ac_func_search_save_LIBS=$LIBS
2233 ac_cv_search_crypt=no
2234 cat >conftest.$ac_ext <<_ACEOF
2235 #line $LINENO "configure"
2236 #include "confdefs.h"
2237
2238 /* Override any gcc2 internal prototype to avoid an error.  */
2239 #ifdef __cplusplus
2240 extern "C"
2241 #endif
2242 /* We use char because int might match the return type of a gcc2
2243    builtin and then its argument prototype would still apply.  */
2244 char crypt ();
2245 #ifdef F77_DUMMY_MAIN
2246 #  ifdef __cplusplus
2247      extern "C"
2248 #  endif
2249    int F77_DUMMY_MAIN() { return 1; }
2250 #endif
2251 int
2252 main ()
2253 {
2254 crypt ();
2255   ;
2256   return 0;
2257 }
2258 _ACEOF
2259 rm -f conftest.$ac_objext conftest$ac_exeext
2260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2261   (eval $ac_link) 2>&5
2262   ac_status=$?
2263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264   (exit $ac_status); } &&
2265          { ac_try='test -s conftest$ac_exeext'
2266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267   (eval $ac_try) 2>&5
2268   ac_status=$?
2269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270   (exit $ac_status); }; }; then
2271   ac_cv_search_crypt="none required"
2272 else
2273   echo "$as_me: failed program was:" >&5
2274 cat conftest.$ac_ext >&5
2275 fi
2276 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2277 if test "$ac_cv_search_crypt" = no; then
2278   for ac_lib in descrypt crypt; do
2279     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2280     cat >conftest.$ac_ext <<_ACEOF
2281 #line $LINENO "configure"
2282 #include "confdefs.h"
2283
2284 /* Override any gcc2 internal prototype to avoid an error.  */
2285 #ifdef __cplusplus
2286 extern "C"
2287 #endif
2288 /* We use char because int might match the return type of a gcc2
2289    builtin and then its argument prototype would still apply.  */
2290 char crypt ();
2291 #ifdef F77_DUMMY_MAIN
2292 #  ifdef __cplusplus
2293      extern "C"
2294 #  endif
2295    int F77_DUMMY_MAIN() { return 1; }
2296 #endif
2297 int
2298 main ()
2299 {
2300 crypt ();
2301   ;
2302   return 0;
2303 }
2304 _ACEOF
2305 rm -f conftest.$ac_objext conftest$ac_exeext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2307   (eval $ac_link) 2>&5
2308   ac_status=$?
2309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310   (exit $ac_status); } &&
2311          { ac_try='test -s conftest$ac_exeext'
2312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313   (eval $ac_try) 2>&5
2314   ac_status=$?
2315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316   (exit $ac_status); }; }; then
2317   ac_cv_search_crypt="-l$ac_lib"
2318 break
2319 else
2320   echo "$as_me: failed program was:" >&5
2321 cat conftest.$ac_ext >&5
2322 fi
2323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2324   done
2325 fi
2326 LIBS=$ac_func_search_save_LIBS
2327 fi
2328 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
2329 echo "${ECHO_T}$ac_cv_search_crypt" >&6
2330 if test "$ac_cv_search_crypt" != no; then
2331   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
2332
2333 else
2334   { { echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
2335 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
2336    { (exit 1); exit 1; }; }
2337 fi
2338
2339
2340
2341    # Most operating systems have gethostbyname() in the default searched
2342    # libraries (i.e. libc):
2343    echo "$as_me:$LINENO: checking for gethostbyname" >&5
2344 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2345 if test "${ac_cv_func_gethostbyname+set}" = set; then
2346   echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348   cat >conftest.$ac_ext <<_ACEOF
2349 #line $LINENO "configure"
2350 #include "confdefs.h"
2351 /* System header to define __stub macros and hopefully few prototypes,
2352     which can conflict with char gethostbyname (); below.  */
2353 #include <assert.h>
2354 /* Override any gcc2 internal prototype to avoid an error.  */
2355 #ifdef __cplusplus
2356 extern "C"
2357 #endif
2358 /* We use char because int might match the return type of a gcc2
2359    builtin and then its argument prototype would still apply.  */
2360 char gethostbyname ();
2361 char (*f) ();
2362
2363 #ifdef F77_DUMMY_MAIN
2364 #  ifdef __cplusplus
2365      extern "C"
2366 #  endif
2367    int F77_DUMMY_MAIN() { return 1; }
2368 #endif
2369 int
2370 main ()
2371 {
2372 /* The GNU C library defines this for functions which it implements
2373     to always fail with ENOSYS.  Some functions are actually named
2374     something starting with __ and the normal name is an alias.  */
2375 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2376 choke me
2377 #else
2378 f = gethostbyname;
2379 #endif
2380
2381   ;
2382   return 0;
2383 }
2384 _ACEOF
2385 rm -f conftest.$ac_objext conftest$ac_exeext
2386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2387   (eval $ac_link) 2>&5
2388   ac_status=$?
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); } &&
2391          { ac_try='test -s conftest$ac_exeext'
2392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393   (eval $ac_try) 2>&5
2394   ac_status=$?
2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396   (exit $ac_status); }; }; then
2397   ac_cv_func_gethostbyname=yes
2398 else
2399   echo "$as_me: failed program was:" >&5
2400 cat conftest.$ac_ext >&5
2401 ac_cv_func_gethostbyname=no
2402 fi
2403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2404 fi
2405 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2406 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2407 if test $ac_cv_func_gethostbyname = yes; then
2408   :
2409 else
2410   # Some OSes (eg. Solaris) place it in libnsl:
2411
2412 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2413 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2414 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2415   echo $ECHO_N "(cached) $ECHO_C" >&6
2416 else
2417   ac_check_lib_save_LIBS=$LIBS
2418 LIBS="-lnsl  $LIBS"
2419 cat >conftest.$ac_ext <<_ACEOF
2420 #line $LINENO "configure"
2421 #include "confdefs.h"
2422
2423 /* Override any gcc2 internal prototype to avoid an error.  */
2424 #ifdef __cplusplus
2425 extern "C"
2426 #endif
2427 /* We use char because int might match the return type of a gcc2
2428    builtin and then its argument prototype would still apply.  */
2429 char gethostbyname ();
2430 #ifdef F77_DUMMY_MAIN
2431 #  ifdef __cplusplus
2432      extern "C"
2433 #  endif
2434    int F77_DUMMY_MAIN() { return 1; }
2435 #endif
2436 int
2437 main ()
2438 {
2439 gethostbyname ();
2440   ;
2441   return 0;
2442 }
2443 _ACEOF
2444 rm -f conftest.$ac_objext conftest$ac_exeext
2445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2446   (eval $ac_link) 2>&5
2447   ac_status=$?
2448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449   (exit $ac_status); } &&
2450          { ac_try='test -s conftest$ac_exeext'
2451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452   (eval $ac_try) 2>&5
2453   ac_status=$?
2454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455   (exit $ac_status); }; }; then
2456   ac_cv_lib_nsl_gethostbyname=yes
2457 else
2458   echo "$as_me: failed program was:" >&5
2459 cat conftest.$ac_ext >&5
2460 ac_cv_lib_nsl_gethostbyname=no
2461 fi
2462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2463 LIBS=$ac_check_lib_save_LIBS
2464 fi
2465 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
2466 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2467 if test $ac_cv_lib_nsl_gethostbyname = yes; then
2468   cat >>confdefs.h <<_ACEOF
2469 #define HAVE_LIBNSL 1
2470 _ACEOF
2471
2472   LIBS="-lnsl $LIBS"
2473
2474 else
2475   # Some strange OSes (SINIX) have it in libsocket:
2476
2477 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
2478 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2479 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2480   echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482   ac_check_lib_save_LIBS=$LIBS
2483 LIBS="-lsocket  $LIBS"
2484 cat >conftest.$ac_ext <<_ACEOF
2485 #line $LINENO "configure"
2486 #include "confdefs.h"
2487
2488 /* Override any gcc2 internal prototype to avoid an error.  */
2489 #ifdef __cplusplus
2490 extern "C"
2491 #endif
2492 /* We use char because int might match the return type of a gcc2
2493    builtin and then its argument prototype would still apply.  */
2494 char gethostbyname ();
2495 #ifdef F77_DUMMY_MAIN
2496 #  ifdef __cplusplus
2497      extern "C"
2498 #  endif
2499    int F77_DUMMY_MAIN() { return 1; }
2500 #endif
2501 int
2502 main ()
2503 {
2504 gethostbyname ();
2505   ;
2506   return 0;
2507 }
2508 _ACEOF
2509 rm -f conftest.$ac_objext conftest$ac_exeext
2510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2511   (eval $ac_link) 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); } &&
2515          { ac_try='test -s conftest$ac_exeext'
2516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517   (eval $ac_try) 2>&5
2518   ac_status=$?
2519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520   (exit $ac_status); }; }; then
2521   ac_cv_lib_socket_gethostbyname=yes
2522 else
2523   echo "$as_me: failed program was:" >&5
2524 cat conftest.$ac_ext >&5
2525 ac_cv_lib_socket_gethostbyname=no
2526 fi
2527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2528 LIBS=$ac_check_lib_save_LIBS
2529 fi
2530 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
2531 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2532 if test $ac_cv_lib_socket_gethostbyname = yes; then
2533   cat >>confdefs.h <<_ACEOF
2534 #define HAVE_LIBSOCKET 1
2535 _ACEOF
2536
2537   LIBS="-lsocket $LIBS"
2538
2539 else
2540   # Unfortunately libsocket sometimes depends on libnsl.
2541           # AC_CHECK_LIB's API is essentially broken so the following
2542           # ugliness is necessary:
2543           echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
2544 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2545 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2546   echo $ECHO_N "(cached) $ECHO_C" >&6
2547 else
2548   ac_check_lib_save_LIBS=$LIBS
2549 LIBS="-lsocket -lnsl $LIBS"
2550 cat >conftest.$ac_ext <<_ACEOF
2551 #line $LINENO "configure"
2552 #include "confdefs.h"
2553
2554 /* Override any gcc2 internal prototype to avoid an error.  */
2555 #ifdef __cplusplus
2556 extern "C"
2557 #endif
2558 /* We use char because int might match the return type of a gcc2
2559    builtin and then its argument prototype would still apply.  */
2560 char gethostbyname ();
2561 #ifdef F77_DUMMY_MAIN
2562 #  ifdef __cplusplus
2563      extern "C"
2564 #  endif
2565    int F77_DUMMY_MAIN() { return 1; }
2566 #endif
2567 int
2568 main ()
2569 {
2570 gethostbyname ();
2571   ;
2572   return 0;
2573 }
2574 _ACEOF
2575 rm -f conftest.$ac_objext conftest$ac_exeext
2576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2577   (eval $ac_link) 2>&5
2578   ac_status=$?
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); } &&
2581          { ac_try='test -s conftest$ac_exeext'
2582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583   (eval $ac_try) 2>&5
2584   ac_status=$?
2585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586   (exit $ac_status); }; }; then
2587   ac_cv_lib_socket_gethostbyname=yes
2588 else
2589   echo "$as_me: failed program was:" >&5
2590 cat conftest.$ac_ext >&5
2591 ac_cv_lib_socket_gethostbyname=no
2592 fi
2593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2594 LIBS=$ac_check_lib_save_LIBS
2595 fi
2596 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
2597 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2598 if test $ac_cv_lib_socket_gethostbyname = yes; then
2599   LIBS="-lsocket -lnsl $LIBS"
2600 else
2601
2602 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
2603 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
2604 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
2605   echo $ECHO_N "(cached) $ECHO_C" >&6
2606 else
2607   ac_check_lib_save_LIBS=$LIBS
2608 LIBS="-lresolv  $LIBS"
2609 cat >conftest.$ac_ext <<_ACEOF
2610 #line $LINENO "configure"
2611 #include "confdefs.h"
2612
2613 /* Override any gcc2 internal prototype to avoid an error.  */
2614 #ifdef __cplusplus
2615 extern "C"
2616 #endif
2617 /* We use char because int might match the return type of a gcc2
2618    builtin and then its argument prototype would still apply.  */
2619 char gethostbyname ();
2620 #ifdef F77_DUMMY_MAIN
2621 #  ifdef __cplusplus
2622      extern "C"
2623 #  endif
2624    int F77_DUMMY_MAIN() { return 1; }
2625 #endif
2626 int
2627 main ()
2628 {
2629 gethostbyname ();
2630   ;
2631   return 0;
2632 }
2633 _ACEOF
2634 rm -f conftest.$ac_objext conftest$ac_exeext
2635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2636   (eval $ac_link) 2>&5
2637   ac_status=$?
2638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639   (exit $ac_status); } &&
2640          { ac_try='test -s conftest$ac_exeext'
2641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642   (eval $ac_try) 2>&5
2643   ac_status=$?
2644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645   (exit $ac_status); }; }; then
2646   ac_cv_lib_resolv_gethostbyname=yes
2647 else
2648   echo "$as_me: failed program was:" >&5
2649 cat conftest.$ac_ext >&5
2650 ac_cv_lib_resolv_gethostbyname=no
2651 fi
2652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2653 LIBS=$ac_check_lib_save_LIBS
2654 fi
2655 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
2656 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
2657 if test $ac_cv_lib_resolv_gethostbyname = yes; then
2658   cat >>confdefs.h <<_ACEOF
2659 #define HAVE_LIBRESOLV 1
2660 _ACEOF
2661
2662   LIBS="-lresolv $LIBS"
2663
2664 fi
2665
2666 fi
2667
2668
2669 fi
2670
2671
2672 fi
2673
2674
2675 fi
2676
2677   echo "$as_me:$LINENO: checking for socket" >&5
2678 echo $ECHO_N "checking for socket... $ECHO_C" >&6
2679 if test "${ac_cv_func_socket+set}" = set; then
2680   echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682   cat >conftest.$ac_ext <<_ACEOF
2683 #line $LINENO "configure"
2684 #include "confdefs.h"
2685 /* System header to define __stub macros and hopefully few prototypes,
2686     which can conflict with char socket (); below.  */
2687 #include <assert.h>
2688 /* Override any gcc2 internal prototype to avoid an error.  */
2689 #ifdef __cplusplus
2690 extern "C"
2691 #endif
2692 /* We use char because int might match the return type of a gcc2
2693    builtin and then its argument prototype would still apply.  */
2694 char socket ();
2695 char (*f) ();
2696
2697 #ifdef F77_DUMMY_MAIN
2698 #  ifdef __cplusplus
2699      extern "C"
2700 #  endif
2701    int F77_DUMMY_MAIN() { return 1; }
2702 #endif
2703 int
2704 main ()
2705 {
2706 /* The GNU C library defines this for functions which it implements
2707     to always fail with ENOSYS.  Some functions are actually named
2708     something starting with __ and the normal name is an alias.  */
2709 #if defined (__stub_socket) || defined (__stub___socket)
2710 choke me
2711 #else
2712 f = socket;
2713 #endif
2714
2715   ;
2716   return 0;
2717 }
2718 _ACEOF
2719 rm -f conftest.$ac_objext conftest$ac_exeext
2720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2721   (eval $ac_link) 2>&5
2722   ac_status=$?
2723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724   (exit $ac_status); } &&
2725          { ac_try='test -s conftest$ac_exeext'
2726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727   (eval $ac_try) 2>&5
2728   ac_status=$?
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); }; }; then
2731   ac_cv_func_socket=yes
2732 else
2733   echo "$as_me: failed program was:" >&5
2734 cat conftest.$ac_ext >&5
2735 ac_cv_func_socket=no
2736 fi
2737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2738 fi
2739 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
2740 echo "${ECHO_T}$ac_cv_func_socket" >&6
2741 if test $ac_cv_func_socket = yes; then
2742   :
2743 else
2744
2745 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
2746 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
2747 if test "${ac_cv_lib_socket_socket+set}" = set; then
2748   echo $ECHO_N "(cached) $ECHO_C" >&6
2749 else
2750   ac_check_lib_save_LIBS=$LIBS
2751 LIBS="-lsocket  $LIBS"
2752 cat >conftest.$ac_ext <<_ACEOF
2753 #line $LINENO "configure"
2754 #include "confdefs.h"
2755
2756 /* Override any gcc2 internal prototype to avoid an error.  */
2757 #ifdef __cplusplus
2758 extern "C"
2759 #endif
2760 /* We use char because int might match the return type of a gcc2
2761    builtin and then its argument prototype would still apply.  */
2762 char socket ();
2763 #ifdef F77_DUMMY_MAIN
2764 #  ifdef __cplusplus
2765      extern "C"
2766 #  endif
2767    int F77_DUMMY_MAIN() { return 1; }
2768 #endif
2769 int
2770 main ()
2771 {
2772 socket ();
2773   ;
2774   return 0;
2775 }
2776 _ACEOF
2777 rm -f conftest.$ac_objext conftest$ac_exeext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2779   (eval $ac_link) 2>&5
2780   ac_status=$?
2781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782   (exit $ac_status); } &&
2783          { ac_try='test -s conftest$ac_exeext'
2784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785   (eval $ac_try) 2>&5
2786   ac_status=$?
2787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788   (exit $ac_status); }; }; then
2789   ac_cv_lib_socket_socket=yes
2790 else
2791   echo "$as_me: failed program was:" >&5
2792 cat conftest.$ac_ext >&5
2793 ac_cv_lib_socket_socket=no
2794 fi
2795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2796 LIBS=$ac_check_lib_save_LIBS
2797 fi
2798 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
2799 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
2800 if test $ac_cv_lib_socket_socket = yes; then
2801   cat >>confdefs.h <<_ACEOF
2802 #define HAVE_LIBSOCKET 1
2803 _ACEOF
2804
2805   LIBS="-lsocket $LIBS"
2806
2807 else
2808   echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
2809 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
2810 if test "${ac_cv_lib_socket_socket+set}" = set; then
2811   echo $ECHO_N "(cached) $ECHO_C" >&6
2812 else
2813   ac_check_lib_save_LIBS=$LIBS
2814 LIBS="-lsocket -lnsl $LIBS"
2815 cat >conftest.$ac_ext <<_ACEOF
2816 #line $LINENO "configure"
2817 #include "confdefs.h"
2818
2819 /* Override any gcc2 internal prototype to avoid an error.  */
2820 #ifdef __cplusplus
2821 extern "C"
2822 #endif
2823 /* We use char because int might match the return type of a gcc2
2824    builtin and then its argument prototype would still apply.  */
2825 char socket ();
2826 #ifdef F77_DUMMY_MAIN
2827 #  ifdef __cplusplus
2828      extern "C"
2829 #  endif
2830    int F77_DUMMY_MAIN() { return 1; }
2831 #endif
2832 int
2833 main ()
2834 {
2835 socket ();
2836   ;
2837   return 0;
2838 }
2839 _ACEOF
2840 rm -f conftest.$ac_objext conftest$ac_exeext
2841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2842   (eval $ac_link) 2>&5
2843   ac_status=$?
2844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845   (exit $ac_status); } &&
2846          { ac_try='test -s conftest$ac_exeext'
2847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848   (eval $ac_try) 2>&5
2849   ac_status=$?
2850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851   (exit $ac_status); }; }; then
2852   ac_cv_lib_socket_socket=yes
2853 else
2854   echo "$as_me: failed program was:" >&5
2855 cat conftest.$ac_ext >&5
2856 ac_cv_lib_socket_socket=no
2857 fi
2858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2859 LIBS=$ac_check_lib_save_LIBS
2860 fi
2861 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
2862 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
2863 if test $ac_cv_lib_socket_socket = yes; then
2864   LIBS="-lsocket -lnsl $LIBS"
2865 fi
2866
2867 fi
2868
2869 fi
2870
2871
2872
2873 echo "$as_me:$LINENO: checking for library containing res_mkquery" >&5
2874 echo $ECHO_N "checking for library containing res_mkquery... $ECHO_C" >&6
2875 if test "${ac_cv_search_res_mkquery+set}" = set; then
2876   echo $ECHO_N "(cached) $ECHO_C" >&6
2877 else
2878   ac_func_search_save_LIBS=$LIBS
2879 ac_cv_search_res_mkquery=no
2880 cat >conftest.$ac_ext <<_ACEOF
2881 #line $LINENO "configure"
2882 #include "confdefs.h"
2883
2884 /* Override any gcc2 internal prototype to avoid an error.  */
2885 #ifdef __cplusplus
2886 extern "C"
2887 #endif
2888 /* We use char because int might match the return type of a gcc2
2889    builtin and then its argument prototype would still apply.  */
2890 char res_mkquery ();
2891 #ifdef F77_DUMMY_MAIN
2892 #  ifdef __cplusplus
2893      extern "C"
2894 #  endif
2895    int F77_DUMMY_MAIN() { return 1; }
2896 #endif
2897 int
2898 main ()
2899 {
2900 res_mkquery ();
2901   ;
2902   return 0;
2903 }
2904 _ACEOF
2905 rm -f conftest.$ac_objext conftest$ac_exeext
2906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2907   (eval $ac_link) 2>&5
2908   ac_status=$?
2909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910   (exit $ac_status); } &&
2911          { ac_try='test -s conftest$ac_exeext'
2912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913   (eval $ac_try) 2>&5
2914   ac_status=$?
2915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916   (exit $ac_status); }; }; then
2917   ac_cv_search_res_mkquery="none required"
2918 else
2919   echo "$as_me: failed program was:" >&5
2920 cat conftest.$ac_ext >&5
2921 fi
2922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2923 if test "$ac_cv_search_res_mkquery" = no; then
2924   for ac_lib in resolv; do
2925     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2926     cat >conftest.$ac_ext <<_ACEOF
2927 #line $LINENO "configure"
2928 #include "confdefs.h"
2929
2930 /* Override any gcc2 internal prototype to avoid an error.  */
2931 #ifdef __cplusplus
2932 extern "C"
2933 #endif
2934 /* We use char because int might match the return type of a gcc2
2935    builtin and then its argument prototype would still apply.  */
2936 char res_mkquery ();
2937 #ifdef F77_DUMMY_MAIN
2938 #  ifdef __cplusplus
2939      extern "C"
2940 #  endif
2941    int F77_DUMMY_MAIN() { return 1; }
2942 #endif
2943 int
2944 main ()
2945 {
2946 res_mkquery ();
2947   ;
2948   return 0;
2949 }
2950 _ACEOF
2951 rm -f conftest.$ac_objext conftest$ac_exeext
2952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2953   (eval $ac_link) 2>&5
2954   ac_status=$?
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); } &&
2957          { ac_try='test -s conftest$ac_exeext'
2958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959   (eval $ac_try) 2>&5
2960   ac_status=$?
2961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962   (exit $ac_status); }; }; then
2963   ac_cv_search_res_mkquery="-l$ac_lib"
2964 break
2965 else
2966   echo "$as_me: failed program was:" >&5
2967 cat conftest.$ac_ext >&5
2968 fi
2969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2970   done
2971 fi
2972 LIBS=$ac_func_search_save_LIBS
2973 fi
2974 echo "$as_me:$LINENO: result: $ac_cv_search_res_mkquery" >&5
2975 echo "${ECHO_T}$ac_cv_search_res_mkquery" >&6
2976 if test "$ac_cv_search_res_mkquery" != no; then
2977   test "$ac_cv_search_res_mkquery" = "none required" || LIBS="$ac_cv_search_res_mkquery $LIBS"
2978
2979 else
2980   { { echo "$as_me:$LINENO: error: Unable to find library containing res_mkquery()" >&5
2981 echo "$as_me: error: Unable to find library containing res_mkquery()" >&2;}
2982    { (exit 1); exit 1; }; }
2983 fi
2984
2985
2986 ac_ext=c
2987 ac_cpp='$CPP $CPPFLAGS'
2988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2991 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2992 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2993 # On Suns, sometimes $CPP names a directory.
2994 if test -n "$CPP" && test -d "$CPP"; then
2995   CPP=
2996 fi
2997 if test -z "$CPP"; then
2998   if test "${ac_cv_prog_CPP+set}" = set; then
2999   echo $ECHO_N "(cached) $ECHO_C" >&6
3000 else
3001       # Double quotes because CPP needs to be expanded
3002     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3003     do
3004       ac_preproc_ok=false
3005 for ac_c_preproc_warn_flag in '' yes
3006 do
3007   # Use a header file that comes with gcc, so configuring glibc
3008   # with a fresh cross-compiler works.
3009   # On the NeXT, cc -E runs the code through the compiler's parser,
3010   # not just through cpp. "Syntax error" is here to catch this case.
3011   cat >conftest.$ac_ext <<_ACEOF
3012 #line $LINENO "configure"
3013 #include "confdefs.h"
3014 #include <assert.h>
3015                      Syntax error
3016 _ACEOF
3017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3018   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3019   ac_status=$?
3020   egrep -v '^ *\+' conftest.er1 >conftest.err
3021   rm -f conftest.er1
3022   cat conftest.err >&5
3023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024   (exit $ac_status); } >/dev/null; then
3025   if test -s conftest.err; then
3026     ac_cpp_err=$ac_c_preproc_warn_flag
3027   else
3028     ac_cpp_err=
3029   fi
3030 else
3031   ac_cpp_err=yes
3032 fi
3033 if test -z "$ac_cpp_err"; then
3034   :
3035 else
3036   echo "$as_me: failed program was:" >&5
3037   cat conftest.$ac_ext >&5
3038   # Broken: fails on valid input.
3039 continue
3040 fi
3041 rm -f conftest.err conftest.$ac_ext
3042
3043   # OK, works on sane cases.  Now check whether non-existent headers
3044   # can be detected and how.
3045   cat >conftest.$ac_ext <<_ACEOF
3046 #line $LINENO "configure"
3047 #include "confdefs.h"
3048 #include <ac_nonexistent.h>
3049 _ACEOF
3050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3051   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3052   ac_status=$?
3053   egrep -v '^ *\+' conftest.er1 >conftest.err
3054   rm -f conftest.er1
3055   cat conftest.err >&5
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); } >/dev/null; then
3058   if test -s conftest.err; then
3059     ac_cpp_err=$ac_c_preproc_warn_flag
3060   else
3061     ac_cpp_err=
3062   fi
3063 else
3064   ac_cpp_err=yes
3065 fi
3066 if test -z "$ac_cpp_err"; then
3067   # Broken: success on invalid input.
3068 continue
3069 else
3070   echo "$as_me: failed program was:" >&5
3071   cat conftest.$ac_ext >&5
3072   # Passes both tests.
3073 ac_preproc_ok=:
3074 break
3075 fi
3076 rm -f conftest.err conftest.$ac_ext
3077
3078 done
3079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3080 rm -f conftest.err conftest.$ac_ext
3081 if $ac_preproc_ok; then
3082   break
3083 fi
3084
3085     done
3086     ac_cv_prog_CPP=$CPP
3087
3088 fi
3089   CPP=$ac_cv_prog_CPP
3090 else
3091   ac_cv_prog_CPP=$CPP
3092 fi
3093 echo "$as_me:$LINENO: result: $CPP" >&5
3094 echo "${ECHO_T}$CPP" >&6
3095 ac_preproc_ok=false
3096 for ac_c_preproc_warn_flag in '' yes
3097 do
3098   # Use a header file that comes with gcc, so configuring glibc
3099   # with a fresh cross-compiler works.
3100   # On the NeXT, cc -E runs the code through the compiler's parser,
3101   # not just through cpp. "Syntax error" is here to catch this case.
3102   cat >conftest.$ac_ext <<_ACEOF
3103 #line $LINENO "configure"
3104 #include "confdefs.h"
3105 #include <assert.h>
3106                      Syntax error
3107 _ACEOF
3108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3109   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3110   ac_status=$?
3111   egrep -v '^ *\+' conftest.er1 >conftest.err
3112   rm -f conftest.er1
3113   cat conftest.err >&5
3114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115   (exit $ac_status); } >/dev/null; then
3116   if test -s conftest.err; then
3117     ac_cpp_err=$ac_c_preproc_warn_flag
3118   else
3119     ac_cpp_err=
3120   fi
3121 else
3122   ac_cpp_err=yes
3123 fi
3124 if test -z "$ac_cpp_err"; then
3125   :
3126 else
3127   echo "$as_me: failed program was:" >&5
3128   cat conftest.$ac_ext >&5
3129   # Broken: fails on valid input.
3130 continue
3131 fi
3132 rm -f conftest.err conftest.$ac_ext
3133
3134   # OK, works on sane cases.  Now check whether non-existent headers
3135   # can be detected and how.
3136   cat >conftest.$ac_ext <<_ACEOF
3137 #line $LINENO "configure"
3138 #include "confdefs.h"
3139 #include <ac_nonexistent.h>
3140 _ACEOF
3141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3142   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3143   ac_status=$?
3144   egrep -v '^ *\+' conftest.er1 >conftest.err
3145   rm -f conftest.er1
3146   cat conftest.err >&5
3147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148   (exit $ac_status); } >/dev/null; then
3149   if test -s conftest.err; then
3150     ac_cpp_err=$ac_c_preproc_warn_flag
3151   else
3152     ac_cpp_err=
3153   fi
3154 else
3155   ac_cpp_err=yes
3156 fi
3157 if test -z "$ac_cpp_err"; then
3158   # Broken: success on invalid input.
3159 continue
3160 else
3161   echo "$as_me: failed program was:" >&5
3162   cat conftest.$ac_ext >&5
3163   # Passes both tests.
3164 ac_preproc_ok=:
3165 break
3166 fi
3167 rm -f conftest.err conftest.$ac_ext
3168
3169 done
3170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3171 rm -f conftest.err conftest.$ac_ext
3172 if $ac_preproc_ok; then
3173   :
3174 else
3175   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3176 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3177    { (exit 1); exit 1; }; }
3178 fi
3179
3180 ac_ext=c
3181 ac_cpp='$CPP $CPPFLAGS'
3182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3185
3186
3187 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3188 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3189 if test "${ac_cv_header_stdc+set}" = set; then
3190   echo $ECHO_N "(cached) $ECHO_C" >&6
3191 else
3192   cat >conftest.$ac_ext <<_ACEOF
3193 #line $LINENO "configure"
3194 #include "confdefs.h"
3195 #include <stdlib.h>
3196 #include <stdarg.h>
3197 #include <string.h>
3198 #include <float.h>
3199
3200 _ACEOF
3201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3202   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3203   ac_status=$?
3204   egrep -v '^ *\+' conftest.er1 >conftest.err
3205   rm -f conftest.er1
3206   cat conftest.err >&5
3207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); } >/dev/null; then
3209   if test -s conftest.err; then
3210     ac_cpp_err=$ac_c_preproc_warn_flag
3211   else
3212     ac_cpp_err=
3213   fi
3214 else
3215   ac_cpp_err=yes
3216 fi
3217 if test -z "$ac_cpp_err"; then
3218   ac_cv_header_stdc=yes
3219 else
3220   echo "$as_me: failed program was:" >&5
3221   cat conftest.$ac_ext >&5
3222   ac_cv_header_stdc=no
3223 fi
3224 rm -f conftest.err conftest.$ac_ext
3225
3226 if test $ac_cv_header_stdc = yes; then
3227   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3228   cat >conftest.$ac_ext <<_ACEOF
3229 #line $LINENO "configure"
3230 #include "confdefs.h"
3231 #include <string.h>
3232
3233 _ACEOF
3234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3235   egrep "memchr" >/dev/null 2>&1; then
3236   :
3237 else
3238   ac_cv_header_stdc=no
3239 fi
3240 rm -f conftest*
3241
3242 fi
3243
3244 if test $ac_cv_header_stdc = yes; then
3245   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3246   cat >conftest.$ac_ext <<_ACEOF
3247 #line $LINENO "configure"
3248 #include "confdefs.h"
3249 #include <stdlib.h>
3250
3251 _ACEOF
3252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3253   egrep "free" >/dev/null 2>&1; then
3254   :
3255 else
3256   ac_cv_header_stdc=no
3257 fi
3258 rm -f conftest*
3259
3260 fi
3261
3262 if test $ac_cv_header_stdc = yes; then
3263   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3264   if test "$cross_compiling" = yes; then
3265   :
3266 else
3267   cat >conftest.$ac_ext <<_ACEOF
3268 #line $LINENO "configure"
3269 #include "confdefs.h"
3270 #include <ctype.h>
3271 #if ((' ' & 0x0FF) == 0x020)
3272 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3273 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3274 #else
3275 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3276                      || ('j' <= (c) && (c) <= 'r') \
3277                      || ('s' <= (c) && (c) <= 'z'))
3278 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3279 #endif
3280
3281 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3282 int
3283 main ()
3284 {
3285   int i;
3286   for (i = 0; i < 256; i++)
3287     if (XOR (islower (i), ISLOWER (i))
3288         || toupper (i) != TOUPPER (i))
3289       exit(2);
3290   exit (0);
3291 }
3292 _ACEOF
3293 rm -f conftest$ac_exeext
3294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3295   (eval $ac_link) 2>&5
3296   ac_status=$?
3297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300   (eval $ac_try) 2>&5
3301   ac_status=$?
3302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303   (exit $ac_status); }; }; then
3304   :
3305 else
3306   echo "$as_me: program exited with status $ac_status" >&5
3307 echo "$as_me: failed program was:" >&5
3308 cat conftest.$ac_ext >&5
3309 ( exit $ac_status )
3310 ac_cv_header_stdc=no
3311 fi
3312 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3313 fi
3314 fi
3315 fi
3316 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3317 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3318 if test $ac_cv_header_stdc = yes; then
3319
3320 cat >>confdefs.h <<\_ACEOF
3321 #define STDC_HEADERS 1
3322 _ACEOF
3323
3324 fi
3325
3326 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3337                   inttypes.h stdint.h unistd.h
3338 do
3339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3340 echo "$as_me:$LINENO: checking for $ac_header" >&5
3341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3343   echo $ECHO_N "(cached) $ECHO_C" >&6
3344 else
3345   cat >conftest.$ac_ext <<_ACEOF
3346 #line $LINENO "configure"
3347 #include "confdefs.h"
3348 $ac_includes_default
3349
3350 #include <$ac_header>
3351 _ACEOF
3352 rm -f conftest.$ac_objext
3353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3354   (eval $ac_compile) 2>&5
3355   ac_status=$?
3356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357   (exit $ac_status); } &&
3358          { ac_try='test -s conftest.$ac_objext'
3359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360   (eval $ac_try) 2>&5
3361   ac_status=$?
3362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363   (exit $ac_status); }; }; then
3364   eval "$as_ac_Header=yes"
3365 else
3366   echo "$as_me: failed program was:" >&5
3367 cat conftest.$ac_ext >&5
3368 eval "$as_ac_Header=no"
3369 fi
3370 rm -f conftest.$ac_objext conftest.$ac_ext
3371 fi
3372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3375   cat >>confdefs.h <<_ACEOF
3376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3377 _ACEOF
3378
3379 fi
3380
3381 done
3382
3383
3384
3385
3386
3387 for ac_header in poll.h sys/devpoll.h sys/event.h
3388 do
3389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3391   echo "$as_me:$LINENO: checking for $ac_header" >&5
3392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3394   echo $ECHO_N "(cached) $ECHO_C" >&6
3395 fi
3396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3398 else
3399   # Is the header compilable?
3400 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3402 cat >conftest.$ac_ext <<_ACEOF
3403 #line $LINENO "configure"
3404 #include "confdefs.h"
3405 $ac_includes_default
3406 #include <$ac_header>
3407 _ACEOF
3408 rm -f conftest.$ac_objext
3409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3410   (eval $ac_compile) 2>&5
3411   ac_status=$?
3412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413   (exit $ac_status); } &&
3414          { ac_try='test -s conftest.$ac_objext'
3415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416   (eval $ac_try) 2>&5
3417   ac_status=$?
3418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419   (exit $ac_status); }; }; then
3420   ac_header_compiler=yes
3421 else
3422   echo "$as_me: failed program was:" >&5
3423 cat conftest.$ac_ext >&5
3424 ac_header_compiler=no
3425 fi
3426 rm -f conftest.$ac_objext conftest.$ac_ext
3427 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3428 echo "${ECHO_T}$ac_header_compiler" >&6
3429
3430 # Is the header present?
3431 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3433 cat >conftest.$ac_ext <<_ACEOF
3434 #line $LINENO "configure"
3435 #include "confdefs.h"
3436 #include <$ac_header>
3437 _ACEOF
3438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3439   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3440   ac_status=$?
3441   egrep -v '^ *\+' conftest.er1 >conftest.err
3442   rm -f conftest.er1
3443   cat conftest.err >&5
3444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445   (exit $ac_status); } >/dev/null; then
3446   if test -s conftest.err; then
3447     ac_cpp_err=$ac_c_preproc_warn_flag
3448   else
3449     ac_cpp_err=
3450   fi
3451 else
3452   ac_cpp_err=yes
3453 fi
3454 if test -z "$ac_cpp_err"; then
3455   ac_header_preproc=yes
3456 else
3457   echo "$as_me: failed program was:" >&5
3458   cat conftest.$ac_ext >&5
3459   ac_header_preproc=no
3460 fi
3461 rm -f conftest.err conftest.$ac_ext
3462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3463 echo "${ECHO_T}$ac_header_preproc" >&6
3464
3465 # So?  What about this header?
3466 case $ac_header_compiler:$ac_header_preproc in
3467   yes:no )
3468     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3470     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3472   no:yes )
3473     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3475     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3477     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3479 esac
3480 echo "$as_me:$LINENO: checking for $ac_header" >&5
3481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3483   echo $ECHO_N "(cached) $ECHO_C" >&6
3484 else
3485   eval "$as_ac_Header=$ac_header_preproc"
3486 fi
3487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3489
3490 fi
3491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3492   cat >>confdefs.h <<_ACEOF
3493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3494 _ACEOF
3495
3496 fi
3497
3498 done
3499
3500
3501 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3502 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3503 if test "${ac_cv_c_bigendian+set}" = set; then
3504   echo $ECHO_N "(cached) $ECHO_C" >&6
3505 else
3506   # See if sys/param.h defines the BYTE_ORDER macro.
3507 cat >conftest.$ac_ext <<_ACEOF
3508 #line $LINENO "configure"
3509 #include "confdefs.h"
3510 #include <sys/types.h>
3511 #include <sys/param.h>
3512
3513 #ifdef F77_DUMMY_MAIN
3514 #  ifdef __cplusplus
3515      extern "C"
3516 #  endif
3517    int F77_DUMMY_MAIN() { return 1; }
3518 #endif
3519 int
3520 main ()
3521 {
3522 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3523  bogus endian macros
3524 #endif
3525
3526   ;
3527   return 0;
3528 }
3529 _ACEOF
3530 rm -f conftest.$ac_objext
3531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3532   (eval $ac_compile) 2>&5
3533   ac_status=$?
3534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535   (exit $ac_status); } &&
3536          { ac_try='test -s conftest.$ac_objext'
3537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538   (eval $ac_try) 2>&5
3539   ac_status=$?
3540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541   (exit $ac_status); }; }; then
3542   # It does; now see whether it defined to BIG_ENDIAN or not.
3543 cat >conftest.$ac_ext <<_ACEOF
3544 #line $LINENO "configure"
3545 #include "confdefs.h"
3546 #include <sys/types.h>
3547 #include <sys/param.h>
3548
3549 #ifdef F77_DUMMY_MAIN
3550 #  ifdef __cplusplus
3551      extern "C"
3552 #  endif
3553    int F77_DUMMY_MAIN() { return 1; }
3554 #endif
3555 int
3556 main ()
3557 {
3558 #if BYTE_ORDER != BIG_ENDIAN
3559  not big endian
3560 #endif
3561
3562   ;
3563   return 0;
3564 }
3565 _ACEOF
3566 rm -f conftest.$ac_objext
3567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3568   (eval $ac_compile) 2>&5
3569   ac_status=$?
3570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571   (exit $ac_status); } &&
3572          { ac_try='test -s conftest.$ac_objext'
3573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574   (eval $ac_try) 2>&5
3575   ac_status=$?
3576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577   (exit $ac_status); }; }; then
3578   ac_cv_c_bigendian=yes
3579 else
3580   echo "$as_me: failed program was:" >&5
3581 cat conftest.$ac_ext >&5
3582 ac_cv_c_bigendian=no
3583 fi
3584 rm -f conftest.$ac_objext conftest.$ac_ext
3585 else
3586   echo "$as_me: failed program was:" >&5
3587 cat conftest.$ac_ext >&5
3588 # It does not; compile a test program.
3589 if test "$cross_compiling" = yes; then
3590   # try to guess the endianess by grep'ing values into an object file
3591   ac_cv_c_bigendian=unknown
3592   cat >conftest.$ac_ext <<_ACEOF
3593 #line $LINENO "configure"
3594 #include "confdefs.h"
3595 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3596 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3597 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3598 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3599 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3600 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3601 #ifdef F77_DUMMY_MAIN
3602 #  ifdef __cplusplus
3603      extern "C"
3604 #  endif
3605    int F77_DUMMY_MAIN() { return 1; }
3606 #endif
3607 int
3608 main ()
3609 {
3610  _ascii (); _ebcdic ();
3611   ;
3612   return 0;
3613 }
3614 _ACEOF
3615 rm -f conftest.$ac_objext
3616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3617   (eval $ac_compile) 2>&5
3618   ac_status=$?
3619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620   (exit $ac_status); } &&
3621          { ac_try='test -s conftest.$ac_objext'
3622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623   (eval $ac_try) 2>&5
3624   ac_status=$?
3625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626   (exit $ac_status); }; }; then
3627   if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3628   ac_cv_c_bigendian=yes
3629 fi
3630 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3631   if test "$ac_cv_c_bigendian" = unknown; then
3632     ac_cv_c_bigendian=no
3633   else
3634     # finding both strings is unlikely to happen, but who knows?
3635     ac_cv_c_bigendian=unknown
3636   fi
3637 fi
3638 else
3639   echo "$as_me: failed program was:" >&5
3640 cat conftest.$ac_ext >&5
3641 fi
3642 rm -f conftest.$ac_objext conftest.$ac_ext
3643 else
3644   cat >conftest.$ac_ext <<_ACEOF
3645 #line $LINENO "configure"
3646 #include "confdefs.h"
3647 int
3648 main ()
3649 {
3650   /* Are we little or big endian?  From Harbison&Steele.  */
3651   union
3652   {
3653     long l;
3654     char c[sizeof (long)];
3655   } u;
3656   u.l = 1;
3657   exit (u.c[sizeof (long) - 1] == 1);
3658 }
3659 _ACEOF
3660 rm -f conftest$ac_exeext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3662   (eval $ac_link) 2>&5
3663   ac_status=$?
3664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667   (eval $ac_try) 2>&5
3668   ac_status=$?
3669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670   (exit $ac_status); }; }; then
3671   ac_cv_c_bigendian=no
3672 else
3673   echo "$as_me: program exited with status $ac_status" >&5
3674 echo "$as_me: failed program was:" >&5
3675 cat conftest.$ac_ext >&5
3676 ( exit $ac_status )
3677 ac_cv_c_bigendian=yes
3678 fi
3679 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3680 fi
3681 fi
3682 rm -f conftest.$ac_objext conftest.$ac_ext
3683 fi
3684 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3685 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3686 case $ac_cv_c_bigendian in
3687   yes)
3688
3689 cat >>confdefs.h <<\_ACEOF
3690 #define WORDS_BIGENDIAN 1
3691 _ACEOF
3692  ;;
3693   no)
3694      ;;
3695   *)
3696     { { echo "$as_me:$LINENO: error: unknown endianess
3697 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3698 echo "$as_me: error: unknown endianess
3699 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3700    { (exit 1); exit 1; }; } ;;
3701 esac
3702
3703 echo "$as_me:$LINENO: checking for size_t" >&5
3704 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3705 if test "${ac_cv_type_size_t+set}" = set; then
3706   echo $ECHO_N "(cached) $ECHO_C" >&6
3707 else
3708   cat >conftest.$ac_ext <<_ACEOF
3709 #line $LINENO "configure"
3710 #include "confdefs.h"
3711 $ac_includes_default
3712 #ifdef F77_DUMMY_MAIN
3713 #  ifdef __cplusplus
3714      extern "C"
3715 #  endif
3716    int F77_DUMMY_MAIN() { return 1; }
3717 #endif
3718 int
3719 main ()
3720 {
3721 if ((size_t *) 0)
3722   return 0;
3723 if (sizeof (size_t))
3724   return 0;
3725   ;
3726   return 0;
3727 }
3728 _ACEOF
3729 rm -f conftest.$ac_objext
3730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3731   (eval $ac_compile) 2>&5
3732   ac_status=$?
3733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734   (exit $ac_status); } &&
3735          { ac_try='test -s conftest.$ac_objext'
3736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3737   (eval $ac_try) 2>&5
3738   ac_status=$?
3739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740   (exit $ac_status); }; }; then
3741   ac_cv_type_size_t=yes
3742 else
3743   echo "$as_me: failed program was:" >&5
3744 cat conftest.$ac_ext >&5
3745 ac_cv_type_size_t=no
3746 fi
3747 rm -f conftest.$ac_objext conftest.$ac_ext
3748 fi
3749 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3750 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3751 if test $ac_cv_type_size_t = yes; then
3752   :
3753 else
3754
3755 cat >>confdefs.h <<_ACEOF
3756 #define size_t unsigned
3757 _ACEOF
3758
3759 fi
3760
3761 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3762 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3763 if test "${ac_cv_header_time+set}" = set; then
3764   echo $ECHO_N "(cached) $ECHO_C" >&6
3765 else
3766   cat >conftest.$ac_ext <<_ACEOF
3767 #line $LINENO "configure"
3768 #include "confdefs.h"
3769 #include <sys/types.h>
3770 #include <sys/time.h>
3771 #include <time.h>
3772
3773 #ifdef F77_DUMMY_MAIN
3774 #  ifdef __cplusplus
3775      extern "C"
3776 #  endif
3777    int F77_DUMMY_MAIN() { return 1; }
3778 #endif
3779 int
3780 main ()
3781 {
3782 if ((struct tm *) 0)
3783 return 0;
3784   ;
3785   return 0;
3786 }
3787 _ACEOF
3788 rm -f conftest.$ac_objext
3789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3790   (eval $ac_compile) 2>&5
3791   ac_status=$?
3792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793   (exit $ac_status); } &&
3794          { ac_try='test -s conftest.$ac_objext'
3795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796   (eval $ac_try) 2>&5
3797   ac_status=$?
3798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799   (exit $ac_status); }; }; then
3800   ac_cv_header_time=yes
3801 else
3802   echo "$as_me: failed program was:" >&5
3803 cat conftest.$ac_ext >&5
3804 ac_cv_header_time=no
3805 fi
3806 rm -f conftest.$ac_objext conftest.$ac_ext
3807 fi
3808 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3809 echo "${ECHO_T}$ac_cv_header_time" >&6
3810 if test $ac_cv_header_time = yes; then
3811
3812 cat >>confdefs.h <<\_ACEOF
3813 #define TIME_WITH_SYS_TIME 1
3814 _ACEOF
3815
3816 fi
3817
3818 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
3819 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3820 if test "${ac_cv_struct_tm+set}" = set; then
3821   echo $ECHO_N "(cached) $ECHO_C" >&6
3822 else
3823   cat >conftest.$ac_ext <<_ACEOF
3824 #line $LINENO "configure"
3825 #include "confdefs.h"
3826 #include <sys/types.h>
3827 #include <time.h>
3828
3829 #ifdef F77_DUMMY_MAIN
3830 #  ifdef __cplusplus
3831      extern "C"
3832 #  endif
3833    int F77_DUMMY_MAIN() { return 1; }
3834 #endif
3835 int
3836 main ()
3837 {
3838 struct tm *tp; tp->tm_sec;
3839   ;
3840   return 0;
3841 }
3842 _ACEOF
3843 rm -f conftest.$ac_objext
3844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3845   (eval $ac_compile) 2>&5
3846   ac_status=$?
3847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848   (exit $ac_status); } &&
3849          { ac_try='test -s conftest.$ac_objext'
3850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3851   (eval $ac_try) 2>&5
3852   ac_status=$?
3853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854   (exit $ac_status); }; }; then
3855   ac_cv_struct_tm=time.h
3856 else
3857   echo "$as_me: failed program was:" >&5
3858 cat conftest.$ac_ext >&5
3859 ac_cv_struct_tm=sys/time.h
3860 fi
3861 rm -f conftest.$ac_objext conftest.$ac_ext
3862 fi
3863 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
3864 echo "${ECHO_T}$ac_cv_struct_tm" >&6
3865 if test $ac_cv_struct_tm = sys/time.h; then
3866
3867 cat >>confdefs.h <<\_ACEOF
3868 #define TM_IN_SYS_TIME 1
3869 _ACEOF
3870
3871 fi
3872
3873 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
3874 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
3875 if test "${ac_cv_type_uid_t+set}" = set; then
3876   echo $ECHO_N "(cached) $ECHO_C" >&6
3877 else
3878   cat >conftest.$ac_ext <<_ACEOF
3879 #line $LINENO "configure"
3880 #include "confdefs.h"
3881 #include <sys/types.h>
3882
3883 _ACEOF
3884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3885   egrep "uid_t" >/dev/null 2>&1; then
3886   ac_cv_type_uid_t=yes
3887 else
3888   ac_cv_type_uid_t=no
3889 fi
3890 rm -f conftest*
3891
3892 fi
3893 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
3894 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
3895 if test $ac_cv_type_uid_t = no; then
3896
3897 cat >>confdefs.h <<\_ACEOF
3898 #define uid_t int
3899 _ACEOF
3900
3901
3902 cat >>confdefs.h <<\_ACEOF
3903 #define gid_t int
3904 _ACEOF
3905
3906 fi
3907
3908 echo "$as_me:$LINENO: checking for short" >&5
3909 echo $ECHO_N "checking for short... $ECHO_C" >&6
3910 if test "${ac_cv_type_short+set}" = set; then
3911   echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913   cat >conftest.$ac_ext <<_ACEOF
3914 #line $LINENO "configure"
3915 #include "confdefs.h"
3916 $ac_includes_default
3917 #ifdef F77_DUMMY_MAIN
3918 #  ifdef __cplusplus
3919      extern "C"
3920 #  endif
3921    int F77_DUMMY_MAIN() { return 1; }
3922 #endif
3923 int
3924 main ()
3925 {
3926 if ((short *) 0)
3927   return 0;
3928 if (sizeof (short))
3929   return 0;
3930   ;
3931   return 0;
3932 }
3933 _ACEOF
3934 rm -f conftest.$ac_objext
3935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3936   (eval $ac_compile) 2>&5
3937   ac_status=$?
3938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939   (exit $ac_status); } &&
3940          { ac_try='test -s conftest.$ac_objext'
3941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942   (eval $ac_try) 2>&5
3943   ac_status=$?
3944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945   (exit $ac_status); }; }; then
3946   ac_cv_type_short=yes
3947 else
3948   echo "$as_me: failed program was:" >&5
3949 cat conftest.$ac_ext >&5
3950 ac_cv_type_short=no
3951 fi
3952 rm -f conftest.$ac_objext conftest.$ac_ext
3953 fi
3954 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3955 echo "${ECHO_T}$ac_cv_type_short" >&6
3956
3957 echo "$as_me:$LINENO: checking size of short" >&5
3958 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3959 if test "${ac_cv_sizeof_short+set}" = set; then
3960   echo $ECHO_N "(cached) $ECHO_C" >&6
3961 else
3962   if test "$ac_cv_type_short" = yes; then
3963   # The cast to unsigned long works around a bug in the HP C Compiler
3964   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3965   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3966   # This bug is HP SR number 8606223364.
3967   if test "$cross_compiling" = yes; then
3968   # Depending upon the size, compute the lo and hi bounds.
3969 cat >conftest.$ac_ext <<_ACEOF
3970 #line $LINENO "configure"
3971 #include "confdefs.h"
3972 $ac_includes_default
3973 #ifdef F77_DUMMY_MAIN
3974 #  ifdef __cplusplus
3975      extern "C"
3976 #  endif
3977    int F77_DUMMY_MAIN() { return 1; }
3978 #endif
3979 int
3980 main ()
3981 {
3982 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3983 test_array [0] = 0
3984
3985   ;
3986   return 0;
3987 }
3988 _ACEOF
3989 rm -f conftest.$ac_objext
3990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3991   (eval $ac_compile) 2>&5
3992   ac_status=$?
3993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994   (exit $ac_status); } &&
3995          { ac_try='test -s conftest.$ac_objext'
3996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997   (eval $ac_try) 2>&5
3998   ac_status=$?
3999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000   (exit $ac_status); }; }; then
4001   ac_lo=0 ac_mid=0
4002   while :; do
4003     cat >conftest.$ac_ext <<_ACEOF
4004 #line $LINENO "configure"
4005 #include "confdefs.h"
4006 $ac_includes_default
4007 #ifdef F77_DUMMY_MAIN
4008 #  ifdef __cplusplus
4009      extern "C"
4010 #  endif
4011    int F77_DUMMY_MAIN() { return 1; }
4012 #endif
4013 int
4014 main ()
4015 {
4016 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4017 test_array [0] = 0
4018
4019   ;
4020   return 0;
4021 }
4022 _ACEOF
4023 rm -f conftest.$ac_objext
4024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4025   (eval $ac_compile) 2>&5
4026   ac_status=$?
4027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028   (exit $ac_status); } &&
4029          { ac_try='test -s conftest.$ac_objext'
4030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031   (eval $ac_try) 2>&5
4032   ac_status=$?
4033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034   (exit $ac_status); }; }; then
4035   ac_hi=$ac_mid; break
4036 else
4037   echo "$as_me: failed program was:" >&5
4038 cat conftest.$ac_ext >&5
4039 ac_lo=`expr $ac_mid + 1`
4040                     if test $ac_lo -le $ac_mid; then
4041                       ac_lo= ac_hi=
4042                       break
4043                     fi
4044                     ac_mid=`expr 2 '*' $ac_mid + 1`
4045 fi
4046 rm -f conftest.$ac_objext conftest.$ac_ext
4047   done
4048 else
4049   echo "$as_me: failed program was:" >&5
4050 cat conftest.$ac_ext >&5
4051 cat >conftest.$ac_ext <<_ACEOF
4052 #line $LINENO "configure"
4053 #include "confdefs.h"
4054 $ac_includes_default
4055 #ifdef F77_DUMMY_MAIN
4056 #  ifdef __cplusplus
4057      extern "C"
4058 #  endif
4059    int F77_DUMMY_MAIN() { return 1; }
4060 #endif
4061 int
4062 main ()
4063 {
4064 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4065 test_array [0] = 0
4066
4067   ;
4068   return 0;
4069 }
4070 _ACEOF
4071 rm -f conftest.$ac_objext
4072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4073   (eval $ac_compile) 2>&5
4074   ac_status=$?
4075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076   (exit $ac_status); } &&
4077          { ac_try='test -s conftest.$ac_objext'
4078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079   (eval $ac_try) 2>&5
4080   ac_status=$?
4081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082   (exit $ac_status); }; }; then
4083   ac_hi=-1 ac_mid=-1
4084   while :; do
4085     cat >conftest.$ac_ext <<_ACEOF
4086 #line $LINENO "configure"
4087 #include "confdefs.h"
4088 $ac_includes_default
4089 #ifdef F77_DUMMY_MAIN
4090 #  ifdef __cplusplus
4091      extern "C"
4092 #  endif
4093    int F77_DUMMY_MAIN() { return 1; }
4094 #endif
4095 int
4096 main ()
4097 {
4098 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4099 test_array [0] = 0
4100
4101   ;
4102   return 0;
4103 }
4104 _ACEOF
4105 rm -f conftest.$ac_objext
4106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4107   (eval $ac_compile) 2>&5
4108   ac_status=$?
4109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110   (exit $ac_status); } &&
4111          { ac_try='test -s conftest.$ac_objext'
4112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113   (eval $ac_try) 2>&5
4114   ac_status=$?
4115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116   (exit $ac_status); }; }; then
4117   ac_lo=$ac_mid; break
4118 else
4119   echo "$as_me: failed program was:" >&5
4120 cat conftest.$ac_ext >&5
4121 ac_hi=`expr '(' $ac_mid ')' - 1`
4122                        if test $ac_mid -le $ac_hi; then
4123                          ac_lo= ac_hi=
4124                          break
4125                        fi
4126                        ac_mid=`expr 2 '*' $ac_mid`
4127 fi
4128 rm -f conftest.$ac_objext conftest.$ac_ext
4129   done
4130 else
4131   echo "$as_me: failed program was:" >&5
4132 cat conftest.$ac_ext >&5
4133 ac_lo= ac_hi=
4134 fi
4135 rm -f conftest.$ac_objext conftest.$ac_ext
4136 fi
4137 rm -f conftest.$ac_objext conftest.$ac_ext
4138 # Binary search between lo and hi bounds.
4139 while test "x$ac_lo" != "x$ac_hi"; do
4140   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4141   cat >conftest.$ac_ext <<_ACEOF
4142 #line $LINENO "configure"
4143 #include "confdefs.h"
4144 $ac_includes_default
4145 #ifdef F77_DUMMY_MAIN
4146 #  ifdef __cplusplus
4147      extern "C"
4148 #  endif
4149    int F77_DUMMY_MAIN() { return 1; }
4150 #endif
4151 int
4152 main ()
4153 {
4154 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4155 test_array [0] = 0
4156
4157   ;
4158   return 0;
4159 }
4160 _ACEOF
4161 rm -f conftest.$ac_objext
4162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4163   (eval $ac_compile) 2>&5
4164   ac_status=$?
4165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166   (exit $ac_status); } &&
4167          { ac_try='test -s conftest.$ac_objext'
4168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169   (eval $ac_try) 2>&5
4170   ac_status=$?
4171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172   (exit $ac_status); }; }; then
4173   ac_hi=$ac_mid
4174 else
4175   echo "$as_me: failed program was:" >&5
4176 cat conftest.$ac_ext >&5
4177 ac_lo=`expr '(' $ac_mid ')' + 1`
4178 fi
4179 rm -f conftest.$ac_objext conftest.$ac_ext
4180 done
4181 case $ac_lo in
4182 ?*) ac_cv_sizeof_short=$ac_lo;;
4183 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4184 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4185    { (exit 1); exit 1; }; } ;;
4186 esac
4187 else
4188   if test "$cross_compiling" = yes; then
4189   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4190 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4191    { (exit 1); exit 1; }; }
4192 else
4193   cat >conftest.$ac_ext <<_ACEOF
4194 #line $LINENO "configure"
4195 #include "confdefs.h"
4196 $ac_includes_default
4197 long longval () { return (long) (sizeof (short)); }
4198 unsigned long ulongval () { return (long) (sizeof (short)); }
4199 #include <stdio.h>
4200 #include <stdlib.h>
4201 #ifdef F77_DUMMY_MAIN
4202 #  ifdef __cplusplus
4203      extern "C"
4204 #  endif
4205    int F77_DUMMY_MAIN() { return 1; }
4206 #endif
4207 int
4208 main ()
4209 {
4210
4211   FILE *f = fopen ("conftest.val", "w");
4212   if (! f)
4213     exit (1);
4214   if (((long) (sizeof (short))) < 0)
4215     {
4216       long i = longval ();
4217       if (i != ((long) (sizeof (short))))
4218         exit (1);
4219       fprintf (f, "%ld\n", i);
4220     }
4221   else
4222     {
4223       unsigned long i = ulongval ();
4224       if (i != ((long) (sizeof (short))))
4225         exit (1);
4226       fprintf (f, "%lu\n", i);
4227     }
4228   exit (ferror (f) || fclose (f) != 0);
4229
4230   ;
4231   return 0;
4232 }
4233 _ACEOF
4234 rm -f conftest$ac_exeext
4235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4236   (eval $ac_link) 2>&5
4237   ac_status=$?
4238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241   (eval $ac_try) 2>&5
4242   ac_status=$?
4243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244   (exit $ac_status); }; }; then
4245   ac_cv_sizeof_short=`cat conftest.val`
4246 else
4247   echo "$as_me: program exited with status $ac_status" >&5
4248 echo "$as_me: failed program was:" >&5
4249 cat conftest.$ac_ext >&5
4250 ( exit $ac_status )
4251 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4252 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4253    { (exit 1); exit 1; }; }
4254 fi
4255 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4256 fi
4257 fi
4258 rm -f conftest.val
4259 else
4260   ac_cv_sizeof_short=0
4261 fi
4262 fi
4263 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4264 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4265 cat >>confdefs.h <<_ACEOF
4266 #define SIZEOF_SHORT $ac_cv_sizeof_short
4267 _ACEOF
4268
4269
4270 echo "$as_me:$LINENO: checking for int" >&5
4271 echo $ECHO_N "checking for int... $ECHO_C" >&6
4272 if test "${ac_cv_type_int+set}" = set; then
4273   echo $ECHO_N "(cached) $ECHO_C" >&6
4274 else
4275   cat >conftest.$ac_ext <<_ACEOF
4276 #line $LINENO "configure"
4277 #include "confdefs.h"
4278 $ac_includes_default
4279 #ifdef F77_DUMMY_MAIN
4280 #  ifdef __cplusplus
4281      extern "C"
4282 #  endif
4283    int F77_DUMMY_MAIN() { return 1; }
4284 #endif
4285 int
4286 main ()
4287 {
4288 if ((int *) 0)
4289   return 0;
4290 if (sizeof (int))
4291   return 0;
4292   ;
4293   return 0;
4294 }
4295 _ACEOF
4296 rm -f conftest.$ac_objext
4297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4298   (eval $ac_compile) 2>&5
4299   ac_status=$?
4300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301   (exit $ac_status); } &&
4302          { ac_try='test -s conftest.$ac_objext'
4303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304   (eval $ac_try) 2>&5
4305   ac_status=$?
4306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307   (exit $ac_status); }; }; then
4308   ac_cv_type_int=yes
4309 else
4310   echo "$as_me: failed program was:" >&5
4311 cat conftest.$ac_ext >&5
4312 ac_cv_type_int=no
4313 fi
4314 rm -f conftest.$ac_objext conftest.$ac_ext
4315 fi
4316 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4317 echo "${ECHO_T}$ac_cv_type_int" >&6
4318
4319 echo "$as_me:$LINENO: checking size of int" >&5
4320 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4321 if test "${ac_cv_sizeof_int+set}" = set; then
4322   echo $ECHO_N "(cached) $ECHO_C" >&6
4323 else
4324   if test "$ac_cv_type_int" = yes; then
4325   # The cast to unsigned long works around a bug in the HP C Compiler
4326   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4327   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4328   # This bug is HP SR number 8606223364.
4329   if test "$cross_compiling" = yes; then
4330   # Depending upon the size, compute the lo and hi bounds.
4331 cat >conftest.$ac_ext <<_ACEOF
4332 #line $LINENO "configure"
4333 #include "confdefs.h"
4334 $ac_includes_default
4335 #ifdef F77_DUMMY_MAIN
4336 #  ifdef __cplusplus
4337      extern "C"
4338 #  endif
4339    int F77_DUMMY_MAIN() { return 1; }
4340 #endif
4341 int
4342 main ()
4343 {
4344 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4345 test_array [0] = 0
4346
4347   ;
4348   return 0;
4349 }
4350 _ACEOF
4351 rm -f conftest.$ac_objext
4352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4353   (eval $ac_compile) 2>&5
4354   ac_status=$?
4355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356   (exit $ac_status); } &&
4357          { ac_try='test -s conftest.$ac_objext'
4358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359   (eval $ac_try) 2>&5
4360   ac_status=$?
4361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362   (exit $ac_status); }; }; then
4363   ac_lo=0 ac_mid=0
4364   while :; do
4365     cat >conftest.$ac_ext <<_ACEOF
4366 #line $LINENO "configure"
4367 #include "confdefs.h"
4368 $ac_includes_default
4369 #ifdef F77_DUMMY_MAIN
4370 #  ifdef __cplusplus
4371      extern "C"
4372 #  endif
4373    int F77_DUMMY_MAIN() { return 1; }
4374 #endif
4375 int
4376 main ()
4377 {
4378 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4379 test_array [0] = 0
4380
4381   ;
4382   return 0;
4383 }
4384 _ACEOF
4385 rm -f conftest.$ac_objext
4386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4387   (eval $ac_compile) 2>&5
4388   ac_status=$?
4389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390   (exit $ac_status); } &&
4391          { ac_try='test -s conftest.$ac_objext'
4392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393   (eval $ac_try) 2>&5
4394   ac_status=$?
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); }; }; then
4397   ac_hi=$ac_mid; break
4398 else
4399   echo "$as_me: failed program was:" >&5
4400 cat conftest.$ac_ext >&5
4401 ac_lo=`expr $ac_mid + 1`
4402                     if test $ac_lo -le $ac_mid; then
4403                       ac_lo= ac_hi=
4404                       break
4405                     fi
4406                     ac_mid=`expr 2 '*' $ac_mid + 1`
4407 fi
4408 rm -f conftest.$ac_objext conftest.$ac_ext
4409   done
4410 else
4411   echo "$as_me: failed program was:" >&5
4412 cat conftest.$ac_ext >&5
4413 cat >conftest.$ac_ext <<_ACEOF
4414 #line $LINENO "configure"
4415 #include "confdefs.h"
4416 $ac_includes_default
4417 #ifdef F77_DUMMY_MAIN
4418 #  ifdef __cplusplus
4419      extern "C"
4420 #  endif
4421    int F77_DUMMY_MAIN() { return 1; }
4422 #endif
4423 int
4424 main ()
4425 {
4426 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4427 test_array [0] = 0
4428
4429   ;
4430   return 0;
4431 }
4432 _ACEOF
4433 rm -f conftest.$ac_objext
4434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4435   (eval $ac_compile) 2>&5
4436   ac_status=$?
4437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438   (exit $ac_status); } &&
4439          { ac_try='test -s conftest.$ac_objext'
4440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4441   (eval $ac_try) 2>&5
4442   ac_status=$?
4443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444   (exit $ac_status); }; }; then
4445   ac_hi=-1 ac_mid=-1
4446   while :; do
4447     cat >conftest.$ac_ext <<_ACEOF
4448 #line $LINENO "configure"
4449 #include "confdefs.h"
4450 $ac_includes_default
4451 #ifdef F77_DUMMY_MAIN
4452 #  ifdef __cplusplus
4453      extern "C"
4454 #  endif
4455    int F77_DUMMY_MAIN() { return 1; }
4456 #endif
4457 int
4458 main ()
4459 {
4460 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4461 test_array [0] = 0
4462
4463   ;
4464   return 0;
4465 }
4466 _ACEOF
4467 rm -f conftest.$ac_objext
4468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4469   (eval $ac_compile) 2>&5
4470   ac_status=$?
4471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472   (exit $ac_status); } &&
4473          { ac_try='test -s conftest.$ac_objext'
4474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475   (eval $ac_try) 2>&5
4476   ac_status=$?
4477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478   (exit $ac_status); }; }; then
4479   ac_lo=$ac_mid; break
4480 else
4481   echo "$as_me: failed program was:" >&5
4482 cat conftest.$ac_ext >&5
4483 ac_hi=`expr '(' $ac_mid ')' - 1`
4484                        if test $ac_mid -le $ac_hi; then
4485                          ac_lo= ac_hi=
4486                          break
4487                        fi
4488                        ac_mid=`expr 2 '*' $ac_mid`
4489 fi
4490 rm -f conftest.$ac_objext conftest.$ac_ext
4491   done
4492 else
4493   echo "$as_me: failed program was:" >&5
4494 cat conftest.$ac_ext >&5
4495 ac_lo= ac_hi=
4496 fi
4497 rm -f conftest.$ac_objext conftest.$ac_ext
4498 fi
4499 rm -f conftest.$ac_objext conftest.$ac_ext
4500 # Binary search between lo and hi bounds.
4501 while test "x$ac_lo" != "x$ac_hi"; do
4502   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4503   cat >conftest.$ac_ext <<_ACEOF
4504 #line $LINENO "configure"
4505 #include "confdefs.h"
4506 $ac_includes_default
4507 #ifdef F77_DUMMY_MAIN
4508 #  ifdef __cplusplus
4509      extern "C"
4510 #  endif
4511    int F77_DUMMY_MAIN() { return 1; }
4512 #endif
4513 int
4514 main ()
4515 {
4516 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4517 test_array [0] = 0
4518
4519   ;
4520   return 0;
4521 }
4522 _ACEOF
4523 rm -f conftest.$ac_objext
4524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4525   (eval $ac_compile) 2>&5
4526   ac_status=$?
4527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528   (exit $ac_status); } &&
4529          { ac_try='test -s conftest.$ac_objext'
4530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531   (eval $ac_try) 2>&5
4532   ac_status=$?
4533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534   (exit $ac_status); }; }; then
4535   ac_hi=$ac_mid
4536 else
4537   echo "$as_me: failed program was:" >&5
4538 cat conftest.$ac_ext >&5
4539 ac_lo=`expr '(' $ac_mid ')' + 1`
4540 fi
4541 rm -f conftest.$ac_objext conftest.$ac_ext
4542 done
4543 case $ac_lo in
4544 ?*) ac_cv_sizeof_int=$ac_lo;;
4545 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
4546 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
4547    { (exit 1); exit 1; }; } ;;
4548 esac
4549 else
4550   if test "$cross_compiling" = yes; then
4551   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4552 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4553    { (exit 1); exit 1; }; }
4554 else
4555   cat >conftest.$ac_ext <<_ACEOF
4556 #line $LINENO "configure"
4557 #include "confdefs.h"
4558 $ac_includes_default
4559 long longval () { return (long) (sizeof (int)); }
4560 unsigned long ulongval () { return (long) (sizeof (int)); }
4561 #include <stdio.h>
4562 #include <stdlib.h>
4563 #ifdef F77_DUMMY_MAIN
4564 #  ifdef __cplusplus
4565      extern "C"
4566 #  endif
4567    int F77_DUMMY_MAIN() { return 1; }
4568 #endif
4569 int
4570 main ()
4571 {
4572
4573   FILE *f = fopen ("conftest.val", "w");
4574   if (! f)
4575     exit (1);
4576   if (((long) (sizeof (int))) < 0)
4577     {
4578       long i = longval ();
4579       if (i != ((long) (sizeof (int))))
4580         exit (1);
4581       fprintf (f, "%ld\n", i);
4582     }
4583   else
4584     {
4585       unsigned long i = ulongval ();
4586       if (i != ((long) (sizeof (int))))
4587         exit (1);
4588       fprintf (f, "%lu\n", i);
4589     }
4590   exit (ferror (f) || fclose (f) != 0);
4591
4592   ;
4593   return 0;
4594 }
4595 _ACEOF
4596 rm -f conftest$ac_exeext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4598   (eval $ac_link) 2>&5
4599   ac_status=$?
4600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603   (eval $ac_try) 2>&5
4604   ac_status=$?
4605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606   (exit $ac_status); }; }; then
4607   ac_cv_sizeof_int=`cat conftest.val`
4608 else
4609   echo "$as_me: program exited with status $ac_status" >&5
4610 echo "$as_me: failed program was:" >&5
4611 cat conftest.$ac_ext >&5
4612 ( exit $ac_status )
4613 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
4614 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
4615    { (exit 1); exit 1; }; }
4616 fi
4617 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4618 fi
4619 fi
4620 rm -f conftest.val
4621 else
4622   ac_cv_sizeof_int=0
4623 fi
4624 fi
4625 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4626 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4627 cat >>confdefs.h <<_ACEOF
4628 #define SIZEOF_INT $ac_cv_sizeof_int
4629 _ACEOF
4630
4631
4632 echo "$as_me:$LINENO: checking for long" >&5
4633 echo $ECHO_N "checking for long... $ECHO_C" >&6
4634 if test "${ac_cv_type_long+set}" = set; then
4635   echo $ECHO_N "(cached) $ECHO_C" >&6
4636 else
4637   cat >conftest.$ac_ext <<_ACEOF
4638 #line $LINENO "configure"
4639 #include "confdefs.h"
4640 $ac_includes_default
4641 #ifdef F77_DUMMY_MAIN
4642 #  ifdef __cplusplus
4643      extern "C"
4644 #  endif
4645    int F77_DUMMY_MAIN() { return 1; }
4646 #endif
4647 int
4648 main ()
4649 {
4650 if ((long *) 0)
4651   return 0;
4652 if (sizeof (long))
4653   return 0;
4654   ;
4655   return 0;
4656 }
4657 _ACEOF
4658 rm -f conftest.$ac_objext
4659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4660   (eval $ac_compile) 2>&5
4661   ac_status=$?
4662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); } &&
4664          { ac_try='test -s conftest.$ac_objext'
4665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666   (eval $ac_try) 2>&5
4667   ac_status=$?
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); }; }; then
4670   ac_cv_type_long=yes
4671 else
4672   echo "$as_me: failed program was:" >&5
4673 cat conftest.$ac_ext >&5
4674 ac_cv_type_long=no
4675 fi
4676 rm -f conftest.$ac_objext conftest.$ac_ext
4677 fi
4678 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4679 echo "${ECHO_T}$ac_cv_type_long" >&6
4680
4681 echo "$as_me:$LINENO: checking size of long" >&5
4682 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4683 if test "${ac_cv_sizeof_long+set}" = set; then
4684   echo $ECHO_N "(cached) $ECHO_C" >&6
4685 else
4686   if test "$ac_cv_type_long" = yes; then
4687   # The cast to unsigned long works around a bug in the HP C Compiler
4688   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4689   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4690   # This bug is HP SR number 8606223364.
4691   if test "$cross_compiling" = yes; then
4692   # Depending upon the size, compute the lo and hi bounds.
4693 cat >conftest.$ac_ext <<_ACEOF
4694 #line $LINENO "configure"
4695 #include "confdefs.h"
4696 $ac_includes_default
4697 #ifdef F77_DUMMY_MAIN
4698 #  ifdef __cplusplus
4699      extern "C"
4700 #  endif
4701    int F77_DUMMY_MAIN() { return 1; }
4702 #endif
4703 int
4704 main ()
4705 {
4706 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4707 test_array [0] = 0
4708
4709   ;
4710   return 0;
4711 }
4712 _ACEOF
4713 rm -f conftest.$ac_objext
4714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4715   (eval $ac_compile) 2>&5
4716   ac_status=$?
4717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718   (exit $ac_status); } &&
4719          { ac_try='test -s conftest.$ac_objext'
4720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721   (eval $ac_try) 2>&5
4722   ac_status=$?
4723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724   (exit $ac_status); }; }; then
4725   ac_lo=0 ac_mid=0
4726   while :; do
4727     cat >conftest.$ac_ext <<_ACEOF
4728 #line $LINENO "configure"
4729 #include "confdefs.h"
4730 $ac_includes_default
4731 #ifdef F77_DUMMY_MAIN
4732 #  ifdef __cplusplus
4733      extern "C"
4734 #  endif
4735    int F77_DUMMY_MAIN() { return 1; }
4736 #endif
4737 int
4738 main ()
4739 {
4740 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4741 test_array [0] = 0
4742
4743   ;
4744   return 0;
4745 }
4746 _ACEOF
4747 rm -f conftest.$ac_objext
4748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4749   (eval $ac_compile) 2>&5
4750   ac_status=$?
4751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752   (exit $ac_status); } &&
4753          { ac_try='test -s conftest.$ac_objext'
4754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755   (eval $ac_try) 2>&5
4756   ac_status=$?
4757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758   (exit $ac_status); }; }; then
4759   ac_hi=$ac_mid; break
4760 else
4761   echo "$as_me: failed program was:" >&5
4762 cat conftest.$ac_ext >&5
4763 ac_lo=`expr $ac_mid + 1`
4764                     if test $ac_lo -le $ac_mid; then
4765                       ac_lo= ac_hi=
4766                       break
4767                     fi
4768                     ac_mid=`expr 2 '*' $ac_mid + 1`
4769 fi
4770 rm -f conftest.$ac_objext conftest.$ac_ext
4771   done
4772 else
4773   echo "$as_me: failed program was:" >&5
4774 cat conftest.$ac_ext >&5
4775 cat >conftest.$ac_ext <<_ACEOF
4776 #line $LINENO "configure"
4777 #include "confdefs.h"
4778 $ac_includes_default
4779 #ifdef F77_DUMMY_MAIN
4780 #  ifdef __cplusplus
4781      extern "C"
4782 #  endif
4783    int F77_DUMMY_MAIN() { return 1; }
4784 #endif
4785 int
4786 main ()
4787 {
4788 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4789 test_array [0] = 0
4790
4791   ;
4792   return 0;
4793 }
4794 _ACEOF
4795 rm -f conftest.$ac_objext
4796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4797   (eval $ac_compile) 2>&5
4798   ac_status=$?
4799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800   (exit $ac_status); } &&
4801          { ac_try='test -s conftest.$ac_objext'
4802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803   (eval $ac_try) 2>&5
4804   ac_status=$?
4805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806   (exit $ac_status); }; }; then
4807   ac_hi=-1 ac_mid=-1
4808   while :; do
4809     cat >conftest.$ac_ext <<_ACEOF
4810 #line $LINENO "configure"
4811 #include "confdefs.h"
4812 $ac_includes_default
4813 #ifdef F77_DUMMY_MAIN
4814 #  ifdef __cplusplus
4815      extern "C"
4816 #  endif
4817    int F77_DUMMY_MAIN() { return 1; }
4818 #endif
4819 int
4820 main ()
4821 {
4822 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4823 test_array [0] = 0
4824
4825   ;
4826   return 0;
4827 }
4828 _ACEOF
4829 rm -f conftest.$ac_objext
4830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4831   (eval $ac_compile) 2>&5
4832   ac_status=$?
4833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834   (exit $ac_status); } &&
4835          { ac_try='test -s conftest.$ac_objext'
4836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4837   (eval $ac_try) 2>&5
4838   ac_status=$?
4839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840   (exit $ac_status); }; }; then
4841   ac_lo=$ac_mid; break
4842 else
4843   echo "$as_me: failed program was:" >&5
4844 cat conftest.$ac_ext >&5
4845 ac_hi=`expr '(' $ac_mid ')' - 1`
4846                        if test $ac_mid -le $ac_hi; then
4847                          ac_lo= ac_hi=
4848                          break
4849                        fi
4850                        ac_mid=`expr 2 '*' $ac_mid`
4851 fi
4852 rm -f conftest.$ac_objext conftest.$ac_ext
4853   done
4854 else
4855   echo "$as_me: failed program was:" >&5
4856 cat conftest.$ac_ext >&5
4857 ac_lo= ac_hi=
4858 fi
4859 rm -f conftest.$ac_objext conftest.$ac_ext
4860 fi
4861 rm -f conftest.$ac_objext conftest.$ac_ext
4862 # Binary search between lo and hi bounds.
4863 while test "x$ac_lo" != "x$ac_hi"; do
4864   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4865   cat >conftest.$ac_ext <<_ACEOF
4866 #line $LINENO "configure"
4867 #include "confdefs.h"
4868 $ac_includes_default
4869 #ifdef F77_DUMMY_MAIN
4870 #  ifdef __cplusplus
4871      extern "C"
4872 #  endif
4873    int F77_DUMMY_MAIN() { return 1; }
4874 #endif
4875 int
4876 main ()
4877 {
4878 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4879 test_array [0] = 0
4880
4881   ;
4882   return 0;
4883 }
4884 _ACEOF
4885 rm -f conftest.$ac_objext
4886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4887   (eval $ac_compile) 2>&5
4888   ac_status=$?
4889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890   (exit $ac_status); } &&
4891          { ac_try='test -s conftest.$ac_objext'
4892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893   (eval $ac_try) 2>&5
4894   ac_status=$?
4895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896   (exit $ac_status); }; }; then
4897   ac_hi=$ac_mid
4898 else
4899   echo "$as_me: failed program was:" >&5
4900 cat conftest.$ac_ext >&5
4901 ac_lo=`expr '(' $ac_mid ')' + 1`
4902 fi
4903 rm -f conftest.$ac_objext conftest.$ac_ext
4904 done
4905 case $ac_lo in
4906 ?*) ac_cv_sizeof_long=$ac_lo;;
4907 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
4908 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
4909    { (exit 1); exit 1; }; } ;;
4910 esac
4911 else
4912   if test "$cross_compiling" = yes; then
4913   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4914 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4915    { (exit 1); exit 1; }; }
4916 else
4917   cat >conftest.$ac_ext <<_ACEOF
4918 #line $LINENO "configure"
4919 #include "confdefs.h"
4920 $ac_includes_default
4921 long longval () { return (long) (sizeof (long)); }
4922 unsigned long ulongval () { return (long) (sizeof (long)); }
4923 #include <stdio.h>
4924 #include <stdlib.h>
4925 #ifdef F77_DUMMY_MAIN
4926 #  ifdef __cplusplus
4927      extern "C"
4928 #  endif
4929    int F77_DUMMY_MAIN() { return 1; }
4930 #endif
4931 int
4932 main ()
4933 {
4934
4935   FILE *f = fopen ("conftest.val", "w");
4936   if (! f)
4937     exit (1);
4938   if (((long) (sizeof (long))) < 0)
4939     {
4940       long i = longval ();
4941       if (i != ((long) (sizeof (long))))
4942         exit (1);
4943       fprintf (f, "%ld\n", i);
4944     }
4945   else
4946     {
4947       unsigned long i = ulongval ();
4948       if (i != ((long) (sizeof (long))))
4949         exit (1);
4950       fprintf (f, "%lu\n", i);
4951     }
4952   exit (ferror (f) || fclose (f) != 0);
4953
4954   ;
4955   return 0;
4956 }
4957 _ACEOF
4958 rm -f conftest$ac_exeext
4959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4960   (eval $ac_link) 2>&5
4961   ac_status=$?
4962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965   (eval $ac_try) 2>&5
4966   ac_status=$?
4967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968   (exit $ac_status); }; }; then
4969   ac_cv_sizeof_long=`cat conftest.val`
4970 else
4971   echo "$as_me: program exited with status $ac_status" >&5
4972 echo "$as_me: failed program was:" >&5
4973 cat conftest.$ac_ext >&5
4974 ( exit $ac_status )
4975 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
4976 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
4977    { (exit 1); exit 1; }; }
4978 fi
4979 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4980 fi
4981 fi
4982 rm -f conftest.val
4983 else
4984   ac_cv_sizeof_long=0
4985 fi
4986 fi
4987 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4988 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4989 cat >>confdefs.h <<_ACEOF
4990 #define SIZEOF_LONG $ac_cv_sizeof_long
4991 _ACEOF
4992
4993
4994 echo "$as_me:$LINENO: checking for void *" >&5
4995 echo $ECHO_N "checking for void *... $ECHO_C" >&6
4996 if test "${ac_cv_type_void_p+set}" = set; then
4997   echo $ECHO_N "(cached) $ECHO_C" >&6
4998 else
4999   cat >conftest.$ac_ext <<_ACEOF
5000 #line $LINENO "configure"
5001 #include "confdefs.h"
5002 $ac_includes_default
5003 #ifdef F77_DUMMY_MAIN
5004 #  ifdef __cplusplus
5005      extern "C"
5006 #  endif
5007    int F77_DUMMY_MAIN() { return 1; }
5008 #endif
5009 int
5010 main ()
5011 {
5012 if ((void * *) 0)
5013   return 0;
5014 if (sizeof (void *))
5015   return 0;
5016   ;
5017   return 0;
5018 }
5019 _ACEOF
5020 rm -f conftest.$ac_objext
5021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5022   (eval $ac_compile) 2>&5
5023   ac_status=$?
5024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025   (exit $ac_status); } &&
5026          { ac_try='test -s conftest.$ac_objext'
5027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028   (eval $ac_try) 2>&5
5029   ac_status=$?
5030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031   (exit $ac_status); }; }; then
5032   ac_cv_type_void_p=yes
5033 else
5034   echo "$as_me: failed program was:" >&5
5035 cat conftest.$ac_ext >&5
5036 ac_cv_type_void_p=no
5037 fi
5038 rm -f conftest.$ac_objext conftest.$ac_ext
5039 fi
5040 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
5041 echo "${ECHO_T}$ac_cv_type_void_p" >&6
5042
5043 echo "$as_me:$LINENO: checking size of void *" >&5
5044 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
5045 if test "${ac_cv_sizeof_void_p+set}" = set; then
5046   echo $ECHO_N "(cached) $ECHO_C" >&6
5047 else
5048   if test "$ac_cv_type_void_p" = yes; then
5049   # The cast to unsigned long works around a bug in the HP C Compiler
5050   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5051   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5052   # This bug is HP SR number 8606223364.
5053   if test "$cross_compiling" = yes; then
5054   # Depending upon the size, compute the lo and hi bounds.
5055 cat >conftest.$ac_ext <<_ACEOF
5056 #line $LINENO "configure"
5057 #include "confdefs.h"
5058 $ac_includes_default
5059 #ifdef F77_DUMMY_MAIN
5060 #  ifdef __cplusplus
5061      extern "C"
5062 #  endif
5063    int F77_DUMMY_MAIN() { return 1; }
5064 #endif
5065 int
5066 main ()
5067 {
5068 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
5069 test_array [0] = 0
5070
5071   ;
5072   return 0;
5073 }
5074 _ACEOF
5075 rm -f conftest.$ac_objext
5076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5077   (eval $ac_compile) 2>&5
5078   ac_status=$?
5079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080   (exit $ac_status); } &&
5081          { ac_try='test -s conftest.$ac_objext'
5082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083   (eval $ac_try) 2>&5
5084   ac_status=$?
5085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086   (exit $ac_status); }; }; then
5087   ac_lo=0 ac_mid=0
5088   while :; do
5089     cat >conftest.$ac_ext <<_ACEOF
5090 #line $LINENO "configure"
5091 #include "confdefs.h"
5092 $ac_includes_default
5093 #ifdef F77_DUMMY_MAIN
5094 #  ifdef __cplusplus
5095      extern "C"
5096 #  endif
5097    int F77_DUMMY_MAIN() { return 1; }
5098 #endif
5099 int
5100 main ()
5101 {
5102 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5103 test_array [0] = 0
5104
5105   ;
5106   return 0;
5107 }
5108 _ACEOF
5109 rm -f conftest.$ac_objext
5110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5111   (eval $ac_compile) 2>&5
5112   ac_status=$?
5113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114   (exit $ac_status); } &&
5115          { ac_try='test -s conftest.$ac_objext'
5116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117   (eval $ac_try) 2>&5
5118   ac_status=$?
5119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120   (exit $ac_status); }; }; then
5121   ac_hi=$ac_mid; break
5122 else
5123   echo "$as_me: failed program was:" >&5
5124 cat conftest.$ac_ext >&5
5125 ac_lo=`expr $ac_mid + 1`
5126                     if test $ac_lo -le $ac_mid; then
5127                       ac_lo= ac_hi=
5128                       break
5129                     fi
5130                     ac_mid=`expr 2 '*' $ac_mid + 1`
5131 fi
5132 rm -f conftest.$ac_objext conftest.$ac_ext
5133   done
5134 else
5135   echo "$as_me: failed program was:" >&5
5136 cat conftest.$ac_ext >&5
5137 cat >conftest.$ac_ext <<_ACEOF
5138 #line $LINENO "configure"
5139 #include "confdefs.h"
5140 $ac_includes_default
5141 #ifdef F77_DUMMY_MAIN
5142 #  ifdef __cplusplus
5143      extern "C"
5144 #  endif
5145    int F77_DUMMY_MAIN() { return 1; }
5146 #endif
5147 int
5148 main ()
5149 {
5150 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
5151 test_array [0] = 0
5152
5153   ;
5154   return 0;
5155 }
5156 _ACEOF
5157 rm -f conftest.$ac_objext
5158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5159   (eval $ac_compile) 2>&5
5160   ac_status=$?
5161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162   (exit $ac_status); } &&
5163          { ac_try='test -s conftest.$ac_objext'
5164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165   (eval $ac_try) 2>&5
5166   ac_status=$?
5167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168   (exit $ac_status); }; }; then
5169   ac_hi=-1 ac_mid=-1
5170   while :; do
5171     cat >conftest.$ac_ext <<_ACEOF
5172 #line $LINENO "configure"
5173 #include "confdefs.h"
5174 $ac_includes_default
5175 #ifdef F77_DUMMY_MAIN
5176 #  ifdef __cplusplus
5177      extern "C"
5178 #  endif
5179    int F77_DUMMY_MAIN() { return 1; }
5180 #endif
5181 int
5182 main ()
5183 {
5184 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
5185 test_array [0] = 0
5186
5187   ;
5188   return 0;
5189 }
5190 _ACEOF
5191 rm -f conftest.$ac_objext
5192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5193   (eval $ac_compile) 2>&5
5194   ac_status=$?
5195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196   (exit $ac_status); } &&
5197          { ac_try='test -s conftest.$ac_objext'
5198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199   (eval $ac_try) 2>&5
5200   ac_status=$?
5201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202   (exit $ac_status); }; }; then
5203   ac_lo=$ac_mid; break
5204 else
5205   echo "$as_me: failed program was:" >&5
5206 cat conftest.$ac_ext >&5
5207 ac_hi=`expr '(' $ac_mid ')' - 1`
5208                        if test $ac_mid -le $ac_hi; then
5209                          ac_lo= ac_hi=
5210                          break
5211                        fi
5212                        ac_mid=`expr 2 '*' $ac_mid`
5213 fi
5214 rm -f conftest.$ac_objext conftest.$ac_ext
5215   done
5216 else
5217   echo "$as_me: failed program was:" >&5
5218 cat conftest.$ac_ext >&5
5219 ac_lo= ac_hi=
5220 fi
5221 rm -f conftest.$ac_objext conftest.$ac_ext
5222 fi
5223 rm -f conftest.$ac_objext conftest.$ac_ext
5224 # Binary search between lo and hi bounds.
5225 while test "x$ac_lo" != "x$ac_hi"; do
5226   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5227   cat >conftest.$ac_ext <<_ACEOF
5228 #line $LINENO "configure"
5229 #include "confdefs.h"
5230 $ac_includes_default
5231 #ifdef F77_DUMMY_MAIN
5232 #  ifdef __cplusplus
5233      extern "C"
5234 #  endif
5235    int F77_DUMMY_MAIN() { return 1; }
5236 #endif
5237 int
5238 main ()
5239 {
5240 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5241 test_array [0] = 0
5242
5243   ;
5244   return 0;
5245 }
5246 _ACEOF
5247 rm -f conftest.$ac_objext
5248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5249   (eval $ac_compile) 2>&5
5250   ac_status=$?
5251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252   (exit $ac_status); } &&
5253          { ac_try='test -s conftest.$ac_objext'
5254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255   (eval $ac_try) 2>&5
5256   ac_status=$?
5257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258   (exit $ac_status); }; }; then
5259   ac_hi=$ac_mid
5260 else
5261   echo "$as_me: failed program was:" >&5
5262 cat conftest.$ac_ext >&5
5263 ac_lo=`expr '(' $ac_mid ')' + 1`
5264 fi
5265 rm -f conftest.$ac_objext conftest.$ac_ext
5266 done
5267 case $ac_lo in
5268 ?*) ac_cv_sizeof_void_p=$ac_lo;;
5269 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5
5270 echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;}
5271    { (exit 1); exit 1; }; } ;;
5272 esac
5273 else
5274   if test "$cross_compiling" = yes; then
5275   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5276 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5277    { (exit 1); exit 1; }; }
5278 else
5279   cat >conftest.$ac_ext <<_ACEOF
5280 #line $LINENO "configure"
5281 #include "confdefs.h"
5282 $ac_includes_default
5283 long longval () { return (long) (sizeof (void *)); }
5284 unsigned long ulongval () { return (long) (sizeof (void *)); }
5285 #include <stdio.h>
5286 #include <stdlib.h>
5287 #ifdef F77_DUMMY_MAIN
5288 #  ifdef __cplusplus
5289      extern "C"
5290 #  endif
5291    int F77_DUMMY_MAIN() { return 1; }
5292 #endif
5293 int
5294 main ()
5295 {
5296
5297   FILE *f = fopen ("conftest.val", "w");
5298   if (! f)
5299     exit (1);
5300   if (((long) (sizeof (void *))) < 0)
5301     {
5302       long i = longval ();
5303       if (i != ((long) (sizeof (void *))))
5304         exit (1);
5305       fprintf (f, "%ld\n", i);
5306     }
5307   else
5308     {
5309       unsigned long i = ulongval ();
5310       if (i != ((long) (sizeof (void *))))
5311         exit (1);
5312       fprintf (f, "%lu\n", i);
5313     }
5314   exit (ferror (f) || fclose (f) != 0);
5315
5316   ;
5317   return 0;
5318 }
5319 _ACEOF
5320 rm -f conftest$ac_exeext
5321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5322   (eval $ac_link) 2>&5
5323   ac_status=$?
5324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327   (eval $ac_try) 2>&5
5328   ac_status=$?
5329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330   (exit $ac_status); }; }; then
5331   ac_cv_sizeof_void_p=`cat conftest.val`
5332 else
5333   echo "$as_me: program exited with status $ac_status" >&5
5334 echo "$as_me: failed program was:" >&5
5335 cat conftest.$ac_ext >&5
5336 ( exit $ac_status )
5337 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5
5338 echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;}
5339    { (exit 1); exit 1; }; }
5340 fi
5341 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5342 fi
5343 fi
5344 rm -f conftest.val
5345 else
5346   ac_cv_sizeof_void_p=0
5347 fi
5348 fi
5349 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
5350 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
5351 cat >>confdefs.h <<_ACEOF
5352 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5353 _ACEOF
5354
5355
5356 if test "$ac_cv_sizeof_int" = 2 ; then
5357   echo "$as_me:$LINENO: checking for int16_t" >&5
5358 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
5359 if test "${ac_cv_type_int16_t+set}" = set; then
5360   echo $ECHO_N "(cached) $ECHO_C" >&6
5361 else
5362   cat >conftest.$ac_ext <<_ACEOF
5363 #line $LINENO "configure"
5364 #include "confdefs.h"
5365 $ac_includes_default
5366 #ifdef F77_DUMMY_MAIN
5367 #  ifdef __cplusplus
5368      extern "C"
5369 #  endif
5370    int F77_DUMMY_MAIN() { return 1; }
5371 #endif
5372 int
5373 main ()
5374 {
5375 if ((int16_t *) 0)
5376   return 0;
5377 if (sizeof (int16_t))
5378   return 0;
5379   ;
5380   return 0;
5381 }
5382 _ACEOF
5383 rm -f conftest.$ac_objext
5384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5385   (eval $ac_compile) 2>&5
5386   ac_status=$?
5387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388   (exit $ac_status); } &&
5389          { ac_try='test -s conftest.$ac_objext'
5390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391   (eval $ac_try) 2>&5
5392   ac_status=$?
5393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394   (exit $ac_status); }; }; then
5395   ac_cv_type_int16_t=yes
5396 else
5397   echo "$as_me: failed program was:" >&5
5398 cat conftest.$ac_ext >&5
5399 ac_cv_type_int16_t=no
5400 fi
5401 rm -f conftest.$ac_objext conftest.$ac_ext
5402 fi
5403 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
5404 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
5405 if test $ac_cv_type_int16_t = yes; then
5406   :
5407 else
5408
5409 cat >>confdefs.h <<_ACEOF
5410 #define int16_t int
5411 _ACEOF
5412
5413 fi
5414
5415   echo "$as_me:$LINENO: checking for u_int16_t" >&5
5416 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
5417 if test "${ac_cv_type_u_int16_t+set}" = set; then
5418   echo $ECHO_N "(cached) $ECHO_C" >&6
5419 else
5420   cat >conftest.$ac_ext <<_ACEOF
5421 #line $LINENO "configure"
5422 #include "confdefs.h"
5423 $ac_includes_default
5424 #ifdef F77_DUMMY_MAIN
5425 #  ifdef __cplusplus
5426      extern "C"
5427 #  endif
5428    int F77_DUMMY_MAIN() { return 1; }
5429 #endif
5430 int
5431 main ()
5432 {
5433 if ((u_int16_t *) 0)
5434   return 0;
5435 if (sizeof (u_int16_t))
5436   return 0;
5437   ;
5438   return 0;
5439 }
5440 _ACEOF
5441 rm -f conftest.$ac_objext
5442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5443   (eval $ac_compile) 2>&5
5444   ac_status=$?
5445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446   (exit $ac_status); } &&
5447          { ac_try='test -s conftest.$ac_objext'
5448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449   (eval $ac_try) 2>&5
5450   ac_status=$?
5451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452   (exit $ac_status); }; }; then
5453   ac_cv_type_u_int16_t=yes
5454 else
5455   echo "$as_me: failed program was:" >&5
5456 cat conftest.$ac_ext >&5
5457 ac_cv_type_u_int16_t=no
5458 fi
5459 rm -f conftest.$ac_objext conftest.$ac_ext
5460 fi
5461 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
5462 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
5463 if test $ac_cv_type_u_int16_t = yes; then
5464   :
5465 else
5466
5467 cat >>confdefs.h <<_ACEOF
5468 #define u_int16_t unsigned int
5469 _ACEOF
5470
5471 fi
5472
5473 elif test "$ac_cv_sizeof_short" = 2 ; then
5474   echo "$as_me:$LINENO: checking for int16_t" >&5
5475 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
5476 if test "${ac_cv_type_int16_t+set}" = set; then
5477   echo $ECHO_N "(cached) $ECHO_C" >&6
5478 else
5479   cat >conftest.$ac_ext <<_ACEOF
5480 #line $LINENO "configure"
5481 #include "confdefs.h"
5482 $ac_includes_default
5483 #ifdef F77_DUMMY_MAIN
5484 #  ifdef __cplusplus
5485      extern "C"
5486 #  endif
5487    int F77_DUMMY_MAIN() { return 1; }
5488 #endif
5489 int
5490 main ()
5491 {
5492 if ((int16_t *) 0)
5493   return 0;
5494 if (sizeof (int16_t))
5495   return 0;
5496   ;
5497   return 0;
5498 }
5499 _ACEOF
5500 rm -f conftest.$ac_objext
5501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5502   (eval $ac_compile) 2>&5
5503   ac_status=$?
5504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505   (exit $ac_status); } &&
5506          { ac_try='test -s conftest.$ac_objext'
5507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508   (eval $ac_try) 2>&5
5509   ac_status=$?
5510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511   (exit $ac_status); }; }; then
5512   ac_cv_type_int16_t=yes
5513 else
5514   echo "$as_me: failed program was:" >&5
5515 cat conftest.$ac_ext >&5
5516 ac_cv_type_int16_t=no
5517 fi
5518 rm -f conftest.$ac_objext conftest.$ac_ext
5519 fi
5520 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
5521 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
5522 if test $ac_cv_type_int16_t = yes; then
5523   :
5524 else
5525
5526 cat >>confdefs.h <<_ACEOF
5527 #define int16_t short
5528 _ACEOF
5529
5530 fi
5531
5532   echo "$as_me:$LINENO: checking for u_int16_t" >&5
5533 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
5534 if test "${ac_cv_type_u_int16_t+set}" = set; then
5535   echo $ECHO_N "(cached) $ECHO_C" >&6
5536 else
5537   cat >conftest.$ac_ext <<_ACEOF
5538 #line $LINENO "configure"
5539 #include "confdefs.h"
5540 $ac_includes_default
5541 #ifdef F77_DUMMY_MAIN
5542 #  ifdef __cplusplus
5543      extern "C"
5544 #  endif
5545    int F77_DUMMY_MAIN() { return 1; }
5546 #endif
5547 int
5548 main ()
5549 {
5550 if ((u_int16_t *) 0)
5551   return 0;
5552 if (sizeof (u_int16_t))
5553   return 0;
5554   ;
5555   return 0;
5556 }
5557 _ACEOF
5558 rm -f conftest.$ac_objext
5559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5560   (eval $ac_compile) 2>&5
5561   ac_status=$?
5562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563   (exit $ac_status); } &&
5564          { ac_try='test -s conftest.$ac_objext'
5565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5566   (eval $ac_try) 2>&5
5567   ac_status=$?
5568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569   (exit $ac_status); }; }; then
5570   ac_cv_type_u_int16_t=yes
5571 else
5572   echo "$as_me: failed program was:" >&5
5573 cat conftest.$ac_ext >&5
5574 ac_cv_type_u_int16_t=no
5575 fi
5576 rm -f conftest.$ac_objext conftest.$ac_ext
5577 fi
5578 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
5579 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
5580 if test $ac_cv_type_u_int16_t = yes; then
5581   :
5582 else
5583
5584 cat >>confdefs.h <<_ACEOF
5585 #define u_int16_t unsigned short
5586 _ACEOF
5587
5588 fi
5589
5590 else
5591   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
5592 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
5593    { (exit 1); exit 1; }; }
5594 fi
5595 if test "$ac_cv_sizeof_int" = 4 ; then
5596   echo "$as_me:$LINENO: checking for int32_t" >&5
5597 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
5598 if test "${ac_cv_type_int32_t+set}" = set; then
5599   echo $ECHO_N "(cached) $ECHO_C" >&6
5600 else
5601   cat >conftest.$ac_ext <<_ACEOF
5602 #line $LINENO "configure"
5603 #include "confdefs.h"
5604 $ac_includes_default
5605 #ifdef F77_DUMMY_MAIN
5606 #  ifdef __cplusplus
5607      extern "C"
5608 #  endif
5609    int F77_DUMMY_MAIN() { return 1; }
5610 #endif
5611 int
5612 main ()
5613 {
5614 if ((int32_t *) 0)
5615   return 0;
5616 if (sizeof (int32_t))
5617   return 0;
5618   ;
5619   return 0;
5620 }
5621 _ACEOF
5622 rm -f conftest.$ac_objext
5623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5624   (eval $ac_compile) 2>&5
5625   ac_status=$?
5626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627   (exit $ac_status); } &&
5628          { ac_try='test -s conftest.$ac_objext'
5629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630   (eval $ac_try) 2>&5
5631   ac_status=$?
5632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633   (exit $ac_status); }; }; then
5634   ac_cv_type_int32_t=yes
5635 else
5636   echo "$as_me: failed program was:" >&5
5637 cat conftest.$ac_ext >&5
5638 ac_cv_type_int32_t=no
5639 fi
5640 rm -f conftest.$ac_objext conftest.$ac_ext
5641 fi
5642 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
5643 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
5644 if test $ac_cv_type_int32_t = yes; then
5645   :
5646 else
5647
5648 cat >>confdefs.h <<_ACEOF
5649 #define int32_t int
5650 _ACEOF
5651
5652 fi
5653
5654   echo "$as_me:$LINENO: checking for u_int32_t" >&5
5655 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
5656 if test "${ac_cv_type_u_int32_t+set}" = set; then
5657   echo $ECHO_N "(cached) $ECHO_C" >&6
5658 else
5659   cat >conftest.$ac_ext <<_ACEOF
5660 #line $LINENO "configure"
5661 #include "confdefs.h"
5662 $ac_includes_default
5663 #ifdef F77_DUMMY_MAIN
5664 #  ifdef __cplusplus
5665      extern "C"
5666 #  endif
5667    int F77_DUMMY_MAIN() { return 1; }
5668 #endif
5669 int
5670 main ()
5671 {
5672 if ((u_int32_t *) 0)
5673   return 0;
5674 if (sizeof (u_int32_t))
5675   return 0;
5676   ;
5677   return 0;
5678 }
5679 _ACEOF
5680 rm -f conftest.$ac_objext
5681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5682   (eval $ac_compile) 2>&5
5683   ac_status=$?
5684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685   (exit $ac_status); } &&
5686          { ac_try='test -s conftest.$ac_objext'
5687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688   (eval $ac_try) 2>&5
5689   ac_status=$?
5690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691   (exit $ac_status); }; }; then
5692   ac_cv_type_u_int32_t=yes
5693 else
5694   echo "$as_me: failed program was:" >&5
5695 cat conftest.$ac_ext >&5
5696 ac_cv_type_u_int32_t=no
5697 fi
5698 rm -f conftest.$ac_objext conftest.$ac_ext
5699 fi
5700 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
5701 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
5702 if test $ac_cv_type_u_int32_t = yes; then
5703   :
5704 else
5705
5706 cat >>confdefs.h <<_ACEOF
5707 #define u_int32_t unsigned int
5708 _ACEOF
5709
5710 fi
5711
5712 elif test "$ac_cv_sizeof_short" = 4 ; then
5713   echo "$as_me:$LINENO: checking for int32_t" >&5
5714 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
5715 if test "${ac_cv_type_int32_t+set}" = set; then
5716   echo $ECHO_N "(cached) $ECHO_C" >&6
5717 else
5718   cat >conftest.$ac_ext <<_ACEOF
5719 #line $LINENO "configure"
5720 #include "confdefs.h"
5721 $ac_includes_default
5722 #ifdef F77_DUMMY_MAIN
5723 #  ifdef __cplusplus
5724      extern "C"
5725 #  endif
5726    int F77_DUMMY_MAIN() { return 1; }
5727 #endif
5728 int
5729 main ()
5730 {
5731 if ((int32_t *) 0)
5732   return 0;
5733 if (sizeof (int32_t))
5734   return 0;
5735   ;
5736   return 0;
5737 }
5738 _ACEOF
5739 rm -f conftest.$ac_objext
5740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5741   (eval $ac_compile) 2>&5
5742   ac_status=$?
5743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744   (exit $ac_status); } &&
5745          { ac_try='test -s conftest.$ac_objext'
5746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747   (eval $ac_try) 2>&5
5748   ac_status=$?
5749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750   (exit $ac_status); }; }; then
5751   ac_cv_type_int32_t=yes
5752 else
5753   echo "$as_me: failed program was:" >&5
5754 cat conftest.$ac_ext >&5
5755 ac_cv_type_int32_t=no
5756 fi
5757 rm -f conftest.$ac_objext conftest.$ac_ext
5758 fi
5759 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
5760 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
5761 if test $ac_cv_type_int32_t = yes; then
5762   :
5763 else
5764
5765 cat >>confdefs.h <<_ACEOF
5766 #define int32_t short
5767 _ACEOF
5768
5769 fi
5770
5771   echo "$as_me:$LINENO: checking for u_int32_t" >&5
5772 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
5773 if test "${ac_cv_type_u_int32_t+set}" = set; then
5774   echo $ECHO_N "(cached) $ECHO_C" >&6
5775 else
5776   cat >conftest.$ac_ext <<_ACEOF
5777 #line $LINENO "configure"
5778 #include "confdefs.h"
5779 $ac_includes_default
5780 #ifdef F77_DUMMY_MAIN
5781 #  ifdef __cplusplus
5782      extern "C"
5783 #  endif
5784    int F77_DUMMY_MAIN() { return 1; }
5785 #endif
5786 int
5787 main ()
5788 {
5789 if ((u_int32_t *) 0)
5790   return 0;
5791 if (sizeof (u_int32_t))
5792   return 0;
5793   ;
5794   return 0;
5795 }
5796 _ACEOF
5797 rm -f conftest.$ac_objext
5798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5799   (eval $ac_compile) 2>&5
5800   ac_status=$?
5801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802   (exit $ac_status); } &&
5803          { ac_try='test -s conftest.$ac_objext'
5804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5805   (eval $ac_try) 2>&5
5806   ac_status=$?
5807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808   (exit $ac_status); }; }; then
5809   ac_cv_type_u_int32_t=yes
5810 else
5811   echo "$as_me: failed program was:" >&5
5812 cat conftest.$ac_ext >&5
5813 ac_cv_type_u_int32_t=no
5814 fi
5815 rm -f conftest.$ac_objext conftest.$ac_ext
5816 fi
5817 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
5818 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
5819 if test $ac_cv_type_u_int32_t = yes; then
5820   :
5821 else
5822
5823 cat >>confdefs.h <<_ACEOF
5824 #define u_int32_t unsigned short
5825 _ACEOF
5826
5827 fi
5828
5829 elif test "$ac_cv_sizeof_long" = 4 ; then
5830   echo "$as_me:$LINENO: checking for int32_t" >&5
5831 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
5832 if test "${ac_cv_type_int32_t+set}" = set; then
5833   echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835   cat >conftest.$ac_ext <<_ACEOF
5836 #line $LINENO "configure"
5837 #include "confdefs.h"
5838 $ac_includes_default
5839 #ifdef F77_DUMMY_MAIN
5840 #  ifdef __cplusplus
5841      extern "C"
5842 #  endif
5843    int F77_DUMMY_MAIN() { return 1; }
5844 #endif
5845 int
5846 main ()
5847 {
5848 if ((int32_t *) 0)
5849   return 0;
5850 if (sizeof (int32_t))
5851   return 0;
5852   ;
5853   return 0;
5854 }
5855 _ACEOF
5856 rm -f conftest.$ac_objext
5857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5858   (eval $ac_compile) 2>&5
5859   ac_status=$?
5860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861   (exit $ac_status); } &&
5862          { ac_try='test -s conftest.$ac_objext'
5863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864   (eval $ac_try) 2>&5
5865   ac_status=$?
5866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867   (exit $ac_status); }; }; then
5868   ac_cv_type_int32_t=yes
5869 else
5870   echo "$as_me: failed program was:" >&5
5871 cat conftest.$ac_ext >&5
5872 ac_cv_type_int32_t=no
5873 fi
5874 rm -f conftest.$ac_objext conftest.$ac_ext
5875 fi
5876 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
5877 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
5878 if test $ac_cv_type_int32_t = yes; then
5879   :
5880 else
5881
5882 cat >>confdefs.h <<_ACEOF
5883 #define int32_t long
5884 _ACEOF
5885
5886 fi
5887
5888   echo "$as_me:$LINENO: checking for u_int32_t" >&5
5889 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
5890 if test "${ac_cv_type_u_int32_t+set}" = set; then
5891   echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893   cat >conftest.$ac_ext <<_ACEOF
5894 #line $LINENO "configure"
5895 #include "confdefs.h"
5896 $ac_includes_default
5897 #ifdef F77_DUMMY_MAIN
5898 #  ifdef __cplusplus
5899      extern "C"
5900 #  endif
5901    int F77_DUMMY_MAIN() { return 1; }
5902 #endif
5903 int
5904 main ()
5905 {
5906 if ((u_int32_t *) 0)
5907   return 0;
5908 if (sizeof (u_int32_t))
5909   return 0;
5910   ;
5911   return 0;
5912 }
5913 _ACEOF
5914 rm -f conftest.$ac_objext
5915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5916   (eval $ac_compile) 2>&5
5917   ac_status=$?
5918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919   (exit $ac_status); } &&
5920          { ac_try='test -s conftest.$ac_objext'
5921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922   (eval $ac_try) 2>&5
5923   ac_status=$?
5924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925   (exit $ac_status); }; }; then
5926   ac_cv_type_u_int32_t=yes
5927 else
5928   echo "$as_me: failed program was:" >&5
5929 cat conftest.$ac_ext >&5
5930 ac_cv_type_u_int32_t=no
5931 fi
5932 rm -f conftest.$ac_objext conftest.$ac_ext
5933 fi
5934 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
5935 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
5936 if test $ac_cv_type_u_int32_t = yes; then
5937   :
5938 else
5939
5940 cat >>confdefs.h <<_ACEOF
5941 #define u_int32_t unsigned long
5942 _ACEOF
5943
5944 fi
5945
5946 else
5947   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
5948 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
5949    { (exit 1); exit 1; }; }
5950 fi
5951
5952
5953
5954
5955
5956 for ac_func in kqueue setrlimit getrusage times
5957 do
5958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5959 echo "$as_me:$LINENO: checking for $ac_func" >&5
5960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5961 if eval "test \"\${$as_ac_var+set}\" = set"; then
5962   echo $ECHO_N "(cached) $ECHO_C" >&6
5963 else
5964   cat >conftest.$ac_ext <<_ACEOF
5965 #line $LINENO "configure"
5966 #include "confdefs.h"
5967 /* System header to define __stub macros and hopefully few prototypes,
5968     which can conflict with char $ac_func (); below.  */
5969 #include <assert.h>
5970 /* Override any gcc2 internal prototype to avoid an error.  */
5971 #ifdef __cplusplus
5972 extern "C"
5973 #endif
5974 /* We use char because int might match the return type of a gcc2
5975    builtin and then its argument prototype would still apply.  */
5976 char $ac_func ();
5977 char (*f) ();
5978
5979 #ifdef F77_DUMMY_MAIN
5980 #  ifdef __cplusplus
5981      extern "C"
5982 #  endif
5983    int F77_DUMMY_MAIN() { return 1; }
5984 #endif
5985 int
5986 main ()
5987 {
5988 /* The GNU C library defines this for functions which it implements
5989     to always fail with ENOSYS.  Some functions are actually named
5990     something starting with __ and the normal name is an alias.  */
5991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5992 choke me
5993 #else
5994 f = $ac_func;
5995 #endif
5996
5997   ;
5998   return 0;
5999 }
6000 _ACEOF
6001 rm -f conftest.$ac_objext conftest$ac_exeext
6002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6003   (eval $ac_link) 2>&5
6004   ac_status=$?
6005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006   (exit $ac_status); } &&
6007          { ac_try='test -s conftest$ac_exeext'
6008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009   (eval $ac_try) 2>&5
6010   ac_status=$?
6011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012   (exit $ac_status); }; }; then
6013   eval "$as_ac_var=yes"
6014 else
6015   echo "$as_me: failed program was:" >&5
6016 cat conftest.$ac_ext >&5
6017 eval "$as_ac_var=no"
6018 fi
6019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6020 fi
6021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6023 if test `eval echo '${'$as_ac_var'}'` = yes; then
6024   cat >>confdefs.h <<_ACEOF
6025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6026 _ACEOF
6027
6028 fi
6029 done
6030
6031
6032 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6033 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6034 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6035   echo $ECHO_N "(cached) $ECHO_C" >&6
6036 else
6037   cat >conftest.$ac_ext <<_ACEOF
6038 #line $LINENO "configure"
6039 #include "confdefs.h"
6040 #include <sys/types.h>
6041 #include <sys/wait.h>
6042 #ifndef WEXITSTATUS
6043 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6044 #endif
6045 #ifndef WIFEXITED
6046 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6047 #endif
6048
6049 #ifdef F77_DUMMY_MAIN
6050 #  ifdef __cplusplus
6051      extern "C"
6052 #  endif
6053    int F77_DUMMY_MAIN() { return 1; }
6054 #endif
6055 int
6056 main ()
6057 {
6058   int s;
6059   wait (&s);
6060   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6061   ;
6062   return 0;
6063 }
6064 _ACEOF
6065 rm -f conftest.$ac_objext
6066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6067   (eval $ac_compile) 2>&5
6068   ac_status=$?
6069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070   (exit $ac_status); } &&
6071          { ac_try='test -s conftest.$ac_objext'
6072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073   (eval $ac_try) 2>&5
6074   ac_status=$?
6075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076   (exit $ac_status); }; }; then
6077   ac_cv_header_sys_wait_h=yes
6078 else
6079   echo "$as_me: failed program was:" >&5
6080 cat conftest.$ac_ext >&5
6081 ac_cv_header_sys_wait_h=no
6082 fi
6083 rm -f conftest.$ac_objext conftest.$ac_ext
6084 fi
6085 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6086 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6087 if test $ac_cv_header_sys_wait_h = yes; then
6088
6089 cat >>confdefs.h <<\_ACEOF
6090 #define HAVE_SYS_WAIT_H 1
6091 _ACEOF
6092
6093 fi
6094
6095
6096 for ac_header in unistd.h
6097 do
6098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6100   echo "$as_me:$LINENO: checking for $ac_header" >&5
6101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6103   echo $ECHO_N "(cached) $ECHO_C" >&6
6104 fi
6105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6107 else
6108   # Is the header compilable?
6109 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6110 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6111 cat >conftest.$ac_ext <<_ACEOF
6112 #line $LINENO "configure"
6113 #include "confdefs.h"
6114 $ac_includes_default
6115 #include <$ac_header>
6116 _ACEOF
6117 rm -f conftest.$ac_objext
6118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6119   (eval $ac_compile) 2>&5
6120   ac_status=$?
6121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122   (exit $ac_status); } &&
6123          { ac_try='test -s conftest.$ac_objext'
6124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125   (eval $ac_try) 2>&5
6126   ac_status=$?
6127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128   (exit $ac_status); }; }; then
6129   ac_header_compiler=yes
6130 else
6131   echo "$as_me: failed program was:" >&5
6132 cat conftest.$ac_ext >&5
6133 ac_header_compiler=no
6134 fi
6135 rm -f conftest.$ac_objext conftest.$ac_ext
6136 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6137 echo "${ECHO_T}$ac_header_compiler" >&6
6138
6139 # Is the header present?
6140 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6142 cat >conftest.$ac_ext <<_ACEOF
6143 #line $LINENO "configure"
6144 #include "confdefs.h"
6145 #include <$ac_header>
6146 _ACEOF
6147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6148   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6149   ac_status=$?
6150   egrep -v '^ *\+' conftest.er1 >conftest.err
6151   rm -f conftest.er1
6152   cat conftest.err >&5
6153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154   (exit $ac_status); } >/dev/null; then
6155   if test -s conftest.err; then
6156     ac_cpp_err=$ac_c_preproc_warn_flag
6157   else
6158     ac_cpp_err=
6159   fi
6160 else
6161   ac_cpp_err=yes
6162 fi
6163 if test -z "$ac_cpp_err"; then
6164   ac_header_preproc=yes
6165 else
6166   echo "$as_me: failed program was:" >&5
6167   cat conftest.$ac_ext >&5
6168   ac_header_preproc=no
6169 fi
6170 rm -f conftest.err conftest.$ac_ext
6171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6172 echo "${ECHO_T}$ac_header_preproc" >&6
6173
6174 # So?  What about this header?
6175 case $ac_header_compiler:$ac_header_preproc in
6176   yes:no )
6177     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6179     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6181   no:yes )
6182     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6184     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6186     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6188 esac
6189 echo "$as_me:$LINENO: checking for $ac_header" >&5
6190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6192   echo $ECHO_N "(cached) $ECHO_C" >&6
6193 else
6194   eval "$as_ac_Header=$ac_header_preproc"
6195 fi
6196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6198
6199 fi
6200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6201   cat >>confdefs.h <<_ACEOF
6202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6203 _ACEOF
6204
6205 fi
6206
6207 done
6208
6209 echo "$as_me:$LINENO: checking for restartable system calls" >&5
6210 echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6
6211 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
6212   echo $ECHO_N "(cached) $ECHO_C" >&6
6213 else
6214   if test "$cross_compiling" = yes; then
6215   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6216 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6217    { (exit 1); exit 1; }; }
6218 else
6219   cat >conftest.$ac_ext <<_ACEOF
6220 #line $LINENO "configure"
6221 #include "confdefs.h"
6222 /* Exit 0 (true) if wait returns something other than -1,
6223    i.e. the pid of the child, which means that wait was restarted
6224    after getting the signal.  */
6225
6226 #include <sys/types.h>
6227 #include <signal.h>
6228 #if HAVE_UNISTD_H
6229 # include <unistd.h>
6230 #endif
6231 #if HAVE_SYS_WAIT_H
6232 # include <sys/wait.h>
6233 #endif
6234
6235 /* Some platforms explicitly require an extern "C" signal handler
6236    when using C++. */
6237 #ifdef __cplusplus
6238 extern "C" void ucatch (int dummy) { }
6239 #else
6240 void ucatch (dummy) int dummy; { }
6241 #endif
6242
6243 int
6244 main ()
6245 {
6246   int i = fork (), status;
6247
6248   if (i == 0)
6249     {
6250       sleep (3);
6251       kill (getppid (), SIGINT);
6252       sleep (3);
6253       exit (0);
6254     }
6255
6256   signal (SIGINT, ucatch);
6257
6258   status = wait (&i);
6259   if (status == -1)
6260     wait (&i);
6261
6262   exit (status == -1);
6263 }
6264 _ACEOF
6265 rm -f conftest$ac_exeext
6266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6267   (eval $ac_link) 2>&5
6268   ac_status=$?
6269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272   (eval $ac_try) 2>&5
6273   ac_status=$?
6274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275   (exit $ac_status); }; }; then
6276   ac_cv_sys_restartable_syscalls=yes
6277 else
6278   echo "$as_me: program exited with status $ac_status" >&5
6279 echo "$as_me: failed program was:" >&5
6280 cat conftest.$ac_ext >&5
6281 ( exit $ac_status )
6282 ac_cv_sys_restartable_syscalls=no
6283 fi
6284 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6285 fi
6286 fi
6287 echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
6288 echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6
6289 if test $ac_cv_sys_restartable_syscalls = yes; then
6290
6291 cat >>confdefs.h <<\_ACEOF
6292 #define HAVE_RESTARTABLE_SYSCALLS 1
6293 _ACEOF
6294
6295 fi
6296
6297
6298 echo "$as_me:$LINENO: checking for donuts" >&5
6299 echo $ECHO_N "checking for donuts... $ECHO_C" >&6
6300 echo "$as_me:$LINENO: result: yes" >&5
6301 echo "${ECHO_T}yes" >&6
6302
6303 for ac_prog in gawk mawk nawk awk
6304 do
6305   # Extract the first word of "$ac_prog", so it can be a program name with args.
6306 set dummy $ac_prog; ac_word=$2
6307 echo "$as_me:$LINENO: checking for $ac_word" >&5
6308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6309 if test "${ac_cv_prog_AWK+set}" = set; then
6310   echo $ECHO_N "(cached) $ECHO_C" >&6
6311 else
6312   if test -n "$AWK"; then
6313   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6314 else
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 for as_dir in $PATH
6317 do
6318   IFS=$as_save_IFS
6319   test -z "$as_dir" && as_dir=.
6320   for ac_exec_ext in '' $ac_executable_extensions; do
6321   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6322     ac_cv_prog_AWK="$ac_prog"
6323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6324     break 2
6325   fi
6326 done
6327 done
6328
6329 fi
6330 fi
6331 AWK=$ac_cv_prog_AWK
6332 if test -n "$AWK"; then
6333   echo "$as_me:$LINENO: result: $AWK" >&5
6334 echo "${ECHO_T}$AWK" >&6
6335 else
6336   echo "$as_me:$LINENO: result: no" >&5
6337 echo "${ECHO_T}no" >&6
6338 fi
6339
6340   test -n "$AWK" && break
6341 done
6342
6343 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
6344 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
6345 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
6346 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6347   echo $ECHO_N "(cached) $ECHO_C" >&6
6348 else
6349   cat >conftest.make <<\_ACEOF
6350 all:
6351         @echo 'ac_maketemp="${MAKE}"'
6352 _ACEOF
6353 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6354 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6355 if test -n "$ac_maketemp"; then
6356   eval ac_cv_prog_make_${ac_make}_set=yes
6357 else
6358   eval ac_cv_prog_make_${ac_make}_set=no
6359 fi
6360 rm -f conftest.make
6361 fi
6362 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6363   echo "$as_me:$LINENO: result: yes" >&5
6364 echo "${ECHO_T}yes" >&6
6365   SET_MAKE=
6366 else
6367   echo "$as_me:$LINENO: result: no" >&5
6368 echo "${ECHO_T}no" >&6
6369   SET_MAKE="MAKE=${MAKE-make}"
6370 fi
6371
6372 # Find a good install program.  We prefer a C program (faster),
6373 # so one script is as good as another.  But avoid the broken or
6374 # incompatible versions:
6375 # SysV /etc/install, /usr/sbin/install
6376 # SunOS /usr/etc/install
6377 # IRIX /sbin/install
6378 # AIX /bin/install
6379 # AmigaOS /C/install, which installs bootblocks on floppy discs
6380 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6381 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6382 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6383 # ./install, which can be erroneously created by make from ./install.sh.
6384 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6385 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6386 if test -z "$INSTALL"; then
6387 if test "${ac_cv_path_install+set}" = set; then
6388   echo $ECHO_N "(cached) $ECHO_C" >&6
6389 else
6390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 for as_dir in $PATH
6392 do
6393   IFS=$as_save_IFS
6394   test -z "$as_dir" && as_dir=.
6395   # Account for people who put trailing slashes in PATH elements.
6396 case $as_dir/ in
6397   ./ | .// | /cC/* | \
6398   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6399   /usr/ucb/* ) ;;
6400   *)
6401     # OSF1 and SCO ODT 3.0 have their own names for install.
6402     # Don't use installbsd from OSF since it installs stuff as root
6403     # by default.
6404     for ac_prog in ginstall scoinst install; do
6405       for ac_exec_ext in '' $ac_executable_extensions; do
6406         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6407           if test $ac_prog = install &&
6408             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6409             # AIX install.  It has an incompatible calling convention.
6410             :
6411           elif test $ac_prog = install &&
6412             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6413             # program-specific install script used by HP pwplus--don't use.
6414             :
6415           else
6416             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6417             break 3
6418           fi
6419         fi
6420       done
6421     done
6422     ;;
6423 esac
6424 done
6425
6426
6427 fi
6428   if test "${ac_cv_path_install+set}" = set; then
6429     INSTALL=$ac_cv_path_install
6430   else
6431     # As a last resort, use the slow shell script.  We don't cache a
6432     # path for INSTALL within a source directory, because that will
6433     # break other packages using the cache if that directory is
6434     # removed, or if the path is relative.
6435     INSTALL=$ac_install_sh
6436   fi
6437 fi
6438 echo "$as_me:$LINENO: result: $INSTALL" >&5
6439 echo "${ECHO_T}$INSTALL" >&6
6440
6441 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6442 # It thinks the first close brace ends the variable substitution.
6443 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6444
6445 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6446
6447 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6448
6449 echo "$as_me:$LINENO: checking whether ln -s works" >&5
6450 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6451 LN_S=$as_ln_s
6452 if test "$LN_S" = "ln -s"; then
6453   echo "$as_me:$LINENO: result: yes" >&5
6454 echo "${ECHO_T}yes" >&6
6455 else
6456   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6457 echo "${ECHO_T}no, using $LN_S" >&6
6458 fi
6459
6460 for ac_prog in rm
6461 do
6462   # Extract the first word of "$ac_prog", so it can be a program name with args.
6463 set dummy $ac_prog; ac_word=$2
6464 echo "$as_me:$LINENO: checking for $ac_word" >&5
6465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6466 if test "${ac_cv_path_RMPROG+set}" = set; then
6467   echo $ECHO_N "(cached) $ECHO_C" >&6
6468 else
6469   case $RMPROG in
6470   [\\/]* | ?:[\\/]*)
6471   ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
6472   ;;
6473   *)
6474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475 for as_dir in $PATH
6476 do
6477   IFS=$as_save_IFS
6478   test -z "$as_dir" && as_dir=.
6479   for ac_exec_ext in '' $ac_executable_extensions; do
6480   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6481     ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
6482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6483     break 2
6484   fi
6485 done
6486 done
6487
6488   ;;
6489 esac
6490 fi
6491 RMPROG=$ac_cv_path_RMPROG
6492
6493 if test -n "$RMPROG"; then
6494   echo "$as_me:$LINENO: result: $RMPROG" >&5
6495 echo "${ECHO_T}$RMPROG" >&6
6496 else
6497   echo "$as_me:$LINENO: result: no" >&5
6498 echo "${ECHO_T}no" >&6
6499 fi
6500
6501   test -n "$RMPROG" && break
6502 done
6503 test -n "$RMPROG" || RMPROG="/bin/rm"
6504
6505 for ac_prog in sh
6506 do
6507   # Extract the first word of "$ac_prog", so it can be a program name with args.
6508 set dummy $ac_prog; ac_word=$2
6509 echo "$as_me:$LINENO: checking for $ac_word" >&5
6510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6511 if test "${ac_cv_path_SHPROG+set}" = set; then
6512   echo $ECHO_N "(cached) $ECHO_C" >&6
6513 else
6514   case $SHPROG in
6515   [\\/]* | ?:[\\/]*)
6516   ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
6517   ;;
6518   *)
6519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520 for as_dir in $PATH
6521 do
6522   IFS=$as_save_IFS
6523   test -z "$as_dir" && as_dir=.
6524   for ac_exec_ext in '' $ac_executable_extensions; do
6525   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6526     ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
6527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6528     break 2
6529   fi
6530 done
6531 done
6532
6533   ;;
6534 esac
6535 fi
6536 SHPROG=$ac_cv_path_SHPROG
6537
6538 if test -n "$SHPROG"; then
6539   echo "$as_me:$LINENO: result: $SHPROG" >&5
6540 echo "${ECHO_T}$SHPROG" >&6
6541 else
6542   echo "$as_me:$LINENO: result: no" >&5
6543 echo "${ECHO_T}no" >&6
6544 fi
6545
6546   test -n "$SHPROG" && break
6547 done
6548 test -n "$SHPROG" || SHPROG="/bin/sh"
6549
6550
6551 echo "$as_me:$LINENO: checking for posix non-blocking" >&5
6552 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6
6553 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
6554   echo $ECHO_N "(cached) $ECHO_C" >&6
6555 else
6556   if test "$cross_compiling" = yes; then
6557   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6558 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6559    { (exit 1); exit 1; }; }
6560 else
6561   cat >conftest.$ac_ext <<_ACEOF
6562 #line $LINENO "configure"
6563 #include "confdefs.h"
6564 #include <sys/types.h>
6565 #include <sys/socket.h>
6566 #include <fcntl.h>
6567 #include <sys/ioctl.h>
6568 #include <sys/file.h>
6569 #include <signal.h>
6570 $ac_cv_type_signal alarmed() { exit(1); }
6571 int main(void)
6572 {
6573   char b[12];
6574   struct sockaddr x;
6575   size_t l = sizeof(x);
6576   int f = socket(AF_INET, SOCK_DGRAM, 0);
6577   if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
6578   {
6579     signal(SIGALRM, alarmed);
6580     alarm(2);
6581     recvfrom(f, b, 12, 0, &x, &l);
6582     alarm(0);
6583     exit(0);
6584   }
6585   exit(1);
6586 }
6587 _ACEOF
6588 rm -f conftest$ac_exeext
6589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6590   (eval $ac_link) 2>&5
6591   ac_status=$?
6592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6595   (eval $ac_try) 2>&5
6596   ac_status=$?
6597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598   (exit $ac_status); }; }; then
6599   unet_cv_sys_nonblocking_posix=yes
6600 else
6601   echo "$as_me: program exited with status $ac_status" >&5
6602 echo "$as_me: failed program was:" >&5
6603 cat conftest.$ac_ext >&5
6604 ( exit $ac_status )
6605 unet_cv_sys_nonblocking_posix=no
6606 fi
6607 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6608 fi
6609 fi
6610 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
6611 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6
6612 if test $unet_cv_sys_nonblocking_posix = yes; then
6613   cat >>confdefs.h <<\_ACEOF
6614 #define NBLOCK_POSIX 1
6615 _ACEOF
6616
6617 else
6618 echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
6619 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6
6620 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
6621   echo $ECHO_N "(cached) $ECHO_C" >&6
6622 else
6623   if test "$cross_compiling" = yes; then
6624   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6625 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6626    { (exit 1); exit 1; }; }
6627 else
6628   cat >conftest.$ac_ext <<_ACEOF
6629 #line $LINENO "configure"
6630 #include "confdefs.h"
6631 #include <sys/types.h>
6632 #include <sys/socket.h>
6633 #include <fcntl.h>
6634 #include <sys/ioctl.h>
6635 #include <sys/file.h>
6636 #include <signal.h>
6637 $ac_cv_type_signal alarmed() { exit(1); }
6638 int main(void)
6639 {
6640   char b[12];
6641   struct sockaddr x;
6642   size_t l = sizeof(x);
6643   int f = socket(AF_INET, SOCK_DGRAM, 0);
6644   if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
6645   {
6646     signal(SIGALRM, alarmed);
6647     alarm(2);
6648     recvfrom(f, b, 12, 0, &x, &l);
6649     alarm(0);
6650     exit(0);
6651   }
6652   exit(1);
6653 }
6654 _ACEOF
6655 rm -f conftest$ac_exeext
6656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6657   (eval $ac_link) 2>&5
6658   ac_status=$?
6659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662   (eval $ac_try) 2>&5
6663   ac_status=$?
6664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665   (exit $ac_status); }; }; then
6666   unet_cv_sys_nonblocking_bsd=yes
6667 else
6668   echo "$as_me: program exited with status $ac_status" >&5
6669 echo "$as_me: failed program was:" >&5
6670 cat conftest.$ac_ext >&5
6671 ( exit $ac_status )
6672 unet_cv_sys_nonblocking_bsd=no
6673 fi
6674 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6675 fi
6676 fi
6677 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
6678 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6
6679 if test $unet_cv_sys_nonblocking_bsd = yes; then
6680   cat >>confdefs.h <<\_ACEOF
6681 #define NBLOCK_BSD 1
6682 _ACEOF
6683
6684 else
6685   cat >>confdefs.h <<\_ACEOF
6686 #define NBLOCK_SYSV 1
6687 _ACEOF
6688
6689 fi
6690 fi
6691 echo "$as_me:$LINENO: checking for posix signals" >&5
6692 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6
6693 if test "${unet_cv_sys_signal_posix+set}" = set; then
6694   echo $ECHO_N "(cached) $ECHO_C" >&6
6695 else
6696   cat >conftest.$ac_ext <<_ACEOF
6697 #line $LINENO "configure"
6698 #include "confdefs.h"
6699 #include <signal.h>
6700 #ifdef F77_DUMMY_MAIN
6701 #  ifdef __cplusplus
6702      extern "C"
6703 #  endif
6704    int F77_DUMMY_MAIN() { return 1; }
6705 #endif
6706 int
6707 main ()
6708 {
6709 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
6710   ;
6711   return 0;
6712 }
6713 _ACEOF
6714 rm -f conftest.$ac_objext
6715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6716   (eval $ac_compile) 2>&5
6717   ac_status=$?
6718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719   (exit $ac_status); } &&
6720          { ac_try='test -s conftest.$ac_objext'
6721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722   (eval $ac_try) 2>&5
6723   ac_status=$?
6724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725   (exit $ac_status); }; }; then
6726   unet_cv_sys_signal_posix=yes
6727 else
6728   echo "$as_me: failed program was:" >&5
6729 cat conftest.$ac_ext >&5
6730 unet_cv_sys_signal_posix=no
6731 fi
6732 rm -f conftest.$ac_objext conftest.$ac_ext
6733 fi
6734 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
6735 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6
6736 if test $unet_cv_sys_signal_posix = yes; then
6737   cat >>confdefs.h <<\_ACEOF
6738 #define POSIX_SIGNALS 1
6739 _ACEOF
6740
6741 else
6742 echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
6743 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6
6744 if test "${unet_cv_sys_signal_bsd+set}" = set; then
6745   echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747   if test "$cross_compiling" = yes; then
6748   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6749 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6750    { (exit 1); exit 1; }; }
6751 else
6752   cat >conftest.$ac_ext <<_ACEOF
6753 #line $LINENO "configure"
6754 #include "confdefs.h"
6755 #include <signal.h>
6756 int calls = 0;
6757 $ac_cv_type_signal handler()
6758 {
6759   if (calls) return;
6760   calls++;
6761   kill(getpid(), SIGTERM);
6762   sleep(1);
6763 }
6764 int main(void)
6765 {
6766   signal(SIGTERM, handler);
6767   kill(getpid(), SIGTERM);
6768   exit (0);
6769 }
6770 _ACEOF
6771 rm -f conftest$ac_exeext
6772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6773   (eval $ac_link) 2>&5
6774   ac_status=$?
6775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6778   (eval $ac_try) 2>&5
6779   ac_status=$?
6780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781   (exit $ac_status); }; }; then
6782   unet_cv_sys_signal_bsd=yes
6783 else
6784   echo "$as_me: program exited with status $ac_status" >&5
6785 echo "$as_me: failed program was:" >&5
6786 cat conftest.$ac_ext >&5
6787 ( exit $ac_status )
6788 unet_cv_sys_signal_bsd=no
6789 fi
6790 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6791 fi
6792 fi
6793 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
6794 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6
6795 if test $unet_cv_sys_signal_bsd = yes; then
6796   cat >>confdefs.h <<\_ACEOF
6797 #define BSD_RELIABLE_SIGNALS 1
6798 _ACEOF
6799
6800 else
6801   cat >>confdefs.h <<\_ACEOF
6802 #define SYSV_UNRELIABLE_SIGNALS 1
6803 _ACEOF
6804
6805 fi
6806 fi
6807
6808 echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5
6809 echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6
6810 unet_cv_pipe_flags="$ac_cv_c_compiler_gnu"
6811 if test "$ac_cv_c_compiler_gnu" = no; then
6812   OLDCFLAGS="$CFLAGS"
6813   CFLAGS="$CFLAGS -pipe"
6814   cat >conftest.$ac_ext <<_ACEOF
6815 #line $LINENO "configure"
6816 #include "confdefs.h"
6817
6818 #ifdef F77_DUMMY_MAIN
6819 #  ifdef __cplusplus
6820      extern "C"
6821 #  endif
6822    int F77_DUMMY_MAIN() { return 1; }
6823 #endif
6824 int
6825 main ()
6826 {
6827
6828   ;
6829   return 0;
6830 }
6831 _ACEOF
6832 rm -f conftest.$ac_objext
6833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6834   (eval $ac_compile) 2>&5
6835   ac_status=$?
6836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837   (exit $ac_status); } &&
6838          { ac_try='test -s conftest.$ac_objext'
6839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840   (eval $ac_try) 2>&5
6841   ac_status=$?
6842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843   (exit $ac_status); }; }; then
6844   unet_cv_pipe_flags=yes
6845 else
6846   echo "$as_me: failed program was:" >&5
6847 cat conftest.$ac_ext >&5
6848 fi
6849 rm -f conftest.$ac_objext conftest.$ac_ext
6850   CFLAGS="$OLDCFLAGS"
6851 fi
6852 echo "$as_me:$LINENO: result: $unet_cv_pipe_flags" >&5
6853 echo "${ECHO_T}$unet_cv_pipe_flags" >&6
6854 if test "$unet_cv_pipe_flags" = yes ; then
6855   x=`echo $CFLAGS | grep 'pipe' 2>/dev/null`
6856   if test "$x" = "" ; then
6857     CFLAGS="$CFLAGS -pipe"
6858   fi
6859 fi
6860
6861
6862 echo "$as_me:$LINENO: checking for OS-dependent information" >&5
6863 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6
6864 case "$host" in
6865     *-linux*)
6866         echo "$as_me:$LINENO: result: Linux ($host) found." >&5
6867 echo "${ECHO_T}Linux ($host) found." >&6
6868         unet_poll_syscall=yes
6869         OSDEP_C=os_linux.c
6870         ;;
6871
6872     *-solaris*)
6873         echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
6874 echo "${ECHO_T}Solaris ($host) found." >&6
6875         if test x"$ac_cv_header_poll_h" = xyes; then
6876             unet_poll_syscall=yes
6877         else
6878             unet_poll_syscall=no
6879         fi
6880         OSDEP_C=os_solaris.c
6881         ;;
6882
6883     *-sunos*)
6884         echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
6885 echo "${ECHO_T}Solaris ($host) found." >&6
6886         unet_poll_syscall=no
6887         OSDEP_C=os_solaris.c
6888         ;;
6889
6890     *-openbsd*)
6891         echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
6892 echo "${ECHO_T}OpenBSD ($host) found." >&6
6893         if test x"$ac_cv_header_poll_h" = xyes; then
6894             unet_poll_syscall=yes
6895         else
6896             unet_poll_syscall=no
6897         fi
6898         OSDEP_C=os_openbsd.c
6899         ;;
6900
6901     *-*bsd*)
6902         echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
6903 echo "${ECHO_T}Generic BSD ($host) found." >&6
6904         if test x"$ac_cv_header_poll_h" = xyes; then
6905             unet_poll_syscall=yes
6906         else
6907             unet_poll_syscall=no
6908         fi
6909         OSDEP_C=os_bsd.c
6910         ;;
6911
6912     *-darwin*)
6913         echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
6914 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6
6915         unet_poll_syscall=no
6916         OSDEP_C=os_bsd.c
6917         ;;
6918
6919     *)
6920         echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
6921 echo "${ECHO_T}Unknown system type $host found." >&6
6922         { echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
6923 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
6924         unet_poll_syscall=no
6925         OSDEP_C=os_generic.c
6926         ;;
6927 esac
6928
6929
6930 echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
6931 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6
6932 # Check whether --enable-poll or --disable-poll was given.
6933 if test "${enable_poll+set}" = set; then
6934   enableval="$enable_poll"
6935   unet_cv_enable_poll=$enable_poll
6936 else
6937   if test "${unet_cv_enable_poll+set}" = set; then
6938   echo $ECHO_N "(cached) $ECHO_C" >&6
6939 else
6940   unet_cv_enable_poll=$unet_poll_syscall
6941 fi
6942
6943 fi;
6944
6945 # Force poll to be disabled if there is no poll.h
6946 if test x"$ac_cv_header_poll_h" != xyes; then
6947     unet_cv_enable_poll=no
6948 fi
6949
6950 echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
6951 echo "${ECHO_T}$unet_cv_enable_poll" >&6
6952
6953 if test x"$unet_cv_enable_poll" = xyes; then
6954
6955 cat >>confdefs.h <<\_ACEOF
6956 #define USE_POLL
6957 _ACEOF
6958
6959     ENGINE_C=engine_poll.c
6960 else
6961     ENGINE_C=engine_select.c
6962 fi
6963
6964
6965 echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
6966 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6
6967 # Check whether --enable-debug or --disable-debug was given.
6968 if test "${enable_debug+set}" = set; then
6969   enableval="$enable_debug"
6970   unet_cv_enable_debug=$enable_debug
6971 else
6972   if test "${unet_cv_enable_debug+set}" = set; then
6973   echo $ECHO_N "(cached) $ECHO_C" >&6
6974 else
6975   unet_cv_enable_debug=no
6976 fi
6977
6978 fi;
6979 echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
6980 echo "${ECHO_T}$unet_cv_enable_debug" >&6
6981
6982 if test x"$unet_cv_enable_debug" = xyes; then
6983
6984 cat >>confdefs.h <<\_ACEOF
6985 #define DEBUGMODE
6986 _ACEOF
6987
6988 fi
6989
6990 echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
6991 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6
6992
6993 # Check whether --with-leak-detect or --without-leak-detect was given.
6994 if test "${with_leak_detect+set}" = set; then
6995   withval="$with_leak_detect"
6996   unet_cv_with_leak_detect=$with_leak_detect
6997 else
6998   if test "${unet_cv_with_leak_detect+set}" = set; then
6999   echo $ECHO_N "(cached) $ECHO_C" >&6
7000 else
7001   unet_cv_with_leak_detect=no
7002 fi
7003
7004 fi;
7005 echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
7006 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6
7007
7008 if test x"$unet_cv_with_leak_detect" != xno; then
7009     LIBS="-lgc $LIBS"
7010     CFLAGS="-DMDEBUG $CFLAGS"
7011     if test x"$unet_cv_with_leak_detect" != xyes; then
7012        LIBS="-L$unet_cv_with_leak_detect $LIBS"
7013     fi
7014 fi
7015
7016 echo "$as_me:$LINENO: checking whether to enable asserts" >&5
7017 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6
7018 # Check whether --enable-asserts or --disable-asserts was given.
7019 if test "${enable_asserts+set}" = set; then
7020   enableval="$enable_asserts"
7021   unet_cv_enable_asserts=$enable_asserts
7022 else
7023   if test "${unet_cv_enable_asserts+set}" = set; then
7024   echo $ECHO_N "(cached) $ECHO_C" >&6
7025 else
7026   unet_cv_enable_asserts=yes
7027 fi
7028
7029 fi;
7030 echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
7031 echo "${ECHO_T}$unet_cv_enable_asserts" >&6
7032
7033 if test x"$unet_cv_enable_asserts" = xno; then
7034
7035 cat >>confdefs.h <<\_ACEOF
7036 #define NDEBUG
7037 _ACEOF
7038
7039 fi
7040
7041 echo "$as_me:$LINENO: checking whether to enable debugging symbols" >&5
7042 echo $ECHO_N "checking whether to enable debugging symbols... $ECHO_C" >&6
7043 # Check whether --enable-symbols or --disable-symbols was given.
7044 if test "${enable_symbols+set}" = set; then
7045   enableval="$enable_symbols"
7046   unet_cv_enable_symbols=$enable_symbols
7047 else
7048   if test "${unet_cv_enable_symbols+set}" = set; then
7049   echo $ECHO_N "(cached) $ECHO_C" >&6
7050 else
7051   unet_cv_enable_symbols=yes
7052 fi
7053
7054 fi;
7055 echo "$as_me:$LINENO: result: $unet_cv_enable_symbols" >&5
7056 echo "${ECHO_T}$unet_cv_enable_symbols" >&6
7057
7058 if test x"$unet_cv_enable_symbols" = xyes; then
7059     CFLAGS="-g $CFLAGS"
7060 fi
7061
7062 echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
7063 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6
7064 # Check whether --enable-profile or --disable-profile was given.
7065 if test "${enable_profile+set}" = set; then
7066   enableval="$enable_profile"
7067   unet_cv_enable_profile=$enable_profile
7068 else
7069   if test "${unet_cv_enable_profile+set}" = set; then
7070   echo $ECHO_N "(cached) $ECHO_C" >&6
7071 else
7072   unet_cv_enable_profile=no
7073 fi
7074
7075 fi;
7076 echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
7077 echo "${ECHO_T}$unet_cv_enable_profile" >&6
7078
7079 if test x"$unet_cv_enable_profile" = xyes; then
7080     CFLAGS="-pg $CFLAGS"
7081 fi
7082
7083 echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
7084 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6
7085 # Check whether --enable-pedantic or --disable-pedantic was given.
7086 if test "${enable_pedantic+set}" = set; then
7087   enableval="$enable_pedantic"
7088   unet_cv_enable_pedantic=$enable_pedantic
7089 else
7090   if test "${unet_cv_enable_pedantic+set}" = set; then
7091   echo $ECHO_N "(cached) $ECHO_C" >&6
7092 else
7093   unet_cv_enable_pedantic=no
7094 fi
7095
7096 fi;
7097 echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
7098 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6
7099
7100 if test x"$unet_cv_enable_pedantic" = xyes; then
7101     CFLAGS="-pedantic $CFLAGS"
7102 fi
7103
7104 echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
7105 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6
7106 # Check whether --enable-warnings or --disable-warnings was given.
7107 if test "${enable_warnings+set}" = set; then
7108   enableval="$enable_warnings"
7109   unet_cv_enable_warnings=$enable_warnings
7110 else
7111   if test "${unet_cv_enable_warnings+set}" = set; then
7112   echo $ECHO_N "(cached) $ECHO_C" >&6
7113 else
7114   unet_cv_enable_warnings=no
7115 fi
7116
7117 fi;
7118 echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
7119 echo "${ECHO_T}$unet_cv_enable_warnings" >&6
7120
7121 if test x"$unet_cv_enable_warnings" = xyes; then
7122     CFLAGS="-Wall $CFLAGS"
7123 fi
7124
7125 echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
7126 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6
7127 # Check whether --enable-inlines or --disable-inlines was given.
7128 if test "${enable_inlines+set}" = set; then
7129   enableval="$enable_inlines"
7130   unet_cv_enable_inlines=$enable_inlines
7131 else
7132   if test "${unet_cv_enable_inlines+set}" = set; then
7133   echo $ECHO_N "(cached) $ECHO_C" >&6
7134 else
7135   unet_cv_enable_inlines=yes
7136 fi
7137
7138 fi;
7139 echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
7140 echo "${ECHO_T}$unet_cv_enable_inlines" >&6
7141
7142 if test x"$unet_cv_enable_inlines" = xyes; then
7143
7144 cat >>confdefs.h <<\_ACEOF
7145 #define FORCEINLINE
7146 _ACEOF
7147
7148 fi
7149
7150 echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
7151 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6
7152 # Check whether --enable-devpoll or --disable-devpoll was given.
7153 if test "${enable_devpoll+set}" = set; then
7154   enableval="$enable_devpoll"
7155   unet_cv_enable_devpoll=$enable_devpoll
7156 else
7157   if test "${unet_cv_enable_devpoll+set}" = set; then
7158   echo $ECHO_N "(cached) $ECHO_C" >&6
7159 else
7160   unet_cv_enable_devpoll=yes
7161 fi
7162
7163 fi;
7164
7165 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
7166     unet_cv_enable_devpoll=no
7167 fi
7168
7169 echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
7170 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6
7171
7172 if test x"$unet_cv_enable_devpoll" != xno; then
7173
7174 cat >>confdefs.h <<\_ACEOF
7175 #define USE_DEVPOLL
7176 _ACEOF
7177
7178     ENGINE_C="engine_devpoll.c $ENGINE_C"
7179 fi
7180
7181 echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
7182 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6
7183 # Check whether --enable-kqueue or --disable-kqueue was given.
7184 if test "${enable_kqueue+set}" = set; then
7185   enableval="$enable_kqueue"
7186   unet_cv_enable_kqueue=$enable_kqueue
7187 else
7188   if test "${unet_cv_enable_kqueue+set}" = set; then
7189   echo $ECHO_N "(cached) $ECHO_C" >&6
7190 else
7191   unet_cv_enable_kqueue=yes
7192 fi
7193
7194 fi;
7195
7196 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
7197     unet_cv_enable_kqueue=no
7198 fi
7199
7200 echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
7201 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6
7202
7203 if test x"$unet_cv_enable_kqueue" != xno; then
7204
7205 cat >>confdefs.h <<\_ACEOF
7206 #define USE_KQUEUE
7207 _ACEOF
7208
7209     ENGINE_C="engine_kqueue.c $ENGINE_C"
7210 fi
7211
7212 echo "$as_me:$LINENO: checking whether to enable the adns resolver engine" >&5
7213 echo $ECHO_N "checking whether to enable the adns resolver engine... $ECHO_C" >&6
7214 # Check whether --enable-adns or --disable-adns was given.
7215 if test "${enable_adns+set}" = set; then
7216   enableval="$enable_adns"
7217   unet_cv_enable_adns=$enable_adns
7218 else
7219   if test "${unet_cv_enable_adns+set}" = set; then
7220   echo $ECHO_N "(cached) $ECHO_C" >&6
7221 else
7222   unet_cv_enable_adns=yes
7223 fi
7224
7225 fi;
7226
7227 echo "$as_me:$LINENO: result: $unet_cv_enable_adns" >&5
7228 echo "${ECHO_T}$unet_cv_enable_adns" >&6
7229
7230 if test x"$unet_cv_enable_adns" != xno; then
7231
7232 cat >>confdefs.h <<\_ACEOF
7233 #define USE_ADNS
7234 _ACEOF
7235
7236
7237
7238 subdirs="$subdirs adns"
7239
7240     RES_C="res_adns.c"
7241     LIBS="../adns/src/libadns.a $LIBS"
7242     ADNS_SUBDIR="adns"
7243 else
7244     RES_C="res_libresolv.c"
7245     ADNS_SUBDIR=""
7246
7247             echo "$as_me:$LINENO: checking for library containing res_mkquery" >&5
7248 echo $ECHO_N "checking for library containing res_mkquery... $ECHO_C" >&6
7249 if test "${ac_cv_search_res_mkquery+set}" = set; then
7250   echo $ECHO_N "(cached) $ECHO_C" >&6
7251 else
7252   ac_func_search_save_LIBS=$LIBS
7253 ac_cv_search_res_mkquery=no
7254 cat >conftest.$ac_ext <<_ACEOF
7255 #line $LINENO "configure"
7256 #include "confdefs.h"
7257
7258 /* Override any gcc2 internal prototype to avoid an error.  */
7259 #ifdef __cplusplus
7260 extern "C"
7261 #endif
7262 /* We use char because int might match the return type of a gcc2
7263    builtin and then its argument prototype would still apply.  */
7264 char res_mkquery ();
7265 #ifdef F77_DUMMY_MAIN
7266 #  ifdef __cplusplus
7267      extern "C"
7268 #  endif
7269    int F77_DUMMY_MAIN() { return 1; }
7270 #endif
7271 int
7272 main ()
7273 {
7274 res_mkquery ();
7275   ;
7276   return 0;
7277 }
7278 _ACEOF
7279 rm -f conftest.$ac_objext conftest$ac_exeext
7280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7281   (eval $ac_link) 2>&5
7282   ac_status=$?
7283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284   (exit $ac_status); } &&
7285          { ac_try='test -s conftest$ac_exeext'
7286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287   (eval $ac_try) 2>&5
7288   ac_status=$?
7289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290   (exit $ac_status); }; }; then
7291   ac_cv_search_res_mkquery="none required"
7292 else
7293   echo "$as_me: failed program was:" >&5
7294 cat conftest.$ac_ext >&5
7295 fi
7296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7297 if test "$ac_cv_search_res_mkquery" = no; then
7298   for ac_lib in resolv; do
7299     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7300     cat >conftest.$ac_ext <<_ACEOF
7301 #line $LINENO "configure"
7302 #include "confdefs.h"
7303
7304 /* Override any gcc2 internal prototype to avoid an error.  */
7305 #ifdef __cplusplus
7306 extern "C"
7307 #endif
7308 /* We use char because int might match the return type of a gcc2
7309    builtin and then its argument prototype would still apply.  */
7310 char res_mkquery ();
7311 #ifdef F77_DUMMY_MAIN
7312 #  ifdef __cplusplus
7313      extern "C"
7314 #  endif
7315    int F77_DUMMY_MAIN() { return 1; }
7316 #endif
7317 int
7318 main ()
7319 {
7320 res_mkquery ();
7321   ;
7322   return 0;
7323 }
7324 _ACEOF
7325 rm -f conftest.$ac_objext conftest$ac_exeext
7326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7327   (eval $ac_link) 2>&5
7328   ac_status=$?
7329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330   (exit $ac_status); } &&
7331          { ac_try='test -s conftest$ac_exeext'
7332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7333   (eval $ac_try) 2>&5
7334   ac_status=$?
7335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336   (exit $ac_status); }; }; then
7337   ac_cv_search_res_mkquery="-l$ac_lib"
7338 break
7339 else
7340   echo "$as_me: failed program was:" >&5
7341 cat conftest.$ac_ext >&5
7342 fi
7343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7344   done
7345 fi
7346 LIBS=$ac_func_search_save_LIBS
7347 fi
7348 echo "$as_me:$LINENO: result: $ac_cv_search_res_mkquery" >&5
7349 echo "${ECHO_T}$ac_cv_search_res_mkquery" >&6
7350 if test "$ac_cv_search_res_mkquery" != no; then
7351   test "$ac_cv_search_res_mkquery" = "none required" || LIBS="$ac_cv_search_res_mkquery $LIBS"
7352
7353 else
7354   { { echo "$as_me:$LINENO: error: Unable to find library containing res_mkquery()" >&5
7355 echo "$as_me: error: Unable to find library containing res_mkquery()" >&2;}
7356    { (exit 1); exit 1; }; }
7357 fi
7358
7359 fi
7360
7361
7362
7363 echo "$as_me:$LINENO: checking what name to give the symlink" >&5
7364 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6
7365
7366 # Check whether --with-symlink or --without-symlink was given.
7367 if test "${with_symlink+set}" = set; then
7368   withval="$with_symlink"
7369   unet_cv_with_symlink=$with_symlink
7370 else
7371   if test "${unet_cv_with_symlink+set}" = set; then
7372   echo $ECHO_N "(cached) $ECHO_C" >&6
7373 else
7374   unet_cv_with_symlink="ircd"
7375 fi
7376
7377 fi;
7378
7379 if test x"$unet_cv_with_symlink" = xyes; then
7380     unet_cv_with_symlink="ircd"
7381 fi
7382
7383 echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
7384 echo "${ECHO_T}$unet_cv_with_symlink" >&6
7385
7386 if test x"$unet_cv_with_symlink" = xno; then
7387     INSTALL_RULE=install-no-symlink
7388     SYMLINK=
7389 else
7390     INSTALL_RULE=install-with-symlink
7391     SYMLINK=$unet_cv_with_symlink
7392 fi
7393
7394
7395
7396 echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
7397 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6
7398
7399 # Check whether --with-mode or --without-mode was given.
7400 if test "${with_mode+set}" = set; then
7401   withval="$with_mode"
7402   unet_cv_with_mode=$with_mode
7403 else
7404   if test "${unet_cv_with_mode+set}" = set; then
7405   echo $ECHO_N "(cached) $ECHO_C" >&6
7406 else
7407   unet_cv_with_mode=711
7408 fi
7409
7410 fi;
7411
7412 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
7413     unet_cv_with_mode=711
7414 fi
7415
7416 echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
7417 echo "${ECHO_T}$unet_cv_with_mode" >&6
7418
7419 IRCDMODE=$unet_cv_with_mode
7420
7421
7422 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
7423 echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
7424 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6
7425
7426 # Check whether --with-owner or --without-owner was given.
7427 if test "${with_owner+set}" = set; then
7428   withval="$with_owner"
7429   unet_cv_with_owner=$with_owner
7430 else
7431   if test "${unet_cv_with_owner+set}" = set; then
7432   echo $ECHO_N "(cached) $ECHO_C" >&6
7433 else
7434   unet_cv_with_owner=$unet_uid
7435 fi
7436
7437 fi;
7438
7439 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
7440     unet_cv_with_owner=$unet_uid
7441 fi
7442
7443 echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
7444 echo "${ECHO_T}$unet_cv_with_owner" >&6
7445
7446 IRCDOWN=$unet_cv_with_owner
7447
7448
7449 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
7450 echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
7451 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6
7452
7453 # Check whether --with-group or --without-group was given.
7454 if test "${with_group+set}" = set; then
7455   withval="$with_group"
7456   unet_cv_with_group=$with_group
7457 else
7458   if test "${unet_cv_with_group+set}" = set; then
7459   echo $ECHO_N "(cached) $ECHO_C" >&6
7460 else
7461   unet_cv_with_group=$unet_gid
7462 fi
7463
7464 fi;
7465
7466 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
7467     unet_cv_with_group=$unet_gid
7468 fi
7469
7470 echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
7471 echo "${ECHO_T}$unet_cv_with_group" >&6
7472
7473 IRCDGRP=$unet_cv_with_group
7474
7475
7476 unet_domain=
7477 if test -f /etc/resolv.conf; then
7478     unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
7479     if test x"$unet_domain" = x; then
7480         unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
7481     fi
7482 fi
7483 echo "$as_me:$LINENO: checking for site domain name" >&5
7484 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6
7485
7486 # Check whether --with-domain or --without-domain was given.
7487 if test "${with_domain+set}" = set; then
7488   withval="$with_domain"
7489   unet_cv_with_domain=$with_domain
7490 else
7491   if test "${unet_cv_with_domain+set}" = set; then
7492   echo $ECHO_N "(cached) $ECHO_C" >&6
7493 else
7494   unet_cv_with_domain=$unet_domain
7495 fi
7496
7497 fi;
7498
7499 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
7500     unet_cv_with_domain=$unet_domain
7501 fi
7502 if test x"$unet_cv_with_domain" = xno; then
7503     { { echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
7504 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
7505    { (exit 1); exit 1; }; }
7506 fi
7507
7508 echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
7509 echo "${ECHO_T}$unet_cv_with_domain" >&6
7510
7511
7512 cat >>confdefs.h <<_ACEOF
7513 #define DOMAINNAME "*$unet_cv_with_domain"
7514 _ACEOF
7515
7516
7517 echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
7518 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6
7519
7520 # Check whether --with-chroot or --without-chroot was given.
7521 if test "${with_chroot+set}" = set; then
7522   withval="$with_chroot"
7523   unet_cv_with_chroot=$with_chroot
7524 else
7525   if test "${unet_cv_with_chroot+set}" = set; then
7526   echo $ECHO_N "(cached) $ECHO_C" >&6
7527 else
7528   unet_cv_with_chroot=no
7529 fi
7530
7531 fi;
7532
7533 if test x"$unet_cv_with_chroot" = xyes; then
7534     { { echo "$as_me:$LINENO: error: --with-chroot given with no directory.  See doc/readme.chroot." >&5
7535 echo "$as_me: error: --with-chroot given with no directory.  See doc/readme.chroot." >&2;}
7536    { (exit 1); exit 1; }; }
7537 fi
7538
7539 # Ensure there are no trailing /'s to mess us up
7540 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
7541
7542 echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
7543 echo "${ECHO_T}$unet_cv_with_chroot" >&6
7544
7545 # Deal with the annoying value "NONE" here
7546 unet_save_prefix=$prefix
7547 if test x"$prefix" = xNONE; then
7548     prefix=$ac_default_prefix
7549 else
7550     prefix=$prefix
7551 fi
7552
7553 unet_save_exec_prefix=$exec_prefix
7554 if test x"$exec_prefix" = xNONE; then
7555     exec_prefix=$prefix
7556 else
7557     exec_prefix=$exec_prefix
7558 fi
7559
7560 # Obtain the actual interesting directories
7561 unet_bindir=`eval echo "$bindir"`
7562 unet_libdir=`eval echo "$libdir"`
7563
7564 # Restore the original settings of $prefix and $exec_prefix
7565 prefix=$unet_save_prefix
7566 exec_prefix=$unet_save_exec_prefix
7567
7568 echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
7569 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6
7570 if test x"$unet_cv_with_symlink" = xno; then
7571     unet_spath="$unet_bindir/ircd"
7572 else
7573     unet_spath="$unet_bindir/$unet_cv_with_symlink"
7574 fi
7575 echo "$as_me:$LINENO: result: $unet_spath" >&5
7576 echo "${ECHO_T}$unet_spath" >&6
7577
7578 if test x"$unet_cv_with_chroot" != xno; then
7579     if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
7580         unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
7581     else
7582         { echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
7583 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
7584     fi
7585 fi
7586
7587
7588 cat >>confdefs.h <<_ACEOF
7589 #define SPATH "$unet_spath"
7590 _ACEOF
7591
7592
7593 echo "$as_me:$LINENO: checking what the data directory should be" >&5
7594 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6
7595
7596 # Check whether --with-dpath or --without-dpath was given.
7597 if test "${with_dpath+set}" = set; then
7598   withval="$with_dpath"
7599   unet_cv_with_dpath=$with_dpath
7600 else
7601   if test "${unet_cv_with_dpath+set}" = set; then
7602   echo $ECHO_N "(cached) $ECHO_C" >&6
7603 else
7604   unet_cv_with_dpath=$unet_libdir
7605 fi
7606
7607 fi;
7608
7609 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
7610     unet_cv_with_dpath=$unet_libdir
7611 fi
7612
7613 # Ensure there are no trailing /'s to mess us up
7614 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
7615
7616 echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
7617 echo "${ECHO_T}$unet_cv_with_dpath" >&6
7618
7619 if test x"$unet_cv_with_chroot" != xno; then
7620     if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
7621         unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
7622     else
7623         { { echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
7624 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
7625    { (exit 1); exit 1; }; }
7626     fi
7627 else
7628     unet_dpath=$unet_cv_with_dpath
7629 fi
7630
7631
7632 cat >>confdefs.h <<_ACEOF
7633 #define DPATH "$unet_dpath"
7634 _ACEOF
7635
7636
7637 DPATH=$unet_cv_with_dpath
7638
7639
7640 echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
7641 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6
7642
7643 # Check whether --with-cpath or --without-cpath was given.
7644 if test "${with_cpath+set}" = set; then
7645   withval="$with_cpath"
7646   unet_cv_with_cpath=$with_cpath
7647 else
7648   if test "${unet_cv_with_cpath+set}" = set; then
7649   echo $ECHO_N "(cached) $ECHO_C" >&6
7650 else
7651   unet_cv_with_cpath="ircd.conf"
7652 fi
7653
7654 fi;
7655
7656 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
7657     unet_cv_with_cpath="ircd.conf"
7658 fi
7659
7660 echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
7661 echo "${ECHO_T}$unet_cv_with_cpath" >&6
7662
7663 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
7664     # Absolute path; check against chroot stuff
7665     if test x"$unet_cv_with_chroot" != xno; then
7666         if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
7667             unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
7668         else
7669             { { echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
7670 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
7671    { (exit 1); exit 1; }; }
7672         fi
7673     else
7674         unet_cpath=$unet_cv_with_cpath
7675     fi
7676 else
7677     unet_cpath=$unet_cv_with_cpath
7678 fi
7679
7680
7681 cat >>confdefs.h <<_ACEOF
7682 #define CPATH "$unet_cpath"
7683 _ACEOF
7684
7685
7686 echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
7687 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6
7688
7689 # Check whether --with-lpath or --without-lpath was given.
7690 if test "${with_lpath+set}" = set; then
7691   withval="$with_lpath"
7692   unet_cv_with_lpath=$with_lpath
7693 else
7694   if test "${unet_cv_with_lpath+set}" = set; then
7695   echo $ECHO_N "(cached) $ECHO_C" >&6
7696 else
7697   unet_cv_with_lpath="ircd.log"
7698 fi
7699
7700 fi;
7701
7702 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
7703     unet_cv_with_lpath="ircd.log"
7704 fi
7705
7706 echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
7707 echo "${ECHO_T}$unet_cv_with_lpath" >&6
7708
7709 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
7710     # Absolute path; check against chroot stuff
7711     if test x"$unet_cv_with_chroot" != xno; then
7712         if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
7713             unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
7714         else
7715             { echo "$as_me:$LINENO: WARNING: Log file $unet_cv_with_lpath not relative to root directory $unet_cv_with_chroot; using default ircd.log instead" >&5
7716 echo "$as_me: WARNING: Log file $unet_cv_with_lpath not relative to root directory $unet_cv_with_chroot; using default ircd.log instead" >&2;}
7717             unet_cv_with_lpath="ircd.log"
7718             unet_lpath="ircd.log"
7719         fi
7720     else
7721         unet_lpath=$unet_cv_with_lpath
7722     fi
7723 else
7724     unet_lpath=$unet_cv_with_lpath
7725 fi
7726
7727
7728 cat >>confdefs.h <<_ACEOF
7729 #define LPATH "$unet_lpath"
7730 _ACEOF
7731
7732
7733 unet_maxcon=`ulimit -Hn`
7734 unet_maxcon=`expr $unet_maxcon - 4`
7735 echo "$as_me:$LINENO: checking max connections" >&5
7736 echo $ECHO_N "checking max connections... $ECHO_C" >&6
7737
7738 # Check whether --with-maxcon or --without-maxcon was given.
7739 if test "${with_maxcon+set}" = set; then
7740   withval="$with_maxcon"
7741   unet_cv_with_maxcon=$with_maxcon
7742 else
7743   if test "${unet_cv_with_maxcon+set}" = set; then
7744   echo $ECHO_N "(cached) $ECHO_C" >&6
7745 else
7746   unet_cv_with_maxcon=$unet_maxcon
7747 fi
7748
7749 fi;
7750
7751 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
7752     unet_cv_with_maxcon=$unet_maxcon
7753 fi
7754
7755 echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
7756 echo "${ECHO_T}$unet_cv_with_maxcon" >&6
7757
7758
7759 cat >>confdefs.h <<_ACEOF
7760 #define MAXCONNECTIONS $unet_cv_with_maxcon
7761 _ACEOF
7762
7763
7764 ac_config_files="$ac_config_files Makefile ircd/Makefile doc/Makefile"
7765 ac_config_commands="$ac_config_commands default"
7766 cat >confcache <<\_ACEOF
7767 # This file is a shell script that caches the results of configure
7768 # tests run on this system so they can be shared between configure
7769 # scripts and configure runs, see configure's option --config-cache.
7770 # It is not useful on other systems.  If it contains results you don't
7771 # want to keep, you may remove or edit it.
7772 #
7773 # config.status only pays attention to the cache file if you give it
7774 # the --recheck option to rerun configure.
7775 #
7776 # `ac_cv_env_foo' variables (set or unset) will be overriden when
7777 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7778 # following values.
7779
7780 _ACEOF
7781
7782 # The following way of writing the cache mishandles newlines in values,
7783 # but we know of no workaround that is simple, portable, and efficient.
7784 # So, don't put newlines in cache variables' values.
7785 # Ultrix sh set writes to stderr and can't be redirected directly,
7786 # and sets the high bit in the cache file unless we assign to the vars.
7787 {
7788   (set) 2>&1 |
7789     case `(ac_space=' '; set | grep ac_space) 2>&1` in
7790     *ac_space=\ *)
7791       # `set' does not quote correctly, so add quotes (double-quote
7792       # substitution turns \\\\ into \\, and sed turns \\ into \).
7793       sed -n \
7794         "s/'/'\\\\''/g;
7795           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7796       ;;
7797     *)
7798       # `set' quotes correctly as required by POSIX, so do not add quotes.
7799       sed -n \
7800         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7801       ;;
7802     esac;
7803 } |
7804   sed '
7805      t clear
7806      : clear
7807      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7808      t end
7809      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7810      : end' >>confcache
7811 if cmp -s $cache_file confcache; then :; else
7812   if test -w $cache_file; then
7813     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7814     cat confcache >$cache_file
7815   else
7816     echo "not updating unwritable cache $cache_file"
7817   fi
7818 fi
7819 rm -f confcache
7820
7821 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7822 # Let make expand exec_prefix.
7823 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7824
7825 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7826 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7827 # trailing colons and then remove the whole line if VPATH becomes empty
7828 # (actually we leave an empty line to preserve line numbers).
7829 if test "x$srcdir" = x.; then
7830   ac_vpsub='/^[         ]*VPATH[        ]*=/{
7831 s/:*\$(srcdir):*/:/;
7832 s/:*\${srcdir}:*/:/;
7833 s/:*@srcdir@:*/:/;
7834 s/^\([^=]*=[    ]*\):*/\1/;
7835 s/:*$//;
7836 s/^[^=]*=[      ]*$//;
7837 }'
7838 fi
7839
7840 DEFS=-DHAVE_CONFIG_H
7841
7842
7843 : ${CONFIG_STATUS=./config.status}
7844 ac_clean_files_save=$ac_clean_files
7845 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7846 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7847 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7848 cat >$CONFIG_STATUS <<_ACEOF
7849 #! $SHELL
7850 # Generated by $as_me.
7851 # Run this file to recreate the current configuration.
7852 # Compiler output produced by configure, useful for debugging
7853 # configure, is in config.log if it exists.
7854
7855 debug=false
7856 SHELL=\${CONFIG_SHELL-$SHELL}
7857 _ACEOF
7858
7859 cat >>$CONFIG_STATUS <<\_ACEOF
7860
7861 ## --------------------- ##
7862 ## M4sh Initialization.  ##
7863 ## --------------------- ##
7864
7865 # Be Bourne compatible
7866 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7867   emulate sh
7868   NULLCMD=:
7869 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7870   set -o posix
7871 fi
7872
7873 # NLS nuisances.
7874 # Support unset when possible.
7875 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7876   as_unset=unset
7877 else
7878   as_unset=false
7879 fi
7880
7881 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
7882     { $as_unset LANG || test "${LANG+set}" != set; } ||
7883       { LANG=C; export LANG; }
7884 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
7885     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
7886       { LC_ALL=C; export LC_ALL; }
7887 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
7888     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
7889       { LC_TIME=C; export LC_TIME; }
7890 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
7891     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
7892       { LC_CTYPE=C; export LC_CTYPE; }
7893 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
7894     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
7895       { LANGUAGE=C; export LANGUAGE; }
7896 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
7897     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
7898       { LC_COLLATE=C; export LC_COLLATE; }
7899 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
7900     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
7901       { LC_NUMERIC=C; export LC_NUMERIC; }
7902 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
7903     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
7904       { LC_MESSAGES=C; export LC_MESSAGES; }
7905
7906
7907 # Name of the executable.
7908 as_me=`(basename "$0") 2>/dev/null ||
7909 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7910          X"$0" : 'X\(//\)$' \| \
7911          X"$0" : 'X\(/\)$' \| \
7912          .     : '\(.\)' 2>/dev/null ||
7913 echo X/"$0" |
7914     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7915           /^X\/\(\/\/\)$/{ s//\1/; q; }
7916           /^X\/\(\/\).*/{ s//\1/; q; }
7917           s/.*/./; q'`
7918
7919 # PATH needs CR, and LINENO needs CR and PATH.
7920 # Avoid depending upon Character Ranges.
7921 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7922 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7923 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7924 as_cr_digits='0123456789'
7925 as_cr_alnum=$as_cr_Letters$as_cr_digits
7926
7927 # The user is always right.
7928 if test "${PATH_SEPARATOR+set}" != set; then
7929   echo "#! /bin/sh" >conftest.sh
7930   echo  "exit 0"   >>conftest.sh
7931   chmod +x conftest.sh
7932   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
7933     PATH_SEPARATOR=';'
7934   else
7935     PATH_SEPARATOR=:
7936   fi
7937   rm -f conftest.sh
7938 fi
7939
7940
7941   as_lineno_1=$LINENO
7942   as_lineno_2=$LINENO
7943   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7944   test "x$as_lineno_1" != "x$as_lineno_2" &&
7945   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7946   # Find who we are.  Look in the path if we contain no path at all
7947   # relative or not.
7948   case $0 in
7949     *[\\/]* ) as_myself=$0 ;;
7950     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 for as_dir in $PATH
7952 do
7953   IFS=$as_save_IFS
7954   test -z "$as_dir" && as_dir=.
7955   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7956 done
7957
7958        ;;
7959   esac
7960   # We did not find ourselves, most probably we were run as `sh COMMAND'
7961   # in which case we are not to be found in the path.
7962   if test "x$as_myself" = x; then
7963     as_myself=$0
7964   fi
7965   if test ! -f "$as_myself"; then
7966     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7967 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7968    { (exit 1); exit 1; }; }
7969   fi
7970   case $CONFIG_SHELL in
7971   '')
7972     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7974 do
7975   IFS=$as_save_IFS
7976   test -z "$as_dir" && as_dir=.
7977   for as_base in sh bash ksh sh5; do
7978          case $as_dir in
7979          /*)
7980            if ("$as_dir/$as_base" -c '
7981   as_lineno_1=$LINENO
7982   as_lineno_2=$LINENO
7983   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7984   test "x$as_lineno_1" != "x$as_lineno_2" &&
7985   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7986              CONFIG_SHELL=$as_dir/$as_base
7987              export CONFIG_SHELL
7988              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7989            fi;;
7990          esac
7991        done
7992 done
7993 ;;
7994   esac
7995
7996   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7997   # uniformly replaced by the line number.  The first 'sed' inserts a
7998   # line-number line before each line; the second 'sed' does the real
7999   # work.  The second script uses 'N' to pair each line-number line
8000   # with the numbered line, and appends trailing '-' during
8001   # substitution so that $LINENO is not a special case at line end.
8002   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8003   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
8004   sed '=' <$as_myself |
8005     sed '
8006       N
8007       s,$,-,
8008       : loop
8009       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8010       t loop
8011       s,-$,,
8012       s,^['$as_cr_digits']*\n,,
8013     ' >$as_me.lineno &&
8014   chmod +x $as_me.lineno ||
8015     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8016 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8017    { (exit 1); exit 1; }; }
8018
8019   # Don't try to exec as it changes $[0], causing all sort of problems
8020   # (the dirname of $[0] is not the place where we might find the
8021   # original and so on.  Autoconf is especially sensible to this).
8022   . ./$as_me.lineno
8023   # Exit status is that of the last command.
8024   exit
8025 }
8026
8027
8028 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8029   *c*,-n*) ECHO_N= ECHO_C='
8030 ' ECHO_T='      ' ;;
8031   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8032   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
8033 esac
8034
8035 if expr a : '\(a\)' >/dev/null 2>&1; then
8036   as_expr=expr
8037 else
8038   as_expr=false
8039 fi
8040
8041 rm -f conf$$ conf$$.exe conf$$.file
8042 echo >conf$$.file
8043 if ln -s conf$$.file conf$$ 2>/dev/null; then
8044   # We could just check for DJGPP; but this test a) works b) is more generic
8045   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8046   if test -f conf$$.exe; then
8047     # Don't use ln at all; we don't have any links
8048     as_ln_s='cp -p'
8049   else
8050     as_ln_s='ln -s'
8051   fi
8052 elif ln conf$$.file conf$$ 2>/dev/null; then
8053   as_ln_s=ln
8054 else
8055   as_ln_s='cp -p'
8056 fi
8057 rm -f conf$$ conf$$.exe conf$$.file
8058
8059 as_executable_p="test -f"
8060
8061 # Sed expression to map a string onto a valid CPP name.
8062 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8063
8064 # Sed expression to map a string onto a valid variable name.
8065 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8066
8067
8068 # IFS
8069 # We need space, tab and new line, in precisely that order.
8070 as_nl='
8071 '
8072 IFS="   $as_nl"
8073
8074 # CDPATH.
8075 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
8076
8077 exec 6>&1
8078
8079 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8080 # report actual input values of CONFIG_FILES etc. instead of their
8081 # values after options handling.  Logging --version etc. is OK.
8082 exec 5>>config.log
8083 {
8084   echo
8085   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8086 ## Running $as_me. ##
8087 _ASBOX
8088 } >&5
8089 cat >&5 <<_CSEOF
8090
8091 This file was extended by $as_me, which was
8092 generated by GNU Autoconf 2.53.  Invocation command line was
8093
8094   CONFIG_FILES    = $CONFIG_FILES
8095   CONFIG_HEADERS  = $CONFIG_HEADERS
8096   CONFIG_LINKS    = $CONFIG_LINKS
8097   CONFIG_COMMANDS = $CONFIG_COMMANDS
8098   $ $0 $@
8099
8100 _CSEOF
8101 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8102 echo >&5
8103 _ACEOF
8104
8105 # Files that config.status was made for.
8106 if test -n "$ac_config_files"; then
8107   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8108 fi
8109
8110 if test -n "$ac_config_headers"; then
8111   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8112 fi
8113
8114 if test -n "$ac_config_links"; then
8115   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8116 fi
8117
8118 if test -n "$ac_config_commands"; then
8119   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8120 fi
8121
8122 cat >>$CONFIG_STATUS <<\_ACEOF
8123
8124 ac_cs_usage="\
8125 \`$as_me' instantiates files from templates according to the
8126 current configuration.
8127
8128 Usage: $0 [OPTIONS] [FILE]...
8129
8130   -h, --help       print this help, then exit
8131   -V, --version    print version number, then exit
8132   -d, --debug      don't remove temporary files
8133       --recheck    update $as_me by reconfiguring in the same conditions
8134   --file=FILE[:TEMPLATE]
8135                    instantiate the configuration file FILE
8136   --header=FILE[:TEMPLATE]
8137                    instantiate the configuration header FILE
8138
8139 Configuration files:
8140 $config_files
8141
8142 Configuration headers:
8143 $config_headers
8144
8145 Configuration commands:
8146 $config_commands
8147
8148 Report bugs to <bug-autoconf@gnu.org>."
8149 _ACEOF
8150
8151 cat >>$CONFIG_STATUS <<_ACEOF
8152 ac_cs_version="\\
8153 config.status
8154 configured by $0, generated by GNU Autoconf 2.53,
8155   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8156
8157 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8158 Free Software Foundation, Inc.
8159 This config.status script is free software; the Free Software Foundation
8160 gives unlimited permission to copy, distribute and modify it."
8161 srcdir=$srcdir
8162 INSTALL="$INSTALL"
8163 _ACEOF
8164
8165 cat >>$CONFIG_STATUS <<\_ACEOF
8166 # If no file are specified by the user, then we need to provide default
8167 # value.  By we need to know if files were specified by the user.
8168 ac_need_defaults=:
8169 while test $# != 0
8170 do
8171   case $1 in
8172   --*=*)
8173     ac_option=`expr "x$1" : 'x\([^=]*\)='`
8174     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8175     shift
8176     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
8177     shift
8178     ;;
8179   -*);;
8180   *) # This is not an option, so the user has probably given explicit
8181      # arguments.
8182      ac_need_defaults=false;;
8183   esac
8184
8185   case $1 in
8186   # Handling of the options.
8187 _ACEOF
8188 cat >>$CONFIG_STATUS <<_ACEOF
8189   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8190     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8191     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8192 _ACEOF
8193 cat >>$CONFIG_STATUS <<\_ACEOF
8194   --version | --vers* | -V )
8195     echo "$ac_cs_version"; exit 0 ;;
8196   --he | --h)
8197     # Conflict between --help and --header
8198     { { echo "$as_me:$LINENO: error: ambiguous option: $1
8199 Try \`$0 --help' for more information." >&5
8200 echo "$as_me: error: ambiguous option: $1
8201 Try \`$0 --help' for more information." >&2;}
8202    { (exit 1); exit 1; }; };;
8203   --help | --hel | -h )
8204     echo "$ac_cs_usage"; exit 0 ;;
8205   --debug | --d* | -d )
8206     debug=: ;;
8207   --file | --fil | --fi | --f )
8208     shift
8209     CONFIG_FILES="$CONFIG_FILES $1"
8210     ac_need_defaults=false;;
8211   --header | --heade | --head | --hea )
8212     shift
8213     CONFIG_HEADERS="$CONFIG_HEADERS $1"
8214     ac_need_defaults=false;;
8215
8216   # This is an error.
8217   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8218 Try \`$0 --help' for more information." >&5
8219 echo "$as_me: error: unrecognized option: $1
8220 Try \`$0 --help' for more information." >&2;}
8221    { (exit 1); exit 1; }; } ;;
8222
8223   *) ac_config_targets="$ac_config_targets $1" ;;
8224
8225   esac
8226   shift
8227 done
8228
8229 _ACEOF
8230
8231
8232
8233
8234
8235 cat >>$CONFIG_STATUS <<\_ACEOF
8236 for ac_config_target in $ac_config_targets
8237 do
8238   case "$ac_config_target" in
8239   # Handling of arguments.
8240   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8241   "ircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
8242   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8243   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8244   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8245   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8246 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8247    { (exit 1); exit 1; }; };;
8248   esac
8249 done
8250
8251 # If the user did not use the arguments to specify the items to instantiate,
8252 # then the envvar interface is used.  Set only those that are not.
8253 # We use the long form for the default assignment because of an extremely
8254 # bizarre bug on SunOS 4.1.3.
8255 if $ac_need_defaults; then
8256   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8257   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8258   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8259 fi
8260
8261 # Create a temporary directory, and hook for its removal unless debugging.
8262 $debug ||
8263 {
8264   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8265   trap '{ (exit 1); exit 1; }' 1 2 13 15
8266 }
8267
8268 # Create a (secure) tmp directory for tmp files.
8269 : ${TMPDIR=/tmp}
8270 {
8271   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
8272   test -n "$tmp" && test -d "$tmp"
8273 }  ||
8274 {
8275   tmp=$TMPDIR/cs$$-$RANDOM
8276   (umask 077 && mkdir $tmp)
8277 } ||
8278 {
8279    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8280    { (exit 1); exit 1; }
8281 }
8282
8283 _ACEOF
8284
8285 cat >>$CONFIG_STATUS <<_ACEOF
8286
8287 #
8288 # CONFIG_FILES section.
8289 #
8290
8291 # No need to generate the scripts if there are no CONFIG_FILES.
8292 # This happens for instance when ./config.status config.h
8293 if test -n "\$CONFIG_FILES"; then
8294   # Protect against being on the right side of a sed subst in config.status.
8295   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8296    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8297 s,@SHELL@,$SHELL,;t t
8298 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8299 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8300 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8301 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8302 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8303 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8304 s,@exec_prefix@,$exec_prefix,;t t
8305 s,@prefix@,$prefix,;t t
8306 s,@program_transform_name@,$program_transform_name,;t t
8307 s,@bindir@,$bindir,;t t
8308 s,@sbindir@,$sbindir,;t t
8309 s,@libexecdir@,$libexecdir,;t t
8310 s,@datadir@,$datadir,;t t
8311 s,@sysconfdir@,$sysconfdir,;t t
8312 s,@sharedstatedir@,$sharedstatedir,;t t
8313 s,@localstatedir@,$localstatedir,;t t
8314 s,@libdir@,$libdir,;t t
8315 s,@includedir@,$includedir,;t t
8316 s,@oldincludedir@,$oldincludedir,;t t
8317 s,@infodir@,$infodir,;t t
8318 s,@mandir@,$mandir,;t t
8319 s,@build_alias@,$build_alias,;t t
8320 s,@host_alias@,$host_alias,;t t
8321 s,@target_alias@,$target_alias,;t t
8322 s,@DEFS@,$DEFS,;t t
8323 s,@ECHO_C@,$ECHO_C,;t t
8324 s,@ECHO_N@,$ECHO_N,;t t
8325 s,@ECHO_T@,$ECHO_T,;t t
8326 s,@LIBS@,$LIBS,;t t
8327 s,@build@,$build,;t t
8328 s,@build_cpu@,$build_cpu,;t t
8329 s,@build_vendor@,$build_vendor,;t t
8330 s,@build_os@,$build_os,;t t
8331 s,@host@,$host,;t t
8332 s,@host_cpu@,$host_cpu,;t t
8333 s,@host_vendor@,$host_vendor,;t t
8334 s,@host_os@,$host_os,;t t
8335 s,@CC@,$CC,;t t
8336 s,@CFLAGS@,$CFLAGS,;t t
8337 s,@LDFLAGS@,$LDFLAGS,;t t
8338 s,@CPPFLAGS@,$CPPFLAGS,;t t
8339 s,@ac_ct_CC@,$ac_ct_CC,;t t
8340 s,@EXEEXT@,$EXEEXT,;t t
8341 s,@OBJEXT@,$OBJEXT,;t t
8342 s,@CPP@,$CPP,;t t
8343 s,@AWK@,$AWK,;t t
8344 s,@SET_MAKE@,$SET_MAKE,;t t
8345 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8346 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8347 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8348 s,@LN_S@,$LN_S,;t t
8349 s,@RMPROG@,$RMPROG,;t t
8350 s,@SHPROG@,$SHPROG,;t t
8351 s,@OSDEP_C@,$OSDEP_C,;t t
8352 s,@ENGINE_C@,$ENGINE_C,;t t
8353 s,@subdirs@,$subdirs,;t t
8354 s,@RES_C@,$RES_C,;t t
8355 s,@ADNS_SUBDIR@,$ADNS_SUBDIR,;t t
8356 s,@INSTALL_RULE@,$INSTALL_RULE,;t t
8357 s,@SYMLINK@,$SYMLINK,;t t
8358 s,@IRCDMODE@,$IRCDMODE,;t t
8359 s,@IRCDOWN@,$IRCDOWN,;t t
8360 s,@IRCDGRP@,$IRCDGRP,;t t
8361 s,@DPATH@,$DPATH,;t t
8362 CEOF
8363
8364 _ACEOF
8365
8366   cat >>$CONFIG_STATUS <<\_ACEOF
8367   # Split the substitutions into bite-sized pieces for seds with
8368   # small command number limits, like on Digital OSF/1 and HP-UX.
8369   ac_max_sed_lines=48
8370   ac_sed_frag=1 # Number of current file.
8371   ac_beg=1 # First line for current file.
8372   ac_end=$ac_max_sed_lines # Line after last line for current file.
8373   ac_more_lines=:
8374   ac_sed_cmds=
8375   while $ac_more_lines; do
8376     if test $ac_beg -gt 1; then
8377       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8378     else
8379       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8380     fi
8381     if test ! -s $tmp/subs.frag; then
8382       ac_more_lines=false
8383     else
8384       # The purpose of the label and of the branching condition is to
8385       # speed up the sed processing (if there are no `@' at all, there
8386       # is no need to browse any of the substitutions).
8387       # These are the two extra sed commands mentioned above.
8388       (echo ':t
8389   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8390       if test -z "$ac_sed_cmds"; then
8391         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8392       else
8393         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8394       fi
8395       ac_sed_frag=`expr $ac_sed_frag + 1`
8396       ac_beg=$ac_end
8397       ac_end=`expr $ac_end + $ac_max_sed_lines`
8398     fi
8399   done
8400   if test -z "$ac_sed_cmds"; then
8401     ac_sed_cmds=cat
8402   fi
8403 fi # test -n "$CONFIG_FILES"
8404
8405 _ACEOF
8406 cat >>$CONFIG_STATUS <<\_ACEOF
8407 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8408   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8409   case $ac_file in
8410   - | *:- | *:-:* ) # input from stdin
8411         cat >$tmp/stdin
8412         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8413         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8414   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8415         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8416   * )   ac_file_in=$ac_file.in ;;
8417   esac
8418
8419   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8420   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8421 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8422          X"$ac_file" : 'X\(//\)[^/]' \| \
8423          X"$ac_file" : 'X\(//\)$' \| \
8424          X"$ac_file" : 'X\(/\)' \| \
8425          .     : '\(.\)' 2>/dev/null ||
8426 echo X"$ac_file" |
8427     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8428           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8429           /^X\(\/\/\)$/{ s//\1/; q; }
8430           /^X\(\/\).*/{ s//\1/; q; }
8431           s/.*/./; q'`
8432   { case "$ac_dir" in
8433   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8434   *)                      as_incr_dir=.;;
8435 esac
8436 as_dummy="$ac_dir"
8437 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8438   case $as_mkdir_dir in
8439     # Skip DOS drivespec
8440     ?:) as_incr_dir=$as_mkdir_dir ;;
8441     *)
8442       as_incr_dir=$as_incr_dir/$as_mkdir_dir
8443       test -d "$as_incr_dir" ||
8444         mkdir "$as_incr_dir" ||
8445         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
8446 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
8447    { (exit 1); exit 1; }; }
8448     ;;
8449   esac
8450 done; }
8451
8452   ac_builddir=.
8453
8454 if test "$ac_dir" != .; then
8455   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8456   # A "../" for each directory in $ac_dir_suffix.
8457   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8458 else
8459   ac_dir_suffix= ac_top_builddir=
8460 fi
8461
8462 case $srcdir in
8463   .)  # No --srcdir option.  We are building in place.
8464     ac_srcdir=.
8465     if test -z "$ac_top_builddir"; then
8466        ac_top_srcdir=.
8467     else
8468        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8469     fi ;;
8470   [\\/]* | ?:[\\/]* )  # Absolute path.
8471     ac_srcdir=$srcdir$ac_dir_suffix;
8472     ac_top_srcdir=$srcdir ;;
8473   *) # Relative path.
8474     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8475     ac_top_srcdir=$ac_top_builddir$srcdir ;;
8476 esac
8477 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8478 # absolute.
8479 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8480 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8481 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8482 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8483
8484
8485   case $INSTALL in
8486   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8487   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8488   esac
8489
8490   if test x"$ac_file" != x-; then
8491     { echo "$as_me:$LINENO: creating $ac_file" >&5
8492 echo "$as_me: creating $ac_file" >&6;}
8493     rm -f "$ac_file"
8494   fi
8495   # Let's still pretend it is `configure' which instantiates (i.e., don't
8496   # use $as_me), people would be surprised to read:
8497   #    /* config.h.  Generated by config.status.  */
8498   if test x"$ac_file" = x-; then
8499     configure_input=
8500   else
8501     configure_input="$ac_file.  "
8502   fi
8503   configure_input=$configure_input"Generated from `echo $ac_file_in |
8504                                      sed 's,.*/,,'` by configure."
8505
8506   # First look for the input files in the build tree, otherwise in the
8507   # src tree.
8508   ac_file_inputs=`IFS=:
8509     for f in $ac_file_in; do
8510       case $f in
8511       -) echo $tmp/stdin ;;
8512       [\\/$]*)
8513          # Absolute (can't be DOS-style, as IFS=:)
8514          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8515 echo "$as_me: error: cannot find input file: $f" >&2;}
8516    { (exit 1); exit 1; }; }
8517          echo $f;;
8518       *) # Relative
8519          if test -f "$f"; then
8520            # Build tree
8521            echo $f
8522          elif test -f "$srcdir/$f"; then
8523            # Source tree
8524            echo $srcdir/$f
8525          else
8526            # /dev/null tree
8527            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8528 echo "$as_me: error: cannot find input file: $f" >&2;}
8529    { (exit 1); exit 1; }; }
8530          fi;;
8531       esac
8532     done` || { (exit 1); exit 1; }
8533 _ACEOF
8534 cat >>$CONFIG_STATUS <<_ACEOF
8535   sed "$ac_vpsub
8536 $extrasub
8537 _ACEOF
8538 cat >>$CONFIG_STATUS <<\_ACEOF
8539 :t
8540 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8541 s,@configure_input@,$configure_input,;t t
8542 s,@srcdir@,$ac_srcdir,;t t
8543 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8544 s,@top_srcdir@,$ac_top_srcdir,;t t
8545 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8546 s,@builddir@,$ac_builddir,;t t
8547 s,@abs_builddir@,$ac_abs_builddir,;t t
8548 s,@top_builddir@,$ac_top_builddir,;t t
8549 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8550 s,@INSTALL@,$ac_INSTALL,;t t
8551 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8552   rm -f $tmp/stdin
8553   if test x"$ac_file" != x-; then
8554     mv $tmp/out $ac_file
8555   else
8556     cat $tmp/out
8557     rm -f $tmp/out
8558   fi
8559
8560 done
8561 _ACEOF
8562 cat >>$CONFIG_STATUS <<\_ACEOF
8563
8564 #
8565 # CONFIG_HEADER section.
8566 #
8567
8568 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8569 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8570 #
8571 # ac_d sets the value in "#define NAME VALUE" lines.
8572 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
8573 ac_dB='[        ].*$,\1#\2'
8574 ac_dC=' '
8575 ac_dD=',;t'
8576 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8577 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8578 ac_uB='$,\1#\2define\3'
8579 ac_uC=' '
8580 ac_uD=',;t'
8581
8582 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8583   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8584   case $ac_file in
8585   - | *:- | *:-:* ) # input from stdin
8586         cat >$tmp/stdin
8587         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8588         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8589   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8590         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8591   * )   ac_file_in=$ac_file.in ;;
8592   esac
8593
8594   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8595 echo "$as_me: creating $ac_file" >&6;}
8596
8597   # First look for the input files in the build tree, otherwise in the
8598   # src tree.
8599   ac_file_inputs=`IFS=:
8600     for f in $ac_file_in; do
8601       case $f in
8602       -) echo $tmp/stdin ;;
8603       [\\/$]*)
8604          # Absolute (can't be DOS-style, as IFS=:)
8605          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8606 echo "$as_me: error: cannot find input file: $f" >&2;}
8607    { (exit 1); exit 1; }; }
8608          echo $f;;
8609       *) # Relative
8610          if test -f "$f"; then
8611            # Build tree
8612            echo $f
8613          elif test -f "$srcdir/$f"; then
8614            # Source tree
8615            echo $srcdir/$f
8616          else
8617            # /dev/null tree
8618            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8619 echo "$as_me: error: cannot find input file: $f" >&2;}
8620    { (exit 1); exit 1; }; }
8621          fi;;
8622       esac
8623     done` || { (exit 1); exit 1; }
8624   # Remove the trailing spaces.
8625   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
8626
8627 _ACEOF
8628
8629 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8630 # `conftest.undefs', that substitutes the proper values into
8631 # config.h.in to produce config.h.  The first handles `#define'
8632 # templates, and the second `#undef' templates.
8633 # And first: Protect against being on the right side of a sed subst in
8634 # config.status.  Protect against being in an unquoted here document
8635 # in config.status.
8636 rm -f conftest.defines conftest.undefs
8637 # Using a here document instead of a string reduces the quoting nightmare.
8638 # Putting comments in sed scripts is not portable.
8639 #
8640 # `end' is used to avoid that the second main sed command (meant for
8641 # 0-ary CPP macros) applies to n-ary macro definitions.
8642 # See the Autoconf documentation for `clear'.
8643 cat >confdef2sed.sed <<\_ACEOF
8644 s/[\\&,]/\\&/g
8645 s,[\\$`],\\&,g
8646 t clear
8647 : clear
8648 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8649 t end
8650 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8651 : end
8652 _ACEOF
8653 # If some macros were called several times there might be several times
8654 # the same #defines, which is useless.  Nevertheless, we may not want to
8655 # sort them, since we want the *last* AC-DEFINE to be honored.
8656 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8657 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8658 rm -f confdef2sed.sed
8659
8660 # This sed command replaces #undef with comments.  This is necessary, for
8661 # example, in the case of _POSIX_SOURCE, which is predefined and required
8662 # on some systems where configure will not decide to define it.
8663 cat >>conftest.undefs <<\_ACEOF
8664 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8665 _ACEOF
8666
8667 # Break up conftest.defines because some shells have a limit on the size
8668 # of here documents, and old seds have small limits too (100 cmds).
8669 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8670 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8671 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8672 echo '  :' >>$CONFIG_STATUS
8673 rm -f conftest.tail
8674 while grep . conftest.defines >/dev/null
8675 do
8676   # Write a limited-size here document to $tmp/defines.sed.
8677   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8678   # Speed up: don't consider the non `#define' lines.
8679   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
8680   # Work around the forget-to-reset-the-flag bug.
8681   echo 't clr' >>$CONFIG_STATUS
8682   echo ': clr' >>$CONFIG_STATUS
8683   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8684   echo 'CEOF
8685   sed -f $tmp/defines.sed $tmp/in >$tmp/out
8686   rm -f $tmp/in
8687   mv $tmp/out $tmp/in
8688 ' >>$CONFIG_STATUS
8689   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8690   rm -f conftest.defines
8691   mv conftest.tail conftest.defines
8692 done
8693 rm -f conftest.defines
8694 echo '  fi # egrep' >>$CONFIG_STATUS
8695 echo >>$CONFIG_STATUS
8696
8697 # Break up conftest.undefs because some shells have a limit on the size
8698 # of here documents, and old seds have small limits too (100 cmds).
8699 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
8700 rm -f conftest.tail
8701 while grep . conftest.undefs >/dev/null
8702 do
8703   # Write a limited-size here document to $tmp/undefs.sed.
8704   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8705   # Speed up: don't consider the non `#undef'
8706   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8707   # Work around the forget-to-reset-the-flag bug.
8708   echo 't clr' >>$CONFIG_STATUS
8709   echo ': clr' >>$CONFIG_STATUS
8710   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8711   echo 'CEOF
8712   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8713   rm -f $tmp/in
8714   mv $tmp/out $tmp/in
8715 ' >>$CONFIG_STATUS
8716   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8717   rm -f conftest.undefs
8718   mv conftest.tail conftest.undefs
8719 done
8720 rm -f conftest.undefs
8721
8722 cat >>$CONFIG_STATUS <<\_ACEOF
8723   # Let's still pretend it is `configure' which instantiates (i.e., don't
8724   # use $as_me), people would be surprised to read:
8725   #    /* config.h.  Generated by config.status.  */
8726   if test x"$ac_file" = x-; then
8727     echo "/* Generated by configure.  */" >$tmp/config.h
8728   else
8729     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
8730   fi
8731   cat $tmp/in >>$tmp/config.h
8732   rm -f $tmp/in
8733   if test x"$ac_file" != x-; then
8734     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
8735       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8736 echo "$as_me: $ac_file is unchanged" >&6;}
8737     else
8738       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8739 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8740          X"$ac_file" : 'X\(//\)[^/]' \| \
8741          X"$ac_file" : 'X\(//\)$' \| \
8742          X"$ac_file" : 'X\(/\)' \| \
8743          .     : '\(.\)' 2>/dev/null ||
8744 echo X"$ac_file" |
8745     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8746           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8747           /^X\(\/\/\)$/{ s//\1/; q; }
8748           /^X\(\/\).*/{ s//\1/; q; }
8749           s/.*/./; q'`
8750       { case "$ac_dir" in
8751   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8752   *)                      as_incr_dir=.;;
8753 esac
8754 as_dummy="$ac_dir"
8755 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8756   case $as_mkdir_dir in
8757     # Skip DOS drivespec
8758     ?:) as_incr_dir=$as_mkdir_dir ;;
8759     *)
8760       as_incr_dir=$as_incr_dir/$as_mkdir_dir
8761       test -d "$as_incr_dir" ||
8762         mkdir "$as_incr_dir" ||
8763         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
8764 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
8765    { (exit 1); exit 1; }; }
8766     ;;
8767   esac
8768 done; }
8769
8770       rm -f $ac_file
8771       mv $tmp/config.h $ac_file
8772     fi
8773   else
8774     cat $tmp/config.h
8775     rm -f $tmp/config.h
8776   fi
8777 done
8778 _ACEOF
8779 cat >>$CONFIG_STATUS <<\_ACEOF
8780
8781 #
8782 # CONFIG_COMMANDS section.
8783 #
8784 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8785   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8786   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8787   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8788 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8789          X"$ac_dest" : 'X\(//\)[^/]' \| \
8790          X"$ac_dest" : 'X\(//\)$' \| \
8791          X"$ac_dest" : 'X\(/\)' \| \
8792          .     : '\(.\)' 2>/dev/null ||
8793 echo X"$ac_dest" |
8794     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8795           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8796           /^X\(\/\/\)$/{ s//\1/; q; }
8797           /^X\(\/\).*/{ s//\1/; q; }
8798           s/.*/./; q'`
8799   ac_builddir=.
8800
8801 if test "$ac_dir" != .; then
8802   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8803   # A "../" for each directory in $ac_dir_suffix.
8804   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8805 else
8806   ac_dir_suffix= ac_top_builddir=
8807 fi
8808
8809 case $srcdir in
8810   .)  # No --srcdir option.  We are building in place.
8811     ac_srcdir=.
8812     if test -z "$ac_top_builddir"; then
8813        ac_top_srcdir=.
8814     else
8815        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8816     fi ;;
8817   [\\/]* | ?:[\\/]* )  # Absolute path.
8818     ac_srcdir=$srcdir$ac_dir_suffix;
8819     ac_top_srcdir=$srcdir ;;
8820   *) # Relative path.
8821     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8822     ac_top_srcdir=$ac_top_builddir$srcdir ;;
8823 esac
8824 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8825 # absolute.
8826 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8827 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8828 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8829 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8830
8831
8832   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8833 echo "$as_me: executing $ac_dest commands" >&6;}
8834   case $ac_dest in
8835     default ) echo timestamp > stamp-h ;;
8836   esac
8837 done
8838 _ACEOF
8839
8840 cat >>$CONFIG_STATUS <<\_ACEOF
8841
8842 { (exit 0); exit 0; }
8843 _ACEOF
8844 chmod +x $CONFIG_STATUS
8845 ac_clean_files=$ac_clean_files_save
8846
8847
8848 # configure is writing to config.log, and then calls config.status.
8849 # config.status does its own redirection, appending to config.log.
8850 # Unfortunately, on DOS this fails, as config.log is still kept open
8851 # by configure, so config.status won't be able to write to it; its
8852 # output is simply discarded.  So we exec the FD to /dev/null,
8853 # effectively closing config.log, so it can be properly (re)opened and
8854 # appended to by config.status.  When coming back to configure, we
8855 # need to make the FD available again.
8856 if test "$no_create" != yes; then
8857   ac_cs_success=:
8858   exec 5>/dev/null
8859   $SHELL $CONFIG_STATUS || ac_cs_success=false
8860   exec 5>>config.log
8861   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8862   # would make configure fail if this is the last instruction.
8863   $ac_cs_success || { (exit 1); exit 1; }
8864 fi
8865
8866 #
8867 # CONFIG_SUBDIRS section.
8868 #
8869 if test "$no_recursion" != yes; then
8870
8871   # Remove --cache-file and --srcdir arguments so they do not pile up.
8872   ac_sub_configure_args=
8873   ac_prev=
8874   for ac_arg in $ac_configure_args; do
8875     if test -n "$ac_prev"; then
8876       ac_prev=
8877       continue
8878     fi
8879     case $ac_arg in
8880     -cache-file | --cache-file | --cache-fil | --cache-fi \
8881     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8882       ac_prev=cache_file ;;
8883     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8884     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8885     | --c=*)
8886       ;;
8887     --config-cache | -C)
8888       ;;
8889     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8890       ac_prev=srcdir ;;
8891     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8892       ;;
8893     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8894       ac_prev=prefix ;;
8895     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8896       ;;
8897     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8898     esac
8899   done
8900
8901   # Always prepend --prefix to ensure using the same prefix
8902   # in subdir configurations.
8903   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
8904
8905   ac_popdir=`pwd`
8906   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8907
8908     # Do not complain, so a configure script can configure whichever
8909     # parts of a large source tree are present.
8910     test -d $srcdir/$ac_dir || continue
8911
8912     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
8913 echo "$as_me: configuring in $ac_dir" >&6;}
8914     { case "$ac_dir" in
8915   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8916   *)                      as_incr_dir=.;;
8917 esac
8918 as_dummy="$ac_dir"
8919 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8920   case $as_mkdir_dir in
8921     # Skip DOS drivespec
8922     ?:) as_incr_dir=$as_mkdir_dir ;;
8923     *)
8924       as_incr_dir=$as_incr_dir/$as_mkdir_dir
8925       test -d "$as_incr_dir" ||
8926         mkdir "$as_incr_dir" ||
8927         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
8928 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
8929    { (exit 1); exit 1; }; }
8930     ;;
8931   esac
8932 done; }
8933
8934     ac_builddir=.
8935
8936 if test "$ac_dir" != .; then
8937   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8938   # A "../" for each directory in $ac_dir_suffix.
8939   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8940 else
8941   ac_dir_suffix= ac_top_builddir=
8942 fi
8943
8944 case $srcdir in
8945   .)  # No --srcdir option.  We are building in place.
8946     ac_srcdir=.
8947     if test -z "$ac_top_builddir"; then
8948        ac_top_srcdir=.
8949     else
8950        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8951     fi ;;
8952   [\\/]* | ?:[\\/]* )  # Absolute path.
8953     ac_srcdir=$srcdir$ac_dir_suffix;
8954     ac_top_srcdir=$srcdir ;;
8955   *) # Relative path.
8956     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8957     ac_top_srcdir=$ac_top_builddir$srcdir ;;
8958 esac
8959 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8960 # absolute.
8961 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8962 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8963 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8964 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8965
8966
8967     cd $ac_dir
8968
8969     # Check for guested configure; otherwise get Cygnus style configure.
8970     if test -f $ac_srcdir/configure.gnu; then
8971       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
8972     elif test -f $ac_srcdir/configure; then
8973       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
8974     elif test -f $ac_srcdir/configure.in; then
8975       ac_sub_configure=$ac_configure
8976     else
8977       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8978 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8979       ac_sub_configure=
8980     fi
8981
8982     # The recursion is here.
8983     if test -n "$ac_sub_configure"; then
8984       # Make the cache file name correct relative to the subdirectory.
8985       case $cache_file in
8986       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8987       *) # Relative path.
8988         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
8989       esac
8990
8991       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8992 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8993       # The eval makes quoting arguments work.
8994       eval $ac_sub_configure $ac_sub_configure_args \
8995            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
8996         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
8997 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
8998    { (exit 1); exit 1; }; }
8999     fi
9000
9001     cd $ac_popdir
9002   done
9003 fi
9004
9005
9006 ac_config_commands="$ac_config_commands default-1"
9007