]> The Tcpdump Group git mirrors - tcpdump/blob - configure
regenerated configure with 2.57.
[tcpdump] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.178 .
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 int
2601 main ()
2602 {
2603
2604 static void foo(void) __attribute__ ((noreturn));
2605
2606 static void
2607 foo(void)
2608 {
2609 exit(1);
2610 }
2611
2612 ;
2613 return 0;
2614 }
2615 _ACEOF
2616 rm -f conftest.$ac_objext
2617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2618 (eval $ac_compile) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } &&
2622 { ac_try='test -s conftest.$ac_objext'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 (eval $ac_try) 2>&5
2625 ac_status=$?
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; }; then
2628 ac_cv___attribute__=yes
2629 else
2630 echo "$as_me: failed program was:" >&5
2631 sed 's/^/| /' conftest.$ac_ext >&5
2632
2633 ac_cv___attribute__=no
2634 fi
2635 rm -f conftest.$ac_objext conftest.$ac_ext
2636 fi
2637
2638 if test "$ac_cv___attribute__" = "yes"; then
2639
2640 cat >>confdefs.h <<\_ACEOF
2641 #define HAVE___ATTRIBUTE__ 1
2642 _ACEOF
2643
2644 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
2645 else
2646 V_DEFS="$V_DEFS -D_U_=\"\""
2647 fi
2648 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2649 echo "${ECHO_T}$ac_cv___attribute__" >&6
2650
2651
2652 ac_ext=c
2653 ac_cpp='$CPP $CPPFLAGS'
2654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2657 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2658 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2659 # On Suns, sometimes $CPP names a directory.
2660 if test -n "$CPP" && test -d "$CPP"; then
2661 CPP=
2662 fi
2663 if test -z "$CPP"; then
2664 if test "${ac_cv_prog_CPP+set}" = set; then
2665 echo $ECHO_N "(cached) $ECHO_C" >&6
2666 else
2667 # Double quotes because CPP needs to be expanded
2668 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2669 do
2670 ac_preproc_ok=false
2671 for ac_c_preproc_warn_flag in '' yes
2672 do
2673 # Use a header file that comes with gcc, so configuring glibc
2674 # with a fresh cross-compiler works.
2675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2676 # <limits.h> exists even on freestanding compilers.
2677 # On the NeXT, cc -E runs the code through the compiler's parser,
2678 # not just through cpp. "Syntax error" is here to catch this case.
2679 cat >conftest.$ac_ext <<_ACEOF
2680 #line $LINENO "configure"
2681 /* confdefs.h. */
2682 _ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h. */
2686 #ifdef __STDC__
2687 # include <limits.h>
2688 #else
2689 # include <assert.h>
2690 #endif
2691 Syntax error
2692 _ACEOF
2693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2695 ac_status=$?
2696 grep -v '^ *+' conftest.er1 >conftest.err
2697 rm -f conftest.er1
2698 cat conftest.err >&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } >/dev/null; then
2701 if test -s conftest.err; then
2702 ac_cpp_err=$ac_c_preproc_warn_flag
2703 else
2704 ac_cpp_err=
2705 fi
2706 else
2707 ac_cpp_err=yes
2708 fi
2709 if test -z "$ac_cpp_err"; then
2710 :
2711 else
2712 echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2714
2715 # Broken: fails on valid input.
2716 continue
2717 fi
2718 rm -f conftest.err conftest.$ac_ext
2719
2720 # OK, works on sane cases. Now check whether non-existent headers
2721 # can be detected and how.
2722 cat >conftest.$ac_ext <<_ACEOF
2723 #line $LINENO "configure"
2724 /* confdefs.h. */
2725 _ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2729 #include <ac_nonexistent.h>
2730 _ACEOF
2731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2733 ac_status=$?
2734 grep -v '^ *+' conftest.er1 >conftest.err
2735 rm -f conftest.er1
2736 cat conftest.err >&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); } >/dev/null; then
2739 if test -s conftest.err; then
2740 ac_cpp_err=$ac_c_preproc_warn_flag
2741 else
2742 ac_cpp_err=
2743 fi
2744 else
2745 ac_cpp_err=yes
2746 fi
2747 if test -z "$ac_cpp_err"; then
2748 # Broken: success on invalid input.
2749 continue
2750 else
2751 echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2753
2754 # Passes both tests.
2755 ac_preproc_ok=:
2756 break
2757 fi
2758 rm -f conftest.err conftest.$ac_ext
2759
2760 done
2761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2762 rm -f conftest.err conftest.$ac_ext
2763 if $ac_preproc_ok; then
2764 break
2765 fi
2766
2767 done
2768 ac_cv_prog_CPP=$CPP
2769
2770 fi
2771 CPP=$ac_cv_prog_CPP
2772 else
2773 ac_cv_prog_CPP=$CPP
2774 fi
2775 echo "$as_me:$LINENO: result: $CPP" >&5
2776 echo "${ECHO_T}$CPP" >&6
2777 ac_preproc_ok=false
2778 for ac_c_preproc_warn_flag in '' yes
2779 do
2780 # Use a header file that comes with gcc, so configuring glibc
2781 # with a fresh cross-compiler works.
2782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2783 # <limits.h> exists even on freestanding compilers.
2784 # On the NeXT, cc -E runs the code through the compiler's parser,
2785 # not just through cpp. "Syntax error" is here to catch this case.
2786 cat >conftest.$ac_ext <<_ACEOF
2787 #line $LINENO "configure"
2788 /* confdefs.h. */
2789 _ACEOF
2790 cat confdefs.h >>conftest.$ac_ext
2791 cat >>conftest.$ac_ext <<_ACEOF
2792 /* end confdefs.h. */
2793 #ifdef __STDC__
2794 # include <limits.h>
2795 #else
2796 # include <assert.h>
2797 #endif
2798 Syntax error
2799 _ACEOF
2800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2802 ac_status=$?
2803 grep -v '^ *+' conftest.er1 >conftest.err
2804 rm -f conftest.er1
2805 cat conftest.err >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); } >/dev/null; then
2808 if test -s conftest.err; then
2809 ac_cpp_err=$ac_c_preproc_warn_flag
2810 else
2811 ac_cpp_err=
2812 fi
2813 else
2814 ac_cpp_err=yes
2815 fi
2816 if test -z "$ac_cpp_err"; then
2817 :
2818 else
2819 echo "$as_me: failed program was:" >&5
2820 sed 's/^/| /' conftest.$ac_ext >&5
2821
2822 # Broken: fails on valid input.
2823 continue
2824 fi
2825 rm -f conftest.err conftest.$ac_ext
2826
2827 # OK, works on sane cases. Now check whether non-existent headers
2828 # can be detected and how.
2829 cat >conftest.$ac_ext <<_ACEOF
2830 #line $LINENO "configure"
2831 /* confdefs.h. */
2832 _ACEOF
2833 cat confdefs.h >>conftest.$ac_ext
2834 cat >>conftest.$ac_ext <<_ACEOF
2835 /* end confdefs.h. */
2836 #include <ac_nonexistent.h>
2837 _ACEOF
2838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2840 ac_status=$?
2841 grep -v '^ *+' conftest.er1 >conftest.err
2842 rm -f conftest.er1
2843 cat conftest.err >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); } >/dev/null; then
2846 if test -s conftest.err; then
2847 ac_cpp_err=$ac_c_preproc_warn_flag
2848 else
2849 ac_cpp_err=
2850 fi
2851 else
2852 ac_cpp_err=yes
2853 fi
2854 if test -z "$ac_cpp_err"; then
2855 # Broken: success on invalid input.
2856 continue
2857 else
2858 echo "$as_me: failed program was:" >&5
2859 sed 's/^/| /' conftest.$ac_ext >&5
2860
2861 # Passes both tests.
2862 ac_preproc_ok=:
2863 break
2864 fi
2865 rm -f conftest.err conftest.$ac_ext
2866
2867 done
2868 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2869 rm -f conftest.err conftest.$ac_ext
2870 if $ac_preproc_ok; then
2871 :
2872 else
2873 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2874 See \`config.log' for more details." >&5
2875 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2876 See \`config.log' for more details." >&2;}
2877 { (exit 1); exit 1; }; }
2878 fi
2879
2880 ac_ext=c
2881 ac_cpp='$CPP $CPPFLAGS'
2882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2885
2886
2887 echo "$as_me:$LINENO: checking for egrep" >&5
2888 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2889 if test "${ac_cv_prog_egrep+set}" = set; then
2890 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 else
2892 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2893 then ac_cv_prog_egrep='grep -E'
2894 else ac_cv_prog_egrep='egrep'
2895 fi
2896 fi
2897 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2898 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2899 EGREP=$ac_cv_prog_egrep
2900
2901
2902 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2903 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2904 if test "${ac_cv_header_stdc+set}" = set; then
2905 echo $ECHO_N "(cached) $ECHO_C" >&6
2906 else
2907 cat >conftest.$ac_ext <<_ACEOF
2908 #line $LINENO "configure"
2909 /* confdefs.h. */
2910 _ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h. */
2914 #include <stdlib.h>
2915 #include <stdarg.h>
2916 #include <string.h>
2917 #include <float.h>
2918
2919 int
2920 main ()
2921 {
2922
2923 ;
2924 return 0;
2925 }
2926 _ACEOF
2927 rm -f conftest.$ac_objext
2928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2929 (eval $ac_compile) 2>&5
2930 ac_status=$?
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } &&
2933 { ac_try='test -s conftest.$ac_objext'
2934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935 (eval $ac_try) 2>&5
2936 ac_status=$?
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; }; then
2939 ac_cv_header_stdc=yes
2940 else
2941 echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2943
2944 ac_cv_header_stdc=no
2945 fi
2946 rm -f conftest.$ac_objext conftest.$ac_ext
2947
2948 if test $ac_cv_header_stdc = yes; then
2949 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2950 cat >conftest.$ac_ext <<_ACEOF
2951 #line $LINENO "configure"
2952 /* confdefs.h. */
2953 _ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2957 #include <string.h>
2958
2959 _ACEOF
2960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2961 $EGREP "memchr" >/dev/null 2>&1; then
2962 :
2963 else
2964 ac_cv_header_stdc=no
2965 fi
2966 rm -f conftest*
2967
2968 fi
2969
2970 if test $ac_cv_header_stdc = yes; then
2971 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2972 cat >conftest.$ac_ext <<_ACEOF
2973 #line $LINENO "configure"
2974 /* confdefs.h. */
2975 _ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h. */
2979 #include <stdlib.h>
2980
2981 _ACEOF
2982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2983 $EGREP "free" >/dev/null 2>&1; then
2984 :
2985 else
2986 ac_cv_header_stdc=no
2987 fi
2988 rm -f conftest*
2989
2990 fi
2991
2992 if test $ac_cv_header_stdc = yes; then
2993 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2994 if test "$cross_compiling" = yes; then
2995 :
2996 else
2997 cat >conftest.$ac_ext <<_ACEOF
2998 #line $LINENO "configure"
2999 /* confdefs.h. */
3000 _ACEOF
3001 cat confdefs.h >>conftest.$ac_ext
3002 cat >>conftest.$ac_ext <<_ACEOF
3003 /* end confdefs.h. */
3004 #include <ctype.h>
3005 #if ((' ' & 0x0FF) == 0x020)
3006 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3007 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3008 #else
3009 # define ISLOWER(c) \
3010 (('a' <= (c) && (c) <= 'i') \
3011 || ('j' <= (c) && (c) <= 'r') \
3012 || ('s' <= (c) && (c) <= 'z'))
3013 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3014 #endif
3015
3016 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3017 int
3018 main ()
3019 {
3020 int i;
3021 for (i = 0; i < 256; i++)
3022 if (XOR (islower (i), ISLOWER (i))
3023 || toupper (i) != TOUPPER (i))
3024 exit(2);
3025 exit (0);
3026 }
3027 _ACEOF
3028 rm -f conftest$ac_exeext
3029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3030 (eval $ac_link) 2>&5
3031 ac_status=$?
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035 (eval $ac_try) 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
3039 :
3040 else
3041 echo "$as_me: program exited with status $ac_status" >&5
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3044
3045 ( exit $ac_status )
3046 ac_cv_header_stdc=no
3047 fi
3048 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3049 fi
3050 fi
3051 fi
3052 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3053 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3054 if test $ac_cv_header_stdc = yes; then
3055
3056 cat >>confdefs.h <<\_ACEOF
3057 #define STDC_HEADERS 1
3058 _ACEOF
3059
3060 fi
3061
3062 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3073 inttypes.h stdint.h unistd.h
3074 do
3075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3076 echo "$as_me:$LINENO: checking for $ac_header" >&5
3077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3080 else
3081 cat >conftest.$ac_ext <<_ACEOF
3082 #line $LINENO "configure"
3083 /* confdefs.h. */
3084 _ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3088 $ac_includes_default
3089
3090 #include <$ac_header>
3091 _ACEOF
3092 rm -f conftest.$ac_objext
3093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3094 (eval $ac_compile) 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } &&
3098 { ac_try='test -s conftest.$ac_objext'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100 (eval $ac_try) 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3104 eval "$as_ac_Header=yes"
3105 else
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3108
3109 eval "$as_ac_Header=no"
3110 fi
3111 rm -f conftest.$ac_objext conftest.$ac_ext
3112 fi
3113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3116 cat >>confdefs.h <<_ACEOF
3117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3118 _ACEOF
3119
3120 fi
3121
3122 done
3123
3124
3125
3126
3127
3128
3129 for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h netinet/ether.h
3130 do
3131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3133 echo "$as_me:$LINENO: checking for $ac_header" >&5
3134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3137 fi
3138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3140 else
3141 # Is the header compilable?
3142 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3144 cat >conftest.$ac_ext <<_ACEOF
3145 #line $LINENO "configure"
3146 /* confdefs.h. */
3147 _ACEOF
3148 cat confdefs.h >>conftest.$ac_ext
3149 cat >>conftest.$ac_ext <<_ACEOF
3150 /* end confdefs.h. */
3151 $ac_includes_default
3152 #include <$ac_header>
3153 _ACEOF
3154 rm -f conftest.$ac_objext
3155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3156 (eval $ac_compile) 2>&5
3157 ac_status=$?
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } &&
3160 { ac_try='test -s conftest.$ac_objext'
3161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162 (eval $ac_try) 2>&5
3163 ac_status=$?
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; }; then
3166 ac_header_compiler=yes
3167 else
3168 echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3170
3171 ac_header_compiler=no
3172 fi
3173 rm -f conftest.$ac_objext conftest.$ac_ext
3174 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3175 echo "${ECHO_T}$ac_header_compiler" >&6
3176
3177 # Is the header present?
3178 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3179 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3180 cat >conftest.$ac_ext <<_ACEOF
3181 #line $LINENO "configure"
3182 /* confdefs.h. */
3183 _ACEOF
3184 cat confdefs.h >>conftest.$ac_ext
3185 cat >>conftest.$ac_ext <<_ACEOF
3186 /* end confdefs.h. */
3187 #include <$ac_header>
3188 _ACEOF
3189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3191 ac_status=$?
3192 grep -v '^ *+' conftest.er1 >conftest.err
3193 rm -f conftest.er1
3194 cat conftest.err >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } >/dev/null; then
3197 if test -s conftest.err; then
3198 ac_cpp_err=$ac_c_preproc_warn_flag
3199 else
3200 ac_cpp_err=
3201 fi
3202 else
3203 ac_cpp_err=yes
3204 fi
3205 if test -z "$ac_cpp_err"; then
3206 ac_header_preproc=yes
3207 else
3208 echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3210
3211 ac_header_preproc=no
3212 fi
3213 rm -f conftest.err conftest.$ac_ext
3214 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3215 echo "${ECHO_T}$ac_header_preproc" >&6
3216
3217 # So? What about this header?
3218 case $ac_header_compiler:$ac_header_preproc in
3219 yes:no )
3220 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3221 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3223 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3224 (
3225 cat <<\_ASBOX
3226 ## ------------------------------------ ##
3227 ## Report this to bug-autoconf@gnu.org. ##
3228 ## ------------------------------------ ##
3229 _ASBOX
3230 ) |
3231 sed "s/^/$as_me: WARNING: /" >&2
3232 ;;
3233 no:yes )
3234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3235 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3237 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3239 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3240 (
3241 cat <<\_ASBOX
3242 ## ------------------------------------ ##
3243 ## Report this to bug-autoconf@gnu.org. ##
3244 ## ------------------------------------ ##
3245 _ASBOX
3246 ) |
3247 sed "s/^/$as_me: WARNING: /" >&2
3248 ;;
3249 esac
3250 echo "$as_me:$LINENO: checking for $ac_header" >&5
3251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 else
3255 eval "$as_ac_Header=$ac_header_preproc"
3256 fi
3257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3259
3260 fi
3261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3262 cat >>confdefs.h <<_ACEOF
3263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3264 _ACEOF
3265
3266 fi
3267
3268 done
3269
3270
3271 for ac_header in netinet/if_ether.h
3272 do
3273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3274 echo "$as_me:$LINENO: checking for $ac_header" >&5
3275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 else
3279 cat >conftest.$ac_ext <<_ACEOF
3280 #line $LINENO "configure"
3281 /* confdefs.h. */
3282 _ACEOF
3283 cat confdefs.h >>conftest.$ac_ext
3284 cat >>conftest.$ac_ext <<_ACEOF
3285 /* end confdefs.h. */
3286 #include <sys/types.h>
3287 #include <sys/socket.h>
3288
3289 #include <$ac_header>
3290 _ACEOF
3291 rm -f conftest.$ac_objext
3292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3293 (eval $ac_compile) 2>&5
3294 ac_status=$?
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } &&
3297 { ac_try='test -s conftest.$ac_objext'
3298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299 (eval $ac_try) 2>&5
3300 ac_status=$?
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }; }; then
3303 eval "$as_ac_Header=yes"
3304 else
3305 echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3307
3308 eval "$as_ac_Header=no"
3309 fi
3310 rm -f conftest.$ac_objext conftest.$ac_ext
3311 fi
3312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3315 cat >>confdefs.h <<_ACEOF
3316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3317 _ACEOF
3318
3319 fi
3320
3321 done
3322
3323 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3324 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3325 if test "${ac_cv_header_time+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328 cat >conftest.$ac_ext <<_ACEOF
3329 #line $LINENO "configure"
3330 /* confdefs.h. */
3331 _ACEOF
3332 cat confdefs.h >>conftest.$ac_ext
3333 cat >>conftest.$ac_ext <<_ACEOF
3334 /* end confdefs.h. */
3335 #include <sys/types.h>
3336 #include <sys/time.h>
3337 #include <time.h>
3338
3339 int
3340 main ()
3341 {
3342 if ((struct tm *) 0)
3343 return 0;
3344 ;
3345 return 0;
3346 }
3347 _ACEOF
3348 rm -f conftest.$ac_objext
3349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3350 (eval $ac_compile) 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); } &&
3354 { ac_try='test -s conftest.$ac_objext'
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 (eval $ac_try) 2>&5
3357 ac_status=$?
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; }; then
3360 ac_cv_header_time=yes
3361 else
3362 echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3364
3365 ac_cv_header_time=no
3366 fi
3367 rm -f conftest.$ac_objext conftest.$ac_ext
3368 fi
3369 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3370 echo "${ECHO_T}$ac_cv_header_time" >&6
3371 if test $ac_cv_header_time = yes; then
3372
3373 cat >>confdefs.h <<\_ACEOF
3374 #define TIME_WITH_SYS_TIME 1
3375 _ACEOF
3376
3377 fi
3378
3379
3380 case "$host_os" in
3381
3382 linux*)
3383 echo "$as_me:$LINENO: checking Linux kernel version" >&5
3384 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
3385 if test "$cross_compiling" = yes; then
3386 if test "${ac_cv_linux_vers+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 else
3389 ac_cv_linux_vers=unknown
3390 fi
3391
3392 else
3393 if test "${ac_cv_linux_vers+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 else
3396 ac_cv_linux_vers=`uname -r 2>&1 | \
3397 sed -n -e '$s/.* //' -e '$s/\..*//p'`
3398 fi
3399
3400 fi
3401 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
3402 echo "${ECHO_T}$ac_cv_linux_vers" >&6
3403 if test $ac_cv_linux_vers = unknown ; then
3404 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
3405 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
3406 { (exit 1); exit 1; }; }
3407 fi
3408 if test $ac_cv_linux_vers -lt 2 ; then
3409 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
3410 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
3411 { (exit 1); exit 1; }; }
3412 fi
3413 ;;
3414
3415 *)
3416 ;;
3417 esac
3418
3419
3420
3421 for ac_header in smi.h
3422 do
3423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3425 echo "$as_me:$LINENO: checking for $ac_header" >&5
3426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3429 fi
3430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3432 else
3433 # Is the header compilable?
3434 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3435 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3436 cat >conftest.$ac_ext <<_ACEOF
3437 #line $LINENO "configure"
3438 /* confdefs.h. */
3439 _ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h. */
3443 $ac_includes_default
3444 #include <$ac_header>
3445 _ACEOF
3446 rm -f conftest.$ac_objext
3447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3448 (eval $ac_compile) 2>&5
3449 ac_status=$?
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try='test -s conftest.$ac_objext'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454 (eval $ac_try) 2>&5
3455 ac_status=$?
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; }; then
3458 ac_header_compiler=yes
3459 else
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3462
3463 ac_header_compiler=no
3464 fi
3465 rm -f conftest.$ac_objext conftest.$ac_ext
3466 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3467 echo "${ECHO_T}$ac_header_compiler" >&6
3468
3469 # Is the header present?
3470 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3472 cat >conftest.$ac_ext <<_ACEOF
3473 #line $LINENO "configure"
3474 /* confdefs.h. */
3475 _ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h. */
3479 #include <$ac_header>
3480 _ACEOF
3481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3483 ac_status=$?
3484 grep -v '^ *+' conftest.er1 >conftest.err
3485 rm -f conftest.er1
3486 cat conftest.err >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } >/dev/null; then
3489 if test -s conftest.err; then
3490 ac_cpp_err=$ac_c_preproc_warn_flag
3491 else
3492 ac_cpp_err=
3493 fi
3494 else
3495 ac_cpp_err=yes
3496 fi
3497 if test -z "$ac_cpp_err"; then
3498 ac_header_preproc=yes
3499 else
3500 echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3502
3503 ac_header_preproc=no
3504 fi
3505 rm -f conftest.err conftest.$ac_ext
3506 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3507 echo "${ECHO_T}$ac_header_preproc" >&6
3508
3509 # So? What about this header?
3510 case $ac_header_compiler:$ac_header_preproc in
3511 yes:no )
3512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3515 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3516 (
3517 cat <<\_ASBOX
3518 ## ------------------------------------ ##
3519 ## Report this to bug-autoconf@gnu.org. ##
3520 ## ------------------------------------ ##
3521 _ASBOX
3522 ) |
3523 sed "s/^/$as_me: WARNING: /" >&2
3524 ;;
3525 no:yes )
3526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3529 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3532 (
3533 cat <<\_ASBOX
3534 ## ------------------------------------ ##
3535 ## Report this to bug-autoconf@gnu.org. ##
3536 ## ------------------------------------ ##
3537 _ASBOX
3538 ) |
3539 sed "s/^/$as_me: WARNING: /" >&2
3540 ;;
3541 esac
3542 echo "$as_me:$LINENO: checking for $ac_header" >&5
3543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547 eval "$as_ac_Header=$ac_header_preproc"
3548 fi
3549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3551
3552 fi
3553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3554 cat >>confdefs.h <<_ACEOF
3555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3556 _ACEOF
3557
3558 fi
3559
3560 done
3561
3562
3563 echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
3564 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6
3565 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 else
3568 ac_check_lib_save_LIBS=$LIBS
3569 LIBS="-lsmi $LIBS"
3570 cat >conftest.$ac_ext <<_ACEOF
3571 #line $LINENO "configure"
3572 /* confdefs.h. */
3573 _ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h. */
3577
3578 /* Override any gcc2 internal prototype to avoid an error. */
3579 #ifdef __cplusplus
3580 extern "C"
3581 #endif
3582 /* We use char because int might match the return type of a gcc2
3583 builtin and then its argument prototype would still apply. */
3584 char smiInit ();
3585 int
3586 main ()
3587 {
3588 smiInit ();
3589 ;
3590 return 0;
3591 }
3592 _ACEOF
3593 rm -f conftest.$ac_objext conftest$ac_exeext
3594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3595 (eval $ac_link) 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } &&
3599 { ac_try='test -s conftest$ac_exeext'
3600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601 (eval $ac_try) 2>&5
3602 ac_status=$?
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }; }; then
3605 ac_cv_lib_smi_smiInit=yes
3606 else
3607 echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3609
3610 ac_cv_lib_smi_smiInit=no
3611 fi
3612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3613 LIBS=$ac_check_lib_save_LIBS
3614 fi
3615 echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
3616 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6
3617 if test $ac_cv_lib_smi_smiInit = yes; then
3618 cat >>confdefs.h <<_ACEOF
3619 #define HAVE_LIBSMI 1
3620 _ACEOF
3621
3622 LIBS="-lsmi $LIBS"
3623
3624 fi
3625
3626 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
3627 then
3628 echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
3629 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6
3630 if test "$cross_compiling" = yes; then
3631 echo "$as_me:$LINENO: result: not when cross-compiling" >&5
3632 echo "${ECHO_T}not when cross-compiling" >&6
3633 libsmi=no
3634
3635 else
3636 cat >conftest.$ac_ext <<_ACEOF
3637 #line $LINENO "configure"
3638 /* confdefs.h. */
3639 _ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h. */
3643 /* libsmi available check */
3644 #include <smi.h>
3645 main()
3646 {
3647 int current, revision, age, n;
3648 const int required = 2;
3649 if (smiInit(""))
3650 exit(1);
3651 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
3652 exit(2);
3653 n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
3654 if (n != 3)
3655 exit(3);
3656 if (required < current - age || required > current)
3657 exit(4);
3658 exit(0);
3659 }
3660
3661 _ACEOF
3662 rm -f conftest$ac_exeext
3663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3664 (eval $ac_link) 2>&5
3665 ac_status=$?
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 (eval $ac_try) 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; }; then
3673 echo "$as_me:$LINENO: result: yes" >&5
3674 echo "${ECHO_T}yes" >&6
3675 cat >>confdefs.h <<\_ACEOF
3676 #define LIBSMI 1
3677 _ACEOF
3678
3679 libsmi=yes
3680 else
3681 echo "$as_me: program exited with status $ac_status" >&5
3682 echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3684
3685 ( exit $ac_status )
3686 case $? in
3687 1) echo "$as_me:$LINENO: result: no - smiInit failed" >&5
3688 echo "${ECHO_T}no - smiInit failed" >&6 ;;
3689 2) echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
3690 echo "${ECHO_T}no - header/library version mismatch" >&6 ;;
3691 3) echo "$as_me:$LINENO: result: no - can't determine library version" >&5
3692 echo "${ECHO_T}no - can't determine library version" >&6 ;;
3693 4) echo "$as_me:$LINENO: result: no - too old" >&5
3694 echo "${ECHO_T}no - too old" >&6 ;;
3695 *) echo "$as_me:$LINENO: result: no" >&5
3696 echo "${ECHO_T}no" >&6 ;;
3697 esac
3698 libsmi=no
3699 fi
3700 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3701 fi
3702 fi
3703
3704 echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
3705 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6
3706 # Check whether --enable-smb or --disable-smb was given.
3707 if test "${enable_smb+set}" = set; then
3708 enableval="$enable_smb"
3709
3710 else
3711 enableval=yes
3712 fi;
3713 case "$enableval" in
3714 yes) echo "$as_me:$LINENO: result: yes" >&5
3715 echo "${ECHO_T}yes" >&6
3716 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
3717 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
3718 cat >>confdefs.h <<\_ACEOF
3719 #define TCPDUMP_DO_SMB 1
3720 _ACEOF
3721
3722 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
3723 ;;
3724 *) echo "$as_me:$LINENO: result: no" >&5
3725 echo "${ECHO_T}no" >&6
3726 ;;
3727 esac
3728
3729
3730 # Check whether --with-user or --without-user was given.
3731 if test "${with_user+set}" = set; then
3732 withval="$with_user"
3733
3734 fi;
3735 echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
3736 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6
3737 if test ! -z "$with_user" ; then
3738 cat >>confdefs.h <<_ACEOF
3739 #define WITH_USER "$withval"
3740 _ACEOF
3741
3742 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
3743 echo "${ECHO_T}to \"$withval\"" >&6
3744 else
3745 echo "$as_me:$LINENO: result: no" >&5
3746 echo "${ECHO_T}no" >&6
3747 fi
3748
3749
3750 # Check whether --with-chroot or --without-chroot was given.
3751 if test "${with_chroot+set}" = set; then
3752 withval="$with_chroot"
3753
3754 fi;
3755 echo "$as_me:$LINENO: checking whether to chroot" >&5
3756 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6
3757 if test ! -z "$with_chroot" ; then
3758 cat >>confdefs.h <<_ACEOF
3759 #define WITH_CHROOT "$withval"
3760 _ACEOF
3761
3762 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
3763 echo "${ECHO_T}to \"$withval\"" >&6
3764 else
3765 echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6
3767 fi
3768
3769 echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
3770 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
3771 # Check whether --enable-ipv6 or --disable-ipv6 was given.
3772 if test "${enable_ipv6+set}" = set; then
3773 enableval="$enable_ipv6"
3774 case "$enableval" in
3775 yes) echo "$as_me:$LINENO: result: yes" >&5
3776 echo "${ECHO_T}yes" >&6
3777 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"
3778 cat >>confdefs.h <<\_ACEOF
3779 #define INET6 1
3780 _ACEOF
3781
3782 ipv6=yes
3783 ;;
3784 *)
3785 echo "$as_me:$LINENO: result: no" >&5
3786 echo "${ECHO_T}no" >&6
3787 ipv6=no
3788 ;;
3789 esac
3790 else
3791 if test "$cross_compiling" = yes; then
3792 echo "$as_me:$LINENO: result: no" >&5
3793 echo "${ECHO_T}no" >&6
3794 ipv6=no
3795
3796 else
3797 cat >conftest.$ac_ext <<_ACEOF
3798 #line $LINENO "configure"
3799 /* confdefs.h. */
3800 _ACEOF
3801 cat confdefs.h >>conftest.$ac_ext
3802 cat >>conftest.$ac_ext <<_ACEOF
3803 /* end confdefs.h. */
3804 /* AF_INET6 available check */
3805 #include <sys/types.h>
3806 #include <sys/socket.h>
3807 main()
3808 {
3809 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
3810 exit(1);
3811 else
3812 exit(0);
3813 }
3814
3815 _ACEOF
3816 rm -f conftest$ac_exeext
3817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3818 (eval $ac_link) 2>&5
3819 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823 (eval $ac_try) 2>&5
3824 ac_status=$?
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); }; }; then
3827 echo "$as_me:$LINENO: result: yes" >&5
3828 echo "${ECHO_T}yes" >&6
3829 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"
3830 cat >>confdefs.h <<\_ACEOF
3831 #define INET6 1
3832 _ACEOF
3833
3834 ipv6=yes
3835 else
3836 echo "$as_me: program exited with status $ac_status" >&5
3837 echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3839
3840 ( exit $ac_status )
3841 echo "$as_me:$LINENO: result: no" >&5
3842 echo "${ECHO_T}no" >&6
3843 ipv6=no
3844 fi
3845 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3846 fi
3847 fi;
3848
3849 ipv6type=unknown
3850 ipv6lib=none
3851 ipv6trylibc=no
3852
3853 if test "$ipv6" = "yes"; then
3854 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
3855 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
3856 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
3857 case $i in
3858 inria)
3859 cat >conftest.$ac_ext <<_ACEOF
3860 #line $LINENO "configure"
3861 /* confdefs.h. */
3862 _ACEOF
3863 cat confdefs.h >>conftest.$ac_ext
3864 cat >>conftest.$ac_ext <<_ACEOF
3865 /* end confdefs.h. */
3866 #include <netinet/in.h>
3867 #ifdef IPV6_INRIA_VERSION
3868 yes
3869 #endif
3870 _ACEOF
3871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3872 $EGREP "yes" >/dev/null 2>&1; then
3873 ipv6type=$i;
3874 CFLAGS="-DINET6 $CFLAGS"
3875 fi
3876 rm -f conftest*
3877
3878 ;;
3879 kame)
3880 cat >conftest.$ac_ext <<_ACEOF
3881 #line $LINENO "configure"
3882 /* confdefs.h. */
3883 _ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3887 #include <netinet/in.h>
3888 #ifdef __KAME__
3889 yes
3890 #endif
3891 _ACEOF
3892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3893 $EGREP "yes" >/dev/null 2>&1; then
3894 ipv6type=$i;
3895 ipv6lib=inet6;
3896 ipv6libdir=/usr/local/v6/lib;
3897 ipv6trylibc=yes;
3898 CFLAGS="-DINET6 $CFLAGS"
3899 fi
3900 rm -f conftest*
3901
3902 ;;
3903 linux-glibc)
3904 cat >conftest.$ac_ext <<_ACEOF
3905 #line $LINENO "configure"
3906 /* confdefs.h. */
3907 _ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3911 #include <features.h>
3912 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
3913 yes
3914 #endif
3915 _ACEOF
3916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3917 $EGREP "yes" >/dev/null 2>&1; then
3918 ipv6type=$i;
3919 CFLAGS="-DINET6 $CFLAGS"
3920 fi
3921 rm -f conftest*
3922
3923 ;;
3924 linux-libinet6)
3925 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
3926 ipv6type=$i
3927 ipv6lib=inet6
3928 ipv6libdir=/usr/inet6/lib
3929 ipv6trylibc=yes;
3930 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
3931 fi
3932 ;;
3933 toshiba)
3934 cat >conftest.$ac_ext <<_ACEOF
3935 #line $LINENO "configure"
3936 /* confdefs.h. */
3937 _ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3941 #include <sys/param.h>
3942 #ifdef _TOSHIBA_INET6
3943 yes
3944 #endif
3945 _ACEOF
3946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3947 $EGREP "yes" >/dev/null 2>&1; then
3948 ipv6type=$i;
3949 ipv6lib=inet6;
3950 ipv6libdir=/usr/local/v6/lib;
3951 CFLAGS="-DINET6 $CFLAGS"
3952 fi
3953 rm -f conftest*
3954
3955 ;;
3956 v6d)
3957 cat >conftest.$ac_ext <<_ACEOF
3958 #line $LINENO "configure"
3959 /* confdefs.h. */
3960 _ACEOF
3961 cat confdefs.h >>conftest.$ac_ext
3962 cat >>conftest.$ac_ext <<_ACEOF
3963 /* end confdefs.h. */
3964 #include </usr/local/v6/include/sys/v6config.h>
3965 #ifdef __V6D__
3966 yes
3967 #endif
3968 _ACEOF
3969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3970 $EGREP "yes" >/dev/null 2>&1; then
3971 ipv6type=$i;
3972 ipv6lib=v6;
3973 ipv6libdir=/usr/local/v6/lib;
3974 CFLAGS="-I/usr/local/v6/include $CFLAGS"
3975 fi
3976 rm -f conftest*
3977
3978 ;;
3979 zeta)
3980 cat >conftest.$ac_ext <<_ACEOF
3981 #line $LINENO "configure"
3982 /* confdefs.h. */
3983 _ACEOF
3984 cat confdefs.h >>conftest.$ac_ext
3985 cat >>conftest.$ac_ext <<_ACEOF
3986 /* end confdefs.h. */
3987 #include <sys/param.h>
3988 #ifdef _ZETA_MINAMI_INET6
3989 yes
3990 #endif
3991 _ACEOF
3992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3993 $EGREP "yes" >/dev/null 2>&1; then
3994 ipv6type=$i;
3995 ipv6lib=inet6;
3996 ipv6libdir=/usr/local/v6/lib;
3997 CFLAGS="-DINET6 $CFLAGS"
3998 fi
3999 rm -f conftest*
4000
4001 ;;
4002 esac
4003 if test "$ipv6type" != "unknown"; then
4004 break
4005 fi
4006 done
4007 echo "$as_me:$LINENO: result: $ipv6type" >&5
4008 echo "${ECHO_T}$ipv6type" >&6
4009 fi
4010
4011 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4012 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
4013 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
4014 echo "You have $ipv6lib library, using it"
4015 else
4016 if test "$ipv6trylibc" = "yes"; then
4017 echo "You do not have $ipv6lib library, using libc"
4018 else
4019 echo 'Fatal: no $ipv6lib library found. cannot continue.'
4020 echo "You need to fetch lib$ipv6lib.a from appropriate"
4021 echo 'ipv6 kit and compile beforehand.'
4022 exit 1
4023 fi
4024 fi
4025 fi
4026
4027
4028 if test "$ipv6" = "yes"; then
4029 #
4030 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4031 # function in libc; there are "ngetaddrinfo()" and
4032 # "ogetaddrinfo()" functions, and <netdb.h> #defines
4033 # "getaddrinfo" to be either "ngetaddrinfo" or
4034 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4035 # or _XOPEN_SOURCE_EXTENDED are defined or not.
4036 #
4037 # So this test doesn't work on Tru64 5.1, and possibly
4038 # on other 5.x releases. This causes the configure
4039 # script to become confused, and results in libpcap
4040 # being unbuildable.
4041 #
4042 echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
4043 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
4044 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047 ac_func_search_save_LIBS=$LIBS
4048 ac_cv_search_getaddrinfo=no
4049 cat >conftest.$ac_ext <<_ACEOF
4050 #line $LINENO "configure"
4051 /* confdefs.h. */
4052 _ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4056
4057 /* Override any gcc2 internal prototype to avoid an error. */
4058 #ifdef __cplusplus
4059 extern "C"
4060 #endif
4061 /* We use char because int might match the return type of a gcc2
4062 builtin and then its argument prototype would still apply. */
4063 char getaddrinfo ();
4064 int
4065 main ()
4066 {
4067 getaddrinfo ();
4068 ;
4069 return 0;
4070 }
4071 _ACEOF
4072 rm -f conftest.$ac_objext conftest$ac_exeext
4073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4074 (eval $ac_link) 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } &&
4078 { ac_try='test -s conftest$ac_exeext'
4079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080 (eval $ac_try) 2>&5
4081 ac_status=$?
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; }; then
4084 ac_cv_search_getaddrinfo="none required"
4085 else
4086 echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4088
4089 fi
4090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4091 if test "$ac_cv_search_getaddrinfo" = no; then
4092 for ac_lib in socket; do
4093 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4094 cat >conftest.$ac_ext <<_ACEOF
4095 #line $LINENO "configure"
4096 /* confdefs.h. */
4097 _ACEOF
4098 cat confdefs.h >>conftest.$ac_ext
4099 cat >>conftest.$ac_ext <<_ACEOF
4100 /* end confdefs.h. */
4101
4102 /* Override any gcc2 internal prototype to avoid an error. */
4103 #ifdef __cplusplus
4104 extern "C"
4105 #endif
4106 /* We use char because int might match the return type of a gcc2
4107 builtin and then its argument prototype would still apply. */
4108 char getaddrinfo ();
4109 int
4110 main ()
4111 {
4112 getaddrinfo ();
4113 ;
4114 return 0;
4115 }
4116 _ACEOF
4117 rm -f conftest.$ac_objext conftest$ac_exeext
4118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4119 (eval $ac_link) 2>&5
4120 ac_status=$?
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } &&
4123 { ac_try='test -s conftest$ac_exeext'
4124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125 (eval $ac_try) 2>&5
4126 ac_status=$?
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }; }; then
4129 ac_cv_search_getaddrinfo="-l$ac_lib"
4130 break
4131 else
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4134
4135 fi
4136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4137 done
4138 fi
4139 LIBS=$ac_func_search_save_LIBS
4140 fi
4141 echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
4142 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
4143 if test "$ac_cv_search_getaddrinfo" != no; then
4144 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS"
4145 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
4146 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
4147 if test "${td_cv_buggygetaddrinfo+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150 if test "$cross_compiling" = yes; then
4151 td_cv_buggygetaddrinfo=yes
4152 else
4153 cat >conftest.$ac_ext <<_ACEOF
4154 #line $LINENO "configure"
4155 /* confdefs.h. */
4156 _ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4160
4161 #include <sys/types.h>
4162 #include <netdb.h>
4163 #include <string.h>
4164 #include <sys/socket.h>
4165 #include <netinet/in.h>
4166
4167 main()
4168 {
4169 int passive, gaierr, inet4 = 0, inet6 = 0;
4170 struct addrinfo hints, *ai, *aitop;
4171 char straddr[INET6_ADDRSTRLEN], strport[16];
4172
4173 for (passive = 0; passive <= 1; passive++) {
4174 memset(&hints, 0, sizeof(hints));
4175 hints.ai_family = AF_UNSPEC;
4176 hints.ai_flags = passive ? AI_PASSIVE : 0;
4177 hints.ai_socktype = SOCK_STREAM;
4178 hints.ai_protocol = IPPROTO_TCP;
4179 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
4180 (void)gai_strerror(gaierr);
4181 goto bad;
4182 }
4183 for (ai = aitop; ai; ai = ai->ai_next) {
4184 if (ai->ai_addr == NULL ||
4185 ai->ai_addrlen == 0 ||
4186 getnameinfo(ai->ai_addr, ai->ai_addrlen,
4187 straddr, sizeof(straddr), strport, sizeof(strport),
4188 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
4189 goto bad;
4190 }
4191 switch (ai->ai_family) {
4192 case AF_INET:
4193 if (strcmp(strport, "54321") != 0) {
4194 goto bad;
4195 }
4196 if (passive) {
4197 if (strcmp(straddr, "0.0.0.0") != 0) {
4198 goto bad;
4199 }
4200 } else {
4201 if (strcmp(straddr, "127.0.0.1") != 0) {
4202 goto bad;
4203 }
4204 }
4205 inet4++;
4206 break;
4207 case AF_INET6:
4208 if (strcmp(strport, "54321") != 0) {
4209 goto bad;
4210 }
4211 if (passive) {
4212 if (strcmp(straddr, "::") != 0) {
4213 goto bad;
4214 }
4215 } else {
4216 if (strcmp(straddr, "::1") != 0) {
4217 goto bad;
4218 }
4219 }
4220 inet6++;
4221 break;
4222 case AF_UNSPEC:
4223 goto bad;
4224 break;
4225 #ifdef AF_UNIX
4226 case AF_UNIX:
4227 #else
4228 #ifdef AF_LOCAL
4229 case AF_LOCAL:
4230 #endif
4231 #endif
4232 default:
4233 /* another family support? */
4234 break;
4235 }
4236 }
4237 }
4238
4239 /* supported family should be 2, unsupported family should be 0 */
4240 if (!(inet4 == 0 || inet4 == 2))
4241 goto bad;
4242 if (!(inet6 == 0 || inet6 == 2))
4243 goto bad;
4244
4245 if (aitop)
4246 freeaddrinfo(aitop);
4247 exit(0);
4248
4249 bad:
4250 if (aitop)
4251 freeaddrinfo(aitop);
4252 exit(1);
4253 }
4254
4255 _ACEOF
4256 rm -f conftest$ac_exeext
4257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4258 (eval $ac_link) 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263 (eval $ac_try) 2>&5
4264 ac_status=$?
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); }; }; then
4267 td_cv_buggygetaddrinfo=no
4268 else
4269 echo "$as_me: program exited with status $ac_status" >&5
4270 echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4272
4273 ( exit $ac_status )
4274 td_cv_buggygetaddrinfo=yes
4275 fi
4276 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4277 fi
4278 fi
4279
4280 if test "$td_cv_buggygetaddrinfo" = no; then
4281 echo "$as_me:$LINENO: result: good" >&5
4282 echo "${ECHO_T}good" >&6
4283 else
4284 echo "$as_me:$LINENO: result: buggy" >&5
4285 echo "${ECHO_T}buggy" >&6
4286 fi
4287
4288 if test "$td_cv_buggygetaddrinfo" = "yes"; then
4289 #
4290 # XXX - it doesn't appear that "ipv6type" can ever be
4291 # set to "linux". Should this be testing for
4292 # "linux-glibc", or for that *or* "linux-libinet6"?
4293 # If the latter, note that "linux-libinet6" is also
4294 # the type given to some non-Linux OSes.
4295 #
4296 if test "$ipv6type" != "linux"; then
4297 echo 'Fatal: You must get working getaddrinfo() function.'
4298 echo ' or you can specify "--disable-ipv6"'.
4299 exit 1
4300 else
4301 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
4302 echo ' Better upgrade your system library to newest version'
4303 echo ' of GNU C library (aka glibc).'
4304 fi
4305 fi
4306
4307 fi
4308
4309
4310
4311 for ac_func in getaddrinfo getnameinfo
4312 do
4313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4314 echo "$as_me:$LINENO: checking for $ac_func" >&5
4315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4316 if eval "test \"\${$as_ac_var+set}\" = set"; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 else
4319 cat >conftest.$ac_ext <<_ACEOF
4320 #line $LINENO "configure"
4321 /* confdefs.h. */
4322 _ACEOF
4323 cat confdefs.h >>conftest.$ac_ext
4324 cat >>conftest.$ac_ext <<_ACEOF
4325 /* end confdefs.h. */
4326 /* System header to define __stub macros and hopefully few prototypes,
4327 which can conflict with char $ac_func (); below.
4328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4329 <limits.h> exists even on freestanding compilers. */
4330 #ifdef __STDC__
4331 # include <limits.h>
4332 #else
4333 # include <assert.h>
4334 #endif
4335 /* Override any gcc2 internal prototype to avoid an error. */
4336 #ifdef __cplusplus
4337 extern "C"
4338 {
4339 #endif
4340 /* We use char because int might match the return type of a gcc2
4341 builtin and then its argument prototype would still apply. */
4342 char $ac_func ();
4343 /* The GNU C library defines this for functions which it implements
4344 to always fail with ENOSYS. Some functions are actually named
4345 something starting with __ and the normal name is an alias. */
4346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4347 choke me
4348 #else
4349 char (*f) () = $ac_func;
4350 #endif
4351 #ifdef __cplusplus
4352 }
4353 #endif
4354
4355 int
4356 main ()
4357 {
4358 return f != $ac_func;
4359 ;
4360 return 0;
4361 }
4362 _ACEOF
4363 rm -f conftest.$ac_objext conftest$ac_exeext
4364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4365 (eval $ac_link) 2>&5
4366 ac_status=$?
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } &&
4369 { ac_try='test -s conftest$ac_exeext'
4370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371 (eval $ac_try) 2>&5
4372 ac_status=$?
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; }; then
4375 eval "$as_ac_var=yes"
4376 else
4377 echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.$ac_ext >&5
4379
4380 eval "$as_ac_var=no"
4381 fi
4382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4383 fi
4384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4385 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4386 if test `eval echo '${'$as_ac_var'}'` = yes; then
4387 cat >>confdefs.h <<_ACEOF
4388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4389 _ACEOF
4390
4391 else
4392 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4393 fi
4394 done
4395
4396
4397 fi
4398
4399 echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
4400 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6
4401 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 else
4404 cat >conftest.$ac_ext <<_ACEOF
4405 #line $LINENO "configure"
4406 /* confdefs.h. */
4407 _ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4411 #include <netdnet/dnetdb.h>
4412
4413 _ACEOF
4414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4415 $EGREP "dnet_htoa" >/dev/null 2>&1; then
4416 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
4417 else
4418 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
4419 fi
4420 rm -f conftest*
4421
4422 fi
4423 echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
4424 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6
4425 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
4426 cat >>confdefs.h <<\_ACEOF
4427 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
4428 _ACEOF
4429
4430 fi
4431
4432 echo "$as_me:$LINENO: checking for char" >&5
4433 echo $ECHO_N "checking for char... $ECHO_C" >&6
4434 if test "${ac_cv_type_char+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4437 cat >conftest.$ac_ext <<_ACEOF
4438 #line $LINENO "configure"
4439 /* confdefs.h. */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 $ac_includes_default
4445 int
4446 main ()
4447 {
4448 if ((char *) 0)
4449 return 0;
4450 if (sizeof (char))
4451 return 0;
4452 ;
4453 return 0;
4454 }
4455 _ACEOF
4456 rm -f conftest.$ac_objext
4457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4458 (eval $ac_compile) 2>&5
4459 ac_status=$?
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } &&
4462 { ac_try='test -s conftest.$ac_objext'
4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464 (eval $ac_try) 2>&5
4465 ac_status=$?
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; }; then
4468 ac_cv_type_char=yes
4469 else
4470 echo "$as_me: failed program was:" >&5
4471 sed 's/^/| /' conftest.$ac_ext >&5
4472
4473 ac_cv_type_char=no
4474 fi
4475 rm -f conftest.$ac_objext conftest.$ac_ext
4476 fi
4477 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4478 echo "${ECHO_T}$ac_cv_type_char" >&6
4479
4480 echo "$as_me:$LINENO: checking size of char" >&5
4481 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4482 if test "${ac_cv_sizeof_char+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 else
4485 if test "$ac_cv_type_char" = yes; then
4486 # The cast to unsigned long works around a bug in the HP C Compiler
4487 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4488 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4489 # This bug is HP SR number 8606223364.
4490 if test "$cross_compiling" = yes; then
4491 # Depending upon the size, compute the lo and hi bounds.
4492 cat >conftest.$ac_ext <<_ACEOF
4493 #line $LINENO "configure"
4494 /* confdefs.h. */
4495 _ACEOF
4496 cat confdefs.h >>conftest.$ac_ext
4497 cat >>conftest.$ac_ext <<_ACEOF
4498 /* end confdefs.h. */
4499 $ac_includes_default
4500 int
4501 main ()
4502 {
4503 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4504 test_array [0] = 0
4505
4506 ;
4507 return 0;
4508 }
4509 _ACEOF
4510 rm -f conftest.$ac_objext
4511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4512 (eval $ac_compile) 2>&5
4513 ac_status=$?
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try='test -s conftest.$ac_objext'
4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 (eval $ac_try) 2>&5
4519 ac_status=$?
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; }; then
4522 ac_lo=0 ac_mid=0
4523 while :; do
4524 cat >conftest.$ac_ext <<_ACEOF
4525 #line $LINENO "configure"
4526 /* confdefs.h. */
4527 _ACEOF
4528 cat confdefs.h >>conftest.$ac_ext
4529 cat >>conftest.$ac_ext <<_ACEOF
4530 /* end confdefs.h. */
4531 $ac_includes_default
4532 int
4533 main ()
4534 {
4535 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4536 test_array [0] = 0
4537
4538 ;
4539 return 0;
4540 }
4541 _ACEOF
4542 rm -f conftest.$ac_objext
4543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4544 (eval $ac_compile) 2>&5
4545 ac_status=$?
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); } &&
4548 { ac_try='test -s conftest.$ac_objext'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550 (eval $ac_try) 2>&5
4551 ac_status=$?
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; }; then
4554 ac_hi=$ac_mid; break
4555 else
4556 echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.$ac_ext >&5
4558
4559 ac_lo=`expr $ac_mid + 1`
4560 if test $ac_lo -le $ac_mid; then
4561 ac_lo= ac_hi=
4562 break
4563 fi
4564 ac_mid=`expr 2 '*' $ac_mid + 1`
4565 fi
4566 rm -f conftest.$ac_objext conftest.$ac_ext
4567 done
4568 else
4569 echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4571
4572 cat >conftest.$ac_ext <<_ACEOF
4573 #line $LINENO "configure"
4574 /* confdefs.h. */
4575 _ACEOF
4576 cat confdefs.h >>conftest.$ac_ext
4577 cat >>conftest.$ac_ext <<_ACEOF
4578 /* end confdefs.h. */
4579 $ac_includes_default
4580 int
4581 main ()
4582 {
4583 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4584 test_array [0] = 0
4585
4586 ;
4587 return 0;
4588 }
4589 _ACEOF
4590 rm -f conftest.$ac_objext
4591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4592 (eval $ac_compile) 2>&5
4593 ac_status=$?
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); } &&
4596 { ac_try='test -s conftest.$ac_objext'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 (eval $ac_try) 2>&5
4599 ac_status=$?
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; }; then
4602 ac_hi=-1 ac_mid=-1
4603 while :; do
4604 cat >conftest.$ac_ext <<_ACEOF
4605 #line $LINENO "configure"
4606 /* confdefs.h. */
4607 _ACEOF
4608 cat confdefs.h >>conftest.$ac_ext
4609 cat >>conftest.$ac_ext <<_ACEOF
4610 /* end confdefs.h. */
4611 $ac_includes_default
4612 int
4613 main ()
4614 {
4615 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4616 test_array [0] = 0
4617
4618 ;
4619 return 0;
4620 }
4621 _ACEOF
4622 rm -f conftest.$ac_objext
4623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4624 (eval $ac_compile) 2>&5
4625 ac_status=$?
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); } &&
4628 { ac_try='test -s conftest.$ac_objext'
4629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 (eval $ac_try) 2>&5
4631 ac_status=$?
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; }; then
4634 ac_lo=$ac_mid; break
4635 else
4636 echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.$ac_ext >&5
4638
4639 ac_hi=`expr '(' $ac_mid ')' - 1`
4640 if test $ac_mid -le $ac_hi; then
4641 ac_lo= ac_hi=
4642 break
4643 fi
4644 ac_mid=`expr 2 '*' $ac_mid`
4645 fi
4646 rm -f conftest.$ac_objext conftest.$ac_ext
4647 done
4648 else
4649 echo "$as_me: failed program was:" >&5
4650 sed 's/^/| /' conftest.$ac_ext >&5
4651
4652 ac_lo= ac_hi=
4653 fi
4654 rm -f conftest.$ac_objext conftest.$ac_ext
4655 fi
4656 rm -f conftest.$ac_objext conftest.$ac_ext
4657 # Binary search between lo and hi bounds.
4658 while test "x$ac_lo" != "x$ac_hi"; do
4659 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4660 cat >conftest.$ac_ext <<_ACEOF
4661 #line $LINENO "configure"
4662 /* confdefs.h. */
4663 _ACEOF
4664 cat confdefs.h >>conftest.$ac_ext
4665 cat >>conftest.$ac_ext <<_ACEOF
4666 /* end confdefs.h. */
4667 $ac_includes_default
4668 int
4669 main ()
4670 {
4671 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4672 test_array [0] = 0
4673
4674 ;
4675 return 0;
4676 }
4677 _ACEOF
4678 rm -f conftest.$ac_objext
4679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4680 (eval $ac_compile) 2>&5
4681 ac_status=$?
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); } &&
4684 { ac_try='test -s conftest.$ac_objext'
4685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686 (eval $ac_try) 2>&5
4687 ac_status=$?
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; }; then
4690 ac_hi=$ac_mid
4691 else
4692 echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4694
4695 ac_lo=`expr '(' $ac_mid ')' + 1`
4696 fi
4697 rm -f conftest.$ac_objext conftest.$ac_ext
4698 done
4699 case $ac_lo in
4700 ?*) ac_cv_sizeof_char=$ac_lo;;
4701 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4702 See \`config.log' for more details." >&5
4703 echo "$as_me: error: cannot compute sizeof (char), 77
4704 See \`config.log' for more details." >&2;}
4705 { (exit 1); exit 1; }; } ;;
4706 esac
4707 else
4708 if test "$cross_compiling" = yes; then
4709 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4710 See \`config.log' for more details." >&5
4711 echo "$as_me: error: cannot run test program while cross compiling
4712 See \`config.log' for more details." >&2;}
4713 { (exit 1); exit 1; }; }
4714 else
4715 cat >conftest.$ac_ext <<_ACEOF
4716 #line $LINENO "configure"
4717 /* confdefs.h. */
4718 _ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h. */
4722 $ac_includes_default
4723 long longval () { return (long) (sizeof (char)); }
4724 unsigned long ulongval () { return (long) (sizeof (char)); }
4725 #include <stdio.h>
4726 #include <stdlib.h>
4727 int
4728 main ()
4729 {
4730
4731 FILE *f = fopen ("conftest.val", "w");
4732 if (! f)
4733 exit (1);
4734 if (((long) (sizeof (char))) < 0)
4735 {
4736 long i = longval ();
4737 if (i != ((long) (sizeof (char))))
4738 exit (1);
4739 fprintf (f, "%ld\n", i);
4740 }
4741 else
4742 {
4743 unsigned long i = ulongval ();
4744 if (i != ((long) (sizeof (char))))
4745 exit (1);
4746 fprintf (f, "%lu\n", i);
4747 }
4748 exit (ferror (f) || fclose (f) != 0);
4749
4750 ;
4751 return 0;
4752 }
4753 _ACEOF
4754 rm -f conftest$ac_exeext
4755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4756 (eval $ac_link) 2>&5
4757 ac_status=$?
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4761 (eval $ac_try) 2>&5
4762 ac_status=$?
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); }; }; then
4765 ac_cv_sizeof_char=`cat conftest.val`
4766 else
4767 echo "$as_me: program exited with status $ac_status" >&5
4768 echo "$as_me: failed program was:" >&5
4769 sed 's/^/| /' conftest.$ac_ext >&5
4770
4771 ( exit $ac_status )
4772 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4773 See \`config.log' for more details." >&5
4774 echo "$as_me: error: cannot compute sizeof (char), 77
4775 See \`config.log' for more details." >&2;}
4776 { (exit 1); exit 1; }; }
4777 fi
4778 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4779 fi
4780 fi
4781 rm -f conftest.val
4782 else
4783 ac_cv_sizeof_char=0
4784 fi
4785 fi
4786 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4787 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4788 cat >>confdefs.h <<_ACEOF
4789 #define SIZEOF_CHAR $ac_cv_sizeof_char
4790 _ACEOF
4791
4792
4793 echo "$as_me:$LINENO: checking for short" >&5
4794 echo $ECHO_N "checking for short... $ECHO_C" >&6
4795 if test "${ac_cv_type_short+set}" = set; then
4796 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 else
4798 cat >conftest.$ac_ext <<_ACEOF
4799 #line $LINENO "configure"
4800 /* confdefs.h. */
4801 _ACEOF
4802 cat confdefs.h >>conftest.$ac_ext
4803 cat >>conftest.$ac_ext <<_ACEOF
4804 /* end confdefs.h. */
4805 $ac_includes_default
4806 int
4807 main ()
4808 {
4809 if ((short *) 0)
4810 return 0;
4811 if (sizeof (short))
4812 return 0;
4813 ;
4814 return 0;
4815 }
4816 _ACEOF
4817 rm -f conftest.$ac_objext
4818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4819 (eval $ac_compile) 2>&5
4820 ac_status=$?
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } &&
4823 { ac_try='test -s conftest.$ac_objext'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 (eval $ac_try) 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4829 ac_cv_type_short=yes
4830 else
4831 echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.$ac_ext >&5
4833
4834 ac_cv_type_short=no
4835 fi
4836 rm -f conftest.$ac_objext conftest.$ac_ext
4837 fi
4838 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4839 echo "${ECHO_T}$ac_cv_type_short" >&6
4840
4841 echo "$as_me:$LINENO: checking size of short" >&5
4842 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4843 if test "${ac_cv_sizeof_short+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4845 else
4846 if test "$ac_cv_type_short" = yes; then
4847 # The cast to unsigned long works around a bug in the HP C Compiler
4848 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4849 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4850 # This bug is HP SR number 8606223364.
4851 if test "$cross_compiling" = yes; then
4852 # Depending upon the size, compute the lo and hi bounds.
4853 cat >conftest.$ac_ext <<_ACEOF
4854 #line $LINENO "configure"
4855 /* confdefs.h. */
4856 _ACEOF
4857 cat confdefs.h >>conftest.$ac_ext
4858 cat >>conftest.$ac_ext <<_ACEOF
4859 /* end confdefs.h. */
4860 $ac_includes_default
4861 int
4862 main ()
4863 {
4864 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4865 test_array [0] = 0
4866
4867 ;
4868 return 0;
4869 }
4870 _ACEOF
4871 rm -f conftest.$ac_objext
4872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4873 (eval $ac_compile) 2>&5
4874 ac_status=$?
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); } &&
4877 { ac_try='test -s conftest.$ac_objext'
4878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 (eval $ac_try) 2>&5
4880 ac_status=$?
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }; }; then
4883 ac_lo=0 ac_mid=0
4884 while :; do
4885 cat >conftest.$ac_ext <<_ACEOF
4886 #line $LINENO "configure"
4887 /* confdefs.h. */
4888 _ACEOF
4889 cat confdefs.h >>conftest.$ac_ext
4890 cat >>conftest.$ac_ext <<_ACEOF
4891 /* end confdefs.h. */
4892 $ac_includes_default
4893 int
4894 main ()
4895 {
4896 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4897 test_array [0] = 0
4898
4899 ;
4900 return 0;
4901 }
4902 _ACEOF
4903 rm -f conftest.$ac_objext
4904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4905 (eval $ac_compile) 2>&5
4906 ac_status=$?
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); } &&
4909 { ac_try='test -s conftest.$ac_objext'
4910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911 (eval $ac_try) 2>&5
4912 ac_status=$?
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; }; then
4915 ac_hi=$ac_mid; break
4916 else
4917 echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4919
4920 ac_lo=`expr $ac_mid + 1`
4921 if test $ac_lo -le $ac_mid; then
4922 ac_lo= ac_hi=
4923 break
4924 fi
4925 ac_mid=`expr 2 '*' $ac_mid + 1`
4926 fi
4927 rm -f conftest.$ac_objext conftest.$ac_ext
4928 done
4929 else
4930 echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4932
4933 cat >conftest.$ac_ext <<_ACEOF
4934 #line $LINENO "configure"
4935 /* confdefs.h. */
4936 _ACEOF
4937 cat confdefs.h >>conftest.$ac_ext
4938 cat >>conftest.$ac_ext <<_ACEOF
4939 /* end confdefs.h. */
4940 $ac_includes_default
4941 int
4942 main ()
4943 {
4944 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4945 test_array [0] = 0
4946
4947 ;
4948 return 0;
4949 }
4950 _ACEOF
4951 rm -f conftest.$ac_objext
4952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4953 (eval $ac_compile) 2>&5
4954 ac_status=$?
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } &&
4957 { ac_try='test -s conftest.$ac_objext'
4958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959 (eval $ac_try) 2>&5
4960 ac_status=$?
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); }; }; then
4963 ac_hi=-1 ac_mid=-1
4964 while :; do
4965 cat >conftest.$ac_ext <<_ACEOF
4966 #line $LINENO "configure"
4967 /* confdefs.h. */
4968 _ACEOF
4969 cat confdefs.h >>conftest.$ac_ext
4970 cat >>conftest.$ac_ext <<_ACEOF
4971 /* end confdefs.h. */
4972 $ac_includes_default
4973 int
4974 main ()
4975 {
4976 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4977 test_array [0] = 0
4978
4979 ;
4980 return 0;
4981 }
4982 _ACEOF
4983 rm -f conftest.$ac_objext
4984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4985 (eval $ac_compile) 2>&5
4986 ac_status=$?
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); } &&
4989 { ac_try='test -s conftest.$ac_objext'
4990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991 (eval $ac_try) 2>&5
4992 ac_status=$?
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }; }; then
4995 ac_lo=$ac_mid; break
4996 else
4997 echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
4999
5000 ac_hi=`expr '(' $ac_mid ')' - 1`
5001 if test $ac_mid -le $ac_hi; then
5002 ac_lo= ac_hi=
5003 break
5004 fi
5005 ac_mid=`expr 2 '*' $ac_mid`
5006 fi
5007 rm -f conftest.$ac_objext conftest.$ac_ext
5008 done
5009 else
5010 echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5012
5013 ac_lo= ac_hi=
5014 fi
5015 rm -f conftest.$ac_objext conftest.$ac_ext
5016 fi
5017 rm -f conftest.$ac_objext conftest.$ac_ext
5018 # Binary search between lo and hi bounds.
5019 while test "x$ac_lo" != "x$ac_hi"; do
5020 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5021 cat >conftest.$ac_ext <<_ACEOF
5022 #line $LINENO "configure"
5023 /* confdefs.h. */
5024 _ACEOF
5025 cat confdefs.h >>conftest.$ac_ext
5026 cat >>conftest.$ac_ext <<_ACEOF
5027 /* end confdefs.h. */
5028 $ac_includes_default
5029 int
5030 main ()
5031 {
5032 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5033 test_array [0] = 0
5034
5035 ;
5036 return 0;
5037 }
5038 _ACEOF
5039 rm -f conftest.$ac_objext
5040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5041 (eval $ac_compile) 2>&5
5042 ac_status=$?
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } &&
5045 { ac_try='test -s conftest.$ac_objext'
5046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047 (eval $ac_try) 2>&5
5048 ac_status=$?
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); }; }; then
5051 ac_hi=$ac_mid
5052 else
5053 echo "$as_me: failed program was:" >&5
5054 sed 's/^/| /' conftest.$ac_ext >&5
5055
5056 ac_lo=`expr '(' $ac_mid ')' + 1`
5057 fi
5058 rm -f conftest.$ac_objext conftest.$ac_ext
5059 done
5060 case $ac_lo in
5061 ?*) ac_cv_sizeof_short=$ac_lo;;
5062 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5063 See \`config.log' for more details." >&5
5064 echo "$as_me: error: cannot compute sizeof (short), 77
5065 See \`config.log' for more details." >&2;}
5066 { (exit 1); exit 1; }; } ;;
5067 esac
5068 else
5069 if test "$cross_compiling" = yes; then
5070 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5071 See \`config.log' for more details." >&5
5072 echo "$as_me: error: cannot run test program while cross compiling
5073 See \`config.log' for more details." >&2;}
5074 { (exit 1); exit 1; }; }
5075 else
5076 cat >conftest.$ac_ext <<_ACEOF
5077 #line $LINENO "configure"
5078 /* confdefs.h. */
5079 _ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h. */
5083 $ac_includes_default
5084 long longval () { return (long) (sizeof (short)); }
5085 unsigned long ulongval () { return (long) (sizeof (short)); }
5086 #include <stdio.h>
5087 #include <stdlib.h>
5088 int
5089 main ()
5090 {
5091
5092 FILE *f = fopen ("conftest.val", "w");
5093 if (! f)
5094 exit (1);
5095 if (((long) (sizeof (short))) < 0)
5096 {
5097 long i = longval ();
5098 if (i != ((long) (sizeof (short))))
5099 exit (1);
5100 fprintf (f, "%ld\n", i);
5101 }
5102 else
5103 {
5104 unsigned long i = ulongval ();
5105 if (i != ((long) (sizeof (short))))
5106 exit (1);
5107 fprintf (f, "%lu\n", i);
5108 }
5109 exit (ferror (f) || fclose (f) != 0);
5110
5111 ;
5112 return 0;
5113 }
5114 _ACEOF
5115 rm -f conftest$ac_exeext
5116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5117 (eval $ac_link) 2>&5
5118 ac_status=$?
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122 (eval $ac_try) 2>&5
5123 ac_status=$?
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); }; }; then
5126 ac_cv_sizeof_short=`cat conftest.val`
5127 else
5128 echo "$as_me: program exited with status $ac_status" >&5
5129 echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5131
5132 ( exit $ac_status )
5133 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5134 See \`config.log' for more details." >&5
5135 echo "$as_me: error: cannot compute sizeof (short), 77
5136 See \`config.log' for more details." >&2;}
5137 { (exit 1); exit 1; }; }
5138 fi
5139 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5140 fi
5141 fi
5142 rm -f conftest.val
5143 else
5144 ac_cv_sizeof_short=0
5145 fi
5146 fi
5147 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5148 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5149 cat >>confdefs.h <<_ACEOF
5150 #define SIZEOF_SHORT $ac_cv_sizeof_short
5151 _ACEOF
5152
5153
5154 echo "$as_me:$LINENO: checking for int" >&5
5155 echo $ECHO_N "checking for int... $ECHO_C" >&6
5156 if test "${ac_cv_type_int+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5158 else
5159 cat >conftest.$ac_ext <<_ACEOF
5160 #line $LINENO "configure"
5161 /* confdefs.h. */
5162 _ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h. */
5166 $ac_includes_default
5167 int
5168 main ()
5169 {
5170 if ((int *) 0)
5171 return 0;
5172 if (sizeof (int))
5173 return 0;
5174 ;
5175 return 0;
5176 }
5177 _ACEOF
5178 rm -f conftest.$ac_objext
5179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5180 (eval $ac_compile) 2>&5
5181 ac_status=$?
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); } &&
5184 { ac_try='test -s conftest.$ac_objext'
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186 (eval $ac_try) 2>&5
5187 ac_status=$?
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; }; then
5190 ac_cv_type_int=yes
5191 else
5192 echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.$ac_ext >&5
5194
5195 ac_cv_type_int=no
5196 fi
5197 rm -f conftest.$ac_objext conftest.$ac_ext
5198 fi
5199 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5200 echo "${ECHO_T}$ac_cv_type_int" >&6
5201
5202 echo "$as_me:$LINENO: checking size of int" >&5
5203 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5204 if test "${ac_cv_sizeof_int+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5206 else
5207 if test "$ac_cv_type_int" = yes; then
5208 # The cast to unsigned long works around a bug in the HP C Compiler
5209 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5210 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5211 # This bug is HP SR number 8606223364.
5212 if test "$cross_compiling" = yes; then
5213 # Depending upon the size, compute the lo and hi bounds.
5214 cat >conftest.$ac_ext <<_ACEOF
5215 #line $LINENO "configure"
5216 /* confdefs.h. */
5217 _ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5221 $ac_includes_default
5222 int
5223 main ()
5224 {
5225 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5226 test_array [0] = 0
5227
5228 ;
5229 return 0;
5230 }
5231 _ACEOF
5232 rm -f conftest.$ac_objext
5233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5234 (eval $ac_compile) 2>&5
5235 ac_status=$?
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } &&
5238 { ac_try='test -s conftest.$ac_objext'
5239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240 (eval $ac_try) 2>&5
5241 ac_status=$?
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }; }; then
5244 ac_lo=0 ac_mid=0
5245 while :; do
5246 cat >conftest.$ac_ext <<_ACEOF
5247 #line $LINENO "configure"
5248 /* confdefs.h. */
5249 _ACEOF
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h. */
5253 $ac_includes_default
5254 int
5255 main ()
5256 {
5257 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5258 test_array [0] = 0
5259
5260 ;
5261 return 0;
5262 }
5263 _ACEOF
5264 rm -f conftest.$ac_objext
5265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5266 (eval $ac_compile) 2>&5
5267 ac_status=$?
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } &&
5270 { ac_try='test -s conftest.$ac_objext'
5271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272 (eval $ac_try) 2>&5
5273 ac_status=$?
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); }; }; then
5276 ac_hi=$ac_mid; break
5277 else
5278 echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.$ac_ext >&5
5280
5281 ac_lo=`expr $ac_mid + 1`
5282 if test $ac_lo -le $ac_mid; then
5283 ac_lo= ac_hi=
5284 break
5285 fi
5286 ac_mid=`expr 2 '*' $ac_mid + 1`
5287 fi
5288 rm -f conftest.$ac_objext conftest.$ac_ext
5289 done
5290 else
5291 echo "$as_me: failed program was:" >&5
5292 sed 's/^/| /' conftest.$ac_ext >&5
5293
5294 cat >conftest.$ac_ext <<_ACEOF
5295 #line $LINENO "configure"
5296 /* confdefs.h. */
5297 _ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h. */
5301 $ac_includes_default
5302 int
5303 main ()
5304 {
5305 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5306 test_array [0] = 0
5307
5308 ;
5309 return 0;
5310 }
5311 _ACEOF
5312 rm -f conftest.$ac_objext
5313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5314 (eval $ac_compile) 2>&5
5315 ac_status=$?
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); } &&
5318 { ac_try='test -s conftest.$ac_objext'
5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320 (eval $ac_try) 2>&5
5321 ac_status=$?
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; }; then
5324 ac_hi=-1 ac_mid=-1
5325 while :; do
5326 cat >conftest.$ac_ext <<_ACEOF
5327 #line $LINENO "configure"
5328 /* confdefs.h. */
5329 _ACEOF
5330 cat confdefs.h >>conftest.$ac_ext
5331 cat >>conftest.$ac_ext <<_ACEOF
5332 /* end confdefs.h. */
5333 $ac_includes_default
5334 int
5335 main ()
5336 {
5337 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5338 test_array [0] = 0
5339
5340 ;
5341 return 0;
5342 }
5343 _ACEOF
5344 rm -f conftest.$ac_objext
5345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5346 (eval $ac_compile) 2>&5
5347 ac_status=$?
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } &&
5350 { ac_try='test -s conftest.$ac_objext'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 (eval $ac_try) 2>&5
5353 ac_status=$?
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; }; then
5356 ac_lo=$ac_mid; break
5357 else
5358 echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5360
5361 ac_hi=`expr '(' $ac_mid ')' - 1`
5362 if test $ac_mid -le $ac_hi; then
5363 ac_lo= ac_hi=
5364 break
5365 fi
5366 ac_mid=`expr 2 '*' $ac_mid`
5367 fi
5368 rm -f conftest.$ac_objext conftest.$ac_ext
5369 done
5370 else
5371 echo "$as_me: failed program was:" >&5
5372 sed 's/^/| /' conftest.$ac_ext >&5
5373
5374 ac_lo= ac_hi=
5375 fi
5376 rm -f conftest.$ac_objext conftest.$ac_ext
5377 fi
5378 rm -f conftest.$ac_objext conftest.$ac_ext
5379 # Binary search between lo and hi bounds.
5380 while test "x$ac_lo" != "x$ac_hi"; do
5381 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5382 cat >conftest.$ac_ext <<_ACEOF
5383 #line $LINENO "configure"
5384 /* confdefs.h. */
5385 _ACEOF
5386 cat confdefs.h >>conftest.$ac_ext
5387 cat >>conftest.$ac_ext <<_ACEOF
5388 /* end confdefs.h. */
5389 $ac_includes_default
5390 int
5391 main ()
5392 {
5393 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5394 test_array [0] = 0
5395
5396 ;
5397 return 0;
5398 }
5399 _ACEOF
5400 rm -f conftest.$ac_objext
5401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5402 (eval $ac_compile) 2>&5
5403 ac_status=$?
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } &&
5406 { ac_try='test -s conftest.$ac_objext'
5407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408 (eval $ac_try) 2>&5
5409 ac_status=$?
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; }; then
5412 ac_hi=$ac_mid
5413 else
5414 echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5416
5417 ac_lo=`expr '(' $ac_mid ')' + 1`
5418 fi
5419 rm -f conftest.$ac_objext conftest.$ac_ext
5420 done
5421 case $ac_lo in
5422 ?*) ac_cv_sizeof_int=$ac_lo;;
5423 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5424 See \`config.log' for more details." >&5
5425 echo "$as_me: error: cannot compute sizeof (int), 77
5426 See \`config.log' for more details." >&2;}
5427 { (exit 1); exit 1; }; } ;;
5428 esac
5429 else
5430 if test "$cross_compiling" = yes; then
5431 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5432 See \`config.log' for more details." >&5
5433 echo "$as_me: error: cannot run test program while cross compiling
5434 See \`config.log' for more details." >&2;}
5435 { (exit 1); exit 1; }; }
5436 else
5437 cat >conftest.$ac_ext <<_ACEOF
5438 #line $LINENO "configure"
5439 /* confdefs.h. */
5440 _ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h. */
5444 $ac_includes_default
5445 long longval () { return (long) (sizeof (int)); }
5446 unsigned long ulongval () { return (long) (sizeof (int)); }
5447 #include <stdio.h>
5448 #include <stdlib.h>
5449 int
5450 main ()
5451 {
5452
5453 FILE *f = fopen ("conftest.val", "w");
5454 if (! f)
5455 exit (1);
5456 if (((long) (sizeof (int))) < 0)
5457 {
5458 long i = longval ();
5459 if (i != ((long) (sizeof (int))))
5460 exit (1);
5461 fprintf (f, "%ld\n", i);
5462 }
5463 else
5464 {
5465 unsigned long i = ulongval ();
5466 if (i != ((long) (sizeof (int))))
5467 exit (1);
5468 fprintf (f, "%lu\n", i);
5469 }
5470 exit (ferror (f) || fclose (f) != 0);
5471
5472 ;
5473 return 0;
5474 }
5475 _ACEOF
5476 rm -f conftest$ac_exeext
5477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5478 (eval $ac_link) 2>&5
5479 ac_status=$?
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5483 (eval $ac_try) 2>&5
5484 ac_status=$?
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); }; }; then
5487 ac_cv_sizeof_int=`cat conftest.val`
5488 else
5489 echo "$as_me: program exited with status $ac_status" >&5
5490 echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5492
5493 ( exit $ac_status )
5494 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5495 See \`config.log' for more details." >&5
5496 echo "$as_me: error: cannot compute sizeof (int), 77
5497 See \`config.log' for more details." >&2;}
5498 { (exit 1); exit 1; }; }
5499 fi
5500 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5501 fi
5502 fi
5503 rm -f conftest.val
5504 else
5505 ac_cv_sizeof_int=0
5506 fi
5507 fi
5508 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5509 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5510 cat >>confdefs.h <<_ACEOF
5511 #define SIZEOF_INT $ac_cv_sizeof_int
5512 _ACEOF
5513
5514
5515 echo "$as_me:$LINENO: checking for long" >&5
5516 echo $ECHO_N "checking for long... $ECHO_C" >&6
5517 if test "${ac_cv_type_long+set}" = set; then
5518 echo $ECHO_N "(cached) $ECHO_C" >&6
5519 else
5520 cat >conftest.$ac_ext <<_ACEOF
5521 #line $LINENO "configure"
5522 /* confdefs.h. */
5523 _ACEOF
5524 cat confdefs.h >>conftest.$ac_ext
5525 cat >>conftest.$ac_ext <<_ACEOF
5526 /* end confdefs.h. */
5527 $ac_includes_default
5528 int
5529 main ()
5530 {
5531 if ((long *) 0)
5532 return 0;
5533 if (sizeof (long))
5534 return 0;
5535 ;
5536 return 0;
5537 }
5538 _ACEOF
5539 rm -f conftest.$ac_objext
5540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5541 (eval $ac_compile) 2>&5
5542 ac_status=$?
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } &&
5545 { ac_try='test -s conftest.$ac_objext'
5546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 (eval $ac_try) 2>&5
5548 ac_status=$?
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }; }; then
5551 ac_cv_type_long=yes
5552 else
5553 echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.$ac_ext >&5
5555
5556 ac_cv_type_long=no
5557 fi
5558 rm -f conftest.$ac_objext conftest.$ac_ext
5559 fi
5560 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5561 echo "${ECHO_T}$ac_cv_type_long" >&6
5562
5563 echo "$as_me:$LINENO: checking size of long" >&5
5564 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5565 if test "${ac_cv_sizeof_long+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 else
5568 if test "$ac_cv_type_long" = yes; then
5569 # The cast to unsigned long works around a bug in the HP C Compiler
5570 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5571 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5572 # This bug is HP SR number 8606223364.
5573 if test "$cross_compiling" = yes; then
5574 # Depending upon the size, compute the lo and hi bounds.
5575 cat >conftest.$ac_ext <<_ACEOF
5576 #line $LINENO "configure"
5577 /* confdefs.h. */
5578 _ACEOF
5579 cat confdefs.h >>conftest.$ac_ext
5580 cat >>conftest.$ac_ext <<_ACEOF
5581 /* end confdefs.h. */
5582 $ac_includes_default
5583 int
5584 main ()
5585 {
5586 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5587 test_array [0] = 0
5588
5589 ;
5590 return 0;
5591 }
5592 _ACEOF
5593 rm -f conftest.$ac_objext
5594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5595 (eval $ac_compile) 2>&5
5596 ac_status=$?
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } &&
5599 { ac_try='test -s conftest.$ac_objext'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601 (eval $ac_try) 2>&5
5602 ac_status=$?
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; }; then
5605 ac_lo=0 ac_mid=0
5606 while :; do
5607 cat >conftest.$ac_ext <<_ACEOF
5608 #line $LINENO "configure"
5609 /* confdefs.h. */
5610 _ACEOF
5611 cat confdefs.h >>conftest.$ac_ext
5612 cat >>conftest.$ac_ext <<_ACEOF
5613 /* end confdefs.h. */
5614 $ac_includes_default
5615 int
5616 main ()
5617 {
5618 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5619 test_array [0] = 0
5620
5621 ;
5622 return 0;
5623 }
5624 _ACEOF
5625 rm -f conftest.$ac_objext
5626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5627 (eval $ac_compile) 2>&5
5628 ac_status=$?
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } &&
5631 { ac_try='test -s conftest.$ac_objext'
5632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633 (eval $ac_try) 2>&5
5634 ac_status=$?
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); }; }; then
5637 ac_hi=$ac_mid; break
5638 else
5639 echo "$as_me: failed program was:" >&5
5640 sed 's/^/| /' conftest.$ac_ext >&5
5641
5642 ac_lo=`expr $ac_mid + 1`
5643 if test $ac_lo -le $ac_mid; then
5644 ac_lo= ac_hi=
5645 break
5646 fi
5647 ac_mid=`expr 2 '*' $ac_mid + 1`
5648 fi
5649 rm -f conftest.$ac_objext conftest.$ac_ext
5650 done
5651 else
5652 echo "$as_me: failed program was:" >&5
5653 sed 's/^/| /' conftest.$ac_ext >&5
5654
5655 cat >conftest.$ac_ext <<_ACEOF
5656 #line $LINENO "configure"
5657 /* confdefs.h. */
5658 _ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h. */
5662 $ac_includes_default
5663 int
5664 main ()
5665 {
5666 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5667 test_array [0] = 0
5668
5669 ;
5670 return 0;
5671 }
5672 _ACEOF
5673 rm -f conftest.$ac_objext
5674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5675 (eval $ac_compile) 2>&5
5676 ac_status=$?
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } &&
5679 { ac_try='test -s conftest.$ac_objext'
5680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681 (eval $ac_try) 2>&5
5682 ac_status=$?
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; }; then
5685 ac_hi=-1 ac_mid=-1
5686 while :; do
5687 cat >conftest.$ac_ext <<_ACEOF
5688 #line $LINENO "configure"
5689 /* confdefs.h. */
5690 _ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h. */
5694 $ac_includes_default
5695 int
5696 main ()
5697 {
5698 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5699 test_array [0] = 0
5700
5701 ;
5702 return 0;
5703 }
5704 _ACEOF
5705 rm -f conftest.$ac_objext
5706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5707 (eval $ac_compile) 2>&5
5708 ac_status=$?
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } &&
5711 { ac_try='test -s conftest.$ac_objext'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 (eval $ac_try) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; }; then
5717 ac_lo=$ac_mid; break
5718 else
5719 echo "$as_me: failed program was:" >&5
5720 sed 's/^/| /' conftest.$ac_ext >&5
5721
5722 ac_hi=`expr '(' $ac_mid ')' - 1`
5723 if test $ac_mid -le $ac_hi; then
5724 ac_lo= ac_hi=
5725 break
5726 fi
5727 ac_mid=`expr 2 '*' $ac_mid`
5728 fi
5729 rm -f conftest.$ac_objext conftest.$ac_ext
5730 done
5731 else
5732 echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.$ac_ext >&5
5734
5735 ac_lo= ac_hi=
5736 fi
5737 rm -f conftest.$ac_objext conftest.$ac_ext
5738 fi
5739 rm -f conftest.$ac_objext conftest.$ac_ext
5740 # Binary search between lo and hi bounds.
5741 while test "x$ac_lo" != "x$ac_hi"; do
5742 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5743 cat >conftest.$ac_ext <<_ACEOF
5744 #line $LINENO "configure"
5745 /* confdefs.h. */
5746 _ACEOF
5747 cat confdefs.h >>conftest.$ac_ext
5748 cat >>conftest.$ac_ext <<_ACEOF
5749 /* end confdefs.h. */
5750 $ac_includes_default
5751 int
5752 main ()
5753 {
5754 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5755 test_array [0] = 0
5756
5757 ;
5758 return 0;
5759 }
5760 _ACEOF
5761 rm -f conftest.$ac_objext
5762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5763 (eval $ac_compile) 2>&5
5764 ac_status=$?
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); } &&
5767 { ac_try='test -s conftest.$ac_objext'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 (eval $ac_try) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; }; then
5773 ac_hi=$ac_mid
5774 else
5775 echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5777
5778 ac_lo=`expr '(' $ac_mid ')' + 1`
5779 fi
5780 rm -f conftest.$ac_objext conftest.$ac_ext
5781 done
5782 case $ac_lo in
5783 ?*) ac_cv_sizeof_long=$ac_lo;;
5784 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5785 See \`config.log' for more details." >&5
5786 echo "$as_me: error: cannot compute sizeof (long), 77
5787 See \`config.log' for more details." >&2;}
5788 { (exit 1); exit 1; }; } ;;
5789 esac
5790 else
5791 if test "$cross_compiling" = yes; then
5792 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5793 See \`config.log' for more details." >&5
5794 echo "$as_me: error: cannot run test program while cross compiling
5795 See \`config.log' for more details." >&2;}
5796 { (exit 1); exit 1; }; }
5797 else
5798 cat >conftest.$ac_ext <<_ACEOF
5799 #line $LINENO "configure"
5800 /* confdefs.h. */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 $ac_includes_default
5806 long longval () { return (long) (sizeof (long)); }
5807 unsigned long ulongval () { return (long) (sizeof (long)); }
5808 #include <stdio.h>
5809 #include <stdlib.h>
5810 int
5811 main ()
5812 {
5813
5814 FILE *f = fopen ("conftest.val", "w");
5815 if (! f)
5816 exit (1);
5817 if (((long) (sizeof (long))) < 0)
5818 {
5819 long i = longval ();
5820 if (i != ((long) (sizeof (long))))
5821 exit (1);
5822 fprintf (f, "%ld\n", i);
5823 }
5824 else
5825 {
5826 unsigned long i = ulongval ();
5827 if (i != ((long) (sizeof (long))))
5828 exit (1);
5829 fprintf (f, "%lu\n", i);
5830 }
5831 exit (ferror (f) || fclose (f) != 0);
5832
5833 ;
5834 return 0;
5835 }
5836 _ACEOF
5837 rm -f conftest$ac_exeext
5838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5839 (eval $ac_link) 2>&5
5840 ac_status=$?
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844 (eval $ac_try) 2>&5
5845 ac_status=$?
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; }; then
5848 ac_cv_sizeof_long=`cat conftest.val`
5849 else
5850 echo "$as_me: program exited with status $ac_status" >&5
5851 echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5853
5854 ( exit $ac_status )
5855 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5856 See \`config.log' for more details." >&5
5857 echo "$as_me: error: cannot compute sizeof (long), 77
5858 See \`config.log' for more details." >&2;}
5859 { (exit 1); exit 1; }; }
5860 fi
5861 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5862 fi
5863 fi
5864 rm -f conftest.val
5865 else
5866 ac_cv_sizeof_long=0
5867 fi
5868 fi
5869 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5870 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5871 cat >>confdefs.h <<_ACEOF
5872 #define SIZEOF_LONG $ac_cv_sizeof_long
5873 _ACEOF
5874
5875
5876
5877
5878
5879 echo "$as_me:$LINENO: checking for addrinfo" >&5
5880 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
5881 if test "${ac_cv_addrinfo+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5883 else
5884 cat >conftest.$ac_ext <<_ACEOF
5885 #line $LINENO "configure"
5886 /* confdefs.h. */
5887 _ACEOF
5888 cat confdefs.h >>conftest.$ac_ext
5889 cat >>conftest.$ac_ext <<_ACEOF
5890 /* end confdefs.h. */
5891
5892 # include <netdb.h>
5893 int
5894 main ()
5895 {
5896 struct addrinfo a
5897 ;
5898 return 0;
5899 }
5900 _ACEOF
5901 rm -f conftest.$ac_objext
5902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5903 (eval $ac_compile) 2>&5
5904 ac_status=$?
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } &&
5907 { ac_try='test -s conftest.$ac_objext'
5908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5909 (eval $ac_try) 2>&5
5910 ac_status=$?
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); }; }; then
5913 ac_cv_addrinfo=yes
5914 else
5915 echo "$as_me: failed program was:" >&5
5916 sed 's/^/| /' conftest.$ac_ext >&5
5917
5918 ac_cv_addrinfo=no
5919 fi
5920 rm -f conftest.$ac_objext conftest.$ac_ext
5921 fi
5922
5923 echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
5924 echo "${ECHO_T}$ac_cv_addrinfo" >&6
5925 if test $ac_cv_addrinfo = yes; then
5926 cat >>confdefs.h <<\_ACEOF
5927 #define HAVE_ADDRINFO 1
5928 _ACEOF
5929
5930 else
5931 cat >>confdefs.h <<\_ACEOF
5932 #define NEED_ADDRINFO_H 1
5933 _ACEOF
5934
5935 fi
5936
5937 if test "$ac_cv_addrinfo" = no; then
5938 missing_includes=yes
5939 fi
5940
5941
5942 echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
5943 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6
5944 if test "${ac_cv_maxserv+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 else
5947 cat >conftest.$ac_ext <<_ACEOF
5948 #line $LINENO "configure"
5949 /* confdefs.h. */
5950 _ACEOF
5951 cat confdefs.h >>conftest.$ac_ext
5952 cat >>conftest.$ac_ext <<_ACEOF
5953 /* end confdefs.h. */
5954 #include <netdb.h>
5955 #ifdef NI_MAXSERV
5956 yes
5957 #endif
5958 _ACEOF
5959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5960 $EGREP "yes" >/dev/null 2>&1; then
5961 ac_cv_maxserv=yes
5962 else
5963 ac_cv_maxserv=no
5964 fi
5965 rm -f conftest*
5966
5967 fi
5968
5969 echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
5970 echo "${ECHO_T}$ac_cv_maxserv" >&6
5971 if test $ac_cv_maxserv != yes; then
5972 cat >>confdefs.h <<\_ACEOF
5973 #define NEED_ADDRINFO_H 1
5974 _ACEOF
5975
5976 fi
5977
5978 if test "$ac_cv_maxserv" = no; then
5979 missing_includes=yes
5980 fi
5981
5982
5983 echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
5984 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6
5985 if test "${ac_cv_namereqd+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988 cat >conftest.$ac_ext <<_ACEOF
5989 #line $LINENO "configure"
5990 /* confdefs.h. */
5991 _ACEOF
5992 cat confdefs.h >>conftest.$ac_ext
5993 cat >>conftest.$ac_ext <<_ACEOF
5994 /* end confdefs.h. */
5995 #include <netdb.h>
5996 #ifdef NI_NOFQDN
5997 yes
5998 #endif
5999 _ACEOF
6000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6001 $EGREP "yes" >/dev/null 2>&1; then
6002 ac_cv_namereqd=yes
6003 else
6004 ac_cv_namereqd=no
6005 fi
6006 rm -f conftest*
6007
6008 fi
6009
6010 echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
6011 echo "${ECHO_T}$ac_cv_namereqd" >&6
6012 if test $ac_cv_namereqd != yes; then
6013 cat >>confdefs.h <<\_ACEOF
6014 #define NEED_ADDRINFO_H 1
6015 _ACEOF
6016
6017 fi
6018
6019 if test "$ac_cv_namereqd" = no; then
6020 missing_includes=yes
6021 fi
6022
6023
6024 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
6025 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
6026 if test "${ac_cv_sa_storage+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 else
6029 cat >conftest.$ac_ext <<_ACEOF
6030 #line $LINENO "configure"
6031 /* confdefs.h. */
6032 _ACEOF
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h. */
6036
6037 # include <sys/types.h>
6038 # include <sys/socket.h>
6039 int
6040 main ()
6041 {
6042 struct sockaddr_storage s
6043 ;
6044 return 0;
6045 }
6046 _ACEOF
6047 rm -f conftest.$ac_objext
6048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6049 (eval $ac_compile) 2>&5
6050 ac_status=$?
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } &&
6053 { ac_try='test -s conftest.$ac_objext'
6054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055 (eval $ac_try) 2>&5
6056 ac_status=$?
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); }; }; then
6059 ac_cv_sa_storage=yes
6060 else
6061 echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.$ac_ext >&5
6063
6064 ac_cv_sa_storage=no
6065 fi
6066 rm -f conftest.$ac_objext conftest.$ac_ext
6067 fi
6068
6069 echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
6070 echo "${ECHO_T}$ac_cv_sa_storage" >&6
6071 if test $ac_cv_sa_storage = yes; then
6072 cat >>confdefs.h <<\_ACEOF
6073 #define HAVE_SOCKADDR_STORAGE 1
6074 _ACEOF
6075
6076 fi
6077
6078 if test "$ac_cv_sa_storage" = no; then
6079 missing_includes=yes
6080 fi
6081
6082
6083 ac_cv_addrsz=yes
6084 echo "$as_me:$LINENO: checking for INADDRSZ" >&5
6085 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6
6086 if test "${ac_cv_inaddrsz+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089 cat >conftest.$ac_ext <<_ACEOF
6090 #line $LINENO "configure"
6091 /* confdefs.h. */
6092 _ACEOF
6093 cat confdefs.h >>conftest.$ac_ext
6094 cat >>conftest.$ac_ext <<_ACEOF
6095 /* end confdefs.h. */
6096
6097 # include <arpa/nameser.h>
6098 int
6099 main ()
6100 {
6101 int a = INADDRSZ
6102 ;
6103 return 0;
6104 }
6105 _ACEOF
6106 rm -f conftest.$ac_objext
6107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6108 (eval $ac_compile) 2>&5
6109 ac_status=$?
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } &&
6112 { ac_try='test -s conftest.$ac_objext'
6113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114 (eval $ac_try) 2>&5
6115 ac_status=$?
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; }; then
6118 ac_cv_inaddrsz=yes
6119 else
6120 echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.$ac_ext >&5
6122
6123 ac_cv_inaddrsz=no
6124 fi
6125 rm -f conftest.$ac_objext conftest.$ac_ext
6126 fi
6127
6128 echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
6129 echo "${ECHO_T}$ac_cv_inaddrsz" >&6
6130 if test $ac_cv_inaddrsz = yes; then
6131 cat >>confdefs.h <<\_ACEOF
6132 #define HAVE_INADDRSZ 1
6133 _ACEOF
6134
6135 else
6136 ac_cv_addrsz=no
6137 fi
6138 echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
6139 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6
6140 if test "${ac_cv_in6addrsz+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143 cat >conftest.$ac_ext <<_ACEOF
6144 #line $LINENO "configure"
6145 /* confdefs.h. */
6146 _ACEOF
6147 cat confdefs.h >>conftest.$ac_ext
6148 cat >>conftest.$ac_ext <<_ACEOF
6149 /* end confdefs.h. */
6150
6151 # include <arpa/nameser.h>
6152 int
6153 main ()
6154 {
6155 int a = IN6ADDRSZ
6156 ;
6157 return 0;
6158 }
6159 _ACEOF
6160 rm -f conftest.$ac_objext
6161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6162 (eval $ac_compile) 2>&5
6163 ac_status=$?
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } &&
6166 { ac_try='test -s conftest.$ac_objext'
6167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6168 (eval $ac_try) 2>&5
6169 ac_status=$?
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }; }; then
6172 ac_cv_in6addrsz=yes
6173 else
6174 echo "$as_me: failed program was:" >&5
6175 sed 's/^/| /' conftest.$ac_ext >&5
6176
6177 ac_cv_in6addrsz=no
6178 fi
6179 rm -f conftest.$ac_objext conftest.$ac_ext
6180 fi
6181
6182 echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
6183 echo "${ECHO_T}$ac_cv_in6addrsz" >&6
6184 if test $ac_cv_in6addrsz = yes; then
6185 cat >>confdefs.h <<\_ACEOF
6186 #define HAVE_IN6ADDRSZ 1
6187 _ACEOF
6188
6189 else
6190 ac_cv_addrsz=no
6191 fi
6192
6193 if test "$ac_cv_addrsz" = no; then
6194 missing_includes=yes
6195 fi
6196
6197
6198 echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
6199 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6
6200 if test "${ac_cv_res_inet6+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 else
6203 cat >conftest.$ac_ext <<_ACEOF
6204 #line $LINENO "configure"
6205 /* confdefs.h. */
6206 _ACEOF
6207 cat confdefs.h >>conftest.$ac_ext
6208 cat >>conftest.$ac_ext <<_ACEOF
6209 /* end confdefs.h. */
6210
6211 # include <sys/types.h>
6212 # include <netinet/in.h>
6213 # include <resolv.h>
6214 int
6215 main ()
6216 {
6217 int a = RES_USE_INET6
6218 ;
6219 return 0;
6220 }
6221 _ACEOF
6222 rm -f conftest.$ac_objext
6223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6224 (eval $ac_compile) 2>&5
6225 ac_status=$?
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } &&
6228 { ac_try='test -s conftest.$ac_objext'
6229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 (eval $ac_try) 2>&5
6231 ac_status=$?
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); }; }; then
6234 ac_cv_res_inet6=yes
6235 else
6236 echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6238
6239 ac_cv_res_inet6=no
6240 fi
6241 rm -f conftest.$ac_objext conftest.$ac_ext
6242 fi
6243
6244 echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
6245 echo "${ECHO_T}$ac_cv_res_inet6" >&6
6246 if test $ac_cv_res_inet6 = yes; then
6247 cat >>confdefs.h <<\_ACEOF
6248 #define HAVE_RES_USE_INET6 1
6249 _ACEOF
6250
6251 fi
6252
6253 if test "$ac_cv_res_inet6" = no; then
6254 missing_includes=yes
6255 fi
6256
6257
6258 echo "$as_me:$LINENO: checking for res_state_ext" >&5
6259 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6
6260 if test "${ac_cv_res_state_ext+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
6262 else
6263 cat >conftest.$ac_ext <<_ACEOF
6264 #line $LINENO "configure"
6265 /* confdefs.h. */
6266 _ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h. */
6270
6271 # include <sys/types.h>
6272 # include <netinet/in.h>
6273 # include <netinet6/in6.h>
6274 # include <resolv.h>
6275 int
6276 main ()
6277 {
6278 struct __res_state_ext e
6279 ;
6280 return 0;
6281 }
6282 _ACEOF
6283 rm -f conftest.$ac_objext
6284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6285 (eval $ac_compile) 2>&5
6286 ac_status=$?
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } &&
6289 { ac_try='test -s conftest.$ac_objext'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 (eval $ac_try) 2>&5
6292 ac_status=$?
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; }; then
6295 ac_cv_res_state_ext=yes
6296 else
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6299
6300 ac_cv_res_state_ext=no
6301 fi
6302 rm -f conftest.$ac_objext conftest.$ac_ext
6303 fi
6304
6305 echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
6306 echo "${ECHO_T}$ac_cv_res_state_ext" >&6
6307 if test $ac_cv_res_state_ext = yes; then
6308 cat >>confdefs.h <<\_ACEOF
6309 #define HAVE_RES_STATE_EXT 1
6310 _ACEOF
6311
6312 fi
6313
6314 if test "$ac_cv_res_state_ext" = no; then
6315 missing_includes=yes
6316 fi
6317
6318
6319 echo "$as_me:$LINENO: checking for nsort in res_state" >&5
6320 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6
6321 if test "${ac_cv_res_state+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6323 else
6324 cat >conftest.$ac_ext <<_ACEOF
6325 #line $LINENO "configure"
6326 /* confdefs.h. */
6327 _ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6331
6332 # include <sys/types.h>
6333 # include <netinet/in.h>
6334 # include <netinet6/in6.h>
6335 # include <resolv.h>
6336 int
6337 main ()
6338 {
6339 struct __res_state e; e.nsort = 0
6340 ;
6341 return 0;
6342 }
6343 _ACEOF
6344 rm -f conftest.$ac_objext
6345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6346 (eval $ac_compile) 2>&5
6347 ac_status=$?
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } &&
6350 { ac_try='test -s conftest.$ac_objext'
6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 (eval $ac_try) 2>&5
6353 ac_status=$?
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
6356 ac_cv_res_state=yes
6357 else
6358 echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6360
6361 ac_cv_res_state=no
6362 fi
6363 rm -f conftest.$ac_objext conftest.$ac_ext
6364 fi
6365
6366 echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
6367 echo "${ECHO_T}$ac_cv_res_state" >&6
6368 if test $ac_cv_res_state = yes; then
6369 cat >>confdefs.h <<\_ACEOF
6370 #define HAVE_NEW_RES_STATE 1
6371 _ACEOF
6372
6373 fi
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
6384 do
6385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6386 echo "$as_me:$LINENO: checking for $ac_func" >&5
6387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6388 if eval "test \"\${$as_ac_var+set}\" = set"; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 else
6391 cat >conftest.$ac_ext <<_ACEOF
6392 #line $LINENO "configure"
6393 /* confdefs.h. */
6394 _ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h. */
6398 /* System header to define __stub macros and hopefully few prototypes,
6399 which can conflict with char $ac_func (); below.
6400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6401 <limits.h> exists even on freestanding compilers. */
6402 #ifdef __STDC__
6403 # include <limits.h>
6404 #else
6405 # include <assert.h>
6406 #endif
6407 /* Override any gcc2 internal prototype to avoid an error. */
6408 #ifdef __cplusplus
6409 extern "C"
6410 {
6411 #endif
6412 /* We use char because int might match the return type of a gcc2
6413 builtin and then its argument prototype would still apply. */
6414 char $ac_func ();
6415 /* The GNU C library defines this for functions which it implements
6416 to always fail with ENOSYS. Some functions are actually named
6417 something starting with __ and the normal name is an alias. */
6418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6419 choke me
6420 #else
6421 char (*f) () = $ac_func;
6422 #endif
6423 #ifdef __cplusplus
6424 }
6425 #endif
6426
6427 int
6428 main ()
6429 {
6430 return f != $ac_func;
6431 ;
6432 return 0;
6433 }
6434 _ACEOF
6435 rm -f conftest.$ac_objext conftest$ac_exeext
6436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6437 (eval $ac_link) 2>&5
6438 ac_status=$?
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } &&
6441 { ac_try='test -s conftest$ac_exeext'
6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443 (eval $ac_try) 2>&5
6444 ac_status=$?
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; }; then
6447 eval "$as_ac_var=yes"
6448 else
6449 echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6451
6452 eval "$as_ac_var=no"
6453 fi
6454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6455 fi
6456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6457 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6458 if test `eval echo '${'$as_ac_var'}'` = yes; then
6459 cat >>confdefs.h <<_ACEOF
6460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6461 _ACEOF
6462
6463 else
6464 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6465 fi
6466 done
6467
6468
6469
6470 for ac_func in strftime
6471 do
6472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6473 echo "$as_me:$LINENO: checking for $ac_func" >&5
6474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6475 if eval "test \"\${$as_ac_var+set}\" = set"; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6477 else
6478 cat >conftest.$ac_ext <<_ACEOF
6479 #line $LINENO "configure"
6480 /* confdefs.h. */
6481 _ACEOF
6482 cat confdefs.h >>conftest.$ac_ext
6483 cat >>conftest.$ac_ext <<_ACEOF
6484 /* end confdefs.h. */
6485 /* System header to define __stub macros and hopefully few prototypes,
6486 which can conflict with char $ac_func (); below.
6487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6488 <limits.h> exists even on freestanding compilers. */
6489 #ifdef __STDC__
6490 # include <limits.h>
6491 #else
6492 # include <assert.h>
6493 #endif
6494 /* Override any gcc2 internal prototype to avoid an error. */
6495 #ifdef __cplusplus
6496 extern "C"
6497 {
6498 #endif
6499 /* We use char because int might match the return type of a gcc2
6500 builtin and then its argument prototype would still apply. */
6501 char $ac_func ();
6502 /* The GNU C library defines this for functions which it implements
6503 to always fail with ENOSYS. Some functions are actually named
6504 something starting with __ and the normal name is an alias. */
6505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6506 choke me
6507 #else
6508 char (*f) () = $ac_func;
6509 #endif
6510 #ifdef __cplusplus
6511 }
6512 #endif
6513
6514 int
6515 main ()
6516 {
6517 return f != $ac_func;
6518 ;
6519 return 0;
6520 }
6521 _ACEOF
6522 rm -f conftest.$ac_objext conftest$ac_exeext
6523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6524 (eval $ac_link) 2>&5
6525 ac_status=$?
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); } &&
6528 { ac_try='test -s conftest$ac_exeext'
6529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6530 (eval $ac_try) 2>&5
6531 ac_status=$?
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; }; then
6534 eval "$as_ac_var=yes"
6535 else
6536 echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.$ac_ext >&5
6538
6539 eval "$as_ac_var=no"
6540 fi
6541 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6542 fi
6543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6544 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6545 if test `eval echo '${'$as_ac_var'}'` = yes; then
6546 cat >>confdefs.h <<_ACEOF
6547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6548 _ACEOF
6549
6550 fi
6551 done
6552
6553
6554 for ac_func in ether_ntohost
6555 do
6556 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6557 echo "$as_me:$LINENO: checking for $ac_func" >&5
6558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6559 if eval "test \"\${$as_ac_var+set}\" = set"; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 else
6562 cat >conftest.$ac_ext <<_ACEOF
6563 #line $LINENO "configure"
6564 /* confdefs.h. */
6565 _ACEOF
6566 cat confdefs.h >>conftest.$ac_ext
6567 cat >>conftest.$ac_ext <<_ACEOF
6568 /* end confdefs.h. */
6569 /* System header to define __stub macros and hopefully few prototypes,
6570 which can conflict with char $ac_func (); below.
6571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6572 <limits.h> exists even on freestanding compilers. */
6573 #ifdef __STDC__
6574 # include <limits.h>
6575 #else
6576 # include <assert.h>
6577 #endif
6578 /* Override any gcc2 internal prototype to avoid an error. */
6579 #ifdef __cplusplus
6580 extern "C"
6581 {
6582 #endif
6583 /* We use char because int might match the return type of a gcc2
6584 builtin and then its argument prototype would still apply. */
6585 char $ac_func ();
6586 /* The GNU C library defines this for functions which it implements
6587 to always fail with ENOSYS. Some functions are actually named
6588 something starting with __ and the normal name is an alias. */
6589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6590 choke me
6591 #else
6592 char (*f) () = $ac_func;
6593 #endif
6594 #ifdef __cplusplus
6595 }
6596 #endif
6597
6598 int
6599 main ()
6600 {
6601 return f != $ac_func;
6602 ;
6603 return 0;
6604 }
6605 _ACEOF
6606 rm -f conftest.$ac_objext conftest$ac_exeext
6607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6608 (eval $ac_link) 2>&5
6609 ac_status=$?
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); } &&
6612 { ac_try='test -s conftest$ac_exeext'
6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614 (eval $ac_try) 2>&5
6615 ac_status=$?
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; }; then
6618 eval "$as_ac_var=yes"
6619 else
6620 echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6622
6623 eval "$as_ac_var=no"
6624 fi
6625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6626 fi
6627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6628 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6629 if test `eval echo '${'$as_ac_var'}'` = yes; then
6630 cat >>confdefs.h <<_ACEOF
6631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6632 _ACEOF
6633
6634 echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
6635 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
6636 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
6638 else
6639
6640 if test "$cross_compiling" = yes; then
6641 ac_cv_buggy_ether_ntohost="not while cross-compiling"
6642 else
6643 cat >conftest.$ac_ext <<_ACEOF
6644 #line $LINENO "configure"
6645 /* confdefs.h. */
6646 _ACEOF
6647 cat confdefs.h >>conftest.$ac_ext
6648 cat >>conftest.$ac_ext <<_ACEOF
6649 /* end confdefs.h. */
6650
6651 #include <netdb.h>
6652 #include <sys/types.h>
6653 #include <sys/param.h>
6654 #include <sys/socket.h>
6655
6656 int
6657 main(int argc, char **argv)
6658 {
6659 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
6660 char name[MAXHOSTNAMELEN];
6661
6662 ether_ntohost(name, (struct ether_addr *)ea);
6663 exit(0);
6664 }
6665
6666 _ACEOF
6667 rm -f conftest$ac_exeext
6668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6669 (eval $ac_link) 2>&5
6670 ac_status=$?
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6674 (eval $ac_try) 2>&5
6675 ac_status=$?
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); }; }; then
6678 ac_cv_buggy_ether_ntohost=no
6679 else
6680 echo "$as_me: program exited with status $ac_status" >&5
6681 echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.$ac_ext >&5
6683
6684 ( exit $ac_status )
6685 ac_cv_buggy_ether_ntohost=yes
6686 fi
6687 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6688 fi
6689 fi
6690 echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
6691 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
6692 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
6693 cat >>confdefs.h <<\_ACEOF
6694 #define USE_ETHER_NTOHOST 1
6695 _ACEOF
6696
6697 fi
6698
6699 fi
6700 done
6701
6702
6703
6704 for ac_func in setlinebuf alarm
6705 do
6706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6707 echo "$as_me:$LINENO: checking for $ac_func" >&5
6708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6709 if eval "test \"\${$as_ac_var+set}\" = set"; then
6710 echo $ECHO_N "(cached) $ECHO_C" >&6
6711 else
6712 cat >conftest.$ac_ext <<_ACEOF
6713 #line $LINENO "configure"
6714 /* confdefs.h. */
6715 _ACEOF
6716 cat confdefs.h >>conftest.$ac_ext
6717 cat >>conftest.$ac_ext <<_ACEOF
6718 /* end confdefs.h. */
6719 /* System header to define __stub macros and hopefully few prototypes,
6720 which can conflict with char $ac_func (); below.
6721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6722 <limits.h> exists even on freestanding compilers. */
6723 #ifdef __STDC__
6724 # include <limits.h>
6725 #else
6726 # include <assert.h>
6727 #endif
6728 /* Override any gcc2 internal prototype to avoid an error. */
6729 #ifdef __cplusplus
6730 extern "C"
6731 {
6732 #endif
6733 /* We use char because int might match the return type of a gcc2
6734 builtin and then its argument prototype would still apply. */
6735 char $ac_func ();
6736 /* The GNU C library defines this for functions which it implements
6737 to always fail with ENOSYS. Some functions are actually named
6738 something starting with __ and the normal name is an alias. */
6739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6740 choke me
6741 #else
6742 char (*f) () = $ac_func;
6743 #endif
6744 #ifdef __cplusplus
6745 }
6746 #endif
6747
6748 int
6749 main ()
6750 {
6751 return f != $ac_func;
6752 ;
6753 return 0;
6754 }
6755 _ACEOF
6756 rm -f conftest.$ac_objext conftest$ac_exeext
6757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6758 (eval $ac_link) 2>&5
6759 ac_status=$?
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); } &&
6762 { ac_try='test -s conftest$ac_exeext'
6763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6764 (eval $ac_try) 2>&5
6765 ac_status=$?
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); }; }; then
6768 eval "$as_ac_var=yes"
6769 else
6770 echo "$as_me: failed program was:" >&5
6771 sed 's/^/| /' conftest.$ac_ext >&5
6772
6773 eval "$as_ac_var=no"
6774 fi
6775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6776 fi
6777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6778 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6779 if test `eval echo '${'$as_ac_var'}'` = yes; then
6780 cat >>confdefs.h <<_ACEOF
6781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6782 _ACEOF
6783
6784 fi
6785 done
6786
6787
6788 needsnprintf=no
6789
6790
6791 for ac_func in vsnprintf snprintf
6792 do
6793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6794 echo "$as_me:$LINENO: checking for $ac_func" >&5
6795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6796 if eval "test \"\${$as_ac_var+set}\" = set"; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799 cat >conftest.$ac_ext <<_ACEOF
6800 #line $LINENO "configure"
6801 /* confdefs.h. */
6802 _ACEOF
6803 cat confdefs.h >>conftest.$ac_ext
6804 cat >>conftest.$ac_ext <<_ACEOF
6805 /* end confdefs.h. */
6806 /* System header to define __stub macros and hopefully few prototypes,
6807 which can conflict with char $ac_func (); below.
6808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6809 <limits.h> exists even on freestanding compilers. */
6810 #ifdef __STDC__
6811 # include <limits.h>
6812 #else
6813 # include <assert.h>
6814 #endif
6815 /* Override any gcc2 internal prototype to avoid an error. */
6816 #ifdef __cplusplus
6817 extern "C"
6818 {
6819 #endif
6820 /* We use char because int might match the return type of a gcc2
6821 builtin and then its argument prototype would still apply. */
6822 char $ac_func ();
6823 /* The GNU C library defines this for functions which it implements
6824 to always fail with ENOSYS. Some functions are actually named
6825 something starting with __ and the normal name is an alias. */
6826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6827 choke me
6828 #else
6829 char (*f) () = $ac_func;
6830 #endif
6831 #ifdef __cplusplus
6832 }
6833 #endif
6834
6835 int
6836 main ()
6837 {
6838 return f != $ac_func;
6839 ;
6840 return 0;
6841 }
6842 _ACEOF
6843 rm -f conftest.$ac_objext conftest$ac_exeext
6844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6845 (eval $ac_link) 2>&5
6846 ac_status=$?
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); } &&
6849 { ac_try='test -s conftest$ac_exeext'
6850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851 (eval $ac_try) 2>&5
6852 ac_status=$?
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; }; then
6855 eval "$as_ac_var=yes"
6856 else
6857 echo "$as_me: failed program was:" >&5
6858 sed 's/^/| /' conftest.$ac_ext >&5
6859
6860 eval "$as_ac_var=no"
6861 fi
6862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6863 fi
6864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6866 if test `eval echo '${'$as_ac_var'}'` = yes; then
6867 cat >>confdefs.h <<_ACEOF
6868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6869 _ACEOF
6870
6871 else
6872 needsnprintf=yes
6873 fi
6874 done
6875
6876 if test $needsnprintf = yes; then
6877 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
6878 fi
6879
6880
6881 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6882 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6883 if test "${ac_cv_type_signal+set}" = set; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 else
6886 cat >conftest.$ac_ext <<_ACEOF
6887 #line $LINENO "configure"
6888 /* confdefs.h. */
6889 _ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h. */
6893 #include <sys/types.h>
6894 #include <signal.h>
6895 #ifdef signal
6896 # undef signal
6897 #endif
6898 #ifdef __cplusplus
6899 extern "C" void (*signal (int, void (*)(int)))(int);
6900 #else
6901 void (*signal ()) ();
6902 #endif
6903
6904 int
6905 main ()
6906 {
6907 int i;
6908 ;
6909 return 0;
6910 }
6911 _ACEOF
6912 rm -f conftest.$ac_objext
6913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6914 (eval $ac_compile) 2>&5
6915 ac_status=$?
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); } &&
6918 { ac_try='test -s conftest.$ac_objext'
6919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920 (eval $ac_try) 2>&5
6921 ac_status=$?
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); }; }; then
6924 ac_cv_type_signal=void
6925 else
6926 echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.$ac_ext >&5
6928
6929 ac_cv_type_signal=int
6930 fi
6931 rm -f conftest.$ac_objext conftest.$ac_ext
6932 fi
6933 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6934 echo "${ECHO_T}$ac_cv_type_signal" >&6
6935
6936 cat >>confdefs.h <<_ACEOF
6937 #define RETSIGTYPE $ac_cv_type_signal
6938 _ACEOF
6939
6940
6941 if test "$ac_cv_type_signal" = void ; then
6942 cat >>confdefs.h <<\_ACEOF
6943 #define RETSIGVAL
6944 _ACEOF
6945
6946 else
6947 cat >>confdefs.h <<\_ACEOF
6948 #define RETSIGVAL (0)
6949 _ACEOF
6950
6951 fi
6952 case "$host_os" in
6953
6954 irix*)
6955 cat >>confdefs.h <<\_ACEOF
6956 #define _BSD_SIGNALS 1
6957 _ACEOF
6958
6959 ;;
6960
6961 *)
6962
6963 for ac_func in sigaction
6964 do
6965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6966 echo "$as_me:$LINENO: checking for $ac_func" >&5
6967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6968 if eval "test \"\${$as_ac_var+set}\" = set"; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971 cat >conftest.$ac_ext <<_ACEOF
6972 #line $LINENO "configure"
6973 /* confdefs.h. */
6974 _ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h. */
6978 /* System header to define __stub macros and hopefully few prototypes,
6979 which can conflict with char $ac_func (); below.
6980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6981 <limits.h> exists even on freestanding compilers. */
6982 #ifdef __STDC__
6983 # include <limits.h>
6984 #else
6985 # include <assert.h>
6986 #endif
6987 /* Override any gcc2 internal prototype to avoid an error. */
6988 #ifdef __cplusplus
6989 extern "C"
6990 {
6991 #endif
6992 /* We use char because int might match the return type of a gcc2
6993 builtin and then its argument prototype would still apply. */
6994 char $ac_func ();
6995 /* The GNU C library defines this for functions which it implements
6996 to always fail with ENOSYS. Some functions are actually named
6997 something starting with __ and the normal name is an alias. */
6998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6999 choke me
7000 #else
7001 char (*f) () = $ac_func;
7002 #endif
7003 #ifdef __cplusplus
7004 }
7005 #endif
7006
7007 int
7008 main ()
7009 {
7010 return f != $ac_func;
7011 ;
7012 return 0;
7013 }
7014 _ACEOF
7015 rm -f conftest.$ac_objext conftest$ac_exeext
7016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7017 (eval $ac_link) 2>&5
7018 ac_status=$?
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); } &&
7021 { ac_try='test -s conftest$ac_exeext'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023 (eval $ac_try) 2>&5
7024 ac_status=$?
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; }; then
7027 eval "$as_ac_var=yes"
7028 else
7029 echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7031
7032 eval "$as_ac_var=no"
7033 fi
7034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7035 fi
7036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7038 if test `eval echo '${'$as_ac_var'}'` = yes; then
7039 cat >>confdefs.h <<_ACEOF
7040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7041 _ACEOF
7042
7043 fi
7044 done
7045
7046 if test $ac_cv_func_sigaction = no ; then
7047
7048 for ac_func in sigset
7049 do
7050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7051 echo "$as_me:$LINENO: checking for $ac_func" >&5
7052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7053 if eval "test \"\${$as_ac_var+set}\" = set"; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 else
7056 cat >conftest.$ac_ext <<_ACEOF
7057 #line $LINENO "configure"
7058 /* confdefs.h. */
7059 _ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7063 /* System header to define __stub macros and hopefully few prototypes,
7064 which can conflict with char $ac_func (); below.
7065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7066 <limits.h> exists even on freestanding compilers. */
7067 #ifdef __STDC__
7068 # include <limits.h>
7069 #else
7070 # include <assert.h>
7071 #endif
7072 /* Override any gcc2 internal prototype to avoid an error. */
7073 #ifdef __cplusplus
7074 extern "C"
7075 {
7076 #endif
7077 /* We use char because int might match the return type of a gcc2
7078 builtin and then its argument prototype would still apply. */
7079 char $ac_func ();
7080 /* The GNU C library defines this for functions which it implements
7081 to always fail with ENOSYS. Some functions are actually named
7082 something starting with __ and the normal name is an alias. */
7083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7084 choke me
7085 #else
7086 char (*f) () = $ac_func;
7087 #endif
7088 #ifdef __cplusplus
7089 }
7090 #endif
7091
7092 int
7093 main ()
7094 {
7095 return f != $ac_func;
7096 ;
7097 return 0;
7098 }
7099 _ACEOF
7100 rm -f conftest.$ac_objext conftest$ac_exeext
7101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7102 (eval $ac_link) 2>&5
7103 ac_status=$?
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); } &&
7106 { ac_try='test -s conftest$ac_exeext'
7107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108 (eval $ac_try) 2>&5
7109 ac_status=$?
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); }; }; then
7112 eval "$as_ac_var=yes"
7113 else
7114 echo "$as_me: failed program was:" >&5
7115 sed 's/^/| /' conftest.$ac_ext >&5
7116
7117 eval "$as_ac_var=no"
7118 fi
7119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7120 fi
7121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7122 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7123 if test `eval echo '${'$as_ac_var'}'` = yes; then
7124 cat >>confdefs.h <<_ACEOF
7125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7126 _ACEOF
7127
7128 fi
7129 done
7130
7131 fi
7132 ;;
7133 esac
7134
7135 echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
7136 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6
7137 if test "${ac_cv_search_dnet_htoa+set}" = set; then
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
7139 else
7140 ac_func_search_save_LIBS=$LIBS
7141 ac_cv_search_dnet_htoa=no
7142 cat >conftest.$ac_ext <<_ACEOF
7143 #line $LINENO "configure"
7144 /* confdefs.h. */
7145 _ACEOF
7146 cat confdefs.h >>conftest.$ac_ext
7147 cat >>conftest.$ac_ext <<_ACEOF
7148 /* end confdefs.h. */
7149
7150 /* Override any gcc2 internal prototype to avoid an error. */
7151 #ifdef __cplusplus
7152 extern "C"
7153 #endif
7154 /* We use char because int might match the return type of a gcc2
7155 builtin and then its argument prototype would still apply. */
7156 char dnet_htoa ();
7157 int
7158 main ()
7159 {
7160 dnet_htoa ();
7161 ;
7162 return 0;
7163 }
7164 _ACEOF
7165 rm -f conftest.$ac_objext conftest$ac_exeext
7166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7167 (eval $ac_link) 2>&5
7168 ac_status=$?
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } &&
7171 { ac_try='test -s conftest$ac_exeext'
7172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173 (eval $ac_try) 2>&5
7174 ac_status=$?
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); }; }; then
7177 ac_cv_search_dnet_htoa="none required"
7178 else
7179 echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.$ac_ext >&5
7181
7182 fi
7183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7184 if test "$ac_cv_search_dnet_htoa" = no; then
7185 for ac_lib in dnet; do
7186 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7187 cat >conftest.$ac_ext <<_ACEOF
7188 #line $LINENO "configure"
7189 /* confdefs.h. */
7190 _ACEOF
7191 cat confdefs.h >>conftest.$ac_ext
7192 cat >>conftest.$ac_ext <<_ACEOF
7193 /* end confdefs.h. */
7194
7195 /* Override any gcc2 internal prototype to avoid an error. */
7196 #ifdef __cplusplus
7197 extern "C"
7198 #endif
7199 /* We use char because int might match the return type of a gcc2
7200 builtin and then its argument prototype would still apply. */
7201 char dnet_htoa ();
7202 int
7203 main ()
7204 {
7205 dnet_htoa ();
7206 ;
7207 return 0;
7208 }
7209 _ACEOF
7210 rm -f conftest.$ac_objext conftest$ac_exeext
7211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7212 (eval $ac_link) 2>&5
7213 ac_status=$?
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); } &&
7216 { ac_try='test -s conftest$ac_exeext'
7217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218 (eval $ac_try) 2>&5
7219 ac_status=$?
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); }; }; then
7222 ac_cv_search_dnet_htoa="-l$ac_lib"
7223 break
7224 else
7225 echo "$as_me: failed program was:" >&5
7226 sed 's/^/| /' conftest.$ac_ext >&5
7227
7228 fi
7229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7230 done
7231 fi
7232 LIBS=$ac_func_search_save_LIBS
7233 fi
7234 echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
7235 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6
7236 if test "$ac_cv_search_dnet_htoa" != no; then
7237 test "$ac_cv_search_dnet_htoa" = "none required" || LIBS="$ac_cv_search_dnet_htoa $LIBS"
7238 cat >>confdefs.h <<\_ACEOF
7239 #define HAVE_DNET_HTOA 1
7240 _ACEOF
7241
7242 fi
7243
7244
7245
7246 echo "$as_me:$LINENO: checking for main in -lrpc" >&5
7247 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6
7248 if test "${ac_cv_lib_rpc_main+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 else
7251 ac_check_lib_save_LIBS=$LIBS
7252 LIBS="-lrpc $LIBS"
7253 cat >conftest.$ac_ext <<_ACEOF
7254 #line $LINENO "configure"
7255 /* confdefs.h. */
7256 _ACEOF
7257 cat confdefs.h >>conftest.$ac_ext
7258 cat >>conftest.$ac_ext <<_ACEOF
7259 /* end confdefs.h. */
7260
7261
7262 int
7263 main ()
7264 {
7265 main ();
7266 ;
7267 return 0;
7268 }
7269 _ACEOF
7270 rm -f conftest.$ac_objext conftest$ac_exeext
7271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7272 (eval $ac_link) 2>&5
7273 ac_status=$?
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); } &&
7276 { ac_try='test -s conftest$ac_exeext'
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278 (eval $ac_try) 2>&5
7279 ac_status=$?
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; }; then
7282 ac_cv_lib_rpc_main=yes
7283 else
7284 echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7286
7287 ac_cv_lib_rpc_main=no
7288 fi
7289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7290 LIBS=$ac_check_lib_save_LIBS
7291 fi
7292 echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
7293 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6
7294 if test $ac_cv_lib_rpc_main = yes; then
7295 cat >>confdefs.h <<_ACEOF
7296 #define HAVE_LIBRPC 1
7297 _ACEOF
7298
7299 LIBS="-lrpc $LIBS"
7300
7301 fi
7302
7303 echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
7304 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6
7305 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308 ac_func_search_save_LIBS=$LIBS
7309 ac_cv_search_getrpcbynumber=no
7310 cat >conftest.$ac_ext <<_ACEOF
7311 #line $LINENO "configure"
7312 /* confdefs.h. */
7313 _ACEOF
7314 cat confdefs.h >>conftest.$ac_ext
7315 cat >>conftest.$ac_ext <<_ACEOF
7316 /* end confdefs.h. */
7317
7318 /* Override any gcc2 internal prototype to avoid an error. */
7319 #ifdef __cplusplus
7320 extern "C"
7321 #endif
7322 /* We use char because int might match the return type of a gcc2
7323 builtin and then its argument prototype would still apply. */
7324 char getrpcbynumber ();
7325 int
7326 main ()
7327 {
7328 getrpcbynumber ();
7329 ;
7330 return 0;
7331 }
7332 _ACEOF
7333 rm -f conftest.$ac_objext conftest$ac_exeext
7334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7335 (eval $ac_link) 2>&5
7336 ac_status=$?
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } &&
7339 { ac_try='test -s conftest$ac_exeext'
7340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7341 (eval $ac_try) 2>&5
7342 ac_status=$?
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); }; }; then
7345 ac_cv_search_getrpcbynumber="none required"
7346 else
7347 echo "$as_me: failed program was:" >&5
7348 sed 's/^/| /' conftest.$ac_ext >&5
7349
7350 fi
7351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7352 if test "$ac_cv_search_getrpcbynumber" = no; then
7353 for ac_lib in nsl; do
7354 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7355 cat >conftest.$ac_ext <<_ACEOF
7356 #line $LINENO "configure"
7357 /* confdefs.h. */
7358 _ACEOF
7359 cat confdefs.h >>conftest.$ac_ext
7360 cat >>conftest.$ac_ext <<_ACEOF
7361 /* end confdefs.h. */
7362
7363 /* Override any gcc2 internal prototype to avoid an error. */
7364 #ifdef __cplusplus
7365 extern "C"
7366 #endif
7367 /* We use char because int might match the return type of a gcc2
7368 builtin and then its argument prototype would still apply. */
7369 char getrpcbynumber ();
7370 int
7371 main ()
7372 {
7373 getrpcbynumber ();
7374 ;
7375 return 0;
7376 }
7377 _ACEOF
7378 rm -f conftest.$ac_objext conftest$ac_exeext
7379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7380 (eval $ac_link) 2>&5
7381 ac_status=$?
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); } &&
7384 { ac_try='test -s conftest$ac_exeext'
7385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386 (eval $ac_try) 2>&5
7387 ac_status=$?
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }; }; then
7390 ac_cv_search_getrpcbynumber="-l$ac_lib"
7391 break
7392 else
7393 echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7395
7396 fi
7397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7398 done
7399 fi
7400 LIBS=$ac_func_search_save_LIBS
7401 fi
7402 echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
7403 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6
7404 if test "$ac_cv_search_getrpcbynumber" != no; then
7405 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS="$ac_cv_search_getrpcbynumber $LIBS"
7406
7407 fi
7408
7409
7410
7411
7412 # Most operating systems have gethostbyname() in the default searched
7413 # libraries (i.e. libc):
7414 # Some OSes (eg. Solaris) place it in libnsl
7415 # Some strange OSes (SINIX) have it in libsocket:
7416 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7417 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7418 if test "${ac_cv_search_gethostbyname+set}" = set; then
7419 echo $ECHO_N "(cached) $ECHO_C" >&6
7420 else
7421 ac_func_search_save_LIBS=$LIBS
7422 ac_cv_search_gethostbyname=no
7423 cat >conftest.$ac_ext <<_ACEOF
7424 #line $LINENO "configure"
7425 /* confdefs.h. */
7426 _ACEOF
7427 cat confdefs.h >>conftest.$ac_ext
7428 cat >>conftest.$ac_ext <<_ACEOF
7429 /* end confdefs.h. */
7430
7431 /* Override any gcc2 internal prototype to avoid an error. */
7432 #ifdef __cplusplus
7433 extern "C"
7434 #endif
7435 /* We use char because int might match the return type of a gcc2
7436 builtin and then its argument prototype would still apply. */
7437 char gethostbyname ();
7438 int
7439 main ()
7440 {
7441 gethostbyname ();
7442 ;
7443 return 0;
7444 }
7445 _ACEOF
7446 rm -f conftest.$ac_objext conftest$ac_exeext
7447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7448 (eval $ac_link) 2>&5
7449 ac_status=$?
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } &&
7452 { ac_try='test -s conftest$ac_exeext'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 (eval $ac_try) 2>&5
7455 ac_status=$?
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; }; then
7458 ac_cv_search_gethostbyname="none required"
7459 else
7460 echo "$as_me: failed program was:" >&5
7461 sed 's/^/| /' conftest.$ac_ext >&5
7462
7463 fi
7464 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7465 if test "$ac_cv_search_gethostbyname" = no; then
7466 for ac_lib in nsl socket resolv; do
7467 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7468 cat >conftest.$ac_ext <<_ACEOF
7469 #line $LINENO "configure"
7470 /* confdefs.h. */
7471 _ACEOF
7472 cat confdefs.h >>conftest.$ac_ext
7473 cat >>conftest.$ac_ext <<_ACEOF
7474 /* end confdefs.h. */
7475
7476 /* Override any gcc2 internal prototype to avoid an error. */
7477 #ifdef __cplusplus
7478 extern "C"
7479 #endif
7480 /* We use char because int might match the return type of a gcc2
7481 builtin and then its argument prototype would still apply. */
7482 char gethostbyname ();
7483 int
7484 main ()
7485 {
7486 gethostbyname ();
7487 ;
7488 return 0;
7489 }
7490 _ACEOF
7491 rm -f conftest.$ac_objext conftest$ac_exeext
7492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7493 (eval $ac_link) 2>&5
7494 ac_status=$?
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); } &&
7497 { ac_try='test -s conftest$ac_exeext'
7498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7499 (eval $ac_try) 2>&5
7500 ac_status=$?
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); }; }; then
7503 ac_cv_search_gethostbyname="-l$ac_lib"
7504 break
7505 else
7506 echo "$as_me: failed program was:" >&5
7507 sed 's/^/| /' conftest.$ac_ext >&5
7508
7509 fi
7510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7511 done
7512 fi
7513 LIBS=$ac_func_search_save_LIBS
7514 fi
7515 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7516 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7517 if test "$ac_cv_search_gethostbyname" != no; then
7518 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
7519
7520 fi
7521
7522 # Unfortunately libsocket sometimes depends on libnsl and
7523 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
7524 if test "$ac_cv_search_gethostbyname" = "no"
7525 then
7526 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
7527 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
7528 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7530 else
7531 ac_check_lib_save_LIBS=$LIBS
7532 LIBS="-lsocket -lnsl $LIBS"
7533 cat >conftest.$ac_ext <<_ACEOF
7534 #line $LINENO "configure"
7535 /* confdefs.h. */
7536 _ACEOF
7537 cat confdefs.h >>conftest.$ac_ext
7538 cat >>conftest.$ac_ext <<_ACEOF
7539 /* end confdefs.h. */
7540
7541 /* Override any gcc2 internal prototype to avoid an error. */
7542 #ifdef __cplusplus
7543 extern "C"
7544 #endif
7545 /* We use char because int might match the return type of a gcc2
7546 builtin and then its argument prototype would still apply. */
7547 char gethostbyname ();
7548 int
7549 main ()
7550 {
7551 gethostbyname ();
7552 ;
7553 return 0;
7554 }
7555 _ACEOF
7556 rm -f conftest.$ac_objext conftest$ac_exeext
7557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7558 (eval $ac_link) 2>&5
7559 ac_status=$?
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } &&
7562 { ac_try='test -s conftest$ac_exeext'
7563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7564 (eval $ac_try) 2>&5
7565 ac_status=$?
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); }; }; then
7568 ac_cv_lib_socket_gethostbyname=yes
7569 else
7570 echo "$as_me: failed program was:" >&5
7571 sed 's/^/| /' conftest.$ac_ext >&5
7572
7573 ac_cv_lib_socket_gethostbyname=no
7574 fi
7575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7576 LIBS=$ac_check_lib_save_LIBS
7577 fi
7578 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
7579 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
7580 if test $ac_cv_lib_socket_gethostbyname = yes; then
7581 LIBS="-lsocket -lnsl $LIBS"
7582 fi
7583
7584 fi
7585 echo "$as_me:$LINENO: checking for library containing socket" >&5
7586 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
7587 if test "${ac_cv_search_socket+set}" = set; then
7588 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 else
7590 ac_func_search_save_LIBS=$LIBS
7591 ac_cv_search_socket=no
7592 cat >conftest.$ac_ext <<_ACEOF
7593 #line $LINENO "configure"
7594 /* confdefs.h. */
7595 _ACEOF
7596 cat confdefs.h >>conftest.$ac_ext
7597 cat >>conftest.$ac_ext <<_ACEOF
7598 /* end confdefs.h. */
7599
7600 /* Override any gcc2 internal prototype to avoid an error. */
7601 #ifdef __cplusplus
7602 extern "C"
7603 #endif
7604 /* We use char because int might match the return type of a gcc2
7605 builtin and then its argument prototype would still apply. */
7606 char socket ();
7607 int
7608 main ()
7609 {
7610 socket ();
7611 ;
7612 return 0;
7613 }
7614 _ACEOF
7615 rm -f conftest.$ac_objext conftest$ac_exeext
7616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7617 (eval $ac_link) 2>&5
7618 ac_status=$?
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); } &&
7621 { ac_try='test -s conftest$ac_exeext'
7622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623 (eval $ac_try) 2>&5
7624 ac_status=$?
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); }; }; then
7627 ac_cv_search_socket="none required"
7628 else
7629 echo "$as_me: failed program was:" >&5
7630 sed 's/^/| /' conftest.$ac_ext >&5
7631
7632 fi
7633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7634 if test "$ac_cv_search_socket" = no; then
7635 for ac_lib in socket; do
7636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7637 cat >conftest.$ac_ext <<_ACEOF
7638 #line $LINENO "configure"
7639 /* confdefs.h. */
7640 _ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h. */
7644
7645 /* Override any gcc2 internal prototype to avoid an error. */
7646 #ifdef __cplusplus
7647 extern "C"
7648 #endif
7649 /* We use char because int might match the return type of a gcc2
7650 builtin and then its argument prototype would still apply. */
7651 char socket ();
7652 int
7653 main ()
7654 {
7655 socket ();
7656 ;
7657 return 0;
7658 }
7659 _ACEOF
7660 rm -f conftest.$ac_objext conftest$ac_exeext
7661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7662 (eval $ac_link) 2>&5
7663 ac_status=$?
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } &&
7666 { ac_try='test -s conftest$ac_exeext'
7667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 (eval $ac_try) 2>&5
7669 ac_status=$?
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); }; }; then
7672 ac_cv_search_socket="-l$ac_lib"
7673 break
7674 else
7675 echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7677
7678 fi
7679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7680 done
7681 fi
7682 LIBS=$ac_func_search_save_LIBS
7683 fi
7684 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7685 echo "${ECHO_T}$ac_cv_search_socket" >&6
7686 if test "$ac_cv_search_socket" != no; then
7687 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
7688
7689 else
7690 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7691 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7692 if test "${ac_cv_lib_socket_socket+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7694 else
7695 ac_check_lib_save_LIBS=$LIBS
7696 LIBS="-lsocket -lnsl $LIBS"
7697 cat >conftest.$ac_ext <<_ACEOF
7698 #line $LINENO "configure"
7699 /* confdefs.h. */
7700 _ACEOF
7701 cat confdefs.h >>conftest.$ac_ext
7702 cat >>conftest.$ac_ext <<_ACEOF
7703 /* end confdefs.h. */
7704
7705 /* Override any gcc2 internal prototype to avoid an error. */
7706 #ifdef __cplusplus
7707 extern "C"
7708 #endif
7709 /* We use char because int might match the return type of a gcc2
7710 builtin and then its argument prototype would still apply. */
7711 char socket ();
7712 int
7713 main ()
7714 {
7715 socket ();
7716 ;
7717 return 0;
7718 }
7719 _ACEOF
7720 rm -f conftest.$ac_objext conftest$ac_exeext
7721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7722 (eval $ac_link) 2>&5
7723 ac_status=$?
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); } &&
7726 { ac_try='test -s conftest$ac_exeext'
7727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7728 (eval $ac_try) 2>&5
7729 ac_status=$?
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; }; then
7732 ac_cv_lib_socket_socket=yes
7733 else
7734 echo "$as_me: failed program was:" >&5
7735 sed 's/^/| /' conftest.$ac_ext >&5
7736
7737 ac_cv_lib_socket_socket=no
7738 fi
7739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7740 LIBS=$ac_check_lib_save_LIBS
7741 fi
7742 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7743 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7744 if test $ac_cv_lib_socket_socket = yes; then
7745 LIBS="-lsocket -lnsl $LIBS"
7746 fi
7747
7748 fi
7749
7750 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
7751 echo "$as_me:$LINENO: checking for library containing putmsg" >&5
7752 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
7753 if test "${ac_cv_search_putmsg+set}" = set; then
7754 echo $ECHO_N "(cached) $ECHO_C" >&6
7755 else
7756 ac_func_search_save_LIBS=$LIBS
7757 ac_cv_search_putmsg=no
7758 cat >conftest.$ac_ext <<_ACEOF
7759 #line $LINENO "configure"
7760 /* confdefs.h. */
7761 _ACEOF
7762 cat confdefs.h >>conftest.$ac_ext
7763 cat >>conftest.$ac_ext <<_ACEOF
7764 /* end confdefs.h. */
7765
7766 /* Override any gcc2 internal prototype to avoid an error. */
7767 #ifdef __cplusplus
7768 extern "C"
7769 #endif
7770 /* We use char because int might match the return type of a gcc2
7771 builtin and then its argument prototype would still apply. */
7772 char putmsg ();
7773 int
7774 main ()
7775 {
7776 putmsg ();
7777 ;
7778 return 0;
7779 }
7780 _ACEOF
7781 rm -f conftest.$ac_objext conftest$ac_exeext
7782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7783 (eval $ac_link) 2>&5
7784 ac_status=$?
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); } &&
7787 { ac_try='test -s conftest$ac_exeext'
7788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789 (eval $ac_try) 2>&5
7790 ac_status=$?
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); }; }; then
7793 ac_cv_search_putmsg="none required"
7794 else
7795 echo "$as_me: failed program was:" >&5
7796 sed 's/^/| /' conftest.$ac_ext >&5
7797
7798 fi
7799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7800 if test "$ac_cv_search_putmsg" = no; then
7801 for ac_lib in str; do
7802 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7803 cat >conftest.$ac_ext <<_ACEOF
7804 #line $LINENO "configure"
7805 /* confdefs.h. */
7806 _ACEOF
7807 cat confdefs.h >>conftest.$ac_ext
7808 cat >>conftest.$ac_ext <<_ACEOF
7809 /* end confdefs.h. */
7810
7811 /* Override any gcc2 internal prototype to avoid an error. */
7812 #ifdef __cplusplus
7813 extern "C"
7814 #endif
7815 /* We use char because int might match the return type of a gcc2
7816 builtin and then its argument prototype would still apply. */
7817 char putmsg ();
7818 int
7819 main ()
7820 {
7821 putmsg ();
7822 ;
7823 return 0;
7824 }
7825 _ACEOF
7826 rm -f conftest.$ac_objext conftest$ac_exeext
7827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7828 (eval $ac_link) 2>&5
7829 ac_status=$?
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } &&
7832 { ac_try='test -s conftest$ac_exeext'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 (eval $ac_try) 2>&5
7835 ac_status=$?
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; }; then
7838 ac_cv_search_putmsg="-l$ac_lib"
7839 break
7840 else
7841 echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7843
7844 fi
7845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7846 done
7847 fi
7848 LIBS=$ac_func_search_save_LIBS
7849 fi
7850 echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
7851 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
7852 if test "$ac_cv_search_putmsg" != no; then
7853 test "$ac_cv_search_putmsg" = "none required" || LIBS="$ac_cv_search_putmsg $LIBS"
7854
7855 fi
7856
7857
7858
7859 LBL_LIBS="$LIBS"
7860 pfopen=/usr/examples/packetfilter/pfopen.c
7861 if test -f $pfopen ; then
7862
7863 for ac_func in pfopen
7864 do
7865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7866 echo "$as_me:$LINENO: checking for $ac_func" >&5
7867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7868 if eval "test \"\${$as_ac_var+set}\" = set"; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7870 else
7871 cat >conftest.$ac_ext <<_ACEOF
7872 #line $LINENO "configure"
7873 /* confdefs.h. */
7874 _ACEOF
7875 cat confdefs.h >>conftest.$ac_ext
7876 cat >>conftest.$ac_ext <<_ACEOF
7877 /* end confdefs.h. */
7878 /* System header to define __stub macros and hopefully few prototypes,
7879 which can conflict with char $ac_func (); below.
7880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7881 <limits.h> exists even on freestanding compilers. */
7882 #ifdef __STDC__
7883 # include <limits.h>
7884 #else
7885 # include <assert.h>
7886 #endif
7887 /* Override any gcc2 internal prototype to avoid an error. */
7888 #ifdef __cplusplus
7889 extern "C"
7890 {
7891 #endif
7892 /* We use char because int might match the return type of a gcc2
7893 builtin and then its argument prototype would still apply. */
7894 char $ac_func ();
7895 /* The GNU C library defines this for functions which it implements
7896 to always fail with ENOSYS. Some functions are actually named
7897 something starting with __ and the normal name is an alias. */
7898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7899 choke me
7900 #else
7901 char (*f) () = $ac_func;
7902 #endif
7903 #ifdef __cplusplus
7904 }
7905 #endif
7906
7907 int
7908 main ()
7909 {
7910 return f != $ac_func;
7911 ;
7912 return 0;
7913 }
7914 _ACEOF
7915 rm -f conftest.$ac_objext conftest$ac_exeext
7916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7917 (eval $ac_link) 2>&5
7918 ac_status=$?
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); } &&
7921 { ac_try='test -s conftest$ac_exeext'
7922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7923 (eval $ac_try) 2>&5
7924 ac_status=$?
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); }; }; then
7927 eval "$as_ac_var=yes"
7928 else
7929 echo "$as_me: failed program was:" >&5
7930 sed 's/^/| /' conftest.$ac_ext >&5
7931
7932 eval "$as_ac_var=no"
7933 fi
7934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7935 fi
7936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7937 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7938 if test `eval echo '${'$as_ac_var'}'` = yes; then
7939 cat >>confdefs.h <<_ACEOF
7940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7941 _ACEOF
7942
7943 fi
7944 done
7945
7946 if test $ac_cv_func_pfopen = "no" ; then
7947 echo "$as_me:$LINENO: result: Using $pfopen" >&5
7948 echo "${ECHO_T}Using $pfopen" >&6
7949 LIBS="$LIBS $pfopen"
7950 fi
7951 fi
7952 echo "$as_me:$LINENO: checking for local pcap library" >&5
7953 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6
7954 libpcap=FAIL
7955 lastdir=FAIL
7956 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7957 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
7958 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
7959 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'`
7960 if test $lastdir = $basedir ; then
7961 continue;
7962 fi
7963 lastdir=$dir
7964 if test -r $dir/libpcap.a ; then
7965 libpcap=$dir/libpcap.a
7966 d=$dir
7967 fi
7968 done
7969 if test $libpcap = FAIL ; then
7970 echo "$as_me:$LINENO: result: not found" >&5
7971 echo "${ECHO_T}not found" >&6
7972 echo "$as_me:$LINENO: checking for main in -lpcap" >&5
7973 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6
7974 if test "${ac_cv_lib_pcap_main+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7976 else
7977 ac_check_lib_save_LIBS=$LIBS
7978 LIBS="-lpcap $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
7988 int
7989 main ()
7990 {
7991 main ();
7992 ;
7993 return 0;
7994 }
7995 _ACEOF
7996 rm -f conftest.$ac_objext conftest$ac_exeext
7997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7998 (eval $ac_link) 2>&5
7999 ac_status=$?
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); } &&
8002 { ac_try='test -s conftest$ac_exeext'
8003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004 (eval $ac_try) 2>&5
8005 ac_status=$?
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; }; then
8008 ac_cv_lib_pcap_main=yes
8009 else
8010 echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8012
8013 ac_cv_lib_pcap_main=no
8014 fi
8015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8016 LIBS=$ac_check_lib_save_LIBS
8017 fi
8018 echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
8019 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6
8020 if test $ac_cv_lib_pcap_main = yes; then
8021 libpcap="-lpcap"
8022 fi
8023
8024 if test $libpcap = FAIL ; then
8025 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
8026 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
8027 { (exit 1); exit 1; }; }
8028 fi
8029 echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
8030 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6
8031 if test \( ! -r /usr/local/include/pcap.h \) -a \
8032 \( ! -r /usr/include/pcap.h \); then
8033 if test -r /usr/local/include/pcap/pcap.h; then
8034 d="/usr/local/include/pcap"
8035 elif test -r /usr/include/pcap/pcap.h; then
8036 d="/usr/include/pcap"
8037 fi
8038 fi
8039 if test -z "$d" ; then
8040 echo "$as_me:$LINENO: result: not found" >&5
8041 echo "${ECHO_T}not found" >&6
8042 else
8043 V_INCLS="-I$d $V_INCLS"
8044 echo "$as_me:$LINENO: result: found -- -I$d added" >&5
8045 echo "${ECHO_T}found -- -I$d added" >&6
8046 fi
8047 else
8048 V_PCAPDEP=$libpcap
8049 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
8050 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
8051 if test -r $d/pcap.h; then
8052 V_INCLS="-I$d $V_INCLS"
8053 elif test -r $places/pcap.h; then
8054 V_INCLS="-I$places $V_INCLS"
8055 else
8056 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
8057 echo "$as_me: error: cannot find pcap.h" >&2;}
8058 { (exit see INSTALL); exit see INSTALL; }; }
8059 fi
8060 echo "$as_me:$LINENO: result: $libpcap" >&5
8061 echo "${ECHO_T}$libpcap" >&6
8062 fi
8063 LIBS="$libpcap $LIBS"
8064 case "$host_os" in
8065
8066 aix*)
8067 pseexe="/lib/pse.exp"
8068 echo "$as_me:$LINENO: checking for $pseexe" >&5
8069 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6
8070 if test -f $pseexe ; then
8071 echo "$as_me:$LINENO: result: yes" >&5
8072 echo "${ECHO_T}yes" >&6
8073 LIBS="$LIBS -I:$pseexe"
8074 fi
8075 #
8076 # We need "-lodm" and "-lcfg", as libpcap requires them on
8077 # AIX, and we just build a static libpcap.a and thus can't
8078 # arrange that when you link with libpcap you automatically
8079 # link with those libraries.
8080 #
8081 LIBS="$LIBS -lodm -lcfg"
8082 ;;
8083 esac
8084
8085 echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
8086 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6
8087 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
8088 echo $ECHO_N "(cached) $ECHO_C" >&6
8089 else
8090 cat >conftest.$ac_ext <<_ACEOF
8091 #line $LINENO "configure"
8092 /* confdefs.h. */
8093 _ACEOF
8094 cat confdefs.h >>conftest.$ac_ext
8095 cat >>conftest.$ac_ext <<_ACEOF
8096 /* end confdefs.h. */
8097 /* System header to define __stub macros and hopefully few prototypes,
8098 which can conflict with char pcap_list_datalinks (); below.
8099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8100 <limits.h> exists even on freestanding compilers. */
8101 #ifdef __STDC__
8102 # include <limits.h>
8103 #else
8104 # include <assert.h>
8105 #endif
8106 /* Override any gcc2 internal prototype to avoid an error. */
8107 #ifdef __cplusplus
8108 extern "C"
8109 {
8110 #endif
8111 /* We use char because int might match the return type of a gcc2
8112 builtin and then its argument prototype would still apply. */
8113 char pcap_list_datalinks ();
8114 /* The GNU C library defines this for functions which it implements
8115 to always fail with ENOSYS. Some functions are actually named
8116 something starting with __ and the normal name is an alias. */
8117 #if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks)
8118 choke me
8119 #else
8120 char (*f) () = pcap_list_datalinks;
8121 #endif
8122 #ifdef __cplusplus
8123 }
8124 #endif
8125
8126 int
8127 main ()
8128 {
8129 return f != pcap_list_datalinks;
8130 ;
8131 return 0;
8132 }
8133 _ACEOF
8134 rm -f conftest.$ac_objext conftest$ac_exeext
8135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8136 (eval $ac_link) 2>&5
8137 ac_status=$?
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); } &&
8140 { ac_try='test -s conftest$ac_exeext'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142 (eval $ac_try) 2>&5
8143 ac_status=$?
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; }; then
8146 ac_cv_func_pcap_list_datalinks=yes
8147 else
8148 echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8150
8151 ac_cv_func_pcap_list_datalinks=no
8152 fi
8153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8154 fi
8155 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
8156 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6
8157 if test $ac_cv_func_pcap_list_datalinks = yes; then
8158 cat >>confdefs.h <<\_ACEOF
8159 #define HAVE_PCAP_LIST_DATALINKS 1
8160 _ACEOF
8161
8162 else
8163 LIBOBJS="$LIBOBJS datalinks.$ac_objext"
8164 fi
8165
8166 echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
8167 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6
8168 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
8169 echo $ECHO_N "(cached) $ECHO_C" >&6
8170 else
8171 cat >conftest.$ac_ext <<_ACEOF
8172 #line $LINENO "configure"
8173 /* confdefs.h. */
8174 _ACEOF
8175 cat confdefs.h >>conftest.$ac_ext
8176 cat >>conftest.$ac_ext <<_ACEOF
8177 /* end confdefs.h. */
8178 /* System header to define __stub macros and hopefully few prototypes,
8179 which can conflict with char pcap_set_datalink (); below.
8180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8181 <limits.h> exists even on freestanding compilers. */
8182 #ifdef __STDC__
8183 # include <limits.h>
8184 #else
8185 # include <assert.h>
8186 #endif
8187 /* Override any gcc2 internal prototype to avoid an error. */
8188 #ifdef __cplusplus
8189 extern "C"
8190 {
8191 #endif
8192 /* We use char because int might match the return type of a gcc2
8193 builtin and then its argument prototype would still apply. */
8194 char pcap_set_datalink ();
8195 /* The GNU C library defines this for functions which it implements
8196 to always fail with ENOSYS. Some functions are actually named
8197 something starting with __ and the normal name is an alias. */
8198 #if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
8199 choke me
8200 #else
8201 char (*f) () = pcap_set_datalink;
8202 #endif
8203 #ifdef __cplusplus
8204 }
8205 #endif
8206
8207 int
8208 main ()
8209 {
8210 return f != pcap_set_datalink;
8211 ;
8212 return 0;
8213 }
8214 _ACEOF
8215 rm -f conftest.$ac_objext conftest$ac_exeext
8216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8217 (eval $ac_link) 2>&5
8218 ac_status=$?
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } &&
8221 { ac_try='test -s conftest$ac_exeext'
8222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8223 (eval $ac_try) 2>&5
8224 ac_status=$?
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; }; then
8227 ac_cv_func_pcap_set_datalink=yes
8228 else
8229 echo "$as_me: failed program was:" >&5
8230 sed 's/^/| /' conftest.$ac_ext >&5
8231
8232 ac_cv_func_pcap_set_datalink=no
8233 fi
8234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8235 fi
8236 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
8237 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6
8238 if test $ac_cv_func_pcap_set_datalink = yes; then
8239 cat >>confdefs.h <<\_ACEOF
8240 #define HAVE_PCAP_SET_DATALINK 1
8241 _ACEOF
8242
8243 fi
8244
8245 echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
8246 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6
8247 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8249 else
8250 cat >conftest.$ac_ext <<_ACEOF
8251 #line $LINENO "configure"
8252 /* confdefs.h. */
8253 _ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h. */
8257 /* System header to define __stub macros and hopefully few prototypes,
8258 which can conflict with char pcap_datalink_name_to_val (); below.
8259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8260 <limits.h> exists even on freestanding compilers. */
8261 #ifdef __STDC__
8262 # include <limits.h>
8263 #else
8264 # include <assert.h>
8265 #endif
8266 /* Override any gcc2 internal prototype to avoid an error. */
8267 #ifdef __cplusplus
8268 extern "C"
8269 {
8270 #endif
8271 /* We use char because int might match the return type of a gcc2
8272 builtin and then its argument prototype would still apply. */
8273 char pcap_datalink_name_to_val ();
8274 /* The GNU C library defines this for functions which it implements
8275 to always fail with ENOSYS. Some functions are actually named
8276 something starting with __ and the normal name is an alias. */
8277 #if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
8278 choke me
8279 #else
8280 char (*f) () = pcap_datalink_name_to_val;
8281 #endif
8282 #ifdef __cplusplus
8283 }
8284 #endif
8285
8286 int
8287 main ()
8288 {
8289 return f != pcap_datalink_name_to_val;
8290 ;
8291 return 0;
8292 }
8293 _ACEOF
8294 rm -f conftest.$ac_objext conftest$ac_exeext
8295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8296 (eval $ac_link) 2>&5
8297 ac_status=$?
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); } &&
8300 { ac_try='test -s conftest$ac_exeext'
8301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302 (eval $ac_try) 2>&5
8303 ac_status=$?
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); }; }; then
8306 ac_cv_func_pcap_datalink_name_to_val=yes
8307 else
8308 echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8310
8311 ac_cv_func_pcap_datalink_name_to_val=no
8312 fi
8313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8314 fi
8315 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
8316 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6
8317 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
8318
8319 cat >>confdefs.h <<\_ACEOF
8320 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
8321 _ACEOF
8322
8323 echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
8324 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
8325 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
8326 echo $ECHO_N "(cached) $ECHO_C" >&6
8327 else
8328 cat >conftest.$ac_ext <<_ACEOF
8329 #line $LINENO "configure"
8330 /* confdefs.h. */
8331 _ACEOF
8332 cat confdefs.h >>conftest.$ac_ext
8333 cat >>conftest.$ac_ext <<_ACEOF
8334 /* end confdefs.h. */
8335 /* System header to define __stub macros and hopefully few prototypes,
8336 which can conflict with char pcap_datalink_val_to_description (); below.
8337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8338 <limits.h> exists even on freestanding compilers. */
8339 #ifdef __STDC__
8340 # include <limits.h>
8341 #else
8342 # include <assert.h>
8343 #endif
8344 /* Override any gcc2 internal prototype to avoid an error. */
8345 #ifdef __cplusplus
8346 extern "C"
8347 {
8348 #endif
8349 /* We use char because int might match the return type of a gcc2
8350 builtin and then its argument prototype would still apply. */
8351 char pcap_datalink_val_to_description ();
8352 /* The GNU C library defines this for functions which it implements
8353 to always fail with ENOSYS. Some functions are actually named
8354 something starting with __ and the normal name is an alias. */
8355 #if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description)
8356 choke me
8357 #else
8358 char (*f) () = pcap_datalink_val_to_description;
8359 #endif
8360 #ifdef __cplusplus
8361 }
8362 #endif
8363
8364 int
8365 main ()
8366 {
8367 return f != pcap_datalink_val_to_description;
8368 ;
8369 return 0;
8370 }
8371 _ACEOF
8372 rm -f conftest.$ac_objext conftest$ac_exeext
8373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8374 (eval $ac_link) 2>&5
8375 ac_status=$?
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); } &&
8378 { ac_try='test -s conftest$ac_exeext'
8379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380 (eval $ac_try) 2>&5
8381 ac_status=$?
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); }; }; then
8384 ac_cv_func_pcap_datalink_val_to_description=yes
8385 else
8386 echo "$as_me: failed program was:" >&5
8387 sed 's/^/| /' conftest.$ac_ext >&5
8388
8389 ac_cv_func_pcap_datalink_val_to_description=no
8390 fi
8391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8392 fi
8393 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
8394 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6
8395 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
8396 cat >>confdefs.h <<\_ACEOF
8397 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
8398 _ACEOF
8399
8400 else
8401 LIBOBJS="$LIBOBJS dlnames.$ac_objext"
8402 fi
8403
8404
8405 else
8406 LIBOBJS="$LIBOBJS dlnames.$ac_objext"
8407 fi
8408
8409
8410
8411 for ac_func in pcap_breakloop
8412 do
8413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8414 echo "$as_me:$LINENO: checking for $ac_func" >&5
8415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8416 if eval "test \"\${$as_ac_var+set}\" = set"; then
8417 echo $ECHO_N "(cached) $ECHO_C" >&6
8418 else
8419 cat >conftest.$ac_ext <<_ACEOF
8420 #line $LINENO "configure"
8421 /* confdefs.h. */
8422 _ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h. */
8426 /* System header to define __stub macros and hopefully few prototypes,
8427 which can conflict with char $ac_func (); below.
8428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8429 <limits.h> exists even on freestanding compilers. */
8430 #ifdef __STDC__
8431 # include <limits.h>
8432 #else
8433 # include <assert.h>
8434 #endif
8435 /* Override any gcc2 internal prototype to avoid an error. */
8436 #ifdef __cplusplus
8437 extern "C"
8438 {
8439 #endif
8440 /* We use char because int might match the return type of a gcc2
8441 builtin and then its argument prototype would still apply. */
8442 char $ac_func ();
8443 /* The GNU C library defines this for functions which it implements
8444 to always fail with ENOSYS. Some functions are actually named
8445 something starting with __ and the normal name is an alias. */
8446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8447 choke me
8448 #else
8449 char (*f) () = $ac_func;
8450 #endif
8451 #ifdef __cplusplus
8452 }
8453 #endif
8454
8455 int
8456 main ()
8457 {
8458 return f != $ac_func;
8459 ;
8460 return 0;
8461 }
8462 _ACEOF
8463 rm -f conftest.$ac_objext conftest$ac_exeext
8464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8465 (eval $ac_link) 2>&5
8466 ac_status=$?
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } &&
8469 { ac_try='test -s conftest$ac_exeext'
8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471 (eval $ac_try) 2>&5
8472 ac_status=$?
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; }; then
8475 eval "$as_ac_var=yes"
8476 else
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8479
8480 eval "$as_ac_var=no"
8481 fi
8482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8483 fi
8484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8485 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8486 if test `eval echo '${'$as_ac_var'}'` = yes; then
8487 cat >>confdefs.h <<_ACEOF
8488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8489 _ACEOF
8490
8491 fi
8492 done
8493
8494
8495
8496 #
8497 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8498 # libraries (e.g., "-lsocket -lnsl" on Solaris).
8499 #
8500 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8501 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
8502 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
8503 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
8504 # it does not ship with a libc symbol "inet_ntop()", it ships with
8505 # "_inet_ntop()", and has a #define macro in one of the system headers
8506 # to rename it.
8507 #
8508 echo "$as_me:$LINENO: checking for inet_ntop" >&5
8509 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
8510 cat >conftest.$ac_ext <<_ACEOF
8511 #line $LINENO "configure"
8512 /* confdefs.h. */
8513 _ACEOF
8514 cat confdefs.h >>conftest.$ac_ext
8515 cat >>conftest.$ac_ext <<_ACEOF
8516 /* end confdefs.h. */
8517 #include <sys/types.h>
8518 #include <sys/socket.h>
8519 #include <netinet/in.h>
8520 #include <arpa/inet.h>
8521 int
8522 main ()
8523 {
8524 char src[4], dst[128];
8525 inet_ntop(AF_INET, src, dst, sizeof(dst));
8526 ;
8527 return 0;
8528 }
8529 _ACEOF
8530 rm -f conftest.$ac_objext conftest$ac_exeext
8531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8532 (eval $ac_link) 2>&5
8533 ac_status=$?
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } &&
8536 { ac_try='test -s conftest$ac_exeext'
8537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538 (eval $ac_try) 2>&5
8539 ac_status=$?
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; }; then
8542 echo "$as_me:$LINENO: result: yes" >&5
8543 echo "${ECHO_T}yes" >&6
8544 else
8545 echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8547
8548 echo "$as_me:$LINENO: result: no" >&5
8549 echo "${ECHO_T}no" >&6
8550 LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
8551 fi
8552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8553 echo "$as_me:$LINENO: checking for inet_pton" >&5
8554 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
8555 cat >conftest.$ac_ext <<_ACEOF
8556 #line $LINENO "configure"
8557 /* confdefs.h. */
8558 _ACEOF
8559 cat confdefs.h >>conftest.$ac_ext
8560 cat >>conftest.$ac_ext <<_ACEOF
8561 /* end confdefs.h. */
8562 #include <sys/types.h>
8563 #include <sys/socket.h>
8564 #include <netinet/in.h>
8565 #include <arpa/inet.h>
8566 int
8567 main ()
8568 {
8569 char src[128], dst[4];
8570 inet_pton(AF_INET, src, dst);
8571 ;
8572 return 0;
8573 }
8574 _ACEOF
8575 rm -f conftest.$ac_objext conftest$ac_exeext
8576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8577 (eval $ac_link) 2>&5
8578 ac_status=$?
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } &&
8581 { ac_try='test -s conftest$ac_exeext'
8582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8583 (eval $ac_try) 2>&5
8584 ac_status=$?
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; }; then
8587 echo "$as_me:$LINENO: result: yes" >&5
8588 echo "${ECHO_T}yes" >&6
8589 else
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8592
8593 echo "$as_me:$LINENO: result: no" >&5
8594 echo "${ECHO_T}no" >&6
8595 LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
8596 fi
8597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8598 echo "$as_me:$LINENO: checking for inet_aton" >&5
8599 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
8600 cat >conftest.$ac_ext <<_ACEOF
8601 #line $LINENO "configure"
8602 /* confdefs.h. */
8603 _ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h. */
8607 #include <sys/types.h>
8608 #include <netinet/in.h>
8609 #include <arpa/inet.h>
8610 int
8611 main ()
8612 {
8613 char src[128];
8614 struct in_addr dst;
8615 inet_aton(src, &dst);
8616 ;
8617 return 0;
8618 }
8619 _ACEOF
8620 rm -f conftest.$ac_objext conftest$ac_exeext
8621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8622 (eval $ac_link) 2>&5
8623 ac_status=$?
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); } &&
8626 { ac_try='test -s conftest$ac_exeext'
8627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628 (eval $ac_try) 2>&5
8629 ac_status=$?
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); }; }; then
8632 echo "$as_me:$LINENO: result: yes" >&5
8633 echo "${ECHO_T}yes" >&6
8634 else
8635 echo "$as_me: failed program was:" >&5
8636 sed 's/^/| /' conftest.$ac_ext >&5
8637
8638 echo "$as_me:$LINENO: result: no" >&5
8639 echo "${ECHO_T}no" >&6
8640 LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
8641 fi
8642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8643
8644
8645 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
8646 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
8647 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
8648 echo $ECHO_N "(cached) $ECHO_C" >&6
8649 else
8650 cat >conftest.$ac_ext <<_ACEOF
8651 #line $LINENO "configure"
8652 /* confdefs.h. */
8653 _ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8657
8658 # include <sys/types.h>
8659 # include <sys/socket.h>
8660 int
8661 main ()
8662 {
8663 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
8664 ;
8665 return 0;
8666 }
8667 _ACEOF
8668 rm -f conftest.$ac_objext
8669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8670 (eval $ac_compile) 2>&5
8671 ac_status=$?
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } &&
8674 { ac_try='test -s conftest.$ac_objext'
8675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 (eval $ac_try) 2>&5
8677 ac_status=$?
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); }; }; then
8680 ac_cv_sockaddr_has_sa_len=yes
8681 else
8682 echo "$as_me: failed program was:" >&5
8683 sed 's/^/| /' conftest.$ac_ext >&5
8684
8685 ac_cv_sockaddr_has_sa_len=no
8686 fi
8687 rm -f conftest.$ac_objext conftest.$ac_ext
8688 fi
8689
8690 echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
8691 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6
8692 if test $ac_cv_sockaddr_has_sa_len = yes ; then
8693 cat >>confdefs.h <<\_ACEOF
8694 #define HAVE_SOCKADDR_SA_LEN 1
8695 _ACEOF
8696
8697 fi
8698
8699 if test "$ac_cv_sockaddr_has_sa_len" = no; then
8700 missing_includes=yes
8701 fi
8702
8703
8704
8705
8706 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
8707 do
8708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8709 echo "$as_me:$LINENO: checking for $ac_func" >&5
8710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8711 if eval "test \"\${$as_ac_var+set}\" = set"; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8713 else
8714 cat >conftest.$ac_ext <<_ACEOF
8715 #line $LINENO "configure"
8716 /* confdefs.h. */
8717 _ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h. */
8721 /* System header to define __stub macros and hopefully few prototypes,
8722 which can conflict with char $ac_func (); below.
8723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8724 <limits.h> exists even on freestanding compilers. */
8725 #ifdef __STDC__
8726 # include <limits.h>
8727 #else
8728 # include <assert.h>
8729 #endif
8730 /* Override any gcc2 internal prototype to avoid an error. */
8731 #ifdef __cplusplus
8732 extern "C"
8733 {
8734 #endif
8735 /* We use char because int might match the return type of a gcc2
8736 builtin and then its argument prototype would still apply. */
8737 char $ac_func ();
8738 /* The GNU C library defines this for functions which it implements
8739 to always fail with ENOSYS. Some functions are actually named
8740 something starting with __ and the normal name is an alias. */
8741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8742 choke me
8743 #else
8744 char (*f) () = $ac_func;
8745 #endif
8746 #ifdef __cplusplus
8747 }
8748 #endif
8749
8750 int
8751 main ()
8752 {
8753 return f != $ac_func;
8754 ;
8755 return 0;
8756 }
8757 _ACEOF
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8760 (eval $ac_link) 2>&5
8761 ac_status=$?
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } &&
8764 { ac_try='test -s conftest$ac_exeext'
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 (eval $ac_try) 2>&5
8767 ac_status=$?
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; }; then
8770 eval "$as_ac_var=yes"
8771 else
8772 echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8774
8775 eval "$as_ac_var=no"
8776 fi
8777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8778 fi
8779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8780 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8781 if test `eval echo '${'$as_ac_var'}'` = yes; then
8782 cat >>confdefs.h <<_ACEOF
8783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8784 _ACEOF
8785
8786 fi
8787 done
8788
8789 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
8790 echo "$as_me:$LINENO: checking for pcap_if_t" >&5
8791 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6
8792 if test "${ac_cv_type_pcap_if_t+set}" = set; then
8793 echo $ECHO_N "(cached) $ECHO_C" >&6
8794 else
8795 cat >conftest.$ac_ext <<_ACEOF
8796 #line $LINENO "configure"
8797 /* confdefs.h. */
8798 _ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h. */
8802 #include <pcap.h>
8803
8804 int
8805 main ()
8806 {
8807 if ((pcap_if_t *) 0)
8808 return 0;
8809 if (sizeof (pcap_if_t))
8810 return 0;
8811 ;
8812 return 0;
8813 }
8814 _ACEOF
8815 rm -f conftest.$ac_objext
8816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8817 (eval $ac_compile) 2>&5
8818 ac_status=$?
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); } &&
8821 { ac_try='test -s conftest.$ac_objext'
8822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8823 (eval $ac_try) 2>&5
8824 ac_status=$?
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); }; }; then
8827 ac_cv_type_pcap_if_t=yes
8828 else
8829 echo "$as_me: failed program was:" >&5
8830 sed 's/^/| /' conftest.$ac_ext >&5
8831
8832 ac_cv_type_pcap_if_t=no
8833 fi
8834 rm -f conftest.$ac_objext conftest.$ac_ext
8835 fi
8836 echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
8837 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6
8838 if test $ac_cv_type_pcap_if_t = yes; then
8839
8840 cat >>confdefs.h <<_ACEOF
8841 #define HAVE_PCAP_IF_T 1
8842 _ACEOF
8843
8844
8845 fi
8846
8847 fi
8848 if test $ac_cv_func_pcap_lib_version = "no" ; then
8849 echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
8850 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
8851 cat >conftest.$ac_ext <<_ACEOF
8852 #line $LINENO "configure"
8853 /* confdefs.h. */
8854 _ACEOF
8855 cat confdefs.h >>conftest.$ac_ext
8856 cat >>conftest.$ac_ext <<_ACEOF
8857 /* end confdefs.h. */
8858
8859 int
8860 main ()
8861 {
8862
8863 char *
8864 return_pcap_version(void)
8865 {
8866 extern char pcap_version[];
8867
8868 return pcap_version;
8869 }
8870
8871 ;
8872 return 0;
8873 }
8874 _ACEOF
8875 rm -f conftest.$ac_objext conftest$ac_exeext
8876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8877 (eval $ac_link) 2>&5
8878 ac_status=$?
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); } &&
8881 { ac_try='test -s conftest$ac_exeext'
8882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8883 (eval $ac_try) 2>&5
8884 ac_status=$?
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); }; }; then
8887 ac_lbl_cv_pcap_version_defined=yes
8888 else
8889 echo "$as_me: failed program was:" >&5
8890 sed 's/^/| /' conftest.$ac_ext >&5
8891
8892 ac_lbl_cv_pcap_version_defined=no
8893 fi
8894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8895 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
8896 echo "$as_me:$LINENO: result: yes" >&5
8897 echo "${ECHO_T}yes" >&6
8898 cat >>confdefs.h <<\_ACEOF
8899 #define HAVE_PCAP_VERSION 1
8900 _ACEOF
8901
8902 else
8903 echo "$as_me:$LINENO: result: no" >&5
8904 echo "${ECHO_T}no" >&6
8905 fi
8906 fi
8907 echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
8908 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6
8909 cat >conftest.$ac_ext <<_ACEOF
8910 #line $LINENO "configure"
8911 /* confdefs.h. */
8912 _ACEOF
8913 cat confdefs.h >>conftest.$ac_ext
8914 cat >>conftest.$ac_ext <<_ACEOF
8915 /* end confdefs.h. */
8916
8917 int
8918 main ()
8919 {
8920
8921 int
8922 return_pcap_debug(void)
8923 {
8924 extern int pcap_debug;
8925
8926 return pcap_debug;
8927 }
8928
8929 ;
8930 return 0;
8931 }
8932 _ACEOF
8933 rm -f conftest.$ac_objext conftest$ac_exeext
8934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8935 (eval $ac_link) 2>&5
8936 ac_status=$?
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); } &&
8939 { ac_try='test -s conftest$ac_exeext'
8940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8941 (eval $ac_try) 2>&5
8942 ac_status=$?
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); }; }; then
8945 ac_lbl_cv_pcap_debug_defined=yes
8946 else
8947 echo "$as_me: failed program was:" >&5
8948 sed 's/^/| /' conftest.$ac_ext >&5
8949
8950 ac_lbl_cv_pcap_debug_defined=no
8951 fi
8952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8953 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
8954 echo "$as_me:$LINENO: result: yes" >&5
8955 echo "${ECHO_T}yes" >&6
8956 cat >>confdefs.h <<\_ACEOF
8957 #define HAVE_PCAP_DEBUG 1
8958 _ACEOF
8959
8960 else
8961 echo "$as_me:$LINENO: result: no" >&5
8962 echo "${ECHO_T}no" >&6
8963 #
8964 # OK, what about "yydebug"?
8965 #
8966 echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
8967 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6
8968 cat >conftest.$ac_ext <<_ACEOF
8969 #line $LINENO "configure"
8970 /* confdefs.h. */
8971 _ACEOF
8972 cat confdefs.h >>conftest.$ac_ext
8973 cat >>conftest.$ac_ext <<_ACEOF
8974 /* end confdefs.h. */
8975
8976 int
8977 main ()
8978 {
8979
8980 int
8981 return_yydebug(void)
8982 {
8983 extern int yydebug;
8984
8985 return yydebug;
8986 }
8987
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 ac_lbl_cv_yydebug_defined=yes
9005 else
9006 echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9008
9009 ac_lbl_cv_yydebug_defined=no
9010 fi
9011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9012 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
9013 echo "$as_me:$LINENO: result: yes" >&5
9014 echo "${ECHO_T}yes" >&6
9015 cat >>confdefs.h <<\_ACEOF
9016 #define HAVE_YYDEBUG 1
9017 _ACEOF
9018
9019 else
9020 echo "$as_me:$LINENO: result: no" >&5
9021 echo "${ECHO_T}no" >&6
9022 fi
9023 fi
9024
9025 for ac_func in bpf_dump
9026 do
9027 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9028 echo "$as_me:$LINENO: checking for $ac_func" >&5
9029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9030 if eval "test \"\${$as_ac_var+set}\" = set"; then
9031 echo $ECHO_N "(cached) $ECHO_C" >&6
9032 else
9033 cat >conftest.$ac_ext <<_ACEOF
9034 #line $LINENO "configure"
9035 /* confdefs.h. */
9036 _ACEOF
9037 cat confdefs.h >>conftest.$ac_ext
9038 cat >>conftest.$ac_ext <<_ACEOF
9039 /* end confdefs.h. */
9040 /* System header to define __stub macros and hopefully few prototypes,
9041 which can conflict with char $ac_func (); below.
9042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9043 <limits.h> exists even on freestanding compilers. */
9044 #ifdef __STDC__
9045 # include <limits.h>
9046 #else
9047 # include <assert.h>
9048 #endif
9049 /* Override any gcc2 internal prototype to avoid an error. */
9050 #ifdef __cplusplus
9051 extern "C"
9052 {
9053 #endif
9054 /* We use char because int might match the return type of a gcc2
9055 builtin and then its argument prototype would still apply. */
9056 char $ac_func ();
9057 /* The GNU C library defines this for functions which it implements
9058 to always fail with ENOSYS. Some functions are actually named
9059 something starting with __ and the normal name is an alias. */
9060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9061 choke me
9062 #else
9063 char (*f) () = $ac_func;
9064 #endif
9065 #ifdef __cplusplus
9066 }
9067 #endif
9068
9069 int
9070 main ()
9071 {
9072 return f != $ac_func;
9073 ;
9074 return 0;
9075 }
9076 _ACEOF
9077 rm -f conftest.$ac_objext conftest$ac_exeext
9078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9079 (eval $ac_link) 2>&5
9080 ac_status=$?
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); } &&
9083 { ac_try='test -s conftest$ac_exeext'
9084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9085 (eval $ac_try) 2>&5
9086 ac_status=$?
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); }; }; then
9089 eval "$as_ac_var=yes"
9090 else
9091 echo "$as_me: failed program was:" >&5
9092 sed 's/^/| /' conftest.$ac_ext >&5
9093
9094 eval "$as_ac_var=no"
9095 fi
9096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9097 fi
9098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9099 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9100 if test `eval echo '${'$as_ac_var'}'` = yes; then
9101 cat >>confdefs.h <<_ACEOF
9102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9103 _ACEOF
9104
9105 else
9106 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9107 fi
9108 done
9109
9110
9111 V_GROUP=0
9112 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
9113 V_GROUP=wheel
9114 fi
9115 case "$host_os" in
9116
9117 aix*)
9118 cat >>confdefs.h <<\_ACEOF
9119 #define _SUN 1
9120 _ACEOF
9121
9122 ;;
9123
9124 irix*)
9125 V_GROUP=sys
9126 ;;
9127
9128 osf*)
9129 V_GROUP=system
9130 ;;
9131
9132 solaris*)
9133 V_GROUP=sys
9134 ;;
9135 esac
9136
9137 if test -f /dev/bpf0 ; then
9138 V_GROUP=bpf
9139 fi
9140
9141 echo "$as_me:$LINENO: checking for int8_t using $CC" >&5
9142 echo $ECHO_N "checking for int8_t using $CC... $ECHO_C" >&6
9143 if test "${ac_cv_lbl_have_int8_t+set}" = set; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9145 else
9146 cat >conftest.$ac_ext <<_ACEOF
9147 #line $LINENO "configure"
9148 /* confdefs.h. */
9149 _ACEOF
9150 cat confdefs.h >>conftest.$ac_ext
9151 cat >>conftest.$ac_ext <<_ACEOF
9152 /* end confdefs.h. */
9153
9154 # include "confdefs.h"
9155 # include <sys/types.h>
9156 # if STDC_HEADERS
9157 # include <stdlib.h>
9158 # include <stddef.h>
9159 # endif
9160 int
9161 main ()
9162 {
9163 int8_t i
9164 ;
9165 return 0;
9166 }
9167 _ACEOF
9168 rm -f conftest.$ac_objext
9169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9170 (eval $ac_compile) 2>&5
9171 ac_status=$?
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); } &&
9174 { ac_try='test -s conftest.$ac_objext'
9175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9176 (eval $ac_try) 2>&5
9177 ac_status=$?
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); }; }; then
9180 ac_cv_lbl_have_int8_t=yes
9181 else
9182 echo "$as_me: failed program was:" >&5
9183 sed 's/^/| /' conftest.$ac_ext >&5
9184
9185 ac_cv_lbl_have_int8_t=no
9186 fi
9187 rm -f conftest.$ac_objext conftest.$ac_ext
9188 fi
9189
9190 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int8_t" >&5
9191 echo "${ECHO_T}$ac_cv_lbl_have_int8_t" >&6
9192 if test $ac_cv_lbl_have_int8_t = no ; then
9193 cat >>confdefs.h <<\_ACEOF
9194 #define int8_t signed char
9195 _ACEOF
9196
9197 fi
9198 echo "$as_me:$LINENO: checking for u_int8_t using $CC" >&5
9199 echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6
9200 if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9202 else
9203 cat >conftest.$ac_ext <<_ACEOF
9204 #line $LINENO "configure"
9205 /* confdefs.h. */
9206 _ACEOF
9207 cat confdefs.h >>conftest.$ac_ext
9208 cat >>conftest.$ac_ext <<_ACEOF
9209 /* end confdefs.h. */
9210
9211 # include "confdefs.h"
9212 # include <sys/types.h>
9213 # if STDC_HEADERS
9214 # include <stdlib.h>
9215 # include <stddef.h>
9216 # endif
9217 int
9218 main ()
9219 {
9220 u_int8_t i
9221 ;
9222 return 0;
9223 }
9224 _ACEOF
9225 rm -f conftest.$ac_objext
9226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9227 (eval $ac_compile) 2>&5
9228 ac_status=$?
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); } &&
9231 { ac_try='test -s conftest.$ac_objext'
9232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9233 (eval $ac_try) 2>&5
9234 ac_status=$?
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); }; }; then
9237 ac_cv_lbl_have_u_int8_t=yes
9238 else
9239 echo "$as_me: failed program was:" >&5
9240 sed 's/^/| /' conftest.$ac_ext >&5
9241
9242 ac_cv_lbl_have_u_int8_t=no
9243 fi
9244 rm -f conftest.$ac_objext conftest.$ac_ext
9245 fi
9246
9247 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int8_t" >&5
9248 echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6
9249 if test $ac_cv_lbl_have_u_int8_t = no ; then
9250 cat >>confdefs.h <<\_ACEOF
9251 #define u_int8_t u_char
9252 _ACEOF
9253
9254 fi
9255 echo "$as_me:$LINENO: checking for int16_t using $CC" >&5
9256 echo $ECHO_N "checking for int16_t using $CC... $ECHO_C" >&6
9257 if test "${ac_cv_lbl_have_int16_t+set}" = set; then
9258 echo $ECHO_N "(cached) $ECHO_C" >&6
9259 else
9260 cat >conftest.$ac_ext <<_ACEOF
9261 #line $LINENO "configure"
9262 /* confdefs.h. */
9263 _ACEOF
9264 cat confdefs.h >>conftest.$ac_ext
9265 cat >>conftest.$ac_ext <<_ACEOF
9266 /* end confdefs.h. */
9267
9268 # include "confdefs.h"
9269 # include <sys/types.h>
9270 # if STDC_HEADERS
9271 # include <stdlib.h>
9272 # include <stddef.h>
9273 # endif
9274 int
9275 main ()
9276 {
9277 int16_t i
9278 ;
9279 return 0;
9280 }
9281 _ACEOF
9282 rm -f conftest.$ac_objext
9283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9284 (eval $ac_compile) 2>&5
9285 ac_status=$?
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); } &&
9288 { ac_try='test -s conftest.$ac_objext'
9289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290 (eval $ac_try) 2>&5
9291 ac_status=$?
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; }; then
9294 ac_cv_lbl_have_int16_t=yes
9295 else
9296 echo "$as_me: failed program was:" >&5
9297 sed 's/^/| /' conftest.$ac_ext >&5
9298
9299 ac_cv_lbl_have_int16_t=no
9300 fi
9301 rm -f conftest.$ac_objext conftest.$ac_ext
9302 fi
9303
9304 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int16_t" >&5
9305 echo "${ECHO_T}$ac_cv_lbl_have_int16_t" >&6
9306 if test $ac_cv_lbl_have_int16_t = no ; then
9307 cat >>confdefs.h <<\_ACEOF
9308 #define int16_t short
9309 _ACEOF
9310
9311 fi
9312 echo "$as_me:$LINENO: checking for u_int16_t using $CC" >&5
9313 echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6
9314 if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then
9315 echo $ECHO_N "(cached) $ECHO_C" >&6
9316 else
9317 cat >conftest.$ac_ext <<_ACEOF
9318 #line $LINENO "configure"
9319 /* confdefs.h. */
9320 _ACEOF
9321 cat confdefs.h >>conftest.$ac_ext
9322 cat >>conftest.$ac_ext <<_ACEOF
9323 /* end confdefs.h. */
9324
9325 # include "confdefs.h"
9326 # include <sys/types.h>
9327 # if STDC_HEADERS
9328 # include <stdlib.h>
9329 # include <stddef.h>
9330 # endif
9331 int
9332 main ()
9333 {
9334 u_int16_t i
9335 ;
9336 return 0;
9337 }
9338 _ACEOF
9339 rm -f conftest.$ac_objext
9340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9341 (eval $ac_compile) 2>&5
9342 ac_status=$?
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } &&
9345 { ac_try='test -s conftest.$ac_objext'
9346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9347 (eval $ac_try) 2>&5
9348 ac_status=$?
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); }; }; then
9351 ac_cv_lbl_have_u_int16_t=yes
9352 else
9353 echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.$ac_ext >&5
9355
9356 ac_cv_lbl_have_u_int16_t=no
9357 fi
9358 rm -f conftest.$ac_objext conftest.$ac_ext
9359 fi
9360
9361 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int16_t" >&5
9362 echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6
9363 if test $ac_cv_lbl_have_u_int16_t = no ; then
9364 cat >>confdefs.h <<\_ACEOF
9365 #define u_int16_t u_short
9366 _ACEOF
9367
9368 fi
9369 echo "$as_me:$LINENO: checking for int32_t using $CC" >&5
9370 echo $ECHO_N "checking for int32_t using $CC... $ECHO_C" >&6
9371 if test "${ac_cv_lbl_have_int32_t+set}" = set; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
9373 else
9374 cat >conftest.$ac_ext <<_ACEOF
9375 #line $LINENO "configure"
9376 /* confdefs.h. */
9377 _ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9381
9382 # include "confdefs.h"
9383 # include <sys/types.h>
9384 # if STDC_HEADERS
9385 # include <stdlib.h>
9386 # include <stddef.h>
9387 # endif
9388 int
9389 main ()
9390 {
9391 int32_t i
9392 ;
9393 return 0;
9394 }
9395 _ACEOF
9396 rm -f conftest.$ac_objext
9397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9398 (eval $ac_compile) 2>&5
9399 ac_status=$?
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } &&
9402 { ac_try='test -s conftest.$ac_objext'
9403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404 (eval $ac_try) 2>&5
9405 ac_status=$?
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); }; }; then
9408 ac_cv_lbl_have_int32_t=yes
9409 else
9410 echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9412
9413 ac_cv_lbl_have_int32_t=no
9414 fi
9415 rm -f conftest.$ac_objext conftest.$ac_ext
9416 fi
9417
9418 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int32_t" >&5
9419 echo "${ECHO_T}$ac_cv_lbl_have_int32_t" >&6
9420 if test $ac_cv_lbl_have_int32_t = no ; then
9421 cat >>confdefs.h <<\_ACEOF
9422 #define int32_t int
9423 _ACEOF
9424
9425 fi
9426 echo "$as_me:$LINENO: checking for u_int32_t using $CC" >&5
9427 echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6
9428 if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then
9429 echo $ECHO_N "(cached) $ECHO_C" >&6
9430 else
9431 cat >conftest.$ac_ext <<_ACEOF
9432 #line $LINENO "configure"
9433 /* confdefs.h. */
9434 _ACEOF
9435 cat confdefs.h >>conftest.$ac_ext
9436 cat >>conftest.$ac_ext <<_ACEOF
9437 /* end confdefs.h. */
9438
9439 # include "confdefs.h"
9440 # include <sys/types.h>
9441 # if STDC_HEADERS
9442 # include <stdlib.h>
9443 # include <stddef.h>
9444 # endif
9445 int
9446 main ()
9447 {
9448 u_int32_t i
9449 ;
9450 return 0;
9451 }
9452 _ACEOF
9453 rm -f conftest.$ac_objext
9454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9455 (eval $ac_compile) 2>&5
9456 ac_status=$?
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); } &&
9459 { ac_try='test -s conftest.$ac_objext'
9460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461 (eval $ac_try) 2>&5
9462 ac_status=$?
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; }; then
9465 ac_cv_lbl_have_u_int32_t=yes
9466 else
9467 echo "$as_me: failed program was:" >&5
9468 sed 's/^/| /' conftest.$ac_ext >&5
9469
9470 ac_cv_lbl_have_u_int32_t=no
9471 fi
9472 rm -f conftest.$ac_objext conftest.$ac_ext
9473 fi
9474
9475 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5
9476 echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6
9477 if test $ac_cv_lbl_have_u_int32_t = no ; then
9478 cat >>confdefs.h <<\_ACEOF
9479 #define u_int32_t u_int
9480 _ACEOF
9481
9482 fi
9483
9484 rm -f os-proto.h
9485 if test "${LBL_CFLAGS+set}" = set; then
9486 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
9487 fi
9488 if test -f .devel ; then
9489 if test "$GCC" = yes ; then
9490 if test "${LBL_CFLAGS+set}" != set; then
9491 if test "$ac_cv_prog_cc_g" = yes ; then
9492 V_CCOPT="-g $V_CCOPT"
9493 fi
9494 V_CCOPT="$V_CCOPT -Wall"
9495 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
9496 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W"
9497 fi
9498 fi
9499 else
9500 case "$host_os" in
9501
9502 irix6*)
9503 V_CCOPT="$V_CCOPT -n32"
9504 ;;
9505
9506 *)
9507 ;;
9508 esac
9509 fi
9510 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
9511 name="lbl/os-$os.h"
9512 if test -f $name ; then
9513 ln -s $name os-proto.h
9514 cat >>confdefs.h <<\_ACEOF
9515 #define HAVE_OS_PROTO_H 1
9516 _ACEOF
9517
9518 else
9519 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
9520 echo "$as_me: WARNING: can't find $name" >&2;}
9521 fi
9522 fi
9523
9524 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
9525 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
9526 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
9527 echo $ECHO_N "(cached) $ECHO_C" >&6
9528 else
9529 cat >conftest.$ac_ext <<_ACEOF
9530 #line $LINENO "configure"
9531 /* confdefs.h. */
9532 _ACEOF
9533 cat confdefs.h >>conftest.$ac_ext
9534 cat >>conftest.$ac_ext <<_ACEOF
9535 /* end confdefs.h. */
9536
9537 # include <sys/types.h>
9538 # include <sys/socket.h>
9539 int
9540 main ()
9541 {
9542 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9543 ;
9544 return 0;
9545 }
9546 _ACEOF
9547 rm -f conftest.$ac_objext
9548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9549 (eval $ac_compile) 2>&5
9550 ac_status=$?
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); } &&
9553 { ac_try='test -s conftest.$ac_objext'
9554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9555 (eval $ac_try) 2>&5
9556 ac_status=$?
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); }; }; then
9559 ac_cv_lbl_sockaddr_has_sa_len=yes
9560 else
9561 echo "$as_me: failed program was:" >&5
9562 sed 's/^/| /' conftest.$ac_ext >&5
9563
9564 ac_cv_lbl_sockaddr_has_sa_len=no
9565 fi
9566 rm -f conftest.$ac_objext conftest.$ac_ext
9567 fi
9568
9569 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
9570 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
9571 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
9572 cat >>confdefs.h <<\_ACEOF
9573 #define HAVE_SOCKADDR_SA_LEN 1
9574 _ACEOF
9575
9576 fi
9577
9578 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
9579 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
9580 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9582 else
9583 case "$host_cpu" in
9584
9585 #
9586 # These are CPU types where:
9587 #
9588 # the CPU faults on an unaligned access, but at least some
9589 # OSes that support that CPU catch the fault and simulate
9590 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
9591 # the simulation is slow, so we don't want to use it;
9592 #
9593 # the CPU, I infer (from the old
9594 #
9595 # XXX: should also check that they don't do weird things (like on arm)
9596 #
9597 # comment) doesn't fault on unaligned accesses, but doesn't
9598 # do a normal unaligned fetch, either (e.g., presumably, ARM);
9599 #
9600 # for whatever reason, the test program doesn't work
9601 # (this has been claimed to be the case for several of those
9602 # CPUs - I don't know what the problem is; the problem
9603 # was reported as "the test program dumps core" for SuperH,
9604 # but that's what the test program is *supposed* to do -
9605 # it dumps core before it writes anything, so the test
9606 # for an empty output file should find an empty output
9607 # file and conclude that unaligned accesses don't work).
9608 #
9609 # This run-time test won't work if you're cross-compiling, so
9610 # in order to support cross-compiling for a particular CPU,
9611 # we have to wire in the list of CPU types anyway, as far as
9612 # I know, so perhaps we should just have a set of CPUs on
9613 # which we know it doesn't work, a set of CPUs on which we
9614 # know it does work, and have the script just fail on other
9615 # cpu types and update it when such a failure occurs.
9616 #
9617 alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1)
9618 ac_cv_lbl_unaligned_fail=yes
9619 ;;
9620
9621 *)
9622 cat >conftest.c <<EOF
9623 # include <sys/types.h>
9624 # include <sys/wait.h>
9625 # include <stdio.h>
9626 unsigned char a[5] = { 1, 2, 3, 4, 5 };
9627 main() {
9628 unsigned int i;
9629 pid_t pid;
9630 int status;
9631 /* avoid "core dumped" message */
9632 pid = fork();
9633 if (pid < 0)
9634 exit(2);
9635 if (pid > 0) {
9636 /* parent */
9637 pid = waitpid(pid, &status, 0);
9638 if (pid < 0)
9639 exit(3);
9640 exit(!WIFEXITED(status));
9641 }
9642 /* child */
9643 i = *(unsigned int *)&a[1];
9644 printf("%d\n", i);
9645 exit(0);
9646 }
9647 EOF
9648 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
9649 conftest.c $LIBS >/dev/null 2>&1
9650 if test ! -x conftest ; then
9651 ac_cv_lbl_unaligned_fail=yes
9652 else
9653 ./conftest >conftest.out
9654 if test ! -s conftest.out ; then
9655 ac_cv_lbl_unaligned_fail=yes
9656 else
9657 ac_cv_lbl_unaligned_fail=no
9658 fi
9659 fi
9660 rm -f conftest* core core.conftest
9661 ;;
9662 esac
9663 fi
9664
9665 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
9666 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
9667 if test $ac_cv_lbl_unaligned_fail = yes ; then
9668 cat >>confdefs.h <<\_ACEOF
9669 #define LBL_ALIGN 1
9670 _ACEOF
9671
9672 fi
9673
9674
9675 echo "$as_me:$LINENO: checking for h_errno" >&5
9676 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
9677 if test "${ac_cv_var_h_errno+set}" = set; then
9678 echo $ECHO_N "(cached) $ECHO_C" >&6
9679 else
9680 cat >conftest.$ac_ext <<_ACEOF
9681 #line $LINENO "configure"
9682 /* confdefs.h. */
9683 _ACEOF
9684 cat confdefs.h >>conftest.$ac_ext
9685 cat >>conftest.$ac_ext <<_ACEOF
9686 /* end confdefs.h. */
9687
9688 # include <sys/types.h>
9689 # include <netdb.h>
9690 int
9691 main ()
9692 {
9693 int foo = h_errno;
9694 ;
9695 return 0;
9696 }
9697 _ACEOF
9698 rm -f conftest.$ac_objext
9699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9700 (eval $ac_compile) 2>&5
9701 ac_status=$?
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); } &&
9704 { ac_try='test -s conftest.$ac_objext'
9705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9706 (eval $ac_try) 2>&5
9707 ac_status=$?
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); }; }; then
9710 ac_cv_var_h_errno=yes
9711 else
9712 echo "$as_me: failed program was:" >&5
9713 sed 's/^/| /' conftest.$ac_ext >&5
9714
9715 ac_cv_var_h_errno=no
9716 fi
9717 rm -f conftest.$ac_objext conftest.$ac_ext
9718 fi
9719
9720 echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
9721 echo "${ECHO_T}$ac_cv_var_h_errno" >&6
9722 if test "$ac_cv_var_h_errno" = "yes"; then
9723 cat >>confdefs.h <<\_ACEOF
9724 #define HAVE_H_ERRNO 1
9725 _ACEOF
9726
9727 fi
9728
9729
9730
9731 # Check whether --with-crypto or --without-crypto was given.
9732 if test "${with_crypto+set}" = set; then
9733 withval="$with_crypto"
9734
9735 else
9736
9737 echo "$as_me:$LINENO: checking for SSLeay" >&5
9738 echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6
9739 ac_cv_ssleay_path=no
9740 incdir=no
9741
9742 Xprefix=`eval echo $prefix`
9743
9744 for dir in $Xprefix /usr/${host_alias} /usr /usr/local /usr/local/ssl /usr/pkg; do
9745 #
9746 # XXX - is there a better way to check if a given library is
9747 # in a given directory than checking each of the possible
9748 # shared library suffixes?
9749 #
9750 # Are there any other suffixes we need to look for? Do we have to
9751 # worry about ".so.{version}"?
9752 #
9753 # Or should we just look for "libcrypto.*"?
9754 #
9755 if test -d $dir/lib -a \( -f $dir/lib/libcrypto.a -o \
9756 -f $dir/lib/libcrypto.so -o \
9757 -f $dir/lib/libcrypto.sl -o \
9758 -f $dir/lib/libcrypto.dylib \); then
9759 ac_cv_ssleay_path=$dir
9760 fi
9761 if test -d $dir/include/openssl -a -f $dir/include/openssl/des.h; then
9762 incdir="-I$dir/include"
9763 fi
9764 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
9765 break;
9766 else
9767 ac_cv_ssleay_path=no
9768 incdir=no
9769 fi
9770 done
9771 echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
9772 echo "${ECHO_T}$ac_cv_ssleay_path" >&6
9773 if test "$ac_cv_ssleay_path" != no; then
9774 V_INCLS="$V_INCLS $incdir"
9775 LDFLAGS="-L$dir/lib $LDFLAGS"
9776 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
9777 LIBS="$LIBS -lRSAglue"
9778 fi
9779 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
9780 LIBS="$LIBS -lrsaref"
9781 fi
9782
9783 echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
9784 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6
9785 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 else
9788 ac_check_lib_save_LIBS=$LIBS
9789 LIBS="-lcrypto $LIBS"
9790 cat >conftest.$ac_ext <<_ACEOF
9791 #line $LINENO "configure"
9792 /* confdefs.h. */
9793 _ACEOF
9794 cat confdefs.h >>conftest.$ac_ext
9795 cat >>conftest.$ac_ext <<_ACEOF
9796 /* end confdefs.h. */
9797
9798 /* Override any gcc2 internal prototype to avoid an error. */
9799 #ifdef __cplusplus
9800 extern "C"
9801 #endif
9802 /* We use char because int might match the return type of a gcc2
9803 builtin and then its argument prototype would still apply. */
9804 char DES_cbc_encrypt ();
9805 int
9806 main ()
9807 {
9808 DES_cbc_encrypt ();
9809 ;
9810 return 0;
9811 }
9812 _ACEOF
9813 rm -f conftest.$ac_objext conftest$ac_exeext
9814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9815 (eval $ac_link) 2>&5
9816 ac_status=$?
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } &&
9819 { ac_try='test -s conftest$ac_exeext'
9820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821 (eval $ac_try) 2>&5
9822 ac_status=$?
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); }; }; then
9825 ac_cv_lib_crypto_DES_cbc_encrypt=yes
9826 else
9827 echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9829
9830 ac_cv_lib_crypto_DES_cbc_encrypt=no
9831 fi
9832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9833 LIBS=$ac_check_lib_save_LIBS
9834 fi
9835 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
9836 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6
9837 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
9838 cat >>confdefs.h <<_ACEOF
9839 #define HAVE_LIBCRYPTO 1
9840 _ACEOF
9841
9842 LIBS="-lcrypto $LIBS"
9843
9844 fi
9845
9846
9847 CPPFLAGS="$CPPFLAGS $V_INCLS"
9848
9849 for ac_header in openssl/evp.h
9850 do
9851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9853 echo "$as_me:$LINENO: checking for $ac_header" >&5
9854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9856 echo $ECHO_N "(cached) $ECHO_C" >&6
9857 fi
9858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9860 else
9861 # Is the header compilable?
9862 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9864 cat >conftest.$ac_ext <<_ACEOF
9865 #line $LINENO "configure"
9866 /* confdefs.h. */
9867 _ACEOF
9868 cat confdefs.h >>conftest.$ac_ext
9869 cat >>conftest.$ac_ext <<_ACEOF
9870 /* end confdefs.h. */
9871 $ac_includes_default
9872 #include <$ac_header>
9873 _ACEOF
9874 rm -f conftest.$ac_objext
9875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9876 (eval $ac_compile) 2>&5
9877 ac_status=$?
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); } &&
9880 { ac_try='test -s conftest.$ac_objext'
9881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9882 (eval $ac_try) 2>&5
9883 ac_status=$?
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); }; }; then
9886 ac_header_compiler=yes
9887 else
9888 echo "$as_me: failed program was:" >&5
9889 sed 's/^/| /' conftest.$ac_ext >&5
9890
9891 ac_header_compiler=no
9892 fi
9893 rm -f conftest.$ac_objext conftest.$ac_ext
9894 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9895 echo "${ECHO_T}$ac_header_compiler" >&6
9896
9897 # Is the header present?
9898 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9900 cat >conftest.$ac_ext <<_ACEOF
9901 #line $LINENO "configure"
9902 /* confdefs.h. */
9903 _ACEOF
9904 cat confdefs.h >>conftest.$ac_ext
9905 cat >>conftest.$ac_ext <<_ACEOF
9906 /* end confdefs.h. */
9907 #include <$ac_header>
9908 _ACEOF
9909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9911 ac_status=$?
9912 grep -v '^ *+' conftest.er1 >conftest.err
9913 rm -f conftest.er1
9914 cat conftest.err >&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); } >/dev/null; then
9917 if test -s conftest.err; then
9918 ac_cpp_err=$ac_c_preproc_warn_flag
9919 else
9920 ac_cpp_err=
9921 fi
9922 else
9923 ac_cpp_err=yes
9924 fi
9925 if test -z "$ac_cpp_err"; then
9926 ac_header_preproc=yes
9927 else
9928 echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9930
9931 ac_header_preproc=no
9932 fi
9933 rm -f conftest.err conftest.$ac_ext
9934 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9935 echo "${ECHO_T}$ac_header_preproc" >&6
9936
9937 # So? What about this header?
9938 case $ac_header_compiler:$ac_header_preproc in
9939 yes:no )
9940 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9941 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9944 (
9945 cat <<\_ASBOX
9946 ## ------------------------------------ ##
9947 ## Report this to bug-autoconf@gnu.org. ##
9948 ## ------------------------------------ ##
9949 _ASBOX
9950 ) |
9951 sed "s/^/$as_me: WARNING: /" >&2
9952 ;;
9953 no:yes )
9954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9959 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9960 (
9961 cat <<\_ASBOX
9962 ## ------------------------------------ ##
9963 ## Report this to bug-autoconf@gnu.org. ##
9964 ## ------------------------------------ ##
9965 _ASBOX
9966 ) |
9967 sed "s/^/$as_me: WARNING: /" >&2
9968 ;;
9969 esac
9970 echo "$as_me:$LINENO: checking for $ac_header" >&5
9971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
9974 else
9975 eval "$as_ac_Header=$ac_header_preproc"
9976 fi
9977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9979
9980 fi
9981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9982 cat >>confdefs.h <<_ACEOF
9983 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9984 _ACEOF
9985
9986 fi
9987
9988 done
9989
9990 fi
9991
9992 fi;
9993
9994 if test "$missing_includes" = "yes"; then
9995 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
9996 V_INCLS="$V_INCLS -I\$(srcdir)/missing"
9997 fi
9998
9999
10000
10001
10002
10003
10004
10005
10006 # Find a good install program. We prefer a C program (faster),
10007 # so one script is as good as another. But avoid the broken or
10008 # incompatible versions:
10009 # SysV /etc/install, /usr/sbin/install
10010 # SunOS /usr/etc/install
10011 # IRIX /sbin/install
10012 # AIX /bin/install
10013 # AmigaOS /C/install, which installs bootblocks on floppy discs
10014 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10015 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10016 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10017 # ./install, which can be erroneously created by make from ./install.sh.
10018 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10019 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10020 if test -z "$INSTALL"; then
10021 if test "${ac_cv_path_install+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10023 else
10024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10025 for as_dir in $PATH
10026 do
10027 IFS=$as_save_IFS
10028 test -z "$as_dir" && as_dir=.
10029 # Account for people who put trailing slashes in PATH elements.
10030 case $as_dir/ in
10031 ./ | .// | /cC/* | \
10032 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10033 /usr/ucb/* ) ;;
10034 *)
10035 # OSF1 and SCO ODT 3.0 have their own names for install.
10036 # Don't use installbsd from OSF since it installs stuff as root
10037 # by default.
10038 for ac_prog in ginstall scoinst install; do
10039 for ac_exec_ext in '' $ac_executable_extensions; do
10040 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
10041 if test $ac_prog = install &&
10042 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10043 # AIX install. It has an incompatible calling convention.
10044 :
10045 elif test $ac_prog = install &&
10046 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10047 # program-specific install script used by HP pwplus--don't use.
10048 :
10049 else
10050 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10051 break 3
10052 fi
10053 fi
10054 done
10055 done
10056 ;;
10057 esac
10058 done
10059
10060
10061 fi
10062 if test "${ac_cv_path_install+set}" = set; then
10063 INSTALL=$ac_cv_path_install
10064 else
10065 # As a last resort, use the slow shell script. We don't cache a
10066 # path for INSTALL within a source directory, because that will
10067 # break other packages using the cache if that directory is
10068 # removed, or if the path is relative.
10069 INSTALL=$ac_install_sh
10070 fi
10071 fi
10072 echo "$as_me:$LINENO: result: $INSTALL" >&5
10073 echo "${ECHO_T}$INSTALL" >&6
10074
10075 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10076 # It thinks the first close brace ends the variable substitution.
10077 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10078
10079 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10080
10081 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10082
10083
10084 ac_config_headers="$ac_config_headers config.h"
10085
10086
10087 ac_config_commands="$ac_config_commands default-1"
10088
10089 ac_config_files="$ac_config_files Makefile"
10090 cat >confcache <<\_ACEOF
10091 # This file is a shell script that caches the results of configure
10092 # tests run on this system so they can be shared between configure
10093 # scripts and configure runs, see configure's option --config-cache.
10094 # It is not useful on other systems. If it contains results you don't
10095 # want to keep, you may remove or edit it.
10096 #
10097 # config.status only pays attention to the cache file if you give it
10098 # the --recheck option to rerun configure.
10099 #
10100 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10101 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10102 # following values.
10103
10104 _ACEOF
10105
10106 # The following way of writing the cache mishandles newlines in values,
10107 # but we know of no workaround that is simple, portable, and efficient.
10108 # So, don't put newlines in cache variables' values.
10109 # Ultrix sh set writes to stderr and can't be redirected directly,
10110 # and sets the high bit in the cache file unless we assign to the vars.
10111 {
10112 (set) 2>&1 |
10113 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10114 *ac_space=\ *)
10115 # `set' does not quote correctly, so add quotes (double-quote
10116 # substitution turns \\\\ into \\, and sed turns \\ into \).
10117 sed -n \
10118 "s/'/'\\\\''/g;
10119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10120 ;;
10121 *)
10122 # `set' quotes correctly as required by POSIX, so do not add quotes.
10123 sed -n \
10124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10125 ;;
10126 esac;
10127 } |
10128 sed '
10129 t clear
10130 : clear
10131 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10132 t end
10133 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10134 : end' >>confcache
10135 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10136 if test -w $cache_file; then
10137 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10138 cat confcache >$cache_file
10139 else
10140 echo "not updating unwritable cache $cache_file"
10141 fi
10142 fi
10143 rm -f confcache
10144
10145 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10146 # Let make expand exec_prefix.
10147 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10148
10149 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10150 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10151 # trailing colons and then remove the whole line if VPATH becomes empty
10152 # (actually we leave an empty line to preserve line numbers).
10153 if test "x$srcdir" = x.; then
10154 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10155 s/:*\$(srcdir):*/:/;
10156 s/:*\${srcdir}:*/:/;
10157 s/:*@srcdir@:*/:/;
10158 s/^\([^=]*=[ ]*\):*/\1/;
10159 s/:*$//;
10160 s/^[^=]*=[ ]*$//;
10161 }'
10162 fi
10163
10164 DEFS=-DHAVE_CONFIG_H
10165
10166 ac_libobjs=
10167 ac_ltlibobjs=
10168 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10169 # 1. Remove the extension, and $U if already installed.
10170 ac_i=`echo "$ac_i" |
10171 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10172 # 2. Add them.
10173 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10174 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10175 done
10176 LIBOBJS=$ac_libobjs
10177
10178 LTLIBOBJS=$ac_ltlibobjs
10179
10180
10181
10182 : ${CONFIG_STATUS=./config.status}
10183 ac_clean_files_save=$ac_clean_files
10184 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10185 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10186 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10187 cat >$CONFIG_STATUS <<_ACEOF
10188 #! $SHELL
10189 # Generated by $as_me.
10190 # Run this file to recreate the current configuration.
10191 # Compiler output produced by configure, useful for debugging
10192 # configure, is in config.log if it exists.
10193
10194 debug=false
10195 ac_cs_recheck=false
10196 ac_cs_silent=false
10197 SHELL=\${CONFIG_SHELL-$SHELL}
10198 _ACEOF
10199
10200 cat >>$CONFIG_STATUS <<\_ACEOF
10201 ## --------------------- ##
10202 ## M4sh Initialization. ##
10203 ## --------------------- ##
10204
10205 # Be Bourne compatible
10206 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10207 emulate sh
10208 NULLCMD=:
10209 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10210 # is contrary to our usage. Disable this feature.
10211 alias -g '${1+"$@"}'='"$@"'
10212 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10213 set -o posix
10214 fi
10215
10216 # Support unset when possible.
10217 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10218 as_unset=unset
10219 else
10220 as_unset=false
10221 fi
10222
10223
10224 # Work around bugs in pre-3.0 UWIN ksh.
10225 $as_unset ENV MAIL MAILPATH
10226 PS1='$ '
10227 PS2='> '
10228 PS4='+ '
10229
10230 # NLS nuisances.
10231 for as_var in \
10232 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10233 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10234 LC_TELEPHONE LC_TIME
10235 do
10236 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
10237 eval $as_var=C; export $as_var
10238 else
10239 $as_unset $as_var
10240 fi
10241 done
10242
10243 # Required to use basename.
10244 if expr a : '\(a\)' >/dev/null 2>&1; then
10245 as_expr=expr
10246 else
10247 as_expr=false
10248 fi
10249
10250 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10251 as_basename=basename
10252 else
10253 as_basename=false
10254 fi
10255
10256
10257 # Name of the executable.
10258 as_me=`$as_basename "$0" ||
10259 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10260 X"$0" : 'X\(//\)$' \| \
10261 X"$0" : 'X\(/\)$' \| \
10262 . : '\(.\)' 2>/dev/null ||
10263 echo X/"$0" |
10264 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10265 /^X\/\(\/\/\)$/{ s//\1/; q; }
10266 /^X\/\(\/\).*/{ s//\1/; q; }
10267 s/.*/./; q'`
10268
10269
10270 # PATH needs CR, and LINENO needs CR and PATH.
10271 # Avoid depending upon Character Ranges.
10272 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10273 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10274 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10275 as_cr_digits='0123456789'
10276 as_cr_alnum=$as_cr_Letters$as_cr_digits
10277
10278 # The user is always right.
10279 if test "${PATH_SEPARATOR+set}" != set; then
10280 echo "#! /bin/sh" >conf$$.sh
10281 echo "exit 0" >>conf$$.sh
10282 chmod +x conf$$.sh
10283 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10284 PATH_SEPARATOR=';'
10285 else
10286 PATH_SEPARATOR=:
10287 fi
10288 rm -f conf$$.sh
10289 fi
10290
10291
10292 as_lineno_1=$LINENO
10293 as_lineno_2=$LINENO
10294 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10295 test "x$as_lineno_1" != "x$as_lineno_2" &&
10296 test "x$as_lineno_3" = "x$as_lineno_2" || {
10297 # Find who we are. Look in the path if we contain no path at all
10298 # relative or not.
10299 case $0 in
10300 *[\\/]* ) as_myself=$0 ;;
10301 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10302 for as_dir in $PATH
10303 do
10304 IFS=$as_save_IFS
10305 test -z "$as_dir" && as_dir=.
10306 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10307 done
10308
10309 ;;
10310 esac
10311 # We did not find ourselves, most probably we were run as `sh COMMAND'
10312 # in which case we are not to be found in the path.
10313 if test "x$as_myself" = x; then
10314 as_myself=$0
10315 fi
10316 if test ! -f "$as_myself"; then
10317 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10318 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10319 { (exit 1); exit 1; }; }
10320 fi
10321 case $CONFIG_SHELL in
10322 '')
10323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10324 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10325 do
10326 IFS=$as_save_IFS
10327 test -z "$as_dir" && as_dir=.
10328 for as_base in sh bash ksh sh5; do
10329 case $as_dir in
10330 /*)
10331 if ("$as_dir/$as_base" -c '
10332 as_lineno_1=$LINENO
10333 as_lineno_2=$LINENO
10334 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10335 test "x$as_lineno_1" != "x$as_lineno_2" &&
10336 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10337 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10338 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10339 CONFIG_SHELL=$as_dir/$as_base
10340 export CONFIG_SHELL
10341 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10342 fi;;
10343 esac
10344 done
10345 done
10346 ;;
10347 esac
10348
10349 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10350 # uniformly replaced by the line number. The first 'sed' inserts a
10351 # line-number line before each line; the second 'sed' does the real
10352 # work. The second script uses 'N' to pair each line-number line
10353 # with the numbered line, and appends trailing '-' during
10354 # substitution so that $LINENO is not a special case at line end.
10355 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10356 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10357 sed '=' <$as_myself |
10358 sed '
10359 N
10360 s,$,-,
10361 : loop
10362 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10363 t loop
10364 s,-$,,
10365 s,^['$as_cr_digits']*\n,,
10366 ' >$as_me.lineno &&
10367 chmod +x $as_me.lineno ||
10368 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10369 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10370 { (exit 1); exit 1; }; }
10371
10372 # Don't try to exec as it changes $[0], causing all sort of problems
10373 # (the dirname of $[0] is not the place where we might find the
10374 # original and so on. Autoconf is especially sensible to this).
10375 . ./$as_me.lineno
10376 # Exit status is that of the last command.
10377 exit
10378 }
10379
10380
10381 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10382 *c*,-n*) ECHO_N= ECHO_C='
10383 ' ECHO_T=' ' ;;
10384 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10385 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10386 esac
10387
10388 if expr a : '\(a\)' >/dev/null 2>&1; then
10389 as_expr=expr
10390 else
10391 as_expr=false
10392 fi
10393
10394 rm -f conf$$ conf$$.exe conf$$.file
10395 echo >conf$$.file
10396 if ln -s conf$$.file conf$$ 2>/dev/null; then
10397 # We could just check for DJGPP; but this test a) works b) is more generic
10398 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10399 if test -f conf$$.exe; then
10400 # Don't use ln at all; we don't have any links
10401 as_ln_s='cp -p'
10402 else
10403 as_ln_s='ln -s'
10404 fi
10405 elif ln conf$$.file conf$$ 2>/dev/null; then
10406 as_ln_s=ln
10407 else
10408 as_ln_s='cp -p'
10409 fi
10410 rm -f conf$$ conf$$.exe conf$$.file
10411
10412 if mkdir -p . 2>/dev/null; then
10413 as_mkdir_p=:
10414 else
10415 as_mkdir_p=false
10416 fi
10417
10418 as_executable_p="test -f"
10419
10420 # Sed expression to map a string onto a valid CPP name.
10421 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10422
10423 # Sed expression to map a string onto a valid variable name.
10424 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10425
10426
10427 # IFS
10428 # We need space, tab and new line, in precisely that order.
10429 as_nl='
10430 '
10431 IFS=" $as_nl"
10432
10433 # CDPATH.
10434 $as_unset CDPATH
10435
10436 exec 6>&1
10437
10438 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10439 # report actual input values of CONFIG_FILES etc. instead of their
10440 # values after options handling. Logging --version etc. is OK.
10441 exec 5>>config.log
10442 {
10443 echo
10444 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10445 ## Running $as_me. ##
10446 _ASBOX
10447 } >&5
10448 cat >&5 <<_CSEOF
10449
10450 This file was extended by $as_me, which was
10451 generated by GNU Autoconf 2.57. Invocation command line was
10452
10453 CONFIG_FILES = $CONFIG_FILES
10454 CONFIG_HEADERS = $CONFIG_HEADERS
10455 CONFIG_LINKS = $CONFIG_LINKS
10456 CONFIG_COMMANDS = $CONFIG_COMMANDS
10457 $ $0 $@
10458
10459 _CSEOF
10460 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10461 echo >&5
10462 _ACEOF
10463
10464 # Files that config.status was made for.
10465 if test -n "$ac_config_files"; then
10466 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10467 fi
10468
10469 if test -n "$ac_config_headers"; then
10470 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10471 fi
10472
10473 if test -n "$ac_config_links"; then
10474 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10475 fi
10476
10477 if test -n "$ac_config_commands"; then
10478 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10479 fi
10480
10481 cat >>$CONFIG_STATUS <<\_ACEOF
10482
10483 ac_cs_usage="\
10484 \`$as_me' instantiates files from templates according to the
10485 current configuration.
10486
10487 Usage: $0 [OPTIONS] [FILE]...
10488
10489 -h, --help print this help, then exit
10490 -V, --version print version number, then exit
10491 -q, --quiet do not print progress messages
10492 -d, --debug don't remove temporary files
10493 --recheck update $as_me by reconfiguring in the same conditions
10494 --file=FILE[:TEMPLATE]
10495 instantiate the configuration file FILE
10496 --header=FILE[:TEMPLATE]
10497 instantiate the configuration header FILE
10498
10499 Configuration files:
10500 $config_files
10501
10502 Configuration headers:
10503 $config_headers
10504
10505 Configuration commands:
10506 $config_commands
10507
10508 Report bugs to <bug-autoconf@gnu.org>."
10509 _ACEOF
10510
10511 cat >>$CONFIG_STATUS <<_ACEOF
10512 ac_cs_version="\\
10513 config.status
10514 configured by $0, generated by GNU Autoconf 2.57,
10515 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10516
10517 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10518 Free Software Foundation, Inc.
10519 This config.status script is free software; the Free Software Foundation
10520 gives unlimited permission to copy, distribute and modify it."
10521 srcdir=$srcdir
10522 INSTALL="$INSTALL"
10523 _ACEOF
10524
10525 cat >>$CONFIG_STATUS <<\_ACEOF
10526 # If no file are specified by the user, then we need to provide default
10527 # value. By we need to know if files were specified by the user.
10528 ac_need_defaults=:
10529 while test $# != 0
10530 do
10531 case $1 in
10532 --*=*)
10533 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10534 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10535 ac_shift=:
10536 ;;
10537 -*)
10538 ac_option=$1
10539 ac_optarg=$2
10540 ac_shift=shift
10541 ;;
10542 *) # This is not an option, so the user has probably given explicit
10543 # arguments.
10544 ac_option=$1
10545 ac_need_defaults=false;;
10546 esac
10547
10548 case $ac_option in
10549 # Handling of the options.
10550 _ACEOF
10551 cat >>$CONFIG_STATUS <<\_ACEOF
10552 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10553 ac_cs_recheck=: ;;
10554 --version | --vers* | -V )
10555 echo "$ac_cs_version"; exit 0 ;;
10556 --he | --h)
10557 # Conflict between --help and --header
10558 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10559 Try \`$0 --help' for more information." >&5
10560 echo "$as_me: error: ambiguous option: $1
10561 Try \`$0 --help' for more information." >&2;}
10562 { (exit 1); exit 1; }; };;
10563 --help | --hel | -h )
10564 echo "$ac_cs_usage"; exit 0 ;;
10565 --debug | --d* | -d )
10566 debug=: ;;
10567 --file | --fil | --fi | --f )
10568 $ac_shift
10569 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10570 ac_need_defaults=false;;
10571 --header | --heade | --head | --hea )
10572 $ac_shift
10573 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10574 ac_need_defaults=false;;
10575 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10576 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10577 ac_cs_silent=: ;;
10578
10579 # This is an error.
10580 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10581 Try \`$0 --help' for more information." >&5
10582 echo "$as_me: error: unrecognized option: $1
10583 Try \`$0 --help' for more information." >&2;}
10584 { (exit 1); exit 1; }; } ;;
10585
10586 *) ac_config_targets="$ac_config_targets $1" ;;
10587
10588 esac
10589 shift
10590 done
10591
10592 ac_configure_extra_args=
10593
10594 if $ac_cs_silent; then
10595 exec 6>/dev/null
10596 ac_configure_extra_args="$ac_configure_extra_args --silent"
10597 fi
10598
10599 _ACEOF
10600 cat >>$CONFIG_STATUS <<_ACEOF
10601 if \$ac_cs_recheck; then
10602 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10603 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10604 fi
10605
10606 _ACEOF
10607
10608 cat >>$CONFIG_STATUS <<_ACEOF
10609 #
10610 # INIT-COMMANDS section.
10611 #
10612
10613
10614
10615 _ACEOF
10616
10617
10618
10619 cat >>$CONFIG_STATUS <<\_ACEOF
10620 for ac_config_target in $ac_config_targets
10621 do
10622 case "$ac_config_target" in
10623 # Handling of arguments.
10624 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10625 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10626 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10627 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10628 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10629 { (exit 1); exit 1; }; };;
10630 esac
10631 done
10632
10633 # If the user did not use the arguments to specify the items to instantiate,
10634 # then the envvar interface is used. Set only those that are not.
10635 # We use the long form for the default assignment because of an extremely
10636 # bizarre bug on SunOS 4.1.3.
10637 if $ac_need_defaults; then
10638 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10639 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10640 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10641 fi
10642
10643 # Have a temporary directory for convenience. Make it in the build tree
10644 # simply because there is no reason to put it here, and in addition,
10645 # creating and moving files from /tmp can sometimes cause problems.
10646 # Create a temporary directory, and hook for its removal unless debugging.
10647 $debug ||
10648 {
10649 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10650 trap '{ (exit 1); exit 1; }' 1 2 13 15
10651 }
10652
10653 # Create a (secure) tmp directory for tmp files.
10654
10655 {
10656 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10657 test -n "$tmp" && test -d "$tmp"
10658 } ||
10659 {
10660 tmp=./confstat$$-$RANDOM
10661 (umask 077 && mkdir $tmp)
10662 } ||
10663 {
10664 echo "$me: cannot create a temporary directory in ." >&2
10665 { (exit 1); exit 1; }
10666 }
10667
10668 _ACEOF
10669
10670 cat >>$CONFIG_STATUS <<_ACEOF
10671
10672 #
10673 # CONFIG_FILES section.
10674 #
10675
10676 # No need to generate the scripts if there are no CONFIG_FILES.
10677 # This happens for instance when ./config.status config.h
10678 if test -n "\$CONFIG_FILES"; then
10679 # Protect against being on the right side of a sed subst in config.status.
10680 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10681 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10682 s,@SHELL@,$SHELL,;t t
10683 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10684 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10685 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10686 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10687 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10688 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10689 s,@exec_prefix@,$exec_prefix,;t t
10690 s,@prefix@,$prefix,;t t
10691 s,@program_transform_name@,$program_transform_name,;t t
10692 s,@bindir@,$bindir,;t t
10693 s,@sbindir@,$sbindir,;t t
10694 s,@libexecdir@,$libexecdir,;t t
10695 s,@datadir@,$datadir,;t t
10696 s,@sysconfdir@,$sysconfdir,;t t
10697 s,@sharedstatedir@,$sharedstatedir,;t t
10698 s,@localstatedir@,$localstatedir,;t t
10699 s,@libdir@,$libdir,;t t
10700 s,@includedir@,$includedir,;t t
10701 s,@oldincludedir@,$oldincludedir,;t t
10702 s,@infodir@,$infodir,;t t
10703 s,@mandir@,$mandir,;t t
10704 s,@build_alias@,$build_alias,;t t
10705 s,@host_alias@,$host_alias,;t t
10706 s,@target_alias@,$target_alias,;t t
10707 s,@DEFS@,$DEFS,;t t
10708 s,@ECHO_C@,$ECHO_C,;t t
10709 s,@ECHO_N@,$ECHO_N,;t t
10710 s,@ECHO_T@,$ECHO_T,;t t
10711 s,@LIBS@,$LIBS,;t t
10712 s,@build@,$build,;t t
10713 s,@build_cpu@,$build_cpu,;t t
10714 s,@build_vendor@,$build_vendor,;t t
10715 s,@build_os@,$build_os,;t t
10716 s,@host@,$host,;t t
10717 s,@host_cpu@,$host_cpu,;t t
10718 s,@host_vendor@,$host_vendor,;t t
10719 s,@host_os@,$host_os,;t t
10720 s,@SHLICC2@,$SHLICC2,;t t
10721 s,@CC@,$CC,;t t
10722 s,@CFLAGS@,$CFLAGS,;t t
10723 s,@LDFLAGS@,$LDFLAGS,;t t
10724 s,@CPPFLAGS@,$CPPFLAGS,;t t
10725 s,@ac_ct_CC@,$ac_ct_CC,;t t
10726 s,@EXEEXT@,$EXEEXT,;t t
10727 s,@OBJEXT@,$OBJEXT,;t t
10728 s,@CPP@,$CPP,;t t
10729 s,@EGREP@,$EGREP,;t t
10730 s,@LIBOBJS@,$LIBOBJS,;t t
10731 s,@V_CCOPT@,$V_CCOPT,;t t
10732 s,@V_DEFS@,$V_DEFS,;t t
10733 s,@V_GROUP@,$V_GROUP,;t t
10734 s,@V_INCLS@,$V_INCLS,;t t
10735 s,@V_PCAPDEP@,$V_PCAPDEP,;t t
10736 s,@LOCALSRC@,$LOCALSRC,;t t
10737 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10738 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10739 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10740 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10741 CEOF
10742
10743 _ACEOF
10744
10745 cat >>$CONFIG_STATUS <<\_ACEOF
10746 # Split the substitutions into bite-sized pieces for seds with
10747 # small command number limits, like on Digital OSF/1 and HP-UX.
10748 ac_max_sed_lines=48
10749 ac_sed_frag=1 # Number of current file.
10750 ac_beg=1 # First line for current file.
10751 ac_end=$ac_max_sed_lines # Line after last line for current file.
10752 ac_more_lines=:
10753 ac_sed_cmds=
10754 while $ac_more_lines; do
10755 if test $ac_beg -gt 1; then
10756 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10757 else
10758 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10759 fi
10760 if test ! -s $tmp/subs.frag; then
10761 ac_more_lines=false
10762 else
10763 # The purpose of the label and of the branching condition is to
10764 # speed up the sed processing (if there are no `@' at all, there
10765 # is no need to browse any of the substitutions).
10766 # These are the two extra sed commands mentioned above.
10767 (echo ':t
10768 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10769 if test -z "$ac_sed_cmds"; then
10770 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10771 else
10772 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10773 fi
10774 ac_sed_frag=`expr $ac_sed_frag + 1`
10775 ac_beg=$ac_end
10776 ac_end=`expr $ac_end + $ac_max_sed_lines`
10777 fi
10778 done
10779 if test -z "$ac_sed_cmds"; then
10780 ac_sed_cmds=cat
10781 fi
10782 fi # test -n "$CONFIG_FILES"
10783
10784 _ACEOF
10785 cat >>$CONFIG_STATUS <<\_ACEOF
10786 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10787 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10788 case $ac_file in
10789 - | *:- | *:-:* ) # input from stdin
10790 cat >$tmp/stdin
10791 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10792 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10793 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10794 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10795 * ) ac_file_in=$ac_file.in ;;
10796 esac
10797
10798 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10799 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10800 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10801 X"$ac_file" : 'X\(//\)[^/]' \| \
10802 X"$ac_file" : 'X\(//\)$' \| \
10803 X"$ac_file" : 'X\(/\)' \| \
10804 . : '\(.\)' 2>/dev/null ||
10805 echo X"$ac_file" |
10806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10807 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10808 /^X\(\/\/\)$/{ s//\1/; q; }
10809 /^X\(\/\).*/{ s//\1/; q; }
10810 s/.*/./; q'`
10811 { if $as_mkdir_p; then
10812 mkdir -p "$ac_dir"
10813 else
10814 as_dir="$ac_dir"
10815 as_dirs=
10816 while test ! -d "$as_dir"; do
10817 as_dirs="$as_dir $as_dirs"
10818 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10819 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10820 X"$as_dir" : 'X\(//\)[^/]' \| \
10821 X"$as_dir" : 'X\(//\)$' \| \
10822 X"$as_dir" : 'X\(/\)' \| \
10823 . : '\(.\)' 2>/dev/null ||
10824 echo X"$as_dir" |
10825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10826 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10827 /^X\(\/\/\)$/{ s//\1/; q; }
10828 /^X\(\/\).*/{ s//\1/; q; }
10829 s/.*/./; q'`
10830 done
10831 test ! -n "$as_dirs" || mkdir $as_dirs
10832 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10833 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10834 { (exit 1); exit 1; }; }; }
10835
10836 ac_builddir=.
10837
10838 if test "$ac_dir" != .; then
10839 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10840 # A "../" for each directory in $ac_dir_suffix.
10841 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10842 else
10843 ac_dir_suffix= ac_top_builddir=
10844 fi
10845
10846 case $srcdir in
10847 .) # No --srcdir option. We are building in place.
10848 ac_srcdir=.
10849 if test -z "$ac_top_builddir"; then
10850 ac_top_srcdir=.
10851 else
10852 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10853 fi ;;
10854 [\\/]* | ?:[\\/]* ) # Absolute path.
10855 ac_srcdir=$srcdir$ac_dir_suffix;
10856 ac_top_srcdir=$srcdir ;;
10857 *) # Relative path.
10858 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10859 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10860 esac
10861 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10862 # absolute.
10863 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10864 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10865 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10866 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10867
10868
10869 case $INSTALL in
10870 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10871 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10872 esac
10873
10874 if test x"$ac_file" != x-; then
10875 { echo "$as_me:$LINENO: creating $ac_file" >&5
10876 echo "$as_me: creating $ac_file" >&6;}
10877 rm -f "$ac_file"
10878 fi
10879 # Let's still pretend it is `configure' which instantiates (i.e., don't
10880 # use $as_me), people would be surprised to read:
10881 # /* config.h. Generated by config.status. */
10882 if test x"$ac_file" = x-; then
10883 configure_input=
10884 else
10885 configure_input="$ac_file. "
10886 fi
10887 configure_input=$configure_input"Generated from `echo $ac_file_in |
10888 sed 's,.*/,,'` by configure."
10889
10890 # First look for the input files in the build tree, otherwise in the
10891 # src tree.
10892 ac_file_inputs=`IFS=:
10893 for f in $ac_file_in; do
10894 case $f in
10895 -) echo $tmp/stdin ;;
10896 [\\/$]*)
10897 # Absolute (can't be DOS-style, as IFS=:)
10898 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10899 echo "$as_me: error: cannot find input file: $f" >&2;}
10900 { (exit 1); exit 1; }; }
10901 echo $f;;
10902 *) # Relative
10903 if test -f "$f"; then
10904 # Build tree
10905 echo $f
10906 elif test -f "$srcdir/$f"; then
10907 # Source tree
10908 echo $srcdir/$f
10909 else
10910 # /dev/null tree
10911 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10912 echo "$as_me: error: cannot find input file: $f" >&2;}
10913 { (exit 1); exit 1; }; }
10914 fi;;
10915 esac
10916 done` || { (exit 1); exit 1; }
10917 _ACEOF
10918 cat >>$CONFIG_STATUS <<_ACEOF
10919 sed "$ac_vpsub
10920 $extrasub
10921 _ACEOF
10922 cat >>$CONFIG_STATUS <<\_ACEOF
10923 :t
10924 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10925 s,@configure_input@,$configure_input,;t t
10926 s,@srcdir@,$ac_srcdir,;t t
10927 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10928 s,@top_srcdir@,$ac_top_srcdir,;t t
10929 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10930 s,@builddir@,$ac_builddir,;t t
10931 s,@abs_builddir@,$ac_abs_builddir,;t t
10932 s,@top_builddir@,$ac_top_builddir,;t t
10933 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10934 s,@INSTALL@,$ac_INSTALL,;t t
10935 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10936 rm -f $tmp/stdin
10937 if test x"$ac_file" != x-; then
10938 mv $tmp/out $ac_file
10939 else
10940 cat $tmp/out
10941 rm -f $tmp/out
10942 fi
10943
10944 done
10945 _ACEOF
10946 cat >>$CONFIG_STATUS <<\_ACEOF
10947
10948 #
10949 # CONFIG_HEADER section.
10950 #
10951
10952 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10953 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10954 #
10955 # ac_d sets the value in "#define NAME VALUE" lines.
10956 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10957 ac_dB='[ ].*$,\1#\2'
10958 ac_dC=' '
10959 ac_dD=',;t'
10960 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10961 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10962 ac_uB='$,\1#\2define\3'
10963 ac_uC=' '
10964 ac_uD=',;t'
10965
10966 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10967 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10968 case $ac_file in
10969 - | *:- | *:-:* ) # input from stdin
10970 cat >$tmp/stdin
10971 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10972 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10973 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10974 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10975 * ) ac_file_in=$ac_file.in ;;
10976 esac
10977
10978 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10979 echo "$as_me: creating $ac_file" >&6;}
10980
10981 # First look for the input files in the build tree, otherwise in the
10982 # src tree.
10983 ac_file_inputs=`IFS=:
10984 for f in $ac_file_in; do
10985 case $f in
10986 -) echo $tmp/stdin ;;
10987 [\\/$]*)
10988 # Absolute (can't be DOS-style, as IFS=:)
10989 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10990 echo "$as_me: error: cannot find input file: $f" >&2;}
10991 { (exit 1); exit 1; }; }
10992 echo $f;;
10993 *) # Relative
10994 if test -f "$f"; then
10995 # Build tree
10996 echo $f
10997 elif test -f "$srcdir/$f"; then
10998 # Source tree
10999 echo $srcdir/$f
11000 else
11001 # /dev/null tree
11002 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11003 echo "$as_me: error: cannot find input file: $f" >&2;}
11004 { (exit 1); exit 1; }; }
11005 fi;;
11006 esac
11007 done` || { (exit 1); exit 1; }
11008 # Remove the trailing spaces.
11009 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11010
11011 _ACEOF
11012
11013 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11014 # `conftest.undefs', that substitutes the proper values into
11015 # config.h.in to produce config.h. The first handles `#define'
11016 # templates, and the second `#undef' templates.
11017 # And first: Protect against being on the right side of a sed subst in
11018 # config.status. Protect against being in an unquoted here document
11019 # in config.status.
11020 rm -f conftest.defines conftest.undefs
11021 # Using a here document instead of a string reduces the quoting nightmare.
11022 # Putting comments in sed scripts is not portable.
11023 #
11024 # `end' is used to avoid that the second main sed command (meant for
11025 # 0-ary CPP macros) applies to n-ary macro definitions.
11026 # See the Autoconf documentation for `clear'.
11027 cat >confdef2sed.sed <<\_ACEOF
11028 s/[\\&,]/\\&/g
11029 s,[\\$`],\\&,g
11030 t clear
11031 : clear
11032 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11033 t end
11034 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11035 : end
11036 _ACEOF
11037 # If some macros were called several times there might be several times
11038 # the same #defines, which is useless. Nevertheless, we may not want to
11039 # sort them, since we want the *last* AC-DEFINE to be honored.
11040 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11041 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11042 rm -f confdef2sed.sed
11043
11044 # This sed command replaces #undef with comments. This is necessary, for
11045 # example, in the case of _POSIX_SOURCE, which is predefined and required
11046 # on some systems where configure will not decide to define it.
11047 cat >>conftest.undefs <<\_ACEOF
11048 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11049 _ACEOF
11050
11051 # Break up conftest.defines because some shells have a limit on the size
11052 # of here documents, and old seds have small limits too (100 cmds).
11053 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11054 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11055 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11056 echo ' :' >>$CONFIG_STATUS
11057 rm -f conftest.tail
11058 while grep . conftest.defines >/dev/null
11059 do
11060 # Write a limited-size here document to $tmp/defines.sed.
11061 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11062 # Speed up: don't consider the non `#define' lines.
11063 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11064 # Work around the forget-to-reset-the-flag bug.
11065 echo 't clr' >>$CONFIG_STATUS
11066 echo ': clr' >>$CONFIG_STATUS
11067 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11068 echo 'CEOF
11069 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11070 rm -f $tmp/in
11071 mv $tmp/out $tmp/in
11072 ' >>$CONFIG_STATUS
11073 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11074 rm -f conftest.defines
11075 mv conftest.tail conftest.defines
11076 done
11077 rm -f conftest.defines
11078 echo ' fi # grep' >>$CONFIG_STATUS
11079 echo >>$CONFIG_STATUS
11080
11081 # Break up conftest.undefs because some shells have a limit on the size
11082 # of here documents, and old seds have small limits too (100 cmds).
11083 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11084 rm -f conftest.tail
11085 while grep . conftest.undefs >/dev/null
11086 do
11087 # Write a limited-size here document to $tmp/undefs.sed.
11088 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11089 # Speed up: don't consider the non `#undef'
11090 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11091 # Work around the forget-to-reset-the-flag bug.
11092 echo 't clr' >>$CONFIG_STATUS
11093 echo ': clr' >>$CONFIG_STATUS
11094 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11095 echo 'CEOF
11096 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11097 rm -f $tmp/in
11098 mv $tmp/out $tmp/in
11099 ' >>$CONFIG_STATUS
11100 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11101 rm -f conftest.undefs
11102 mv conftest.tail conftest.undefs
11103 done
11104 rm -f conftest.undefs
11105
11106 cat >>$CONFIG_STATUS <<\_ACEOF
11107 # Let's still pretend it is `configure' which instantiates (i.e., don't
11108 # use $as_me), people would be surprised to read:
11109 # /* config.h. Generated by config.status. */
11110 if test x"$ac_file" = x-; then
11111 echo "/* Generated by configure. */" >$tmp/config.h
11112 else
11113 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11114 fi
11115 cat $tmp/in >>$tmp/config.h
11116 rm -f $tmp/in
11117 if test x"$ac_file" != x-; then
11118 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11119 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11120 echo "$as_me: $ac_file is unchanged" >&6;}
11121 else
11122 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11123 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11124 X"$ac_file" : 'X\(//\)[^/]' \| \
11125 X"$ac_file" : 'X\(//\)$' \| \
11126 X"$ac_file" : 'X\(/\)' \| \
11127 . : '\(.\)' 2>/dev/null ||
11128 echo X"$ac_file" |
11129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11130 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11131 /^X\(\/\/\)$/{ s//\1/; q; }
11132 /^X\(\/\).*/{ s//\1/; q; }
11133 s/.*/./; q'`
11134 { if $as_mkdir_p; then
11135 mkdir -p "$ac_dir"
11136 else
11137 as_dir="$ac_dir"
11138 as_dirs=
11139 while test ! -d "$as_dir"; do
11140 as_dirs="$as_dir $as_dirs"
11141 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11142 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11143 X"$as_dir" : 'X\(//\)[^/]' \| \
11144 X"$as_dir" : 'X\(//\)$' \| \
11145 X"$as_dir" : 'X\(/\)' \| \
11146 . : '\(.\)' 2>/dev/null ||
11147 echo X"$as_dir" |
11148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11149 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11150 /^X\(\/\/\)$/{ s//\1/; q; }
11151 /^X\(\/\).*/{ s//\1/; q; }
11152 s/.*/./; q'`
11153 done
11154 test ! -n "$as_dirs" || mkdir $as_dirs
11155 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11156 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11157 { (exit 1); exit 1; }; }; }
11158
11159 rm -f $ac_file
11160 mv $tmp/config.h $ac_file
11161 fi
11162 else
11163 cat $tmp/config.h
11164 rm -f $tmp/config.h
11165 fi
11166 done
11167 _ACEOF
11168 cat >>$CONFIG_STATUS <<\_ACEOF
11169
11170 #
11171 # CONFIG_COMMANDS section.
11172 #
11173 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11174 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11175 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11176 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11177 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11178 X"$ac_dest" : 'X\(//\)[^/]' \| \
11179 X"$ac_dest" : 'X\(//\)$' \| \
11180 X"$ac_dest" : 'X\(/\)' \| \
11181 . : '\(.\)' 2>/dev/null ||
11182 echo X"$ac_dest" |
11183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11184 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11185 /^X\(\/\/\)$/{ s//\1/; q; }
11186 /^X\(\/\).*/{ s//\1/; q; }
11187 s/.*/./; q'`
11188 ac_builddir=.
11189
11190 if test "$ac_dir" != .; then
11191 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11192 # A "../" for each directory in $ac_dir_suffix.
11193 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11194 else
11195 ac_dir_suffix= ac_top_builddir=
11196 fi
11197
11198 case $srcdir in
11199 .) # No --srcdir option. We are building in place.
11200 ac_srcdir=.
11201 if test -z "$ac_top_builddir"; then
11202 ac_top_srcdir=.
11203 else
11204 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11205 fi ;;
11206 [\\/]* | ?:[\\/]* ) # Absolute path.
11207 ac_srcdir=$srcdir$ac_dir_suffix;
11208 ac_top_srcdir=$srcdir ;;
11209 *) # Relative path.
11210 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11211 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11212 esac
11213 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11214 # absolute.
11215 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11216 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11217 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11218 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11219
11220
11221 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11222 echo "$as_me: executing $ac_dest commands" >&6;}
11223 case $ac_dest in
11224 default-1 ) if test -f .devel; then
11225 echo timestamp > stamp-h
11226 cat Makefile-devel-adds >> Makefile
11227 make depend
11228 fi ;;
11229 esac
11230 done
11231 _ACEOF
11232
11233 cat >>$CONFIG_STATUS <<\_ACEOF
11234
11235 { (exit 0); exit 0; }
11236 _ACEOF
11237 chmod +x $CONFIG_STATUS
11238 ac_clean_files=$ac_clean_files_save
11239
11240
11241 # configure is writing to config.log, and then calls config.status.
11242 # config.status does its own redirection, appending to config.log.
11243 # Unfortunately, on DOS this fails, as config.log is still kept open
11244 # by configure, so config.status won't be able to write to it; its
11245 # output is simply discarded. So we exec the FD to /dev/null,
11246 # effectively closing config.log, so it can be properly (re)opened and
11247 # appended to by config.status. When coming back to configure, we
11248 # need to make the FD available again.
11249 if test "$no_create" != yes; then
11250 ac_cs_success=:
11251 ac_config_status_args=
11252 test "$silent" = yes &&
11253 ac_config_status_args="$ac_config_status_args --quiet"
11254 exec 5>/dev/null
11255 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11256 exec 5>>config.log
11257 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11258 # would make configure fail if this is the last instruction.
11259 $ac_cs_success || { (exit 1); exit 1; }
11260 fi
11261
11262 exit 0