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