]> The Tcpdump Group git mirrors - tcpdump/blob - configure
AC_TRY_COMPILE works only for code that fits inside "main()"; the test
[tcpdump] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.188.2.4 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.57.
5 #
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23 fi
24
25 # Support unset when possible.
26 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
27 as_unset=unset
28 else
29 as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43 LC_TELEPHONE LC_TIME
44 do
45 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
47 else
48 $as_unset $as_var
49 fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54 as_expr=expr
55 else
56 as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60 as_basename=basename
61 else
62 as_basename=false
63 fi
64
65
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
76 s/.*/./; q'`
77
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
91 chmod +x conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93 PATH_SEPARATOR=';'
94 else
95 PATH_SEPARATOR=:
96 fi
97 rm -f conf$$.sh
98 fi
99
100
101 as_lineno_1=$LINENO
102 as_lineno_2=$LINENO
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
107 # relative or not.
108 case $0 in
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113 IFS=$as_save_IFS
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118 ;;
119 esac
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
123 as_myself=$0
124 fi
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
128 fi
129 case $CONFIG_SHELL in
130 '')
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134 IFS=$as_save_IFS
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
137 case $as_dir in
138 /*)
139 if ("$as_dir/$as_base" -c '
140 as_lineno_1=$LINENO
141 as_lineno_2=$LINENO
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
148 export CONFIG_SHELL
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150 fi;;
151 esac
152 done
153 done
154 ;;
155 esac
156
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
166 sed '
167 N
168 s,$,-,
169 : loop
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171 t loop
172 s,-$,,
173 s,^['$as_cr_digits']*\n,,
174 ' >$as_me.lineno &&
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
178
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
182 . ./$as_me.lineno
183 # Exit status is that of the last command.
184 exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T=' ' ;;
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196 as_expr=expr
197 else
198 as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
208 as_ln_s='cp -p'
209 else
210 as_ln_s='ln -s'
211 fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213 as_ln_s=ln
214 else
215 as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220 as_mkdir_p=:
221 else
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="tcpdump.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SHLICC2 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS V_CCOPT V_DEFS V_GROUP V_INCLS V_PCAPDEP LOCALSRC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
831
832 cat <<\_ACEOF
833
834 System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837 _ACEOF
838 fi
839
840 if test -n "$ac_init_help"; then
841
842 cat <<\_ACEOF
843
844 Optional Features:
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --enable-smb enable possibly-buggy SMB printer default=yes
848 --disable-smb disable possibly-buggy SMB printer
849 --enable-ipv6 enable ipv6 (with ipv4) support
850 --disable-ipv6 disable ipv6 support
851
852 Optional Packages:
853 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
854 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
855 --without-gcc don't use gcc
856 --with-user=USERNAME drop privileges by default to USERNAME
857 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
858 --without-crypto disable crypto support
859
860 Some influential environment variables:
861 CC C compiler command
862 CFLAGS C compiler flags
863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864 nonstandard directory <lib dir>
865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
866 headers in a nonstandard directory <include dir>
867 CPP C preprocessor
868
869 Use these variables to override the choices made by `configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
871
872 _ACEOF
873 fi
874
875 if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
877 ac_popdir=`pwd`
878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879 test -d $ac_dir || continue
880 ac_builddir=.
881
882 if test "$ac_dir" != .; then
883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884 # A "../" for each directory in $ac_dir_suffix.
885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
886 else
887 ac_dir_suffix= ac_top_builddir=
888 fi
889
890 case $srcdir in
891 .) # No --srcdir option. We are building in place.
892 ac_srcdir=.
893 if test -z "$ac_top_builddir"; then
894 ac_top_srcdir=.
895 else
896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897 fi ;;
898 [\\/]* | ?:[\\/]* ) # Absolute path.
899 ac_srcdir=$srcdir$ac_dir_suffix;
900 ac_top_srcdir=$srcdir ;;
901 *) # Relative path.
902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
904 esac
905 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
906 # absolute.
907 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
908 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
909 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
910 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
911
912 cd $ac_dir
913 # Check for guested configure; otherwise get Cygnus style configure.
914 if test -f $ac_srcdir/configure.gnu; then
915 echo
916 $SHELL $ac_srcdir/configure.gnu --help=recursive
917 elif test -f $ac_srcdir/configure; then
918 echo
919 $SHELL $ac_srcdir/configure --help=recursive
920 elif test -f $ac_srcdir/configure.ac ||
921 test -f $ac_srcdir/configure.in; then
922 echo
923 $ac_configure --help
924 else
925 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
926 fi
927 cd $ac_popdir
928 done
929 fi
930
931 test -n "$ac_init_help" && exit 0
932 if $ac_init_version; then
933 cat <<\_ACEOF
934
935 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
936 Free Software Foundation, Inc.
937 This configure script is free software; the Free Software Foundation
938 gives unlimited permission to copy, distribute and modify it.
939 _ACEOF
940 exit 0
941 fi
942 exec 5>config.log
943 cat >&5 <<_ACEOF
944 This file contains any messages produced by compilers while
945 running configure, to aid debugging if configure makes a mistake.
946
947 It was created by $as_me, which was
948 generated by GNU Autoconf 2.57. Invocation command line was
949
950 $ $0 $@
951
952 _ACEOF
953 {
954 cat <<_ASUNAME
955 ## --------- ##
956 ## Platform. ##
957 ## --------- ##
958
959 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
960 uname -m = `(uname -m) 2>/dev/null || echo unknown`
961 uname -r = `(uname -r) 2>/dev/null || echo unknown`
962 uname -s = `(uname -s) 2>/dev/null || echo unknown`
963 uname -v = `(uname -v) 2>/dev/null || echo unknown`
964
965 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
966 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
967
968 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
969 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
970 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
971 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
972 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
973 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
974 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
975
976 _ASUNAME
977
978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
979 for as_dir in $PATH
980 do
981 IFS=$as_save_IFS
982 test -z "$as_dir" && as_dir=.
983 echo "PATH: $as_dir"
984 done
985
986 } >&5
987
988 cat >&5 <<_ACEOF
989
990
991 ## ----------- ##
992 ## Core tests. ##
993 ## ----------- ##
994
995 _ACEOF
996
997
998 # Keep a trace of the command line.
999 # Strip out --no-create and --no-recursion so they do not pile up.
1000 # Strip out --silent because we don't want to record it for future runs.
1001 # Also quote any args containing shell meta-characters.
1002 # Make two passes to allow for proper duplicate-argument suppression.
1003 ac_configure_args=
1004 ac_configure_args0=
1005 ac_configure_args1=
1006 ac_sep=
1007 ac_must_keep_next=false
1008 for ac_pass in 1 2
1009 do
1010 for ac_arg
1011 do
1012 case $ac_arg in
1013 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1015 | -silent | --silent | --silen | --sile | --sil)
1016 continue ;;
1017 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1018 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1019 esac
1020 case $ac_pass in
1021 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1022 2)
1023 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1024 if test $ac_must_keep_next = true; then
1025 ac_must_keep_next=false # Got value, back to normal.
1026 else
1027 case $ac_arg in
1028 *=* | --config-cache | -C | -disable-* | --disable-* \
1029 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1030 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1031 | -with-* | --with-* | -without-* | --without-* | --x)
1032 case "$ac_configure_args0 " in
1033 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1034 esac
1035 ;;
1036 -* ) ac_must_keep_next=true ;;
1037 esac
1038 fi
1039 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1040 # Get rid of the leading space.
1041 ac_sep=" "
1042 ;;
1043 esac
1044 done
1045 done
1046 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1047 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1048
1049 # When interrupted or exit'd, cleanup temporary files, and complete
1050 # config.log. We remove comments because anyway the quotes in there
1051 # would cause problems or look ugly.
1052 # WARNING: Be sure not to use single quotes in there, as some shells,
1053 # such as our DU 5.0 friend, will then `close' the trap.
1054 trap 'exit_status=$?
1055 # Save into config.log some information that might help in debugging.
1056 {
1057 echo
1058
1059 cat <<\_ASBOX
1060 ## ---------------- ##
1061 ## Cache variables. ##
1062 ## ---------------- ##
1063 _ASBOX
1064 echo
1065 # The following way of writing the cache mishandles newlines in values,
1066 {
1067 (set) 2>&1 |
1068 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1069 *ac_space=\ *)
1070 sed -n \
1071 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1072 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1073 ;;
1074 *)
1075 sed -n \
1076 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1077 ;;
1078 esac;
1079 }
1080 echo
1081
1082 cat <<\_ASBOX
1083 ## ----------------- ##
1084 ## Output variables. ##
1085 ## ----------------- ##
1086 _ASBOX
1087 echo
1088 for ac_var in $ac_subst_vars
1089 do
1090 eval ac_val=$`echo $ac_var`
1091 echo "$ac_var='"'"'$ac_val'"'"'"
1092 done | sort
1093 echo
1094
1095 if test -n "$ac_subst_files"; then
1096 cat <<\_ASBOX
1097 ## ------------- ##
1098 ## Output files. ##
1099 ## ------------- ##
1100 _ASBOX
1101 echo
1102 for ac_var in $ac_subst_files
1103 do
1104 eval ac_val=$`echo $ac_var`
1105 echo "$ac_var='"'"'$ac_val'"'"'"
1106 done | sort
1107 echo
1108 fi
1109
1110 if test -s confdefs.h; then
1111 cat <<\_ASBOX
1112 ## ----------- ##
1113 ## confdefs.h. ##
1114 ## ----------- ##
1115 _ASBOX
1116 echo
1117 sed "/^$/d" confdefs.h | sort
1118 echo
1119 fi
1120 test "$ac_signal" != 0 &&
1121 echo "$as_me: caught signal $ac_signal"
1122 echo "$as_me: exit $exit_status"
1123 } >&5
1124 rm -f core core.* *.core &&
1125 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1126 exit $exit_status
1127 ' 0
1128 for ac_signal in 1 2 13 15; do
1129 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1130 done
1131 ac_signal=0
1132
1133 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1134 rm -rf conftest* confdefs.h
1135 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1136 echo >confdefs.h
1137
1138 # Predefined preprocessor variables.
1139
1140 cat >>confdefs.h <<_ACEOF
1141 #define PACKAGE_NAME "$PACKAGE_NAME"
1142 _ACEOF
1143
1144
1145 cat >>confdefs.h <<_ACEOF
1146 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1147 _ACEOF
1148
1149
1150 cat >>confdefs.h <<_ACEOF
1151 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1152 _ACEOF
1153
1154
1155 cat >>confdefs.h <<_ACEOF
1156 #define PACKAGE_STRING "$PACKAGE_STRING"
1157 _ACEOF
1158
1159
1160 cat >>confdefs.h <<_ACEOF
1161 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1162 _ACEOF
1163
1164
1165 # Let the site file select an alternate cache file if it wants to.
1166 # Prefer explicitly selected file to automatically selected ones.
1167 if test -z "$CONFIG_SITE"; then
1168 if test "x$prefix" != xNONE; then
1169 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1170 else
1171 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1172 fi
1173 fi
1174 for ac_site_file in $CONFIG_SITE; do
1175 if test -r "$ac_site_file"; then
1176 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1177 echo "$as_me: loading site script $ac_site_file" >&6;}
1178 sed 's/^/| /' "$ac_site_file" >&5
1179 . "$ac_site_file"
1180 fi
1181 done
1182
1183 if test -r "$cache_file"; then
1184 # Some versions of bash will fail to source /dev/null (special
1185 # files actually), so we avoid doing that.
1186 if test -f "$cache_file"; then
1187 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1188 echo "$as_me: loading cache $cache_file" >&6;}
1189 case $cache_file in
1190 [\\/]* | ?:[\\/]* ) . $cache_file;;
1191 *) . ./$cache_file;;
1192 esac
1193 fi
1194 else
1195 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1196 echo "$as_me: creating cache $cache_file" >&6;}
1197 >$cache_file
1198 fi
1199
1200 # Check that the precious variables saved in the cache have kept the same
1201 # value.
1202 ac_cache_corrupted=false
1203 for ac_var in `(set) 2>&1 |
1204 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1205 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1206 eval ac_new_set=\$ac_env_${ac_var}_set
1207 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1208 eval ac_new_val="\$ac_env_${ac_var}_value"
1209 case $ac_old_set,$ac_new_set in
1210 set,)
1211 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1212 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1213 ac_cache_corrupted=: ;;
1214 ,set)
1215 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1216 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1217 ac_cache_corrupted=: ;;
1218 ,);;
1219 *)
1220 if test "x$ac_old_val" != "x$ac_new_val"; then
1221 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1222 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1223 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1224 echo "$as_me: former value: $ac_old_val" >&2;}
1225 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1226 echo "$as_me: current value: $ac_new_val" >&2;}
1227 ac_cache_corrupted=:
1228 fi;;
1229 esac
1230 # Pass precious variables to config.status.
1231 if test "$ac_new_set" = set; then
1232 case $ac_new_val in
1233 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1234 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1235 *) ac_arg=$ac_var=$ac_new_val ;;
1236 esac
1237 case " $ac_configure_args " in
1238 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1239 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1240 esac
1241 fi
1242 done
1243 if $ac_cache_corrupted; then
1244 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1245 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1246 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1247 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1248 { (exit 1); exit 1; }; }
1249 fi
1250
1251 ac_ext=c
1252 ac_cpp='$CPP $CPPFLAGS'
1253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276 ac_aux_dir=
1277 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1278 if test -f $ac_dir/install-sh; then
1279 ac_aux_dir=$ac_dir
1280 ac_install_sh="$ac_aux_dir/install-sh -c"
1281 break
1282 elif test -f $ac_dir/install.sh; then
1283 ac_aux_dir=$ac_dir
1284 ac_install_sh="$ac_aux_dir/install.sh -c"
1285 break
1286 elif test -f $ac_dir/shtool; then
1287 ac_aux_dir=$ac_dir
1288 ac_install_sh="$ac_aux_dir/shtool install -c"
1289 break
1290 fi
1291 done
1292 if test -z "$ac_aux_dir"; then
1293 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1294 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1295 { (exit 1); exit 1; }; }
1296 fi
1297 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1298 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1299 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1300
1301 # Make sure we can run config.sub.
1302 $ac_config_sub sun4 >/dev/null 2>&1 ||
1303 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1304 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1305 { (exit 1); exit 1; }; }
1306
1307 echo "$as_me:$LINENO: checking build system type" >&5
1308 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1309 if test "${ac_cv_build+set}" = set; then
1310 echo $ECHO_N "(cached) $ECHO_C" >&6
1311 else
1312 ac_cv_build_alias=$build_alias
1313 test -z "$ac_cv_build_alias" &&
1314 ac_cv_build_alias=`$ac_config_guess`
1315 test -z "$ac_cv_build_alias" &&
1316 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1317 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1318 { (exit 1); exit 1; }; }
1319 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1320 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1321 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1322 { (exit 1); exit 1; }; }
1323
1324 fi
1325 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1326 echo "${ECHO_T}$ac_cv_build" >&6
1327 build=$ac_cv_build
1328 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1329 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1330 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1331
1332
1333 echo "$as_me:$LINENO: checking host system type" >&5
1334 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1335 if test "${ac_cv_host+set}" = set; then
1336 echo $ECHO_N "(cached) $ECHO_C" >&6
1337 else
1338 ac_cv_host_alias=$host_alias
1339 test -z "$ac_cv_host_alias" &&
1340 ac_cv_host_alias=$ac_cv_build_alias
1341 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1342 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1343 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1344 { (exit 1); exit 1; }; }
1345
1346 fi
1347 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1348 echo "${ECHO_T}$ac_cv_host" >&6
1349 host=$ac_cv_host
1350 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1351 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1352 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1353
1354
1355
1356
1357
1358
1359
1360
1361 # Check whether --with-gcc or --without-gcc was given.
1362 if test "${with_gcc+set}" = set; then
1363 withval="$with_gcc"
1364
1365 fi;
1366 V_CCOPT="-O"
1367 V_INCLS=""
1368 if test "${srcdir}" != "." ; then
1369 V_INCLS="-I\$(srcdir)"
1370 fi
1371 if test "${CFLAGS+set}" = set; then
1372 LBL_CFLAGS="$CFLAGS"
1373 fi
1374 if test -z "$CC" ; then
1375 case "$host_os" in
1376
1377 bsdi*)
1378 # Extract the first word of "shlicc2", so it can be a program name with args.
1379 set dummy shlicc2; ac_word=$2
1380 echo "$as_me:$LINENO: checking for $ac_word" >&5
1381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1382 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1384 else
1385 if test -n "$SHLICC2"; then
1386 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1387 else
1388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1389 for as_dir in $PATH
1390 do
1391 IFS=$as_save_IFS
1392 test -z "$as_dir" && as_dir=.
1393 for ac_exec_ext in '' $ac_executable_extensions; do
1394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1395 ac_cv_prog_SHLICC2="yes"
1396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1397 break 2
1398 fi
1399 done
1400 done
1401
1402 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1403 fi
1404 fi
1405 SHLICC2=$ac_cv_prog_SHLICC2
1406 if test -n "$SHLICC2"; then
1407 echo "$as_me:$LINENO: result: $SHLICC2" >&5
1408 echo "${ECHO_T}$SHLICC2" >&6
1409 else
1410 echo "$as_me:$LINENO: result: no" >&5
1411 echo "${ECHO_T}no" >&6
1412 fi
1413
1414 if test $SHLICC2 = yes ; then
1415 CC=shlicc2
1416 export CC
1417 fi
1418 ;;
1419 esac
1420 fi
1421 if test -z "$CC" -a "$with_gcc" = no ; then
1422 CC=cc
1423 export CC
1424 fi
1425 ac_ext=c
1426 ac_cpp='$CPP $CPPFLAGS'
1427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1430 if test -n "$ac_tool_prefix"; then
1431 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1432 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1433 echo "$as_me:$LINENO: checking for $ac_word" >&5
1434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1435 if test "${ac_cv_prog_CC+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1437 else
1438 if test -n "$CC"; then
1439 ac_cv_prog_CC="$CC" # Let the user override the test.
1440 else
1441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1442 for as_dir in $PATH
1443 do
1444 IFS=$as_save_IFS
1445 test -z "$as_dir" && as_dir=.
1446 for ac_exec_ext in '' $ac_executable_extensions; do
1447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1448 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1450 break 2
1451 fi
1452 done
1453 done
1454
1455 fi
1456 fi
1457 CC=$ac_cv_prog_CC
1458 if test -n "$CC"; then
1459 echo "$as_me:$LINENO: result: $CC" >&5
1460 echo "${ECHO_T}$CC" >&6
1461 else
1462 echo "$as_me:$LINENO: result: no" >&5
1463 echo "${ECHO_T}no" >&6
1464 fi
1465
1466 fi
1467 if test -z "$ac_cv_prog_CC"; then
1468 ac_ct_CC=$CC
1469 # Extract the first word of "gcc", so it can be a program name with args.
1470 set dummy gcc; ac_word=$2
1471 echo "$as_me:$LINENO: checking for $ac_word" >&5
1472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1473 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1474 echo $ECHO_N "(cached) $ECHO_C" >&6
1475 else
1476 if test -n "$ac_ct_CC"; then
1477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1478 else
1479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1480 for as_dir in $PATH
1481 do
1482 IFS=$as_save_IFS
1483 test -z "$as_dir" && as_dir=.
1484 for ac_exec_ext in '' $ac_executable_extensions; do
1485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1486 ac_cv_prog_ac_ct_CC="gcc"
1487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1488 break 2
1489 fi
1490 done
1491 done
1492
1493 fi
1494 fi
1495 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1496 if test -n "$ac_ct_CC"; then
1497 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1498 echo "${ECHO_T}$ac_ct_CC" >&6
1499 else
1500 echo "$as_me:$LINENO: result: no" >&5
1501 echo "${ECHO_T}no" >&6
1502 fi
1503
1504 CC=$ac_ct_CC
1505 else
1506 CC="$ac_cv_prog_CC"
1507 fi
1508
1509 if test -z "$CC"; then
1510 if test -n "$ac_tool_prefix"; then
1511 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1512 set dummy ${ac_tool_prefix}cc; ac_word=$2
1513 echo "$as_me:$LINENO: checking for $ac_word" >&5
1514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1515 if test "${ac_cv_prog_CC+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1517 else
1518 if test -n "$CC"; then
1519 ac_cv_prog_CC="$CC" # Let the user override the test.
1520 else
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522 for as_dir in $PATH
1523 do
1524 IFS=$as_save_IFS
1525 test -z "$as_dir" && as_dir=.
1526 for ac_exec_ext in '' $ac_executable_extensions; do
1527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528 ac_cv_prog_CC="${ac_tool_prefix}cc"
1529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1530 break 2
1531 fi
1532 done
1533 done
1534
1535 fi
1536 fi
1537 CC=$ac_cv_prog_CC
1538 if test -n "$CC"; then
1539 echo "$as_me:$LINENO: result: $CC" >&5
1540 echo "${ECHO_T}$CC" >&6
1541 else
1542 echo "$as_me:$LINENO: result: no" >&5
1543 echo "${ECHO_T}no" >&6
1544 fi
1545
1546 fi
1547 if test -z "$ac_cv_prog_CC"; then
1548 ac_ct_CC=$CC
1549 # Extract the first word of "cc", so it can be a program name with args.
1550 set dummy cc; ac_word=$2
1551 echo "$as_me:$LINENO: checking for $ac_word" >&5
1552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1553 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 else
1556 if test -n "$ac_ct_CC"; then
1557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1558 else
1559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560 for as_dir in $PATH
1561 do
1562 IFS=$as_save_IFS
1563 test -z "$as_dir" && as_dir=.
1564 for ac_exec_ext in '' $ac_executable_extensions; do
1565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1566 ac_cv_prog_ac_ct_CC="cc"
1567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1568 break 2
1569 fi
1570 done
1571 done
1572
1573 fi
1574 fi
1575 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1576 if test -n "$ac_ct_CC"; then
1577 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1578 echo "${ECHO_T}$ac_ct_CC" >&6
1579 else
1580 echo "$as_me:$LINENO: result: no" >&5
1581 echo "${ECHO_T}no" >&6
1582 fi
1583
1584 CC=$ac_ct_CC
1585 else
1586 CC="$ac_cv_prog_CC"
1587 fi
1588
1589 fi
1590 if test -z "$CC"; then
1591 # Extract the first word of "cc", so it can be a program name with args.
1592 set dummy cc; ac_word=$2
1593 echo "$as_me:$LINENO: checking for $ac_word" >&5
1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595 if test "${ac_cv_prog_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1597 else
1598 if test -n "$CC"; then
1599 ac_cv_prog_CC="$CC" # Let the user override the test.
1600 else
1601 ac_prog_rejected=no
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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1610 ac_prog_rejected=yes
1611 continue
1612 fi
1613 ac_cv_prog_CC="cc"
1614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615 break 2
1616 fi
1617 done
1618 done
1619
1620 if test $ac_prog_rejected = yes; then
1621 # We found a bogon in the path, so make sure we never use it.
1622 set dummy $ac_cv_prog_CC
1623 shift
1624 if test $# != 0; then
1625 # We chose a different compiler from the bogus one.
1626 # However, it has the same basename, so the bogon will be chosen
1627 # first if we set CC to just the basename; use the full file name.
1628 shift
1629 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1630 fi
1631 fi
1632 fi
1633 fi
1634 CC=$ac_cv_prog_CC
1635 if test -n "$CC"; then
1636 echo "$as_me:$LINENO: result: $CC" >&5
1637 echo "${ECHO_T}$CC" >&6
1638 else
1639 echo "$as_me:$LINENO: result: no" >&5
1640 echo "${ECHO_T}no" >&6
1641 fi
1642
1643 fi
1644 if test -z "$CC"; then
1645 if test -n "$ac_tool_prefix"; then
1646 for ac_prog in cl
1647 do
1648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_CC+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 else
1655 if test -n "$CC"; then
1656 ac_cv_prog_CC="$CC" # Let the user override the test.
1657 else
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 for as_dir in $PATH
1660 do
1661 IFS=$as_save_IFS
1662 test -z "$as_dir" && as_dir=.
1663 for ac_exec_ext in '' $ac_executable_extensions; do
1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 break 2
1668 fi
1669 done
1670 done
1671
1672 fi
1673 fi
1674 CC=$ac_cv_prog_CC
1675 if test -n "$CC"; then
1676 echo "$as_me:$LINENO: result: $CC" >&5
1677 echo "${ECHO_T}$CC" >&6
1678 else
1679 echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1681 fi
1682
1683 test -n "$CC" && break
1684 done
1685 fi
1686 if test -z "$CC"; then
1687 ac_ct_CC=$CC
1688 for ac_prog in cl
1689 do
1690 # Extract the first word of "$ac_prog", so it can be a program name with args.
1691 set dummy $ac_prog; ac_word=$2
1692 echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1695 echo $ECHO_N "(cached) $ECHO_C" >&6
1696 else
1697 if test -n "$ac_ct_CC"; then
1698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1699 else
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1702 do
1703 IFS=$as_save_IFS
1704 test -z "$as_dir" && as_dir=.
1705 for ac_exec_ext in '' $ac_executable_extensions; do
1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707 ac_cv_prog_ac_ct_CC="$ac_prog"
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709 break 2
1710 fi
1711 done
1712 done
1713
1714 fi
1715 fi
1716 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1717 if test -n "$ac_ct_CC"; then
1718 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1719 echo "${ECHO_T}$ac_ct_CC" >&6
1720 else
1721 echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1723 fi
1724
1725 test -n "$ac_ct_CC" && break
1726 done
1727
1728 CC=$ac_ct_CC
1729 fi
1730
1731 fi
1732
1733
1734 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1735 See \`config.log' for more details." >&5
1736 echo "$as_me: error: no acceptable C compiler found in \$PATH
1737 See \`config.log' for more details." >&2;}
1738 { (exit 1); exit 1; }; }
1739
1740 # Provide some information about the compiler.
1741 echo "$as_me:$LINENO:" \
1742 "checking for C compiler version" >&5
1743 ac_compiler=`set X $ac_compile; echo $2`
1744 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1745 (eval $ac_compiler --version </dev/null >&5) 2>&5
1746 ac_status=$?
1747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1748 (exit $ac_status); }
1749 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1750 (eval $ac_compiler -v </dev/null >&5) 2>&5
1751 ac_status=$?
1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); }
1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1755 (eval $ac_compiler -V </dev/null >&5) 2>&5
1756 ac_status=$?
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1759
1760 cat >conftest.$ac_ext <<_ACEOF
1761 #line $LINENO "configure"
1762 /* confdefs.h. */
1763 _ACEOF
1764 cat confdefs.h >>conftest.$ac_ext
1765 cat >>conftest.$ac_ext <<_ACEOF
1766 /* end confdefs.h. */
1767
1768 int
1769 main ()
1770 {
1771
1772 ;
1773 return 0;
1774 }
1775 _ACEOF
1776 ac_clean_files_save=$ac_clean_files
1777 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1778 # Try to create an executable without -o first, disregard a.out.
1779 # It will help us diagnose broken compilers, and finding out an intuition
1780 # of exeext.
1781 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1782 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1783 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1784 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1785 (eval $ac_link_default) 2>&5
1786 ac_status=$?
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }; then
1789 # Find the output, starting from the most likely. This scheme is
1790 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1791 # resort.
1792
1793 # Be careful to initialize this variable, since it used to be cached.
1794 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1795 ac_cv_exeext=
1796 # b.out is created by i960 compilers.
1797 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1798 do
1799 test -f "$ac_file" || continue
1800 case $ac_file in
1801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1802 ;;
1803 conftest.$ac_ext )
1804 # This is the source file.
1805 ;;
1806 [ab].out )
1807 # We found the default executable, but exeext='' is most
1808 # certainly right.
1809 break;;
1810 *.* )
1811 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1812 # FIXME: I believe we export ac_cv_exeext for Libtool,
1813 # but it would be cool to find out if it's true. Does anybody
1814 # maintain Libtool? --akim.
1815 export ac_cv_exeext
1816 break;;
1817 * )
1818 break;;
1819 esac
1820 done
1821 else
1822 echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1824
1825 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1826 See \`config.log' for more details." >&5
1827 echo "$as_me: error: C compiler cannot create executables
1828 See \`config.log' for more details." >&2;}
1829 { (exit 77); exit 77; }; }
1830 fi
1831
1832 ac_exeext=$ac_cv_exeext
1833 echo "$as_me:$LINENO: result: $ac_file" >&5
1834 echo "${ECHO_T}$ac_file" >&6
1835
1836 # Check the compiler produces executables we can run. If not, either
1837 # the compiler is broken, or we cross compile.
1838 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1839 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1840 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1841 # If not cross compiling, check that we can run a simple program.
1842 if test "$cross_compiling" != yes; then
1843 if { ac_try='./$ac_file'
1844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1845 (eval $ac_try) 2>&5
1846 ac_status=$?
1847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848 (exit $ac_status); }; }; then
1849 cross_compiling=no
1850 else
1851 if test "$cross_compiling" = maybe; then
1852 cross_compiling=yes
1853 else
1854 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1855 If you meant to cross compile, use \`--host'.
1856 See \`config.log' for more details." >&5
1857 echo "$as_me: error: cannot run C compiled programs.
1858 If you meant to cross compile, use \`--host'.
1859 See \`config.log' for more details." >&2;}
1860 { (exit 1); exit 1; }; }
1861 fi
1862 fi
1863 fi
1864 echo "$as_me:$LINENO: result: yes" >&5
1865 echo "${ECHO_T}yes" >&6
1866
1867 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1868 ac_clean_files=$ac_clean_files_save
1869 # Check the compiler produces executables we can run. If not, either
1870 # the compiler is broken, or we cross compile.
1871 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1872 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1873 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1874 echo "${ECHO_T}$cross_compiling" >&6
1875
1876 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1877 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1879 (eval $ac_link) 2>&5
1880 ac_status=$?
1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882 (exit $ac_status); }; then
1883 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1884 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1885 # work properly (i.e., refer to `conftest.exe'), while it won't with
1886 # `rm'.
1887 for ac_file in conftest.exe conftest conftest.*; do
1888 test -f "$ac_file" || continue
1889 case $ac_file in
1890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1891 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1892 export ac_cv_exeext
1893 break;;
1894 * ) break;;
1895 esac
1896 done
1897 else
1898 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1899 See \`config.log' for more details." >&5
1900 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1901 See \`config.log' for more details." >&2;}
1902 { (exit 1); exit 1; }; }
1903 fi
1904
1905 rm -f conftest$ac_cv_exeext
1906 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1907 echo "${ECHO_T}$ac_cv_exeext" >&6
1908
1909 rm -f conftest.$ac_ext
1910 EXEEXT=$ac_cv_exeext
1911 ac_exeext=$EXEEXT
1912 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1913 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1914 if test "${ac_cv_objext+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917 cat >conftest.$ac_ext <<_ACEOF
1918 #line $LINENO "configure"
1919 /* confdefs.h. */
1920 _ACEOF
1921 cat confdefs.h >>conftest.$ac_ext
1922 cat >>conftest.$ac_ext <<_ACEOF
1923 /* end confdefs.h. */
1924
1925 int
1926 main ()
1927 {
1928
1929 ;
1930 return 0;
1931 }
1932 _ACEOF
1933 rm -f conftest.o conftest.obj
1934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1935 (eval $ac_compile) 2>&5
1936 ac_status=$?
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }; then
1939 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1940 case $ac_file in
1941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1942 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1943 break;;
1944 esac
1945 done
1946 else
1947 echo "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.$ac_ext >&5
1949
1950 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1951 See \`config.log' for more details." >&5
1952 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1953 See \`config.log' for more details." >&2;}
1954 { (exit 1); exit 1; }; }
1955 fi
1956
1957 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1958 fi
1959 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1960 echo "${ECHO_T}$ac_cv_objext" >&6
1961 OBJEXT=$ac_cv_objext
1962 ac_objext=$OBJEXT
1963 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1964 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1965 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1967 else
1968 cat >conftest.$ac_ext <<_ACEOF
1969 #line $LINENO "configure"
1970 /* confdefs.h. */
1971 _ACEOF
1972 cat confdefs.h >>conftest.$ac_ext
1973 cat >>conftest.$ac_ext <<_ACEOF
1974 /* end confdefs.h. */
1975
1976 int
1977 main ()
1978 {
1979 #ifndef __GNUC__
1980 choke me
1981 #endif
1982
1983 ;
1984 return 0;
1985 }
1986 _ACEOF
1987 rm -f conftest.$ac_objext
1988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>&5
1990 ac_status=$?
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); } &&
1993 { ac_try='test -s conftest.$ac_objext'
1994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1995 (eval $ac_try) 2>&5
1996 ac_status=$?
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }; }; then
1999 ac_compiler_gnu=yes
2000 else
2001 echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2003
2004 ac_compiler_gnu=no
2005 fi
2006 rm -f conftest.$ac_objext conftest.$ac_ext
2007 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2008
2009 fi
2010 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2011 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2012 GCC=`test $ac_compiler_gnu = yes && echo yes`
2013 ac_test_CFLAGS=${CFLAGS+set}
2014 ac_save_CFLAGS=$CFLAGS
2015 CFLAGS="-g"
2016 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2017 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2018 if test "${ac_cv_prog_cc_g+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021 cat >conftest.$ac_ext <<_ACEOF
2022 #line $LINENO "configure"
2023 /* confdefs.h. */
2024 _ACEOF
2025 cat confdefs.h >>conftest.$ac_ext
2026 cat >>conftest.$ac_ext <<_ACEOF
2027 /* end confdefs.h. */
2028
2029 int
2030 main ()
2031 {
2032
2033 ;
2034 return 0;
2035 }
2036 _ACEOF
2037 rm -f conftest.$ac_objext
2038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2039 (eval $ac_compile) 2>&5
2040 ac_status=$?
2041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042 (exit $ac_status); } &&
2043 { ac_try='test -s conftest.$ac_objext'
2044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2045 (eval $ac_try) 2>&5
2046 ac_status=$?
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }; }; then
2049 ac_cv_prog_cc_g=yes
2050 else
2051 echo "$as_me: failed program was:" >&5
2052 sed 's/^/| /' conftest.$ac_ext >&5
2053
2054 ac_cv_prog_cc_g=no
2055 fi
2056 rm -f conftest.$ac_objext conftest.$ac_ext
2057 fi
2058 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2059 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2060 if test "$ac_test_CFLAGS" = set; then
2061 CFLAGS=$ac_save_CFLAGS
2062 elif test $ac_cv_prog_cc_g = yes; then
2063 if test "$GCC" = yes; then
2064 CFLAGS="-g -O2"
2065 else
2066 CFLAGS="-g"
2067 fi
2068 else
2069 if test "$GCC" = yes; then
2070 CFLAGS="-O2"
2071 else
2072 CFLAGS=
2073 fi
2074 fi
2075 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2076 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2077 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2079 else
2080 ac_cv_prog_cc_stdc=no
2081 ac_save_CC=$CC
2082 cat >conftest.$ac_ext <<_ACEOF
2083 #line $LINENO "configure"
2084 /* confdefs.h. */
2085 _ACEOF
2086 cat confdefs.h >>conftest.$ac_ext
2087 cat >>conftest.$ac_ext <<_ACEOF
2088 /* end confdefs.h. */
2089 #include <stdarg.h>
2090 #include <stdio.h>
2091 #include <sys/types.h>
2092 #include <sys/stat.h>
2093 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2094 struct buf { int x; };
2095 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2096 static char *e (p, i)
2097 char **p;
2098 int i;
2099 {
2100 return p[i];
2101 }
2102 static char *f (char * (*g) (char **, int), char **p, ...)
2103 {
2104 char *s;
2105 va_list v;
2106 va_start (v,p);
2107 s = g (p, va_arg (v,int));
2108 va_end (v);
2109 return s;
2110 }
2111 int test (int i, double x);
2112 struct s1 {int (*f) (int a);};
2113 struct s2 {int (*f) (double a);};
2114 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2115 int argc;
2116 char **argv;
2117 int
2118 main ()
2119 {
2120 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2121 ;
2122 return 0;
2123 }
2124 _ACEOF
2125 # Don't try gcc -ansi; that turns off useful extensions and
2126 # breaks some systems' header files.
2127 # AIX -qlanglvl=ansi
2128 # Ultrix and OSF/1 -std1
2129 # HP-UX 10.20 and later -Ae
2130 # HP-UX older versions -Aa -D_HPUX_SOURCE
2131 # SVR4 -Xc -D__EXTENSIONS__
2132 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2133 do
2134 CC="$ac_save_CC $ac_arg"
2135 rm -f conftest.$ac_objext
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137 (eval $ac_compile) 2>&5
2138 ac_status=$?
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); } &&
2141 { ac_try='test -s conftest.$ac_objext'
2142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143 (eval $ac_try) 2>&5
2144 ac_status=$?
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }; }; then
2147 ac_cv_prog_cc_stdc=$ac_arg
2148 break
2149 else
2150 echo "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.$ac_ext >&5
2152
2153 fi
2154 rm -f conftest.$ac_objext
2155 done
2156 rm -f conftest.$ac_ext conftest.$ac_objext
2157 CC=$ac_save_CC
2158
2159 fi
2160
2161 case "x$ac_cv_prog_cc_stdc" in
2162 x|xno)
2163 echo "$as_me:$LINENO: result: none needed" >&5
2164 echo "${ECHO_T}none needed" >&6 ;;
2165 *)
2166 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2167 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2168 CC="$CC $ac_cv_prog_cc_stdc" ;;
2169 esac
2170
2171 # Some people use a C++ compiler to compile C. Since we use `exit',
2172 # in C++ we need to declare it. In case someone uses the same compiler
2173 # for both compiling C and C++ we need to have the C++ compiler decide
2174 # the declaration of exit, since it's the most demanding environment.
2175 cat >conftest.$ac_ext <<_ACEOF
2176 #ifndef __cplusplus
2177 choke me
2178 #endif
2179 _ACEOF
2180 rm -f conftest.$ac_objext
2181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2182 (eval $ac_compile) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); } &&
2186 { ac_try='test -s conftest.$ac_objext'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 (eval $ac_try) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; }; then
2192 for ac_declaration in \
2193 ''\
2194 '#include <stdlib.h>' \
2195 'extern "C" void std::exit (int) throw (); using std::exit;' \
2196 'extern "C" void std::exit (int); using std::exit;' \
2197 'extern "C" void exit (int) throw ();' \
2198 'extern "C" void exit (int);' \
2199 'void exit (int);'
2200 do
2201 cat >conftest.$ac_ext <<_ACEOF
2202 #line $LINENO "configure"
2203 /* confdefs.h. */
2204 _ACEOF
2205 cat confdefs.h >>conftest.$ac_ext
2206 cat >>conftest.$ac_ext <<_ACEOF
2207 /* end confdefs.h. */
2208 #include <stdlib.h>
2209 $ac_declaration
2210 int
2211 main ()
2212 {
2213 exit (42);
2214 ;
2215 return 0;
2216 }
2217 _ACEOF
2218 rm -f conftest.$ac_objext
2219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220 (eval $ac_compile) 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); } &&
2224 { ac_try='test -s conftest.$ac_objext'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 (eval $ac_try) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2230 :
2231 else
2232 echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2234
2235 continue
2236 fi
2237 rm -f conftest.$ac_objext conftest.$ac_ext
2238 cat >conftest.$ac_ext <<_ACEOF
2239 #line $LINENO "configure"
2240 /* confdefs.h. */
2241 _ACEOF
2242 cat confdefs.h >>conftest.$ac_ext
2243 cat >>conftest.$ac_ext <<_ACEOF
2244 /* end confdefs.h. */
2245 $ac_declaration
2246 int
2247 main ()
2248 {
2249 exit (42);
2250 ;
2251 return 0;
2252 }
2253 _ACEOF
2254 rm -f conftest.$ac_objext
2255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256 (eval $ac_compile) 2>&5
2257 ac_status=$?
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); } &&
2260 { ac_try='test -s conftest.$ac_objext'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 (eval $ac_try) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; }; then
2266 break
2267 else
2268 echo "$as_me: failed program was:" >&5
2269 sed 's/^/| /' conftest.$ac_ext >&5
2270
2271 fi
2272 rm -f conftest.$ac_objext conftest.$ac_ext
2273 done
2274 rm -f conftest*
2275 if test -n "$ac_declaration"; then
2276 echo '#ifdef __cplusplus' >>confdefs.h
2277 echo $ac_declaration >>confdefs.h
2278 echo '#endif' >>confdefs.h
2279 fi
2280
2281 else
2282 echo "$as_me: failed program was:" >&5
2283 sed 's/^/| /' conftest.$ac_ext >&5
2284
2285 fi
2286 rm -f conftest.$ac_objext conftest.$ac_ext
2287 ac_ext=c
2288 ac_cpp='$CPP $CPPFLAGS'
2289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2292
2293 if test "$GCC" = yes ; then
2294 if test "$SHLICC2" = yes ; then
2295 ac_cv_lbl_gcc_vers=2
2296 V_CCOPT="-O2"
2297 else
2298 echo "$as_me:$LINENO: checking gcc version" >&5
2299 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
2300 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 else
2303 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2304 sed -e '/^gcc version /!d' \
2305 -e 's/^gcc version //' \
2306 -e 's/ .*//' -e 's/^[^0-9]*//' \
2307 -e 's/\..*//'`
2308 fi
2309
2310 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2311 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
2312 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2313 V_CCOPT="-O2"
2314 fi
2315 fi
2316 else
2317 echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2318 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2319 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322
2323 cat >conftest.$ac_ext <<_ACEOF
2324 #line $LINENO "configure"
2325 /* confdefs.h. */
2326 _ACEOF
2327 cat confdefs.h >>conftest.$ac_ext
2328 cat >>conftest.$ac_ext <<_ACEOF
2329 /* end confdefs.h. */
2330 #include <sys/types.h>
2331 int
2332 main ()
2333 {
2334 int frob(int, char *)
2335 ;
2336 return 0;
2337 }
2338 _ACEOF
2339 rm -f conftest.$ac_objext
2340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2341 (eval $ac_compile) 2>&5
2342 ac_status=$?
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); } &&
2345 { ac_try='test -s conftest.$ac_objext'
2346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347 (eval $ac_try) 2>&5
2348 ac_status=$?
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }; }; then
2351 ac_cv_lbl_cc_ansi_prototypes=yes
2352 else
2353 echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.$ac_ext >&5
2355
2356 ac_cv_lbl_cc_ansi_prototypes=no
2357 fi
2358 rm -f conftest.$ac_objext conftest.$ac_ext
2359 fi
2360
2361 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2362 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
2363 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2364 case "$host_os" in
2365
2366 hpux*)
2367 echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2368 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
2369 savedcflags="$CFLAGS"
2370 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2371 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2373 else
2374 cat >conftest.$ac_ext <<_ACEOF
2375 #line $LINENO "configure"
2376 /* confdefs.h. */
2377 _ACEOF
2378 cat confdefs.h >>conftest.$ac_ext
2379 cat >>conftest.$ac_ext <<_ACEOF
2380 /* end confdefs.h. */
2381 #include <sys/types.h>
2382 int
2383 main ()
2384 {
2385 int frob(int, char *)
2386 ;
2387 return 0;
2388 }
2389 _ACEOF
2390 rm -f conftest.$ac_objext
2391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2392 (eval $ac_compile) 2>&5
2393 ac_status=$?
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
2396 { ac_try='test -s conftest.$ac_objext'
2397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398 (eval $ac_try) 2>&5
2399 ac_status=$?
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; }; then
2402 ac_cv_lbl_cc_hpux_cc_aa=yes
2403 else
2404 echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2406
2407 ac_cv_lbl_cc_hpux_cc_aa=no
2408 fi
2409 rm -f conftest.$ac_objext conftest.$ac_ext
2410 fi
2411
2412 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2413 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
2414 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2415 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2416 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2417 { (exit 1); exit 1; }; }
2418 fi
2419 CFLAGS="$savedcflags"
2420 V_CCOPT="-Aa $V_CCOPT"
2421 cat >>confdefs.h <<\_ACEOF
2422 #define _HPUX_SOURCE 1
2423 _ACEOF
2424
2425 ;;
2426
2427 *)
2428 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2429 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2430 { (exit 1); exit 1; }; }
2431 ;;
2432 esac
2433 fi
2434 V_INCLS="$V_INCLS -I/usr/local/include"
2435 LDFLAGS="$LDFLAGS -L/usr/local/lib"
2436
2437 case "$host_os" in
2438
2439 irix*)
2440 V_CCOPT="$V_CCOPT -xansi -signed -O"
2441 ;;
2442
2443 osf*)
2444 V_CCOPT="$V_CCOPT -std1 -O"
2445 ;;
2446
2447 ultrix*)
2448 echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2449 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2450 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453 cat >conftest.$ac_ext <<_ACEOF
2454 #line $LINENO "configure"
2455 /* confdefs.h. */
2456 _ACEOF
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h. */
2460 #include <sys/types.h>
2461 int
2462 main ()
2463 {
2464 struct a { int b; };
2465 void c(const struct a *)
2466 ;
2467 return 0;
2468 }
2469 _ACEOF
2470 rm -f conftest.$ac_objext
2471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472 (eval $ac_compile) 2>&5
2473 ac_status=$?
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); } &&
2476 { ac_try='test -s conftest.$ac_objext'
2477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478 (eval $ac_try) 2>&5
2479 ac_status=$?
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; }; then
2482 ac_cv_lbl_cc_const_proto=yes
2483 else
2484 echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2486
2487 ac_cv_lbl_cc_const_proto=no
2488 fi
2489 rm -f conftest.$ac_objext conftest.$ac_ext
2490 fi
2491
2492 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2493 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
2494 if test $ac_cv_lbl_cc_const_proto = no ; then
2495 cat >>confdefs.h <<\_ACEOF
2496 #define const
2497 _ACEOF
2498
2499 fi
2500 ;;
2501 esac
2502 fi
2503
2504 echo "$as_me:$LINENO: checking for inline" >&5
2505 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2506 if test "${ac_cv_lbl_inline+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509
2510 ac_cv_lbl_inline=""
2511 ac_lbl_cc_inline=no
2512 for ac_lbl_inline in inline __inline__ __inline
2513 do
2514 cat >conftest.$ac_ext <<_ACEOF
2515 #line $LINENO "configure"
2516 /* confdefs.h. */
2517 _ACEOF
2518 cat confdefs.h >>conftest.$ac_ext
2519 cat >>conftest.$ac_ext <<_ACEOF
2520 /* end confdefs.h. */
2521 #define inline $ac_lbl_inline
2522 static inline struct iltest *foo(void);
2523 struct iltest {
2524 int iltest1;
2525 int iltest2;
2526 };
2527
2528 static inline struct iltest *
2529 foo()
2530 {
2531 static struct iltest xxx;
2532
2533 return &xxx;
2534 }
2535 int
2536 main ()
2537 {
2538
2539 ;
2540 return 0;
2541 }
2542 _ACEOF
2543 rm -f conftest.$ac_objext
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545 (eval $ac_compile) 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); } &&
2549 { ac_try='test -s conftest.$ac_objext'
2550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551 (eval $ac_try) 2>&5
2552 ac_status=$?
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; }; then
2555 ac_lbl_cc_inline=yes
2556 else
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2559
2560 fi
2561 rm -f conftest.$ac_objext conftest.$ac_ext
2562 if test "$ac_lbl_cc_inline" = yes ; then
2563 break;
2564 fi
2565 done
2566 if test "$ac_lbl_cc_inline" = yes ; then
2567 ac_cv_lbl_inline=$ac_lbl_inline
2568 fi
2569 fi
2570
2571 if test ! -z "$ac_cv_lbl_inline" ; then
2572 echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2573 echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2574 else
2575 echo "$as_me:$LINENO: result: no" >&5
2576 echo "${ECHO_T}no" >&6
2577 fi
2578
2579 cat >>confdefs.h <<_ACEOF
2580 #define inline $ac_cv_lbl_inline
2581 _ACEOF
2582
2583
2584 echo "$as_me:$LINENO: checking for __attribute__" >&5
2585 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2586 if test "${ac_cv___attribute__+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589
2590 cat >conftest.$ac_ext <<_ACEOF
2591 #line $LINENO "configure"
2592 /* confdefs.h. */
2593 _ACEOF
2594 cat confdefs.h >>conftest.$ac_ext
2595 cat >>conftest.$ac_ext <<_ACEOF
2596 /* end confdefs.h. */
2597
2598 #include <stdlib.h>
2599
2600 static void foo(void) __attribute__ ((noreturn));
2601
2602 static void
2603 foo(void)
2604 {
2605 exit(1);
2606 }
2607
2608 int
2609 main(int argc, char **argv)
2610 {
2611 foo();
2612 }
2613
2614 _ACEOF
2615 rm -f conftest.$ac_objext
2616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2617 (eval $ac_compile) 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); } &&
2621 { ac_try='test -s conftest.$ac_objext'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623 (eval $ac_try) 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; }; then
2627 ac_cv___attribute__=yes
2628 else
2629 echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2631
2632 ac_cv___attribute__=no
2633 fi
2634 rm -f conftest.$ac_objext conftest.$ac_ext
2635 fi
2636
2637 if test "$ac_cv___attribute__" = "yes"; then
2638
2639 cat >>confdefs.h <<\_ACEOF
2640 #define HAVE___ATTRIBUTE__ 1
2641 _ACEOF
2642
2643 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
2644 else
2645 V_DEFS="$V_DEFS -D_U_=\"\""
2646 fi
2647 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2648 echo "${ECHO_T}$ac_cv___attribute__" >&6
2649
2650 ac_ext=c
2651 ac_cpp='$CPP $CPPFLAGS'
2652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2656 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2657 # On Suns, sometimes $CPP names a directory.
2658 if test -n "$CPP" && test -d "$CPP"; then
2659 CPP=
2660 fi
2661 if test -z "$CPP"; then
2662 if test "${ac_cv_prog_CPP+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665 # Double quotes because CPP needs to be expanded
2666 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2667 do
2668 ac_preproc_ok=false
2669 for ac_c_preproc_warn_flag in '' yes
2670 do
2671 # Use a header file that comes with gcc, so configuring glibc
2672 # with a fresh cross-compiler works.
2673 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2674 # <limits.h> exists even on freestanding compilers.
2675 # On the NeXT, cc -E runs the code through the compiler's parser,
2676 # not just through cpp. "Syntax error" is here to catch this case.
2677 cat >conftest.$ac_ext <<_ACEOF
2678 #line $LINENO "configure"
2679 /* confdefs.h. */
2680 _ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2684 #ifdef __STDC__
2685 # include <limits.h>
2686 #else
2687 # include <assert.h>
2688 #endif
2689 Syntax error
2690 _ACEOF
2691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2693 ac_status=$?
2694 grep -v '^ *+' conftest.er1 >conftest.err
2695 rm -f conftest.er1
2696 cat conftest.err >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } >/dev/null; then
2699 if test -s conftest.err; then
2700 ac_cpp_err=$ac_c_preproc_warn_flag
2701 else
2702 ac_cpp_err=
2703 fi
2704 else
2705 ac_cpp_err=yes
2706 fi
2707 if test -z "$ac_cpp_err"; then
2708 :
2709 else
2710 echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2712
2713 # Broken: fails on valid input.
2714 continue
2715 fi
2716 rm -f conftest.err conftest.$ac_ext
2717
2718 # OK, works on sane cases. Now check whether non-existent headers
2719 # can be detected and how.
2720 cat >conftest.$ac_ext <<_ACEOF
2721 #line $LINENO "configure"
2722 /* confdefs.h. */
2723 _ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h. */
2727 #include <ac_nonexistent.h>
2728 _ACEOF
2729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2731 ac_status=$?
2732 grep -v '^ *+' conftest.er1 >conftest.err
2733 rm -f conftest.er1
2734 cat conftest.err >&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); } >/dev/null; then
2737 if test -s conftest.err; then
2738 ac_cpp_err=$ac_c_preproc_warn_flag
2739 else
2740 ac_cpp_err=
2741 fi
2742 else
2743 ac_cpp_err=yes
2744 fi
2745 if test -z "$ac_cpp_err"; then
2746 # Broken: success on invalid input.
2747 continue
2748 else
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2751
2752 # Passes both tests.
2753 ac_preproc_ok=:
2754 break
2755 fi
2756 rm -f conftest.err conftest.$ac_ext
2757
2758 done
2759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2760 rm -f conftest.err conftest.$ac_ext
2761 if $ac_preproc_ok; then
2762 break
2763 fi
2764
2765 done
2766 ac_cv_prog_CPP=$CPP
2767
2768 fi
2769 CPP=$ac_cv_prog_CPP
2770 else
2771 ac_cv_prog_CPP=$CPP
2772 fi
2773 echo "$as_me:$LINENO: result: $CPP" >&5
2774 echo "${ECHO_T}$CPP" >&6
2775 ac_preproc_ok=false
2776 for ac_c_preproc_warn_flag in '' yes
2777 do
2778 # Use a header file that comes with gcc, so configuring glibc
2779 # with a fresh cross-compiler works.
2780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2781 # <limits.h> exists even on freestanding compilers.
2782 # On the NeXT, cc -E runs the code through the compiler's parser,
2783 # not just through cpp. "Syntax error" is here to catch this case.
2784 cat >conftest.$ac_ext <<_ACEOF
2785 #line $LINENO "configure"
2786 /* confdefs.h. */
2787 _ACEOF
2788 cat confdefs.h >>conftest.$ac_ext
2789 cat >>conftest.$ac_ext <<_ACEOF
2790 /* end confdefs.h. */
2791 #ifdef __STDC__
2792 # include <limits.h>
2793 #else
2794 # include <assert.h>
2795 #endif
2796 Syntax error
2797 _ACEOF
2798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2800 ac_status=$?
2801 grep -v '^ *+' conftest.er1 >conftest.err
2802 rm -f conftest.er1
2803 cat conftest.err >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } >/dev/null; then
2806 if test -s conftest.err; then
2807 ac_cpp_err=$ac_c_preproc_warn_flag
2808 else
2809 ac_cpp_err=
2810 fi
2811 else
2812 ac_cpp_err=yes
2813 fi
2814 if test -z "$ac_cpp_err"; then
2815 :
2816 else
2817 echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2819
2820 # Broken: fails on valid input.
2821 continue
2822 fi
2823 rm -f conftest.err conftest.$ac_ext
2824
2825 # OK, works on sane cases. Now check whether non-existent headers
2826 # can be detected and how.
2827 cat >conftest.$ac_ext <<_ACEOF
2828 #line $LINENO "configure"
2829 /* confdefs.h. */
2830 _ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2834 #include <ac_nonexistent.h>
2835 _ACEOF
2836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2838 ac_status=$?
2839 grep -v '^ *+' conftest.er1 >conftest.err
2840 rm -f conftest.er1
2841 cat conftest.err >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } >/dev/null; then
2844 if test -s conftest.err; then
2845 ac_cpp_err=$ac_c_preproc_warn_flag
2846 else
2847 ac_cpp_err=
2848 fi
2849 else
2850 ac_cpp_err=yes
2851 fi
2852 if test -z "$ac_cpp_err"; then
2853 # Broken: success on invalid input.
2854 continue
2855 else
2856 echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2858
2859 # Passes both tests.
2860 ac_preproc_ok=:
2861 break
2862 fi
2863 rm -f conftest.err conftest.$ac_ext
2864
2865 done
2866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2867 rm -f conftest.err conftest.$ac_ext
2868 if $ac_preproc_ok; then
2869 :
2870 else
2871 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2872 See \`config.log' for more details." >&5
2873 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2874 See \`config.log' for more details." >&2;}
2875 { (exit 1); exit 1; }; }
2876 fi
2877
2878 ac_ext=c
2879 ac_cpp='$CPP $CPPFLAGS'
2880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2883
2884
2885 echo "$as_me:$LINENO: checking for egrep" >&5
2886 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2887 if test "${ac_cv_prog_egrep+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 else
2890 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2891 then ac_cv_prog_egrep='grep -E'
2892 else ac_cv_prog_egrep='egrep'
2893 fi
2894 fi
2895 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2896 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2897 EGREP=$ac_cv_prog_egrep
2898
2899
2900 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2901 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2902 if test "${ac_cv_header_stdc+set}" = set; then
2903 echo $ECHO_N "(cached) $ECHO_C" >&6
2904 else
2905 cat >conftest.$ac_ext <<_ACEOF
2906 #line $LINENO "configure"
2907 /* confdefs.h. */
2908 _ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h. */
2912 #include <stdlib.h>
2913 #include <stdarg.h>
2914 #include <string.h>
2915 #include <float.h>
2916
2917 int
2918 main ()
2919 {
2920
2921 ;
2922 return 0;
2923 }
2924 _ACEOF
2925 rm -f conftest.$ac_objext
2926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927 (eval $ac_compile) 2>&5
2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } &&
2931 { ac_try='test -s conftest.$ac_objext'
2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933 (eval $ac_try) 2>&5
2934 ac_status=$?
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; }; then
2937 ac_cv_header_stdc=yes
2938 else
2939 echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2941
2942 ac_cv_header_stdc=no
2943 fi
2944 rm -f conftest.$ac_objext conftest.$ac_ext
2945
2946 if test $ac_cv_header_stdc = yes; then
2947 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2948 cat >conftest.$ac_ext <<_ACEOF
2949 #line $LINENO "configure"
2950 /* confdefs.h. */
2951 _ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2955 #include <string.h>
2956
2957 _ACEOF
2958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2959 $EGREP "memchr" >/dev/null 2>&1; then
2960 :
2961 else
2962 ac_cv_header_stdc=no
2963 fi
2964 rm -f conftest*
2965
2966 fi
2967
2968 if test $ac_cv_header_stdc = yes; then
2969 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2970 cat >conftest.$ac_ext <<_ACEOF
2971 #line $LINENO "configure"
2972 /* confdefs.h. */
2973 _ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2977 #include <stdlib.h>
2978
2979 _ACEOF
2980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2981 $EGREP "free" >/dev/null 2>&1; then
2982 :
2983 else
2984 ac_cv_header_stdc=no
2985 fi
2986 rm -f conftest*
2987
2988 fi
2989
2990 if test $ac_cv_header_stdc = yes; then
2991 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2992 if test "$cross_compiling" = yes; then
2993 :
2994 else
2995 cat >conftest.$ac_ext <<_ACEOF
2996 #line $LINENO "configure"
2997 /* confdefs.h. */
2998 _ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3002 #include <ctype.h>
3003 #if ((' ' & 0x0FF) == 0x020)
3004 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3005 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3006 #else
3007 # define ISLOWER(c) \
3008 (('a' <= (c) && (c) <= 'i') \
3009 || ('j' <= (c) && (c) <= 'r') \
3010 || ('s' <= (c) && (c) <= 'z'))
3011 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3012 #endif
3013
3014 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3015 int
3016 main ()
3017 {
3018 int i;
3019 for (i = 0; i < 256; i++)
3020 if (XOR (islower (i), ISLOWER (i))
3021 || toupper (i) != TOUPPER (i))
3022 exit(2);
3023 exit (0);
3024 }
3025 _ACEOF
3026 rm -f conftest$ac_exeext
3027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3028 (eval $ac_link) 2>&5
3029 ac_status=$?
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033 (eval $ac_try) 2>&5
3034 ac_status=$?
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; }; then
3037 :
3038 else
3039 echo "$as_me: program exited with status $ac_status" >&5
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3042
3043 ( exit $ac_status )
3044 ac_cv_header_stdc=no
3045 fi
3046 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3047 fi
3048 fi
3049 fi
3050 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3051 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3052 if test $ac_cv_header_stdc = yes; then
3053
3054 cat >>confdefs.h <<\_ACEOF
3055 #define STDC_HEADERS 1
3056 _ACEOF
3057
3058 fi
3059
3060 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3071 inttypes.h stdint.h unistd.h
3072 do
3073 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3074 echo "$as_me:$LINENO: checking for $ac_header" >&5
3075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079 cat >conftest.$ac_ext <<_ACEOF
3080 #line $LINENO "configure"
3081 /* confdefs.h. */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3086 $ac_includes_default
3087
3088 #include <$ac_header>
3089 _ACEOF
3090 rm -f conftest.$ac_objext
3091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3092 (eval $ac_compile) 2>&5
3093 ac_status=$?
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } &&
3096 { ac_try='test -s conftest.$ac_objext'
3097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3098 (eval $ac_try) 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; }; then
3102 eval "$as_ac_Header=yes"
3103 else
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3106
3107 eval "$as_ac_Header=no"
3108 fi
3109 rm -f conftest.$ac_objext conftest.$ac_ext
3110 fi
3111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3114 cat >>confdefs.h <<_ACEOF
3115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3116 _ACEOF
3117
3118 fi
3119
3120 done
3121
3122
3123
3124
3125
3126 for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h
3127 do
3128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3130 echo "$as_me:$LINENO: checking for $ac_header" >&5
3131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3134 fi
3135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3137 else
3138 # Is the header compilable?
3139 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3141 cat >conftest.$ac_ext <<_ACEOF
3142 #line $LINENO "configure"
3143 /* confdefs.h. */
3144 _ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3148 $ac_includes_default
3149 #include <$ac_header>
3150 _ACEOF
3151 rm -f conftest.$ac_objext
3152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3153 (eval $ac_compile) 2>&5
3154 ac_status=$?
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); } &&
3157 { ac_try='test -s conftest.$ac_objext'
3158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159 (eval $ac_try) 2>&5
3160 ac_status=$?
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; }; then
3163 ac_header_compiler=yes
3164 else
3165 echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3167
3168 ac_header_compiler=no
3169 fi
3170 rm -f conftest.$ac_objext conftest.$ac_ext
3171 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3172 echo "${ECHO_T}$ac_header_compiler" >&6
3173
3174 # Is the header present?
3175 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3177 cat >conftest.$ac_ext <<_ACEOF
3178 #line $LINENO "configure"
3179 /* confdefs.h. */
3180 _ACEOF
3181 cat confdefs.h >>conftest.$ac_ext
3182 cat >>conftest.$ac_ext <<_ACEOF
3183 /* end confdefs.h. */
3184 #include <$ac_header>
3185 _ACEOF
3186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3188 ac_status=$?
3189 grep -v '^ *+' conftest.er1 >conftest.err
3190 rm -f conftest.er1
3191 cat conftest.err >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } >/dev/null; then
3194 if test -s conftest.err; then
3195 ac_cpp_err=$ac_c_preproc_warn_flag
3196 else
3197 ac_cpp_err=
3198 fi
3199 else
3200 ac_cpp_err=yes
3201 fi
3202 if test -z "$ac_cpp_err"; then
3203 ac_header_preproc=yes
3204 else
3205 echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3207
3208 ac_header_preproc=no
3209 fi
3210 rm -f conftest.err conftest.$ac_ext
3211 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3212 echo "${ECHO_T}$ac_header_preproc" >&6
3213
3214 # So? What about this header?
3215 case $ac_header_compiler:$ac_header_preproc in
3216 yes:no )
3217 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3221 (
3222 cat <<\_ASBOX
3223 ## ------------------------------------ ##
3224 ## Report this to bug-autoconf@gnu.org. ##
3225 ## ------------------------------------ ##
3226 _ASBOX
3227 ) |
3228 sed "s/^/$as_me: WARNING: /" >&2
3229 ;;
3230 no:yes )
3231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3234 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3236 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3237 (
3238 cat <<\_ASBOX
3239 ## ------------------------------------ ##
3240 ## Report this to bug-autoconf@gnu.org. ##
3241 ## ------------------------------------ ##
3242 _ASBOX
3243 ) |
3244 sed "s/^/$as_me: WARNING: /" >&2
3245 ;;
3246 esac
3247 echo "$as_me:$LINENO: checking for $ac_header" >&5
3248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 else
3252 eval "$as_ac_Header=$ac_header_preproc"
3253 fi
3254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3256
3257 fi
3258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3259 cat >>confdefs.h <<_ACEOF
3260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3261 _ACEOF
3262
3263 fi
3264
3265 done
3266
3267
3268 for ac_header in netinet/if_ether.h
3269 do
3270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3271 echo "$as_me:$LINENO: checking for $ac_header" >&5
3272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276 cat >conftest.$ac_ext <<_ACEOF
3277 #line $LINENO "configure"
3278 /* confdefs.h. */
3279 _ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h. */
3283 #include <sys/types.h>
3284 #include <sys/socket.h>
3285
3286 #include <$ac_header>
3287 _ACEOF
3288 rm -f conftest.$ac_objext
3289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3290 (eval $ac_compile) 2>&5
3291 ac_status=$?
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } &&
3294 { ac_try='test -s conftest.$ac_objext'
3295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296 (eval $ac_try) 2>&5
3297 ac_status=$?
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); }; }; then
3300 eval "$as_ac_Header=yes"
3301 else
3302 echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3304
3305 eval "$as_ac_Header=no"
3306 fi
3307 rm -f conftest.$ac_objext conftest.$ac_ext
3308 fi
3309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3312 cat >>confdefs.h <<_ACEOF
3313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3314 _ACEOF
3315
3316 fi
3317
3318 done
3319
3320 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
3321 #
3322 # The simple test didn't work.
3323 # Do we need to include <net/if.h> first?
3324 # Unset ac_cv_header_netinet_if_ether_h so we don't
3325 # treat the previous failure as a cached value and
3326 # suppress the next test.
3327 #
3328 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
3329 echo "$as_me: Rechecking with some additional includes" >&6;}
3330 unset ac_cv_header_netinet_if_ether_h
3331
3332 for ac_header in netinet/if_ether.h
3333 do
3334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3335 echo "$as_me:$LINENO: checking for $ac_header" >&5
3336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 else
3340 cat >conftest.$ac_ext <<_ACEOF
3341 #line $LINENO "configure"
3342 /* confdefs.h. */
3343 _ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3347 #include <sys/types.h>
3348 #include <sys/socket.h>
3349 #include <netinet/in.h>
3350 struct mbuf;
3351 struct rtentry;
3352 #include <net/if.h>
3353
3354 #include <$ac_header>
3355 _ACEOF
3356 rm -f conftest.$ac_objext
3357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3358 (eval $ac_compile) 2>&5
3359 ac_status=$?
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); } &&
3362 { ac_try='test -s conftest.$ac_objext'
3363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364 (eval $ac_try) 2>&5
3365 ac_status=$?
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }; }; then
3368 eval "$as_ac_Header=yes"
3369 else
3370 echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3372
3373 eval "$as_ac_Header=no"
3374 fi
3375 rm -f conftest.$ac_objext conftest.$ac_ext
3376 fi
3377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3380 cat >>confdefs.h <<_ACEOF
3381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3382 _ACEOF
3383
3384 fi
3385
3386 done
3387
3388 fi
3389
3390 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3391 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3392 if test "${ac_cv_header_time+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395 cat >conftest.$ac_ext <<_ACEOF
3396 #line $LINENO "configure"
3397 /* confdefs.h. */
3398 _ACEOF
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3402 #include <sys/types.h>
3403 #include <sys/time.h>
3404 #include <time.h>
3405
3406 int
3407 main ()
3408 {
3409 if ((struct tm *) 0)
3410 return 0;
3411 ;
3412 return 0;
3413 }
3414 _ACEOF
3415 rm -f conftest.$ac_objext
3416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3417 (eval $ac_compile) 2>&5
3418 ac_status=$?
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } &&
3421 { ac_try='test -s conftest.$ac_objext'
3422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423 (eval $ac_try) 2>&5
3424 ac_status=$?
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }; }; then
3427 ac_cv_header_time=yes
3428 else
3429 echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3431
3432 ac_cv_header_time=no
3433 fi
3434 rm -f conftest.$ac_objext conftest.$ac_ext
3435 fi
3436 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3437 echo "${ECHO_T}$ac_cv_header_time" >&6
3438 if test $ac_cv_header_time = yes; then
3439
3440 cat >>confdefs.h <<\_ACEOF
3441 #define TIME_WITH_SYS_TIME 1
3442 _ACEOF
3443
3444 fi
3445
3446
3447 case "$host_os" in
3448
3449 linux*)
3450 echo "$as_me:$LINENO: checking Linux kernel version" >&5
3451 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
3452 if test "$cross_compiling" = yes; then
3453 if test "${ac_cv_linux_vers+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 else
3456 ac_cv_linux_vers=unknown
3457 fi
3458
3459 else
3460 if test "${ac_cv_linux_vers+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3462 else
3463 ac_cv_linux_vers=`uname -r 2>&1 | \
3464 sed -n -e '$s/.* //' -e '$s/\..*//p'`
3465 fi
3466
3467 fi
3468 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
3469 echo "${ECHO_T}$ac_cv_linux_vers" >&6
3470 if test $ac_cv_linux_vers = unknown ; then
3471 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
3472 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
3473 { (exit 1); exit 1; }; }
3474 fi
3475 if test $ac_cv_linux_vers -lt 2 ; then
3476 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
3477 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
3478 { (exit 1); exit 1; }; }
3479 fi
3480 ;;
3481
3482 *)
3483 ;;
3484 esac
3485
3486
3487
3488 for ac_header in smi.h
3489 do
3490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3492 echo "$as_me:$LINENO: checking for $ac_header" >&5
3493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3496 fi
3497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3499 else
3500 # Is the header compilable?
3501 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3503 cat >conftest.$ac_ext <<_ACEOF
3504 #line $LINENO "configure"
3505 /* confdefs.h. */
3506 _ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h. */
3510 $ac_includes_default
3511 #include <$ac_header>
3512 _ACEOF
3513 rm -f conftest.$ac_objext
3514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3515 (eval $ac_compile) 2>&5
3516 ac_status=$?
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); } &&
3519 { ac_try='test -s conftest.$ac_objext'
3520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521 (eval $ac_try) 2>&5
3522 ac_status=$?
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }; }; then
3525 ac_header_compiler=yes
3526 else
3527 echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3529
3530 ac_header_compiler=no
3531 fi
3532 rm -f conftest.$ac_objext conftest.$ac_ext
3533 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3534 echo "${ECHO_T}$ac_header_compiler" >&6
3535
3536 # Is the header present?
3537 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3539 cat >conftest.$ac_ext <<_ACEOF
3540 #line $LINENO "configure"
3541 /* confdefs.h. */
3542 _ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3546 #include <$ac_header>
3547 _ACEOF
3548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3550 ac_status=$?
3551 grep -v '^ *+' conftest.er1 >conftest.err
3552 rm -f conftest.er1
3553 cat conftest.err >&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); } >/dev/null; then
3556 if test -s conftest.err; then
3557 ac_cpp_err=$ac_c_preproc_warn_flag
3558 else
3559 ac_cpp_err=
3560 fi
3561 else
3562 ac_cpp_err=yes
3563 fi
3564 if test -z "$ac_cpp_err"; then
3565 ac_header_preproc=yes
3566 else
3567 echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3569
3570 ac_header_preproc=no
3571 fi
3572 rm -f conftest.err conftest.$ac_ext
3573 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3574 echo "${ECHO_T}$ac_header_preproc" >&6
3575
3576 # So? What about this header?
3577 case $ac_header_compiler:$ac_header_preproc in
3578 yes:no )
3579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3583 (
3584 cat <<\_ASBOX
3585 ## ------------------------------------ ##
3586 ## Report this to bug-autoconf@gnu.org. ##
3587 ## ------------------------------------ ##
3588 _ASBOX
3589 ) |
3590 sed "s/^/$as_me: WARNING: /" >&2
3591 ;;
3592 no:yes )
3593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3596 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3599 (
3600 cat <<\_ASBOX
3601 ## ------------------------------------ ##
3602 ## Report this to bug-autoconf@gnu.org. ##
3603 ## ------------------------------------ ##
3604 _ASBOX
3605 ) |
3606 sed "s/^/$as_me: WARNING: /" >&2
3607 ;;
3608 esac
3609 echo "$as_me:$LINENO: checking for $ac_header" >&5
3610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3612 echo $ECHO_N "(cached) $ECHO_C" >&6
3613 else
3614 eval "$as_ac_Header=$ac_header_preproc"
3615 fi
3616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3618
3619 fi
3620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3621 cat >>confdefs.h <<_ACEOF
3622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3623 _ACEOF
3624
3625 fi
3626
3627 done
3628
3629
3630 echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
3631 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6
3632 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3634 else
3635 ac_check_lib_save_LIBS=$LIBS
3636 LIBS="-lsmi $LIBS"
3637 cat >conftest.$ac_ext <<_ACEOF
3638 #line $LINENO "configure"
3639 /* confdefs.h. */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3644
3645 /* Override any gcc2 internal prototype to avoid an error. */
3646 #ifdef __cplusplus
3647 extern "C"
3648 #endif
3649 /* We use char because int might match the return type of a gcc2
3650 builtin and then its argument prototype would still apply. */
3651 char smiInit ();
3652 int
3653 main ()
3654 {
3655 smiInit ();
3656 ;
3657 return 0;
3658 }
3659 _ACEOF
3660 rm -f conftest.$ac_objext 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); } &&
3666 { ac_try='test -s conftest$ac_exeext'
3667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668 (eval $ac_try) 2>&5
3669 ac_status=$?
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; }; then
3672 ac_cv_lib_smi_smiInit=yes
3673 else
3674 echo "$as_me: failed program was:" >&5
3675 sed 's/^/| /' conftest.$ac_ext >&5
3676
3677 ac_cv_lib_smi_smiInit=no
3678 fi
3679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3680 LIBS=$ac_check_lib_save_LIBS
3681 fi
3682 echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
3683 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6
3684 if test $ac_cv_lib_smi_smiInit = yes; then
3685 cat >>confdefs.h <<_ACEOF
3686 #define HAVE_LIBSMI 1
3687 _ACEOF
3688
3689 LIBS="-lsmi $LIBS"
3690
3691 fi
3692
3693 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
3694 then
3695 echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
3696 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6
3697 if test "$cross_compiling" = yes; then
3698 echo "$as_me:$LINENO: result: not when cross-compiling" >&5
3699 echo "${ECHO_T}not when cross-compiling" >&6
3700 libsmi=no
3701
3702 else
3703 cat >conftest.$ac_ext <<_ACEOF
3704 #line $LINENO "configure"
3705 /* confdefs.h. */
3706 _ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h. */
3710 /* libsmi available check */
3711 #include <smi.h>
3712 main()
3713 {
3714 int current, revision, age, n;
3715 const int required = 2;
3716 if (smiInit(""))
3717 exit(1);
3718 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
3719 exit(2);
3720 n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
3721 if (n != 3)
3722 exit(3);
3723 if (required < current - age || required > current)
3724 exit(4);
3725 exit(0);
3726 }
3727
3728 _ACEOF
3729 rm -f conftest$ac_exeext
3730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3731 (eval $ac_link) 2>&5
3732 ac_status=$?
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3736 (eval $ac_try) 2>&5
3737 ac_status=$?
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; }; then
3740 echo "$as_me:$LINENO: result: yes" >&5
3741 echo "${ECHO_T}yes" >&6
3742 cat >>confdefs.h <<\_ACEOF
3743 #define LIBSMI 1
3744 _ACEOF
3745
3746 libsmi=yes
3747 else
3748 echo "$as_me: program exited with status $ac_status" >&5
3749 echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3751
3752 ( exit $ac_status )
3753 case $? in
3754 1) echo "$as_me:$LINENO: result: no - smiInit failed" >&5
3755 echo "${ECHO_T}no - smiInit failed" >&6 ;;
3756 2) echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
3757 echo "${ECHO_T}no - header/library version mismatch" >&6 ;;
3758 3) echo "$as_me:$LINENO: result: no - can't determine library version" >&5
3759 echo "${ECHO_T}no - can't determine library version" >&6 ;;
3760 4) echo "$as_me:$LINENO: result: no - too old" >&5
3761 echo "${ECHO_T}no - too old" >&6 ;;
3762 *) echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6 ;;
3764 esac
3765 libsmi=no
3766 fi
3767 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3768 fi
3769 fi
3770
3771 echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
3772 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6
3773 # Check whether --enable-smb or --disable-smb was given.
3774 if test "${enable_smb+set}" = set; then
3775 enableval="$enable_smb"
3776
3777 else
3778 enableval=yes
3779 fi;
3780 case "$enableval" in
3781 yes) echo "$as_me:$LINENO: result: yes" >&5
3782 echo "${ECHO_T}yes" >&6
3783 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
3784 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
3785 cat >>confdefs.h <<\_ACEOF
3786 #define TCPDUMP_DO_SMB 1
3787 _ACEOF
3788
3789 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
3790 ;;
3791 *) echo "$as_me:$LINENO: result: no" >&5
3792 echo "${ECHO_T}no" >&6
3793 ;;
3794 esac
3795
3796
3797 # Check whether --with-user or --without-user was given.
3798 if test "${with_user+set}" = set; then
3799 withval="$with_user"
3800
3801 fi;
3802 echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
3803 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6
3804 if test ! -z "$with_user" ; then
3805 cat >>confdefs.h <<_ACEOF
3806 #define WITH_USER "$withval"
3807 _ACEOF
3808
3809 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
3810 echo "${ECHO_T}to \"$withval\"" >&6
3811 else
3812 echo "$as_me:$LINENO: result: no" >&5
3813 echo "${ECHO_T}no" >&6
3814 fi
3815
3816
3817 # Check whether --with-chroot or --without-chroot was given.
3818 if test "${with_chroot+set}" = set; then
3819 withval="$with_chroot"
3820
3821 fi;
3822 echo "$as_me:$LINENO: checking whether to chroot" >&5
3823 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6
3824 if test ! -z "$with_chroot" ; then
3825 cat >>confdefs.h <<_ACEOF
3826 #define WITH_CHROOT "$withval"
3827 _ACEOF
3828
3829 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
3830 echo "${ECHO_T}to \"$withval\"" >&6
3831 else
3832 echo "$as_me:$LINENO: result: no" >&5
3833 echo "${ECHO_T}no" >&6
3834 fi
3835
3836 echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
3837 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
3838 # Check whether --enable-ipv6 or --disable-ipv6 was given.
3839 if test "${enable_ipv6+set}" = set; then
3840 enableval="$enable_ipv6"
3841 case "$enableval" in
3842 yes) echo "$as_me:$LINENO: result: yes" >&5
3843 echo "${ECHO_T}yes" >&6
3844 LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
3845 cat >>confdefs.h <<\_ACEOF
3846 #define INET6 1
3847 _ACEOF
3848
3849 ipv6=yes
3850 ;;
3851 *)
3852 echo "$as_me:$LINENO: result: no" >&5
3853 echo "${ECHO_T}no" >&6
3854 ipv6=no
3855 ;;
3856 esac
3857 else
3858 if test "$cross_compiling" = yes; then
3859 echo "$as_me:$LINENO: result: no" >&5
3860 echo "${ECHO_T}no" >&6
3861 ipv6=no
3862
3863 else
3864 cat >conftest.$ac_ext <<_ACEOF
3865 #line $LINENO "configure"
3866 /* confdefs.h. */
3867 _ACEOF
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h. */
3871 /* AF_INET6 available check */
3872 #include <sys/types.h>
3873 #include <sys/socket.h>
3874 main()
3875 {
3876 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
3877 exit(1);
3878 else
3879 exit(0);
3880 }
3881
3882 _ACEOF
3883 rm -f conftest$ac_exeext
3884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3885 (eval $ac_link) 2>&5
3886 ac_status=$?
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890 (eval $ac_try) 2>&5
3891 ac_status=$?
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); }; }; then
3894 echo "$as_me:$LINENO: result: yes" >&5
3895 echo "${ECHO_T}yes" >&6
3896 LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
3897 cat >>confdefs.h <<\_ACEOF
3898 #define INET6 1
3899 _ACEOF
3900
3901 ipv6=yes
3902 else
3903 echo "$as_me: program exited with status $ac_status" >&5
3904 echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3906
3907 ( exit $ac_status )
3908 echo "$as_me:$LINENO: result: no" >&5
3909 echo "${ECHO_T}no" >&6
3910 ipv6=no
3911 fi
3912 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3913 fi
3914 fi;
3915
3916 ipv6type=unknown
3917 ipv6lib=none
3918 ipv6trylibc=no
3919
3920 if test "$ipv6" = "yes"; then
3921 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
3922 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
3923 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
3924 case $i in
3925 inria)
3926 cat >conftest.$ac_ext <<_ACEOF
3927 #line $LINENO "configure"
3928 /* confdefs.h. */
3929 _ACEOF
3930 cat confdefs.h >>conftest.$ac_ext
3931 cat >>conftest.$ac_ext <<_ACEOF
3932 /* end confdefs.h. */
3933 #include <netinet/in.h>
3934 #ifdef IPV6_INRIA_VERSION
3935 yes
3936 #endif
3937 _ACEOF
3938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3939 $EGREP "yes" >/dev/null 2>&1; then
3940 ipv6type=$i;
3941 CFLAGS="-DINET6 $CFLAGS"
3942 fi
3943 rm -f conftest*
3944
3945 ;;
3946 kame)
3947 cat >conftest.$ac_ext <<_ACEOF
3948 #line $LINENO "configure"
3949 /* confdefs.h. */
3950 _ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h. */
3954 #include <netinet/in.h>
3955 #ifdef __KAME__
3956 yes
3957 #endif
3958 _ACEOF
3959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3960 $EGREP "yes" >/dev/null 2>&1; then
3961 ipv6type=$i;
3962 ipv6lib=inet6;
3963 ipv6libdir=/usr/local/v6/lib;
3964 ipv6trylibc=yes;
3965 CFLAGS="-DINET6 $CFLAGS"
3966 fi
3967 rm -f conftest*
3968
3969 ;;
3970 linux-glibc)
3971 cat >conftest.$ac_ext <<_ACEOF
3972 #line $LINENO "configure"
3973 /* confdefs.h. */
3974 _ACEOF
3975 cat confdefs.h >>conftest.$ac_ext
3976 cat >>conftest.$ac_ext <<_ACEOF
3977 /* end confdefs.h. */
3978 #include <features.h>
3979 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
3980 yes
3981 #endif
3982 _ACEOF
3983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3984 $EGREP "yes" >/dev/null 2>&1; then
3985 ipv6type=$i;
3986 CFLAGS="-DINET6 $CFLAGS"
3987 fi
3988 rm -f conftest*
3989
3990 ;;
3991 linux-libinet6)
3992 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
3993 ipv6type=$i
3994 ipv6lib=inet6
3995 ipv6libdir=/usr/inet6/lib
3996 ipv6trylibc=yes;
3997 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
3998 fi
3999 ;;
4000 toshiba)
4001 cat >conftest.$ac_ext <<_ACEOF
4002 #line $LINENO "configure"
4003 /* confdefs.h. */
4004 _ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h. */
4008 #include <sys/param.h>
4009 #ifdef _TOSHIBA_INET6
4010 yes
4011 #endif
4012 _ACEOF
4013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4014 $EGREP "yes" >/dev/null 2>&1; then
4015 ipv6type=$i;
4016 ipv6lib=inet6;
4017 ipv6libdir=/usr/local/v6/lib;
4018 CFLAGS="-DINET6 $CFLAGS"
4019 fi
4020 rm -f conftest*
4021
4022 ;;
4023 v6d)
4024 cat >conftest.$ac_ext <<_ACEOF
4025 #line $LINENO "configure"
4026 /* confdefs.h. */
4027 _ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h. */
4031 #include </usr/local/v6/include/sys/v6config.h>
4032 #ifdef __V6D__
4033 yes
4034 #endif
4035 _ACEOF
4036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4037 $EGREP "yes" >/dev/null 2>&1; then
4038 ipv6type=$i;
4039 ipv6lib=v6;
4040 ipv6libdir=/usr/local/v6/lib;
4041 CFLAGS="-I/usr/local/v6/include $CFLAGS"
4042 fi
4043 rm -f conftest*
4044
4045 ;;
4046 zeta)
4047 cat >conftest.$ac_ext <<_ACEOF
4048 #line $LINENO "configure"
4049 /* confdefs.h. */
4050 _ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4054 #include <sys/param.h>
4055 #ifdef _ZETA_MINAMI_INET6
4056 yes
4057 #endif
4058 _ACEOF
4059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4060 $EGREP "yes" >/dev/null 2>&1; then
4061 ipv6type=$i;
4062 ipv6lib=inet6;
4063 ipv6libdir=/usr/local/v6/lib;
4064 CFLAGS="-DINET6 $CFLAGS"
4065 fi
4066 rm -f conftest*
4067
4068 ;;
4069 esac
4070 if test "$ipv6type" != "unknown"; then
4071 break
4072 fi
4073 done
4074 echo "$as_me:$LINENO: result: $ipv6type" >&5
4075 echo "${ECHO_T}$ipv6type" >&6
4076 fi
4077
4078 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4079 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
4080 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
4081 echo "You have $ipv6lib library, using it"
4082 else
4083 if test "$ipv6trylibc" = "yes"; then
4084 echo "You do not have $ipv6lib library, using libc"
4085 else
4086 echo 'Fatal: no $ipv6lib library found. cannot continue.'
4087 echo "You need to fetch lib$ipv6lib.a from appropriate"
4088 echo 'ipv6 kit and compile beforehand.'
4089 exit 1
4090 fi
4091 fi
4092 fi
4093
4094
4095 if test "$ipv6" = "yes"; then
4096 #
4097 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4098 # function in libc; there are "ngetaddrinfo()" and
4099 # "ogetaddrinfo()" functions, and <netdb.h> #defines
4100 # "getaddrinfo" to be either "ngetaddrinfo" or
4101 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4102 # or _XOPEN_SOURCE_EXTENDED are defined or not.
4103 #
4104 # So this test doesn't work on Tru64 5.1, and possibly
4105 # on other 5.x releases. This causes the configure
4106 # script to become confused, and results in libpcap
4107 # being unbuildable.
4108 #
4109 echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
4110 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
4111 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114 ac_func_search_save_LIBS=$LIBS
4115 ac_cv_search_getaddrinfo=no
4116 cat >conftest.$ac_ext <<_ACEOF
4117 #line $LINENO "configure"
4118 /* confdefs.h. */
4119 _ACEOF
4120 cat confdefs.h >>conftest.$ac_ext
4121 cat >>conftest.$ac_ext <<_ACEOF
4122 /* end confdefs.h. */
4123
4124 /* Override any gcc2 internal prototype to avoid an error. */
4125 #ifdef __cplusplus
4126 extern "C"
4127 #endif
4128 /* We use char because int might match the return type of a gcc2
4129 builtin and then its argument prototype would still apply. */
4130 char getaddrinfo ();
4131 int
4132 main ()
4133 {
4134 getaddrinfo ();
4135 ;
4136 return 0;
4137 }
4138 _ACEOF
4139 rm -f conftest.$ac_objext conftest$ac_exeext
4140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4141 (eval $ac_link) 2>&5
4142 ac_status=$?
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); } &&
4145 { ac_try='test -s conftest$ac_exeext'
4146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4147 (eval $ac_try) 2>&5
4148 ac_status=$?
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; }; then
4151 ac_cv_search_getaddrinfo="none required"
4152 else
4153 echo "$as_me: failed program was:" >&5
4154 sed 's/^/| /' conftest.$ac_ext >&5
4155
4156 fi
4157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4158 if test "$ac_cv_search_getaddrinfo" = no; then
4159 for ac_lib in socket; do
4160 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4161 cat >conftest.$ac_ext <<_ACEOF
4162 #line $LINENO "configure"
4163 /* confdefs.h. */
4164 _ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4168
4169 /* Override any gcc2 internal prototype to avoid an error. */
4170 #ifdef __cplusplus
4171 extern "C"
4172 #endif
4173 /* We use char because int might match the return type of a gcc2
4174 builtin and then its argument prototype would still apply. */
4175 char getaddrinfo ();
4176 int
4177 main ()
4178 {
4179 getaddrinfo ();
4180 ;
4181 return 0;
4182 }
4183 _ACEOF
4184 rm -f conftest.$ac_objext conftest$ac_exeext
4185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4186 (eval $ac_link) 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); } &&
4190 { ac_try='test -s conftest$ac_exeext'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192 (eval $ac_try) 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; }; then
4196 ac_cv_search_getaddrinfo="-l$ac_lib"
4197 break
4198 else
4199 echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4201
4202 fi
4203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4204 done
4205 fi
4206 LIBS=$ac_func_search_save_LIBS
4207 fi
4208 echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
4209 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
4210 if test "$ac_cv_search_getaddrinfo" != no; then
4211 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS"
4212 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
4213 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
4214 if test "${td_cv_buggygetaddrinfo+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 else
4217 if test "$cross_compiling" = yes; then
4218 td_cv_buggygetaddrinfo=yes
4219 else
4220 cat >conftest.$ac_ext <<_ACEOF
4221 #line $LINENO "configure"
4222 /* confdefs.h. */
4223 _ACEOF
4224 cat confdefs.h >>conftest.$ac_ext
4225 cat >>conftest.$ac_ext <<_ACEOF
4226 /* end confdefs.h. */
4227
4228 #include <sys/types.h>
4229 #include <netdb.h>
4230 #include <string.h>
4231 #include <sys/socket.h>
4232 #include <netinet/in.h>
4233
4234 main()
4235 {
4236 int passive, gaierr, inet4 = 0, inet6 = 0;
4237 struct addrinfo hints, *ai, *aitop;
4238 char straddr[INET6_ADDRSTRLEN], strport[16];
4239
4240 for (passive = 0; passive <= 1; passive++) {
4241 memset(&hints, 0, sizeof(hints));
4242 hints.ai_family = AF_UNSPEC;
4243 hints.ai_flags = passive ? AI_PASSIVE : 0;
4244 hints.ai_socktype = SOCK_STREAM;
4245 hints.ai_protocol = IPPROTO_TCP;
4246 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
4247 (void)gai_strerror(gaierr);
4248 goto bad;
4249 }
4250 for (ai = aitop; ai; ai = ai->ai_next) {
4251 if (ai->ai_addr == NULL ||
4252 ai->ai_addrlen == 0 ||
4253 getnameinfo(ai->ai_addr, ai->ai_addrlen,
4254 straddr, sizeof(straddr), strport, sizeof(strport),
4255 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
4256 goto bad;
4257 }
4258 switch (ai->ai_family) {
4259 case AF_INET:
4260 if (strcmp(strport, "54321") != 0) {
4261 goto bad;
4262 }
4263 if (passive) {
4264 if (strcmp(straddr, "0.0.0.0") != 0) {
4265 goto bad;
4266 }
4267 } else {
4268 if (strcmp(straddr, "127.0.0.1") != 0) {
4269 goto bad;
4270 }
4271 }
4272 inet4++;
4273 break;
4274 case AF_INET6:
4275 if (strcmp(strport, "54321") != 0) {
4276 goto bad;
4277 }
4278 if (passive) {
4279 if (strcmp(straddr, "::") != 0) {
4280 goto bad;
4281 }
4282 } else {
4283 if (strcmp(straddr, "::1") != 0) {
4284 goto bad;
4285 }
4286 }
4287 inet6++;
4288 break;
4289 case AF_UNSPEC:
4290 goto bad;
4291 break;
4292 #ifdef AF_UNIX
4293 case AF_UNIX:
4294 #else
4295 #ifdef AF_LOCAL
4296 case AF_LOCAL:
4297 #endif
4298 #endif
4299 default:
4300 /* another family support? */
4301 break;
4302 }
4303 }
4304 }
4305
4306 /* supported family should be 2, unsupported family should be 0 */
4307 if (!(inet4 == 0 || inet4 == 2))
4308 goto bad;
4309 if (!(inet6 == 0 || inet6 == 2))
4310 goto bad;
4311
4312 if (aitop)
4313 freeaddrinfo(aitop);
4314 exit(0);
4315
4316 bad:
4317 if (aitop)
4318 freeaddrinfo(aitop);
4319 exit(1);
4320 }
4321
4322 _ACEOF
4323 rm -f conftest$ac_exeext
4324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4325 (eval $ac_link) 2>&5
4326 ac_status=$?
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4330 (eval $ac_try) 2>&5
4331 ac_status=$?
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; }; then
4334 td_cv_buggygetaddrinfo=no
4335 else
4336 echo "$as_me: program exited with status $ac_status" >&5
4337 echo "$as_me: failed program was:" >&5
4338 sed 's/^/| /' conftest.$ac_ext >&5
4339
4340 ( exit $ac_status )
4341 td_cv_buggygetaddrinfo=yes
4342 fi
4343 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4344 fi
4345 fi
4346
4347 if test "$td_cv_buggygetaddrinfo" = no; then
4348 echo "$as_me:$LINENO: result: good" >&5
4349 echo "${ECHO_T}good" >&6
4350 else
4351 echo "$as_me:$LINENO: result: buggy" >&5
4352 echo "${ECHO_T}buggy" >&6
4353 fi
4354
4355 if test "$td_cv_buggygetaddrinfo" = "yes"; then
4356 #
4357 # XXX - it doesn't appear that "ipv6type" can ever be
4358 # set to "linux". Should this be testing for
4359 # "linux-glibc", or for that *or* "linux-libinet6"?
4360 # If the latter, note that "linux-libinet6" is also
4361 # the type given to some non-Linux OSes.
4362 #
4363 if test "$ipv6type" != "linux"; then
4364 echo 'Fatal: You must get working getaddrinfo() function.'
4365 echo ' or you can specify "--disable-ipv6"'.
4366 exit 1
4367 else
4368 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
4369 echo ' Better upgrade your system library to newest version'
4370 echo ' of GNU C library (aka glibc).'
4371 fi
4372 fi
4373
4374 fi
4375
4376
4377
4378 for ac_func in getaddrinfo getnameinfo
4379 do
4380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4381 echo "$as_me:$LINENO: checking for $ac_func" >&5
4382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4383 if eval "test \"\${$as_ac_var+set}\" = set"; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 else
4386 cat >conftest.$ac_ext <<_ACEOF
4387 #line $LINENO "configure"
4388 /* confdefs.h. */
4389 _ACEOF
4390 cat confdefs.h >>conftest.$ac_ext
4391 cat >>conftest.$ac_ext <<_ACEOF
4392 /* end confdefs.h. */
4393 /* System header to define __stub macros and hopefully few prototypes,
4394 which can conflict with char $ac_func (); below.
4395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4396 <limits.h> exists even on freestanding compilers. */
4397 #ifdef __STDC__
4398 # include <limits.h>
4399 #else
4400 # include <assert.h>
4401 #endif
4402 /* Override any gcc2 internal prototype to avoid an error. */
4403 #ifdef __cplusplus
4404 extern "C"
4405 {
4406 #endif
4407 /* We use char because int might match the return type of a gcc2
4408 builtin and then its argument prototype would still apply. */
4409 char $ac_func ();
4410 /* The GNU C library defines this for functions which it implements
4411 to always fail with ENOSYS. Some functions are actually named
4412 something starting with __ and the normal name is an alias. */
4413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4414 choke me
4415 #else
4416 char (*f) () = $ac_func;
4417 #endif
4418 #ifdef __cplusplus
4419 }
4420 #endif
4421
4422 int
4423 main ()
4424 {
4425 return f != $ac_func;
4426 ;
4427 return 0;
4428 }
4429 _ACEOF
4430 rm -f conftest.$ac_objext conftest$ac_exeext
4431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4432 (eval $ac_link) 2>&5
4433 ac_status=$?
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } &&
4436 { ac_try='test -s conftest$ac_exeext'
4437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438 (eval $ac_try) 2>&5
4439 ac_status=$?
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; }; then
4442 eval "$as_ac_var=yes"
4443 else
4444 echo "$as_me: failed program was:" >&5
4445 sed 's/^/| /' conftest.$ac_ext >&5
4446
4447 eval "$as_ac_var=no"
4448 fi
4449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4450 fi
4451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4452 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4453 if test `eval echo '${'$as_ac_var'}'` = yes; then
4454 cat >>confdefs.h <<_ACEOF
4455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4456 _ACEOF
4457
4458 else
4459 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4460 fi
4461 done
4462
4463
4464 fi
4465
4466 echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
4467 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6
4468 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 else
4471 cat >conftest.$ac_ext <<_ACEOF
4472 #line $LINENO "configure"
4473 /* confdefs.h. */
4474 _ACEOF
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h. */
4478 #include <netdnet/dnetdb.h>
4479
4480 _ACEOF
4481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4482 $EGREP "dnet_htoa" >/dev/null 2>&1; then
4483 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
4484 else
4485 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
4486 fi
4487 rm -f conftest*
4488
4489 fi
4490 echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
4491 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6
4492 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
4493 cat >>confdefs.h <<\_ACEOF
4494 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
4495 _ACEOF
4496
4497 fi
4498
4499 echo "$as_me:$LINENO: checking for char" >&5
4500 echo $ECHO_N "checking for char... $ECHO_C" >&6
4501 if test "${ac_cv_type_char+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504 cat >conftest.$ac_ext <<_ACEOF
4505 #line $LINENO "configure"
4506 /* confdefs.h. */
4507 _ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h. */
4511 $ac_includes_default
4512 int
4513 main ()
4514 {
4515 if ((char *) 0)
4516 return 0;
4517 if (sizeof (char))
4518 return 0;
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_cv_type_char=yes
4536 else
4537 echo "$as_me: failed program was:" >&5
4538 sed 's/^/| /' conftest.$ac_ext >&5
4539
4540 ac_cv_type_char=no
4541 fi
4542 rm -f conftest.$ac_objext conftest.$ac_ext
4543 fi
4544 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4545 echo "${ECHO_T}$ac_cv_type_char" >&6
4546
4547 echo "$as_me:$LINENO: checking size of char" >&5
4548 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4549 if test "${ac_cv_sizeof_char+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4551 else
4552 if test "$ac_cv_type_char" = yes; then
4553 # The cast to unsigned long works around a bug in the HP C Compiler
4554 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4555 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4556 # This bug is HP SR number 8606223364.
4557 if test "$cross_compiling" = yes; then
4558 # Depending upon the size, compute the lo and hi bounds.
4559 cat >conftest.$ac_ext <<_ACEOF
4560 #line $LINENO "configure"
4561 /* confdefs.h. */
4562 _ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h. */
4566 $ac_includes_default
4567 int
4568 main ()
4569 {
4570 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4571 test_array [0] = 0
4572
4573 ;
4574 return 0;
4575 }
4576 _ACEOF
4577 rm -f conftest.$ac_objext
4578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4579 (eval $ac_compile) 2>&5
4580 ac_status=$?
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } &&
4583 { ac_try='test -s conftest.$ac_objext'
4584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585 (eval $ac_try) 2>&5
4586 ac_status=$?
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); }; }; then
4589 ac_lo=0 ac_mid=0
4590 while :; do
4591 cat >conftest.$ac_ext <<_ACEOF
4592 #line $LINENO "configure"
4593 /* confdefs.h. */
4594 _ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h. */
4598 $ac_includes_default
4599 int
4600 main ()
4601 {
4602 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4603 test_array [0] = 0
4604
4605 ;
4606 return 0;
4607 }
4608 _ACEOF
4609 rm -f conftest.$ac_objext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611 (eval $ac_compile) 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } &&
4615 { ac_try='test -s conftest.$ac_objext'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4621 ac_hi=$ac_mid; break
4622 else
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4625
4626 ac_lo=`expr $ac_mid + 1`
4627 if test $ac_lo -le $ac_mid; then
4628 ac_lo= ac_hi=
4629 break
4630 fi
4631 ac_mid=`expr 2 '*' $ac_mid + 1`
4632 fi
4633 rm -f conftest.$ac_objext conftest.$ac_ext
4634 done
4635 else
4636 echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.$ac_ext >&5
4638
4639 cat >conftest.$ac_ext <<_ACEOF
4640 #line $LINENO "configure"
4641 /* confdefs.h. */
4642 _ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4646 $ac_includes_default
4647 int
4648 main ()
4649 {
4650 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4651 test_array [0] = 0
4652
4653 ;
4654 return 0;
4655 }
4656 _ACEOF
4657 rm -f conftest.$ac_objext
4658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4659 (eval $ac_compile) 2>&5
4660 ac_status=$?
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); } &&
4663 { ac_try='test -s conftest.$ac_objext'
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 (eval $ac_try) 2>&5
4666 ac_status=$?
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; }; then
4669 ac_hi=-1 ac_mid=-1
4670 while :; do
4671 cat >conftest.$ac_ext <<_ACEOF
4672 #line $LINENO "configure"
4673 /* confdefs.h. */
4674 _ACEOF
4675 cat confdefs.h >>conftest.$ac_ext
4676 cat >>conftest.$ac_ext <<_ACEOF
4677 /* end confdefs.h. */
4678 $ac_includes_default
4679 int
4680 main ()
4681 {
4682 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4683 test_array [0] = 0
4684
4685 ;
4686 return 0;
4687 }
4688 _ACEOF
4689 rm -f conftest.$ac_objext
4690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4691 (eval $ac_compile) 2>&5
4692 ac_status=$?
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); } &&
4695 { ac_try='test -s conftest.$ac_objext'
4696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697 (eval $ac_try) 2>&5
4698 ac_status=$?
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); }; }; then
4701 ac_lo=$ac_mid; break
4702 else
4703 echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4705
4706 ac_hi=`expr '(' $ac_mid ')' - 1`
4707 if test $ac_mid -le $ac_hi; then
4708 ac_lo= ac_hi=
4709 break
4710 fi
4711 ac_mid=`expr 2 '*' $ac_mid`
4712 fi
4713 rm -f conftest.$ac_objext conftest.$ac_ext
4714 done
4715 else
4716 echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4718
4719 ac_lo= ac_hi=
4720 fi
4721 rm -f conftest.$ac_objext conftest.$ac_ext
4722 fi
4723 rm -f conftest.$ac_objext conftest.$ac_ext
4724 # Binary search between lo and hi bounds.
4725 while test "x$ac_lo" != "x$ac_hi"; do
4726 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4727 cat >conftest.$ac_ext <<_ACEOF
4728 #line $LINENO "configure"
4729 /* confdefs.h. */
4730 _ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h. */
4734 $ac_includes_default
4735 int
4736 main ()
4737 {
4738 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4739 test_array [0] = 0
4740
4741 ;
4742 return 0;
4743 }
4744 _ACEOF
4745 rm -f conftest.$ac_objext
4746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4747 (eval $ac_compile) 2>&5
4748 ac_status=$?
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); } &&
4751 { ac_try='test -s conftest.$ac_objext'
4752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4753 (eval $ac_try) 2>&5
4754 ac_status=$?
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }; }; then
4757 ac_hi=$ac_mid
4758 else
4759 echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.$ac_ext >&5
4761
4762 ac_lo=`expr '(' $ac_mid ')' + 1`
4763 fi
4764 rm -f conftest.$ac_objext conftest.$ac_ext
4765 done
4766 case $ac_lo in
4767 ?*) ac_cv_sizeof_char=$ac_lo;;
4768 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4769 See \`config.log' for more details." >&5
4770 echo "$as_me: error: cannot compute sizeof (char), 77
4771 See \`config.log' for more details." >&2;}
4772 { (exit 1); exit 1; }; } ;;
4773 esac
4774 else
4775 if test "$cross_compiling" = yes; then
4776 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4777 See \`config.log' for more details." >&5
4778 echo "$as_me: error: cannot run test program while cross compiling
4779 See \`config.log' for more details." >&2;}
4780 { (exit 1); exit 1; }; }
4781 else
4782 cat >conftest.$ac_ext <<_ACEOF
4783 #line $LINENO "configure"
4784 /* confdefs.h. */
4785 _ACEOF
4786 cat confdefs.h >>conftest.$ac_ext
4787 cat >>conftest.$ac_ext <<_ACEOF
4788 /* end confdefs.h. */
4789 $ac_includes_default
4790 long longval () { return (long) (sizeof (char)); }
4791 unsigned long ulongval () { return (long) (sizeof (char)); }
4792 #include <stdio.h>
4793 #include <stdlib.h>
4794 int
4795 main ()
4796 {
4797
4798 FILE *f = fopen ("conftest.val", "w");
4799 if (! f)
4800 exit (1);
4801 if (((long) (sizeof (char))) < 0)
4802 {
4803 long i = longval ();
4804 if (i != ((long) (sizeof (char))))
4805 exit (1);
4806 fprintf (f, "%ld\n", i);
4807 }
4808 else
4809 {
4810 unsigned long i = ulongval ();
4811 if (i != ((long) (sizeof (char))))
4812 exit (1);
4813 fprintf (f, "%lu\n", i);
4814 }
4815 exit (ferror (f) || fclose (f) != 0);
4816
4817 ;
4818 return 0;
4819 }
4820 _ACEOF
4821 rm -f conftest$ac_exeext
4822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4823 (eval $ac_link) 2>&5
4824 ac_status=$?
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 (eval $ac_try) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; }; then
4832 ac_cv_sizeof_char=`cat conftest.val`
4833 else
4834 echo "$as_me: program exited with status $ac_status" >&5
4835 echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4837
4838 ( exit $ac_status )
4839 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4840 See \`config.log' for more details." >&5
4841 echo "$as_me: error: cannot compute sizeof (char), 77
4842 See \`config.log' for more details." >&2;}
4843 { (exit 1); exit 1; }; }
4844 fi
4845 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4846 fi
4847 fi
4848 rm -f conftest.val
4849 else
4850 ac_cv_sizeof_char=0
4851 fi
4852 fi
4853 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4854 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4855 cat >>confdefs.h <<_ACEOF
4856 #define SIZEOF_CHAR $ac_cv_sizeof_char
4857 _ACEOF
4858
4859
4860 echo "$as_me:$LINENO: checking for short" >&5
4861 echo $ECHO_N "checking for short... $ECHO_C" >&6
4862 if test "${ac_cv_type_short+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865 cat >conftest.$ac_ext <<_ACEOF
4866 #line $LINENO "configure"
4867 /* confdefs.h. */
4868 _ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4872 $ac_includes_default
4873 int
4874 main ()
4875 {
4876 if ((short *) 0)
4877 return 0;
4878 if (sizeof (short))
4879 return 0;
4880 ;
4881 return 0;
4882 }
4883 _ACEOF
4884 rm -f conftest.$ac_objext
4885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4886 (eval $ac_compile) 2>&5
4887 ac_status=$?
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try='test -s conftest.$ac_objext'
4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 (eval $ac_try) 2>&5
4893 ac_status=$?
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; }; then
4896 ac_cv_type_short=yes
4897 else
4898 echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4900
4901 ac_cv_type_short=no
4902 fi
4903 rm -f conftest.$ac_objext conftest.$ac_ext
4904 fi
4905 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4906 echo "${ECHO_T}$ac_cv_type_short" >&6
4907
4908 echo "$as_me:$LINENO: checking size of short" >&5
4909 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4910 if test "${ac_cv_sizeof_short+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 else
4913 if test "$ac_cv_type_short" = yes; then
4914 # The cast to unsigned long works around a bug in the HP C Compiler
4915 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4916 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4917 # This bug is HP SR number 8606223364.
4918 if test "$cross_compiling" = yes; then
4919 # Depending upon the size, compute the lo and hi bounds.
4920 cat >conftest.$ac_ext <<_ACEOF
4921 #line $LINENO "configure"
4922 /* confdefs.h. */
4923 _ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4927 $ac_includes_default
4928 int
4929 main ()
4930 {
4931 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4932 test_array [0] = 0
4933
4934 ;
4935 return 0;
4936 }
4937 _ACEOF
4938 rm -f conftest.$ac_objext
4939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4940 (eval $ac_compile) 2>&5
4941 ac_status=$?
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } &&
4944 { ac_try='test -s conftest.$ac_objext'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 (eval $ac_try) 2>&5
4947 ac_status=$?
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; }; then
4950 ac_lo=0 ac_mid=0
4951 while :; do
4952 cat >conftest.$ac_ext <<_ACEOF
4953 #line $LINENO "configure"
4954 /* confdefs.h. */
4955 _ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h. */
4959 $ac_includes_default
4960 int
4961 main ()
4962 {
4963 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4964 test_array [0] = 0
4965
4966 ;
4967 return 0;
4968 }
4969 _ACEOF
4970 rm -f conftest.$ac_objext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4972 (eval $ac_compile) 2>&5
4973 ac_status=$?
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } &&
4976 { ac_try='test -s conftest.$ac_objext'
4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 (eval $ac_try) 2>&5
4979 ac_status=$?
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; }; then
4982 ac_hi=$ac_mid; break
4983 else
4984 echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.$ac_ext >&5
4986
4987 ac_lo=`expr $ac_mid + 1`
4988 if test $ac_lo -le $ac_mid; then
4989 ac_lo= ac_hi=
4990 break
4991 fi
4992 ac_mid=`expr 2 '*' $ac_mid + 1`
4993 fi
4994 rm -f conftest.$ac_objext conftest.$ac_ext
4995 done
4996 else
4997 echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
4999
5000 cat >conftest.$ac_ext <<_ACEOF
5001 #line $LINENO "configure"
5002 /* confdefs.h. */
5003 _ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h. */
5007 $ac_includes_default
5008 int
5009 main ()
5010 {
5011 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5012 test_array [0] = 0
5013
5014 ;
5015 return 0;
5016 }
5017 _ACEOF
5018 rm -f conftest.$ac_objext
5019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5020 (eval $ac_compile) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); } &&
5024 { ac_try='test -s conftest.$ac_objext'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 (eval $ac_try) 2>&5
5027 ac_status=$?
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5030 ac_hi=-1 ac_mid=-1
5031 while :; do
5032 cat >conftest.$ac_ext <<_ACEOF
5033 #line $LINENO "configure"
5034 /* confdefs.h. */
5035 _ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h. */
5039 $ac_includes_default
5040 int
5041 main ()
5042 {
5043 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5044 test_array [0] = 0
5045
5046 ;
5047 return 0;
5048 }
5049 _ACEOF
5050 rm -f conftest.$ac_objext
5051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5052 (eval $ac_compile) 2>&5
5053 ac_status=$?
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } &&
5056 { ac_try='test -s conftest.$ac_objext'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058 (eval $ac_try) 2>&5
5059 ac_status=$?
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; }; then
5062 ac_lo=$ac_mid; break
5063 else
5064 echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5066
5067 ac_hi=`expr '(' $ac_mid ')' - 1`
5068 if test $ac_mid -le $ac_hi; then
5069 ac_lo= ac_hi=
5070 break
5071 fi
5072 ac_mid=`expr 2 '*' $ac_mid`
5073 fi
5074 rm -f conftest.$ac_objext conftest.$ac_ext
5075 done
5076 else
5077 echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5079
5080 ac_lo= ac_hi=
5081 fi
5082 rm -f conftest.$ac_objext conftest.$ac_ext
5083 fi
5084 rm -f conftest.$ac_objext conftest.$ac_ext
5085 # Binary search between lo and hi bounds.
5086 while test "x$ac_lo" != "x$ac_hi"; do
5087 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5088 cat >conftest.$ac_ext <<_ACEOF
5089 #line $LINENO "configure"
5090 /* confdefs.h. */
5091 _ACEOF
5092 cat confdefs.h >>conftest.$ac_ext
5093 cat >>conftest.$ac_ext <<_ACEOF
5094 /* end confdefs.h. */
5095 $ac_includes_default
5096 int
5097 main ()
5098 {
5099 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5100 test_array [0] = 0
5101
5102 ;
5103 return 0;
5104 }
5105 _ACEOF
5106 rm -f conftest.$ac_objext
5107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5108 (eval $ac_compile) 2>&5
5109 ac_status=$?
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); } &&
5112 { ac_try='test -s conftest.$ac_objext'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114 (eval $ac_try) 2>&5
5115 ac_status=$?
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; }; then
5118 ac_hi=$ac_mid
5119 else
5120 echo "$as_me: failed program was:" >&5
5121 sed 's/^/| /' conftest.$ac_ext >&5
5122
5123 ac_lo=`expr '(' $ac_mid ')' + 1`
5124 fi
5125 rm -f conftest.$ac_objext conftest.$ac_ext
5126 done
5127 case $ac_lo in
5128 ?*) ac_cv_sizeof_short=$ac_lo;;
5129 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5130 See \`config.log' for more details." >&5
5131 echo "$as_me: error: cannot compute sizeof (short), 77
5132 See \`config.log' for more details." >&2;}
5133 { (exit 1); exit 1; }; } ;;
5134 esac
5135 else
5136 if test "$cross_compiling" = yes; then
5137 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5138 See \`config.log' for more details." >&5
5139 echo "$as_me: error: cannot run test program while cross compiling
5140 See \`config.log' for more details." >&2;}
5141 { (exit 1); exit 1; }; }
5142 else
5143 cat >conftest.$ac_ext <<_ACEOF
5144 #line $LINENO "configure"
5145 /* confdefs.h. */
5146 _ACEOF
5147 cat confdefs.h >>conftest.$ac_ext
5148 cat >>conftest.$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5150 $ac_includes_default
5151 long longval () { return (long) (sizeof (short)); }
5152 unsigned long ulongval () { return (long) (sizeof (short)); }
5153 #include <stdio.h>
5154 #include <stdlib.h>
5155 int
5156 main ()
5157 {
5158
5159 FILE *f = fopen ("conftest.val", "w");
5160 if (! f)
5161 exit (1);
5162 if (((long) (sizeof (short))) < 0)
5163 {
5164 long i = longval ();
5165 if (i != ((long) (sizeof (short))))
5166 exit (1);
5167 fprintf (f, "%ld\n", i);
5168 }
5169 else
5170 {
5171 unsigned long i = ulongval ();
5172 if (i != ((long) (sizeof (short))))
5173 exit (1);
5174 fprintf (f, "%lu\n", i);
5175 }
5176 exit (ferror (f) || fclose (f) != 0);
5177
5178 ;
5179 return 0;
5180 }
5181 _ACEOF
5182 rm -f conftest$ac_exeext
5183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5184 (eval $ac_link) 2>&5
5185 ac_status=$?
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5189 (eval $ac_try) 2>&5
5190 ac_status=$?
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); }; }; then
5193 ac_cv_sizeof_short=`cat conftest.val`
5194 else
5195 echo "$as_me: program exited with status $ac_status" >&5
5196 echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.$ac_ext >&5
5198
5199 ( exit $ac_status )
5200 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5201 See \`config.log' for more details." >&5
5202 echo "$as_me: error: cannot compute sizeof (short), 77
5203 See \`config.log' for more details." >&2;}
5204 { (exit 1); exit 1; }; }
5205 fi
5206 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5207 fi
5208 fi
5209 rm -f conftest.val
5210 else
5211 ac_cv_sizeof_short=0
5212 fi
5213 fi
5214 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5215 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5216 cat >>confdefs.h <<_ACEOF
5217 #define SIZEOF_SHORT $ac_cv_sizeof_short
5218 _ACEOF
5219
5220
5221 echo "$as_me:$LINENO: checking for int" >&5
5222 echo $ECHO_N "checking for int... $ECHO_C" >&6
5223 if test "${ac_cv_type_int+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 else
5226 cat >conftest.$ac_ext <<_ACEOF
5227 #line $LINENO "configure"
5228 /* confdefs.h. */
5229 _ACEOF
5230 cat confdefs.h >>conftest.$ac_ext
5231 cat >>conftest.$ac_ext <<_ACEOF
5232 /* end confdefs.h. */
5233 $ac_includes_default
5234 int
5235 main ()
5236 {
5237 if ((int *) 0)
5238 return 0;
5239 if (sizeof (int))
5240 return 0;
5241 ;
5242 return 0;
5243 }
5244 _ACEOF
5245 rm -f conftest.$ac_objext
5246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5247 (eval $ac_compile) 2>&5
5248 ac_status=$?
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } &&
5251 { ac_try='test -s conftest.$ac_objext'
5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253 (eval $ac_try) 2>&5
5254 ac_status=$?
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5257 ac_cv_type_int=yes
5258 else
5259 echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5261
5262 ac_cv_type_int=no
5263 fi
5264 rm -f conftest.$ac_objext conftest.$ac_ext
5265 fi
5266 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5267 echo "${ECHO_T}$ac_cv_type_int" >&6
5268
5269 echo "$as_me:$LINENO: checking size of int" >&5
5270 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5271 if test "${ac_cv_sizeof_int+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 else
5274 if test "$ac_cv_type_int" = yes; then
5275 # The cast to unsigned long works around a bug in the HP C Compiler
5276 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5277 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5278 # This bug is HP SR number 8606223364.
5279 if test "$cross_compiling" = yes; then
5280 # Depending upon the size, compute the lo and hi bounds.
5281 cat >conftest.$ac_ext <<_ACEOF
5282 #line $LINENO "configure"
5283 /* confdefs.h. */
5284 _ACEOF
5285 cat confdefs.h >>conftest.$ac_ext
5286 cat >>conftest.$ac_ext <<_ACEOF
5287 /* end confdefs.h. */
5288 $ac_includes_default
5289 int
5290 main ()
5291 {
5292 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5293 test_array [0] = 0
5294
5295 ;
5296 return 0;
5297 }
5298 _ACEOF
5299 rm -f conftest.$ac_objext
5300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5301 (eval $ac_compile) 2>&5
5302 ac_status=$?
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } &&
5305 { ac_try='test -s conftest.$ac_objext'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307 (eval $ac_try) 2>&5
5308 ac_status=$?
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; }; then
5311 ac_lo=0 ac_mid=0
5312 while :; do
5313 cat >conftest.$ac_ext <<_ACEOF
5314 #line $LINENO "configure"
5315 /* confdefs.h. */
5316 _ACEOF
5317 cat confdefs.h >>conftest.$ac_ext
5318 cat >>conftest.$ac_ext <<_ACEOF
5319 /* end confdefs.h. */
5320 $ac_includes_default
5321 int
5322 main ()
5323 {
5324 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5325 test_array [0] = 0
5326
5327 ;
5328 return 0;
5329 }
5330 _ACEOF
5331 rm -f conftest.$ac_objext
5332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5333 (eval $ac_compile) 2>&5
5334 ac_status=$?
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } &&
5337 { ac_try='test -s conftest.$ac_objext'
5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339 (eval $ac_try) 2>&5
5340 ac_status=$?
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; }; then
5343 ac_hi=$ac_mid; break
5344 else
5345 echo "$as_me: failed program was:" >&5
5346 sed 's/^/| /' conftest.$ac_ext >&5
5347
5348 ac_lo=`expr $ac_mid + 1`
5349 if test $ac_lo -le $ac_mid; then
5350 ac_lo= ac_hi=
5351 break
5352 fi
5353 ac_mid=`expr 2 '*' $ac_mid + 1`
5354 fi
5355 rm -f conftest.$ac_objext conftest.$ac_ext
5356 done
5357 else
5358 echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5360
5361 cat >conftest.$ac_ext <<_ACEOF
5362 #line $LINENO "configure"
5363 /* confdefs.h. */
5364 _ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5368 $ac_includes_default
5369 int
5370 main ()
5371 {
5372 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5373 test_array [0] = 0
5374
5375 ;
5376 return 0;
5377 }
5378 _ACEOF
5379 rm -f conftest.$ac_objext
5380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5381 (eval $ac_compile) 2>&5
5382 ac_status=$?
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } &&
5385 { ac_try='test -s conftest.$ac_objext'
5386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387 (eval $ac_try) 2>&5
5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; }; then
5391 ac_hi=-1 ac_mid=-1
5392 while :; do
5393 cat >conftest.$ac_ext <<_ACEOF
5394 #line $LINENO "configure"
5395 /* confdefs.h. */
5396 _ACEOF
5397 cat confdefs.h >>conftest.$ac_ext
5398 cat >>conftest.$ac_ext <<_ACEOF
5399 /* end confdefs.h. */
5400 $ac_includes_default
5401 int
5402 main ()
5403 {
5404 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5405 test_array [0] = 0
5406
5407 ;
5408 return 0;
5409 }
5410 _ACEOF
5411 rm -f conftest.$ac_objext
5412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5413 (eval $ac_compile) 2>&5
5414 ac_status=$?
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } &&
5417 { ac_try='test -s conftest.$ac_objext'
5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419 (eval $ac_try) 2>&5
5420 ac_status=$?
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; }; then
5423 ac_lo=$ac_mid; break
5424 else
5425 echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5427
5428 ac_hi=`expr '(' $ac_mid ')' - 1`
5429 if test $ac_mid -le $ac_hi; then
5430 ac_lo= ac_hi=
5431 break
5432 fi
5433 ac_mid=`expr 2 '*' $ac_mid`
5434 fi
5435 rm -f conftest.$ac_objext conftest.$ac_ext
5436 done
5437 else
5438 echo "$as_me: failed program was:" >&5
5439 sed 's/^/| /' conftest.$ac_ext >&5
5440
5441 ac_lo= ac_hi=
5442 fi
5443 rm -f conftest.$ac_objext conftest.$ac_ext
5444 fi
5445 rm -f conftest.$ac_objext conftest.$ac_ext
5446 # Binary search between lo and hi bounds.
5447 while test "x$ac_lo" != "x$ac_hi"; do
5448 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5449 cat >conftest.$ac_ext <<_ACEOF
5450 #line $LINENO "configure"
5451 /* confdefs.h. */
5452 _ACEOF
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h. */
5456 $ac_includes_default
5457 int
5458 main ()
5459 {
5460 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5461 test_array [0] = 0
5462
5463 ;
5464 return 0;
5465 }
5466 _ACEOF
5467 rm -f conftest.$ac_objext
5468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5469 (eval $ac_compile) 2>&5
5470 ac_status=$?
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } &&
5473 { ac_try='test -s conftest.$ac_objext'
5474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475 (eval $ac_try) 2>&5
5476 ac_status=$?
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); }; }; then
5479 ac_hi=$ac_mid
5480 else
5481 echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5483
5484 ac_lo=`expr '(' $ac_mid ')' + 1`
5485 fi
5486 rm -f conftest.$ac_objext conftest.$ac_ext
5487 done
5488 case $ac_lo in
5489 ?*) ac_cv_sizeof_int=$ac_lo;;
5490 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5491 See \`config.log' for more details." >&5
5492 echo "$as_me: error: cannot compute sizeof (int), 77
5493 See \`config.log' for more details." >&2;}
5494 { (exit 1); exit 1; }; } ;;
5495 esac
5496 else
5497 if test "$cross_compiling" = yes; then
5498 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5499 See \`config.log' for more details." >&5
5500 echo "$as_me: error: cannot run test program while cross compiling
5501 See \`config.log' for more details." >&2;}
5502 { (exit 1); exit 1; }; }
5503 else
5504 cat >conftest.$ac_ext <<_ACEOF
5505 #line $LINENO "configure"
5506 /* confdefs.h. */
5507 _ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h. */
5511 $ac_includes_default
5512 long longval () { return (long) (sizeof (int)); }
5513 unsigned long ulongval () { return (long) (sizeof (int)); }
5514 #include <stdio.h>
5515 #include <stdlib.h>
5516 int
5517 main ()
5518 {
5519
5520 FILE *f = fopen ("conftest.val", "w");
5521 if (! f)
5522 exit (1);
5523 if (((long) (sizeof (int))) < 0)
5524 {
5525 long i = longval ();
5526 if (i != ((long) (sizeof (int))))
5527 exit (1);
5528 fprintf (f, "%ld\n", i);
5529 }
5530 else
5531 {
5532 unsigned long i = ulongval ();
5533 if (i != ((long) (sizeof (int))))
5534 exit (1);
5535 fprintf (f, "%lu\n", i);
5536 }
5537 exit (ferror (f) || fclose (f) != 0);
5538
5539 ;
5540 return 0;
5541 }
5542 _ACEOF
5543 rm -f conftest$ac_exeext
5544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5545 (eval $ac_link) 2>&5
5546 ac_status=$?
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 (eval $ac_try) 2>&5
5551 ac_status=$?
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); }; }; then
5554 ac_cv_sizeof_int=`cat conftest.val`
5555 else
5556 echo "$as_me: program exited with status $ac_status" >&5
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5559
5560 ( exit $ac_status )
5561 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5562 See \`config.log' for more details." >&5
5563 echo "$as_me: error: cannot compute sizeof (int), 77
5564 See \`config.log' for more details." >&2;}
5565 { (exit 1); exit 1; }; }
5566 fi
5567 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5568 fi
5569 fi
5570 rm -f conftest.val
5571 else
5572 ac_cv_sizeof_int=0
5573 fi
5574 fi
5575 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5576 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5577 cat >>confdefs.h <<_ACEOF
5578 #define SIZEOF_INT $ac_cv_sizeof_int
5579 _ACEOF
5580
5581
5582 echo "$as_me:$LINENO: checking for long" >&5
5583 echo $ECHO_N "checking for long... $ECHO_C" >&6
5584 if test "${ac_cv_type_long+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587 cat >conftest.$ac_ext <<_ACEOF
5588 #line $LINENO "configure"
5589 /* confdefs.h. */
5590 _ACEOF
5591 cat confdefs.h >>conftest.$ac_ext
5592 cat >>conftest.$ac_ext <<_ACEOF
5593 /* end confdefs.h. */
5594 $ac_includes_default
5595 int
5596 main ()
5597 {
5598 if ((long *) 0)
5599 return 0;
5600 if (sizeof (long))
5601 return 0;
5602 ;
5603 return 0;
5604 }
5605 _ACEOF
5606 rm -f conftest.$ac_objext
5607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608 (eval $ac_compile) 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } &&
5612 { ac_try='test -s conftest.$ac_objext'
5613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 (eval $ac_try) 2>&5
5615 ac_status=$?
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); }; }; then
5618 ac_cv_type_long=yes
5619 else
5620 echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5622
5623 ac_cv_type_long=no
5624 fi
5625 rm -f conftest.$ac_objext conftest.$ac_ext
5626 fi
5627 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5628 echo "${ECHO_T}$ac_cv_type_long" >&6
5629
5630 echo "$as_me:$LINENO: checking size of long" >&5
5631 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5632 if test "${ac_cv_sizeof_long+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 else
5635 if test "$ac_cv_type_long" = yes; then
5636 # The cast to unsigned long works around a bug in the HP C Compiler
5637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5639 # This bug is HP SR number 8606223364.
5640 if test "$cross_compiling" = yes; then
5641 # Depending upon the size, compute the lo and hi bounds.
5642 cat >conftest.$ac_ext <<_ACEOF
5643 #line $LINENO "configure"
5644 /* confdefs.h. */
5645 _ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h. */
5649 $ac_includes_default
5650 int
5651 main ()
5652 {
5653 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5654 test_array [0] = 0
5655
5656 ;
5657 return 0;
5658 }
5659 _ACEOF
5660 rm -f conftest.$ac_objext
5661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5662 (eval $ac_compile) 2>&5
5663 ac_status=$?
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); } &&
5666 { ac_try='test -s conftest.$ac_objext'
5667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668 (eval $ac_try) 2>&5
5669 ac_status=$?
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }; }; then
5672 ac_lo=0 ac_mid=0
5673 while :; do
5674 cat >conftest.$ac_ext <<_ACEOF
5675 #line $LINENO "configure"
5676 /* confdefs.h. */
5677 _ACEOF
5678 cat confdefs.h >>conftest.$ac_ext
5679 cat >>conftest.$ac_ext <<_ACEOF
5680 /* end confdefs.h. */
5681 $ac_includes_default
5682 int
5683 main ()
5684 {
5685 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5686 test_array [0] = 0
5687
5688 ;
5689 return 0;
5690 }
5691 _ACEOF
5692 rm -f conftest.$ac_objext
5693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5694 (eval $ac_compile) 2>&5
5695 ac_status=$?
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); } &&
5698 { ac_try='test -s conftest.$ac_objext'
5699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700 (eval $ac_try) 2>&5
5701 ac_status=$?
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); }; }; then
5704 ac_hi=$ac_mid; break
5705 else
5706 echo "$as_me: failed program was:" >&5
5707 sed 's/^/| /' conftest.$ac_ext >&5
5708
5709 ac_lo=`expr $ac_mid + 1`
5710 if test $ac_lo -le $ac_mid; then
5711 ac_lo= ac_hi=
5712 break
5713 fi
5714 ac_mid=`expr 2 '*' $ac_mid + 1`
5715 fi
5716 rm -f conftest.$ac_objext conftest.$ac_ext
5717 done
5718 else
5719 echo "$as_me: failed program was:" >&5
5720 sed 's/^/| /' conftest.$ac_ext >&5
5721
5722 cat >conftest.$ac_ext <<_ACEOF
5723 #line $LINENO "configure"
5724 /* confdefs.h. */
5725 _ACEOF
5726 cat confdefs.h >>conftest.$ac_ext
5727 cat >>conftest.$ac_ext <<_ACEOF
5728 /* end confdefs.h. */
5729 $ac_includes_default
5730 int
5731 main ()
5732 {
5733 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5734 test_array [0] = 0
5735
5736 ;
5737 return 0;
5738 }
5739 _ACEOF
5740 rm -f conftest.$ac_objext
5741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5742 (eval $ac_compile) 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); } &&
5746 { ac_try='test -s conftest.$ac_objext'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 (eval $ac_try) 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5752 ac_hi=-1 ac_mid=-1
5753 while :; do
5754 cat >conftest.$ac_ext <<_ACEOF
5755 #line $LINENO "configure"
5756 /* confdefs.h. */
5757 _ACEOF
5758 cat confdefs.h >>conftest.$ac_ext
5759 cat >>conftest.$ac_ext <<_ACEOF
5760 /* end confdefs.h. */
5761 $ac_includes_default
5762 int
5763 main ()
5764 {
5765 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5766 test_array [0] = 0
5767
5768 ;
5769 return 0;
5770 }
5771 _ACEOF
5772 rm -f conftest.$ac_objext
5773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5774 (eval $ac_compile) 2>&5
5775 ac_status=$?
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); } &&
5778 { ac_try='test -s conftest.$ac_objext'
5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780 (eval $ac_try) 2>&5
5781 ac_status=$?
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; }; then
5784 ac_lo=$ac_mid; break
5785 else
5786 echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
5788
5789 ac_hi=`expr '(' $ac_mid ')' - 1`
5790 if test $ac_mid -le $ac_hi; then
5791 ac_lo= ac_hi=
5792 break
5793 fi
5794 ac_mid=`expr 2 '*' $ac_mid`
5795 fi
5796 rm -f conftest.$ac_objext conftest.$ac_ext
5797 done
5798 else
5799 echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5801
5802 ac_lo= ac_hi=
5803 fi
5804 rm -f conftest.$ac_objext conftest.$ac_ext
5805 fi
5806 rm -f conftest.$ac_objext conftest.$ac_ext
5807 # Binary search between lo and hi bounds.
5808 while test "x$ac_lo" != "x$ac_hi"; do
5809 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5810 cat >conftest.$ac_ext <<_ACEOF
5811 #line $LINENO "configure"
5812 /* confdefs.h. */
5813 _ACEOF
5814 cat confdefs.h >>conftest.$ac_ext
5815 cat >>conftest.$ac_ext <<_ACEOF
5816 /* end confdefs.h. */
5817 $ac_includes_default
5818 int
5819 main ()
5820 {
5821 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5822 test_array [0] = 0
5823
5824 ;
5825 return 0;
5826 }
5827 _ACEOF
5828 rm -f conftest.$ac_objext
5829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5830 (eval $ac_compile) 2>&5
5831 ac_status=$?
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } &&
5834 { ac_try='test -s conftest.$ac_objext'
5835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836 (eval $ac_try) 2>&5
5837 ac_status=$?
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; }; then
5840 ac_hi=$ac_mid
5841 else
5842 echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.$ac_ext >&5
5844
5845 ac_lo=`expr '(' $ac_mid ')' + 1`
5846 fi
5847 rm -f conftest.$ac_objext conftest.$ac_ext
5848 done
5849 case $ac_lo in
5850 ?*) ac_cv_sizeof_long=$ac_lo;;
5851 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5852 See \`config.log' for more details." >&5
5853 echo "$as_me: error: cannot compute sizeof (long), 77
5854 See \`config.log' for more details." >&2;}
5855 { (exit 1); exit 1; }; } ;;
5856 esac
5857 else
5858 if test "$cross_compiling" = yes; then
5859 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5860 See \`config.log' for more details." >&5
5861 echo "$as_me: error: cannot run test program while cross compiling
5862 See \`config.log' for more details." >&2;}
5863 { (exit 1); exit 1; }; }
5864 else
5865 cat >conftest.$ac_ext <<_ACEOF
5866 #line $LINENO "configure"
5867 /* confdefs.h. */
5868 _ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h. */
5872 $ac_includes_default
5873 long longval () { return (long) (sizeof (long)); }
5874 unsigned long ulongval () { return (long) (sizeof (long)); }
5875 #include <stdio.h>
5876 #include <stdlib.h>
5877 int
5878 main ()
5879 {
5880
5881 FILE *f = fopen ("conftest.val", "w");
5882 if (! f)
5883 exit (1);
5884 if (((long) (sizeof (long))) < 0)
5885 {
5886 long i = longval ();
5887 if (i != ((long) (sizeof (long))))
5888 exit (1);
5889 fprintf (f, "%ld\n", i);
5890 }
5891 else
5892 {
5893 unsigned long i = ulongval ();
5894 if (i != ((long) (sizeof (long))))
5895 exit (1);
5896 fprintf (f, "%lu\n", i);
5897 }
5898 exit (ferror (f) || fclose (f) != 0);
5899
5900 ;
5901 return 0;
5902 }
5903 _ACEOF
5904 rm -f conftest$ac_exeext
5905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5906 (eval $ac_link) 2>&5
5907 ac_status=$?
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5911 (eval $ac_try) 2>&5
5912 ac_status=$?
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); }; }; then
5915 ac_cv_sizeof_long=`cat conftest.val`
5916 else
5917 echo "$as_me: program exited with status $ac_status" >&5
5918 echo "$as_me: failed program was:" >&5
5919 sed 's/^/| /' conftest.$ac_ext >&5
5920
5921 ( exit $ac_status )
5922 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5923 See \`config.log' for more details." >&5
5924 echo "$as_me: error: cannot compute sizeof (long), 77
5925 See \`config.log' for more details." >&2;}
5926 { (exit 1); exit 1; }; }
5927 fi
5928 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5929 fi
5930 fi
5931 rm -f conftest.val
5932 else
5933 ac_cv_sizeof_long=0
5934 fi
5935 fi
5936 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5937 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5938 cat >>confdefs.h <<_ACEOF
5939 #define SIZEOF_LONG $ac_cv_sizeof_long
5940 _ACEOF
5941
5942
5943 echo "$as_me:$LINENO: checking for long long" >&5
5944 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5945 if test "${ac_cv_type_long_long+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948 cat >conftest.$ac_ext <<_ACEOF
5949 #line $LINENO "configure"
5950 /* confdefs.h. */
5951 _ACEOF
5952 cat confdefs.h >>conftest.$ac_ext
5953 cat >>conftest.$ac_ext <<_ACEOF
5954 /* end confdefs.h. */
5955 $ac_includes_default
5956 int
5957 main ()
5958 {
5959 if ((long long *) 0)
5960 return 0;
5961 if (sizeof (long long))
5962 return 0;
5963 ;
5964 return 0;
5965 }
5966 _ACEOF
5967 rm -f conftest.$ac_objext
5968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5969 (eval $ac_compile) 2>&5
5970 ac_status=$?
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); } &&
5973 { ac_try='test -s conftest.$ac_objext'
5974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5975 (eval $ac_try) 2>&5
5976 ac_status=$?
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); }; }; then
5979 ac_cv_type_long_long=yes
5980 else
5981 echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5983
5984 ac_cv_type_long_long=no
5985 fi
5986 rm -f conftest.$ac_objext conftest.$ac_ext
5987 fi
5988 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5989 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5990
5991 echo "$as_me:$LINENO: checking size of long long" >&5
5992 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5993 if test "${ac_cv_sizeof_long_long+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5996 if test "$ac_cv_type_long_long" = yes; then
5997 # The cast to unsigned long works around a bug in the HP C Compiler
5998 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5999 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6000 # This bug is HP SR number 8606223364.
6001 if test "$cross_compiling" = yes; then
6002 # Depending upon the size, compute the lo and hi bounds.
6003 cat >conftest.$ac_ext <<_ACEOF
6004 #line $LINENO "configure"
6005 /* confdefs.h. */
6006 _ACEOF
6007 cat confdefs.h >>conftest.$ac_ext
6008 cat >>conftest.$ac_ext <<_ACEOF
6009 /* end confdefs.h. */
6010 $ac_includes_default
6011 int
6012 main ()
6013 {
6014 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6015 test_array [0] = 0
6016
6017 ;
6018 return 0;
6019 }
6020 _ACEOF
6021 rm -f conftest.$ac_objext
6022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6023 (eval $ac_compile) 2>&5
6024 ac_status=$?
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); } &&
6027 { ac_try='test -s conftest.$ac_objext'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 (eval $ac_try) 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; }; then
6033 ac_lo=0 ac_mid=0
6034 while :; do
6035 cat >conftest.$ac_ext <<_ACEOF
6036 #line $LINENO "configure"
6037 /* confdefs.h. */
6038 _ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6042 $ac_includes_default
6043 int
6044 main ()
6045 {
6046 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6047 test_array [0] = 0
6048
6049 ;
6050 return 0;
6051 }
6052 _ACEOF
6053 rm -f conftest.$ac_objext
6054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6055 (eval $ac_compile) 2>&5
6056 ac_status=$?
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } &&
6059 { ac_try='test -s conftest.$ac_objext'
6060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061 (eval $ac_try) 2>&5
6062 ac_status=$?
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }; }; then
6065 ac_hi=$ac_mid; break
6066 else
6067 echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.$ac_ext >&5
6069
6070 ac_lo=`expr $ac_mid + 1`
6071 if test $ac_lo -le $ac_mid; then
6072 ac_lo= ac_hi=
6073 break
6074 fi
6075 ac_mid=`expr 2 '*' $ac_mid + 1`
6076 fi
6077 rm -f conftest.$ac_objext conftest.$ac_ext
6078 done
6079 else
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6082
6083 cat >conftest.$ac_ext <<_ACEOF
6084 #line $LINENO "configure"
6085 /* confdefs.h. */
6086 _ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h. */
6090 $ac_includes_default
6091 int
6092 main ()
6093 {
6094 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6095 test_array [0] = 0
6096
6097 ;
6098 return 0;
6099 }
6100 _ACEOF
6101 rm -f conftest.$ac_objext
6102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6103 (eval $ac_compile) 2>&5
6104 ac_status=$?
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } &&
6107 { ac_try='test -s conftest.$ac_objext'
6108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6109 (eval $ac_try) 2>&5
6110 ac_status=$?
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }; }; then
6113 ac_hi=-1 ac_mid=-1
6114 while :; do
6115 cat >conftest.$ac_ext <<_ACEOF
6116 #line $LINENO "configure"
6117 /* confdefs.h. */
6118 _ACEOF
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h. */
6122 $ac_includes_default
6123 int
6124 main ()
6125 {
6126 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6127 test_array [0] = 0
6128
6129 ;
6130 return 0;
6131 }
6132 _ACEOF
6133 rm -f conftest.$ac_objext
6134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6135 (eval $ac_compile) 2>&5
6136 ac_status=$?
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } &&
6139 { ac_try='test -s conftest.$ac_objext'
6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141 (eval $ac_try) 2>&5
6142 ac_status=$?
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; }; then
6145 ac_lo=$ac_mid; break
6146 else
6147 echo "$as_me: failed program was:" >&5
6148 sed 's/^/| /' conftest.$ac_ext >&5
6149
6150 ac_hi=`expr '(' $ac_mid ')' - 1`
6151 if test $ac_mid -le $ac_hi; then
6152 ac_lo= ac_hi=
6153 break
6154 fi
6155 ac_mid=`expr 2 '*' $ac_mid`
6156 fi
6157 rm -f conftest.$ac_objext conftest.$ac_ext
6158 done
6159 else
6160 echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6162
6163 ac_lo= ac_hi=
6164 fi
6165 rm -f conftest.$ac_objext conftest.$ac_ext
6166 fi
6167 rm -f conftest.$ac_objext conftest.$ac_ext
6168 # Binary search between lo and hi bounds.
6169 while test "x$ac_lo" != "x$ac_hi"; do
6170 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6171 cat >conftest.$ac_ext <<_ACEOF
6172 #line $LINENO "configure"
6173 /* confdefs.h. */
6174 _ACEOF
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h. */
6178 $ac_includes_default
6179 int
6180 main ()
6181 {
6182 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6183 test_array [0] = 0
6184
6185 ;
6186 return 0;
6187 }
6188 _ACEOF
6189 rm -f conftest.$ac_objext
6190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6191 (eval $ac_compile) 2>&5
6192 ac_status=$?
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } &&
6195 { ac_try='test -s conftest.$ac_objext'
6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 (eval $ac_try) 2>&5
6198 ac_status=$?
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 ac_hi=$ac_mid
6202 else
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6205
6206 ac_lo=`expr '(' $ac_mid ')' + 1`
6207 fi
6208 rm -f conftest.$ac_objext conftest.$ac_ext
6209 done
6210 case $ac_lo in
6211 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6212 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6213 See \`config.log' for more details." >&5
6214 echo "$as_me: error: cannot compute sizeof (long long), 77
6215 See \`config.log' for more details." >&2;}
6216 { (exit 1); exit 1; }; } ;;
6217 esac
6218 else
6219 if test "$cross_compiling" = yes; then
6220 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6221 See \`config.log' for more details." >&5
6222 echo "$as_me: error: cannot run test program while cross compiling
6223 See \`config.log' for more details." >&2;}
6224 { (exit 1); exit 1; }; }
6225 else
6226 cat >conftest.$ac_ext <<_ACEOF
6227 #line $LINENO "configure"
6228 /* confdefs.h. */
6229 _ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h. */
6233 $ac_includes_default
6234 long longval () { return (long) (sizeof (long long)); }
6235 unsigned long ulongval () { return (long) (sizeof (long long)); }
6236 #include <stdio.h>
6237 #include <stdlib.h>
6238 int
6239 main ()
6240 {
6241
6242 FILE *f = fopen ("conftest.val", "w");
6243 if (! f)
6244 exit (1);
6245 if (((long) (sizeof (long long))) < 0)
6246 {
6247 long i = longval ();
6248 if (i != ((long) (sizeof (long long))))
6249 exit (1);
6250 fprintf (f, "%ld\n", i);
6251 }
6252 else
6253 {
6254 unsigned long i = ulongval ();
6255 if (i != ((long) (sizeof (long long))))
6256 exit (1);
6257 fprintf (f, "%lu\n", i);
6258 }
6259 exit (ferror (f) || fclose (f) != 0);
6260
6261 ;
6262 return 0;
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_sizeof_long_long=`cat conftest.val`
6277 else
6278 echo "$as_me: program exited with status $ac_status" >&5
6279 echo "$as_me: failed program was:" >&5
6280 sed 's/^/| /' conftest.$ac_ext >&5
6281
6282 ( exit $ac_status )
6283 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6284 See \`config.log' for more details." >&5
6285 echo "$as_me: error: cannot compute sizeof (long long), 77
6286 See \`config.log' for more details." >&2;}
6287 { (exit 1); exit 1; }; }
6288 fi
6289 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6290 fi
6291 fi
6292 rm -f conftest.val
6293 else
6294 ac_cv_sizeof_long_long=0
6295 fi
6296 fi
6297 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6298 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6299 cat >>confdefs.h <<_ACEOF
6300 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6301 _ACEOF
6302
6303
6304
6305
6306
6307 echo "$as_me:$LINENO: checking for addrinfo" >&5
6308 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
6309 if test "${ac_cv_addrinfo+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 else
6312 cat >conftest.$ac_ext <<_ACEOF
6313 #line $LINENO "configure"
6314 /* confdefs.h. */
6315 _ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6319
6320 # include <netdb.h>
6321 int
6322 main ()
6323 {
6324 struct addrinfo a
6325 ;
6326 return 0;
6327 }
6328 _ACEOF
6329 rm -f conftest.$ac_objext
6330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6331 (eval $ac_compile) 2>&5
6332 ac_status=$?
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } &&
6335 { ac_try='test -s conftest.$ac_objext'
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337 (eval $ac_try) 2>&5
6338 ac_status=$?
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; }; then
6341 ac_cv_addrinfo=yes
6342 else
6343 echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.$ac_ext >&5
6345
6346 ac_cv_addrinfo=no
6347 fi
6348 rm -f conftest.$ac_objext conftest.$ac_ext
6349 fi
6350
6351 echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
6352 echo "${ECHO_T}$ac_cv_addrinfo" >&6
6353 if test $ac_cv_addrinfo = yes; then
6354 cat >>confdefs.h <<\_ACEOF
6355 #define HAVE_ADDRINFO 1
6356 _ACEOF
6357
6358 else
6359 cat >>confdefs.h <<\_ACEOF
6360 #define NEED_ADDRINFO_H 1
6361 _ACEOF
6362
6363 fi
6364
6365 if test "$ac_cv_addrinfo" = no; then
6366 missing_includes=yes
6367 fi
6368
6369
6370 echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
6371 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6
6372 if test "${ac_cv_maxserv+set}" = set; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 else
6375 cat >conftest.$ac_ext <<_ACEOF
6376 #line $LINENO "configure"
6377 /* confdefs.h. */
6378 _ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6382 #include <netdb.h>
6383 #ifdef NI_MAXSERV
6384 yes
6385 #endif
6386 _ACEOF
6387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6388 $EGREP "yes" >/dev/null 2>&1; then
6389 ac_cv_maxserv=yes
6390 else
6391 ac_cv_maxserv=no
6392 fi
6393 rm -f conftest*
6394
6395 fi
6396
6397 echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
6398 echo "${ECHO_T}$ac_cv_maxserv" >&6
6399 if test $ac_cv_maxserv != yes; then
6400 cat >>confdefs.h <<\_ACEOF
6401 #define NEED_ADDRINFO_H 1
6402 _ACEOF
6403
6404 fi
6405
6406 if test "$ac_cv_maxserv" = no; then
6407 missing_includes=yes
6408 fi
6409
6410
6411 echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
6412 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6
6413 if test "${ac_cv_namereqd+set}" = set; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
6415 else
6416 cat >conftest.$ac_ext <<_ACEOF
6417 #line $LINENO "configure"
6418 /* confdefs.h. */
6419 _ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6423 #include <netdb.h>
6424 #ifdef NI_NOFQDN
6425 yes
6426 #endif
6427 _ACEOF
6428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6429 $EGREP "yes" >/dev/null 2>&1; then
6430 ac_cv_namereqd=yes
6431 else
6432 ac_cv_namereqd=no
6433 fi
6434 rm -f conftest*
6435
6436 fi
6437
6438 echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
6439 echo "${ECHO_T}$ac_cv_namereqd" >&6
6440 if test $ac_cv_namereqd != yes; then
6441 cat >>confdefs.h <<\_ACEOF
6442 #define NEED_ADDRINFO_H 1
6443 _ACEOF
6444
6445 fi
6446
6447 if test "$ac_cv_namereqd" = no; then
6448 missing_includes=yes
6449 fi
6450
6451
6452 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
6453 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
6454 if test "${ac_cv_sa_storage+set}" = set; then
6455 echo $ECHO_N "(cached) $ECHO_C" >&6
6456 else
6457 cat >conftest.$ac_ext <<_ACEOF
6458 #line $LINENO "configure"
6459 /* confdefs.h. */
6460 _ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6464
6465 # include <sys/types.h>
6466 # include <sys/socket.h>
6467 int
6468 main ()
6469 {
6470 struct sockaddr_storage s
6471 ;
6472 return 0;
6473 }
6474 _ACEOF
6475 rm -f conftest.$ac_objext
6476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6477 (eval $ac_compile) 2>&5
6478 ac_status=$?
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); } &&
6481 { ac_try='test -s conftest.$ac_objext'
6482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483 (eval $ac_try) 2>&5
6484 ac_status=$?
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; }; then
6487 ac_cv_sa_storage=yes
6488 else
6489 echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6491
6492 ac_cv_sa_storage=no
6493 fi
6494 rm -f conftest.$ac_objext conftest.$ac_ext
6495 fi
6496
6497 echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
6498 echo "${ECHO_T}$ac_cv_sa_storage" >&6
6499 if test $ac_cv_sa_storage = yes; then
6500 cat >>confdefs.h <<\_ACEOF
6501 #define HAVE_SOCKADDR_STORAGE 1
6502 _ACEOF
6503
6504 fi
6505
6506 if test "$ac_cv_sa_storage" = no; then
6507 missing_includes=yes
6508 fi
6509
6510
6511 ac_cv_addrsz=yes
6512 echo "$as_me:$LINENO: checking for INADDRSZ" >&5
6513 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6
6514 if test "${ac_cv_inaddrsz+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 else
6517 cat >conftest.$ac_ext <<_ACEOF
6518 #line $LINENO "configure"
6519 /* confdefs.h. */
6520 _ACEOF
6521 cat confdefs.h >>conftest.$ac_ext
6522 cat >>conftest.$ac_ext <<_ACEOF
6523 /* end confdefs.h. */
6524
6525 # include <arpa/nameser.h>
6526 int
6527 main ()
6528 {
6529 int a = INADDRSZ
6530 ;
6531 return 0;
6532 }
6533 _ACEOF
6534 rm -f conftest.$ac_objext
6535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6536 (eval $ac_compile) 2>&5
6537 ac_status=$?
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); } &&
6540 { ac_try='test -s conftest.$ac_objext'
6541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542 (eval $ac_try) 2>&5
6543 ac_status=$?
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); }; }; then
6546 ac_cv_inaddrsz=yes
6547 else
6548 echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6550
6551 ac_cv_inaddrsz=no
6552 fi
6553 rm -f conftest.$ac_objext conftest.$ac_ext
6554 fi
6555
6556 echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
6557 echo "${ECHO_T}$ac_cv_inaddrsz" >&6
6558 if test $ac_cv_inaddrsz = yes; then
6559 cat >>confdefs.h <<\_ACEOF
6560 #define HAVE_INADDRSZ 1
6561 _ACEOF
6562
6563 else
6564 ac_cv_addrsz=no
6565 fi
6566 echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
6567 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6
6568 if test "${ac_cv_in6addrsz+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6570 else
6571 cat >conftest.$ac_ext <<_ACEOF
6572 #line $LINENO "configure"
6573 /* confdefs.h. */
6574 _ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h. */
6578
6579 # include <arpa/nameser.h>
6580 int
6581 main ()
6582 {
6583 int a = IN6ADDRSZ
6584 ;
6585 return 0;
6586 }
6587 _ACEOF
6588 rm -f conftest.$ac_objext
6589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6590 (eval $ac_compile) 2>&5
6591 ac_status=$?
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } &&
6594 { ac_try='test -s conftest.$ac_objext'
6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 (eval $ac_try) 2>&5
6597 ac_status=$?
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
6600 ac_cv_in6addrsz=yes
6601 else
6602 echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.$ac_ext >&5
6604
6605 ac_cv_in6addrsz=no
6606 fi
6607 rm -f conftest.$ac_objext conftest.$ac_ext
6608 fi
6609
6610 echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
6611 echo "${ECHO_T}$ac_cv_in6addrsz" >&6
6612 if test $ac_cv_in6addrsz = yes; then
6613 cat >>confdefs.h <<\_ACEOF
6614 #define HAVE_IN6ADDRSZ 1
6615 _ACEOF
6616
6617 else
6618 ac_cv_addrsz=no
6619 fi
6620
6621 if test "$ac_cv_addrsz" = no; then
6622 missing_includes=yes
6623 fi
6624
6625
6626 echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
6627 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6
6628 if test "${ac_cv_res_inet6+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 else
6631 cat >conftest.$ac_ext <<_ACEOF
6632 #line $LINENO "configure"
6633 /* confdefs.h. */
6634 _ACEOF
6635 cat confdefs.h >>conftest.$ac_ext
6636 cat >>conftest.$ac_ext <<_ACEOF
6637 /* end confdefs.h. */
6638
6639 # include <sys/types.h>
6640 # include <netinet/in.h>
6641 # include <resolv.h>
6642 int
6643 main ()
6644 {
6645 int a = RES_USE_INET6
6646 ;
6647 return 0;
6648 }
6649 _ACEOF
6650 rm -f conftest.$ac_objext
6651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6652 (eval $ac_compile) 2>&5
6653 ac_status=$?
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } &&
6656 { ac_try='test -s conftest.$ac_objext'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658 (eval $ac_try) 2>&5
6659 ac_status=$?
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; }; then
6662 ac_cv_res_inet6=yes
6663 else
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6666
6667 ac_cv_res_inet6=no
6668 fi
6669 rm -f conftest.$ac_objext conftest.$ac_ext
6670 fi
6671
6672 echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
6673 echo "${ECHO_T}$ac_cv_res_inet6" >&6
6674 if test $ac_cv_res_inet6 = yes; then
6675 cat >>confdefs.h <<\_ACEOF
6676 #define HAVE_RES_USE_INET6 1
6677 _ACEOF
6678
6679 fi
6680
6681 if test "$ac_cv_res_inet6" = no; then
6682 missing_includes=yes
6683 fi
6684
6685
6686 echo "$as_me:$LINENO: checking for res_state_ext" >&5
6687 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6
6688 if test "${ac_cv_res_state_ext+set}" = set; then
6689 echo $ECHO_N "(cached) $ECHO_C" >&6
6690 else
6691 cat >conftest.$ac_ext <<_ACEOF
6692 #line $LINENO "configure"
6693 /* confdefs.h. */
6694 _ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698
6699 # include <sys/types.h>
6700 # include <netinet/in.h>
6701 # include <netinet6/in6.h>
6702 # include <resolv.h>
6703 int
6704 main ()
6705 {
6706 struct __res_state_ext e
6707 ;
6708 return 0;
6709 }
6710 _ACEOF
6711 rm -f conftest.$ac_objext
6712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6713 (eval $ac_compile) 2>&5
6714 ac_status=$?
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); } &&
6717 { ac_try='test -s conftest.$ac_objext'
6718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719 (eval $ac_try) 2>&5
6720 ac_status=$?
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); }; }; then
6723 ac_cv_res_state_ext=yes
6724 else
6725 echo "$as_me: failed program was:" >&5
6726 sed 's/^/| /' conftest.$ac_ext >&5
6727
6728 ac_cv_res_state_ext=no
6729 fi
6730 rm -f conftest.$ac_objext conftest.$ac_ext
6731 fi
6732
6733 echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
6734 echo "${ECHO_T}$ac_cv_res_state_ext" >&6
6735 if test $ac_cv_res_state_ext = yes; then
6736 cat >>confdefs.h <<\_ACEOF
6737 #define HAVE_RES_STATE_EXT 1
6738 _ACEOF
6739
6740 fi
6741
6742 if test "$ac_cv_res_state_ext" = no; then
6743 missing_includes=yes
6744 fi
6745
6746
6747 echo "$as_me:$LINENO: checking for nsort in res_state" >&5
6748 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6
6749 if test "${ac_cv_res_state+set}" = set; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
6751 else
6752 cat >conftest.$ac_ext <<_ACEOF
6753 #line $LINENO "configure"
6754 /* confdefs.h. */
6755 _ACEOF
6756 cat confdefs.h >>conftest.$ac_ext
6757 cat >>conftest.$ac_ext <<_ACEOF
6758 /* end confdefs.h. */
6759
6760 # include <sys/types.h>
6761 # include <netinet/in.h>
6762 # include <netinet6/in6.h>
6763 # include <resolv.h>
6764 int
6765 main ()
6766 {
6767 struct __res_state e; e.nsort = 0
6768 ;
6769 return 0;
6770 }
6771 _ACEOF
6772 rm -f conftest.$ac_objext
6773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6774 (eval $ac_compile) 2>&5
6775 ac_status=$?
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); } &&
6778 { ac_try='test -s conftest.$ac_objext'
6779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6780 (eval $ac_try) 2>&5
6781 ac_status=$?
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); }; }; then
6784 ac_cv_res_state=yes
6785 else
6786 echo "$as_me: failed program was:" >&5
6787 sed 's/^/| /' conftest.$ac_ext >&5
6788
6789 ac_cv_res_state=no
6790 fi
6791 rm -f conftest.$ac_objext conftest.$ac_ext
6792 fi
6793
6794 echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
6795 echo "${ECHO_T}$ac_cv_res_state" >&6
6796 if test $ac_cv_res_state = yes; then
6797 cat >>confdefs.h <<\_ACEOF
6798 #define HAVE_NEW_RES_STATE 1
6799 _ACEOF
6800
6801 fi
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
6812 do
6813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6814 echo "$as_me:$LINENO: checking for $ac_func" >&5
6815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6816 if eval "test \"\${$as_ac_var+set}\" = set"; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819 cat >conftest.$ac_ext <<_ACEOF
6820 #line $LINENO "configure"
6821 /* confdefs.h. */
6822 _ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6826 /* System header to define __stub macros and hopefully few prototypes,
6827 which can conflict with char $ac_func (); below.
6828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6829 <limits.h> exists even on freestanding compilers. */
6830 #ifdef __STDC__
6831 # include <limits.h>
6832 #else
6833 # include <assert.h>
6834 #endif
6835 /* Override any gcc2 internal prototype to avoid an error. */
6836 #ifdef __cplusplus
6837 extern "C"
6838 {
6839 #endif
6840 /* We use char because int might match the return type of a gcc2
6841 builtin and then its argument prototype would still apply. */
6842 char $ac_func ();
6843 /* The GNU C library defines this for functions which it implements
6844 to always fail with ENOSYS. Some functions are actually named
6845 something starting with __ and the normal name is an alias. */
6846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6847 choke me
6848 #else
6849 char (*f) () = $ac_func;
6850 #endif
6851 #ifdef __cplusplus
6852 }
6853 #endif
6854
6855 int
6856 main ()
6857 {
6858 return f != $ac_func;
6859 ;
6860 return 0;
6861 }
6862 _ACEOF
6863 rm -f conftest.$ac_objext conftest$ac_exeext
6864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6865 (eval $ac_link) 2>&5
6866 ac_status=$?
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } &&
6869 { ac_try='test -s conftest$ac_exeext'
6870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871 (eval $ac_try) 2>&5
6872 ac_status=$?
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); }; }; then
6875 eval "$as_ac_var=yes"
6876 else
6877 echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6879
6880 eval "$as_ac_var=no"
6881 fi
6882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6883 fi
6884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6886 if test `eval echo '${'$as_ac_var'}'` = yes; then
6887 cat >>confdefs.h <<_ACEOF
6888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6889 _ACEOF
6890
6891 else
6892 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6893 fi
6894 done
6895
6896
6897
6898 for ac_func in strftime
6899 do
6900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6901 echo "$as_me:$LINENO: checking for $ac_func" >&5
6902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6903 if eval "test \"\${$as_ac_var+set}\" = set"; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
6905 else
6906 cat >conftest.$ac_ext <<_ACEOF
6907 #line $LINENO "configure"
6908 /* confdefs.h. */
6909 _ACEOF
6910 cat confdefs.h >>conftest.$ac_ext
6911 cat >>conftest.$ac_ext <<_ACEOF
6912 /* end confdefs.h. */
6913 /* System header to define __stub macros and hopefully few prototypes,
6914 which can conflict with char $ac_func (); below.
6915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6916 <limits.h> exists even on freestanding compilers. */
6917 #ifdef __STDC__
6918 # include <limits.h>
6919 #else
6920 # include <assert.h>
6921 #endif
6922 /* Override any gcc2 internal prototype to avoid an error. */
6923 #ifdef __cplusplus
6924 extern "C"
6925 {
6926 #endif
6927 /* We use char because int might match the return type of a gcc2
6928 builtin and then its argument prototype would still apply. */
6929 char $ac_func ();
6930 /* The GNU C library defines this for functions which it implements
6931 to always fail with ENOSYS. Some functions are actually named
6932 something starting with __ and the normal name is an alias. */
6933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6934 choke me
6935 #else
6936 char (*f) () = $ac_func;
6937 #endif
6938 #ifdef __cplusplus
6939 }
6940 #endif
6941
6942 int
6943 main ()
6944 {
6945 return f != $ac_func;
6946 ;
6947 return 0;
6948 }
6949 _ACEOF
6950 rm -f conftest.$ac_objext conftest$ac_exeext
6951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6952 (eval $ac_link) 2>&5
6953 ac_status=$?
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); } &&
6956 { ac_try='test -s conftest$ac_exeext'
6957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958 (eval $ac_try) 2>&5
6959 ac_status=$?
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; }; then
6962 eval "$as_ac_var=yes"
6963 else
6964 echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.$ac_ext >&5
6966
6967 eval "$as_ac_var=no"
6968 fi
6969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6970 fi
6971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6972 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6973 if test `eval echo '${'$as_ac_var'}'` = yes; then
6974 cat >>confdefs.h <<_ACEOF
6975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6976 _ACEOF
6977
6978 fi
6979 done
6980
6981
6982
6983 for ac_func in setlinebuf alarm
6984 do
6985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6986 echo "$as_me:$LINENO: checking for $ac_func" >&5
6987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6988 if eval "test \"\${$as_ac_var+set}\" = set"; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6990 else
6991 cat >conftest.$ac_ext <<_ACEOF
6992 #line $LINENO "configure"
6993 /* confdefs.h. */
6994 _ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h. */
6998 /* System header to define __stub macros and hopefully few prototypes,
6999 which can conflict with char $ac_func (); below.
7000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7001 <limits.h> exists even on freestanding compilers. */
7002 #ifdef __STDC__
7003 # include <limits.h>
7004 #else
7005 # include <assert.h>
7006 #endif
7007 /* Override any gcc2 internal prototype to avoid an error. */
7008 #ifdef __cplusplus
7009 extern "C"
7010 {
7011 #endif
7012 /* We use char because int might match the return type of a gcc2
7013 builtin and then its argument prototype would still apply. */
7014 char $ac_func ();
7015 /* The GNU C library defines this for functions which it implements
7016 to always fail with ENOSYS. Some functions are actually named
7017 something starting with __ and the normal name is an alias. */
7018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7019 choke me
7020 #else
7021 char (*f) () = $ac_func;
7022 #endif
7023 #ifdef __cplusplus
7024 }
7025 #endif
7026
7027 int
7028 main ()
7029 {
7030 return f != $ac_func;
7031 ;
7032 return 0;
7033 }
7034 _ACEOF
7035 rm -f conftest.$ac_objext conftest$ac_exeext
7036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7037 (eval $ac_link) 2>&5
7038 ac_status=$?
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); } &&
7041 { ac_try='test -s conftest$ac_exeext'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 (eval $ac_try) 2>&5
7044 ac_status=$?
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; }; then
7047 eval "$as_ac_var=yes"
7048 else
7049 echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7051
7052 eval "$as_ac_var=no"
7053 fi
7054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7055 fi
7056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7058 if test `eval echo '${'$as_ac_var'}'` = yes; then
7059 cat >>confdefs.h <<_ACEOF
7060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7061 _ACEOF
7062
7063 fi
7064 done
7065
7066
7067 needsnprintf=no
7068
7069
7070 for ac_func in vsnprintf snprintf
7071 do
7072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7073 echo "$as_me:$LINENO: checking for $ac_func" >&5
7074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7075 if eval "test \"\${$as_ac_var+set}\" = set"; then
7076 echo $ECHO_N "(cached) $ECHO_C" >&6
7077 else
7078 cat >conftest.$ac_ext <<_ACEOF
7079 #line $LINENO "configure"
7080 /* confdefs.h. */
7081 _ACEOF
7082 cat confdefs.h >>conftest.$ac_ext
7083 cat >>conftest.$ac_ext <<_ACEOF
7084 /* end confdefs.h. */
7085 /* System header to define __stub macros and hopefully few prototypes,
7086 which can conflict with char $ac_func (); below.
7087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7088 <limits.h> exists even on freestanding compilers. */
7089 #ifdef __STDC__
7090 # include <limits.h>
7091 #else
7092 # include <assert.h>
7093 #endif
7094 /* Override any gcc2 internal prototype to avoid an error. */
7095 #ifdef __cplusplus
7096 extern "C"
7097 {
7098 #endif
7099 /* We use char because int might match the return type of a gcc2
7100 builtin and then its argument prototype would still apply. */
7101 char $ac_func ();
7102 /* The GNU C library defines this for functions which it implements
7103 to always fail with ENOSYS. Some functions are actually named
7104 something starting with __ and the normal name is an alias. */
7105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7106 choke me
7107 #else
7108 char (*f) () = $ac_func;
7109 #endif
7110 #ifdef __cplusplus
7111 }
7112 #endif
7113
7114 int
7115 main ()
7116 {
7117 return f != $ac_func;
7118 ;
7119 return 0;
7120 }
7121 _ACEOF
7122 rm -f conftest.$ac_objext conftest$ac_exeext
7123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7124 (eval $ac_link) 2>&5
7125 ac_status=$?
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } &&
7128 { ac_try='test -s conftest$ac_exeext'
7129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130 (eval $ac_try) 2>&5
7131 ac_status=$?
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); }; }; then
7134 eval "$as_ac_var=yes"
7135 else
7136 echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.$ac_ext >&5
7138
7139 eval "$as_ac_var=no"
7140 fi
7141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7142 fi
7143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7145 if test `eval echo '${'$as_ac_var'}'` = yes; then
7146 cat >>confdefs.h <<_ACEOF
7147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7148 _ACEOF
7149
7150 else
7151 needsnprintf=yes
7152 fi
7153 done
7154
7155 if test $needsnprintf = yes; then
7156 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
7157 fi
7158
7159
7160 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7161 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7162 if test "${ac_cv_type_signal+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 else
7165 cat >conftest.$ac_ext <<_ACEOF
7166 #line $LINENO "configure"
7167 /* confdefs.h. */
7168 _ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7172 #include <sys/types.h>
7173 #include <signal.h>
7174 #ifdef signal
7175 # undef signal
7176 #endif
7177 #ifdef __cplusplus
7178 extern "C" void (*signal (int, void (*)(int)))(int);
7179 #else
7180 void (*signal ()) ();
7181 #endif
7182
7183 int
7184 main ()
7185 {
7186 int i;
7187 ;
7188 return 0;
7189 }
7190 _ACEOF
7191 rm -f conftest.$ac_objext
7192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7193 (eval $ac_compile) 2>&5
7194 ac_status=$?
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } &&
7197 { ac_try='test -s conftest.$ac_objext'
7198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199 (eval $ac_try) 2>&5
7200 ac_status=$?
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); }; }; then
7203 ac_cv_type_signal=void
7204 else
7205 echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.$ac_ext >&5
7207
7208 ac_cv_type_signal=int
7209 fi
7210 rm -f conftest.$ac_objext conftest.$ac_ext
7211 fi
7212 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7213 echo "${ECHO_T}$ac_cv_type_signal" >&6
7214
7215 cat >>confdefs.h <<_ACEOF
7216 #define RETSIGTYPE $ac_cv_type_signal
7217 _ACEOF
7218
7219
7220 if test "$ac_cv_type_signal" = void ; then
7221 cat >>confdefs.h <<\_ACEOF
7222 #define RETSIGVAL
7223 _ACEOF
7224
7225 else
7226 cat >>confdefs.h <<\_ACEOF
7227 #define RETSIGVAL (0)
7228 _ACEOF
7229
7230 fi
7231 case "$host_os" in
7232
7233 irix*)
7234 cat >>confdefs.h <<\_ACEOF
7235 #define _BSD_SIGNALS 1
7236 _ACEOF
7237
7238 ;;
7239
7240 *)
7241
7242 for ac_func in sigaction
7243 do
7244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7245 echo "$as_me:$LINENO: checking for $ac_func" >&5
7246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7247 if eval "test \"\${$as_ac_var+set}\" = set"; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7249 else
7250 cat >conftest.$ac_ext <<_ACEOF
7251 #line $LINENO "configure"
7252 /* confdefs.h. */
7253 _ACEOF
7254 cat confdefs.h >>conftest.$ac_ext
7255 cat >>conftest.$ac_ext <<_ACEOF
7256 /* end confdefs.h. */
7257 /* System header to define __stub macros and hopefully few prototypes,
7258 which can conflict with char $ac_func (); below.
7259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7260 <limits.h> exists even on freestanding compilers. */
7261 #ifdef __STDC__
7262 # include <limits.h>
7263 #else
7264 # include <assert.h>
7265 #endif
7266 /* Override any gcc2 internal prototype to avoid an error. */
7267 #ifdef __cplusplus
7268 extern "C"
7269 {
7270 #endif
7271 /* We use char because int might match the return type of a gcc2
7272 builtin and then its argument prototype would still apply. */
7273 char $ac_func ();
7274 /* The GNU C library defines this for functions which it implements
7275 to always fail with ENOSYS. Some functions are actually named
7276 something starting with __ and the normal name is an alias. */
7277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7278 choke me
7279 #else
7280 char (*f) () = $ac_func;
7281 #endif
7282 #ifdef __cplusplus
7283 }
7284 #endif
7285
7286 int
7287 main ()
7288 {
7289 return f != $ac_func;
7290 ;
7291 return 0;
7292 }
7293 _ACEOF
7294 rm -f conftest.$ac_objext conftest$ac_exeext
7295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7296 (eval $ac_link) 2>&5
7297 ac_status=$?
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } &&
7300 { ac_try='test -s conftest$ac_exeext'
7301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7302 (eval $ac_try) 2>&5
7303 ac_status=$?
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); }; }; then
7306 eval "$as_ac_var=yes"
7307 else
7308 echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7310
7311 eval "$as_ac_var=no"
7312 fi
7313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7314 fi
7315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7317 if test `eval echo '${'$as_ac_var'}'` = yes; then
7318 cat >>confdefs.h <<_ACEOF
7319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7320 _ACEOF
7321
7322 fi
7323 done
7324
7325 if test $ac_cv_func_sigaction = no ; then
7326
7327 for ac_func in sigset
7328 do
7329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7330 echo "$as_me:$LINENO: checking for $ac_func" >&5
7331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7332 if eval "test \"\${$as_ac_var+set}\" = set"; then
7333 echo $ECHO_N "(cached) $ECHO_C" >&6
7334 else
7335 cat >conftest.$ac_ext <<_ACEOF
7336 #line $LINENO "configure"
7337 /* confdefs.h. */
7338 _ACEOF
7339 cat confdefs.h >>conftest.$ac_ext
7340 cat >>conftest.$ac_ext <<_ACEOF
7341 /* end confdefs.h. */
7342 /* System header to define __stub macros and hopefully few prototypes,
7343 which can conflict with char $ac_func (); below.
7344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7345 <limits.h> exists even on freestanding compilers. */
7346 #ifdef __STDC__
7347 # include <limits.h>
7348 #else
7349 # include <assert.h>
7350 #endif
7351 /* Override any gcc2 internal prototype to avoid an error. */
7352 #ifdef __cplusplus
7353 extern "C"
7354 {
7355 #endif
7356 /* We use char because int might match the return type of a gcc2
7357 builtin and then its argument prototype would still apply. */
7358 char $ac_func ();
7359 /* The GNU C library defines this for functions which it implements
7360 to always fail with ENOSYS. Some functions are actually named
7361 something starting with __ and the normal name is an alias. */
7362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7363 choke me
7364 #else
7365 char (*f) () = $ac_func;
7366 #endif
7367 #ifdef __cplusplus
7368 }
7369 #endif
7370
7371 int
7372 main ()
7373 {
7374 return f != $ac_func;
7375 ;
7376 return 0;
7377 }
7378 _ACEOF
7379 rm -f conftest.$ac_objext conftest$ac_exeext
7380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7381 (eval $ac_link) 2>&5
7382 ac_status=$?
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); } &&
7385 { ac_try='test -s conftest$ac_exeext'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387 (eval $ac_try) 2>&5
7388 ac_status=$?
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; }; then
7391 eval "$as_ac_var=yes"
7392 else
7393 echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7395
7396 eval "$as_ac_var=no"
7397 fi
7398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7399 fi
7400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7401 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7402 if test `eval echo '${'$as_ac_var'}'` = yes; then
7403 cat >>confdefs.h <<_ACEOF
7404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7405 _ACEOF
7406
7407 fi
7408 done
7409
7410 fi
7411 ;;
7412 esac
7413
7414 echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
7415 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6
7416 if test "${ac_cv_search_dnet_htoa+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419 ac_func_search_save_LIBS=$LIBS
7420 ac_cv_search_dnet_htoa=no
7421 cat >conftest.$ac_ext <<_ACEOF
7422 #line $LINENO "configure"
7423 /* confdefs.h. */
7424 _ACEOF
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7428
7429 /* Override any gcc2 internal prototype to avoid an error. */
7430 #ifdef __cplusplus
7431 extern "C"
7432 #endif
7433 /* We use char because int might match the return type of a gcc2
7434 builtin and then its argument prototype would still apply. */
7435 char dnet_htoa ();
7436 int
7437 main ()
7438 {
7439 dnet_htoa ();
7440 ;
7441 return 0;
7442 }
7443 _ACEOF
7444 rm -f conftest.$ac_objext conftest$ac_exeext
7445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7446 (eval $ac_link) 2>&5
7447 ac_status=$?
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); } &&
7450 { ac_try='test -s conftest$ac_exeext'
7451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452 (eval $ac_try) 2>&5
7453 ac_status=$?
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); }; }; then
7456 ac_cv_search_dnet_htoa="none required"
7457 else
7458 echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.$ac_ext >&5
7460
7461 fi
7462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7463 if test "$ac_cv_search_dnet_htoa" = no; then
7464 for ac_lib in dnet; do
7465 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7466 cat >conftest.$ac_ext <<_ACEOF
7467 #line $LINENO "configure"
7468 /* confdefs.h. */
7469 _ACEOF
7470 cat confdefs.h >>conftest.$ac_ext
7471 cat >>conftest.$ac_ext <<_ACEOF
7472 /* end confdefs.h. */
7473
7474 /* Override any gcc2 internal prototype to avoid an error. */
7475 #ifdef __cplusplus
7476 extern "C"
7477 #endif
7478 /* We use char because int might match the return type of a gcc2
7479 builtin and then its argument prototype would still apply. */
7480 char dnet_htoa ();
7481 int
7482 main ()
7483 {
7484 dnet_htoa ();
7485 ;
7486 return 0;
7487 }
7488 _ACEOF
7489 rm -f conftest.$ac_objext conftest$ac_exeext
7490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7491 (eval $ac_link) 2>&5
7492 ac_status=$?
7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); } &&
7495 { ac_try='test -s conftest$ac_exeext'
7496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7497 (eval $ac_try) 2>&5
7498 ac_status=$?
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); }; }; then
7501 ac_cv_search_dnet_htoa="-l$ac_lib"
7502 break
7503 else
7504 echo "$as_me: failed program was:" >&5
7505 sed 's/^/| /' conftest.$ac_ext >&5
7506
7507 fi
7508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7509 done
7510 fi
7511 LIBS=$ac_func_search_save_LIBS
7512 fi
7513 echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
7514 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6
7515 if test "$ac_cv_search_dnet_htoa" != no; then
7516 test "$ac_cv_search_dnet_htoa" = "none required" || LIBS="$ac_cv_search_dnet_htoa $LIBS"
7517 cat >>confdefs.h <<\_ACEOF
7518 #define HAVE_DNET_HTOA 1
7519 _ACEOF
7520
7521 fi
7522
7523
7524
7525 echo "$as_me:$LINENO: checking for main in -lrpc" >&5
7526 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6
7527 if test "${ac_cv_lib_rpc_main+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7529 else
7530 ac_check_lib_save_LIBS=$LIBS
7531 LIBS="-lrpc $LIBS"
7532 cat >conftest.$ac_ext <<_ACEOF
7533 #line $LINENO "configure"
7534 /* confdefs.h. */
7535 _ACEOF
7536 cat confdefs.h >>conftest.$ac_ext
7537 cat >>conftest.$ac_ext <<_ACEOF
7538 /* end confdefs.h. */
7539
7540
7541 int
7542 main ()
7543 {
7544 main ();
7545 ;
7546 return 0;
7547 }
7548 _ACEOF
7549 rm -f conftest.$ac_objext conftest$ac_exeext
7550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7551 (eval $ac_link) 2>&5
7552 ac_status=$?
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } &&
7555 { ac_try='test -s conftest$ac_exeext'
7556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557 (eval $ac_try) 2>&5
7558 ac_status=$?
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); }; }; then
7561 ac_cv_lib_rpc_main=yes
7562 else
7563 echo "$as_me: failed program was:" >&5
7564 sed 's/^/| /' conftest.$ac_ext >&5
7565
7566 ac_cv_lib_rpc_main=no
7567 fi
7568 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7569 LIBS=$ac_check_lib_save_LIBS
7570 fi
7571 echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
7572 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6
7573 if test $ac_cv_lib_rpc_main = yes; then
7574 cat >>confdefs.h <<_ACEOF
7575 #define HAVE_LIBRPC 1
7576 _ACEOF
7577
7578 LIBS="-lrpc $LIBS"
7579
7580 fi
7581
7582 echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
7583 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6
7584 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 else
7587 ac_func_search_save_LIBS=$LIBS
7588 ac_cv_search_getrpcbynumber=no
7589 cat >conftest.$ac_ext <<_ACEOF
7590 #line $LINENO "configure"
7591 /* confdefs.h. */
7592 _ACEOF
7593 cat confdefs.h >>conftest.$ac_ext
7594 cat >>conftest.$ac_ext <<_ACEOF
7595 /* end confdefs.h. */
7596
7597 /* Override any gcc2 internal prototype to avoid an error. */
7598 #ifdef __cplusplus
7599 extern "C"
7600 #endif
7601 /* We use char because int might match the return type of a gcc2
7602 builtin and then its argument prototype would still apply. */
7603 char getrpcbynumber ();
7604 int
7605 main ()
7606 {
7607 getrpcbynumber ();
7608 ;
7609 return 0;
7610 }
7611 _ACEOF
7612 rm -f conftest.$ac_objext conftest$ac_exeext
7613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7614 (eval $ac_link) 2>&5
7615 ac_status=$?
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } &&
7618 { ac_try='test -s conftest$ac_exeext'
7619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620 (eval $ac_try) 2>&5
7621 ac_status=$?
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); }; }; then
7624 ac_cv_search_getrpcbynumber="none required"
7625 else
7626 echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7628
7629 fi
7630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7631 if test "$ac_cv_search_getrpcbynumber" = no; then
7632 for ac_lib in nsl; do
7633 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7634 cat >conftest.$ac_ext <<_ACEOF
7635 #line $LINENO "configure"
7636 /* confdefs.h. */
7637 _ACEOF
7638 cat confdefs.h >>conftest.$ac_ext
7639 cat >>conftest.$ac_ext <<_ACEOF
7640 /* end confdefs.h. */
7641
7642 /* Override any gcc2 internal prototype to avoid an error. */
7643 #ifdef __cplusplus
7644 extern "C"
7645 #endif
7646 /* We use char because int might match the return type of a gcc2
7647 builtin and then its argument prototype would still apply. */
7648 char getrpcbynumber ();
7649 int
7650 main ()
7651 {
7652 getrpcbynumber ();
7653 ;
7654 return 0;
7655 }
7656 _ACEOF
7657 rm -f conftest.$ac_objext conftest$ac_exeext
7658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7659 (eval $ac_link) 2>&5
7660 ac_status=$?
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } &&
7663 { ac_try='test -s conftest$ac_exeext'
7664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665 (eval $ac_try) 2>&5
7666 ac_status=$?
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); }; }; then
7669 ac_cv_search_getrpcbynumber="-l$ac_lib"
7670 break
7671 else
7672 echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.$ac_ext >&5
7674
7675 fi
7676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7677 done
7678 fi
7679 LIBS=$ac_func_search_save_LIBS
7680 fi
7681 echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
7682 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6
7683 if test "$ac_cv_search_getrpcbynumber" != no; then
7684 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS="$ac_cv_search_getrpcbynumber $LIBS"
7685 cat >>confdefs.h <<\_ACEOF
7686 #define HAVE_GETRPCBYNUMBER 1
7687 _ACEOF
7688
7689 fi
7690
7691
7692
7693
7694 # Most operating systems have gethostbyname() in the default searched
7695 # libraries (i.e. libc):
7696 # Some OSes (eg. Solaris) place it in libnsl
7697 # Some strange OSes (SINIX) have it in libsocket:
7698 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7699 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7700 if test "${ac_cv_search_gethostbyname+set}" = set; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7702 else
7703 ac_func_search_save_LIBS=$LIBS
7704 ac_cv_search_gethostbyname=no
7705 cat >conftest.$ac_ext <<_ACEOF
7706 #line $LINENO "configure"
7707 /* confdefs.h. */
7708 _ACEOF
7709 cat confdefs.h >>conftest.$ac_ext
7710 cat >>conftest.$ac_ext <<_ACEOF
7711 /* end confdefs.h. */
7712
7713 /* Override any gcc2 internal prototype to avoid an error. */
7714 #ifdef __cplusplus
7715 extern "C"
7716 #endif
7717 /* We use char because int might match the return type of a gcc2
7718 builtin and then its argument prototype would still apply. */
7719 char gethostbyname ();
7720 int
7721 main ()
7722 {
7723 gethostbyname ();
7724 ;
7725 return 0;
7726 }
7727 _ACEOF
7728 rm -f conftest.$ac_objext conftest$ac_exeext
7729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7730 (eval $ac_link) 2>&5
7731 ac_status=$?
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); } &&
7734 { ac_try='test -s conftest$ac_exeext'
7735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736 (eval $ac_try) 2>&5
7737 ac_status=$?
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); }; }; then
7740 ac_cv_search_gethostbyname="none required"
7741 else
7742 echo "$as_me: failed program was:" >&5
7743 sed 's/^/| /' conftest.$ac_ext >&5
7744
7745 fi
7746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7747 if test "$ac_cv_search_gethostbyname" = no; then
7748 for ac_lib in nsl socket resolv; do
7749 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7750 cat >conftest.$ac_ext <<_ACEOF
7751 #line $LINENO "configure"
7752 /* confdefs.h. */
7753 _ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h. */
7757
7758 /* Override any gcc2 internal prototype to avoid an error. */
7759 #ifdef __cplusplus
7760 extern "C"
7761 #endif
7762 /* We use char because int might match the return type of a gcc2
7763 builtin and then its argument prototype would still apply. */
7764 char gethostbyname ();
7765 int
7766 main ()
7767 {
7768 gethostbyname ();
7769 ;
7770 return 0;
7771 }
7772 _ACEOF
7773 rm -f conftest.$ac_objext conftest$ac_exeext
7774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7775 (eval $ac_link) 2>&5
7776 ac_status=$?
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } &&
7779 { ac_try='test -s conftest$ac_exeext'
7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781 (eval $ac_try) 2>&5
7782 ac_status=$?
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; }; then
7785 ac_cv_search_gethostbyname="-l$ac_lib"
7786 break
7787 else
7788 echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.$ac_ext >&5
7790
7791 fi
7792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7793 done
7794 fi
7795 LIBS=$ac_func_search_save_LIBS
7796 fi
7797 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7798 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7799 if test "$ac_cv_search_gethostbyname" != no; then
7800 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
7801
7802 fi
7803
7804 # Unfortunately libsocket sometimes depends on libnsl and
7805 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
7806 if test "$ac_cv_search_gethostbyname" = "no"
7807 then
7808 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
7809 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
7810 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
7812 else
7813 ac_check_lib_save_LIBS=$LIBS
7814 LIBS="-lsocket -lnsl $LIBS"
7815 cat >conftest.$ac_ext <<_ACEOF
7816 #line $LINENO "configure"
7817 /* confdefs.h. */
7818 _ACEOF
7819 cat confdefs.h >>conftest.$ac_ext
7820 cat >>conftest.$ac_ext <<_ACEOF
7821 /* end confdefs.h. */
7822
7823 /* Override any gcc2 internal prototype to avoid an error. */
7824 #ifdef __cplusplus
7825 extern "C"
7826 #endif
7827 /* We use char because int might match the return type of a gcc2
7828 builtin and then its argument prototype would still apply. */
7829 char gethostbyname ();
7830 int
7831 main ()
7832 {
7833 gethostbyname ();
7834 ;
7835 return 0;
7836 }
7837 _ACEOF
7838 rm -f conftest.$ac_objext conftest$ac_exeext
7839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7840 (eval $ac_link) 2>&5
7841 ac_status=$?
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } &&
7844 { ac_try='test -s conftest$ac_exeext'
7845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846 (eval $ac_try) 2>&5
7847 ac_status=$?
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); }; }; then
7850 ac_cv_lib_socket_gethostbyname=yes
7851 else
7852 echo "$as_me: failed program was:" >&5
7853 sed 's/^/| /' conftest.$ac_ext >&5
7854
7855 ac_cv_lib_socket_gethostbyname=no
7856 fi
7857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7858 LIBS=$ac_check_lib_save_LIBS
7859 fi
7860 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
7861 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
7862 if test $ac_cv_lib_socket_gethostbyname = yes; then
7863 LIBS="-lsocket -lnsl $LIBS"
7864 fi
7865
7866 fi
7867 echo "$as_me:$LINENO: checking for library containing socket" >&5
7868 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
7869 if test "${ac_cv_search_socket+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
7871 else
7872 ac_func_search_save_LIBS=$LIBS
7873 ac_cv_search_socket=no
7874 cat >conftest.$ac_ext <<_ACEOF
7875 #line $LINENO "configure"
7876 /* confdefs.h. */
7877 _ACEOF
7878 cat confdefs.h >>conftest.$ac_ext
7879 cat >>conftest.$ac_ext <<_ACEOF
7880 /* end confdefs.h. */
7881
7882 /* Override any gcc2 internal prototype to avoid an error. */
7883 #ifdef __cplusplus
7884 extern "C"
7885 #endif
7886 /* We use char because int might match the return type of a gcc2
7887 builtin and then its argument prototype would still apply. */
7888 char socket ();
7889 int
7890 main ()
7891 {
7892 socket ();
7893 ;
7894 return 0;
7895 }
7896 _ACEOF
7897 rm -f conftest.$ac_objext conftest$ac_exeext
7898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7899 (eval $ac_link) 2>&5
7900 ac_status=$?
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); } &&
7903 { ac_try='test -s conftest$ac_exeext'
7904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7905 (eval $ac_try) 2>&5
7906 ac_status=$?
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); }; }; then
7909 ac_cv_search_socket="none required"
7910 else
7911 echo "$as_me: failed program was:" >&5
7912 sed 's/^/| /' conftest.$ac_ext >&5
7913
7914 fi
7915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7916 if test "$ac_cv_search_socket" = no; then
7917 for ac_lib in socket; do
7918 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7919 cat >conftest.$ac_ext <<_ACEOF
7920 #line $LINENO "configure"
7921 /* confdefs.h. */
7922 _ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7926
7927 /* Override any gcc2 internal prototype to avoid an error. */
7928 #ifdef __cplusplus
7929 extern "C"
7930 #endif
7931 /* We use char because int might match the return type of a gcc2
7932 builtin and then its argument prototype would still apply. */
7933 char socket ();
7934 int
7935 main ()
7936 {
7937 socket ();
7938 ;
7939 return 0;
7940 }
7941 _ACEOF
7942 rm -f conftest.$ac_objext conftest$ac_exeext
7943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7944 (eval $ac_link) 2>&5
7945 ac_status=$?
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } &&
7948 { ac_try='test -s conftest$ac_exeext'
7949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950 (eval $ac_try) 2>&5
7951 ac_status=$?
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); }; }; then
7954 ac_cv_search_socket="-l$ac_lib"
7955 break
7956 else
7957 echo "$as_me: failed program was:" >&5
7958 sed 's/^/| /' conftest.$ac_ext >&5
7959
7960 fi
7961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7962 done
7963 fi
7964 LIBS=$ac_func_search_save_LIBS
7965 fi
7966 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7967 echo "${ECHO_T}$ac_cv_search_socket" >&6
7968 if test "$ac_cv_search_socket" != no; then
7969 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
7970
7971 else
7972 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7973 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7974 if test "${ac_cv_lib_socket_socket+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7976 else
7977 ac_check_lib_save_LIBS=$LIBS
7978 LIBS="-lsocket -lnsl $LIBS"
7979 cat >conftest.$ac_ext <<_ACEOF
7980 #line $LINENO "configure"
7981 /* confdefs.h. */
7982 _ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7986
7987 /* Override any gcc2 internal prototype to avoid an error. */
7988 #ifdef __cplusplus
7989 extern "C"
7990 #endif
7991 /* We use char because int might match the return type of a gcc2
7992 builtin and then its argument prototype would still apply. */
7993 char socket ();
7994 int
7995 main ()
7996 {
7997 socket ();
7998 ;
7999 return 0;
8000 }
8001 _ACEOF
8002 rm -f conftest.$ac_objext conftest$ac_exeext
8003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8004 (eval $ac_link) 2>&5
8005 ac_status=$?
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } &&
8008 { ac_try='test -s conftest$ac_exeext'
8009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010 (eval $ac_try) 2>&5
8011 ac_status=$?
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; }; then
8014 ac_cv_lib_socket_socket=yes
8015 else
8016 echo "$as_me: failed program was:" >&5
8017 sed 's/^/| /' conftest.$ac_ext >&5
8018
8019 ac_cv_lib_socket_socket=no
8020 fi
8021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8022 LIBS=$ac_check_lib_save_LIBS
8023 fi
8024 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
8025 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
8026 if test $ac_cv_lib_socket_socket = yes; then
8027 LIBS="-lsocket -lnsl $LIBS"
8028 fi
8029
8030 fi
8031
8032 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
8033 echo "$as_me:$LINENO: checking for library containing putmsg" >&5
8034 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
8035 if test "${ac_cv_search_putmsg+set}" = set; then
8036 echo $ECHO_N "(cached) $ECHO_C" >&6
8037 else
8038 ac_func_search_save_LIBS=$LIBS
8039 ac_cv_search_putmsg=no
8040 cat >conftest.$ac_ext <<_ACEOF
8041 #line $LINENO "configure"
8042 /* confdefs.h. */
8043 _ACEOF
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h. */
8047
8048 /* Override any gcc2 internal prototype to avoid an error. */
8049 #ifdef __cplusplus
8050 extern "C"
8051 #endif
8052 /* We use char because int might match the return type of a gcc2
8053 builtin and then its argument prototype would still apply. */
8054 char putmsg ();
8055 int
8056 main ()
8057 {
8058 putmsg ();
8059 ;
8060 return 0;
8061 }
8062 _ACEOF
8063 rm -f conftest.$ac_objext conftest$ac_exeext
8064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8065 (eval $ac_link) 2>&5
8066 ac_status=$?
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); } &&
8069 { ac_try='test -s conftest$ac_exeext'
8070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071 (eval $ac_try) 2>&5
8072 ac_status=$?
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); }; }; then
8075 ac_cv_search_putmsg="none required"
8076 else
8077 echo "$as_me: failed program was:" >&5
8078 sed 's/^/| /' conftest.$ac_ext >&5
8079
8080 fi
8081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8082 if test "$ac_cv_search_putmsg" = no; then
8083 for ac_lib in str; do
8084 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8085 cat >conftest.$ac_ext <<_ACEOF
8086 #line $LINENO "configure"
8087 /* confdefs.h. */
8088 _ACEOF
8089 cat confdefs.h >>conftest.$ac_ext
8090 cat >>conftest.$ac_ext <<_ACEOF
8091 /* end confdefs.h. */
8092
8093 /* Override any gcc2 internal prototype to avoid an error. */
8094 #ifdef __cplusplus
8095 extern "C"
8096 #endif
8097 /* We use char because int might match the return type of a gcc2
8098 builtin and then its argument prototype would still apply. */
8099 char putmsg ();
8100 int
8101 main ()
8102 {
8103 putmsg ();
8104 ;
8105 return 0;
8106 }
8107 _ACEOF
8108 rm -f conftest.$ac_objext conftest$ac_exeext
8109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8110 (eval $ac_link) 2>&5
8111 ac_status=$?
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } &&
8114 { ac_try='test -s conftest$ac_exeext'
8115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116 (eval $ac_try) 2>&5
8117 ac_status=$?
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); }; }; then
8120 ac_cv_search_putmsg="-l$ac_lib"
8121 break
8122 else
8123 echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8125
8126 fi
8127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8128 done
8129 fi
8130 LIBS=$ac_func_search_save_LIBS
8131 fi
8132 echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
8133 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
8134 if test "$ac_cv_search_putmsg" != no; then
8135 test "$ac_cv_search_putmsg" = "none required" || LIBS="$ac_cv_search_putmsg $LIBS"
8136
8137 fi
8138
8139
8140
8141 LBL_LIBS="$LIBS"
8142 pfopen=/usr/examples/packetfilter/pfopen.c
8143 if test -f $pfopen ; then
8144
8145 for ac_func in pfopen
8146 do
8147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8148 echo "$as_me:$LINENO: checking for $ac_func" >&5
8149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8150 if eval "test \"\${$as_ac_var+set}\" = set"; then
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
8152 else
8153 cat >conftest.$ac_ext <<_ACEOF
8154 #line $LINENO "configure"
8155 /* confdefs.h. */
8156 _ACEOF
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h. */
8160 /* System header to define __stub macros and hopefully few prototypes,
8161 which can conflict with char $ac_func (); below.
8162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8163 <limits.h> exists even on freestanding compilers. */
8164 #ifdef __STDC__
8165 # include <limits.h>
8166 #else
8167 # include <assert.h>
8168 #endif
8169 /* Override any gcc2 internal prototype to avoid an error. */
8170 #ifdef __cplusplus
8171 extern "C"
8172 {
8173 #endif
8174 /* We use char because int might match the return type of a gcc2
8175 builtin and then its argument prototype would still apply. */
8176 char $ac_func ();
8177 /* The GNU C library defines this for functions which it implements
8178 to always fail with ENOSYS. Some functions are actually named
8179 something starting with __ and the normal name is an alias. */
8180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8181 choke me
8182 #else
8183 char (*f) () = $ac_func;
8184 #endif
8185 #ifdef __cplusplus
8186 }
8187 #endif
8188
8189 int
8190 main ()
8191 {
8192 return f != $ac_func;
8193 ;
8194 return 0;
8195 }
8196 _ACEOF
8197 rm -f conftest.$ac_objext conftest$ac_exeext
8198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8199 (eval $ac_link) 2>&5
8200 ac_status=$?
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } &&
8203 { ac_try='test -s conftest$ac_exeext'
8204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8205 (eval $ac_try) 2>&5
8206 ac_status=$?
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); }; }; then
8209 eval "$as_ac_var=yes"
8210 else
8211 echo "$as_me: failed program was:" >&5
8212 sed 's/^/| /' conftest.$ac_ext >&5
8213
8214 eval "$as_ac_var=no"
8215 fi
8216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8217 fi
8218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8219 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8220 if test `eval echo '${'$as_ac_var'}'` = yes; then
8221 cat >>confdefs.h <<_ACEOF
8222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8223 _ACEOF
8224
8225 fi
8226 done
8227
8228 if test $ac_cv_func_pfopen = "no" ; then
8229 echo "$as_me:$LINENO: result: Using $pfopen" >&5
8230 echo "${ECHO_T}Using $pfopen" >&6
8231 LIBS="$LIBS $pfopen"
8232 fi
8233 fi
8234 echo "$as_me:$LINENO: checking for local pcap library" >&5
8235 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6
8236 libpcap=FAIL
8237 lastdir=FAIL
8238 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
8239 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
8240 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
8241 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'`
8242 if test $lastdir = $basedir ; then
8243 continue;
8244 fi
8245 lastdir=$dir
8246 if test -r $dir/libpcap.a ; then
8247 libpcap=$dir/libpcap.a
8248 d=$dir
8249 fi
8250 done
8251 if test $libpcap = FAIL ; then
8252 echo "$as_me:$LINENO: result: not found" >&5
8253 echo "${ECHO_T}not found" >&6
8254 echo "$as_me:$LINENO: checking for main in -lpcap" >&5
8255 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6
8256 if test "${ac_cv_lib_pcap_main+set}" = set; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8258 else
8259 ac_check_lib_save_LIBS=$LIBS
8260 LIBS="-lpcap $LIBS"
8261 cat >conftest.$ac_ext <<_ACEOF
8262 #line $LINENO "configure"
8263 /* confdefs.h. */
8264 _ACEOF
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h. */
8268
8269
8270 int
8271 main ()
8272 {
8273 main ();
8274 ;
8275 return 0;
8276 }
8277 _ACEOF
8278 rm -f conftest.$ac_objext conftest$ac_exeext
8279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8280 (eval $ac_link) 2>&5
8281 ac_status=$?
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } &&
8284 { ac_try='test -s conftest$ac_exeext'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286 (eval $ac_try) 2>&5
8287 ac_status=$?
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8290 ac_cv_lib_pcap_main=yes
8291 else
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8294
8295 ac_cv_lib_pcap_main=no
8296 fi
8297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8298 LIBS=$ac_check_lib_save_LIBS
8299 fi
8300 echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
8301 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6
8302 if test $ac_cv_lib_pcap_main = yes; then
8303 libpcap="-lpcap"
8304 fi
8305
8306 if test $libpcap = FAIL ; then
8307 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
8308 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
8309 { (exit 1); exit 1; }; }
8310 fi
8311 echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
8312 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6
8313 if test \( ! -r /usr/local/include/pcap.h \) -a \
8314 \( ! -r /usr/include/pcap.h \); then
8315 if test -r /usr/local/include/pcap/pcap.h; then
8316 d="/usr/local/include/pcap"
8317 elif test -r /usr/include/pcap/pcap.h; then
8318 d="/usr/include/pcap"
8319 fi
8320 fi
8321 if test -z "$d" ; then
8322 echo "$as_me:$LINENO: result: not found" >&5
8323 echo "${ECHO_T}not found" >&6
8324 else
8325 V_INCLS="-I$d $V_INCLS"
8326 echo "$as_me:$LINENO: result: found -- -I$d added" >&5
8327 echo "${ECHO_T}found -- -I$d added" >&6
8328 fi
8329 else
8330 V_PCAPDEP=$libpcap
8331 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
8332 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
8333 if test -r $d/pcap.h; then
8334 V_INCLS="-I$d $V_INCLS"
8335 elif test -r $places/pcap.h; then
8336 V_INCLS="-I$places $V_INCLS"
8337 else
8338 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
8339 echo "$as_me: error: cannot find pcap.h" >&2;}
8340 { (exit see INSTALL); exit see INSTALL; }; }
8341 fi
8342 echo "$as_me:$LINENO: result: $libpcap" >&5
8343 echo "${ECHO_T}$libpcap" >&6
8344 fi
8345 LIBS="$libpcap $LIBS"
8346 case "$host_os" in
8347
8348 aix*)
8349 pseexe="/lib/pse.exp"
8350 echo "$as_me:$LINENO: checking for $pseexe" >&5
8351 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6
8352 if test -f $pseexe ; then
8353 echo "$as_me:$LINENO: result: yes" >&5
8354 echo "${ECHO_T}yes" >&6
8355 LIBS="$LIBS -I:$pseexe"
8356 fi
8357 #
8358 # We need "-lodm" and "-lcfg", as libpcap requires them on
8359 # AIX, and we just build a static libpcap.a and thus can't
8360 # arrange that when you link with libpcap you automatically
8361 # link with those libraries.
8362 #
8363 LIBS="$LIBS -lodm -lcfg"
8364 ;;
8365 esac
8366
8367 echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
8368 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6
8369 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
8370 echo $ECHO_N "(cached) $ECHO_C" >&6
8371 else
8372 cat >conftest.$ac_ext <<_ACEOF
8373 #line $LINENO "configure"
8374 /* confdefs.h. */
8375 _ACEOF
8376 cat confdefs.h >>conftest.$ac_ext
8377 cat >>conftest.$ac_ext <<_ACEOF
8378 /* end confdefs.h. */
8379 /* System header to define __stub macros and hopefully few prototypes,
8380 which can conflict with char pcap_list_datalinks (); below.
8381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8382 <limits.h> exists even on freestanding compilers. */
8383 #ifdef __STDC__
8384 # include <limits.h>
8385 #else
8386 # include <assert.h>
8387 #endif
8388 /* Override any gcc2 internal prototype to avoid an error. */
8389 #ifdef __cplusplus
8390 extern "C"
8391 {
8392 #endif
8393 /* We use char because int might match the return type of a gcc2
8394 builtin and then its argument prototype would still apply. */
8395 char pcap_list_datalinks ();
8396 /* The GNU C library defines this for functions which it implements
8397 to always fail with ENOSYS. Some functions are actually named
8398 something starting with __ and the normal name is an alias. */
8399 #if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks)
8400 choke me
8401 #else
8402 char (*f) () = pcap_list_datalinks;
8403 #endif
8404 #ifdef __cplusplus
8405 }
8406 #endif
8407
8408 int
8409 main ()
8410 {
8411 return f != pcap_list_datalinks;
8412 ;
8413 return 0;
8414 }
8415 _ACEOF
8416 rm -f conftest.$ac_objext conftest$ac_exeext
8417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8418 (eval $ac_link) 2>&5
8419 ac_status=$?
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); } &&
8422 { ac_try='test -s conftest$ac_exeext'
8423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424 (eval $ac_try) 2>&5
8425 ac_status=$?
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; }; then
8428 ac_cv_func_pcap_list_datalinks=yes
8429 else
8430 echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8432
8433 ac_cv_func_pcap_list_datalinks=no
8434 fi
8435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8436 fi
8437 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
8438 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6
8439 if test $ac_cv_func_pcap_list_datalinks = yes; then
8440 cat >>confdefs.h <<\_ACEOF
8441 #define HAVE_PCAP_LIST_DATALINKS 1
8442 _ACEOF
8443
8444 else
8445 LIBOBJS="$LIBOBJS datalinks.$ac_objext"
8446 fi
8447
8448 echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
8449 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6
8450 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
8451 echo $ECHO_N "(cached) $ECHO_C" >&6
8452 else
8453 cat >conftest.$ac_ext <<_ACEOF
8454 #line $LINENO "configure"
8455 /* confdefs.h. */
8456 _ACEOF
8457 cat confdefs.h >>conftest.$ac_ext
8458 cat >>conftest.$ac_ext <<_ACEOF
8459 /* end confdefs.h. */
8460 /* System header to define __stub macros and hopefully few prototypes,
8461 which can conflict with char pcap_set_datalink (); below.
8462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8463 <limits.h> exists even on freestanding compilers. */
8464 #ifdef __STDC__
8465 # include <limits.h>
8466 #else
8467 # include <assert.h>
8468 #endif
8469 /* Override any gcc2 internal prototype to avoid an error. */
8470 #ifdef __cplusplus
8471 extern "C"
8472 {
8473 #endif
8474 /* We use char because int might match the return type of a gcc2
8475 builtin and then its argument prototype would still apply. */
8476 char pcap_set_datalink ();
8477 /* The GNU C library defines this for functions which it implements
8478 to always fail with ENOSYS. Some functions are actually named
8479 something starting with __ and the normal name is an alias. */
8480 #if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
8481 choke me
8482 #else
8483 char (*f) () = pcap_set_datalink;
8484 #endif
8485 #ifdef __cplusplus
8486 }
8487 #endif
8488
8489 int
8490 main ()
8491 {
8492 return f != pcap_set_datalink;
8493 ;
8494 return 0;
8495 }
8496 _ACEOF
8497 rm -f conftest.$ac_objext conftest$ac_exeext
8498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8499 (eval $ac_link) 2>&5
8500 ac_status=$?
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } &&
8503 { ac_try='test -s conftest$ac_exeext'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505 (eval $ac_try) 2>&5
8506 ac_status=$?
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 ac_cv_func_pcap_set_datalink=yes
8510 else
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8513
8514 ac_cv_func_pcap_set_datalink=no
8515 fi
8516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8517 fi
8518 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
8519 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6
8520 if test $ac_cv_func_pcap_set_datalink = yes; then
8521 cat >>confdefs.h <<\_ACEOF
8522 #define HAVE_PCAP_SET_DATALINK 1
8523 _ACEOF
8524
8525 fi
8526
8527 echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
8528 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6
8529 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8531 else
8532 cat >conftest.$ac_ext <<_ACEOF
8533 #line $LINENO "configure"
8534 /* confdefs.h. */
8535 _ACEOF
8536 cat confdefs.h >>conftest.$ac_ext
8537 cat >>conftest.$ac_ext <<_ACEOF
8538 /* end confdefs.h. */
8539 /* System header to define __stub macros and hopefully few prototypes,
8540 which can conflict with char pcap_datalink_name_to_val (); below.
8541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8542 <limits.h> exists even on freestanding compilers. */
8543 #ifdef __STDC__
8544 # include <limits.h>
8545 #else
8546 # include <assert.h>
8547 #endif
8548 /* Override any gcc2 internal prototype to avoid an error. */
8549 #ifdef __cplusplus
8550 extern "C"
8551 {
8552 #endif
8553 /* We use char because int might match the return type of a gcc2
8554 builtin and then its argument prototype would still apply. */
8555 char pcap_datalink_name_to_val ();
8556 /* The GNU C library defines this for functions which it implements
8557 to always fail with ENOSYS. Some functions are actually named
8558 something starting with __ and the normal name is an alias. */
8559 #if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
8560 choke me
8561 #else
8562 char (*f) () = pcap_datalink_name_to_val;
8563 #endif
8564 #ifdef __cplusplus
8565 }
8566 #endif
8567
8568 int
8569 main ()
8570 {
8571 return f != pcap_datalink_name_to_val;
8572 ;
8573 return 0;
8574 }
8575 _ACEOF
8576 rm -f conftest.$ac_objext conftest$ac_exeext
8577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8578 (eval $ac_link) 2>&5
8579 ac_status=$?
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } &&
8582 { ac_try='test -s conftest$ac_exeext'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584 (eval $ac_try) 2>&5
8585 ac_status=$?
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; }; then
8588 ac_cv_func_pcap_datalink_name_to_val=yes
8589 else
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8592
8593 ac_cv_func_pcap_datalink_name_to_val=no
8594 fi
8595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8596 fi
8597 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
8598 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6
8599 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
8600
8601 cat >>confdefs.h <<\_ACEOF
8602 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
8603 _ACEOF
8604
8605 echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
8606 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
8607 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
8608 echo $ECHO_N "(cached) $ECHO_C" >&6
8609 else
8610 cat >conftest.$ac_ext <<_ACEOF
8611 #line $LINENO "configure"
8612 /* confdefs.h. */
8613 _ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h. */
8617 /* System header to define __stub macros and hopefully few prototypes,
8618 which can conflict with char pcap_datalink_val_to_description (); below.
8619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8620 <limits.h> exists even on freestanding compilers. */
8621 #ifdef __STDC__
8622 # include <limits.h>
8623 #else
8624 # include <assert.h>
8625 #endif
8626 /* Override any gcc2 internal prototype to avoid an error. */
8627 #ifdef __cplusplus
8628 extern "C"
8629 {
8630 #endif
8631 /* We use char because int might match the return type of a gcc2
8632 builtin and then its argument prototype would still apply. */
8633 char pcap_datalink_val_to_description ();
8634 /* The GNU C library defines this for functions which it implements
8635 to always fail with ENOSYS. Some functions are actually named
8636 something starting with __ and the normal name is an alias. */
8637 #if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description)
8638 choke me
8639 #else
8640 char (*f) () = pcap_datalink_val_to_description;
8641 #endif
8642 #ifdef __cplusplus
8643 }
8644 #endif
8645
8646 int
8647 main ()
8648 {
8649 return f != pcap_datalink_val_to_description;
8650 ;
8651 return 0;
8652 }
8653 _ACEOF
8654 rm -f conftest.$ac_objext conftest$ac_exeext
8655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8656 (eval $ac_link) 2>&5
8657 ac_status=$?
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); } &&
8660 { ac_try='test -s conftest$ac_exeext'
8661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662 (eval $ac_try) 2>&5
8663 ac_status=$?
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; }; then
8666 ac_cv_func_pcap_datalink_val_to_description=yes
8667 else
8668 echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8670
8671 ac_cv_func_pcap_datalink_val_to_description=no
8672 fi
8673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8674 fi
8675 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
8676 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6
8677 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
8678 cat >>confdefs.h <<\_ACEOF
8679 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
8680 _ACEOF
8681
8682 else
8683 LIBOBJS="$LIBOBJS dlnames.$ac_objext"
8684 fi
8685
8686
8687 else
8688 LIBOBJS="$LIBOBJS dlnames.$ac_objext"
8689 fi
8690
8691
8692
8693 for ac_func in pcap_breakloop
8694 do
8695 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8696 echo "$as_me:$LINENO: checking for $ac_func" >&5
8697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8698 if eval "test \"\${$as_ac_var+set}\" = set"; then
8699 echo $ECHO_N "(cached) $ECHO_C" >&6
8700 else
8701 cat >conftest.$ac_ext <<_ACEOF
8702 #line $LINENO "configure"
8703 /* confdefs.h. */
8704 _ACEOF
8705 cat confdefs.h >>conftest.$ac_ext
8706 cat >>conftest.$ac_ext <<_ACEOF
8707 /* end confdefs.h. */
8708 /* System header to define __stub macros and hopefully few prototypes,
8709 which can conflict with char $ac_func (); below.
8710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8711 <limits.h> exists even on freestanding compilers. */
8712 #ifdef __STDC__
8713 # include <limits.h>
8714 #else
8715 # include <assert.h>
8716 #endif
8717 /* Override any gcc2 internal prototype to avoid an error. */
8718 #ifdef __cplusplus
8719 extern "C"
8720 {
8721 #endif
8722 /* We use char because int might match the return type of a gcc2
8723 builtin and then its argument prototype would still apply. */
8724 char $ac_func ();
8725 /* The GNU C library defines this for functions which it implements
8726 to always fail with ENOSYS. Some functions are actually named
8727 something starting with __ and the normal name is an alias. */
8728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8729 choke me
8730 #else
8731 char (*f) () = $ac_func;
8732 #endif
8733 #ifdef __cplusplus
8734 }
8735 #endif
8736
8737 int
8738 main ()
8739 {
8740 return f != $ac_func;
8741 ;
8742 return 0;
8743 }
8744 _ACEOF
8745 rm -f conftest.$ac_objext conftest$ac_exeext
8746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8747 (eval $ac_link) 2>&5
8748 ac_status=$?
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } &&
8751 { ac_try='test -s conftest$ac_exeext'
8752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753 (eval $ac_try) 2>&5
8754 ac_status=$?
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); }; }; then
8757 eval "$as_ac_var=yes"
8758 else
8759 echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.$ac_ext >&5
8761
8762 eval "$as_ac_var=no"
8763 fi
8764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8765 fi
8766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8768 if test `eval echo '${'$as_ac_var'}'` = yes; then
8769 cat >>confdefs.h <<_ACEOF
8770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8771 _ACEOF
8772
8773 fi
8774 done
8775
8776
8777
8778 #
8779 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8780 # libraries (e.g., "-lsocket -lnsl" on Solaris).
8781 #
8782 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8783 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
8784 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
8785 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
8786 # it does not ship with a libc symbol "inet_ntop()", it ships with
8787 # "_inet_ntop()", and has a #define macro in one of the system headers
8788 # to rename it.
8789 #
8790 echo "$as_me:$LINENO: checking for inet_ntop" >&5
8791 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
8792 cat >conftest.$ac_ext <<_ACEOF
8793 #line $LINENO "configure"
8794 /* confdefs.h. */
8795 _ACEOF
8796 cat confdefs.h >>conftest.$ac_ext
8797 cat >>conftest.$ac_ext <<_ACEOF
8798 /* end confdefs.h. */
8799 #include <sys/types.h>
8800 #include <sys/socket.h>
8801 #include <netinet/in.h>
8802 #include <arpa/inet.h>
8803 int
8804 main ()
8805 {
8806 char src[4], dst[128];
8807 inet_ntop(AF_INET, src, dst, sizeof(dst));
8808 ;
8809 return 0;
8810 }
8811 _ACEOF
8812 rm -f conftest.$ac_objext conftest$ac_exeext
8813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8814 (eval $ac_link) 2>&5
8815 ac_status=$?
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); } &&
8818 { ac_try='test -s conftest$ac_exeext'
8819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8820 (eval $ac_try) 2>&5
8821 ac_status=$?
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); }; }; then
8824 echo "$as_me:$LINENO: result: yes" >&5
8825 echo "${ECHO_T}yes" >&6
8826 else
8827 echo "$as_me: failed program was:" >&5
8828 sed 's/^/| /' conftest.$ac_ext >&5
8829
8830 echo "$as_me:$LINENO: result: no" >&5
8831 echo "${ECHO_T}no" >&6
8832 LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
8833 fi
8834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8835 echo "$as_me:$LINENO: checking for inet_pton" >&5
8836 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
8837 cat >conftest.$ac_ext <<_ACEOF
8838 #line $LINENO "configure"
8839 /* confdefs.h. */
8840 _ACEOF
8841 cat confdefs.h >>conftest.$ac_ext
8842 cat >>conftest.$ac_ext <<_ACEOF
8843 /* end confdefs.h. */
8844 #include <sys/types.h>
8845 #include <sys/socket.h>
8846 #include <netinet/in.h>
8847 #include <arpa/inet.h>
8848 int
8849 main ()
8850 {
8851 char src[128], dst[4];
8852 inet_pton(AF_INET, src, dst);
8853 ;
8854 return 0;
8855 }
8856 _ACEOF
8857 rm -f conftest.$ac_objext conftest$ac_exeext
8858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8859 (eval $ac_link) 2>&5
8860 ac_status=$?
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); } &&
8863 { ac_try='test -s conftest$ac_exeext'
8864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8865 (eval $ac_try) 2>&5
8866 ac_status=$?
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; }; then
8869 echo "$as_me:$LINENO: result: yes" >&5
8870 echo "${ECHO_T}yes" >&6
8871 else
8872 echo "$as_me: failed program was:" >&5
8873 sed 's/^/| /' conftest.$ac_ext >&5
8874
8875 echo "$as_me:$LINENO: result: no" >&5
8876 echo "${ECHO_T}no" >&6
8877 LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
8878 fi
8879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8880 echo "$as_me:$LINENO: checking for inet_aton" >&5
8881 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
8882 cat >conftest.$ac_ext <<_ACEOF
8883 #line $LINENO "configure"
8884 /* confdefs.h. */
8885 _ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h. */
8889 #include <sys/types.h>
8890 #include <netinet/in.h>
8891 #include <arpa/inet.h>
8892 int
8893 main ()
8894 {
8895 char src[128];
8896 struct in_addr dst;
8897 inet_aton(src, &dst);
8898 ;
8899 return 0;
8900 }
8901 _ACEOF
8902 rm -f conftest.$ac_objext conftest$ac_exeext
8903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8904 (eval $ac_link) 2>&5
8905 ac_status=$?
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); } &&
8908 { ac_try='test -s conftest$ac_exeext'
8909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910 (eval $ac_try) 2>&5
8911 ac_status=$?
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); }; }; then
8914 echo "$as_me:$LINENO: result: yes" >&5
8915 echo "${ECHO_T}yes" >&6
8916 else
8917 echo "$as_me: failed program was:" >&5
8918 sed 's/^/| /' conftest.$ac_ext >&5
8919
8920 echo "$as_me:$LINENO: result: no" >&5
8921 echo "${ECHO_T}no" >&6
8922 LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
8923 fi
8924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8925
8926 #
8927 # Check for these after AC_LBL_LIBPCAP, for the same reason.
8928 #
8929 # You are in a twisty little maze of UN*Xes, all different.
8930 # Some might not have ether_ntohost().
8931 # Some might have it, but not declare it in any header file.
8932 # Some might have it, but declare it in <netinet/if_ether.h>.
8933 # Some might have it, but declare it in <netinet/ether.h>
8934 # (And some might have it but document it as something declared in
8935 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
8936 #
8937 # Before you is a C compiler.
8938 #
8939
8940 for ac_func in ether_ntohost
8941 do
8942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8943 echo "$as_me:$LINENO: checking for $ac_func" >&5
8944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8945 if eval "test \"\${$as_ac_var+set}\" = set"; then
8946 echo $ECHO_N "(cached) $ECHO_C" >&6
8947 else
8948 cat >conftest.$ac_ext <<_ACEOF
8949 #line $LINENO "configure"
8950 /* confdefs.h. */
8951 _ACEOF
8952 cat confdefs.h >>conftest.$ac_ext
8953 cat >>conftest.$ac_ext <<_ACEOF
8954 /* end confdefs.h. */
8955 /* System header to define __stub macros and hopefully few prototypes,
8956 which can conflict with char $ac_func (); below.
8957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8958 <limits.h> exists even on freestanding compilers. */
8959 #ifdef __STDC__
8960 # include <limits.h>
8961 #else
8962 # include <assert.h>
8963 #endif
8964 /* Override any gcc2 internal prototype to avoid an error. */
8965 #ifdef __cplusplus
8966 extern "C"
8967 {
8968 #endif
8969 /* We use char because int might match the return type of a gcc2
8970 builtin and then its argument prototype would still apply. */
8971 char $ac_func ();
8972 /* The GNU C library defines this for functions which it implements
8973 to always fail with ENOSYS. Some functions are actually named
8974 something starting with __ and the normal name is an alias. */
8975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8976 choke me
8977 #else
8978 char (*f) () = $ac_func;
8979 #endif
8980 #ifdef __cplusplus
8981 }
8982 #endif
8983
8984 int
8985 main ()
8986 {
8987 return f != $ac_func;
8988 ;
8989 return 0;
8990 }
8991 _ACEOF
8992 rm -f conftest.$ac_objext conftest$ac_exeext
8993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8994 (eval $ac_link) 2>&5
8995 ac_status=$?
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } &&
8998 { ac_try='test -s conftest$ac_exeext'
8999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000 (eval $ac_try) 2>&5
9001 ac_status=$?
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); }; }; then
9004 eval "$as_ac_var=yes"
9005 else
9006 echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9008
9009 eval "$as_ac_var=no"
9010 fi
9011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9012 fi
9013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9014 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9015 if test `eval echo '${'$as_ac_var'}'` = yes; then
9016 cat >>confdefs.h <<_ACEOF
9017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9018 _ACEOF
9019
9020 echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
9021 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
9022 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9024 else
9025
9026 if test "$cross_compiling" = yes; then
9027 ac_cv_buggy_ether_ntohost="not while cross-compiling"
9028 else
9029 cat >conftest.$ac_ext <<_ACEOF
9030 #line $LINENO "configure"
9031 /* confdefs.h. */
9032 _ACEOF
9033 cat confdefs.h >>conftest.$ac_ext
9034 cat >>conftest.$ac_ext <<_ACEOF
9035 /* end confdefs.h. */
9036
9037 #include <netdb.h>
9038 #include <sys/types.h>
9039 #include <sys/param.h>
9040 #include <sys/socket.h>
9041
9042 int
9043 main(int argc, char **argv)
9044 {
9045 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
9046 char name[MAXHOSTNAMELEN];
9047
9048 ether_ntohost(name, (struct ether_addr *)ea);
9049 exit(0);
9050 }
9051
9052 _ACEOF
9053 rm -f conftest$ac_exeext
9054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9055 (eval $ac_link) 2>&5
9056 ac_status=$?
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060 (eval $ac_try) 2>&5
9061 ac_status=$?
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); }; }; then
9064 ac_cv_buggy_ether_ntohost=no
9065 else
9066 echo "$as_me: program exited with status $ac_status" >&5
9067 echo "$as_me: failed program was:" >&5
9068 sed 's/^/| /' conftest.$ac_ext >&5
9069
9070 ( exit $ac_status )
9071 ac_cv_buggy_ether_ntohost=yes
9072 fi
9073 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9074 fi
9075 fi
9076 echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
9077 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
9078 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
9079 cat >>confdefs.h <<\_ACEOF
9080 #define USE_ETHER_NTOHOST 1
9081 _ACEOF
9082
9083 fi
9084
9085 fi
9086 done
9087
9088 if test "$ac_cv_func_ether_ntohost" = yes -a \
9089 "$ac_cv_buggy_ether_ntohost" = "no"; then
9090 #
9091 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
9092 #
9093 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
9094 #
9095 # Yes. Does it declare ether_ntohost()?
9096 #
9097 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
9098 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
9099 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
9100 echo $ECHO_N "(cached) $ECHO_C" >&6
9101 else
9102 cat >conftest.$ac_ext <<_ACEOF
9103 #line $LINENO "configure"
9104 /* confdefs.h. */
9105 _ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h. */
9109
9110 #include <sys/types.h>
9111 #include <sys/socket.h>
9112 #include <netinet/in.h>
9113 #include <arpa/inet.h>
9114 struct mbuf;
9115 struct rtentry;
9116 #include <net/if.h>
9117 #include <netinet/if_ether.h>
9118
9119
9120 int
9121 main ()
9122 {
9123 #ifndef ether_ntohost
9124 char *p = (char *) ether_ntohost;
9125 #endif
9126
9127 ;
9128 return 0;
9129 }
9130 _ACEOF
9131 rm -f conftest.$ac_objext
9132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9133 (eval $ac_compile) 2>&5
9134 ac_status=$?
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); } &&
9137 { ac_try='test -s conftest.$ac_objext'
9138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139 (eval $ac_try) 2>&5
9140 ac_status=$?
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); }; }; then
9143 ac_cv_have_decl_ether_ntohost=yes
9144 else
9145 echo "$as_me: failed program was:" >&5
9146 sed 's/^/| /' conftest.$ac_ext >&5
9147
9148 ac_cv_have_decl_ether_ntohost=no
9149 fi
9150 rm -f conftest.$ac_objext conftest.$ac_ext
9151 fi
9152 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
9153 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
9154 if test $ac_cv_have_decl_ether_ntohost = yes; then
9155
9156 cat >>confdefs.h <<_ACEOF
9157 #define HAVE_DECL_ETHER_NTOHOST 1
9158 _ACEOF
9159
9160
9161
9162 cat >>confdefs.h <<\_ACEOF
9163 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
9164 _ACEOF
9165
9166
9167 else
9168 cat >>confdefs.h <<_ACEOF
9169 #define HAVE_DECL_ETHER_NTOHOST 0
9170 _ACEOF
9171
9172
9173 fi
9174
9175
9176 fi
9177 #
9178 # Did that succeed?
9179 #
9180 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
9181 #
9182 # No, how about <netinet/ether.h>, as on Linux?
9183 #
9184
9185 for ac_header in netinet/ether.h
9186 do
9187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9189 echo "$as_me:$LINENO: checking for $ac_header" >&5
9190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
9193 fi
9194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9196 else
9197 # Is the header compilable?
9198 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9199 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9200 cat >conftest.$ac_ext <<_ACEOF
9201 #line $LINENO "configure"
9202 /* confdefs.h. */
9203 _ACEOF
9204 cat confdefs.h >>conftest.$ac_ext
9205 cat >>conftest.$ac_ext <<_ACEOF
9206 /* end confdefs.h. */
9207 $ac_includes_default
9208 #include <$ac_header>
9209 _ACEOF
9210 rm -f conftest.$ac_objext
9211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9212 (eval $ac_compile) 2>&5
9213 ac_status=$?
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } &&
9216 { ac_try='test -s conftest.$ac_objext'
9217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9218 (eval $ac_try) 2>&5
9219 ac_status=$?
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); }; }; then
9222 ac_header_compiler=yes
9223 else
9224 echo "$as_me: failed program was:" >&5
9225 sed 's/^/| /' conftest.$ac_ext >&5
9226
9227 ac_header_compiler=no
9228 fi
9229 rm -f conftest.$ac_objext conftest.$ac_ext
9230 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9231 echo "${ECHO_T}$ac_header_compiler" >&6
9232
9233 # Is the header present?
9234 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9235 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9236 cat >conftest.$ac_ext <<_ACEOF
9237 #line $LINENO "configure"
9238 /* confdefs.h. */
9239 _ACEOF
9240 cat confdefs.h >>conftest.$ac_ext
9241 cat >>conftest.$ac_ext <<_ACEOF
9242 /* end confdefs.h. */
9243 #include <$ac_header>
9244 _ACEOF
9245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9247 ac_status=$?
9248 grep -v '^ *+' conftest.er1 >conftest.err
9249 rm -f conftest.er1
9250 cat conftest.err >&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); } >/dev/null; then
9253 if test -s conftest.err; then
9254 ac_cpp_err=$ac_c_preproc_warn_flag
9255 else
9256 ac_cpp_err=
9257 fi
9258 else
9259 ac_cpp_err=yes
9260 fi
9261 if test -z "$ac_cpp_err"; then
9262 ac_header_preproc=yes
9263 else
9264 echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9266
9267 ac_header_preproc=no
9268 fi
9269 rm -f conftest.err conftest.$ac_ext
9270 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9271 echo "${ECHO_T}$ac_header_preproc" >&6
9272
9273 # So? What about this header?
9274 case $ac_header_compiler:$ac_header_preproc in
9275 yes:no )
9276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9280 (
9281 cat <<\_ASBOX
9282 ## ------------------------------------ ##
9283 ## Report this to bug-autoconf@gnu.org. ##
9284 ## ------------------------------------ ##
9285 _ASBOX
9286 ) |
9287 sed "s/^/$as_me: WARNING: /" >&2
9288 ;;
9289 no:yes )
9290 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9291 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9292 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9293 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9295 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9296 (
9297 cat <<\_ASBOX
9298 ## ------------------------------------ ##
9299 ## Report this to bug-autoconf@gnu.org. ##
9300 ## ------------------------------------ ##
9301 _ASBOX
9302 ) |
9303 sed "s/^/$as_me: WARNING: /" >&2
9304 ;;
9305 esac
9306 echo "$as_me:$LINENO: checking for $ac_header" >&5
9307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9309 echo $ECHO_N "(cached) $ECHO_C" >&6
9310 else
9311 eval "$as_ac_Header=$ac_header_preproc"
9312 fi
9313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9315
9316 fi
9317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9318 cat >>confdefs.h <<_ACEOF
9319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9320 _ACEOF
9321
9322 fi
9323
9324 done
9325
9326 if test "$ac_cv_header_netinet_ether_h" = yes; then
9327 #
9328 # We have it - does it declare ether_ntohost()?
9329 # Unset ac_cv_have_decl_ether_ntohost so we don't
9330 # treat the previous failure as a cached value and
9331 # suppress the next test.
9332 #
9333 unset ac_cv_have_decl_ether_ntohost
9334 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
9335 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
9336 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
9338 else
9339 cat >conftest.$ac_ext <<_ACEOF
9340 #line $LINENO "configure"
9341 /* confdefs.h. */
9342 _ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9346
9347 #include <netinet/ether.h>
9348
9349
9350 int
9351 main ()
9352 {
9353 #ifndef ether_ntohost
9354 char *p = (char *) ether_ntohost;
9355 #endif
9356
9357 ;
9358 return 0;
9359 }
9360 _ACEOF
9361 rm -f conftest.$ac_objext
9362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9363 (eval $ac_compile) 2>&5
9364 ac_status=$?
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } &&
9367 { ac_try='test -s conftest.$ac_objext'
9368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9369 (eval $ac_try) 2>&5
9370 ac_status=$?
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); }; }; then
9373 ac_cv_have_decl_ether_ntohost=yes
9374 else
9375 echo "$as_me: failed program was:" >&5
9376 sed 's/^/| /' conftest.$ac_ext >&5
9377
9378 ac_cv_have_decl_ether_ntohost=no
9379 fi
9380 rm -f conftest.$ac_objext conftest.$ac_ext
9381 fi
9382 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
9383 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
9384 if test $ac_cv_have_decl_ether_ntohost = yes; then
9385
9386 cat >>confdefs.h <<_ACEOF
9387 #define HAVE_DECL_ETHER_NTOHOST 1
9388 _ACEOF
9389
9390
9391
9392 cat >>confdefs.h <<\_ACEOF
9393 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
9394 _ACEOF
9395
9396
9397 else
9398 cat >>confdefs.h <<_ACEOF
9399 #define HAVE_DECL_ETHER_NTOHOST 0
9400 _ACEOF
9401
9402
9403 fi
9404
9405
9406 fi
9407 fi
9408 #
9409 # Is ether_ntohost() declared?
9410 #
9411 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
9412 #
9413 # No, we'll have to declare it ourselves.
9414 # Do we have "struct ether_addr"?
9415 #
9416 echo "$as_me:$LINENO: checking for struct ether_addr" >&5
9417 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6
9418 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
9419 echo $ECHO_N "(cached) $ECHO_C" >&6
9420 else
9421 cat >conftest.$ac_ext <<_ACEOF
9422 #line $LINENO "configure"
9423 /* confdefs.h. */
9424 _ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h. */
9428
9429 #include <sys/types.h>
9430 #include <sys/socket.h>
9431 #include <netinet/in.h>
9432 #include <arpa/inet.h>
9433 struct mbuf;
9434 struct rtentry;
9435 #include <net/if.h>
9436 #include <netinet/if_ether.h>
9437
9438
9439 int
9440 main ()
9441 {
9442 if ((struct ether_addr *) 0)
9443 return 0;
9444 if (sizeof (struct ether_addr))
9445 return 0;
9446 ;
9447 return 0;
9448 }
9449 _ACEOF
9450 rm -f conftest.$ac_objext
9451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9452 (eval $ac_compile) 2>&5
9453 ac_status=$?
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); } &&
9456 { ac_try='test -s conftest.$ac_objext'
9457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458 (eval $ac_try) 2>&5
9459 ac_status=$?
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; }; then
9462 ac_cv_type_struct_ether_addr=yes
9463 else
9464 echo "$as_me: failed program was:" >&5
9465 sed 's/^/| /' conftest.$ac_ext >&5
9466
9467 ac_cv_type_struct_ether_addr=no
9468 fi
9469 rm -f conftest.$ac_objext conftest.$ac_ext
9470 fi
9471 echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
9472 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6
9473 if test $ac_cv_type_struct_ether_addr = yes; then
9474
9475 cat >>confdefs.h <<_ACEOF
9476 #define HAVE_STRUCT_ETHER_ADDR 1
9477 _ACEOF
9478
9479
9480 fi
9481
9482 fi
9483 fi
9484
9485
9486 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
9487 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
9488 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
9489 echo $ECHO_N "(cached) $ECHO_C" >&6
9490 else
9491 cat >conftest.$ac_ext <<_ACEOF
9492 #line $LINENO "configure"
9493 /* confdefs.h. */
9494 _ACEOF
9495 cat confdefs.h >>conftest.$ac_ext
9496 cat >>conftest.$ac_ext <<_ACEOF
9497 /* end confdefs.h. */
9498
9499 # include <sys/types.h>
9500 # include <sys/socket.h>
9501 int
9502 main ()
9503 {
9504 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9505 ;
9506 return 0;
9507 }
9508 _ACEOF
9509 rm -f conftest.$ac_objext
9510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9511 (eval $ac_compile) 2>&5
9512 ac_status=$?
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } &&
9515 { ac_try='test -s conftest.$ac_objext'
9516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9517 (eval $ac_try) 2>&5
9518 ac_status=$?
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); }; }; then
9521 ac_cv_sockaddr_has_sa_len=yes
9522 else
9523 echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9525
9526 ac_cv_sockaddr_has_sa_len=no
9527 fi
9528 rm -f conftest.$ac_objext conftest.$ac_ext
9529 fi
9530
9531 echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
9532 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6
9533 if test $ac_cv_sockaddr_has_sa_len = yes ; then
9534 cat >>confdefs.h <<\_ACEOF
9535 #define HAVE_SOCKADDR_SA_LEN 1
9536 _ACEOF
9537
9538 fi
9539
9540 if test "$ac_cv_sockaddr_has_sa_len" = no; then
9541 missing_includes=yes
9542 fi
9543
9544
9545
9546
9547 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
9548 do
9549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9550 echo "$as_me:$LINENO: checking for $ac_func" >&5
9551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9552 if eval "test \"\${$as_ac_var+set}\" = set"; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9554 else
9555 cat >conftest.$ac_ext <<_ACEOF
9556 #line $LINENO "configure"
9557 /* confdefs.h. */
9558 _ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h. */
9562 /* System header to define __stub macros and hopefully few prototypes,
9563 which can conflict with char $ac_func (); below.
9564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9565 <limits.h> exists even on freestanding compilers. */
9566 #ifdef __STDC__
9567 # include <limits.h>
9568 #else
9569 # include <assert.h>
9570 #endif
9571 /* Override any gcc2 internal prototype to avoid an error. */
9572 #ifdef __cplusplus
9573 extern "C"
9574 {
9575 #endif
9576 /* We use char because int might match the return type of a gcc2
9577 builtin and then its argument prototype would still apply. */
9578 char $ac_func ();
9579 /* The GNU C library defines this for functions which it implements
9580 to always fail with ENOSYS. Some functions are actually named
9581 something starting with __ and the normal name is an alias. */
9582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9583 choke me
9584 #else
9585 char (*f) () = $ac_func;
9586 #endif
9587 #ifdef __cplusplus
9588 }
9589 #endif
9590
9591 int
9592 main ()
9593 {
9594 return f != $ac_func;
9595 ;
9596 return 0;
9597 }
9598 _ACEOF
9599 rm -f conftest.$ac_objext conftest$ac_exeext
9600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9601 (eval $ac_link) 2>&5
9602 ac_status=$?
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); } &&
9605 { ac_try='test -s conftest$ac_exeext'
9606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9607 (eval $ac_try) 2>&5
9608 ac_status=$?
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }; }; then
9611 eval "$as_ac_var=yes"
9612 else
9613 echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9615
9616 eval "$as_ac_var=no"
9617 fi
9618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9619 fi
9620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9621 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9622 if test `eval echo '${'$as_ac_var'}'` = yes; then
9623 cat >>confdefs.h <<_ACEOF
9624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9625 _ACEOF
9626
9627 fi
9628 done
9629
9630 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
9631 savedcflags="$CFLAGS"
9632 CFLAGS="$CFLAGS $V_INCLS"
9633 echo "$as_me:$LINENO: checking for pcap_if_t" >&5
9634 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6
9635 if test "${ac_cv_type_pcap_if_t+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9637 else
9638 cat >conftest.$ac_ext <<_ACEOF
9639 #line $LINENO "configure"
9640 /* confdefs.h. */
9641 _ACEOF
9642 cat confdefs.h >>conftest.$ac_ext
9643 cat >>conftest.$ac_ext <<_ACEOF
9644 /* end confdefs.h. */
9645 #include <pcap.h>
9646
9647 int
9648 main ()
9649 {
9650 if ((pcap_if_t *) 0)
9651 return 0;
9652 if (sizeof (pcap_if_t))
9653 return 0;
9654 ;
9655 return 0;
9656 }
9657 _ACEOF
9658 rm -f conftest.$ac_objext
9659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9660 (eval $ac_compile) 2>&5
9661 ac_status=$?
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } &&
9664 { ac_try='test -s conftest.$ac_objext'
9665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666 (eval $ac_try) 2>&5
9667 ac_status=$?
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; }; then
9670 ac_cv_type_pcap_if_t=yes
9671 else
9672 echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9674
9675 ac_cv_type_pcap_if_t=no
9676 fi
9677 rm -f conftest.$ac_objext conftest.$ac_ext
9678 fi
9679 echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
9680 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6
9681 if test $ac_cv_type_pcap_if_t = yes; then
9682
9683 cat >>confdefs.h <<_ACEOF
9684 #define HAVE_PCAP_IF_T 1
9685 _ACEOF
9686
9687
9688 fi
9689
9690 CFLAGS="$savedcflags"
9691 fi
9692
9693 if test $ac_cv_func_pcap_lib_version = "no" ; then
9694 echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
9695 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
9696 cat >conftest.$ac_ext <<_ACEOF
9697 #line $LINENO "configure"
9698 /* confdefs.h. */
9699 _ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h. */
9703
9704 int
9705 main ()
9706 {
9707
9708 extern char pcap_version[];
9709
9710 return (int)pcap_version;
9711
9712 ;
9713 return 0;
9714 }
9715 _ACEOF
9716 rm -f conftest.$ac_objext conftest$ac_exeext
9717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9718 (eval $ac_link) 2>&5
9719 ac_status=$?
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } &&
9722 { ac_try='test -s conftest$ac_exeext'
9723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724 (eval $ac_try) 2>&5
9725 ac_status=$?
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); }; }; then
9728 ac_lbl_cv_pcap_version_defined=yes
9729 else
9730 echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9732
9733 ac_lbl_cv_pcap_version_defined=no
9734 fi
9735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9736 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
9737 echo "$as_me:$LINENO: result: yes" >&5
9738 echo "${ECHO_T}yes" >&6
9739 cat >>confdefs.h <<\_ACEOF
9740 #define HAVE_PCAP_VERSION 1
9741 _ACEOF
9742
9743 else
9744 echo "$as_me:$LINENO: result: no" >&5
9745 echo "${ECHO_T}no" >&6
9746 fi
9747 fi
9748 echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
9749 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6
9750 cat >conftest.$ac_ext <<_ACEOF
9751 #line $LINENO "configure"
9752 /* confdefs.h. */
9753 _ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h. */
9757
9758 int
9759 main ()
9760 {
9761
9762 extern int pcap_debug;
9763
9764 return pcap_debug;
9765
9766 ;
9767 return 0;
9768 }
9769 _ACEOF
9770 rm -f conftest.$ac_objext conftest$ac_exeext
9771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9772 (eval $ac_link) 2>&5
9773 ac_status=$?
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); } &&
9776 { ac_try='test -s conftest$ac_exeext'
9777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778 (eval $ac_try) 2>&5
9779 ac_status=$?
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; }; then
9782 ac_lbl_cv_pcap_debug_defined=yes
9783 else
9784 echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.$ac_ext >&5
9786
9787 ac_lbl_cv_pcap_debug_defined=no
9788 fi
9789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9790 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
9791 echo "$as_me:$LINENO: result: yes" >&5
9792 echo "${ECHO_T}yes" >&6
9793 cat >>confdefs.h <<\_ACEOF
9794 #define HAVE_PCAP_DEBUG 1
9795 _ACEOF
9796
9797 else
9798 echo "$as_me:$LINENO: result: no" >&5
9799 echo "${ECHO_T}no" >&6
9800 #
9801 # OK, what about "yydebug"?
9802 #
9803 echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
9804 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6
9805 cat >conftest.$ac_ext <<_ACEOF
9806 #line $LINENO "configure"
9807 /* confdefs.h. */
9808 _ACEOF
9809 cat confdefs.h >>conftest.$ac_ext
9810 cat >>conftest.$ac_ext <<_ACEOF
9811 /* end confdefs.h. */
9812
9813 int
9814 main ()
9815 {
9816
9817 extern int yydebug;
9818
9819 return yydebug;
9820
9821 ;
9822 return 0;
9823 }
9824 _ACEOF
9825 rm -f conftest.$ac_objext conftest$ac_exeext
9826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9827 (eval $ac_link) 2>&5
9828 ac_status=$?
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } &&
9831 { ac_try='test -s conftest$ac_exeext'
9832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9833 (eval $ac_try) 2>&5
9834 ac_status=$?
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); }; }; then
9837 ac_lbl_cv_yydebug_defined=yes
9838 else
9839 echo "$as_me: failed program was:" >&5
9840 sed 's/^/| /' conftest.$ac_ext >&5
9841
9842 ac_lbl_cv_yydebug_defined=no
9843 fi
9844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9845 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
9846 echo "$as_me:$LINENO: result: yes" >&5
9847 echo "${ECHO_T}yes" >&6
9848 cat >>confdefs.h <<\_ACEOF
9849 #define HAVE_YYDEBUG 1
9850 _ACEOF
9851
9852 else
9853 echo "$as_me:$LINENO: result: no" >&5
9854 echo "${ECHO_T}no" >&6
9855 fi
9856 fi
9857
9858 for ac_func in bpf_dump
9859 do
9860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9861 echo "$as_me:$LINENO: checking for $ac_func" >&5
9862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9863 if eval "test \"\${$as_ac_var+set}\" = set"; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9865 else
9866 cat >conftest.$ac_ext <<_ACEOF
9867 #line $LINENO "configure"
9868 /* confdefs.h. */
9869 _ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h. */
9873 /* System header to define __stub macros and hopefully few prototypes,
9874 which can conflict with char $ac_func (); below.
9875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9876 <limits.h> exists even on freestanding compilers. */
9877 #ifdef __STDC__
9878 # include <limits.h>
9879 #else
9880 # include <assert.h>
9881 #endif
9882 /* Override any gcc2 internal prototype to avoid an error. */
9883 #ifdef __cplusplus
9884 extern "C"
9885 {
9886 #endif
9887 /* We use char because int might match the return type of a gcc2
9888 builtin and then its argument prototype would still apply. */
9889 char $ac_func ();
9890 /* The GNU C library defines this for functions which it implements
9891 to always fail with ENOSYS. Some functions are actually named
9892 something starting with __ and the normal name is an alias. */
9893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9894 choke me
9895 #else
9896 char (*f) () = $ac_func;
9897 #endif
9898 #ifdef __cplusplus
9899 }
9900 #endif
9901
9902 int
9903 main ()
9904 {
9905 return f != $ac_func;
9906 ;
9907 return 0;
9908 }
9909 _ACEOF
9910 rm -f conftest.$ac_objext conftest$ac_exeext
9911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9912 (eval $ac_link) 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } &&
9916 { ac_try='test -s conftest$ac_exeext'
9917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918 (eval $ac_try) 2>&5
9919 ac_status=$?
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; }; then
9922 eval "$as_ac_var=yes"
9923 else
9924 echo "$as_me: failed program was:" >&5
9925 sed 's/^/| /' conftest.$ac_ext >&5
9926
9927 eval "$as_ac_var=no"
9928 fi
9929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9930 fi
9931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9932 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9933 if test `eval echo '${'$as_ac_var'}'` = yes; then
9934 cat >>confdefs.h <<_ACEOF
9935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9936 _ACEOF
9937
9938 else
9939 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9940 fi
9941 done
9942
9943
9944 V_GROUP=0
9945 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
9946 V_GROUP=wheel
9947 fi
9948 case "$host_os" in
9949
9950 aix*)
9951 cat >>confdefs.h <<\_ACEOF
9952 #define _SUN 1
9953 _ACEOF
9954
9955 ;;
9956
9957 irix*)
9958 V_GROUP=sys
9959 ;;
9960
9961 osf*)
9962 V_GROUP=system
9963 ;;
9964
9965 solaris*)
9966 V_GROUP=sys
9967 ;;
9968 esac
9969
9970 if test -f /dev/bpf0 ; then
9971 V_GROUP=bpf
9972 fi
9973
9974
9975 for ac_header in sys/bitypes.h
9976 do
9977 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9979 echo "$as_me:$LINENO: checking for $ac_header" >&5
9980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9982 echo $ECHO_N "(cached) $ECHO_C" >&6
9983 fi
9984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9986 else
9987 # Is the header compilable?
9988 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9990 cat >conftest.$ac_ext <<_ACEOF
9991 #line $LINENO "configure"
9992 /* confdefs.h. */
9993 _ACEOF
9994 cat confdefs.h >>conftest.$ac_ext
9995 cat >>conftest.$ac_ext <<_ACEOF
9996 /* end confdefs.h. */
9997 $ac_includes_default
9998 #include <$ac_header>
9999 _ACEOF
10000 rm -f conftest.$ac_objext
10001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10002 (eval $ac_compile) 2>&5
10003 ac_status=$?
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); } &&
10006 { ac_try='test -s conftest.$ac_objext'
10007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10008 (eval $ac_try) 2>&5
10009 ac_status=$?
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); }; }; then
10012 ac_header_compiler=yes
10013 else
10014 echo "$as_me: failed program was:" >&5
10015 sed 's/^/| /' conftest.$ac_ext >&5
10016
10017 ac_header_compiler=no
10018 fi
10019 rm -f conftest.$ac_objext conftest.$ac_ext
10020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10021 echo "${ECHO_T}$ac_header_compiler" >&6
10022
10023 # Is the header present?
10024 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10026 cat >conftest.$ac_ext <<_ACEOF
10027 #line $LINENO "configure"
10028 /* confdefs.h. */
10029 _ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h. */
10033 #include <$ac_header>
10034 _ACEOF
10035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10037 ac_status=$?
10038 grep -v '^ *+' conftest.er1 >conftest.err
10039 rm -f conftest.er1
10040 cat conftest.err >&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } >/dev/null; then
10043 if test -s conftest.err; then
10044 ac_cpp_err=$ac_c_preproc_warn_flag
10045 else
10046 ac_cpp_err=
10047 fi
10048 else
10049 ac_cpp_err=yes
10050 fi
10051 if test -z "$ac_cpp_err"; then
10052 ac_header_preproc=yes
10053 else
10054 echo "$as_me: failed program was:" >&5
10055 sed 's/^/| /' conftest.$ac_ext >&5
10056
10057 ac_header_preproc=no
10058 fi
10059 rm -f conftest.err conftest.$ac_ext
10060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10061 echo "${ECHO_T}$ac_header_preproc" >&6
10062
10063 # So? What about this header?
10064 case $ac_header_compiler:$ac_header_preproc in
10065 yes:no )
10066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10070 (
10071 cat <<\_ASBOX
10072 ## ------------------------------------ ##
10073 ## Report this to bug-autoconf@gnu.org. ##
10074 ## ------------------------------------ ##
10075 _ASBOX
10076 ) |
10077 sed "s/^/$as_me: WARNING: /" >&2
10078 ;;
10079 no:yes )
10080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10086 (
10087 cat <<\_ASBOX
10088 ## ------------------------------------ ##
10089 ## Report this to bug-autoconf@gnu.org. ##
10090 ## ------------------------------------ ##
10091 _ASBOX
10092 ) |
10093 sed "s/^/$as_me: WARNING: /" >&2
10094 ;;
10095 esac
10096 echo "$as_me:$LINENO: checking for $ac_header" >&5
10097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10099 echo $ECHO_N "(cached) $ECHO_C" >&6
10100 else
10101 eval "$as_ac_Header=$ac_header_preproc"
10102 fi
10103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10105
10106 fi
10107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10108 cat >>confdefs.h <<_ACEOF
10109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10110 _ACEOF
10111
10112 fi
10113
10114 done
10115
10116
10117 echo "$as_me:$LINENO: checking for int8_t" >&5
10118 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
10119 if test "${ac_cv_type_int8_t+set}" = set; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
10121 else
10122 cat >conftest.$ac_ext <<_ACEOF
10123 #line $LINENO "configure"
10124 /* confdefs.h. */
10125 _ACEOF
10126 cat confdefs.h >>conftest.$ac_ext
10127 cat >>conftest.$ac_ext <<_ACEOF
10128 /* end confdefs.h. */
10129 $ac_includes_default
10130 int
10131 main ()
10132 {
10133 if ((int8_t *) 0)
10134 return 0;
10135 if (sizeof (int8_t))
10136 return 0;
10137 ;
10138 return 0;
10139 }
10140 _ACEOF
10141 rm -f conftest.$ac_objext
10142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10143 (eval $ac_compile) 2>&5
10144 ac_status=$?
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } &&
10147 { ac_try='test -s conftest.$ac_objext'
10148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10149 (eval $ac_try) 2>&5
10150 ac_status=$?
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; }; then
10153 ac_cv_type_int8_t=yes
10154 else
10155 echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10157
10158 ac_cv_type_int8_t=no
10159 fi
10160 rm -f conftest.$ac_objext conftest.$ac_ext
10161 fi
10162 echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
10163 echo "${ECHO_T}$ac_cv_type_int8_t" >&6
10164 if test $ac_cv_type_int8_t = yes; then
10165 :
10166 else
10167
10168 cat >>confdefs.h <<\_ACEOF
10169 #define int8_t signed char
10170 _ACEOF
10171
10172 fi
10173
10174 echo "$as_me:$LINENO: checking for u_int8_t" >&5
10175 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
10176 if test "${ac_cv_type_u_int8_t+set}" = set; then
10177 echo $ECHO_N "(cached) $ECHO_C" >&6
10178 else
10179 cat >conftest.$ac_ext <<_ACEOF
10180 #line $LINENO "configure"
10181 /* confdefs.h. */
10182 _ACEOF
10183 cat confdefs.h >>conftest.$ac_ext
10184 cat >>conftest.$ac_ext <<_ACEOF
10185 /* end confdefs.h. */
10186 $ac_includes_default
10187 #ifdef HAVE_SYS_BITYPES_H
10188 #include <sys/bitypes.h>
10189 #endif
10190
10191 int
10192 main ()
10193 {
10194 if ((u_int8_t *) 0)
10195 return 0;
10196 if (sizeof (u_int8_t))
10197 return 0;
10198 ;
10199 return 0;
10200 }
10201 _ACEOF
10202 rm -f conftest.$ac_objext
10203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10204 (eval $ac_compile) 2>&5
10205 ac_status=$?
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } &&
10208 { ac_try='test -s conftest.$ac_objext'
10209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210 (eval $ac_try) 2>&5
10211 ac_status=$?
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; }; then
10214 ac_cv_type_u_int8_t=yes
10215 else
10216 echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10218
10219 ac_cv_type_u_int8_t=no
10220 fi
10221 rm -f conftest.$ac_objext conftest.$ac_ext
10222 fi
10223 echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
10224 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
10225 if test $ac_cv_type_u_int8_t = yes; then
10226 :
10227 else
10228
10229 cat >>confdefs.h <<\_ACEOF
10230 #define u_int8_t unsigned char
10231 _ACEOF
10232
10233 fi
10234
10235 echo "$as_me:$LINENO: checking for int16_t" >&5
10236 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
10237 if test "${ac_cv_type_int16_t+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10239 else
10240 cat >conftest.$ac_ext <<_ACEOF
10241 #line $LINENO "configure"
10242 /* confdefs.h. */
10243 _ACEOF
10244 cat confdefs.h >>conftest.$ac_ext
10245 cat >>conftest.$ac_ext <<_ACEOF
10246 /* end confdefs.h. */
10247 $ac_includes_default
10248 int
10249 main ()
10250 {
10251 if ((int16_t *) 0)
10252 return 0;
10253 if (sizeof (int16_t))
10254 return 0;
10255 ;
10256 return 0;
10257 }
10258 _ACEOF
10259 rm -f conftest.$ac_objext
10260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10261 (eval $ac_compile) 2>&5
10262 ac_status=$?
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); } &&
10265 { ac_try='test -s conftest.$ac_objext'
10266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10267 (eval $ac_try) 2>&5
10268 ac_status=$?
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); }; }; then
10271 ac_cv_type_int16_t=yes
10272 else
10273 echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.$ac_ext >&5
10275
10276 ac_cv_type_int16_t=no
10277 fi
10278 rm -f conftest.$ac_objext conftest.$ac_ext
10279 fi
10280 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
10281 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
10282 if test $ac_cv_type_int16_t = yes; then
10283 :
10284 else
10285
10286 cat >>confdefs.h <<\_ACEOF
10287 #define int16_t short
10288 _ACEOF
10289
10290 fi
10291
10292 echo "$as_me:$LINENO: checking for u_int16_t" >&5
10293 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
10294 if test "${ac_cv_type_u_int16_t+set}" = set; then
10295 echo $ECHO_N "(cached) $ECHO_C" >&6
10296 else
10297 cat >conftest.$ac_ext <<_ACEOF
10298 #line $LINENO "configure"
10299 /* confdefs.h. */
10300 _ACEOF
10301 cat confdefs.h >>conftest.$ac_ext
10302 cat >>conftest.$ac_ext <<_ACEOF
10303 /* end confdefs.h. */
10304 $ac_includes_default
10305 #ifdef HAVE_SYS_BITYPES_H
10306 #include <sys/bitypes.h>
10307 #endif
10308
10309 int
10310 main ()
10311 {
10312 if ((u_int16_t *) 0)
10313 return 0;
10314 if (sizeof (u_int16_t))
10315 return 0;
10316 ;
10317 return 0;
10318 }
10319 _ACEOF
10320 rm -f conftest.$ac_objext
10321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10322 (eval $ac_compile) 2>&5
10323 ac_status=$?
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); } &&
10326 { ac_try='test -s conftest.$ac_objext'
10327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328 (eval $ac_try) 2>&5
10329 ac_status=$?
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); }; }; then
10332 ac_cv_type_u_int16_t=yes
10333 else
10334 echo "$as_me: failed program was:" >&5
10335 sed 's/^/| /' conftest.$ac_ext >&5
10336
10337 ac_cv_type_u_int16_t=no
10338 fi
10339 rm -f conftest.$ac_objext conftest.$ac_ext
10340 fi
10341 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
10342 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
10343 if test $ac_cv_type_u_int16_t = yes; then
10344 :
10345 else
10346
10347 cat >>confdefs.h <<\_ACEOF
10348 #define u_int16_t unsigned short
10349 _ACEOF
10350
10351 fi
10352
10353 echo "$as_me:$LINENO: checking for int32_t" >&5
10354 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
10355 if test "${ac_cv_type_int32_t+set}" = set; then
10356 echo $ECHO_N "(cached) $ECHO_C" >&6
10357 else
10358 cat >conftest.$ac_ext <<_ACEOF
10359 #line $LINENO "configure"
10360 /* confdefs.h. */
10361 _ACEOF
10362 cat confdefs.h >>conftest.$ac_ext
10363 cat >>conftest.$ac_ext <<_ACEOF
10364 /* end confdefs.h. */
10365 $ac_includes_default
10366 int
10367 main ()
10368 {
10369 if ((int32_t *) 0)
10370 return 0;
10371 if (sizeof (int32_t))
10372 return 0;
10373 ;
10374 return 0;
10375 }
10376 _ACEOF
10377 rm -f conftest.$ac_objext
10378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10379 (eval $ac_compile) 2>&5
10380 ac_status=$?
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } &&
10383 { ac_try='test -s conftest.$ac_objext'
10384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10385 (eval $ac_try) 2>&5
10386 ac_status=$?
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); }; }; then
10389 ac_cv_type_int32_t=yes
10390 else
10391 echo "$as_me: failed program was:" >&5
10392 sed 's/^/| /' conftest.$ac_ext >&5
10393
10394 ac_cv_type_int32_t=no
10395 fi
10396 rm -f conftest.$ac_objext conftest.$ac_ext
10397 fi
10398 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
10399 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
10400 if test $ac_cv_type_int32_t = yes; then
10401 :
10402 else
10403
10404 cat >>confdefs.h <<\_ACEOF
10405 #define int32_t int
10406 _ACEOF
10407
10408 fi
10409
10410 echo "$as_me:$LINENO: checking for u_int32_t" >&5
10411 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
10412 if test "${ac_cv_type_u_int32_t+set}" = set; then
10413 echo $ECHO_N "(cached) $ECHO_C" >&6
10414 else
10415 cat >conftest.$ac_ext <<_ACEOF
10416 #line $LINENO "configure"
10417 /* confdefs.h. */
10418 _ACEOF
10419 cat confdefs.h >>conftest.$ac_ext
10420 cat >>conftest.$ac_ext <<_ACEOF
10421 /* end confdefs.h. */
10422 $ac_includes_default
10423 #ifdef HAVE_SYS_BITYPES_H
10424 #include <sys/bitypes.h>
10425 #endif
10426
10427 int
10428 main ()
10429 {
10430 if ((u_int32_t *) 0)
10431 return 0;
10432 if (sizeof (u_int32_t))
10433 return 0;
10434 ;
10435 return 0;
10436 }
10437 _ACEOF
10438 rm -f conftest.$ac_objext
10439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10440 (eval $ac_compile) 2>&5
10441 ac_status=$?
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } &&
10444 { ac_try='test -s conftest.$ac_objext'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10447 ac_status=$?
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; }; then
10450 ac_cv_type_u_int32_t=yes
10451 else
10452 echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.$ac_ext >&5
10454
10455 ac_cv_type_u_int32_t=no
10456 fi
10457 rm -f conftest.$ac_objext conftest.$ac_ext
10458 fi
10459 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
10460 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
10461 if test $ac_cv_type_u_int32_t = yes; then
10462 :
10463 else
10464
10465 cat >>confdefs.h <<\_ACEOF
10466 #define u_int32_t unsigned int
10467 _ACEOF
10468
10469 fi
10470
10471 echo "$as_me:$LINENO: checking for int64_t" >&5
10472 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
10473 if test "${ac_cv_type_int64_t+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10475 else
10476 cat >conftest.$ac_ext <<_ACEOF
10477 #line $LINENO "configure"
10478 /* confdefs.h. */
10479 _ACEOF
10480 cat confdefs.h >>conftest.$ac_ext
10481 cat >>conftest.$ac_ext <<_ACEOF
10482 /* end confdefs.h. */
10483 $ac_includes_default
10484 int
10485 main ()
10486 {
10487 if ((int64_t *) 0)
10488 return 0;
10489 if (sizeof (int64_t))
10490 return 0;
10491 ;
10492 return 0;
10493 }
10494 _ACEOF
10495 rm -f conftest.$ac_objext
10496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10497 (eval $ac_compile) 2>&5
10498 ac_status=$?
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } &&
10501 { ac_try='test -s conftest.$ac_objext'
10502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503 (eval $ac_try) 2>&5
10504 ac_status=$?
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; }; then
10507 ac_cv_type_int64_t=yes
10508 else
10509 echo "$as_me: failed program was:" >&5
10510 sed 's/^/| /' conftest.$ac_ext >&5
10511
10512 ac_cv_type_int64_t=no
10513 fi
10514 rm -f conftest.$ac_objext conftest.$ac_ext
10515 fi
10516 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
10517 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
10518 if test $ac_cv_type_int64_t = yes; then
10519 :
10520 else
10521
10522 cat >>confdefs.h <<\_ACEOF
10523 #define int64_t long long
10524 _ACEOF
10525
10526 fi
10527
10528 echo "$as_me:$LINENO: checking for u_int64_t" >&5
10529 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
10530 if test "${ac_cv_type_u_int64_t+set}" = set; then
10531 echo $ECHO_N "(cached) $ECHO_C" >&6
10532 else
10533 cat >conftest.$ac_ext <<_ACEOF
10534 #line $LINENO "configure"
10535 /* confdefs.h. */
10536 _ACEOF
10537 cat confdefs.h >>conftest.$ac_ext
10538 cat >>conftest.$ac_ext <<_ACEOF
10539 /* end confdefs.h. */
10540 $ac_includes_default
10541 #ifdef HAVE_SYS_BITYPES_H
10542 #include <sys/bitypes.h>
10543 #endif
10544
10545 int
10546 main ()
10547 {
10548 if ((u_int64_t *) 0)
10549 return 0;
10550 if (sizeof (u_int64_t))
10551 return 0;
10552 ;
10553 return 0;
10554 }
10555 _ACEOF
10556 rm -f conftest.$ac_objext
10557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10558 (eval $ac_compile) 2>&5
10559 ac_status=$?
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); } &&
10562 { ac_try='test -s conftest.$ac_objext'
10563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564 (eval $ac_try) 2>&5
10565 ac_status=$?
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; }; then
10568 ac_cv_type_u_int64_t=yes
10569 else
10570 echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10572
10573 ac_cv_type_u_int64_t=no
10574 fi
10575 rm -f conftest.$ac_objext conftest.$ac_ext
10576 fi
10577 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
10578 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
10579 if test $ac_cv_type_u_int64_t = yes; then
10580 :
10581 else
10582
10583 cat >>confdefs.h <<\_ACEOF
10584 #define u_int64_t unsigned long long
10585 _ACEOF
10586
10587 fi
10588
10589
10590 #
10591 # We can't just check for <inttypes.h> - some systems have one that
10592 # doesn't define all the PRI[doxu]64 macros.
10593 #
10594
10595 for ac_header in inttypes.h
10596 do
10597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10599 echo "$as_me:$LINENO: checking for $ac_header" >&5
10600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10602 echo $ECHO_N "(cached) $ECHO_C" >&6
10603 fi
10604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10606 else
10607 # Is the header compilable?
10608 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10610 cat >conftest.$ac_ext <<_ACEOF
10611 #line $LINENO "configure"
10612 /* confdefs.h. */
10613 _ACEOF
10614 cat confdefs.h >>conftest.$ac_ext
10615 cat >>conftest.$ac_ext <<_ACEOF
10616 /* end confdefs.h. */
10617 $ac_includes_default
10618 #include <$ac_header>
10619 _ACEOF
10620 rm -f conftest.$ac_objext
10621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10622 (eval $ac_compile) 2>&5
10623 ac_status=$?
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } &&
10626 { ac_try='test -s conftest.$ac_objext'
10627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10628 (eval $ac_try) 2>&5
10629 ac_status=$?
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); }; }; then
10632 ac_header_compiler=yes
10633 else
10634 echo "$as_me: failed program was:" >&5
10635 sed 's/^/| /' conftest.$ac_ext >&5
10636
10637 ac_header_compiler=no
10638 fi
10639 rm -f conftest.$ac_objext conftest.$ac_ext
10640 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10641 echo "${ECHO_T}$ac_header_compiler" >&6
10642
10643 # Is the header present?
10644 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10646 cat >conftest.$ac_ext <<_ACEOF
10647 #line $LINENO "configure"
10648 /* confdefs.h. */
10649 _ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10653 #include <$ac_header>
10654 _ACEOF
10655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10657 ac_status=$?
10658 grep -v '^ *+' conftest.er1 >conftest.err
10659 rm -f conftest.er1
10660 cat conftest.err >&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } >/dev/null; then
10663 if test -s conftest.err; then
10664 ac_cpp_err=$ac_c_preproc_warn_flag
10665 else
10666 ac_cpp_err=
10667 fi
10668 else
10669 ac_cpp_err=yes
10670 fi
10671 if test -z "$ac_cpp_err"; then
10672 ac_header_preproc=yes
10673 else
10674 echo "$as_me: failed program was:" >&5
10675 sed 's/^/| /' conftest.$ac_ext >&5
10676
10677 ac_header_preproc=no
10678 fi
10679 rm -f conftest.err conftest.$ac_ext
10680 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10681 echo "${ECHO_T}$ac_header_preproc" >&6
10682
10683 # So? What about this header?
10684 case $ac_header_compiler:$ac_header_preproc in
10685 yes:no )
10686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10690 (
10691 cat <<\_ASBOX
10692 ## ------------------------------------ ##
10693 ## Report this to bug-autoconf@gnu.org. ##
10694 ## ------------------------------------ ##
10695 _ASBOX
10696 ) |
10697 sed "s/^/$as_me: WARNING: /" >&2
10698 ;;
10699 no:yes )
10700 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10702 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10703 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10706 (
10707 cat <<\_ASBOX
10708 ## ------------------------------------ ##
10709 ## Report this to bug-autoconf@gnu.org. ##
10710 ## ------------------------------------ ##
10711 _ASBOX
10712 ) |
10713 sed "s/^/$as_me: WARNING: /" >&2
10714 ;;
10715 esac
10716 echo "$as_me:$LINENO: checking for $ac_header" >&5
10717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10719 echo $ECHO_N "(cached) $ECHO_C" >&6
10720 else
10721 eval "$as_ac_Header=$ac_header_preproc"
10722 fi
10723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10725
10726 fi
10727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10728 cat >>confdefs.h <<_ACEOF
10729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10730 _ACEOF
10731
10732 #
10733 # OK, we have inttypes.h, but does it define those macros?
10734 #
10735 echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
10736 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6
10737 cat >conftest.$ac_ext <<_ACEOF
10738
10739 #line $LINENO "configure"
10740 /* confdefs.h. */
10741 _ACEOF
10742 cat confdefs.h >>conftest.$ac_ext
10743 cat >>conftest.$ac_ext <<_ACEOF
10744 /* end confdefs.h. */
10745
10746 #include <inttypes.h>
10747 #include <stdio.h>
10748 #include <sys/types.h>
10749 #ifdef HAVE_SYS_BITYPES_H
10750 #include <sys/bitypes.h>
10751 #endif
10752
10753 main()
10754 {
10755 printf("%" PRId64 "\n", (u_int64_t)1);
10756 printf("%" PRIo64 "\n", (u_int64_t)1);
10757 printf("%" PRIx64 "\n", (u_int64_t)1);
10758 printf("%" PRIu64 "\n", (u_int64_t)1);
10759 }
10760
10761
10762 _ACEOF
10763 rm -f conftest.$ac_objext
10764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10765 (eval $ac_compile) 2>&5
10766 ac_status=$?
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } &&
10769 { ac_try='test -s conftest.$ac_objext'
10770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771 (eval $ac_try) 2>&5
10772 ac_status=$?
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; }; then
10775
10776 echo "$as_me:$LINENO: result: yes" >&5
10777 echo "${ECHO_T}yes" >&6
10778 ac_lbl_inttypes_h_defines_formats=yes
10779
10780 else
10781 echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10783
10784
10785 echo "$as_me:$LINENO: result: no" >&5
10786 echo "${ECHO_T}no" >&6
10787 ac_lbl_inttypes_h_defines_formats=no
10788
10789 fi
10790 rm -f conftest.$ac_objext conftest.$ac_ext
10791
10792 else
10793
10794 #
10795 # We don't have inttypes.h, so it obviously can't define those
10796 # macros.
10797 #
10798 ac_lbl_inttypes_h_defines_formats=no
10799
10800 fi
10801
10802 done
10803
10804 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
10805
10806 echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
10807 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6
10808 if test "$cross_compiling" = yes; then
10809 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10810 See \`config.log' for more details." >&5
10811 echo "$as_me: error: cannot run test program while cross compiling
10812 See \`config.log' for more details." >&2;}
10813 { (exit 1); exit 1; }; }
10814 else
10815 cat >conftest.$ac_ext <<_ACEOF
10816
10817 #line $LINENO "configure"
10818 /* confdefs.h. */
10819 _ACEOF
10820 cat confdefs.h >>conftest.$ac_ext
10821 cat >>conftest.$ac_ext <<_ACEOF
10822 /* end confdefs.h. */
10823
10824 # ifdef HAVE_INTTYPES_H
10825 #include <inttypes.h>
10826 # endif
10827 # ifdef HAVE_SYS_BITYPES_H
10828 #include <sys/bitypes.h>
10829 # endif
10830 #include <stdio.h>
10831 #include <sys/types.h>
10832
10833 main()
10834 {
10835 u_int64_t t = 1;
10836 char strbuf[16+1];
10837 sprintf(strbuf, "%016lx", t << 32);
10838 if (strcmp(strbuf, "0000000100000000") == 0)
10839 exit(0);
10840 else
10841 exit(1);
10842 }
10843
10844
10845 _ACEOF
10846 rm -f conftest$ac_exeext
10847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10848 (eval $ac_link) 2>&5
10849 ac_status=$?
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853 (eval $ac_try) 2>&5
10854 ac_status=$?
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
10857
10858 cat >>confdefs.h <<\_ACEOF
10859 #define PRId64 "ld"
10860 _ACEOF
10861
10862 cat >>confdefs.h <<\_ACEOF
10863 #define PRIo64 "lo"
10864 _ACEOF
10865
10866 cat >>confdefs.h <<\_ACEOF
10867 #define PRIx64 "lx"
10868 _ACEOF
10869
10870 cat >>confdefs.h <<\_ACEOF
10871 #define PRIu64 "lu"
10872 _ACEOF
10873
10874 echo "$as_me:$LINENO: result: yes" >&5
10875 echo "${ECHO_T}yes" >&6
10876
10877 else
10878 echo "$as_me: program exited with status $ac_status" >&5
10879 echo "$as_me: failed program was:" >&5
10880 sed 's/^/| /' conftest.$ac_ext >&5
10881
10882 ( exit $ac_status )
10883
10884 echo "$as_me:$LINENO: result: no" >&5
10885 echo "${ECHO_T}no" >&6
10886
10887
10888 echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
10889 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6
10890 if test "$cross_compiling" = yes; then
10891 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10892 See \`config.log' for more details." >&5
10893 echo "$as_me: error: cannot run test program while cross compiling
10894 See \`config.log' for more details." >&2;}
10895 { (exit 1); exit 1; }; }
10896 else
10897 cat >conftest.$ac_ext <<_ACEOF
10898
10899 #line $LINENO "configure"
10900 /* confdefs.h. */
10901 _ACEOF
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h. */
10905
10906 # ifdef HAVE_INTTYPES_H
10907 #include <inttypes.h>
10908 # endif
10909 # ifdef HAVE_SYS_BITYPES_H
10910 #include <sys/bitypes.h>
10911 # endif
10912 #include <stdio.h>
10913 #include <sys/types.h>
10914
10915 main()
10916 {
10917 u_int64_t t = 1;
10918 char strbuf[16+1];
10919 sprintf(strbuf, "%016llx", t << 32);
10920 if (strcmp(strbuf, "0000000100000000") == 0)
10921 exit(0);
10922 else
10923 exit(1);
10924 }
10925
10926
10927 _ACEOF
10928 rm -f conftest$ac_exeext
10929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10930 (eval $ac_link) 2>&5
10931 ac_status=$?
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10935 (eval $ac_try) 2>&5
10936 ac_status=$?
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; }; then
10939
10940 cat >>confdefs.h <<\_ACEOF
10941 #define PRId64 "lld"
10942 _ACEOF
10943
10944 cat >>confdefs.h <<\_ACEOF
10945 #define PRIo64 "llo"
10946 _ACEOF
10947
10948 cat >>confdefs.h <<\_ACEOF
10949 #define PRIx64 "llx"
10950 _ACEOF
10951
10952 cat >>confdefs.h <<\_ACEOF
10953 #define PRIu64 "llu"
10954 _ACEOF
10955
10956 echo "$as_me:$LINENO: result: yes" >&5
10957 echo "${ECHO_T}yes" >&6
10958
10959 else
10960 echo "$as_me: program exited with status $ac_status" >&5
10961 echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10963
10964 ( exit $ac_status )
10965
10966 echo "$as_me:$LINENO: result: no" >&5
10967 echo "${ECHO_T}no" >&6
10968
10969
10970 echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
10971 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6
10972 if test "$cross_compiling" = yes; then
10973 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10974 See \`config.log' for more details." >&5
10975 echo "$as_me: error: cannot run test program while cross compiling
10976 See \`config.log' for more details." >&2;}
10977 { (exit 1); exit 1; }; }
10978 else
10979 cat >conftest.$ac_ext <<_ACEOF
10980
10981 #line $LINENO "configure"
10982 /* confdefs.h. */
10983 _ACEOF
10984 cat confdefs.h >>conftest.$ac_ext
10985 cat >>conftest.$ac_ext <<_ACEOF
10986 /* end confdefs.h. */
10987
10988 # ifdef HAVE_INTTYPES_H
10989 #include <inttypes.h>
10990 # endif
10991 # ifdef HAVE_SYS_BITYPES_H
10992 #include <sys/bitypes.h>
10993 # endif
10994 #include <stdio.h>
10995 #include <sys/types.h>
10996
10997 main()
10998 {
10999 u_int64_t t = 1;
11000 char strbuf[16+1];
11001 sprintf(strbuf, "%016Lx", t << 32);
11002 if (strcmp(strbuf, "0000000100000000") == 0)
11003 exit(0);
11004 else
11005 exit(1);
11006 }
11007
11008
11009 _ACEOF
11010 rm -f conftest$ac_exeext
11011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11012 (eval $ac_link) 2>&5
11013 ac_status=$?
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017 (eval $ac_try) 2>&5
11018 ac_status=$?
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; }; then
11021
11022 cat >>confdefs.h <<\_ACEOF
11023 #define PRId64 "Ld"
11024 _ACEOF
11025
11026 cat >>confdefs.h <<\_ACEOF
11027 #define PRIo64 "Lo"
11028 _ACEOF
11029
11030 cat >>confdefs.h <<\_ACEOF
11031 #define PRIx64 "Lx"
11032 _ACEOF
11033
11034 cat >>confdefs.h <<\_ACEOF
11035 #define PRIu64 "Lu"
11036 _ACEOF
11037
11038 echo "$as_me:$LINENO: result: yes" >&5
11039 echo "${ECHO_T}yes" >&6
11040
11041 else
11042 echo "$as_me: program exited with status $ac_status" >&5
11043 echo "$as_me: failed program was:" >&5
11044 sed 's/^/| /' conftest.$ac_ext >&5
11045
11046 ( exit $ac_status )
11047
11048 echo "$as_me:$LINENO: result: no" >&5
11049 echo "${ECHO_T}no" >&6
11050
11051
11052 echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
11053 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6
11054 if test "$cross_compiling" = yes; then
11055 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11056 See \`config.log' for more details." >&5
11057 echo "$as_me: error: cannot run test program while cross compiling
11058 See \`config.log' for more details." >&2;}
11059 { (exit 1); exit 1; }; }
11060 else
11061 cat >conftest.$ac_ext <<_ACEOF
11062
11063 #line $LINENO "configure"
11064 /* confdefs.h. */
11065 _ACEOF
11066 cat confdefs.h >>conftest.$ac_ext
11067 cat >>conftest.$ac_ext <<_ACEOF
11068 /* end confdefs.h. */
11069
11070 # ifdef HAVE_INTTYPES_H
11071 #include <inttypes.h>
11072 # endif
11073 # ifdef HAVE_SYS_BITYPES_H
11074 #include <sys/bitypes.h>
11075 # endif
11076 #include <stdio.h>
11077 #include <sys/types.h>
11078
11079 main()
11080 {
11081 u_int64_t t = 1;
11082 char strbuf[16+1];
11083 sprintf(strbuf, "%016qx", t << 32);
11084 if (strcmp(strbuf, "0000000100000000") == 0)
11085 exit(0);
11086 else
11087 exit(1);
11088 }
11089
11090
11091 _ACEOF
11092 rm -f conftest$ac_exeext
11093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11094 (eval $ac_link) 2>&5
11095 ac_status=$?
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099 (eval $ac_try) 2>&5
11100 ac_status=$?
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); }; }; then
11103
11104 cat >>confdefs.h <<\_ACEOF
11105 #define PRId64 "qd"
11106 _ACEOF
11107
11108 cat >>confdefs.h <<\_ACEOF
11109 #define PRIo64 "qo"
11110 _ACEOF
11111
11112 cat >>confdefs.h <<\_ACEOF
11113 #define PRIx64 "qx"
11114 _ACEOF
11115
11116 cat >>confdefs.h <<\_ACEOF
11117 #define PRIu64 "qu"
11118 _ACEOF
11119
11120 echo "$as_me:$LINENO: result: yes" >&5
11121 echo "${ECHO_T}yes" >&6
11122
11123 else
11124 echo "$as_me: program exited with status $ac_status" >&5
11125 echo "$as_me: failed program was:" >&5
11126 sed 's/^/| /' conftest.$ac_ext >&5
11127
11128 ( exit $ac_status )
11129
11130 echo "$as_me:$LINENO: result: no" >&5
11131 echo "${ECHO_T}no" >&6
11132
11133 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
11134 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
11135 { (exit 1); exit 1; }; }
11136
11137
11138 fi
11139 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11140 fi
11141
11142
11143
11144 fi
11145 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11146 fi
11147
11148
11149
11150 fi
11151 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11152 fi
11153
11154
11155
11156 fi
11157 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11158 fi
11159
11160 fi
11161
11162 rm -f os-proto.h
11163 if test "${LBL_CFLAGS+set}" = set; then
11164 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
11165 fi
11166 if test -f .devel ; then
11167 if test "$GCC" = yes ; then
11168 if test "${LBL_CFLAGS+set}" != set; then
11169 if test "$ac_cv_prog_cc_g" = yes ; then
11170 V_CCOPT="-g $V_CCOPT"
11171 fi
11172 V_CCOPT="$V_CCOPT -Wall"
11173 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
11174 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W"
11175 fi
11176 fi
11177 else
11178 case "$host_os" in
11179
11180 irix6*)
11181 V_CCOPT="$V_CCOPT -n32"
11182 ;;
11183
11184 *)
11185 ;;
11186 esac
11187 fi
11188 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
11189 name="lbl/os-$os.h"
11190 if test -f $name ; then
11191 ln -s $name os-proto.h
11192 cat >>confdefs.h <<\_ACEOF
11193 #define HAVE_OS_PROTO_H 1
11194 _ACEOF
11195
11196 else
11197 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
11198 echo "$as_me: WARNING: can't find $name" >&2;}
11199 fi
11200 fi
11201
11202 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
11203 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
11204 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 else
11207 cat >conftest.$ac_ext <<_ACEOF
11208 #line $LINENO "configure"
11209 /* confdefs.h. */
11210 _ACEOF
11211 cat confdefs.h >>conftest.$ac_ext
11212 cat >>conftest.$ac_ext <<_ACEOF
11213 /* end confdefs.h. */
11214
11215 # include <sys/types.h>
11216 # include <sys/socket.h>
11217 int
11218 main ()
11219 {
11220 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
11221 ;
11222 return 0;
11223 }
11224 _ACEOF
11225 rm -f conftest.$ac_objext
11226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11227 (eval $ac_compile) 2>&5
11228 ac_status=$?
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); } &&
11231 { ac_try='test -s conftest.$ac_objext'
11232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233 (eval $ac_try) 2>&5
11234 ac_status=$?
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; }; then
11237 ac_cv_lbl_sockaddr_has_sa_len=yes
11238 else
11239 echo "$as_me: failed program was:" >&5
11240 sed 's/^/| /' conftest.$ac_ext >&5
11241
11242 ac_cv_lbl_sockaddr_has_sa_len=no
11243 fi
11244 rm -f conftest.$ac_objext conftest.$ac_ext
11245 fi
11246
11247 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
11248 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
11249 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
11250 cat >>confdefs.h <<\_ACEOF
11251 #define HAVE_SOCKADDR_SA_LEN 1
11252 _ACEOF
11253
11254 fi
11255
11256 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
11257 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
11258 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
11259 echo $ECHO_N "(cached) $ECHO_C" >&6
11260 else
11261 case "$host_cpu" in
11262
11263 #
11264 # These are CPU types where:
11265 #
11266 # the CPU faults on an unaligned access, but at least some
11267 # OSes that support that CPU catch the fault and simulate
11268 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
11269 # the simulation is slow, so we don't want to use it;
11270 #
11271 # the CPU, I infer (from the old
11272 #
11273 # XXX: should also check that they don't do weird things (like on arm)
11274 #
11275 # comment) doesn't fault on unaligned accesses, but doesn't
11276 # do a normal unaligned fetch, either (e.g., presumably, ARM);
11277 #
11278 # for whatever reason, the test program doesn't work
11279 # (this has been claimed to be the case for several of those
11280 # CPUs - I don't know what the problem is; the problem
11281 # was reported as "the test program dumps core" for SuperH,
11282 # but that's what the test program is *supposed* to do -
11283 # it dumps core before it writes anything, so the test
11284 # for an empty output file should find an empty output
11285 # file and conclude that unaligned accesses don't work).
11286 #
11287 # This run-time test won't work if you're cross-compiling, so
11288 # in order to support cross-compiling for a particular CPU,
11289 # we have to wire in the list of CPU types anyway, as far as
11290 # I know, so perhaps we should just have a set of CPUs on
11291 # which we know it doesn't work, a set of CPUs on which we
11292 # know it does work, and have the script just fail on other
11293 # cpu types and update it when such a failure occurs.
11294 #
11295 alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1)
11296 ac_cv_lbl_unaligned_fail=yes
11297 ;;
11298
11299 *)
11300 cat >conftest.c <<EOF
11301 # include <sys/types.h>
11302 # include <sys/wait.h>
11303 # include <stdio.h>
11304 unsigned char a[5] = { 1, 2, 3, 4, 5 };
11305 main() {
11306 unsigned int i;
11307 pid_t pid;
11308 int status;
11309 /* avoid "core dumped" message */
11310 pid = fork();
11311 if (pid < 0)
11312 exit(2);
11313 if (pid > 0) {
11314 /* parent */
11315 pid = waitpid(pid, &status, 0);
11316 if (pid < 0)
11317 exit(3);
11318 exit(!WIFEXITED(status));
11319 }
11320 /* child */
11321 i = *(unsigned int *)&a[1];
11322 printf("%d\n", i);
11323 exit(0);
11324 }
11325 EOF
11326 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
11327 conftest.c $LIBS >/dev/null 2>&1
11328 if test ! -x conftest ; then
11329 ac_cv_lbl_unaligned_fail=yes
11330 else
11331 ./conftest >conftest.out
11332 if test ! -s conftest.out ; then
11333 ac_cv_lbl_unaligned_fail=yes
11334 else
11335 ac_cv_lbl_unaligned_fail=no
11336 fi
11337 fi
11338 rm -f conftest* core core.conftest
11339 ;;
11340 esac
11341 fi
11342
11343 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
11344 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
11345 if test $ac_cv_lbl_unaligned_fail = yes ; then
11346 cat >>confdefs.h <<\_ACEOF
11347 #define LBL_ALIGN 1
11348 _ACEOF
11349
11350 fi
11351
11352
11353 echo "$as_me:$LINENO: checking for h_errno" >&5
11354 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
11355 if test "${ac_cv_var_h_errno+set}" = set; then
11356 echo $ECHO_N "(cached) $ECHO_C" >&6
11357 else
11358 cat >conftest.$ac_ext <<_ACEOF
11359 #line $LINENO "configure"
11360 /* confdefs.h. */
11361 _ACEOF
11362 cat confdefs.h >>conftest.$ac_ext
11363 cat >>conftest.$ac_ext <<_ACEOF
11364 /* end confdefs.h. */
11365
11366 # include <sys/types.h>
11367 # include <netdb.h>
11368 int
11369 main ()
11370 {
11371 int foo = h_errno;
11372 ;
11373 return 0;
11374 }
11375 _ACEOF
11376 rm -f conftest.$ac_objext
11377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11378 (eval $ac_compile) 2>&5
11379 ac_status=$?
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } &&
11382 { ac_try='test -s conftest.$ac_objext'
11383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384 (eval $ac_try) 2>&5
11385 ac_status=$?
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }; }; then
11388 ac_cv_var_h_errno=yes
11389 else
11390 echo "$as_me: failed program was:" >&5
11391 sed 's/^/| /' conftest.$ac_ext >&5
11392
11393 ac_cv_var_h_errno=no
11394 fi
11395 rm -f conftest.$ac_objext conftest.$ac_ext
11396 fi
11397
11398 echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
11399 echo "${ECHO_T}$ac_cv_var_h_errno" >&6
11400 if test "$ac_cv_var_h_errno" = "yes"; then
11401 cat >>confdefs.h <<\_ACEOF
11402 #define HAVE_H_ERRNO 1
11403 _ACEOF
11404
11405 fi
11406
11407
11408
11409 # Check whether --with-crypto or --without-crypto was given.
11410 if test "${with_crypto+set}" = set; then
11411 withval="$with_crypto"
11412
11413 else
11414
11415 echo "$as_me:$LINENO: checking for SSLeay" >&5
11416 echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6
11417 ac_cv_ssleay_path=no
11418 incdir=no
11419
11420 Xprefix=`eval echo $prefix`
11421
11422 for dir in $Xprefix /usr/${host_alias} /usr /usr/local /usr/local/ssl /usr/pkg; do
11423 #
11424 # XXX - is there a better way to check if a given library is
11425 # in a given directory than checking each of the possible
11426 # shared library suffixes?
11427 #
11428 # Are there any other suffixes we need to look for? Do we have to
11429 # worry about ".so.{version}"?
11430 #
11431 # Or should we just look for "libcrypto.*"?
11432 #
11433 if test -d $dir/lib -a \( -f $dir/lib/libcrypto.a -o \
11434 -f $dir/lib/libcrypto.so -o \
11435 -f $dir/lib/libcrypto.sl -o \
11436 -f $dir/lib/libcrypto.dylib \); then
11437 ac_cv_ssleay_path=$dir
11438 fi
11439 if test -d $dir/include/openssl -a -f $dir/include/openssl/des.h; then
11440 incdir="-I$dir/include"
11441 fi
11442 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
11443 break;
11444 else
11445 ac_cv_ssleay_path=no
11446 incdir=no
11447 fi
11448 done
11449 echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
11450 echo "${ECHO_T}$ac_cv_ssleay_path" >&6
11451 if test "$ac_cv_ssleay_path" != no; then
11452 V_INCLS="$V_INCLS $incdir"
11453 LDFLAGS="-L$dir/lib $LDFLAGS"
11454 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
11455 LIBS="$LIBS -lRSAglue"
11456 fi
11457 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
11458 LIBS="$LIBS -lrsaref"
11459 fi
11460
11461 echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
11462 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6
11463 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
11464 echo $ECHO_N "(cached) $ECHO_C" >&6
11465 else
11466 ac_check_lib_save_LIBS=$LIBS
11467 LIBS="-lcrypto $LIBS"
11468 cat >conftest.$ac_ext <<_ACEOF
11469 #line $LINENO "configure"
11470 /* confdefs.h. */
11471 _ACEOF
11472 cat confdefs.h >>conftest.$ac_ext
11473 cat >>conftest.$ac_ext <<_ACEOF
11474 /* end confdefs.h. */
11475
11476 /* Override any gcc2 internal prototype to avoid an error. */
11477 #ifdef __cplusplus
11478 extern "C"
11479 #endif
11480 /* We use char because int might match the return type of a gcc2
11481 builtin and then its argument prototype would still apply. */
11482 char DES_cbc_encrypt ();
11483 int
11484 main ()
11485 {
11486 DES_cbc_encrypt ();
11487 ;
11488 return 0;
11489 }
11490 _ACEOF
11491 rm -f conftest.$ac_objext conftest$ac_exeext
11492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11493 (eval $ac_link) 2>&5
11494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } &&
11497 { ac_try='test -s conftest$ac_exeext'
11498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499 (eval $ac_try) 2>&5
11500 ac_status=$?
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; }; then
11503 ac_cv_lib_crypto_DES_cbc_encrypt=yes
11504 else
11505 echo "$as_me: failed program was:" >&5
11506 sed 's/^/| /' conftest.$ac_ext >&5
11507
11508 ac_cv_lib_crypto_DES_cbc_encrypt=no
11509 fi
11510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11511 LIBS=$ac_check_lib_save_LIBS
11512 fi
11513 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
11514 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6
11515 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
11516 cat >>confdefs.h <<_ACEOF
11517 #define HAVE_LIBCRYPTO 1
11518 _ACEOF
11519
11520 LIBS="-lcrypto $LIBS"
11521
11522 fi
11523
11524
11525 CPPFLAGS="$CPPFLAGS $V_INCLS"
11526
11527 for ac_header in openssl/evp.h
11528 do
11529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11531 echo "$as_me:$LINENO: checking for $ac_header" >&5
11532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11534 echo $ECHO_N "(cached) $ECHO_C" >&6
11535 fi
11536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11538 else
11539 # Is the header compilable?
11540 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11541 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11542 cat >conftest.$ac_ext <<_ACEOF
11543 #line $LINENO "configure"
11544 /* confdefs.h. */
11545 _ACEOF
11546 cat confdefs.h >>conftest.$ac_ext
11547 cat >>conftest.$ac_ext <<_ACEOF
11548 /* end confdefs.h. */
11549 $ac_includes_default
11550 #include <$ac_header>
11551 _ACEOF
11552 rm -f conftest.$ac_objext
11553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11554 (eval $ac_compile) 2>&5
11555 ac_status=$?
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); } &&
11558 { ac_try='test -s conftest.$ac_objext'
11559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11560 (eval $ac_try) 2>&5
11561 ac_status=$?
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); }; }; then
11564 ac_header_compiler=yes
11565 else
11566 echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.$ac_ext >&5
11568
11569 ac_header_compiler=no
11570 fi
11571 rm -f conftest.$ac_objext conftest.$ac_ext
11572 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11573 echo "${ECHO_T}$ac_header_compiler" >&6
11574
11575 # Is the header present?
11576 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11577 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11578 cat >conftest.$ac_ext <<_ACEOF
11579 #line $LINENO "configure"
11580 /* confdefs.h. */
11581 _ACEOF
11582 cat confdefs.h >>conftest.$ac_ext
11583 cat >>conftest.$ac_ext <<_ACEOF
11584 /* end confdefs.h. */
11585 #include <$ac_header>
11586 _ACEOF
11587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11589 ac_status=$?
11590 grep -v '^ *+' conftest.er1 >conftest.err
11591 rm -f conftest.er1
11592 cat conftest.err >&5
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); } >/dev/null; then
11595 if test -s conftest.err; then
11596 ac_cpp_err=$ac_c_preproc_warn_flag
11597 else
11598 ac_cpp_err=
11599 fi
11600 else
11601 ac_cpp_err=yes
11602 fi
11603 if test -z "$ac_cpp_err"; then
11604 ac_header_preproc=yes
11605 else
11606 echo "$as_me: failed program was:" >&5
11607 sed 's/^/| /' conftest.$ac_ext >&5
11608
11609 ac_header_preproc=no
11610 fi
11611 rm -f conftest.err conftest.$ac_ext
11612 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11613 echo "${ECHO_T}$ac_header_preproc" >&6
11614
11615 # So? What about this header?
11616 case $ac_header_compiler:$ac_header_preproc in
11617 yes:no )
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11619 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11622 (
11623 cat <<\_ASBOX
11624 ## ------------------------------------ ##
11625 ## Report this to bug-autoconf@gnu.org. ##
11626 ## ------------------------------------ ##
11627 _ASBOX
11628 ) |
11629 sed "s/^/$as_me: WARNING: /" >&2
11630 ;;
11631 no:yes )
11632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11638 (
11639 cat <<\_ASBOX
11640 ## ------------------------------------ ##
11641 ## Report this to bug-autoconf@gnu.org. ##
11642 ## ------------------------------------ ##
11643 _ASBOX
11644 ) |
11645 sed "s/^/$as_me: WARNING: /" >&2
11646 ;;
11647 esac
11648 echo "$as_me:$LINENO: checking for $ac_header" >&5
11649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11652 else
11653 eval "$as_ac_Header=$ac_header_preproc"
11654 fi
11655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11657
11658 fi
11659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11660 cat >>confdefs.h <<_ACEOF
11661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11662 _ACEOF
11663
11664 fi
11665
11666 done
11667
11668 fi
11669
11670 fi;
11671
11672 if test "$missing_includes" = "yes"; then
11673 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
11674 V_INCLS="$V_INCLS -I\$(srcdir)/missing"
11675 fi
11676
11677
11678
11679
11680
11681
11682
11683
11684 # Find a good install program. We prefer a C program (faster),
11685 # so one script is as good as another. But avoid the broken or
11686 # incompatible versions:
11687 # SysV /etc/install, /usr/sbin/install
11688 # SunOS /usr/etc/install
11689 # IRIX /sbin/install
11690 # AIX /bin/install
11691 # AmigaOS /C/install, which installs bootblocks on floppy discs
11692 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11693 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11694 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11695 # ./install, which can be erroneously created by make from ./install.sh.
11696 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11697 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11698 if test -z "$INSTALL"; then
11699 if test "${ac_cv_path_install+set}" = set; then
11700 echo $ECHO_N "(cached) $ECHO_C" >&6
11701 else
11702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11703 for as_dir in $PATH
11704 do
11705 IFS=$as_save_IFS
11706 test -z "$as_dir" && as_dir=.
11707 # Account for people who put trailing slashes in PATH elements.
11708 case $as_dir/ in
11709 ./ | .// | /cC/* | \
11710 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11711 /usr/ucb/* ) ;;
11712 *)
11713 # OSF1 and SCO ODT 3.0 have their own names for install.
11714 # Don't use installbsd from OSF since it installs stuff as root
11715 # by default.
11716 for ac_prog in ginstall scoinst install; do
11717 for ac_exec_ext in '' $ac_executable_extensions; do
11718 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11719 if test $ac_prog = install &&
11720 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11721 # AIX install. It has an incompatible calling convention.
11722 :
11723 elif test $ac_prog = install &&
11724 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11725 # program-specific install script used by HP pwplus--don't use.
11726 :
11727 else
11728 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11729 break 3
11730 fi
11731 fi
11732 done
11733 done
11734 ;;
11735 esac
11736 done
11737
11738
11739 fi
11740 if test "${ac_cv_path_install+set}" = set; then
11741 INSTALL=$ac_cv_path_install
11742 else
11743 # As a last resort, use the slow shell script. We don't cache a
11744 # path for INSTALL within a source directory, because that will
11745 # break other packages using the cache if that directory is
11746 # removed, or if the path is relative.
11747 INSTALL=$ac_install_sh
11748 fi
11749 fi
11750 echo "$as_me:$LINENO: result: $INSTALL" >&5
11751 echo "${ECHO_T}$INSTALL" >&6
11752
11753 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11754 # It thinks the first close brace ends the variable substitution.
11755 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11756
11757 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11758
11759 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11760
11761
11762 ac_config_headers="$ac_config_headers config.h"
11763
11764
11765 ac_config_commands="$ac_config_commands default-1"
11766
11767 ac_config_files="$ac_config_files Makefile"
11768 cat >confcache <<\_ACEOF
11769 # This file is a shell script that caches the results of configure
11770 # tests run on this system so they can be shared between configure
11771 # scripts and configure runs, see configure's option --config-cache.
11772 # It is not useful on other systems. If it contains results you don't
11773 # want to keep, you may remove or edit it.
11774 #
11775 # config.status only pays attention to the cache file if you give it
11776 # the --recheck option to rerun configure.
11777 #
11778 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11779 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11780 # following values.
11781
11782 _ACEOF
11783
11784 # The following way of writing the cache mishandles newlines in values,
11785 # but we know of no workaround that is simple, portable, and efficient.
11786 # So, don't put newlines in cache variables' values.
11787 # Ultrix sh set writes to stderr and can't be redirected directly,
11788 # and sets the high bit in the cache file unless we assign to the vars.
11789 {
11790 (set) 2>&1 |
11791 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11792 *ac_space=\ *)
11793 # `set' does not quote correctly, so add quotes (double-quote
11794 # substitution turns \\\\ into \\, and sed turns \\ into \).
11795 sed -n \
11796 "s/'/'\\\\''/g;
11797 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11798 ;;
11799 *)
11800 # `set' quotes correctly as required by POSIX, so do not add quotes.
11801 sed -n \
11802 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11803 ;;
11804 esac;
11805 } |
11806 sed '
11807 t clear
11808 : clear
11809 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11810 t end
11811 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11812 : end' >>confcache
11813 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11814 if test -w $cache_file; then
11815 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11816 cat confcache >$cache_file
11817 else
11818 echo "not updating unwritable cache $cache_file"
11819 fi
11820 fi
11821 rm -f confcache
11822
11823 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11824 # Let make expand exec_prefix.
11825 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11826
11827 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11828 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11829 # trailing colons and then remove the whole line if VPATH becomes empty
11830 # (actually we leave an empty line to preserve line numbers).
11831 if test "x$srcdir" = x.; then
11832 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11833 s/:*\$(srcdir):*/:/;
11834 s/:*\${srcdir}:*/:/;
11835 s/:*@srcdir@:*/:/;
11836 s/^\([^=]*=[ ]*\):*/\1/;
11837 s/:*$//;
11838 s/^[^=]*=[ ]*$//;
11839 }'
11840 fi
11841
11842 DEFS=-DHAVE_CONFIG_H
11843
11844 ac_libobjs=
11845 ac_ltlibobjs=
11846 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11847 # 1. Remove the extension, and $U if already installed.
11848 ac_i=`echo "$ac_i" |
11849 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11850 # 2. Add them.
11851 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11852 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11853 done
11854 LIBOBJS=$ac_libobjs
11855
11856 LTLIBOBJS=$ac_ltlibobjs
11857
11858
11859
11860 : ${CONFIG_STATUS=./config.status}
11861 ac_clean_files_save=$ac_clean_files
11862 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11863 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11864 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11865 cat >$CONFIG_STATUS <<_ACEOF
11866 #! $SHELL
11867 # Generated by $as_me.
11868 # Run this file to recreate the current configuration.
11869 # Compiler output produced by configure, useful for debugging
11870 # configure, is in config.log if it exists.
11871
11872 debug=false
11873 ac_cs_recheck=false
11874 ac_cs_silent=false
11875 SHELL=\${CONFIG_SHELL-$SHELL}
11876 _ACEOF
11877
11878 cat >>$CONFIG_STATUS <<\_ACEOF
11879 ## --------------------- ##
11880 ## M4sh Initialization. ##
11881 ## --------------------- ##
11882
11883 # Be Bourne compatible
11884 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11885 emulate sh
11886 NULLCMD=:
11887 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11888 # is contrary to our usage. Disable this feature.
11889 alias -g '${1+"$@"}'='"$@"'
11890 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11891 set -o posix
11892 fi
11893
11894 # Support unset when possible.
11895 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11896 as_unset=unset
11897 else
11898 as_unset=false
11899 fi
11900
11901
11902 # Work around bugs in pre-3.0 UWIN ksh.
11903 $as_unset ENV MAIL MAILPATH
11904 PS1='$ '
11905 PS2='> '
11906 PS4='+ '
11907
11908 # NLS nuisances.
11909 for as_var in \
11910 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11911 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11912 LC_TELEPHONE LC_TIME
11913 do
11914 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11915 eval $as_var=C; export $as_var
11916 else
11917 $as_unset $as_var
11918 fi
11919 done
11920
11921 # Required to use basename.
11922 if expr a : '\(a\)' >/dev/null 2>&1; then
11923 as_expr=expr
11924 else
11925 as_expr=false
11926 fi
11927
11928 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11929 as_basename=basename
11930 else
11931 as_basename=false
11932 fi
11933
11934
11935 # Name of the executable.
11936 as_me=`$as_basename "$0" ||
11937 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11938 X"$0" : 'X\(//\)$' \| \
11939 X"$0" : 'X\(/\)$' \| \
11940 . : '\(.\)' 2>/dev/null ||
11941 echo X/"$0" |
11942 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11943 /^X\/\(\/\/\)$/{ s//\1/; q; }
11944 /^X\/\(\/\).*/{ s//\1/; q; }
11945 s/.*/./; q'`
11946
11947
11948 # PATH needs CR, and LINENO needs CR and PATH.
11949 # Avoid depending upon Character Ranges.
11950 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11951 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11952 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11953 as_cr_digits='0123456789'
11954 as_cr_alnum=$as_cr_Letters$as_cr_digits
11955
11956 # The user is always right.
11957 if test "${PATH_SEPARATOR+set}" != set; then
11958 echo "#! /bin/sh" >conf$$.sh
11959 echo "exit 0" >>conf$$.sh
11960 chmod +x conf$$.sh
11961 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11962 PATH_SEPARATOR=';'
11963 else
11964 PATH_SEPARATOR=:
11965 fi
11966 rm -f conf$$.sh
11967 fi
11968
11969
11970 as_lineno_1=$LINENO
11971 as_lineno_2=$LINENO
11972 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11973 test "x$as_lineno_1" != "x$as_lineno_2" &&
11974 test "x$as_lineno_3" = "x$as_lineno_2" || {
11975 # Find who we are. Look in the path if we contain no path at all
11976 # relative or not.
11977 case $0 in
11978 *[\\/]* ) as_myself=$0 ;;
11979 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11980 for as_dir in $PATH
11981 do
11982 IFS=$as_save_IFS
11983 test -z "$as_dir" && as_dir=.
11984 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11985 done
11986
11987 ;;
11988 esac
11989 # We did not find ourselves, most probably we were run as `sh COMMAND'
11990 # in which case we are not to be found in the path.
11991 if test "x$as_myself" = x; then
11992 as_myself=$0
11993 fi
11994 if test ! -f "$as_myself"; then
11995 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11996 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11997 { (exit 1); exit 1; }; }
11998 fi
11999 case $CONFIG_SHELL in
12000 '')
12001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12002 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12003 do
12004 IFS=$as_save_IFS
12005 test -z "$as_dir" && as_dir=.
12006 for as_base in sh bash ksh sh5; do
12007 case $as_dir in
12008 /*)
12009 if ("$as_dir/$as_base" -c '
12010 as_lineno_1=$LINENO
12011 as_lineno_2=$LINENO
12012 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12013 test "x$as_lineno_1" != "x$as_lineno_2" &&
12014 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12015 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12016 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12017 CONFIG_SHELL=$as_dir/$as_base
12018 export CONFIG_SHELL
12019 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12020 fi;;
12021 esac
12022 done
12023 done
12024 ;;
12025 esac
12026
12027 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12028 # uniformly replaced by the line number. The first 'sed' inserts a
12029 # line-number line before each line; the second 'sed' does the real
12030 # work. The second script uses 'N' to pair each line-number line
12031 # with the numbered line, and appends trailing '-' during
12032 # substitution so that $LINENO is not a special case at line end.
12033 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12034 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12035 sed '=' <$as_myself |
12036 sed '
12037 N
12038 s,$,-,
12039 : loop
12040 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12041 t loop
12042 s,-$,,
12043 s,^['$as_cr_digits']*\n,,
12044 ' >$as_me.lineno &&
12045 chmod +x $as_me.lineno ||
12046 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12047 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12048 { (exit 1); exit 1; }; }
12049
12050 # Don't try to exec as it changes $[0], causing all sort of problems
12051 # (the dirname of $[0] is not the place where we might find the
12052 # original and so on. Autoconf is especially sensible to this).
12053 . ./$as_me.lineno
12054 # Exit status is that of the last command.
12055 exit
12056 }
12057
12058
12059 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12060 *c*,-n*) ECHO_N= ECHO_C='
12061 ' ECHO_T=' ' ;;
12062 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12063 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12064 esac
12065
12066 if expr a : '\(a\)' >/dev/null 2>&1; then
12067 as_expr=expr
12068 else
12069 as_expr=false
12070 fi
12071
12072 rm -f conf$$ conf$$.exe conf$$.file
12073 echo >conf$$.file
12074 if ln -s conf$$.file conf$$ 2>/dev/null; then
12075 # We could just check for DJGPP; but this test a) works b) is more generic
12076 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12077 if test -f conf$$.exe; then
12078 # Don't use ln at all; we don't have any links
12079 as_ln_s='cp -p'
12080 else
12081 as_ln_s='ln -s'
12082 fi
12083 elif ln conf$$.file conf$$ 2>/dev/null; then
12084 as_ln_s=ln
12085 else
12086 as_ln_s='cp -p'
12087 fi
12088 rm -f conf$$ conf$$.exe conf$$.file
12089
12090 if mkdir -p . 2>/dev/null; then
12091 as_mkdir_p=:
12092 else
12093 as_mkdir_p=false
12094 fi
12095
12096 as_executable_p="test -f"
12097
12098 # Sed expression to map a string onto a valid CPP name.
12099 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12100
12101 # Sed expression to map a string onto a valid variable name.
12102 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12103
12104
12105 # IFS
12106 # We need space, tab and new line, in precisely that order.
12107 as_nl='
12108 '
12109 IFS=" $as_nl"
12110
12111 # CDPATH.
12112 $as_unset CDPATH
12113
12114 exec 6>&1
12115
12116 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12117 # report actual input values of CONFIG_FILES etc. instead of their
12118 # values after options handling. Logging --version etc. is OK.
12119 exec 5>>config.log
12120 {
12121 echo
12122 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12123 ## Running $as_me. ##
12124 _ASBOX
12125 } >&5
12126 cat >&5 <<_CSEOF
12127
12128 This file was extended by $as_me, which was
12129 generated by GNU Autoconf 2.57. Invocation command line was
12130
12131 CONFIG_FILES = $CONFIG_FILES
12132 CONFIG_HEADERS = $CONFIG_HEADERS
12133 CONFIG_LINKS = $CONFIG_LINKS
12134 CONFIG_COMMANDS = $CONFIG_COMMANDS
12135 $ $0 $@
12136
12137 _CSEOF
12138 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12139 echo >&5
12140 _ACEOF
12141
12142 # Files that config.status was made for.
12143 if test -n "$ac_config_files"; then
12144 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12145 fi
12146
12147 if test -n "$ac_config_headers"; then
12148 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12149 fi
12150
12151 if test -n "$ac_config_links"; then
12152 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12153 fi
12154
12155 if test -n "$ac_config_commands"; then
12156 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12157 fi
12158
12159 cat >>$CONFIG_STATUS <<\_ACEOF
12160
12161 ac_cs_usage="\
12162 \`$as_me' instantiates files from templates according to the
12163 current configuration.
12164
12165 Usage: $0 [OPTIONS] [FILE]...
12166
12167 -h, --help print this help, then exit
12168 -V, --version print version number, then exit
12169 -q, --quiet do not print progress messages
12170 -d, --debug don't remove temporary files
12171 --recheck update $as_me by reconfiguring in the same conditions
12172 --file=FILE[:TEMPLATE]
12173 instantiate the configuration file FILE
12174 --header=FILE[:TEMPLATE]
12175 instantiate the configuration header FILE
12176
12177 Configuration files:
12178 $config_files
12179
12180 Configuration headers:
12181 $config_headers
12182
12183 Configuration commands:
12184 $config_commands
12185
12186 Report bugs to <bug-autoconf@gnu.org>."
12187 _ACEOF
12188
12189 cat >>$CONFIG_STATUS <<_ACEOF
12190 ac_cs_version="\\
12191 config.status
12192 configured by $0, generated by GNU Autoconf 2.57,
12193 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12194
12195 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12196 Free Software Foundation, Inc.
12197 This config.status script is free software; the Free Software Foundation
12198 gives unlimited permission to copy, distribute and modify it."
12199 srcdir=$srcdir
12200 INSTALL="$INSTALL"
12201 _ACEOF
12202
12203 cat >>$CONFIG_STATUS <<\_ACEOF
12204 # If no file are specified by the user, then we need to provide default
12205 # value. By we need to know if files were specified by the user.
12206 ac_need_defaults=:
12207 while test $# != 0
12208 do
12209 case $1 in
12210 --*=*)
12211 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12212 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12213 ac_shift=:
12214 ;;
12215 -*)
12216 ac_option=$1
12217 ac_optarg=$2
12218 ac_shift=shift
12219 ;;
12220 *) # This is not an option, so the user has probably given explicit
12221 # arguments.
12222 ac_option=$1
12223 ac_need_defaults=false;;
12224 esac
12225
12226 case $ac_option in
12227 # Handling of the options.
12228 _ACEOF
12229 cat >>$CONFIG_STATUS <<\_ACEOF
12230 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12231 ac_cs_recheck=: ;;
12232 --version | --vers* | -V )
12233 echo "$ac_cs_version"; exit 0 ;;
12234 --he | --h)
12235 # Conflict between --help and --header
12236 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12237 Try \`$0 --help' for more information." >&5
12238 echo "$as_me: error: ambiguous option: $1
12239 Try \`$0 --help' for more information." >&2;}
12240 { (exit 1); exit 1; }; };;
12241 --help | --hel | -h )
12242 echo "$ac_cs_usage"; exit 0 ;;
12243 --debug | --d* | -d )
12244 debug=: ;;
12245 --file | --fil | --fi | --f )
12246 $ac_shift
12247 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12248 ac_need_defaults=false;;
12249 --header | --heade | --head | --hea )
12250 $ac_shift
12251 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12252 ac_need_defaults=false;;
12253 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12254 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12255 ac_cs_silent=: ;;
12256
12257 # This is an error.
12258 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12259 Try \`$0 --help' for more information." >&5
12260 echo "$as_me: error: unrecognized option: $1
12261 Try \`$0 --help' for more information." >&2;}
12262 { (exit 1); exit 1; }; } ;;
12263
12264 *) ac_config_targets="$ac_config_targets $1" ;;
12265
12266 esac
12267 shift
12268 done
12269
12270 ac_configure_extra_args=
12271
12272 if $ac_cs_silent; then
12273 exec 6>/dev/null
12274 ac_configure_extra_args="$ac_configure_extra_args --silent"
12275 fi
12276
12277 _ACEOF
12278 cat >>$CONFIG_STATUS <<_ACEOF
12279 if \$ac_cs_recheck; then
12280 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12281 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12282 fi
12283
12284 _ACEOF
12285
12286 cat >>$CONFIG_STATUS <<_ACEOF
12287 #
12288 # INIT-COMMANDS section.
12289 #
12290
12291
12292
12293 _ACEOF
12294
12295
12296
12297 cat >>$CONFIG_STATUS <<\_ACEOF
12298 for ac_config_target in $ac_config_targets
12299 do
12300 case "$ac_config_target" in
12301 # Handling of arguments.
12302 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12303 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12304 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12305 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12306 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12307 { (exit 1); exit 1; }; };;
12308 esac
12309 done
12310
12311 # If the user did not use the arguments to specify the items to instantiate,
12312 # then the envvar interface is used. Set only those that are not.
12313 # We use the long form for the default assignment because of an extremely
12314 # bizarre bug on SunOS 4.1.3.
12315 if $ac_need_defaults; then
12316 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12317 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12318 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12319 fi
12320
12321 # Have a temporary directory for convenience. Make it in the build tree
12322 # simply because there is no reason to put it here, and in addition,
12323 # creating and moving files from /tmp can sometimes cause problems.
12324 # Create a temporary directory, and hook for its removal unless debugging.
12325 $debug ||
12326 {
12327 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12328 trap '{ (exit 1); exit 1; }' 1 2 13 15
12329 }
12330
12331 # Create a (secure) tmp directory for tmp files.
12332
12333 {
12334 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12335 test -n "$tmp" && test -d "$tmp"
12336 } ||
12337 {
12338 tmp=./confstat$$-$RANDOM
12339 (umask 077 && mkdir $tmp)
12340 } ||
12341 {
12342 echo "$me: cannot create a temporary directory in ." >&2
12343 { (exit 1); exit 1; }
12344 }
12345
12346 _ACEOF
12347
12348 cat >>$CONFIG_STATUS <<_ACEOF
12349
12350 #
12351 # CONFIG_FILES section.
12352 #
12353
12354 # No need to generate the scripts if there are no CONFIG_FILES.
12355 # This happens for instance when ./config.status config.h
12356 if test -n "\$CONFIG_FILES"; then
12357 # Protect against being on the right side of a sed subst in config.status.
12358 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12359 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12360 s,@SHELL@,$SHELL,;t t
12361 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12362 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12363 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12364 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12365 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12366 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12367 s,@exec_prefix@,$exec_prefix,;t t
12368 s,@prefix@,$prefix,;t t
12369 s,@program_transform_name@,$program_transform_name,;t t
12370 s,@bindir@,$bindir,;t t
12371 s,@sbindir@,$sbindir,;t t
12372 s,@libexecdir@,$libexecdir,;t t
12373 s,@datadir@,$datadir,;t t
12374 s,@sysconfdir@,$sysconfdir,;t t
12375 s,@sharedstatedir@,$sharedstatedir,;t t
12376 s,@localstatedir@,$localstatedir,;t t
12377 s,@libdir@,$libdir,;t t
12378 s,@includedir@,$includedir,;t t
12379 s,@oldincludedir@,$oldincludedir,;t t
12380 s,@infodir@,$infodir,;t t
12381 s,@mandir@,$mandir,;t t
12382 s,@build_alias@,$build_alias,;t t
12383 s,@host_alias@,$host_alias,;t t
12384 s,@target_alias@,$target_alias,;t t
12385 s,@DEFS@,$DEFS,;t t
12386 s,@ECHO_C@,$ECHO_C,;t t
12387 s,@ECHO_N@,$ECHO_N,;t t
12388 s,@ECHO_T@,$ECHO_T,;t t
12389 s,@LIBS@,$LIBS,;t t
12390 s,@build@,$build,;t t
12391 s,@build_cpu@,$build_cpu,;t t
12392 s,@build_vendor@,$build_vendor,;t t
12393 s,@build_os@,$build_os,;t t
12394 s,@host@,$host,;t t
12395 s,@host_cpu@,$host_cpu,;t t
12396 s,@host_vendor@,$host_vendor,;t t
12397 s,@host_os@,$host_os,;t t
12398 s,@SHLICC2@,$SHLICC2,;t t
12399 s,@CC@,$CC,;t t
12400 s,@CFLAGS@,$CFLAGS,;t t
12401 s,@LDFLAGS@,$LDFLAGS,;t t
12402 s,@CPPFLAGS@,$CPPFLAGS,;t t
12403 s,@ac_ct_CC@,$ac_ct_CC,;t t
12404 s,@EXEEXT@,$EXEEXT,;t t
12405 s,@OBJEXT@,$OBJEXT,;t t
12406 s,@CPP@,$CPP,;t t
12407 s,@EGREP@,$EGREP,;t t
12408 s,@LIBOBJS@,$LIBOBJS,;t t
12409 s,@V_CCOPT@,$V_CCOPT,;t t
12410 s,@V_DEFS@,$V_DEFS,;t t
12411 s,@V_GROUP@,$V_GROUP,;t t
12412 s,@V_INCLS@,$V_INCLS,;t t
12413 s,@V_PCAPDEP@,$V_PCAPDEP,;t t
12414 s,@LOCALSRC@,$LOCALSRC,;t t
12415 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12416 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12417 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12418 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12419 CEOF
12420
12421 _ACEOF
12422
12423 cat >>$CONFIG_STATUS <<\_ACEOF
12424 # Split the substitutions into bite-sized pieces for seds with
12425 # small command number limits, like on Digital OSF/1 and HP-UX.
12426 ac_max_sed_lines=48
12427 ac_sed_frag=1 # Number of current file.
12428 ac_beg=1 # First line for current file.
12429 ac_end=$ac_max_sed_lines # Line after last line for current file.
12430 ac_more_lines=:
12431 ac_sed_cmds=
12432 while $ac_more_lines; do
12433 if test $ac_beg -gt 1; then
12434 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12435 else
12436 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12437 fi
12438 if test ! -s $tmp/subs.frag; then
12439 ac_more_lines=false
12440 else
12441 # The purpose of the label and of the branching condition is to
12442 # speed up the sed processing (if there are no `@' at all, there
12443 # is no need to browse any of the substitutions).
12444 # These are the two extra sed commands mentioned above.
12445 (echo ':t
12446 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12447 if test -z "$ac_sed_cmds"; then
12448 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12449 else
12450 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12451 fi
12452 ac_sed_frag=`expr $ac_sed_frag + 1`
12453 ac_beg=$ac_end
12454 ac_end=`expr $ac_end + $ac_max_sed_lines`
12455 fi
12456 done
12457 if test -z "$ac_sed_cmds"; then
12458 ac_sed_cmds=cat
12459 fi
12460 fi # test -n "$CONFIG_FILES"
12461
12462 _ACEOF
12463 cat >>$CONFIG_STATUS <<\_ACEOF
12464 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12465 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12466 case $ac_file in
12467 - | *:- | *:-:* ) # input from stdin
12468 cat >$tmp/stdin
12469 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12470 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12471 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12472 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12473 * ) ac_file_in=$ac_file.in ;;
12474 esac
12475
12476 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12477 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12478 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12479 X"$ac_file" : 'X\(//\)[^/]' \| \
12480 X"$ac_file" : 'X\(//\)$' \| \
12481 X"$ac_file" : 'X\(/\)' \| \
12482 . : '\(.\)' 2>/dev/null ||
12483 echo X"$ac_file" |
12484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12485 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12486 /^X\(\/\/\)$/{ s//\1/; q; }
12487 /^X\(\/\).*/{ s//\1/; q; }
12488 s/.*/./; q'`
12489 { if $as_mkdir_p; then
12490 mkdir -p "$ac_dir"
12491 else
12492 as_dir="$ac_dir"
12493 as_dirs=
12494 while test ! -d "$as_dir"; do
12495 as_dirs="$as_dir $as_dirs"
12496 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12497 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12498 X"$as_dir" : 'X\(//\)[^/]' \| \
12499 X"$as_dir" : 'X\(//\)$' \| \
12500 X"$as_dir" : 'X\(/\)' \| \
12501 . : '\(.\)' 2>/dev/null ||
12502 echo X"$as_dir" |
12503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12504 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12505 /^X\(\/\/\)$/{ s//\1/; q; }
12506 /^X\(\/\).*/{ s//\1/; q; }
12507 s/.*/./; q'`
12508 done
12509 test ! -n "$as_dirs" || mkdir $as_dirs
12510 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12511 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12512 { (exit 1); exit 1; }; }; }
12513
12514 ac_builddir=.
12515
12516 if test "$ac_dir" != .; then
12517 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12518 # A "../" for each directory in $ac_dir_suffix.
12519 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12520 else
12521 ac_dir_suffix= ac_top_builddir=
12522 fi
12523
12524 case $srcdir in
12525 .) # No --srcdir option. We are building in place.
12526 ac_srcdir=.
12527 if test -z "$ac_top_builddir"; then
12528 ac_top_srcdir=.
12529 else
12530 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12531 fi ;;
12532 [\\/]* | ?:[\\/]* ) # Absolute path.
12533 ac_srcdir=$srcdir$ac_dir_suffix;
12534 ac_top_srcdir=$srcdir ;;
12535 *) # Relative path.
12536 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12537 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12538 esac
12539 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12540 # absolute.
12541 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12542 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12543 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12544 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12545
12546
12547 case $INSTALL in
12548 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12549 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12550 esac
12551
12552 if test x"$ac_file" != x-; then
12553 { echo "$as_me:$LINENO: creating $ac_file" >&5
12554 echo "$as_me: creating $ac_file" >&6;}
12555 rm -f "$ac_file"
12556 fi
12557 # Let's still pretend it is `configure' which instantiates (i.e., don't
12558 # use $as_me), people would be surprised to read:
12559 # /* config.h. Generated by config.status. */
12560 if test x"$ac_file" = x-; then
12561 configure_input=
12562 else
12563 configure_input="$ac_file. "
12564 fi
12565 configure_input=$configure_input"Generated from `echo $ac_file_in |
12566 sed 's,.*/,,'` by configure."
12567
12568 # First look for the input files in the build tree, otherwise in the
12569 # src tree.
12570 ac_file_inputs=`IFS=:
12571 for f in $ac_file_in; do
12572 case $f in
12573 -) echo $tmp/stdin ;;
12574 [\\/$]*)
12575 # Absolute (can't be DOS-style, as IFS=:)
12576 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12577 echo "$as_me: error: cannot find input file: $f" >&2;}
12578 { (exit 1); exit 1; }; }
12579 echo $f;;
12580 *) # Relative
12581 if test -f "$f"; then
12582 # Build tree
12583 echo $f
12584 elif test -f "$srcdir/$f"; then
12585 # Source tree
12586 echo $srcdir/$f
12587 else
12588 # /dev/null tree
12589 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12590 echo "$as_me: error: cannot find input file: $f" >&2;}
12591 { (exit 1); exit 1; }; }
12592 fi;;
12593 esac
12594 done` || { (exit 1); exit 1; }
12595 _ACEOF
12596 cat >>$CONFIG_STATUS <<_ACEOF
12597 sed "$ac_vpsub
12598 $extrasub
12599 _ACEOF
12600 cat >>$CONFIG_STATUS <<\_ACEOF
12601 :t
12602 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12603 s,@configure_input@,$configure_input,;t t
12604 s,@srcdir@,$ac_srcdir,;t t
12605 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12606 s,@top_srcdir@,$ac_top_srcdir,;t t
12607 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12608 s,@builddir@,$ac_builddir,;t t
12609 s,@abs_builddir@,$ac_abs_builddir,;t t
12610 s,@top_builddir@,$ac_top_builddir,;t t
12611 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12612 s,@INSTALL@,$ac_INSTALL,;t t
12613 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12614 rm -f $tmp/stdin
12615 if test x"$ac_file" != x-; then
12616 mv $tmp/out $ac_file
12617 else
12618 cat $tmp/out
12619 rm -f $tmp/out
12620 fi
12621
12622 done
12623 _ACEOF
12624 cat >>$CONFIG_STATUS <<\_ACEOF
12625
12626 #
12627 # CONFIG_HEADER section.
12628 #
12629
12630 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12631 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12632 #
12633 # ac_d sets the value in "#define NAME VALUE" lines.
12634 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12635 ac_dB='[ ].*$,\1#\2'
12636 ac_dC=' '
12637 ac_dD=',;t'
12638 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12639 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12640 ac_uB='$,\1#\2define\3'
12641 ac_uC=' '
12642 ac_uD=',;t'
12643
12644 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12645 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12646 case $ac_file in
12647 - | *:- | *:-:* ) # input from stdin
12648 cat >$tmp/stdin
12649 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12650 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12651 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12652 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12653 * ) ac_file_in=$ac_file.in ;;
12654 esac
12655
12656 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12657 echo "$as_me: creating $ac_file" >&6;}
12658
12659 # First look for the input files in the build tree, otherwise in the
12660 # src tree.
12661 ac_file_inputs=`IFS=:
12662 for f in $ac_file_in; do
12663 case $f in
12664 -) echo $tmp/stdin ;;
12665 [\\/$]*)
12666 # Absolute (can't be DOS-style, as IFS=:)
12667 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12668 echo "$as_me: error: cannot find input file: $f" >&2;}
12669 { (exit 1); exit 1; }; }
12670 echo $f;;
12671 *) # Relative
12672 if test -f "$f"; then
12673 # Build tree
12674 echo $f
12675 elif test -f "$srcdir/$f"; then
12676 # Source tree
12677 echo $srcdir/$f
12678 else
12679 # /dev/null tree
12680 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12681 echo "$as_me: error: cannot find input file: $f" >&2;}
12682 { (exit 1); exit 1; }; }
12683 fi;;
12684 esac
12685 done` || { (exit 1); exit 1; }
12686 # Remove the trailing spaces.
12687 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12688
12689 _ACEOF
12690
12691 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12692 # `conftest.undefs', that substitutes the proper values into
12693 # config.h.in to produce config.h. The first handles `#define'
12694 # templates, and the second `#undef' templates.
12695 # And first: Protect against being on the right side of a sed subst in
12696 # config.status. Protect against being in an unquoted here document
12697 # in config.status.
12698 rm -f conftest.defines conftest.undefs
12699 # Using a here document instead of a string reduces the quoting nightmare.
12700 # Putting comments in sed scripts is not portable.
12701 #
12702 # `end' is used to avoid that the second main sed command (meant for
12703 # 0-ary CPP macros) applies to n-ary macro definitions.
12704 # See the Autoconf documentation for `clear'.
12705 cat >confdef2sed.sed <<\_ACEOF
12706 s/[\\&,]/\\&/g
12707 s,[\\$`],\\&,g
12708 t clear
12709 : clear
12710 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12711 t end
12712 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12713 : end
12714 _ACEOF
12715 # If some macros were called several times there might be several times
12716 # the same #defines, which is useless. Nevertheless, we may not want to
12717 # sort them, since we want the *last* AC-DEFINE to be honored.
12718 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12719 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12720 rm -f confdef2sed.sed
12721
12722 # This sed command replaces #undef with comments. This is necessary, for
12723 # example, in the case of _POSIX_SOURCE, which is predefined and required
12724 # on some systems where configure will not decide to define it.
12725 cat >>conftest.undefs <<\_ACEOF
12726 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12727 _ACEOF
12728
12729 # Break up conftest.defines because some shells have a limit on the size
12730 # of here documents, and old seds have small limits too (100 cmds).
12731 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12732 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12733 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12734 echo ' :' >>$CONFIG_STATUS
12735 rm -f conftest.tail
12736 while grep . conftest.defines >/dev/null
12737 do
12738 # Write a limited-size here document to $tmp/defines.sed.
12739 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12740 # Speed up: don't consider the non `#define' lines.
12741 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12742 # Work around the forget-to-reset-the-flag bug.
12743 echo 't clr' >>$CONFIG_STATUS
12744 echo ': clr' >>$CONFIG_STATUS
12745 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12746 echo 'CEOF
12747 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12748 rm -f $tmp/in
12749 mv $tmp/out $tmp/in
12750 ' >>$CONFIG_STATUS
12751 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12752 rm -f conftest.defines
12753 mv conftest.tail conftest.defines
12754 done
12755 rm -f conftest.defines
12756 echo ' fi # grep' >>$CONFIG_STATUS
12757 echo >>$CONFIG_STATUS
12758
12759 # Break up conftest.undefs because some shells have a limit on the size
12760 # of here documents, and old seds have small limits too (100 cmds).
12761 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12762 rm -f conftest.tail
12763 while grep . conftest.undefs >/dev/null
12764 do
12765 # Write a limited-size here document to $tmp/undefs.sed.
12766 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12767 # Speed up: don't consider the non `#undef'
12768 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12769 # Work around the forget-to-reset-the-flag bug.
12770 echo 't clr' >>$CONFIG_STATUS
12771 echo ': clr' >>$CONFIG_STATUS
12772 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12773 echo 'CEOF
12774 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12775 rm -f $tmp/in
12776 mv $tmp/out $tmp/in
12777 ' >>$CONFIG_STATUS
12778 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12779 rm -f conftest.undefs
12780 mv conftest.tail conftest.undefs
12781 done
12782 rm -f conftest.undefs
12783
12784 cat >>$CONFIG_STATUS <<\_ACEOF
12785 # Let's still pretend it is `configure' which instantiates (i.e., don't
12786 # use $as_me), people would be surprised to read:
12787 # /* config.h. Generated by config.status. */
12788 if test x"$ac_file" = x-; then
12789 echo "/* Generated by configure. */" >$tmp/config.h
12790 else
12791 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12792 fi
12793 cat $tmp/in >>$tmp/config.h
12794 rm -f $tmp/in
12795 if test x"$ac_file" != x-; then
12796 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12797 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12798 echo "$as_me: $ac_file is unchanged" >&6;}
12799 else
12800 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12801 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12802 X"$ac_file" : 'X\(//\)[^/]' \| \
12803 X"$ac_file" : 'X\(//\)$' \| \
12804 X"$ac_file" : 'X\(/\)' \| \
12805 . : '\(.\)' 2>/dev/null ||
12806 echo X"$ac_file" |
12807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12808 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12809 /^X\(\/\/\)$/{ s//\1/; q; }
12810 /^X\(\/\).*/{ s//\1/; q; }
12811 s/.*/./; q'`
12812 { if $as_mkdir_p; then
12813 mkdir -p "$ac_dir"
12814 else
12815 as_dir="$ac_dir"
12816 as_dirs=
12817 while test ! -d "$as_dir"; do
12818 as_dirs="$as_dir $as_dirs"
12819 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12820 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12821 X"$as_dir" : 'X\(//\)[^/]' \| \
12822 X"$as_dir" : 'X\(//\)$' \| \
12823 X"$as_dir" : 'X\(/\)' \| \
12824 . : '\(.\)' 2>/dev/null ||
12825 echo X"$as_dir" |
12826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12827 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12828 /^X\(\/\/\)$/{ s//\1/; q; }
12829 /^X\(\/\).*/{ s//\1/; q; }
12830 s/.*/./; q'`
12831 done
12832 test ! -n "$as_dirs" || mkdir $as_dirs
12833 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12834 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12835 { (exit 1); exit 1; }; }; }
12836
12837 rm -f $ac_file
12838 mv $tmp/config.h $ac_file
12839 fi
12840 else
12841 cat $tmp/config.h
12842 rm -f $tmp/config.h
12843 fi
12844 done
12845 _ACEOF
12846 cat >>$CONFIG_STATUS <<\_ACEOF
12847
12848 #
12849 # CONFIG_COMMANDS section.
12850 #
12851 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12852 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12853 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12854 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12855 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12856 X"$ac_dest" : 'X\(//\)[^/]' \| \
12857 X"$ac_dest" : 'X\(//\)$' \| \
12858 X"$ac_dest" : 'X\(/\)' \| \
12859 . : '\(.\)' 2>/dev/null ||
12860 echo X"$ac_dest" |
12861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12862 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12863 /^X\(\/\/\)$/{ s//\1/; q; }
12864 /^X\(\/\).*/{ s//\1/; q; }
12865 s/.*/./; q'`
12866 ac_builddir=.
12867
12868 if test "$ac_dir" != .; then
12869 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12870 # A "../" for each directory in $ac_dir_suffix.
12871 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12872 else
12873 ac_dir_suffix= ac_top_builddir=
12874 fi
12875
12876 case $srcdir in
12877 .) # No --srcdir option. We are building in place.
12878 ac_srcdir=.
12879 if test -z "$ac_top_builddir"; then
12880 ac_top_srcdir=.
12881 else
12882 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12883 fi ;;
12884 [\\/]* | ?:[\\/]* ) # Absolute path.
12885 ac_srcdir=$srcdir$ac_dir_suffix;
12886 ac_top_srcdir=$srcdir ;;
12887 *) # Relative path.
12888 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12889 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12890 esac
12891 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12892 # absolute.
12893 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12894 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12895 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12896 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12897
12898
12899 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12900 echo "$as_me: executing $ac_dest commands" >&6;}
12901 case $ac_dest in
12902 default-1 ) if test -f .devel; then
12903 echo timestamp > stamp-h
12904 cat Makefile-devel-adds >> Makefile
12905 make depend
12906 fi ;;
12907 esac
12908 done
12909 _ACEOF
12910
12911 cat >>$CONFIG_STATUS <<\_ACEOF
12912
12913 { (exit 0); exit 0; }
12914 _ACEOF
12915 chmod +x $CONFIG_STATUS
12916 ac_clean_files=$ac_clean_files_save
12917
12918
12919 # configure is writing to config.log, and then calls config.status.
12920 # config.status does its own redirection, appending to config.log.
12921 # Unfortunately, on DOS this fails, as config.log is still kept open
12922 # by configure, so config.status won't be able to write to it; its
12923 # output is simply discarded. So we exec the FD to /dev/null,
12924 # effectively closing config.log, so it can be properly (re)opened and
12925 # appended to by config.status. When coming back to configure, we
12926 # need to make the FD available again.
12927 if test "$no_create" != yes; then
12928 ac_cs_success=:
12929 ac_config_status_args=
12930 test "$silent" = yes &&
12931 ac_config_status_args="$ac_config_status_args --quiet"
12932 exec 5>/dev/null
12933 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12934 exec 5>>config.log
12935 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12936 # would make configure fail if this is the last instruction.
12937 $ac_cs_success || { (exit 1); exit 1; }
12938 fi
12939
12940 exit 0