]> The Tcpdump Group git mirrors - libpcap/blob - configure
Pick up changes from NetBSD:
[libpcap] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.135 .
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 V_RANLIB 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-protochain disable \"protochain\" insn
850 --enable-ipv6 build IPv6-capable version
851 --enable-optimizer-dbg build optimizer debugging code
852 --enable-yydebug build parser debugging code
853
854 Optional Packages:
855 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
856 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
857 --without-gcc don't use gcc
858 --with-pcap=TYPE use packet capture TYPE
859 --with-dag[=DIR] include Endace DAG support ("yes", "no" or DIR; default="yes" on BSD and Linux if present)
860 --with-dag-includes=DIR Endace DAG include directory
861 --with-dag-libraries=DIR Endace DAG library directory
862 --with-septel[=DIR] include Septel support (located in directory DIR, if supplied). default=yes, on Linux, if present
863 --without-flex don't use flex
864 --without-bison don't use bison
865
866 Some influential environment variables:
867 CC C compiler command
868 CFLAGS C compiler flags
869 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
870 nonstandard directory <lib dir>
871 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
872 headers in a nonstandard directory <include dir>
873 CPP C preprocessor
874
875 Use these variables to override the choices made by `configure' or to help
876 it to find libraries and programs with nonstandard names/locations.
877
878 _ACEOF
879 fi
880
881 if test "$ac_init_help" = "recursive"; then
882 # If there are subdirs, report their specific --help.
883 ac_popdir=`pwd`
884 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
885 test -d $ac_dir || continue
886 ac_builddir=.
887
888 if test "$ac_dir" != .; then
889 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
890 # A "../" for each directory in $ac_dir_suffix.
891 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
892 else
893 ac_dir_suffix= ac_top_builddir=
894 fi
895
896 case $srcdir in
897 .) # No --srcdir option. We are building in place.
898 ac_srcdir=.
899 if test -z "$ac_top_builddir"; then
900 ac_top_srcdir=.
901 else
902 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
903 fi ;;
904 [\\/]* | ?:[\\/]* ) # Absolute path.
905 ac_srcdir=$srcdir$ac_dir_suffix;
906 ac_top_srcdir=$srcdir ;;
907 *) # Relative path.
908 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
909 ac_top_srcdir=$ac_top_builddir$srcdir ;;
910 esac
911
912 # Do not use `cd foo && pwd` to compute absolute paths, because
913 # the directories may not exist.
914 case `pwd` in
915 .) ac_abs_builddir="$ac_dir";;
916 *)
917 case "$ac_dir" in
918 .) ac_abs_builddir=`pwd`;;
919 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
920 *) ac_abs_builddir=`pwd`/"$ac_dir";;
921 esac;;
922 esac
923 case $ac_abs_builddir in
924 .) ac_abs_top_builddir=${ac_top_builddir}.;;
925 *)
926 case ${ac_top_builddir}. in
927 .) ac_abs_top_builddir=$ac_abs_builddir;;
928 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
929 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
930 esac;;
931 esac
932 case $ac_abs_builddir in
933 .) ac_abs_srcdir=$ac_srcdir;;
934 *)
935 case $ac_srcdir in
936 .) ac_abs_srcdir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
938 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
939 esac;;
940 esac
941 case $ac_abs_builddir in
942 .) ac_abs_top_srcdir=$ac_top_srcdir;;
943 *)
944 case $ac_top_srcdir in
945 .) ac_abs_top_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
947 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
948 esac;;
949 esac
950
951 cd $ac_dir
952 # Check for guested configure; otherwise get Cygnus style configure.
953 if test -f $ac_srcdir/configure.gnu; then
954 echo
955 $SHELL $ac_srcdir/configure.gnu --help=recursive
956 elif test -f $ac_srcdir/configure; then
957 echo
958 $SHELL $ac_srcdir/configure --help=recursive
959 elif test -f $ac_srcdir/configure.ac ||
960 test -f $ac_srcdir/configure.in; then
961 echo
962 $ac_configure --help
963 else
964 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
965 fi
966 cd $ac_popdir
967 done
968 fi
969
970 test -n "$ac_init_help" && exit 0
971 if $ac_init_version; then
972 cat <<\_ACEOF
973
974 Copyright (C) 2003 Free Software Foundation, Inc.
975 This configure script is free software; the Free Software Foundation
976 gives unlimited permission to copy, distribute and modify it.
977 _ACEOF
978 exit 0
979 fi
980 exec 5>config.log
981 cat >&5 <<_ACEOF
982 This file contains any messages produced by compilers while
983 running configure, to aid debugging if configure makes a mistake.
984
985 It was created by $as_me, which was
986 generated by GNU Autoconf 2.59. Invocation command line was
987
988 $ $0 $@
989
990 _ACEOF
991 {
992 cat <<_ASUNAME
993 ## --------- ##
994 ## Platform. ##
995 ## --------- ##
996
997 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
998 uname -m = `(uname -m) 2>/dev/null || echo unknown`
999 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1000 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1001 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1002
1003 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1004 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1005
1006 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1007 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1008 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1009 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1010 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1011 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1012 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1013
1014 _ASUNAME
1015
1016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1017 for as_dir in $PATH
1018 do
1019 IFS=$as_save_IFS
1020 test -z "$as_dir" && as_dir=.
1021 echo "PATH: $as_dir"
1022 done
1023
1024 } >&5
1025
1026 cat >&5 <<_ACEOF
1027
1028
1029 ## ----------- ##
1030 ## Core tests. ##
1031 ## ----------- ##
1032
1033 _ACEOF
1034
1035
1036 # Keep a trace of the command line.
1037 # Strip out --no-create and --no-recursion so they do not pile up.
1038 # Strip out --silent because we don't want to record it for future runs.
1039 # Also quote any args containing shell meta-characters.
1040 # Make two passes to allow for proper duplicate-argument suppression.
1041 ac_configure_args=
1042 ac_configure_args0=
1043 ac_configure_args1=
1044 ac_sep=
1045 ac_must_keep_next=false
1046 for ac_pass in 1 2
1047 do
1048 for ac_arg
1049 do
1050 case $ac_arg in
1051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1054 continue ;;
1055 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1056 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1057 esac
1058 case $ac_pass in
1059 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1060 2)
1061 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1062 if test $ac_must_keep_next = true; then
1063 ac_must_keep_next=false # Got value, back to normal.
1064 else
1065 case $ac_arg in
1066 *=* | --config-cache | -C | -disable-* | --disable-* \
1067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1069 | -with-* | --with-* | -without-* | --without-* | --x)
1070 case "$ac_configure_args0 " in
1071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1072 esac
1073 ;;
1074 -* ) ac_must_keep_next=true ;;
1075 esac
1076 fi
1077 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1078 # Get rid of the leading space.
1079 ac_sep=" "
1080 ;;
1081 esac
1082 done
1083 done
1084 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1085 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1086
1087 # When interrupted or exit'd, cleanup temporary files, and complete
1088 # config.log. We remove comments because anyway the quotes in there
1089 # would cause problems or look ugly.
1090 # WARNING: Be sure not to use single quotes in there, as some shells,
1091 # such as our DU 5.0 friend, will then `close' the trap.
1092 trap 'exit_status=$?
1093 # Save into config.log some information that might help in debugging.
1094 {
1095 echo
1096
1097 cat <<\_ASBOX
1098 ## ---------------- ##
1099 ## Cache variables. ##
1100 ## ---------------- ##
1101 _ASBOX
1102 echo
1103 # The following way of writing the cache mishandles newlines in values,
1104 {
1105 (set) 2>&1 |
1106 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1107 *ac_space=\ *)
1108 sed -n \
1109 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1111 ;;
1112 *)
1113 sed -n \
1114 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1115 ;;
1116 esac;
1117 }
1118 echo
1119
1120 cat <<\_ASBOX
1121 ## ----------------- ##
1122 ## Output variables. ##
1123 ## ----------------- ##
1124 _ASBOX
1125 echo
1126 for ac_var in $ac_subst_vars
1127 do
1128 eval ac_val=$`echo $ac_var`
1129 echo "$ac_var='"'"'$ac_val'"'"'"
1130 done | sort
1131 echo
1132
1133 if test -n "$ac_subst_files"; then
1134 cat <<\_ASBOX
1135 ## ------------- ##
1136 ## Output files. ##
1137 ## ------------- ##
1138 _ASBOX
1139 echo
1140 for ac_var in $ac_subst_files
1141 do
1142 eval ac_val=$`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
1144 done | sort
1145 echo
1146 fi
1147
1148 if test -s confdefs.h; then
1149 cat <<\_ASBOX
1150 ## ----------- ##
1151 ## confdefs.h. ##
1152 ## ----------- ##
1153 _ASBOX
1154 echo
1155 sed "/^$/d" confdefs.h | sort
1156 echo
1157 fi
1158 test "$ac_signal" != 0 &&
1159 echo "$as_me: caught signal $ac_signal"
1160 echo "$as_me: exit $exit_status"
1161 } >&5
1162 rm -f core *.core &&
1163 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1164 exit $exit_status
1165 ' 0
1166 for ac_signal in 1 2 13 15; do
1167 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1168 done
1169 ac_signal=0
1170
1171 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1172 rm -rf conftest* confdefs.h
1173 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1174 echo >confdefs.h
1175
1176 # Predefined preprocessor variables.
1177
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_NAME "$PACKAGE_NAME"
1180 _ACEOF
1181
1182
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1185 _ACEOF
1186
1187
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1190 _ACEOF
1191
1192
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_STRING "$PACKAGE_STRING"
1195 _ACEOF
1196
1197
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1200 _ACEOF
1201
1202
1203 # Let the site file select an alternate cache file if it wants to.
1204 # Prefer explicitly selected file to automatically selected ones.
1205 if test -z "$CONFIG_SITE"; then
1206 if test "x$prefix" != xNONE; then
1207 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1208 else
1209 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1210 fi
1211 fi
1212 for ac_site_file in $CONFIG_SITE; do
1213 if test -r "$ac_site_file"; then
1214 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1215 echo "$as_me: loading site script $ac_site_file" >&6;}
1216 sed 's/^/| /' "$ac_site_file" >&5
1217 . "$ac_site_file"
1218 fi
1219 done
1220
1221 if test -r "$cache_file"; then
1222 # Some versions of bash will fail to source /dev/null (special
1223 # files actually), so we avoid doing that.
1224 if test -f "$cache_file"; then
1225 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1226 echo "$as_me: loading cache $cache_file" >&6;}
1227 case $cache_file in
1228 [\\/]* | ?:[\\/]* ) . $cache_file;;
1229 *) . ./$cache_file;;
1230 esac
1231 fi
1232 else
1233 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1234 echo "$as_me: creating cache $cache_file" >&6;}
1235 >$cache_file
1236 fi
1237
1238 # Check that the precious variables saved in the cache have kept the same
1239 # value.
1240 ac_cache_corrupted=false
1241 for ac_var in `(set) 2>&1 |
1242 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1243 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1244 eval ac_new_set=\$ac_env_${ac_var}_set
1245 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1246 eval ac_new_val="\$ac_env_${ac_var}_value"
1247 case $ac_old_set,$ac_new_set in
1248 set,)
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1251 ac_cache_corrupted=: ;;
1252 ,set)
1253 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1255 ac_cache_corrupted=: ;;
1256 ,);;
1257 *)
1258 if test "x$ac_old_val" != "x$ac_new_val"; then
1259 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1260 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1261 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1262 echo "$as_me: former value: $ac_old_val" >&2;}
1263 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1264 echo "$as_me: current value: $ac_new_val" >&2;}
1265 ac_cache_corrupted=:
1266 fi;;
1267 esac
1268 # Pass precious variables to config.status.
1269 if test "$ac_new_set" = set; then
1270 case $ac_new_val in
1271 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1273 *) ac_arg=$ac_var=$ac_new_val ;;
1274 esac
1275 case " $ac_configure_args " in
1276 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1277 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1278 esac
1279 fi
1280 done
1281 if $ac_cache_corrupted; then
1282 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1283 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1284 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1285 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1286 { (exit 1); exit 1; }; }
1287 fi
1288
1289 ac_ext=c
1290 ac_cpp='$CPP $CPPFLAGS'
1291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314 ac_aux_dir=
1315 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1316 if test -f $ac_dir/install-sh; then
1317 ac_aux_dir=$ac_dir
1318 ac_install_sh="$ac_aux_dir/install-sh -c"
1319 break
1320 elif test -f $ac_dir/install.sh; then
1321 ac_aux_dir=$ac_dir
1322 ac_install_sh="$ac_aux_dir/install.sh -c"
1323 break
1324 elif test -f $ac_dir/shtool; then
1325 ac_aux_dir=$ac_dir
1326 ac_install_sh="$ac_aux_dir/shtool install -c"
1327 break
1328 fi
1329 done
1330 if test -z "$ac_aux_dir"; then
1331 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1332 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1333 { (exit 1); exit 1; }; }
1334 fi
1335 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1336 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1337 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1338
1339 # Make sure we can run config.sub.
1340 $ac_config_sub sun4 >/dev/null 2>&1 ||
1341 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1342 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1343 { (exit 1); exit 1; }; }
1344
1345 echo "$as_me:$LINENO: checking build system type" >&5
1346 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1347 if test "${ac_cv_build+set}" = set; then
1348 echo $ECHO_N "(cached) $ECHO_C" >&6
1349 else
1350 ac_cv_build_alias=$build_alias
1351 test -z "$ac_cv_build_alias" &&
1352 ac_cv_build_alias=`$ac_config_guess`
1353 test -z "$ac_cv_build_alias" &&
1354 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1355 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1356 { (exit 1); exit 1; }; }
1357 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1358 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1359 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1360 { (exit 1); exit 1; }; }
1361
1362 fi
1363 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1364 echo "${ECHO_T}$ac_cv_build" >&6
1365 build=$ac_cv_build
1366 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1367 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1368 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1369
1370
1371 echo "$as_me:$LINENO: checking host system type" >&5
1372 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1373 if test "${ac_cv_host+set}" = set; then
1374 echo $ECHO_N "(cached) $ECHO_C" >&6
1375 else
1376 ac_cv_host_alias=$host_alias
1377 test -z "$ac_cv_host_alias" &&
1378 ac_cv_host_alias=$ac_cv_build_alias
1379 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1380 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1381 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1382 { (exit 1); exit 1; }; }
1383
1384 fi
1385 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1386 echo "${ECHO_T}$ac_cv_host" >&6
1387 host=$ac_cv_host
1388 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1389 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1390 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1391
1392
1393 echo "$as_me:$LINENO: checking target system type" >&5
1394 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1395 if test "${ac_cv_target+set}" = set; then
1396 echo $ECHO_N "(cached) $ECHO_C" >&6
1397 else
1398 ac_cv_target_alias=$target_alias
1399 test "x$ac_cv_target_alias" = "x" &&
1400 ac_cv_target_alias=$ac_cv_host_alias
1401 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1402 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1403 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1404 { (exit 1); exit 1; }; }
1405
1406 fi
1407 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1408 echo "${ECHO_T}$ac_cv_target" >&6
1409 target=$ac_cv_target
1410 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1411 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1412 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1413
1414
1415 # The aliases save the names the user supplied, while $host etc.
1416 # will get canonicalized.
1417 test -n "$target_alias" &&
1418 test "$program_prefix$program_suffix$program_transform_name" = \
1419 NONENONEs,x,x, &&
1420 program_prefix=${target_alias}-
1421
1422
1423
1424
1425
1426
1427 # Check whether --with-gcc or --without-gcc was given.
1428 if test "${with_gcc+set}" = set; then
1429 withval="$with_gcc"
1430
1431 fi;
1432 V_CCOPT="-O"
1433 V_INCLS=""
1434 if test "${srcdir}" != "." ; then
1435 V_INCLS="-I\$(srcdir)"
1436 fi
1437 if test "${CFLAGS+set}" = set; then
1438 LBL_CFLAGS="$CFLAGS"
1439 fi
1440 if test -z "$CC" ; then
1441 case "$target_os" in
1442
1443 bsdi*)
1444 # Extract the first word of "shlicc2", so it can be a program name with args.
1445 set dummy shlicc2; ac_word=$2
1446 echo "$as_me:$LINENO: checking for $ac_word" >&5
1447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1448 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1449 echo $ECHO_N "(cached) $ECHO_C" >&6
1450 else
1451 if test -n "$SHLICC2"; then
1452 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1453 else
1454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1455 for as_dir in $PATH
1456 do
1457 IFS=$as_save_IFS
1458 test -z "$as_dir" && as_dir=.
1459 for ac_exec_ext in '' $ac_executable_extensions; do
1460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1461 ac_cv_prog_SHLICC2="yes"
1462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1463 break 2
1464 fi
1465 done
1466 done
1467
1468 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1469 fi
1470 fi
1471 SHLICC2=$ac_cv_prog_SHLICC2
1472 if test -n "$SHLICC2"; then
1473 echo "$as_me:$LINENO: result: $SHLICC2" >&5
1474 echo "${ECHO_T}$SHLICC2" >&6
1475 else
1476 echo "$as_me:$LINENO: result: no" >&5
1477 echo "${ECHO_T}no" >&6
1478 fi
1479
1480 if test $SHLICC2 = yes ; then
1481 CC=shlicc2
1482 export CC
1483 fi
1484 ;;
1485 esac
1486 fi
1487 if test -z "$CC" -a "$with_gcc" = no ; then
1488 CC=cc
1489 export CC
1490 fi
1491 ac_ext=c
1492 ac_cpp='$CPP $CPPFLAGS'
1493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1496 if test -n "$ac_tool_prefix"; then
1497 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1498 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1499 echo "$as_me:$LINENO: checking for $ac_word" >&5
1500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1501 if test "${ac_cv_prog_CC+set}" = set; then
1502 echo $ECHO_N "(cached) $ECHO_C" >&6
1503 else
1504 if test -n "$CC"; then
1505 ac_cv_prog_CC="$CC" # Let the user override the test.
1506 else
1507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1508 for as_dir in $PATH
1509 do
1510 IFS=$as_save_IFS
1511 test -z "$as_dir" && as_dir=.
1512 for ac_exec_ext in '' $ac_executable_extensions; do
1513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1514 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1516 break 2
1517 fi
1518 done
1519 done
1520
1521 fi
1522 fi
1523 CC=$ac_cv_prog_CC
1524 if test -n "$CC"; then
1525 echo "$as_me:$LINENO: result: $CC" >&5
1526 echo "${ECHO_T}$CC" >&6
1527 else
1528 echo "$as_me:$LINENO: result: no" >&5
1529 echo "${ECHO_T}no" >&6
1530 fi
1531
1532 fi
1533 if test -z "$ac_cv_prog_CC"; then
1534 ac_ct_CC=$CC
1535 # Extract the first word of "gcc", so it can be a program name with args.
1536 set dummy gcc; ac_word=$2
1537 echo "$as_me:$LINENO: checking for $ac_word" >&5
1538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
1541 else
1542 if test -n "$ac_ct_CC"; then
1543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1544 else
1545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1546 for as_dir in $PATH
1547 do
1548 IFS=$as_save_IFS
1549 test -z "$as_dir" && as_dir=.
1550 for ac_exec_ext in '' $ac_executable_extensions; do
1551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1552 ac_cv_prog_ac_ct_CC="gcc"
1553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1554 break 2
1555 fi
1556 done
1557 done
1558
1559 fi
1560 fi
1561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1562 if test -n "$ac_ct_CC"; then
1563 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1564 echo "${ECHO_T}$ac_ct_CC" >&6
1565 else
1566 echo "$as_me:$LINENO: result: no" >&5
1567 echo "${ECHO_T}no" >&6
1568 fi
1569
1570 CC=$ac_ct_CC
1571 else
1572 CC="$ac_cv_prog_CC"
1573 fi
1574
1575 if test -z "$CC"; then
1576 if test -n "$ac_tool_prefix"; then
1577 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1578 set dummy ${ac_tool_prefix}cc; ac_word=$2
1579 echo "$as_me:$LINENO: checking for $ac_word" >&5
1580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1581 if test "${ac_cv_prog_CC+set}" = set; then
1582 echo $ECHO_N "(cached) $ECHO_C" >&6
1583 else
1584 if test -n "$CC"; then
1585 ac_cv_prog_CC="$CC" # Let the user override the test.
1586 else
1587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 for as_dir in $PATH
1589 do
1590 IFS=$as_save_IFS
1591 test -z "$as_dir" && as_dir=.
1592 for ac_exec_ext in '' $ac_executable_extensions; do
1593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1594 ac_cv_prog_CC="${ac_tool_prefix}cc"
1595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1596 break 2
1597 fi
1598 done
1599 done
1600
1601 fi
1602 fi
1603 CC=$ac_cv_prog_CC
1604 if test -n "$CC"; then
1605 echo "$as_me:$LINENO: result: $CC" >&5
1606 echo "${ECHO_T}$CC" >&6
1607 else
1608 echo "$as_me:$LINENO: result: no" >&5
1609 echo "${ECHO_T}no" >&6
1610 fi
1611
1612 fi
1613 if test -z "$ac_cv_prog_CC"; then
1614 ac_ct_CC=$CC
1615 # Extract the first word of "cc", so it can be a program name with args.
1616 set dummy cc; ac_word=$2
1617 echo "$as_me:$LINENO: checking for $ac_word" >&5
1618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 else
1622 if test -n "$ac_ct_CC"; then
1623 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1624 else
1625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626 for as_dir in $PATH
1627 do
1628 IFS=$as_save_IFS
1629 test -z "$as_dir" && as_dir=.
1630 for ac_exec_ext in '' $ac_executable_extensions; do
1631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1632 ac_cv_prog_ac_ct_CC="cc"
1633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1634 break 2
1635 fi
1636 done
1637 done
1638
1639 fi
1640 fi
1641 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1642 if test -n "$ac_ct_CC"; then
1643 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1644 echo "${ECHO_T}$ac_ct_CC" >&6
1645 else
1646 echo "$as_me:$LINENO: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1648 fi
1649
1650 CC=$ac_ct_CC
1651 else
1652 CC="$ac_cv_prog_CC"
1653 fi
1654
1655 fi
1656 if test -z "$CC"; then
1657 # Extract the first word of "cc", so it can be a program name with args.
1658 set dummy cc; ac_word=$2
1659 echo "$as_me:$LINENO: checking for $ac_word" >&5
1660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661 if test "${ac_cv_prog_CC+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 else
1664 if test -n "$CC"; then
1665 ac_cv_prog_CC="$CC" # Let the user override the test.
1666 else
1667 ac_prog_rejected=no
1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669 for as_dir in $PATH
1670 do
1671 IFS=$as_save_IFS
1672 test -z "$as_dir" && as_dir=.
1673 for ac_exec_ext in '' $ac_executable_extensions; do
1674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1675 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1676 ac_prog_rejected=yes
1677 continue
1678 fi
1679 ac_cv_prog_CC="cc"
1680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1681 break 2
1682 fi
1683 done
1684 done
1685
1686 if test $ac_prog_rejected = yes; then
1687 # We found a bogon in the path, so make sure we never use it.
1688 set dummy $ac_cv_prog_CC
1689 shift
1690 if test $# != 0; then
1691 # We chose a different compiler from the bogus one.
1692 # However, it has the same basename, so the bogon will be chosen
1693 # first if we set CC to just the basename; use the full file name.
1694 shift
1695 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1696 fi
1697 fi
1698 fi
1699 fi
1700 CC=$ac_cv_prog_CC
1701 if test -n "$CC"; then
1702 echo "$as_me:$LINENO: result: $CC" >&5
1703 echo "${ECHO_T}$CC" >&6
1704 else
1705 echo "$as_me:$LINENO: result: no" >&5
1706 echo "${ECHO_T}no" >&6
1707 fi
1708
1709 fi
1710 if test -z "$CC"; then
1711 if test -n "$ac_tool_prefix"; then
1712 for ac_prog in cl
1713 do
1714 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1715 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1716 echo "$as_me:$LINENO: checking for $ac_word" >&5
1717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1718 if test "${ac_cv_prog_CC+set}" = set; then
1719 echo $ECHO_N "(cached) $ECHO_C" >&6
1720 else
1721 if test -n "$CC"; then
1722 ac_cv_prog_CC="$CC" # Let the user override the test.
1723 else
1724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1725 for as_dir in $PATH
1726 do
1727 IFS=$as_save_IFS
1728 test -z "$as_dir" && as_dir=.
1729 for ac_exec_ext in '' $ac_executable_extensions; do
1730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1731 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1733 break 2
1734 fi
1735 done
1736 done
1737
1738 fi
1739 fi
1740 CC=$ac_cv_prog_CC
1741 if test -n "$CC"; then
1742 echo "$as_me:$LINENO: result: $CC" >&5
1743 echo "${ECHO_T}$CC" >&6
1744 else
1745 echo "$as_me:$LINENO: result: no" >&5
1746 echo "${ECHO_T}no" >&6
1747 fi
1748
1749 test -n "$CC" && break
1750 done
1751 fi
1752 if test -z "$CC"; then
1753 ac_ct_CC=$CC
1754 for ac_prog in cl
1755 do
1756 # Extract the first word of "$ac_prog", so it can be a program name with args.
1757 set dummy $ac_prog; ac_word=$2
1758 echo "$as_me:$LINENO: checking for $ac_word" >&5
1759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1760 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1761 echo $ECHO_N "(cached) $ECHO_C" >&6
1762 else
1763 if test -n "$ac_ct_CC"; then
1764 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1765 else
1766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767 for as_dir in $PATH
1768 do
1769 IFS=$as_save_IFS
1770 test -z "$as_dir" && as_dir=.
1771 for ac_exec_ext in '' $ac_executable_extensions; do
1772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1773 ac_cv_prog_ac_ct_CC="$ac_prog"
1774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775 break 2
1776 fi
1777 done
1778 done
1779
1780 fi
1781 fi
1782 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1783 if test -n "$ac_ct_CC"; then
1784 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1785 echo "${ECHO_T}$ac_ct_CC" >&6
1786 else
1787 echo "$as_me:$LINENO: result: no" >&5
1788 echo "${ECHO_T}no" >&6
1789 fi
1790
1791 test -n "$ac_ct_CC" && break
1792 done
1793
1794 CC=$ac_ct_CC
1795 fi
1796
1797 fi
1798
1799
1800 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1801 See \`config.log' for more details." >&5
1802 echo "$as_me: error: no acceptable C compiler found in \$PATH
1803 See \`config.log' for more details." >&2;}
1804 { (exit 1); exit 1; }; }
1805
1806 # Provide some information about the compiler.
1807 echo "$as_me:$LINENO:" \
1808 "checking for C compiler version" >&5
1809 ac_compiler=`set X $ac_compile; echo $2`
1810 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1811 (eval $ac_compiler --version </dev/null >&5) 2>&5
1812 ac_status=$?
1813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1814 (exit $ac_status); }
1815 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1816 (eval $ac_compiler -v </dev/null >&5) 2>&5
1817 ac_status=$?
1818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1819 (exit $ac_status); }
1820 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1821 (eval $ac_compiler -V </dev/null >&5) 2>&5
1822 ac_status=$?
1823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1824 (exit $ac_status); }
1825
1826 cat >conftest.$ac_ext <<_ACEOF
1827 /* confdefs.h. */
1828 _ACEOF
1829 cat confdefs.h >>conftest.$ac_ext
1830 cat >>conftest.$ac_ext <<_ACEOF
1831 /* end confdefs.h. */
1832
1833 int
1834 main ()
1835 {
1836
1837 ;
1838 return 0;
1839 }
1840 _ACEOF
1841 ac_clean_files_save=$ac_clean_files
1842 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1843 # Try to create an executable without -o first, disregard a.out.
1844 # It will help us diagnose broken compilers, and finding out an intuition
1845 # of exeext.
1846 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1847 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1848 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1849 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1850 (eval $ac_link_default) 2>&5
1851 ac_status=$?
1852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853 (exit $ac_status); }; then
1854 # Find the output, starting from the most likely. This scheme is
1855 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1856 # resort.
1857
1858 # Be careful to initialize this variable, since it used to be cached.
1859 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1860 ac_cv_exeext=
1861 # b.out is created by i960 compilers.
1862 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1863 do
1864 test -f "$ac_file" || continue
1865 case $ac_file in
1866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1867 ;;
1868 conftest.$ac_ext )
1869 # This is the source file.
1870 ;;
1871 [ab].out )
1872 # We found the default executable, but exeext='' is most
1873 # certainly right.
1874 break;;
1875 *.* )
1876 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1877 # FIXME: I believe we export ac_cv_exeext for Libtool,
1878 # but it would be cool to find out if it's true. Does anybody
1879 # maintain Libtool? --akim.
1880 export ac_cv_exeext
1881 break;;
1882 * )
1883 break;;
1884 esac
1885 done
1886 else
1887 echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1889
1890 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1891 See \`config.log' for more details." >&5
1892 echo "$as_me: error: C compiler cannot create executables
1893 See \`config.log' for more details." >&2;}
1894 { (exit 77); exit 77; }; }
1895 fi
1896
1897 ac_exeext=$ac_cv_exeext
1898 echo "$as_me:$LINENO: result: $ac_file" >&5
1899 echo "${ECHO_T}$ac_file" >&6
1900
1901 # Check the compiler produces executables we can run. If not, either
1902 # the compiler is broken, or we cross compile.
1903 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1904 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1905 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1906 # If not cross compiling, check that we can run a simple program.
1907 if test "$cross_compiling" != yes; then
1908 if { ac_try='./$ac_file'
1909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1910 (eval $ac_try) 2>&5
1911 ac_status=$?
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }; }; then
1914 cross_compiling=no
1915 else
1916 if test "$cross_compiling" = maybe; then
1917 cross_compiling=yes
1918 else
1919 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1920 If you meant to cross compile, use \`--host'.
1921 See \`config.log' for more details." >&5
1922 echo "$as_me: error: cannot run C compiled programs.
1923 If you meant to cross compile, use \`--host'.
1924 See \`config.log' for more details." >&2;}
1925 { (exit 1); exit 1; }; }
1926 fi
1927 fi
1928 fi
1929 echo "$as_me:$LINENO: result: yes" >&5
1930 echo "${ECHO_T}yes" >&6
1931
1932 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1933 ac_clean_files=$ac_clean_files_save
1934 # Check the compiler produces executables we can run. If not, either
1935 # the compiler is broken, or we cross compile.
1936 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1937 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1938 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1939 echo "${ECHO_T}$cross_compiling" >&6
1940
1941 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1942 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1944 (eval $ac_link) 2>&5
1945 ac_status=$?
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); }; then
1948 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1949 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1950 # work properly (i.e., refer to `conftest.exe'), while it won't with
1951 # `rm'.
1952 for ac_file in conftest.exe conftest conftest.*; do
1953 test -f "$ac_file" || continue
1954 case $ac_file in
1955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1956 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1957 export ac_cv_exeext
1958 break;;
1959 * ) break;;
1960 esac
1961 done
1962 else
1963 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1964 See \`config.log' for more details." >&5
1965 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1966 See \`config.log' for more details." >&2;}
1967 { (exit 1); exit 1; }; }
1968 fi
1969
1970 rm -f conftest$ac_cv_exeext
1971 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1972 echo "${ECHO_T}$ac_cv_exeext" >&6
1973
1974 rm -f conftest.$ac_ext
1975 EXEEXT=$ac_cv_exeext
1976 ac_exeext=$EXEEXT
1977 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1978 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1979 if test "${ac_cv_objext+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1981 else
1982 cat >conftest.$ac_ext <<_ACEOF
1983 /* confdefs.h. */
1984 _ACEOF
1985 cat confdefs.h >>conftest.$ac_ext
1986 cat >>conftest.$ac_ext <<_ACEOF
1987 /* end confdefs.h. */
1988
1989 int
1990 main ()
1991 {
1992
1993 ;
1994 return 0;
1995 }
1996 _ACEOF
1997 rm -f conftest.o conftest.obj
1998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1999 (eval $ac_compile) 2>&5
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; then
2003 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2004 case $ac_file in
2005 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2006 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2007 break;;
2008 esac
2009 done
2010 else
2011 echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.$ac_ext >&5
2013
2014 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2015 See \`config.log' for more details." >&5
2016 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2017 See \`config.log' for more details." >&2;}
2018 { (exit 1); exit 1; }; }
2019 fi
2020
2021 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2022 fi
2023 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2024 echo "${ECHO_T}$ac_cv_objext" >&6
2025 OBJEXT=$ac_cv_objext
2026 ac_objext=$OBJEXT
2027 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2028 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2029 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032 cat >conftest.$ac_ext <<_ACEOF
2033 /* confdefs.h. */
2034 _ACEOF
2035 cat confdefs.h >>conftest.$ac_ext
2036 cat >>conftest.$ac_ext <<_ACEOF
2037 /* end confdefs.h. */
2038
2039 int
2040 main ()
2041 {
2042 #ifndef __GNUC__
2043 choke me
2044 #endif
2045
2046 ;
2047 return 0;
2048 }
2049 _ACEOF
2050 rm -f conftest.$ac_objext
2051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2052 (eval $ac_compile) 2>conftest.er1
2053 ac_status=$?
2054 grep -v '^ *+' conftest.er1 >conftest.err
2055 rm -f conftest.er1
2056 cat conftest.err >&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); } &&
2059 { ac_try='test -z "$ac_c_werror_flag"
2060 || test ! -s conftest.err'
2061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062 (eval $ac_try) 2>&5
2063 ac_status=$?
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }; } &&
2066 { ac_try='test -s conftest.$ac_objext'
2067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068 (eval $ac_try) 2>&5
2069 ac_status=$?
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; }; then
2072 ac_compiler_gnu=yes
2073 else
2074 echo "$as_me: failed program was:" >&5
2075 sed 's/^/| /' conftest.$ac_ext >&5
2076
2077 ac_compiler_gnu=no
2078 fi
2079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2080 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2081
2082 fi
2083 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2084 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2085 GCC=`test $ac_compiler_gnu = yes && echo yes`
2086 ac_test_CFLAGS=${CFLAGS+set}
2087 ac_save_CFLAGS=$CFLAGS
2088 CFLAGS="-g"
2089 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2090 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2091 if test "${ac_cv_prog_cc_g+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 else
2094 cat >conftest.$ac_ext <<_ACEOF
2095 /* confdefs.h. */
2096 _ACEOF
2097 cat confdefs.h >>conftest.$ac_ext
2098 cat >>conftest.$ac_ext <<_ACEOF
2099 /* end confdefs.h. */
2100
2101 int
2102 main ()
2103 {
2104
2105 ;
2106 return 0;
2107 }
2108 _ACEOF
2109 rm -f conftest.$ac_objext
2110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2111 (eval $ac_compile) 2>conftest.er1
2112 ac_status=$?
2113 grep -v '^ *+' conftest.er1 >conftest.err
2114 rm -f conftest.er1
2115 cat conftest.err >&5
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); } &&
2118 { ac_try='test -z "$ac_c_werror_flag"
2119 || test ! -s conftest.err'
2120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2121 (eval $ac_try) 2>&5
2122 ac_status=$?
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }; } &&
2125 { ac_try='test -s conftest.$ac_objext'
2126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2127 (eval $ac_try) 2>&5
2128 ac_status=$?
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }; }; then
2131 ac_cv_prog_cc_g=yes
2132 else
2133 echo "$as_me: failed program was:" >&5
2134 sed 's/^/| /' conftest.$ac_ext >&5
2135
2136 ac_cv_prog_cc_g=no
2137 fi
2138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2139 fi
2140 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2141 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2142 if test "$ac_test_CFLAGS" = set; then
2143 CFLAGS=$ac_save_CFLAGS
2144 elif test $ac_cv_prog_cc_g = yes; then
2145 if test "$GCC" = yes; then
2146 CFLAGS="-g -O2"
2147 else
2148 CFLAGS="-g"
2149 fi
2150 else
2151 if test "$GCC" = yes; then
2152 CFLAGS="-O2"
2153 else
2154 CFLAGS=
2155 fi
2156 fi
2157 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2158 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2159 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 else
2162 ac_cv_prog_cc_stdc=no
2163 ac_save_CC=$CC
2164 cat >conftest.$ac_ext <<_ACEOF
2165 /* confdefs.h. */
2166 _ACEOF
2167 cat confdefs.h >>conftest.$ac_ext
2168 cat >>conftest.$ac_ext <<_ACEOF
2169 /* end confdefs.h. */
2170 #include <stdarg.h>
2171 #include <stdio.h>
2172 #include <sys/types.h>
2173 #include <sys/stat.h>
2174 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2175 struct buf { int x; };
2176 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2177 static char *e (p, i)
2178 char **p;
2179 int i;
2180 {
2181 return p[i];
2182 }
2183 static char *f (char * (*g) (char **, int), char **p, ...)
2184 {
2185 char *s;
2186 va_list v;
2187 va_start (v,p);
2188 s = g (p, va_arg (v,int));
2189 va_end (v);
2190 return s;
2191 }
2192
2193 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2194 function prototypes and stuff, but not '\xHH' hex character constants.
2195 These don't provoke an error unfortunately, instead are silently treated
2196 as 'x'. The following induces an error, until -std1 is added to get
2197 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2198 array size at least. It's necessary to write '\x00'==0 to get something
2199 that's true only with -std1. */
2200 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2201
2202 int test (int i, double x);
2203 struct s1 {int (*f) (int a);};
2204 struct s2 {int (*f) (double a);};
2205 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2206 int argc;
2207 char **argv;
2208 int
2209 main ()
2210 {
2211 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2212 ;
2213 return 0;
2214 }
2215 _ACEOF
2216 # Don't try gcc -ansi; that turns off useful extensions and
2217 # breaks some systems' header files.
2218 # AIX -qlanglvl=ansi
2219 # Ultrix and OSF/1 -std1
2220 # HP-UX 10.20 and later -Ae
2221 # HP-UX older versions -Aa -D_HPUX_SOURCE
2222 # SVR4 -Xc -D__EXTENSIONS__
2223 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2224 do
2225 CC="$ac_save_CC $ac_arg"
2226 rm -f conftest.$ac_objext
2227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228 (eval $ac_compile) 2>conftest.er1
2229 ac_status=$?
2230 grep -v '^ *+' conftest.er1 >conftest.err
2231 rm -f conftest.er1
2232 cat conftest.err >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); } &&
2235 { ac_try='test -z "$ac_c_werror_flag"
2236 || test ! -s conftest.err'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; } &&
2242 { ac_try='test -s conftest.$ac_objext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 ac_cv_prog_cc_stdc=$ac_arg
2249 break
2250 else
2251 echo "$as_me: failed program was:" >&5
2252 sed 's/^/| /' conftest.$ac_ext >&5
2253
2254 fi
2255 rm -f conftest.err conftest.$ac_objext
2256 done
2257 rm -f conftest.$ac_ext conftest.$ac_objext
2258 CC=$ac_save_CC
2259
2260 fi
2261
2262 case "x$ac_cv_prog_cc_stdc" in
2263 x|xno)
2264 echo "$as_me:$LINENO: result: none needed" >&5
2265 echo "${ECHO_T}none needed" >&6 ;;
2266 *)
2267 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2268 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2269 CC="$CC $ac_cv_prog_cc_stdc" ;;
2270 esac
2271
2272 # Some people use a C++ compiler to compile C. Since we use `exit',
2273 # in C++ we need to declare it. In case someone uses the same compiler
2274 # for both compiling C and C++ we need to have the C++ compiler decide
2275 # the declaration of exit, since it's the most demanding environment.
2276 cat >conftest.$ac_ext <<_ACEOF
2277 #ifndef __cplusplus
2278 choke me
2279 #endif
2280 _ACEOF
2281 rm -f conftest.$ac_objext
2282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283 (eval $ac_compile) 2>conftest.er1
2284 ac_status=$?
2285 grep -v '^ *+' conftest.er1 >conftest.err
2286 rm -f conftest.er1
2287 cat conftest.err >&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); } &&
2290 { ac_try='test -z "$ac_c_werror_flag"
2291 || test ! -s conftest.err'
2292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293 (eval $ac_try) 2>&5
2294 ac_status=$?
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }; } &&
2297 { ac_try='test -s conftest.$ac_objext'
2298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299 (eval $ac_try) 2>&5
2300 ac_status=$?
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; }; then
2303 for ac_declaration in \
2304 '' \
2305 'extern "C" void std::exit (int) throw (); using std::exit;' \
2306 'extern "C" void std::exit (int); using std::exit;' \
2307 'extern "C" void exit (int) throw ();' \
2308 'extern "C" void exit (int);' \
2309 'void exit (int);'
2310 do
2311 cat >conftest.$ac_ext <<_ACEOF
2312 /* confdefs.h. */
2313 _ACEOF
2314 cat confdefs.h >>conftest.$ac_ext
2315 cat >>conftest.$ac_ext <<_ACEOF
2316 /* end confdefs.h. */
2317 $ac_declaration
2318 #include <stdlib.h>
2319 int
2320 main ()
2321 {
2322 exit (42);
2323 ;
2324 return 0;
2325 }
2326 _ACEOF
2327 rm -f conftest.$ac_objext
2328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2329 (eval $ac_compile) 2>conftest.er1
2330 ac_status=$?
2331 grep -v '^ *+' conftest.er1 >conftest.err
2332 rm -f conftest.er1
2333 cat conftest.err >&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); } &&
2336 { ac_try='test -z "$ac_c_werror_flag"
2337 || test ! -s conftest.err'
2338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339 (eval $ac_try) 2>&5
2340 ac_status=$?
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }; } &&
2343 { ac_try='test -s conftest.$ac_objext'
2344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345 (eval $ac_try) 2>&5
2346 ac_status=$?
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }; }; then
2349 :
2350 else
2351 echo "$as_me: failed program was:" >&5
2352 sed 's/^/| /' conftest.$ac_ext >&5
2353
2354 continue
2355 fi
2356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2357 cat >conftest.$ac_ext <<_ACEOF
2358 /* confdefs.h. */
2359 _ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h. */
2363 $ac_declaration
2364 int
2365 main ()
2366 {
2367 exit (42);
2368 ;
2369 return 0;
2370 }
2371 _ACEOF
2372 rm -f conftest.$ac_objext
2373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2374 (eval $ac_compile) 2>conftest.er1
2375 ac_status=$?
2376 grep -v '^ *+' conftest.er1 >conftest.err
2377 rm -f conftest.er1
2378 cat conftest.err >&5
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); } &&
2381 { ac_try='test -z "$ac_c_werror_flag"
2382 || test ! -s conftest.err'
2383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 (eval $ac_try) 2>&5
2385 ac_status=$?
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; } &&
2388 { ac_try='test -s conftest.$ac_objext'
2389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 (eval $ac_try) 2>&5
2391 ac_status=$?
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; }; then
2394 break
2395 else
2396 echo "$as_me: failed program was:" >&5
2397 sed 's/^/| /' conftest.$ac_ext >&5
2398
2399 fi
2400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2401 done
2402 rm -f conftest*
2403 if test -n "$ac_declaration"; then
2404 echo '#ifdef __cplusplus' >>confdefs.h
2405 echo $ac_declaration >>confdefs.h
2406 echo '#endif' >>confdefs.h
2407 fi
2408
2409 else
2410 echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2412
2413 fi
2414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2415 ac_ext=c
2416 ac_cpp='$CPP $CPPFLAGS'
2417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2420
2421 if test "$GCC" = yes ; then
2422 if test "$SHLICC2" = yes ; then
2423 ac_cv_lbl_gcc_vers=2
2424 V_CCOPT="-O2"
2425 else
2426 echo "$as_me:$LINENO: checking gcc version" >&5
2427 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
2428 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 else
2431 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2432 sed -e '/^gcc version /!d' \
2433 -e 's/^gcc version //' \
2434 -e 's/ .*//' -e 's/^[^0-9]*//' \
2435 -e 's/\..*//'`
2436 fi
2437
2438 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2439 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
2440 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2441 V_CCOPT="-O2"
2442 fi
2443 fi
2444 else
2445 echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2446 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2447 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2449 else
2450
2451 cat >conftest.$ac_ext <<_ACEOF
2452 /* confdefs.h. */
2453 _ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h. */
2457 #include <sys/types.h>
2458 int
2459 main ()
2460 {
2461 int frob(int, char *)
2462 ;
2463 return 0;
2464 }
2465 _ACEOF
2466 rm -f conftest.$ac_objext
2467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2468 (eval $ac_compile) 2>conftest.er1
2469 ac_status=$?
2470 grep -v '^ *+' conftest.er1 >conftest.err
2471 rm -f conftest.er1
2472 cat conftest.err >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); } &&
2475 { ac_try='test -z "$ac_c_werror_flag"
2476 || test ! -s conftest.err'
2477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478 (eval $ac_try) 2>&5
2479 ac_status=$?
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; } &&
2482 { ac_try='test -s conftest.$ac_objext'
2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484 (eval $ac_try) 2>&5
2485 ac_status=$?
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; }; then
2488 ac_cv_lbl_cc_ansi_prototypes=yes
2489 else
2490 echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2492
2493 ac_cv_lbl_cc_ansi_prototypes=no
2494 fi
2495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2496 fi
2497
2498 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2499 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
2500 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2501 case "$target_os" in
2502
2503 hpux*)
2504 echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2505 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
2506 savedcflags="$CFLAGS"
2507 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2508 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 else
2511 cat >conftest.$ac_ext <<_ACEOF
2512 /* confdefs.h. */
2513 _ACEOF
2514 cat confdefs.h >>conftest.$ac_ext
2515 cat >>conftest.$ac_ext <<_ACEOF
2516 /* end confdefs.h. */
2517 #include <sys/types.h>
2518 int
2519 main ()
2520 {
2521 int frob(int, char *)
2522 ;
2523 return 0;
2524 }
2525 _ACEOF
2526 rm -f conftest.$ac_objext
2527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2528 (eval $ac_compile) 2>conftest.er1
2529 ac_status=$?
2530 grep -v '^ *+' conftest.er1 >conftest.err
2531 rm -f conftest.er1
2532 cat conftest.err >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } &&
2535 { ac_try='test -z "$ac_c_werror_flag"
2536 || test ! -s conftest.err'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 (eval $ac_try) 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; } &&
2542 { ac_try='test -s conftest.$ac_objext'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544 (eval $ac_try) 2>&5
2545 ac_status=$?
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
2548 ac_cv_lbl_cc_hpux_cc_aa=yes
2549 else
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2552
2553 ac_cv_lbl_cc_hpux_cc_aa=no
2554 fi
2555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2556 fi
2557
2558 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2559 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
2560 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2561 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2562 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2563 { (exit 1); exit 1; }; }
2564 fi
2565 CFLAGS="$savedcflags"
2566 V_CCOPT="-Aa $V_CCOPT"
2567
2568 cat >>confdefs.h <<\_ACEOF
2569 #define _HPUX_SOURCE 1
2570 _ACEOF
2571
2572 ;;
2573
2574 *)
2575 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2576 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2577 { (exit 1); exit 1; }; }
2578 ;;
2579 esac
2580 fi
2581 V_INCLS="$V_INCLS -I/usr/local/include"
2582 LDFLAGS="$LDFLAGS -L/usr/local/lib"
2583
2584 case "$target_os" in
2585
2586 irix*)
2587 V_CCOPT="$V_CCOPT -xansi -signed -g3"
2588 ;;
2589
2590 osf*)
2591 V_CCOPT="$V_CCOPT -std1 -g3"
2592 ;;
2593
2594 ultrix*)
2595 echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2596 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2597 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600 cat >conftest.$ac_ext <<_ACEOF
2601 /* confdefs.h. */
2602 _ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2606 #include <sys/types.h>
2607 int
2608 main ()
2609 {
2610 struct a { int b; };
2611 void c(const struct a *)
2612 ;
2613 return 0;
2614 }
2615 _ACEOF
2616 rm -f conftest.$ac_objext
2617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2618 (eval $ac_compile) 2>conftest.er1
2619 ac_status=$?
2620 grep -v '^ *+' conftest.er1 >conftest.err
2621 rm -f conftest.er1
2622 cat conftest.err >&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); } &&
2625 { ac_try='test -z "$ac_c_werror_flag"
2626 || test ! -s conftest.err'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 (eval $ac_try) 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; } &&
2632 { ac_try='test -s conftest.$ac_objext'
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 (eval $ac_try) 2>&5
2635 ac_status=$?
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; }; then
2638 ac_cv_lbl_cc_const_proto=yes
2639 else
2640 echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2642
2643 ac_cv_lbl_cc_const_proto=no
2644 fi
2645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2646 fi
2647
2648 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2649 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
2650 if test $ac_cv_lbl_cc_const_proto = no ; then
2651 cat >>confdefs.h <<\_ACEOF
2652 #define const
2653 _ACEOF
2654
2655 fi
2656 ;;
2657 esac
2658 fi
2659
2660 echo "$as_me:$LINENO: checking for inline" >&5
2661 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2662 save_CFLAGS="$CFLAGS"
2663 CFLAGS="$V_CCOPT"
2664 if test "${ac_cv_lbl_inline+set}" = set; then
2665 echo $ECHO_N "(cached) $ECHO_C" >&6
2666 else
2667
2668 ac_cv_lbl_inline=""
2669 ac_lbl_cc_inline=no
2670 for ac_lbl_inline in inline __inline__ __inline
2671 do
2672 cat >conftest.$ac_ext <<_ACEOF
2673 /* confdefs.h. */
2674 _ACEOF
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h. */
2678 #define inline $ac_lbl_inline
2679 static inline struct iltest *foo(void);
2680 struct iltest {
2681 int iltest1;
2682 int iltest2;
2683 };
2684
2685 static inline struct iltest *
2686 foo()
2687 {
2688 static struct iltest xxx;
2689
2690 return &xxx;
2691 }
2692 int
2693 main ()
2694 {
2695
2696 ;
2697 return 0;
2698 }
2699 _ACEOF
2700 rm -f conftest.$ac_objext
2701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702 (eval $ac_compile) 2>conftest.er1
2703 ac_status=$?
2704 grep -v '^ *+' conftest.er1 >conftest.err
2705 rm -f conftest.er1
2706 cat conftest.err >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } &&
2709 { ac_try='test -z "$ac_c_werror_flag"
2710 || test ! -s conftest.err'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 (eval $ac_try) 2>&5
2713 ac_status=$?
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; } &&
2716 { ac_try='test -s conftest.$ac_objext'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 (eval $ac_try) 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; }; then
2722 ac_lbl_cc_inline=yes
2723 else
2724 echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2726
2727 fi
2728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2729 if test "$ac_lbl_cc_inline" = yes ; then
2730 break;
2731 fi
2732 done
2733 if test "$ac_lbl_cc_inline" = yes ; then
2734 ac_cv_lbl_inline=$ac_lbl_inline
2735 fi
2736 fi
2737
2738 CFLAGS="$save_CFLAGS"
2739 if test ! -z "$ac_cv_lbl_inline" ; then
2740 echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2741 echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2742 else
2743 echo "$as_me:$LINENO: result: no" >&5
2744 echo "${ECHO_T}no" >&6
2745 fi
2746
2747 cat >>confdefs.h <<_ACEOF
2748 #define inline $ac_cv_lbl_inline
2749 _ACEOF
2750
2751
2752 echo "$as_me:$LINENO: checking for __attribute__" >&5
2753 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2754 if test "${ac_cv___attribute__+set}" = set; then
2755 echo $ECHO_N "(cached) $ECHO_C" >&6
2756 else
2757
2758 cat >conftest.$ac_ext <<_ACEOF
2759 /* confdefs.h. */
2760 _ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2764
2765 #include <stdlib.h>
2766
2767 static void foo(void) __attribute__ ((noreturn));
2768
2769 static void
2770 foo(void)
2771 {
2772 exit(1);
2773 }
2774
2775 int
2776 main(int argc, char **argv)
2777 {
2778 foo();
2779 }
2780
2781 _ACEOF
2782 rm -f conftest.$ac_objext
2783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2784 (eval $ac_compile) 2>conftest.er1
2785 ac_status=$?
2786 grep -v '^ *+' conftest.er1 >conftest.err
2787 rm -f conftest.er1
2788 cat conftest.err >&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); } &&
2791 { ac_try='test -z "$ac_c_werror_flag"
2792 || test ! -s conftest.err'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 (eval $ac_try) 2>&5
2795 ac_status=$?
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; } &&
2798 { ac_try='test -s conftest.$ac_objext'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800 (eval $ac_try) 2>&5
2801 ac_status=$?
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; }; then
2804 ac_cv___attribute__=yes
2805 else
2806 echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2808
2809 ac_cv___attribute__=no
2810 fi
2811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2812 fi
2813
2814 if test "$ac_cv___attribute__" = "yes"; then
2815
2816 cat >>confdefs.h <<\_ACEOF
2817 #define HAVE___ATTRIBUTE__ 1
2818 _ACEOF
2819
2820 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
2821 else
2822 V_DEFS="$V_DEFS -D_U_=\"\""
2823 fi
2824 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2825 echo "${ECHO_T}$ac_cv___attribute__" >&6
2826
2827
2828 echo "$as_me:$LINENO: checking for u_int8_t using $CC" >&5
2829 echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6
2830 if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 else
2833 cat >conftest.$ac_ext <<_ACEOF
2834 /* confdefs.h. */
2835 _ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2839
2840 # include "confdefs.h"
2841 # include <sys/types.h>
2842 # if STDC_HEADERS
2843 # include <stdlib.h>
2844 # include <stddef.h>
2845 # endif
2846 int
2847 main ()
2848 {
2849 u_int8_t i
2850 ;
2851 return 0;
2852 }
2853 _ACEOF
2854 rm -f conftest.$ac_objext
2855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2856 (eval $ac_compile) 2>conftest.er1
2857 ac_status=$?
2858 grep -v '^ *+' conftest.er1 >conftest.err
2859 rm -f conftest.er1
2860 cat conftest.err >&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); } &&
2863 { ac_try='test -z "$ac_c_werror_flag"
2864 || test ! -s conftest.err'
2865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 (eval $ac_try) 2>&5
2867 ac_status=$?
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }; } &&
2870 { ac_try='test -s conftest.$ac_objext'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 (eval $ac_try) 2>&5
2873 ac_status=$?
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; }; then
2876 ac_cv_lbl_have_u_int8_t=yes
2877 else
2878 echo "$as_me: failed program was:" >&5
2879 sed 's/^/| /' conftest.$ac_ext >&5
2880
2881 ac_cv_lbl_have_u_int8_t=no
2882 fi
2883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2884 fi
2885
2886 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int8_t" >&5
2887 echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6
2888 if test $ac_cv_lbl_have_u_int8_t = no ; then
2889
2890 cat >>confdefs.h <<\_ACEOF
2891 #define u_int8_t u_char
2892 _ACEOF
2893
2894 fi
2895 echo "$as_me:$LINENO: checking for u_int16_t using $CC" >&5
2896 echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6
2897 if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then
2898 echo $ECHO_N "(cached) $ECHO_C" >&6
2899 else
2900 cat >conftest.$ac_ext <<_ACEOF
2901 /* confdefs.h. */
2902 _ACEOF
2903 cat confdefs.h >>conftest.$ac_ext
2904 cat >>conftest.$ac_ext <<_ACEOF
2905 /* end confdefs.h. */
2906
2907 # include "confdefs.h"
2908 # include <sys/types.h>
2909 # if STDC_HEADERS
2910 # include <stdlib.h>
2911 # include <stddef.h>
2912 # endif
2913 int
2914 main ()
2915 {
2916 u_int16_t i
2917 ;
2918 return 0;
2919 }
2920 _ACEOF
2921 rm -f conftest.$ac_objext
2922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2923 (eval $ac_compile) 2>conftest.er1
2924 ac_status=$?
2925 grep -v '^ *+' conftest.er1 >conftest.err
2926 rm -f conftest.er1
2927 cat conftest.err >&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); } &&
2930 { ac_try='test -z "$ac_c_werror_flag"
2931 || test ! -s conftest.err'
2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933 (eval $ac_try) 2>&5
2934 ac_status=$?
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; } &&
2937 { ac_try='test -s conftest.$ac_objext'
2938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939 (eval $ac_try) 2>&5
2940 ac_status=$?
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; }; then
2943 ac_cv_lbl_have_u_int16_t=yes
2944 else
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2947
2948 ac_cv_lbl_have_u_int16_t=no
2949 fi
2950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2951 fi
2952
2953 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int16_t" >&5
2954 echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6
2955 if test $ac_cv_lbl_have_u_int16_t = no ; then
2956
2957 cat >>confdefs.h <<\_ACEOF
2958 #define u_int16_t u_short
2959 _ACEOF
2960
2961 fi
2962 echo "$as_me:$LINENO: checking for u_int32_t using $CC" >&5
2963 echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6
2964 if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then
2965 echo $ECHO_N "(cached) $ECHO_C" >&6
2966 else
2967 cat >conftest.$ac_ext <<_ACEOF
2968 /* confdefs.h. */
2969 _ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h. */
2973
2974 # include "confdefs.h"
2975 # include <sys/types.h>
2976 # if STDC_HEADERS
2977 # include <stdlib.h>
2978 # include <stddef.h>
2979 # endif
2980 int
2981 main ()
2982 {
2983 u_int32_t i
2984 ;
2985 return 0;
2986 }
2987 _ACEOF
2988 rm -f conftest.$ac_objext
2989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2990 (eval $ac_compile) 2>conftest.er1
2991 ac_status=$?
2992 grep -v '^ *+' conftest.er1 >conftest.err
2993 rm -f conftest.er1
2994 cat conftest.err >&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); } &&
2997 { ac_try='test -z "$ac_c_werror_flag"
2998 || test ! -s conftest.err'
2999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3000 (eval $ac_try) 2>&5
3001 ac_status=$?
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); }; } &&
3004 { ac_try='test -s conftest.$ac_objext'
3005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3006 (eval $ac_try) 2>&5
3007 ac_status=$?
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }; }; then
3010 ac_cv_lbl_have_u_int32_t=yes
3011 else
3012 echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3014
3015 ac_cv_lbl_have_u_int32_t=no
3016 fi
3017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3018 fi
3019
3020 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5
3021 echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6
3022 if test $ac_cv_lbl_have_u_int32_t = no ; then
3023
3024 cat >>confdefs.h <<\_ACEOF
3025 #define u_int32_t u_int
3026 _ACEOF
3027
3028 fi
3029
3030 ac_ext=c
3031 ac_cpp='$CPP $CPPFLAGS'
3032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3035 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3036 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3037 # On Suns, sometimes $CPP names a directory.
3038 if test -n "$CPP" && test -d "$CPP"; then
3039 CPP=
3040 fi
3041 if test -z "$CPP"; then
3042 if test "${ac_cv_prog_CPP+set}" = set; then
3043 echo $ECHO_N "(cached) $ECHO_C" >&6
3044 else
3045 # Double quotes because CPP needs to be expanded
3046 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3047 do
3048 ac_preproc_ok=false
3049 for ac_c_preproc_warn_flag in '' yes
3050 do
3051 # Use a header file that comes with gcc, so configuring glibc
3052 # with a fresh cross-compiler works.
3053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3054 # <limits.h> exists even on freestanding compilers.
3055 # On the NeXT, cc -E runs the code through the compiler's parser,
3056 # not just through cpp. "Syntax error" is here to catch this case.
3057 cat >conftest.$ac_ext <<_ACEOF
3058 /* confdefs.h. */
3059 _ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3063 #ifdef __STDC__
3064 # include <limits.h>
3065 #else
3066 # include <assert.h>
3067 #endif
3068 Syntax error
3069 _ACEOF
3070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3072 ac_status=$?
3073 grep -v '^ *+' conftest.er1 >conftest.err
3074 rm -f conftest.er1
3075 cat conftest.err >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } >/dev/null; then
3078 if test -s conftest.err; then
3079 ac_cpp_err=$ac_c_preproc_warn_flag
3080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3081 else
3082 ac_cpp_err=
3083 fi
3084 else
3085 ac_cpp_err=yes
3086 fi
3087 if test -z "$ac_cpp_err"; then
3088 :
3089 else
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3092
3093 # Broken: fails on valid input.
3094 continue
3095 fi
3096 rm -f conftest.err conftest.$ac_ext
3097
3098 # OK, works on sane cases. Now check whether non-existent headers
3099 # can be detected and how.
3100 cat >conftest.$ac_ext <<_ACEOF
3101 /* confdefs.h. */
3102 _ACEOF
3103 cat confdefs.h >>conftest.$ac_ext
3104 cat >>conftest.$ac_ext <<_ACEOF
3105 /* end confdefs.h. */
3106 #include <ac_nonexistent.h>
3107 _ACEOF
3108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3110 ac_status=$?
3111 grep -v '^ *+' conftest.er1 >conftest.err
3112 rm -f conftest.er1
3113 cat conftest.err >&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); } >/dev/null; then
3116 if test -s conftest.err; then
3117 ac_cpp_err=$ac_c_preproc_warn_flag
3118 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3119 else
3120 ac_cpp_err=
3121 fi
3122 else
3123 ac_cpp_err=yes
3124 fi
3125 if test -z "$ac_cpp_err"; then
3126 # Broken: success on invalid input.
3127 continue
3128 else
3129 echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3131
3132 # Passes both tests.
3133 ac_preproc_ok=:
3134 break
3135 fi
3136 rm -f conftest.err conftest.$ac_ext
3137
3138 done
3139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3140 rm -f conftest.err conftest.$ac_ext
3141 if $ac_preproc_ok; then
3142 break
3143 fi
3144
3145 done
3146 ac_cv_prog_CPP=$CPP
3147
3148 fi
3149 CPP=$ac_cv_prog_CPP
3150 else
3151 ac_cv_prog_CPP=$CPP
3152 fi
3153 echo "$as_me:$LINENO: result: $CPP" >&5
3154 echo "${ECHO_T}$CPP" >&6
3155 ac_preproc_ok=false
3156 for ac_c_preproc_warn_flag in '' yes
3157 do
3158 # Use a header file that comes with gcc, so configuring glibc
3159 # with a fresh cross-compiler works.
3160 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3161 # <limits.h> exists even on freestanding compilers.
3162 # On the NeXT, cc -E runs the code through the compiler's parser,
3163 # not just through cpp. "Syntax error" is here to catch this case.
3164 cat >conftest.$ac_ext <<_ACEOF
3165 /* confdefs.h. */
3166 _ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h. */
3170 #ifdef __STDC__
3171 # include <limits.h>
3172 #else
3173 # include <assert.h>
3174 #endif
3175 Syntax error
3176 _ACEOF
3177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3179 ac_status=$?
3180 grep -v '^ *+' conftest.er1 >conftest.err
3181 rm -f conftest.er1
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } >/dev/null; then
3185 if test -s conftest.err; then
3186 ac_cpp_err=$ac_c_preproc_warn_flag
3187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3188 else
3189 ac_cpp_err=
3190 fi
3191 else
3192 ac_cpp_err=yes
3193 fi
3194 if test -z "$ac_cpp_err"; then
3195 :
3196 else
3197 echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3199
3200 # Broken: fails on valid input.
3201 continue
3202 fi
3203 rm -f conftest.err conftest.$ac_ext
3204
3205 # OK, works on sane cases. Now check whether non-existent headers
3206 # can be detected and how.
3207 cat >conftest.$ac_ext <<_ACEOF
3208 /* confdefs.h. */
3209 _ACEOF
3210 cat confdefs.h >>conftest.$ac_ext
3211 cat >>conftest.$ac_ext <<_ACEOF
3212 /* end confdefs.h. */
3213 #include <ac_nonexistent.h>
3214 _ACEOF
3215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3217 ac_status=$?
3218 grep -v '^ *+' conftest.er1 >conftest.err
3219 rm -f conftest.er1
3220 cat conftest.err >&5
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); } >/dev/null; then
3223 if test -s conftest.err; then
3224 ac_cpp_err=$ac_c_preproc_warn_flag
3225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3226 else
3227 ac_cpp_err=
3228 fi
3229 else
3230 ac_cpp_err=yes
3231 fi
3232 if test -z "$ac_cpp_err"; then
3233 # Broken: success on invalid input.
3234 continue
3235 else
3236 echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3238
3239 # Passes both tests.
3240 ac_preproc_ok=:
3241 break
3242 fi
3243 rm -f conftest.err conftest.$ac_ext
3244
3245 done
3246 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3247 rm -f conftest.err conftest.$ac_ext
3248 if $ac_preproc_ok; then
3249 :
3250 else
3251 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3252 See \`config.log' for more details." >&5
3253 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3254 See \`config.log' for more details." >&2;}
3255 { (exit 1); exit 1; }; }
3256 fi
3257
3258 ac_ext=c
3259 ac_cpp='$CPP $CPPFLAGS'
3260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3263
3264
3265 echo "$as_me:$LINENO: checking for egrep" >&5
3266 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3267 if test "${ac_cv_prog_egrep+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 else
3270 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3271 then ac_cv_prog_egrep='grep -E'
3272 else ac_cv_prog_egrep='egrep'
3273 fi
3274 fi
3275 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3276 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3277 EGREP=$ac_cv_prog_egrep
3278
3279
3280 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3281 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3282 if test "${ac_cv_header_stdc+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 else
3285 cat >conftest.$ac_ext <<_ACEOF
3286 /* confdefs.h. */
3287 _ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h. */
3291 #include <stdlib.h>
3292 #include <stdarg.h>
3293 #include <string.h>
3294 #include <float.h>
3295
3296 int
3297 main ()
3298 {
3299
3300 ;
3301 return 0;
3302 }
3303 _ACEOF
3304 rm -f conftest.$ac_objext
3305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3306 (eval $ac_compile) 2>conftest.er1
3307 ac_status=$?
3308 grep -v '^ *+' conftest.er1 >conftest.err
3309 rm -f conftest.er1
3310 cat conftest.err >&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } &&
3313 { ac_try='test -z "$ac_c_werror_flag"
3314 || test ! -s conftest.err'
3315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3316 (eval $ac_try) 2>&5
3317 ac_status=$?
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }; } &&
3320 { ac_try='test -s conftest.$ac_objext'
3321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3322 (eval $ac_try) 2>&5
3323 ac_status=$?
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }; }; then
3326 ac_cv_header_stdc=yes
3327 else
3328 echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3330
3331 ac_cv_header_stdc=no
3332 fi
3333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3334
3335 if test $ac_cv_header_stdc = yes; then
3336 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3337 cat >conftest.$ac_ext <<_ACEOF
3338 /* confdefs.h. */
3339 _ACEOF
3340 cat confdefs.h >>conftest.$ac_ext
3341 cat >>conftest.$ac_ext <<_ACEOF
3342 /* end confdefs.h. */
3343 #include <string.h>
3344
3345 _ACEOF
3346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3347 $EGREP "memchr" >/dev/null 2>&1; then
3348 :
3349 else
3350 ac_cv_header_stdc=no
3351 fi
3352 rm -f conftest*
3353
3354 fi
3355
3356 if test $ac_cv_header_stdc = yes; then
3357 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3358 cat >conftest.$ac_ext <<_ACEOF
3359 /* confdefs.h. */
3360 _ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3364 #include <stdlib.h>
3365
3366 _ACEOF
3367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3368 $EGREP "free" >/dev/null 2>&1; then
3369 :
3370 else
3371 ac_cv_header_stdc=no
3372 fi
3373 rm -f conftest*
3374
3375 fi
3376
3377 if test $ac_cv_header_stdc = yes; then
3378 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3379 if test "$cross_compiling" = yes; then
3380 :
3381 else
3382 cat >conftest.$ac_ext <<_ACEOF
3383 /* confdefs.h. */
3384 _ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3388 #include <ctype.h>
3389 #if ((' ' & 0x0FF) == 0x020)
3390 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3391 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3392 #else
3393 # define ISLOWER(c) \
3394 (('a' <= (c) && (c) <= 'i') \
3395 || ('j' <= (c) && (c) <= 'r') \
3396 || ('s' <= (c) && (c) <= 'z'))
3397 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3398 #endif
3399
3400 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3401 int
3402 main ()
3403 {
3404 int i;
3405 for (i = 0; i < 256; i++)
3406 if (XOR (islower (i), ISLOWER (i))
3407 || toupper (i) != TOUPPER (i))
3408 exit(2);
3409 exit (0);
3410 }
3411 _ACEOF
3412 rm -f conftest$ac_exeext
3413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3414 (eval $ac_link) 2>&5
3415 ac_status=$?
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419 (eval $ac_try) 2>&5
3420 ac_status=$?
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); }; }; then
3423 :
3424 else
3425 echo "$as_me: program exited with status $ac_status" >&5
3426 echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3428
3429 ( exit $ac_status )
3430 ac_cv_header_stdc=no
3431 fi
3432 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3433 fi
3434 fi
3435 fi
3436 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3437 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3438 if test $ac_cv_header_stdc = yes; then
3439
3440 cat >>confdefs.h <<\_ACEOF
3441 #define STDC_HEADERS 1
3442 _ACEOF
3443
3444 fi
3445
3446 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3457 inttypes.h stdint.h unistd.h
3458 do
3459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3460 echo "$as_me:$LINENO: checking for $ac_header" >&5
3461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465 cat >conftest.$ac_ext <<_ACEOF
3466 /* confdefs.h. */
3467 _ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h. */
3471 $ac_includes_default
3472
3473 #include <$ac_header>
3474 _ACEOF
3475 rm -f conftest.$ac_objext
3476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3477 (eval $ac_compile) 2>conftest.er1
3478 ac_status=$?
3479 grep -v '^ *+' conftest.er1 >conftest.err
3480 rm -f conftest.er1
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } &&
3484 { ac_try='test -z "$ac_c_werror_flag"
3485 || test ! -s conftest.err'
3486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3487 (eval $ac_try) 2>&5
3488 ac_status=$?
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; } &&
3491 { ac_try='test -s conftest.$ac_objext'
3492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493 (eval $ac_try) 2>&5
3494 ac_status=$?
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); }; }; then
3497 eval "$as_ac_Header=yes"
3498 else
3499 echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3501
3502 eval "$as_ac_Header=no"
3503 fi
3504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3505 fi
3506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3509 cat >>confdefs.h <<_ACEOF
3510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3511 _ACEOF
3512
3513 fi
3514
3515 done
3516
3517
3518
3519
3520
3521
3522 for ac_header in sys/ioccom.h sys/sockio.h limits.h paths.h
3523 do
3524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3526 echo "$as_me:$LINENO: checking for $ac_header" >&5
3527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 fi
3531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3533 else
3534 # Is the header compilable?
3535 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3537 cat >conftest.$ac_ext <<_ACEOF
3538 /* confdefs.h. */
3539 _ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3543 $ac_includes_default
3544 #include <$ac_header>
3545 _ACEOF
3546 rm -f conftest.$ac_objext
3547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3548 (eval $ac_compile) 2>conftest.er1
3549 ac_status=$?
3550 grep -v '^ *+' conftest.er1 >conftest.err
3551 rm -f conftest.er1
3552 cat conftest.err >&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); } &&
3555 { ac_try='test -z "$ac_c_werror_flag"
3556 || test ! -s conftest.err'
3557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558 (eval $ac_try) 2>&5
3559 ac_status=$?
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); }; } &&
3562 { ac_try='test -s conftest.$ac_objext'
3563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564 (eval $ac_try) 2>&5
3565 ac_status=$?
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); }; }; then
3568 ac_header_compiler=yes
3569 else
3570 echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3572
3573 ac_header_compiler=no
3574 fi
3575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3576 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3577 echo "${ECHO_T}$ac_header_compiler" >&6
3578
3579 # Is the header present?
3580 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3581 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3582 cat >conftest.$ac_ext <<_ACEOF
3583 /* confdefs.h. */
3584 _ACEOF
3585 cat confdefs.h >>conftest.$ac_ext
3586 cat >>conftest.$ac_ext <<_ACEOF
3587 /* end confdefs.h. */
3588 #include <$ac_header>
3589 _ACEOF
3590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3592 ac_status=$?
3593 grep -v '^ *+' conftest.er1 >conftest.err
3594 rm -f conftest.er1
3595 cat conftest.err >&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } >/dev/null; then
3598 if test -s conftest.err; then
3599 ac_cpp_err=$ac_c_preproc_warn_flag
3600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3601 else
3602 ac_cpp_err=
3603 fi
3604 else
3605 ac_cpp_err=yes
3606 fi
3607 if test -z "$ac_cpp_err"; then
3608 ac_header_preproc=yes
3609 else
3610 echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.$ac_ext >&5
3612
3613 ac_header_preproc=no
3614 fi
3615 rm -f conftest.err conftest.$ac_ext
3616 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3617 echo "${ECHO_T}$ac_header_preproc" >&6
3618
3619 # So? What about this header?
3620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3621 yes:no: )
3622 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3625 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3626 ac_header_preproc=yes
3627 ;;
3628 no:yes:* )
3629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3632 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3633 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3634 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3635 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3636 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3639 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3640 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3641 (
3642 cat <<\_ASBOX
3643 ## ------------------------------------------ ##
3644 ## Report this to the AC_PACKAGE_NAME lists. ##
3645 ## ------------------------------------------ ##
3646 _ASBOX
3647 ) |
3648 sed "s/^/$as_me: WARNING: /" >&2
3649 ;;
3650 esac
3651 echo "$as_me:$LINENO: checking for $ac_header" >&5
3652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656 eval "$as_ac_Header=\$ac_header_preproc"
3657 fi
3658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3660
3661 fi
3662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3663 cat >>confdefs.h <<_ACEOF
3664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3665 _ACEOF
3666
3667 fi
3668
3669 done
3670
3671
3672 for ac_header in netinet/if_ether.h
3673 do
3674 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3675 echo "$as_me:$LINENO: checking for $ac_header" >&5
3676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 else
3680 cat >conftest.$ac_ext <<_ACEOF
3681 /* confdefs.h. */
3682 _ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3686 #include <sys/types.h>
3687 #include <sys/socket.h>
3688
3689 #include <$ac_header>
3690 _ACEOF
3691 rm -f conftest.$ac_objext
3692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3693 (eval $ac_compile) 2>conftest.er1
3694 ac_status=$?
3695 grep -v '^ *+' conftest.er1 >conftest.err
3696 rm -f conftest.er1
3697 cat conftest.err >&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); } &&
3700 { ac_try='test -z "$ac_c_werror_flag"
3701 || test ! -s conftest.err'
3702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703 (eval $ac_try) 2>&5
3704 ac_status=$?
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); }; } &&
3707 { ac_try='test -s conftest.$ac_objext'
3708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3709 (eval $ac_try) 2>&5
3710 ac_status=$?
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); }; }; then
3713 eval "$as_ac_Header=yes"
3714 else
3715 echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3717
3718 eval "$as_ac_Header=no"
3719 fi
3720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3721 fi
3722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3725 cat >>confdefs.h <<_ACEOF
3726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3727 _ACEOF
3728
3729 fi
3730
3731 done
3732
3733 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
3734 #
3735 # The simple test didn't work.
3736 # Do we need to include <net/if.h> first?
3737 # Unset ac_cv_header_netinet_if_ether_h so we don't
3738 # treat the previous failure as a cached value and
3739 # suppress the next test.
3740 #
3741 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
3742 echo "$as_me: Rechecking with some additional includes" >&6;}
3743 unset ac_cv_header_netinet_if_ether_h
3744
3745 for ac_header in netinet/if_ether.h
3746 do
3747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3748 echo "$as_me:$LINENO: checking for $ac_header" >&5
3749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3752 else
3753 cat >conftest.$ac_ext <<_ACEOF
3754 /* confdefs.h. */
3755 _ACEOF
3756 cat confdefs.h >>conftest.$ac_ext
3757 cat >>conftest.$ac_ext <<_ACEOF
3758 /* end confdefs.h. */
3759 #include <sys/types.h>
3760 #include <sys/socket.h>
3761 #include <netinet/in.h>
3762 struct mbuf;
3763 struct rtentry;
3764 #include <net/if.h>
3765
3766 #include <$ac_header>
3767 _ACEOF
3768 rm -f conftest.$ac_objext
3769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3770 (eval $ac_compile) 2>conftest.er1
3771 ac_status=$?
3772 grep -v '^ *+' conftest.er1 >conftest.err
3773 rm -f conftest.er1
3774 cat conftest.err >&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); } &&
3777 { ac_try='test -z "$ac_c_werror_flag"
3778 || test ! -s conftest.err'
3779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780 (eval $ac_try) 2>&5
3781 ac_status=$?
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); }; } &&
3784 { ac_try='test -s conftest.$ac_objext'
3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786 (eval $ac_try) 2>&5
3787 ac_status=$?
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); }; }; then
3790 eval "$as_ac_Header=yes"
3791 else
3792 echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3794
3795 eval "$as_ac_Header=no"
3796 fi
3797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3798 fi
3799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3802 cat >>confdefs.h <<_ACEOF
3803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3804 _ACEOF
3805
3806 fi
3807
3808 done
3809
3810 fi
3811
3812 if test "$GCC" = yes ; then
3813 echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
3814 echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6
3815 if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3817 else
3818 cat >conftest.$ac_ext <<_ACEOF
3819 /* confdefs.h. */
3820 _ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h. */
3824 /*
3825 * This generates a "duplicate case value" when fixincludes
3826 * has not be run.
3827 */
3828 # include <sys/types.h>
3829 # include <sys/time.h>
3830 # include <sys/ioctl.h>
3831 # ifdef HAVE_SYS_IOCCOM_H
3832 # include <sys/ioccom.h>
3833 # endif
3834 int
3835 main ()
3836 {
3837 switch (0) {
3838 case _IO('A', 1):;
3839 case _IO('B', 1):;
3840 }
3841 ;
3842 return 0;
3843 }
3844 _ACEOF
3845 rm -f conftest.$ac_objext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3847 (eval $ac_compile) 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try='test -z "$ac_c_werror_flag"
3855 || test ! -s conftest.err'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 (eval $ac_try) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest.$ac_objext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 (eval $ac_try) 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 ac_cv_lbl_gcc_fixincludes=yes
3868 else
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3871
3872 ac_cv_lbl_gcc_fixincludes=no
3873 fi
3874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3875 fi
3876
3877 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
3878 echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6
3879 if test $ac_cv_lbl_gcc_fixincludes = no ; then
3880 # Don't cache failure
3881 unset ac_cv_lbl_gcc_fixincludes
3882 { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
3883 echo "$as_me: error: see the INSTALL for more info" >&2;}
3884 { (exit 1); exit 1; }; }
3885 fi
3886 fi
3887
3888
3889
3890 for ac_func in strerror strlcpy
3891 do
3892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3893 echo "$as_me:$LINENO: checking for $ac_func" >&5
3894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3895 if eval "test \"\${$as_ac_var+set}\" = set"; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3897 else
3898 cat >conftest.$ac_ext <<_ACEOF
3899 /* confdefs.h. */
3900 _ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h. */
3904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3906 #define $ac_func innocuous_$ac_func
3907
3908 /* System header to define __stub macros and hopefully few prototypes,
3909 which can conflict with char $ac_func (); below.
3910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3911 <limits.h> exists even on freestanding compilers. */
3912
3913 #ifdef __STDC__
3914 # include <limits.h>
3915 #else
3916 # include <assert.h>
3917 #endif
3918
3919 #undef $ac_func
3920
3921 /* Override any gcc2 internal prototype to avoid an error. */
3922 #ifdef __cplusplus
3923 extern "C"
3924 {
3925 #endif
3926 /* We use char because int might match the return type of a gcc2
3927 builtin and then its argument prototype would still apply. */
3928 char $ac_func ();
3929 /* The GNU C library defines this for functions which it implements
3930 to always fail with ENOSYS. Some functions are actually named
3931 something starting with __ and the normal name is an alias. */
3932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3933 choke me
3934 #else
3935 char (*f) () = $ac_func;
3936 #endif
3937 #ifdef __cplusplus
3938 }
3939 #endif
3940
3941 int
3942 main ()
3943 {
3944 return f != $ac_func;
3945 ;
3946 return 0;
3947 }
3948 _ACEOF
3949 rm -f conftest.$ac_objext conftest$ac_exeext
3950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3951 (eval $ac_link) 2>conftest.er1
3952 ac_status=$?
3953 grep -v '^ *+' conftest.er1 >conftest.err
3954 rm -f conftest.er1
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } &&
3958 { ac_try='test -z "$ac_c_werror_flag"
3959 || test ! -s conftest.err'
3960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3961 (eval $ac_try) 2>&5
3962 ac_status=$?
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); }; } &&
3965 { ac_try='test -s conftest$ac_exeext'
3966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967 (eval $ac_try) 2>&5
3968 ac_status=$?
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }; }; then
3971 eval "$as_ac_var=yes"
3972 else
3973 echo "$as_me: failed program was:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3975
3976 eval "$as_ac_var=no"
3977 fi
3978 rm -f conftest.err conftest.$ac_objext \
3979 conftest$ac_exeext conftest.$ac_ext
3980 fi
3981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3982 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3983 if test `eval echo '${'$as_ac_var'}'` = yes; then
3984 cat >>confdefs.h <<_ACEOF
3985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3986 _ACEOF
3987
3988 fi
3989 done
3990
3991
3992 needsnprintf=no
3993
3994
3995 for ac_func in vsnprintf snprintf
3996 do
3997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3998 echo "$as_me:$LINENO: checking for $ac_func" >&5
3999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4000 if eval "test \"\${$as_ac_var+set}\" = set"; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 else
4003 cat >conftest.$ac_ext <<_ACEOF
4004 /* confdefs.h. */
4005 _ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h. */
4009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4011 #define $ac_func innocuous_$ac_func
4012
4013 /* System header to define __stub macros and hopefully few prototypes,
4014 which can conflict with char $ac_func (); below.
4015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4016 <limits.h> exists even on freestanding compilers. */
4017
4018 #ifdef __STDC__
4019 # include <limits.h>
4020 #else
4021 # include <assert.h>
4022 #endif
4023
4024 #undef $ac_func
4025
4026 /* Override any gcc2 internal prototype to avoid an error. */
4027 #ifdef __cplusplus
4028 extern "C"
4029 {
4030 #endif
4031 /* We use char because int might match the return type of a gcc2
4032 builtin and then its argument prototype would still apply. */
4033 char $ac_func ();
4034 /* The GNU C library defines this for functions which it implements
4035 to always fail with ENOSYS. Some functions are actually named
4036 something starting with __ and the normal name is an alias. */
4037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4038 choke me
4039 #else
4040 char (*f) () = $ac_func;
4041 #endif
4042 #ifdef __cplusplus
4043 }
4044 #endif
4045
4046 int
4047 main ()
4048 {
4049 return f != $ac_func;
4050 ;
4051 return 0;
4052 }
4053 _ACEOF
4054 rm -f conftest.$ac_objext conftest$ac_exeext
4055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4056 (eval $ac_link) 2>conftest.er1
4057 ac_status=$?
4058 grep -v '^ *+' conftest.er1 >conftest.err
4059 rm -f conftest.er1
4060 cat conftest.err >&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); } &&
4063 { ac_try='test -z "$ac_c_werror_flag"
4064 || test ! -s conftest.err'
4065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066 (eval $ac_try) 2>&5
4067 ac_status=$?
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }; } &&
4070 { ac_try='test -s conftest$ac_exeext'
4071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 (eval $ac_try) 2>&5
4073 ac_status=$?
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; }; then
4076 eval "$as_ac_var=yes"
4077 else
4078 echo "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.$ac_ext >&5
4080
4081 eval "$as_ac_var=no"
4082 fi
4083 rm -f conftest.err conftest.$ac_objext \
4084 conftest$ac_exeext conftest.$ac_ext
4085 fi
4086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4087 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4088 if test `eval echo '${'$as_ac_var'}'` = yes; then
4089 cat >>confdefs.h <<_ACEOF
4090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4091 _ACEOF
4092
4093 else
4094 needsnprintf=yes
4095 fi
4096 done
4097
4098 if test $needsnprintf = yes; then
4099 case $LIBOBJS in
4100 "snprintf.$ac_objext" | \
4101 *" snprintf.$ac_objext" | \
4102 "snprintf.$ac_objext "* | \
4103 *" snprintf.$ac_objext "* ) ;;
4104 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
4105 esac
4106
4107 fi
4108
4109 #
4110 # Do this before checking for ether_hostton(), as it's a
4111 # "gethostbyname() -ish function".
4112 #
4113
4114 # Most operating systems have gethostbyname() in the default searched
4115 # libraries (i.e. libc):
4116 # Some OSes (eg. Solaris) place it in libnsl
4117 # Some strange OSes (SINIX) have it in libsocket:
4118 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
4119 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
4120 if test "${ac_cv_search_gethostbyname+set}" = set; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 else
4123 ac_func_search_save_LIBS=$LIBS
4124 ac_cv_search_gethostbyname=no
4125 cat >conftest.$ac_ext <<_ACEOF
4126 /* confdefs.h. */
4127 _ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4131
4132 /* Override any gcc2 internal prototype to avoid an error. */
4133 #ifdef __cplusplus
4134 extern "C"
4135 #endif
4136 /* We use char because int might match the return type of a gcc2
4137 builtin and then its argument prototype would still apply. */
4138 char gethostbyname ();
4139 int
4140 main ()
4141 {
4142 gethostbyname ();
4143 ;
4144 return 0;
4145 }
4146 _ACEOF
4147 rm -f conftest.$ac_objext conftest$ac_exeext
4148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4149 (eval $ac_link) 2>conftest.er1
4150 ac_status=$?
4151 grep -v '^ *+' conftest.er1 >conftest.err
4152 rm -f conftest.er1
4153 cat conftest.err >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } &&
4156 { ac_try='test -z "$ac_c_werror_flag"
4157 || test ! -s conftest.err'
4158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 (eval $ac_try) 2>&5
4160 ac_status=$?
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; } &&
4163 { ac_try='test -s conftest$ac_exeext'
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165 (eval $ac_try) 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
4169 ac_cv_search_gethostbyname="none required"
4170 else
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4173
4174 fi
4175 rm -f conftest.err conftest.$ac_objext \
4176 conftest$ac_exeext conftest.$ac_ext
4177 if test "$ac_cv_search_gethostbyname" = no; then
4178 for ac_lib in nsl socket resolv; do
4179 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4180 cat >conftest.$ac_ext <<_ACEOF
4181 /* confdefs.h. */
4182 _ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4186
4187 /* Override any gcc2 internal prototype to avoid an error. */
4188 #ifdef __cplusplus
4189 extern "C"
4190 #endif
4191 /* We use char because int might match the return type of a gcc2
4192 builtin and then its argument prototype would still apply. */
4193 char gethostbyname ();
4194 int
4195 main ()
4196 {
4197 gethostbyname ();
4198 ;
4199 return 0;
4200 }
4201 _ACEOF
4202 rm -f conftest.$ac_objext conftest$ac_exeext
4203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4204 (eval $ac_link) 2>conftest.er1
4205 ac_status=$?
4206 grep -v '^ *+' conftest.er1 >conftest.err
4207 rm -f conftest.er1
4208 cat conftest.err >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } &&
4211 { ac_try='test -z "$ac_c_werror_flag"
4212 || test ! -s conftest.err'
4213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214 (eval $ac_try) 2>&5
4215 ac_status=$?
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; } &&
4218 { ac_try='test -s conftest$ac_exeext'
4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220 (eval $ac_try) 2>&5
4221 ac_status=$?
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; }; then
4224 ac_cv_search_gethostbyname="-l$ac_lib"
4225 break
4226 else
4227 echo "$as_me: failed program was:" >&5
4228 sed 's/^/| /' conftest.$ac_ext >&5
4229
4230 fi
4231 rm -f conftest.err conftest.$ac_objext \
4232 conftest$ac_exeext conftest.$ac_ext
4233 done
4234 fi
4235 LIBS=$ac_func_search_save_LIBS
4236 fi
4237 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
4238 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
4239 if test "$ac_cv_search_gethostbyname" != no; then
4240 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
4241
4242 fi
4243
4244 # Unfortunately libsocket sometimes depends on libnsl and
4245 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
4246 if test "$ac_cv_search_gethostbyname" = "no"
4247 then
4248 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
4249 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
4250 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4252 else
4253 ac_check_lib_save_LIBS=$LIBS
4254 LIBS="-lsocket -lnsl $LIBS"
4255 cat >conftest.$ac_ext <<_ACEOF
4256 /* confdefs.h. */
4257 _ACEOF
4258 cat confdefs.h >>conftest.$ac_ext
4259 cat >>conftest.$ac_ext <<_ACEOF
4260 /* end confdefs.h. */
4261
4262 /* Override any gcc2 internal prototype to avoid an error. */
4263 #ifdef __cplusplus
4264 extern "C"
4265 #endif
4266 /* We use char because int might match the return type of a gcc2
4267 builtin and then its argument prototype would still apply. */
4268 char gethostbyname ();
4269 int
4270 main ()
4271 {
4272 gethostbyname ();
4273 ;
4274 return 0;
4275 }
4276 _ACEOF
4277 rm -f conftest.$ac_objext conftest$ac_exeext
4278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4279 (eval $ac_link) 2>conftest.er1
4280 ac_status=$?
4281 grep -v '^ *+' conftest.er1 >conftest.err
4282 rm -f conftest.er1
4283 cat conftest.err >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } &&
4286 { ac_try='test -z "$ac_c_werror_flag"
4287 || test ! -s conftest.err'
4288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289 (eval $ac_try) 2>&5
4290 ac_status=$?
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; } &&
4293 { ac_try='test -s conftest$ac_exeext'
4294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295 (eval $ac_try) 2>&5
4296 ac_status=$?
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; }; then
4299 ac_cv_lib_socket_gethostbyname=yes
4300 else
4301 echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4303
4304 ac_cv_lib_socket_gethostbyname=no
4305 fi
4306 rm -f conftest.err conftest.$ac_objext \
4307 conftest$ac_exeext conftest.$ac_ext
4308 LIBS=$ac_check_lib_save_LIBS
4309 fi
4310 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
4311 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
4312 if test $ac_cv_lib_socket_gethostbyname = yes; then
4313 LIBS="-lsocket -lnsl $LIBS"
4314 fi
4315
4316 fi
4317 echo "$as_me:$LINENO: checking for library containing socket" >&5
4318 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
4319 if test "${ac_cv_search_socket+set}" = set; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 else
4322 ac_func_search_save_LIBS=$LIBS
4323 ac_cv_search_socket=no
4324 cat >conftest.$ac_ext <<_ACEOF
4325 /* confdefs.h. */
4326 _ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h. */
4330
4331 /* Override any gcc2 internal prototype to avoid an error. */
4332 #ifdef __cplusplus
4333 extern "C"
4334 #endif
4335 /* We use char because int might match the return type of a gcc2
4336 builtin and then its argument prototype would still apply. */
4337 char socket ();
4338 int
4339 main ()
4340 {
4341 socket ();
4342 ;
4343 return 0;
4344 }
4345 _ACEOF
4346 rm -f conftest.$ac_objext conftest$ac_exeext
4347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4348 (eval $ac_link) 2>conftest.er1
4349 ac_status=$?
4350 grep -v '^ *+' conftest.er1 >conftest.err
4351 rm -f conftest.er1
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } &&
4355 { ac_try='test -z "$ac_c_werror_flag"
4356 || test ! -s conftest.err'
4357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358 (eval $ac_try) 2>&5
4359 ac_status=$?
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; } &&
4362 { ac_try='test -s conftest$ac_exeext'
4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364 (eval $ac_try) 2>&5
4365 ac_status=$?
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; }; then
4368 ac_cv_search_socket="none required"
4369 else
4370 echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4372
4373 fi
4374 rm -f conftest.err conftest.$ac_objext \
4375 conftest$ac_exeext conftest.$ac_ext
4376 if test "$ac_cv_search_socket" = no; then
4377 for ac_lib in socket; do
4378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4379 cat >conftest.$ac_ext <<_ACEOF
4380 /* confdefs.h. */
4381 _ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h. */
4385
4386 /* Override any gcc2 internal prototype to avoid an error. */
4387 #ifdef __cplusplus
4388 extern "C"
4389 #endif
4390 /* We use char because int might match the return type of a gcc2
4391 builtin and then its argument prototype would still apply. */
4392 char socket ();
4393 int
4394 main ()
4395 {
4396 socket ();
4397 ;
4398 return 0;
4399 }
4400 _ACEOF
4401 rm -f conftest.$ac_objext conftest$ac_exeext
4402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4403 (eval $ac_link) 2>conftest.er1
4404 ac_status=$?
4405 grep -v '^ *+' conftest.er1 >conftest.err
4406 rm -f conftest.er1
4407 cat conftest.err >&5
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); } &&
4410 { ac_try='test -z "$ac_c_werror_flag"
4411 || test ! -s conftest.err'
4412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413 (eval $ac_try) 2>&5
4414 ac_status=$?
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; } &&
4417 { ac_try='test -s conftest$ac_exeext'
4418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419 (eval $ac_try) 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; }; then
4423 ac_cv_search_socket="-l$ac_lib"
4424 break
4425 else
4426 echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.$ac_ext >&5
4428
4429 fi
4430 rm -f conftest.err conftest.$ac_objext \
4431 conftest$ac_exeext conftest.$ac_ext
4432 done
4433 fi
4434 LIBS=$ac_func_search_save_LIBS
4435 fi
4436 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
4437 echo "${ECHO_T}$ac_cv_search_socket" >&6
4438 if test "$ac_cv_search_socket" != no; then
4439 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
4440
4441 else
4442 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4443 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4444 if test "${ac_cv_lib_socket_socket+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447 ac_check_lib_save_LIBS=$LIBS
4448 LIBS="-lsocket -lnsl $LIBS"
4449 cat >conftest.$ac_ext <<_ACEOF
4450 /* confdefs.h. */
4451 _ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h. */
4455
4456 /* Override any gcc2 internal prototype to avoid an error. */
4457 #ifdef __cplusplus
4458 extern "C"
4459 #endif
4460 /* We use char because int might match the return type of a gcc2
4461 builtin and then its argument prototype would still apply. */
4462 char socket ();
4463 int
4464 main ()
4465 {
4466 socket ();
4467 ;
4468 return 0;
4469 }
4470 _ACEOF
4471 rm -f conftest.$ac_objext conftest$ac_exeext
4472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4473 (eval $ac_link) 2>conftest.er1
4474 ac_status=$?
4475 grep -v '^ *+' conftest.er1 >conftest.err
4476 rm -f conftest.er1
4477 cat conftest.err >&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } &&
4480 { ac_try='test -z "$ac_c_werror_flag"
4481 || test ! -s conftest.err'
4482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4483 (eval $ac_try) 2>&5
4484 ac_status=$?
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); }; } &&
4487 { ac_try='test -s conftest$ac_exeext'
4488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489 (eval $ac_try) 2>&5
4490 ac_status=$?
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; }; then
4493 ac_cv_lib_socket_socket=yes
4494 else
4495 echo "$as_me: failed program was:" >&5
4496 sed 's/^/| /' conftest.$ac_ext >&5
4497
4498 ac_cv_lib_socket_socket=no
4499 fi
4500 rm -f conftest.err conftest.$ac_objext \
4501 conftest$ac_exeext conftest.$ac_ext
4502 LIBS=$ac_check_lib_save_LIBS
4503 fi
4504 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4505 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4506 if test $ac_cv_lib_socket_socket = yes; then
4507 LIBS="-lsocket -lnsl $LIBS"
4508 fi
4509
4510 fi
4511
4512 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
4513 echo "$as_me:$LINENO: checking for library containing putmsg" >&5
4514 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
4515 if test "${ac_cv_search_putmsg+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 else
4518 ac_func_search_save_LIBS=$LIBS
4519 ac_cv_search_putmsg=no
4520 cat >conftest.$ac_ext <<_ACEOF
4521 /* confdefs.h. */
4522 _ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4526
4527 /* Override any gcc2 internal prototype to avoid an error. */
4528 #ifdef __cplusplus
4529 extern "C"
4530 #endif
4531 /* We use char because int might match the return type of a gcc2
4532 builtin and then its argument prototype would still apply. */
4533 char putmsg ();
4534 int
4535 main ()
4536 {
4537 putmsg ();
4538 ;
4539 return 0;
4540 }
4541 _ACEOF
4542 rm -f conftest.$ac_objext conftest$ac_exeext
4543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4544 (eval $ac_link) 2>conftest.er1
4545 ac_status=$?
4546 grep -v '^ *+' conftest.er1 >conftest.err
4547 rm -f conftest.er1
4548 cat conftest.err >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } &&
4551 { ac_try='test -z "$ac_c_werror_flag"
4552 || test ! -s conftest.err'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554 (eval $ac_try) 2>&5
4555 ac_status=$?
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; } &&
4558 { ac_try='test -s conftest$ac_exeext'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560 (eval $ac_try) 2>&5
4561 ac_status=$?
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; }; then
4564 ac_cv_search_putmsg="none required"
4565 else
4566 echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4568
4569 fi
4570 rm -f conftest.err conftest.$ac_objext \
4571 conftest$ac_exeext conftest.$ac_ext
4572 if test "$ac_cv_search_putmsg" = no; then
4573 for ac_lib in str; do
4574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4575 cat >conftest.$ac_ext <<_ACEOF
4576 /* confdefs.h. */
4577 _ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h. */
4581
4582 /* Override any gcc2 internal prototype to avoid an error. */
4583 #ifdef __cplusplus
4584 extern "C"
4585 #endif
4586 /* We use char because int might match the return type of a gcc2
4587 builtin and then its argument prototype would still apply. */
4588 char putmsg ();
4589 int
4590 main ()
4591 {
4592 putmsg ();
4593 ;
4594 return 0;
4595 }
4596 _ACEOF
4597 rm -f conftest.$ac_objext conftest$ac_exeext
4598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4599 (eval $ac_link) 2>conftest.er1
4600 ac_status=$?
4601 grep -v '^ *+' conftest.er1 >conftest.err
4602 rm -f conftest.er1
4603 cat conftest.err >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } &&
4606 { ac_try='test -z "$ac_c_werror_flag"
4607 || test ! -s conftest.err'
4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 (eval $ac_try) 2>&5
4610 ac_status=$?
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; } &&
4613 { ac_try='test -s conftest$ac_exeext'
4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 (eval $ac_try) 2>&5
4616 ac_status=$?
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; }; then
4619 ac_cv_search_putmsg="-l$ac_lib"
4620 break
4621 else
4622 echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4624
4625 fi
4626 rm -f conftest.err conftest.$ac_objext \
4627 conftest$ac_exeext conftest.$ac_ext
4628 done
4629 fi
4630 LIBS=$ac_func_search_save_LIBS
4631 fi
4632 echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
4633 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
4634 if test "$ac_cv_search_putmsg" != no; then
4635 test "$ac_cv_search_putmsg" = "none required" || LIBS="$ac_cv_search_putmsg $LIBS"
4636
4637 fi
4638
4639
4640
4641 #
4642 # You are in a twisty little maze of UN*Xes, all different.
4643 # Some might not have ether_hostton().
4644 # Some might have it, but not declare it in any header file.
4645 # Some might have it, but declare it in <netinet/if_ether.h>.
4646 # Some might have it, but declare it in <netinet/ether.h>
4647 # (And some might have it but document it as something declared in
4648 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
4649 #
4650 # Before you is a C compiler.
4651 #
4652
4653 for ac_func in ether_hostton
4654 do
4655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4656 echo "$as_me:$LINENO: checking for $ac_func" >&5
4657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4658 if eval "test \"\${$as_ac_var+set}\" = set"; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661 cat >conftest.$ac_ext <<_ACEOF
4662 /* confdefs.h. */
4663 _ACEOF
4664 cat confdefs.h >>conftest.$ac_ext
4665 cat >>conftest.$ac_ext <<_ACEOF
4666 /* end confdefs.h. */
4667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4669 #define $ac_func innocuous_$ac_func
4670
4671 /* System header to define __stub macros and hopefully few prototypes,
4672 which can conflict with char $ac_func (); below.
4673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4674 <limits.h> exists even on freestanding compilers. */
4675
4676 #ifdef __STDC__
4677 # include <limits.h>
4678 #else
4679 # include <assert.h>
4680 #endif
4681
4682 #undef $ac_func
4683
4684 /* Override any gcc2 internal prototype to avoid an error. */
4685 #ifdef __cplusplus
4686 extern "C"
4687 {
4688 #endif
4689 /* We use char because int might match the return type of a gcc2
4690 builtin and then its argument prototype would still apply. */
4691 char $ac_func ();
4692 /* The GNU C library defines this for functions which it implements
4693 to always fail with ENOSYS. Some functions are actually named
4694 something starting with __ and the normal name is an alias. */
4695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4696 choke me
4697 #else
4698 char (*f) () = $ac_func;
4699 #endif
4700 #ifdef __cplusplus
4701 }
4702 #endif
4703
4704 int
4705 main ()
4706 {
4707 return f != $ac_func;
4708 ;
4709 return 0;
4710 }
4711 _ACEOF
4712 rm -f conftest.$ac_objext conftest$ac_exeext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4714 (eval $ac_link) 2>conftest.er1
4715 ac_status=$?
4716 grep -v '^ *+' conftest.er1 >conftest.err
4717 rm -f conftest.er1
4718 cat conftest.err >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } &&
4721 { ac_try='test -z "$ac_c_werror_flag"
4722 || test ! -s conftest.err'
4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724 (eval $ac_try) 2>&5
4725 ac_status=$?
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; } &&
4728 { ac_try='test -s conftest$ac_exeext'
4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730 (eval $ac_try) 2>&5
4731 ac_status=$?
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; }; then
4734 eval "$as_ac_var=yes"
4735 else
4736 echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4738
4739 eval "$as_ac_var=no"
4740 fi
4741 rm -f conftest.err conftest.$ac_objext \
4742 conftest$ac_exeext conftest.$ac_ext
4743 fi
4744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4746 if test `eval echo '${'$as_ac_var'}'` = yes; then
4747 cat >>confdefs.h <<_ACEOF
4748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4749 _ACEOF
4750
4751 fi
4752 done
4753
4754 if test "$ac_cv_func_ether_hostton" = yes; then
4755 #
4756 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
4757 #
4758 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
4759 #
4760 # Yes. Does it declare ether_hostton()?
4761 #
4762 echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
4763 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6
4764 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767 cat >conftest.$ac_ext <<_ACEOF
4768 /* confdefs.h. */
4769 _ACEOF
4770 cat confdefs.h >>conftest.$ac_ext
4771 cat >>conftest.$ac_ext <<_ACEOF
4772 /* end confdefs.h. */
4773
4774 #include <sys/types.h>
4775 #include <sys/socket.h>
4776 #include <netinet/in.h>
4777 #include <arpa/inet.h>
4778 struct mbuf;
4779 struct rtentry;
4780 #include <net/if.h>
4781 #include <netinet/if_ether.h>
4782
4783
4784 int
4785 main ()
4786 {
4787 #ifndef ether_hostton
4788 char *p = (char *) ether_hostton;
4789 #endif
4790
4791 ;
4792 return 0;
4793 }
4794 _ACEOF
4795 rm -f conftest.$ac_objext
4796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4797 (eval $ac_compile) 2>conftest.er1
4798 ac_status=$?
4799 grep -v '^ *+' conftest.er1 >conftest.err
4800 rm -f conftest.er1
4801 cat conftest.err >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } &&
4804 { ac_try='test -z "$ac_c_werror_flag"
4805 || test ! -s conftest.err'
4806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807 (eval $ac_try) 2>&5
4808 ac_status=$?
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); }; } &&
4811 { ac_try='test -s conftest.$ac_objext'
4812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813 (eval $ac_try) 2>&5
4814 ac_status=$?
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); }; }; then
4817 ac_cv_have_decl_ether_hostton=yes
4818 else
4819 echo "$as_me: failed program was:" >&5
4820 sed 's/^/| /' conftest.$ac_ext >&5
4821
4822 ac_cv_have_decl_ether_hostton=no
4823 fi
4824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4825 fi
4826 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
4827 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6
4828 if test $ac_cv_have_decl_ether_hostton = yes; then
4829
4830
4831 cat >>confdefs.h <<\_ACEOF
4832 #define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
4833 _ACEOF
4834
4835
4836 fi
4837
4838 fi
4839 #
4840 # Did that succeed?
4841 #
4842 if test "$ac_cv_have_decl_ether_hostton" != yes; then
4843 #
4844 # No, how about <netinet/ether.h>, as on Linux?
4845 #
4846
4847 for ac_header in netinet/ether.h
4848 do
4849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4851 echo "$as_me:$LINENO: checking for $ac_header" >&5
4852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 fi
4856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4858 else
4859 # Is the header compilable?
4860 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4861 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4862 cat >conftest.$ac_ext <<_ACEOF
4863 /* confdefs.h. */
4864 _ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h. */
4868 $ac_includes_default
4869 #include <$ac_header>
4870 _ACEOF
4871 rm -f conftest.$ac_objext
4872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4873 (eval $ac_compile) 2>conftest.er1
4874 ac_status=$?
4875 grep -v '^ *+' conftest.er1 >conftest.err
4876 rm -f conftest.er1
4877 cat conftest.err >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } &&
4880 { ac_try='test -z "$ac_c_werror_flag"
4881 || test ! -s conftest.err'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 (eval $ac_try) 2>&5
4884 ac_status=$?
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; } &&
4887 { ac_try='test -s conftest.$ac_objext'
4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889 (eval $ac_try) 2>&5
4890 ac_status=$?
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; }; then
4893 ac_header_compiler=yes
4894 else
4895 echo "$as_me: failed program was:" >&5
4896 sed 's/^/| /' conftest.$ac_ext >&5
4897
4898 ac_header_compiler=no
4899 fi
4900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4901 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4902 echo "${ECHO_T}$ac_header_compiler" >&6
4903
4904 # Is the header present?
4905 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4907 cat >conftest.$ac_ext <<_ACEOF
4908 /* confdefs.h. */
4909 _ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4913 #include <$ac_header>
4914 _ACEOF
4915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4917 ac_status=$?
4918 grep -v '^ *+' conftest.er1 >conftest.err
4919 rm -f conftest.er1
4920 cat conftest.err >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); } >/dev/null; then
4923 if test -s conftest.err; then
4924 ac_cpp_err=$ac_c_preproc_warn_flag
4925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4926 else
4927 ac_cpp_err=
4928 fi
4929 else
4930 ac_cpp_err=yes
4931 fi
4932 if test -z "$ac_cpp_err"; then
4933 ac_header_preproc=yes
4934 else
4935 echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.$ac_ext >&5
4937
4938 ac_header_preproc=no
4939 fi
4940 rm -f conftest.err conftest.$ac_ext
4941 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4942 echo "${ECHO_T}$ac_header_preproc" >&6
4943
4944 # So? What about this header?
4945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4946 yes:no: )
4947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4951 ac_header_preproc=yes
4952 ;;
4953 no:yes:* )
4954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4961 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4966 (
4967 cat <<\_ASBOX
4968 ## ------------------------------------------ ##
4969 ## Report this to the AC_PACKAGE_NAME lists. ##
4970 ## ------------------------------------------ ##
4971 _ASBOX
4972 ) |
4973 sed "s/^/$as_me: WARNING: /" >&2
4974 ;;
4975 esac
4976 echo "$as_me:$LINENO: checking for $ac_header" >&5
4977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 else
4981 eval "$as_ac_Header=\$ac_header_preproc"
4982 fi
4983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4985
4986 fi
4987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4988 cat >>confdefs.h <<_ACEOF
4989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4990 _ACEOF
4991
4992 fi
4993
4994 done
4995
4996 if test "$ac_cv_header_netinet_ether_h" = yes; then
4997 #
4998 # We have it - does it declare ether_hostton()?
4999 # Unset ac_cv_have_decl_ether_hostton so we don't
5000 # treat the previous failure as a cached value and
5001 # suppress the next test.
5002 #
5003 unset ac_cv_have_decl_ether_hostton
5004 echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
5005 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6
5006 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
5008 else
5009 cat >conftest.$ac_ext <<_ACEOF
5010 /* confdefs.h. */
5011 _ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5015
5016 #include <netinet/ether.h>
5017
5018
5019 int
5020 main ()
5021 {
5022 #ifndef ether_hostton
5023 char *p = (char *) ether_hostton;
5024 #endif
5025
5026 ;
5027 return 0;
5028 }
5029 _ACEOF
5030 rm -f conftest.$ac_objext
5031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5032 (eval $ac_compile) 2>conftest.er1
5033 ac_status=$?
5034 grep -v '^ *+' conftest.er1 >conftest.err
5035 rm -f conftest.er1
5036 cat conftest.err >&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); } &&
5039 { ac_try='test -z "$ac_c_werror_flag"
5040 || test ! -s conftest.err'
5041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042 (eval $ac_try) 2>&5
5043 ac_status=$?
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; } &&
5046 { ac_try='test -s conftest.$ac_objext'
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048 (eval $ac_try) 2>&5
5049 ac_status=$?
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; }; then
5052 ac_cv_have_decl_ether_hostton=yes
5053 else
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5056
5057 ac_cv_have_decl_ether_hostton=no
5058 fi
5059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5060 fi
5061 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
5062 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6
5063 if test $ac_cv_have_decl_ether_hostton = yes; then
5064
5065
5066 cat >>confdefs.h <<\_ACEOF
5067 #define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
5068 _ACEOF
5069
5070
5071 fi
5072
5073 fi
5074 fi
5075 #
5076 # Is ether_hostton() declared?
5077 #
5078 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5079 #
5080 # No, we'll have to declare it ourselves.
5081 # Do we have "struct ether_addr"?
5082 #
5083 echo "$as_me:$LINENO: checking for struct ether_addr" >&5
5084 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6
5085 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
5086 echo $ECHO_N "(cached) $ECHO_C" >&6
5087 else
5088 cat >conftest.$ac_ext <<_ACEOF
5089 /* confdefs.h. */
5090 _ACEOF
5091 cat confdefs.h >>conftest.$ac_ext
5092 cat >>conftest.$ac_ext <<_ACEOF
5093 /* end confdefs.h. */
5094
5095 #include <sys/types.h>
5096 #include <sys/socket.h>
5097 #include <netinet/in.h>
5098 #include <arpa/inet.h>
5099 struct mbuf;
5100 struct rtentry;
5101 #include <net/if.h>
5102 #include <netinet/if_ether.h>
5103
5104
5105 int
5106 main ()
5107 {
5108 if ((struct ether_addr *) 0)
5109 return 0;
5110 if (sizeof (struct ether_addr))
5111 return 0;
5112 ;
5113 return 0;
5114 }
5115 _ACEOF
5116 rm -f conftest.$ac_objext
5117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5118 (eval $ac_compile) 2>conftest.er1
5119 ac_status=$?
5120 grep -v '^ *+' conftest.er1 >conftest.err
5121 rm -f conftest.er1
5122 cat conftest.err >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); } &&
5125 { ac_try='test -z "$ac_c_werror_flag"
5126 || test ! -s conftest.err'
5127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128 (eval $ac_try) 2>&5
5129 ac_status=$?
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }; } &&
5132 { ac_try='test -s conftest.$ac_objext'
5133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5134 (eval $ac_try) 2>&5
5135 ac_status=$?
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); }; }; then
5138 ac_cv_type_struct_ether_addr=yes
5139 else
5140 echo "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.$ac_ext >&5
5142
5143 ac_cv_type_struct_ether_addr=no
5144 fi
5145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5146 fi
5147 echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
5148 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6
5149 if test $ac_cv_type_struct_ether_addr = yes; then
5150
5151 cat >>confdefs.h <<_ACEOF
5152 #define HAVE_STRUCT_ETHER_ADDR 1
5153 _ACEOF
5154
5155
5156 fi
5157
5158
5159 cat >>confdefs.h <<\_ACEOF
5160 #define HAVE_DECL_ETHER_HOSTTON 0
5161 _ACEOF
5162
5163 else
5164
5165 cat >>confdefs.h <<\_ACEOF
5166 #define HAVE_DECL_ETHER_HOSTTON 1
5167 _ACEOF
5168
5169 fi
5170 fi
5171
5172 echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
5173 echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6
5174 # Check whether --enable-protochain or --disable-protochain was given.
5175 if test "${enable_protochain+set}" = set; then
5176 enableval="$enable_protochain"
5177
5178 fi;
5179 case "x$enable_protochain" in
5180 xyes) enable_protochain=enabled ;;
5181 xno) enable_protochain=disabled ;;
5182 x) enable_protochain=enabled ;;
5183 esac
5184
5185 if test "$enable_protochain" = "disabled"; then
5186
5187 cat >>confdefs.h <<\_ACEOF
5188 #define NO_PROTOCHAIN 1
5189 _ACEOF
5190
5191 fi
5192 echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
5193 echo "${ECHO_T}${enable_protochain}" >&6
5194
5195 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
5196 { { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5
5197 echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;}
5198 { (exit 1); exit 1; }; }
5199 fi
5200
5201 # Check whether --with-pcap or --without-pcap was given.
5202 if test "${with_pcap+set}" = set; then
5203 withval="$with_pcap"
5204
5205 fi;
5206 echo "$as_me:$LINENO: checking packet capture type" >&5
5207 echo $ECHO_N "checking packet capture type... $ECHO_C" >&6
5208 if test ! -z "$with_pcap" ; then
5209 V_PCAP="$withval"
5210 elif test -r /dev/bpf0 ; then
5211 V_PCAP=bpf
5212 elif test -r /usr/include/net/pfilt.h ; then
5213 V_PCAP=pf
5214 elif test -r /dev/enet ; then
5215 V_PCAP=enet
5216 elif test -r /dev/nit ; then
5217 V_PCAP=snit
5218 elif test -r /usr/include/sys/net/nit.h ; then
5219 V_PCAP=nit
5220 elif test -r /usr/include/linux/socket.h ; then
5221 V_PCAP=linux
5222 elif test -r /usr/include/net/raw.h ; then
5223 V_PCAP=snoop
5224 elif test -r /usr/include/odmi.h ; then
5225 #
5226 # On AIX, the BPF devices might not yet be present - they're
5227 # created the first time libpcap runs after booting.
5228 # We check for odmi.h instead.
5229 #
5230 V_PCAP=bpf
5231 elif test -r /usr/include/sys/dlpi.h ; then
5232 V_PCAP=dlpi
5233 elif test -c /dev/bpf0 ; then # check again in case not readable
5234 V_PCAP=bpf
5235 elif test -c /dev/enet ; then # check again in case not readable
5236 V_PCAP=enet
5237 elif test -c /dev/nit ; then # check again in case not readable
5238 V_PCAP=snit
5239 else
5240 V_PCAP=null
5241 fi
5242 echo "$as_me:$LINENO: result: $V_PCAP" >&5
5243 echo "${ECHO_T}$V_PCAP" >&6
5244
5245 if test "$V_PCAP" = null
5246 then
5247 #
5248 # We can't capture, so we can't open any capture
5249 # devices, so we won't return any interfaces.
5250 #
5251 V_FINDALLDEVS=null
5252 else
5253 echo "$as_me:$LINENO: checking for getifaddrs" >&5
5254 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6
5255 if test "${ac_cv_func_getifaddrs+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 else
5258 cat >conftest.$ac_ext <<_ACEOF
5259 /* confdefs.h. */
5260 _ACEOF
5261 cat confdefs.h >>conftest.$ac_ext
5262 cat >>conftest.$ac_ext <<_ACEOF
5263 /* end confdefs.h. */
5264 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
5265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5266 #define getifaddrs innocuous_getifaddrs
5267
5268 /* System header to define __stub macros and hopefully few prototypes,
5269 which can conflict with char getifaddrs (); below.
5270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5271 <limits.h> exists even on freestanding compilers. */
5272
5273 #ifdef __STDC__
5274 # include <limits.h>
5275 #else
5276 # include <assert.h>
5277 #endif
5278
5279 #undef getifaddrs
5280
5281 /* Override any gcc2 internal prototype to avoid an error. */
5282 #ifdef __cplusplus
5283 extern "C"
5284 {
5285 #endif
5286 /* We use char because int might match the return type of a gcc2
5287 builtin and then its argument prototype would still apply. */
5288 char getifaddrs ();
5289 /* The GNU C library defines this for functions which it implements
5290 to always fail with ENOSYS. Some functions are actually named
5291 something starting with __ and the normal name is an alias. */
5292 #if defined (__stub_getifaddrs) || defined (__stub___getifaddrs)
5293 choke me
5294 #else
5295 char (*f) () = getifaddrs;
5296 #endif
5297 #ifdef __cplusplus
5298 }
5299 #endif
5300
5301 int
5302 main ()
5303 {
5304 return f != getifaddrs;
5305 ;
5306 return 0;
5307 }
5308 _ACEOF
5309 rm -f conftest.$ac_objext conftest$ac_exeext
5310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5311 (eval $ac_link) 2>conftest.er1
5312 ac_status=$?
5313 grep -v '^ *+' conftest.er1 >conftest.err
5314 rm -f conftest.er1
5315 cat conftest.err >&5
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); } &&
5318 { ac_try='test -z "$ac_c_werror_flag"
5319 || test ! -s conftest.err'
5320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321 (eval $ac_try) 2>&5
5322 ac_status=$?
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); }; } &&
5325 { ac_try='test -s conftest$ac_exeext'
5326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327 (eval $ac_try) 2>&5
5328 ac_status=$?
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }; }; then
5331 ac_cv_func_getifaddrs=yes
5332 else
5333 echo "$as_me: failed program was:" >&5
5334 sed 's/^/| /' conftest.$ac_ext >&5
5335
5336 ac_cv_func_getifaddrs=no
5337 fi
5338 rm -f conftest.err conftest.$ac_objext \
5339 conftest$ac_exeext conftest.$ac_ext
5340 fi
5341 echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
5342 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6
5343 if test $ac_cv_func_getifaddrs = yes; then
5344
5345 #
5346 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
5347 # as well, just in case some platform is really weird.
5348 #
5349 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5350 echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
5351 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6
5352 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5354 fi
5355 echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
5356 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6
5357 else
5358 # Is the header compilable?
5359 echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
5360 echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6
5361 cat >conftest.$ac_ext <<_ACEOF
5362 /* confdefs.h. */
5363 _ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5367 $ac_includes_default
5368 #include <ifaddrs.h>
5369 _ACEOF
5370 rm -f conftest.$ac_objext
5371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5372 (eval $ac_compile) 2>conftest.er1
5373 ac_status=$?
5374 grep -v '^ *+' conftest.er1 >conftest.err
5375 rm -f conftest.er1
5376 cat conftest.err >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } &&
5379 { ac_try='test -z "$ac_c_werror_flag"
5380 || test ! -s conftest.err'
5381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382 (eval $ac_try) 2>&5
5383 ac_status=$?
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); }; } &&
5386 { ac_try='test -s conftest.$ac_objext'
5387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5388 (eval $ac_try) 2>&5
5389 ac_status=$?
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }; }; then
5392 ac_header_compiler=yes
5393 else
5394 echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.$ac_ext >&5
5396
5397 ac_header_compiler=no
5398 fi
5399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5401 echo "${ECHO_T}$ac_header_compiler" >&6
5402
5403 # Is the header present?
5404 echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
5405 echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6
5406 cat >conftest.$ac_ext <<_ACEOF
5407 /* confdefs.h. */
5408 _ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5412 #include <ifaddrs.h>
5413 _ACEOF
5414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5416 ac_status=$?
5417 grep -v '^ *+' conftest.er1 >conftest.err
5418 rm -f conftest.er1
5419 cat conftest.err >&5
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); } >/dev/null; then
5422 if test -s conftest.err; then
5423 ac_cpp_err=$ac_c_preproc_warn_flag
5424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5425 else
5426 ac_cpp_err=
5427 fi
5428 else
5429 ac_cpp_err=yes
5430 fi
5431 if test -z "$ac_cpp_err"; then
5432 ac_header_preproc=yes
5433 else
5434 echo "$as_me: failed program was:" >&5
5435 sed 's/^/| /' conftest.$ac_ext >&5
5436
5437 ac_header_preproc=no
5438 fi
5439 rm -f conftest.err conftest.$ac_ext
5440 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5441 echo "${ECHO_T}$ac_header_preproc" >&6
5442
5443 # So? What about this header?
5444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5445 yes:no: )
5446 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
5447 echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5448 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
5449 echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
5450 ac_header_preproc=yes
5451 ;;
5452 no:yes:* )
5453 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
5454 echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
5455 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
5456 echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
5457 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
5458 echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
5459 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5
5460 echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;}
5461 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
5462 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
5463 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
5464 echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
5465 (
5466 cat <<\_ASBOX
5467 ## ------------------------------------------ ##
5468 ## Report this to the AC_PACKAGE_NAME lists. ##
5469 ## ------------------------------------------ ##
5470 _ASBOX
5471 ) |
5472 sed "s/^/$as_me: WARNING: /" >&2
5473 ;;
5474 esac
5475 echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
5476 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6
5477 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 else
5480 ac_cv_header_ifaddrs_h=$ac_header_preproc
5481 fi
5482 echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
5483 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6
5484
5485 fi
5486 if test $ac_cv_header_ifaddrs_h = yes; then
5487
5488 #
5489 # We have the header, so we use "getifaddrs()" to
5490 # get the list of interfaces.
5491 #
5492 V_FINDALLDEVS=getad
5493
5494 else
5495
5496 #
5497 # We don't have the header - give up.
5498 # XXX - we could also fall back on some other
5499 # mechanism, but, for now, this'll catch this
5500 # problem so that we can at least try to figure
5501 # out something to do on systems with "getifaddrs()"
5502 # but without "ifaddrs.h", if there is something
5503 # we can do on those systems.
5504 #
5505 { { echo "$as_me:$LINENO: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&5
5506 echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&2;}
5507 { (exit 1); exit 1; }; }
5508
5509 fi
5510
5511
5512
5513 else
5514
5515 #
5516 # Well, we don't have "getifaddrs()", so we have to use
5517 # some other mechanism; determine what that mechanism is.
5518 #
5519 # The first thing we use is the type of capture mechanism,
5520 # which is somewhat of a proxy for the OS we're using.
5521 #
5522 case "$V_PCAP" in
5523
5524 dlpi)
5525 #
5526 # This might be Solaris 8 or later, with
5527 # SIOCGLIFCONF, or it might be some other OS
5528 # or some older version of Solaris, with
5529 # just SIOCGIFCONF.
5530 #
5531 echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF" >&5
5532 echo $ECHO_N "checking whether we have SIOCGLIFCONF... $ECHO_C" >&6
5533 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
5534 echo $ECHO_N "(cached) $ECHO_C" >&6
5535 else
5536 cat >conftest.$ac_ext <<_ACEOF
5537 /* confdefs.h. */
5538 _ACEOF
5539 cat confdefs.h >>conftest.$ac_ext
5540 cat >>conftest.$ac_ext <<_ACEOF
5541 /* end confdefs.h. */
5542 #include <sys/param.h>
5543 #include <sys/file.h>
5544 #include <sys/ioctl.h>
5545 #include <sys/socket.h>
5546 #include <sys/sockio.h>
5547 int
5548 main ()
5549 {
5550 ioctl(0, SIOCGLIFCONF, (char *)0);
5551 ;
5552 return 0;
5553 }
5554 _ACEOF
5555 rm -f conftest.$ac_objext
5556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5557 (eval $ac_compile) 2>conftest.er1
5558 ac_status=$?
5559 grep -v '^ *+' conftest.er1 >conftest.err
5560 rm -f conftest.er1
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } &&
5564 { ac_try='test -z "$ac_c_werror_flag"
5565 || test ! -s conftest.err'
5566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567 (eval $ac_try) 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; } &&
5571 { ac_try='test -s conftest.$ac_objext'
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 (eval $ac_try) 2>&5
5574 ac_status=$?
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; }; then
5577 ac_cv_lbl_have_siocglifconf=yes
5578 else
5579 echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5581
5582 ac_cv_lbl_have_siocglifconf=no
5583 fi
5584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5585 fi
5586
5587 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_siocglifconf" >&5
5588 echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6
5589 if test $ac_cv_lbl_have_siocglifconf = yes ; then
5590 V_FINDALLDEVS=glifc
5591 else
5592 V_FINDALLDEVS=gifc
5593 fi
5594 ;;
5595
5596 *)
5597 #
5598 # Assume we just have SIOCGIFCONF.
5599 # (XXX - on at least later Linux kernels, there's
5600 # another mechanism, and we should be using that
5601 # instead.)
5602 #
5603 V_FINDALLDEVS=gifc
5604 ;;
5605 esac
5606 fi
5607
5608 fi
5609
5610 echo "$as_me:$LINENO: checking if --enable-ipv6 option is specified" >&5
5611 echo $ECHO_N "checking if --enable-ipv6 option is specified... $ECHO_C" >&6
5612 # Check whether --enable-ipv6 or --disable-ipv6 was given.
5613 if test "${enable_ipv6+set}" = set; then
5614 enableval="$enable_ipv6"
5615
5616 fi;
5617 if test "$enable_ipv6" = "yes"; then
5618
5619 cat >>confdefs.h <<\_ACEOF
5620 #define INET6 1
5621 _ACEOF
5622
5623 fi
5624 echo "$as_me:$LINENO: result: ${enable_ipv6-no}" >&5
5625 echo "${ECHO_T}${enable_ipv6-no}" >&6
5626
5627 echo "$as_me:$LINENO: checking whether to build optimizer debugging code" >&5
5628 echo $ECHO_N "checking whether to build optimizer debugging code... $ECHO_C" >&6
5629 # Check whether --enable-optimizer-dbg or --disable-optimizer-dbg was given.
5630 if test "${enable_optimizer_dbg+set}" = set; then
5631 enableval="$enable_optimizer_dbg"
5632
5633 fi;
5634 if test "$enable_optimizer_dbg" = "yes"; then
5635
5636 cat >>confdefs.h <<\_ACEOF
5637 #define BDEBUG 1
5638 _ACEOF
5639
5640 fi
5641 echo "$as_me:$LINENO: result: ${enable_optimizer_dbg-no}" >&5
5642 echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6
5643
5644 echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
5645 echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6
5646 # Check whether --enable-yydebug or --disable-yydebug was given.
5647 if test "${enable_yydebug+set}" = set; then
5648 enableval="$enable_yydebug"
5649
5650 fi;
5651 if test "$enable_yydebug" = "yes"; then
5652
5653 cat >>confdefs.h <<\_ACEOF
5654 #define YYDEBUG 1
5655 _ACEOF
5656
5657 fi
5658 echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
5659 echo "${ECHO_T}${enable_yydebug-no}" >&6
5660
5661 case "$V_PCAP" in
5662
5663 dlpi)
5664
5665
5666 for ac_header in sys/bufmod.h sys/dlpi_ext.h
5667 do
5668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5670 echo "$as_me:$LINENO: checking for $ac_header" >&5
5671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
5674 fi
5675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5677 else
5678 # Is the header compilable?
5679 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5681 cat >conftest.$ac_ext <<_ACEOF
5682 /* confdefs.h. */
5683 _ACEOF
5684 cat confdefs.h >>conftest.$ac_ext
5685 cat >>conftest.$ac_ext <<_ACEOF
5686 /* end confdefs.h. */
5687 $ac_includes_default
5688 #include <$ac_header>
5689 _ACEOF
5690 rm -f conftest.$ac_objext
5691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5692 (eval $ac_compile) 2>conftest.er1
5693 ac_status=$?
5694 grep -v '^ *+' conftest.er1 >conftest.err
5695 rm -f conftest.er1
5696 cat conftest.err >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } &&
5699 { ac_try='test -z "$ac_c_werror_flag"
5700 || test ! -s conftest.err'
5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5702 (eval $ac_try) 2>&5
5703 ac_status=$?
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; } &&
5706 { ac_try='test -s conftest.$ac_objext'
5707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708 (eval $ac_try) 2>&5
5709 ac_status=$?
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); }; }; then
5712 ac_header_compiler=yes
5713 else
5714 echo "$as_me: failed program was:" >&5
5715 sed 's/^/| /' conftest.$ac_ext >&5
5716
5717 ac_header_compiler=no
5718 fi
5719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5720 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5721 echo "${ECHO_T}$ac_header_compiler" >&6
5722
5723 # Is the header present?
5724 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5725 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5726 cat >conftest.$ac_ext <<_ACEOF
5727 /* confdefs.h. */
5728 _ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h. */
5732 #include <$ac_header>
5733 _ACEOF
5734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5736 ac_status=$?
5737 grep -v '^ *+' conftest.er1 >conftest.err
5738 rm -f conftest.er1
5739 cat conftest.err >&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } >/dev/null; then
5742 if test -s conftest.err; then
5743 ac_cpp_err=$ac_c_preproc_warn_flag
5744 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5745 else
5746 ac_cpp_err=
5747 fi
5748 else
5749 ac_cpp_err=yes
5750 fi
5751 if test -z "$ac_cpp_err"; then
5752 ac_header_preproc=yes
5753 else
5754 echo "$as_me: failed program was:" >&5
5755 sed 's/^/| /' conftest.$ac_ext >&5
5756
5757 ac_header_preproc=no
5758 fi
5759 rm -f conftest.err conftest.$ac_ext
5760 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5761 echo "${ECHO_T}$ac_header_preproc" >&6
5762
5763 # So? What about this header?
5764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5765 yes:no: )
5766 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5769 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5770 ac_header_preproc=yes
5771 ;;
5772 no:yes:* )
5773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5776 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5777 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5778 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5779 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5780 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5783 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5784 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5785 (
5786 cat <<\_ASBOX
5787 ## ------------------------------------------ ##
5788 ## Report this to the AC_PACKAGE_NAME lists. ##
5789 ## ------------------------------------------ ##
5790 _ASBOX
5791 ) |
5792 sed "s/^/$as_me: WARNING: /" >&2
5793 ;;
5794 esac
5795 echo "$as_me:$LINENO: checking for $ac_header" >&5
5796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 else
5800 eval "$as_ac_Header=\$ac_header_preproc"
5801 fi
5802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5804
5805 fi
5806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5807 cat >>confdefs.h <<_ACEOF
5808 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5809 _ACEOF
5810
5811 fi
5812
5813 done
5814
5815 echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
5816 echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6
5817 if test -c /dev/dlpi ; then
5818 echo "$as_me:$LINENO: result: yes" >&5
5819 echo "${ECHO_T}yes" >&6
5820
5821 cat >>confdefs.h <<\_ACEOF
5822 #define HAVE_DEV_DLPI 1
5823 _ACEOF
5824
5825 else
5826 echo "$as_me:$LINENO: result: no" >&5
5827 echo "${ECHO_T}no" >&6
5828 dir="/dev/dlpi"
5829 echo "$as_me:$LINENO: checking for $dir directory" >&5
5830 echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6
5831 if test -d $dir ; then
5832 echo "$as_me:$LINENO: result: yes" >&5
5833 echo "${ECHO_T}yes" >&6
5834
5835 cat >>confdefs.h <<_ACEOF
5836 #define PCAP_DEV_PREFIX "$dir"
5837 _ACEOF
5838
5839 else
5840 echo "$as_me:$LINENO: result: no" >&5
5841 echo "${ECHO_T}no" >&6
5842 fi
5843 fi
5844 ;;
5845
5846 linux)
5847 echo "$as_me:$LINENO: checking Linux kernel version" >&5
5848 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
5849 if test "$cross_compiling" = yes; then
5850 if test "${ac_cv_linux_vers+set}" = set; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
5852 else
5853 ac_cv_linux_vers=unknown
5854 fi
5855
5856 else
5857 if test "${ac_cv_linux_vers+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5859 else
5860 ac_cv_linux_vers=`uname -r 2>&1 | \
5861 sed -n -e '$s/.* //' -e '$s/\..*//p'`
5862 fi
5863
5864 fi
5865 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
5866 echo "${ECHO_T}$ac_cv_linux_vers" >&6
5867 if test $ac_cv_linux_vers = unknown ; then
5868 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
5869 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
5870 { (exit 1); exit 1; }; }
5871 fi
5872 if test $ac_cv_linux_vers -lt 2 ; then
5873 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
5874 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
5875 { (exit 1); exit 1; }; }
5876 fi
5877 echo "$as_me:$LINENO: checking if if_packet.h has tpacket_stats defined" >&5
5878 echo $ECHO_N "checking if if_packet.h has tpacket_stats defined... $ECHO_C" >&6
5879 if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 else
5882 cat >conftest.$ac_ext <<_ACEOF
5883 /* confdefs.h. */
5884 _ACEOF
5885 cat confdefs.h >>conftest.$ac_ext
5886 cat >>conftest.$ac_ext <<_ACEOF
5887 /* end confdefs.h. */
5888
5889 # include <linux/if_packet.h>
5890 int
5891 main ()
5892 {
5893 struct tpacket_stats stats
5894 ;
5895 return 0;
5896 }
5897 _ACEOF
5898 rm -f conftest.$ac_objext
5899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5900 (eval $ac_compile) 2>conftest.er1
5901 ac_status=$?
5902 grep -v '^ *+' conftest.er1 >conftest.err
5903 rm -f conftest.er1
5904 cat conftest.err >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } &&
5907 { ac_try='test -z "$ac_c_werror_flag"
5908 || test ! -s conftest.err'
5909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910 (eval $ac_try) 2>&5
5911 ac_status=$?
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }; } &&
5914 { ac_try='test -s conftest.$ac_objext'
5915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916 (eval $ac_try) 2>&5
5917 ac_status=$?
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); }; }; then
5920 ac_cv_lbl_tpacket_stats=yes
5921 else
5922 echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5924
5925 ac_cv_lbl_tpacket_stats=no
5926 fi
5927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5928 fi
5929
5930 echo "$as_me:$LINENO: result: $ac_cv_lbl_tpacket_stats" >&5
5931 echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6
5932 if test $ac_cv_lbl_tpacket_stats = yes; then
5933
5934 cat >>confdefs.h <<\_ACEOF
5935 #define HAVE_TPACKET_STATS 1
5936 _ACEOF
5937
5938 fi
5939 ;;
5940
5941 dag)
5942 V_DEFS="$V_DEFS -DDAG_ONLY"
5943 ;;
5944
5945 septel)
5946 V_DEFS="$V_DEFS -DSEPTEL_ONLY"
5947 ;;
5948
5949 null)
5950 { echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
5951 echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
5952 { echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
5953 echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
5954 ;;
5955
5956 esac
5957
5958 echo "$as_me:$LINENO: checking whether we have /proc/net/dev" >&5
5959 echo $ECHO_N "checking whether we have /proc/net/dev... $ECHO_C" >&6
5960 if test -r /proc/net/dev ; then
5961 ac_cv_lbl_proc_net_dev=yes
5962 else
5963 ac_cv_lbl_proc_net_dev=no
5964 fi
5965 if test $ac_cv_lbl_proc_net_dev = yes; then
5966
5967 cat >>confdefs.h <<\_ACEOF
5968 #define HAVE_PROC_NET_DEV 1
5969 _ACEOF
5970
5971 fi
5972 echo "$as_me:$LINENO: result: $ac_cv_lbl_proc_net_dev" >&5
5973 echo "${ECHO_T}$ac_cv_lbl_proc_net_dev" >&6
5974
5975 # Check for Endace DAG card support.
5976
5977 # Check whether --with-dag or --without-dag was given.
5978 if test "${with_dag+set}" = set; then
5979 withval="$with_dag"
5980
5981 if test "$withval" = no
5982 then
5983 # User doesn't want DAG support.
5984 want_dag=no
5985 elif test "$withval" = yes
5986 then
5987 # User wants DAG support but hasn't specified a directory.
5988 want_dag=yes
5989 else
5990 # User wants DAG support and has specified a directory, so use the provided value.
5991 want_dag=yes
5992 dag_root=$withval
5993 fi
5994
5995 else
5996
5997 #
5998 # Use DAG API if present, otherwise don't
5999 #
6000 want_dag=ifpresent
6001
6002 fi;
6003
6004
6005 # Check whether --with-dag-includes or --without-dag-includes was given.
6006 if test "${with_dag_includes+set}" = set; then
6007 withval="$with_dag_includes"
6008
6009 # User wants DAG support and has specified a header directory, so use the provided value.
6010 want_dag=yes
6011 dag_include_dir=$withval
6012
6013 fi;
6014
6015
6016 # Check whether --with-dag-libraries or --without-dag-libraries was given.
6017 if test "${with_dag_libraries+set}" = set; then
6018 withval="$with_dag_libraries"
6019
6020 # User wants DAG support and has specified a library directory, so use the provided value.
6021 want_dag=yes
6022 dag_lib_dir=$withval
6023
6024 fi;
6025
6026 case "$V_PCAP" in
6027 linux|bpf|dag)
6028 #
6029 # We support the DAG API if we're on Linux or BSD, or if we're
6030 # building a DAG-only libpcap.
6031 #
6032 ;;
6033 *)
6034 #
6035 # If the user explicitly requested DAG, tell them it's not
6036 # supported.
6037 #
6038 # If they expressed no preference, don't include it.
6039 #
6040 if test $want_dag = yes; then
6041 { { echo "$as_me:$LINENO: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&5
6042 echo "$as_me: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&2;}
6043 { (exit 1); exit 1; }; }
6044 elif test $want_dag = yes; then
6045 want_dag=no
6046 fi
6047 ;;
6048 esac
6049
6050 ac_cv_lbl_dag_api=no
6051 if test "$want_dag" != no; then
6052
6053 echo "$as_me:$LINENO: checking whether we have DAG API headers" >&5
6054 echo $ECHO_N "checking whether we have DAG API headers... $ECHO_C" >&6
6055
6056 # If necessary, set default paths for DAG API headers and libraries.
6057 if test -z "$dag_root"; then
6058 dag_root=/usr/local
6059 fi
6060
6061 if test -z "$dag_include_dir"; then
6062 dag_include_dir="$dag_root/include"
6063 fi
6064
6065 if test -z "$dag_lib_dir"; then
6066 dag_lib_dir="$dag_root/lib"
6067 fi
6068
6069 if test -z "$dag_tools_dir"; then
6070 dag_tools_dir="$dag_root/tools"
6071 fi
6072
6073 if test -r $dag_include_dir/dagapi.h; then
6074 ac_cv_lbl_dag_api=yes
6075 fi
6076 echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
6077 echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6
6078 fi
6079
6080 if test $ac_cv_lbl_dag_api = yes; then
6081
6082 echo "$as_me:$LINENO: checking dagapi.o" >&5
6083 echo $ECHO_N "checking dagapi.o... $ECHO_C" >&6
6084 dagapi_obj=no
6085 if test -r $dag_tools_dir/dagapi.o; then
6086 # 2.4.x.
6087 dagapi_obj=$dag_tools_dir/dagapi.o
6088 elif test -r $dag_lib_dir/dagapi.o; then
6089 # 2.5.x.
6090 dagapi_obj=$dag_lib_dir/dagapi.o
6091 elif test -r $dag_lib_dir/libdag.a; then
6092 # 2.5.x.
6093 ar x $dag_lib_dir/libdag.a dagapi.o
6094 if test -r ./dagapi.o; then
6095 dagapi_obj=./dagapi.o
6096 else
6097 ar x $dag_lib_dir/libdag.a libdag_la-dagapi.o
6098 if test -r ./libdag_la-dagapi.o; then
6099 dagapi_obj=./libdag_la-dagapi.o
6100 fi
6101 fi
6102 fi
6103
6104 if test $dagapi_obj = no; then
6105 echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
6106 echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6
6107 ac_cv_lbl_dag_api=no
6108 else
6109 echo "$as_me:$LINENO: result: yes ($dagapi_obj)" >&5
6110 echo "${ECHO_T}yes ($dagapi_obj)" >&6
6111 fi
6112 fi
6113
6114 if test $ac_cv_lbl_dag_api = yes; then
6115
6116 echo "$as_me:$LINENO: checking dagopts.o" >&5
6117 echo $ECHO_N "checking dagopts.o... $ECHO_C" >&6
6118 dagopts_obj=no
6119 if test -r $dag_tools_dir/dagopts.o; then
6120 # 2.4.x.
6121 dagopts_obj=$dag_tools_dir/dagopts.o
6122 elif test -r $dag_lib_dir/dagopts.o; then
6123 # 2.5.x.
6124 dagopts_obj=$dag_lib_dir/dagopts.o
6125 elif test -r $dag_lib_dir/libdag.a; then
6126 # 2.5.x.
6127 ar x $dag_lib_dir/libdag.a dagopts.o
6128 if test -r ./dagopts.o; then
6129 dagopts_obj=./dagopts.o
6130 else
6131 ar x $dag_lib_dir/libdag.a libdag_la-dagopts.o
6132 if test -r ./libdag_la-dagopts.o; then
6133 dagopts_obj=./libdag_la-dagopts.o
6134 fi
6135 fi
6136 fi
6137
6138 if test $dagopts_obj = no; then
6139 echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
6140 echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6
6141 ac_cv_lbl_dag_api=no
6142 else
6143 echo "$as_me:$LINENO: result: yes ($dagopts_obj)" >&5
6144 echo "${ECHO_T}yes ($dagopts_obj)" >&6
6145 fi
6146 fi
6147
6148 if test $ac_cv_lbl_dag_api = yes; then
6149 # Under 2.5.x only we need to add dagreg.o.
6150 if test -r $dag_include_dir/dagreg.h; then
6151 echo "$as_me:$LINENO: checking dagreg.o" >&5
6152 echo $ECHO_N "checking dagreg.o... $ECHO_C" >&6
6153 dagreg_obj=no
6154 if test -r $dag_lib_dir/dagreg.o; then
6155 # Object file is ready and waiting.
6156 dagreg_obj=$dag_lib_dir/dagreg.o
6157 elif test -r $dag_lib_dir/libdag.a; then
6158 # Extract from libdag.a.
6159 ar x $dag_lib_dir/libdag.a dagreg.o
6160 if test -r ./dagreg.o; then
6161 dagreg_obj=./dagreg.o
6162 else
6163 ar x $dag_lib_dir/libdag.a libdag_la-dagreg.o
6164 if test -r ./libdag_la-dagreg.o; then
6165 dagreg_obj=./libdag_la-dagreg.o
6166 fi
6167 fi
6168 fi
6169
6170 if test $dagreg_obj = no; then
6171 echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&5
6172 echo "${ECHO_T}no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&6
6173 ac_cv_lbl_dag_api=no
6174 else
6175 echo "$as_me:$LINENO: result: yes ($dagreg_obj)" >&5
6176 echo "${ECHO_T}yes ($dagreg_obj)" >&6
6177 fi
6178 fi
6179 fi
6180
6181 if test $ac_cv_lbl_dag_api = yes; then
6182 V_INCLS="$V_INCLS -I$dag_include_dir"
6183 V_LIBS="$V_LIBS $dagapi_obj $dagopts_obj $dagreg_obj"
6184 if test $V_PCAP != dag ; then
6185 SSRC="pcap-dag.c"
6186 fi
6187
6188 # See if we can find a general version string.
6189 # Don't need to save and restore LIBS to prevent -ldag being
6190 # included if there's a found-action (arg 3).
6191 saved_ldflags=$LDFLAGS
6192 LDFLAGS="-L$dag_lib_dir"
6193 echo "$as_me:$LINENO: checking for dag_attach_stream in -ldag" >&5
6194 echo $ECHO_N "checking for dag_attach_stream in -ldag... $ECHO_C" >&6
6195 if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6197 else
6198 ac_check_lib_save_LIBS=$LIBS
6199 LIBS="-ldag $LIBS"
6200 cat >conftest.$ac_ext <<_ACEOF
6201 /* confdefs.h. */
6202 _ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h. */
6206
6207 /* Override any gcc2 internal prototype to avoid an error. */
6208 #ifdef __cplusplus
6209 extern "C"
6210 #endif
6211 /* We use char because int might match the return type of a gcc2
6212 builtin and then its argument prototype would still apply. */
6213 char dag_attach_stream ();
6214 int
6215 main ()
6216 {
6217 dag_attach_stream ();
6218 ;
6219 return 0;
6220 }
6221 _ACEOF
6222 rm -f conftest.$ac_objext conftest$ac_exeext
6223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6224 (eval $ac_link) 2>conftest.er1
6225 ac_status=$?
6226 grep -v '^ *+' conftest.er1 >conftest.err
6227 rm -f conftest.er1
6228 cat conftest.err >&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); } &&
6231 { ac_try='test -z "$ac_c_werror_flag"
6232 || test ! -s conftest.err'
6233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234 (eval $ac_try) 2>&5
6235 ac_status=$?
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }; } &&
6238 { ac_try='test -s conftest$ac_exeext'
6239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240 (eval $ac_try) 2>&5
6241 ac_status=$?
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); }; }; then
6244 ac_cv_lib_dag_dag_attach_stream=yes
6245 else
6246 echo "$as_me: failed program was:" >&5
6247 sed 's/^/| /' conftest.$ac_ext >&5
6248
6249 ac_cv_lib_dag_dag_attach_stream=no
6250 fi
6251 rm -f conftest.err conftest.$ac_objext \
6252 conftest$ac_exeext conftest.$ac_ext
6253 LIBS=$ac_check_lib_save_LIBS
6254 fi
6255 echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_attach_stream" >&5
6256 echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6
6257 if test $ac_cv_lib_dag_dag_attach_stream = yes; then
6258 dag_version="2.5.x"
6259 else
6260 dag_version="2.4.x"
6261 fi
6262
6263 echo "$as_me:$LINENO: checking for dag_get_erf_types in -ldag" >&5
6264 echo $ECHO_N "checking for dag_get_erf_types in -ldag... $ECHO_C" >&6
6265 if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6267 else
6268 ac_check_lib_save_LIBS=$LIBS
6269 LIBS="-ldag $LIBS"
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
6277 /* Override any gcc2 internal prototype to avoid an error. */
6278 #ifdef __cplusplus
6279 extern "C"
6280 #endif
6281 /* We use char because int might match the return type of a gcc2
6282 builtin and then its argument prototype would still apply. */
6283 char dag_get_erf_types ();
6284 int
6285 main ()
6286 {
6287 dag_get_erf_types ();
6288 ;
6289 return 0;
6290 }
6291 _ACEOF
6292 rm -f conftest.$ac_objext conftest$ac_exeext
6293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6294 (eval $ac_link) 2>conftest.er1
6295 ac_status=$?
6296 grep -v '^ *+' conftest.er1 >conftest.err
6297 rm -f conftest.er1
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } &&
6301 { ac_try='test -z "$ac_c_werror_flag"
6302 || test ! -s conftest.err'
6303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304 (eval $ac_try) 2>&5
6305 ac_status=$?
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }; } &&
6308 { ac_try='test -s conftest$ac_exeext'
6309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310 (eval $ac_try) 2>&5
6311 ac_status=$?
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); }; }; then
6314 ac_cv_lib_dag_dag_get_erf_types=yes
6315 else
6316 echo "$as_me: failed program was:" >&5
6317 sed 's/^/| /' conftest.$ac_ext >&5
6318
6319 ac_cv_lib_dag_dag_get_erf_types=no
6320 fi
6321 rm -f conftest.err conftest.$ac_objext \
6322 conftest$ac_exeext conftest.$ac_ext
6323 LIBS=$ac_check_lib_save_LIBS
6324 fi
6325 echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
6326 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_erf_types" >&6
6327 if test $ac_cv_lib_dag_dag_get_erf_types = yes; then
6328
6329
6330 cat >>confdefs.h <<\_ACEOF
6331 #define HAVE_DAG_GET_ERF_TYPES 1
6332 _ACEOF
6333
6334
6335 fi
6336
6337 LDFLAGS=$saved_ldflags
6338
6339 if test "$dag_version" = 2.5.x; then
6340
6341 cat >>confdefs.h <<\_ACEOF
6342 #define HAVE_DAG_STREAMS_API 1
6343 _ACEOF
6344
6345 DAGLIBS="-ldag"
6346 fi
6347
6348 # See if we can find a specific version string.
6349 echo "$as_me:$LINENO: checking the DAG API version" >&5
6350 echo $ECHO_N "checking the DAG API version... $ECHO_C" >&6
6351 if test -r "$dag_root/VERSION"; then
6352 dag_version="`cat $dag_root/VERSION`"
6353 fi
6354 echo "$as_me:$LINENO: result: $dag_version" >&5
6355 echo "${ECHO_T}$dag_version" >&6
6356
6357 cat >>confdefs.h <<\_ACEOF
6358 #define HAVE_DAG_API 1
6359 _ACEOF
6360
6361 fi
6362
6363 if test $ac_cv_lbl_dag_api = no; then
6364 if test "$want_dag" = yes; then
6365 # User wanted DAG support but we couldn't find it.
6366 { { echo "$as_me:$LINENO: error: DAG API requested, but not found at $dag_root: use --without-dag" >&5
6367 echo "$as_me: error: DAG API requested, but not found at $dag_root: use --without-dag" >&2;}
6368 { (exit 1); exit 1; }; }
6369 fi
6370
6371 if test "$V_PCAP" = dag; then
6372 # User requested "dag" capture type but the DAG API wasn't
6373 # found.
6374 { { 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
6375 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;}
6376 { (exit 1); exit 1; }; }
6377 fi
6378 fi
6379
6380
6381 # Check whether --with-septel or --without-septel was given.
6382 if test "${with_septel+set}" = set; then
6383 withval="$with_septel"
6384
6385 if test "$withval" = no
6386 then
6387 want_septel=no
6388 elif test "$withval" = yes
6389 then
6390 want_septel=yes
6391 septel_root=
6392 else
6393 want_septel=yes
6394 septel_root=$withval
6395 fi
6396
6397 else
6398
6399 #
6400 # Use Septel API if present, otherwise don't
6401 #
6402 want_septel=ifpresent
6403 septel_root=./../septel
6404
6405 fi;
6406 ac_cv_lbl_septel_api=no
6407 case "$V_PCAP" in
6408 linux|septel)
6409 #
6410 # We support the Septel API if we're on Linux, or if we're building
6411 # a Septel-only libpcap.
6412 #
6413 ;;
6414 *)
6415 #
6416 # If the user explicitly requested Septel, tell them it's not
6417 # supported.
6418 #
6419 # If they expressed no preference, don't include it.
6420 #
6421 if test $want_septel = yes; then
6422 { { echo "$as_me:$LINENO: error: Septel support only available with 'linux' and 'septel' packet capture types" >&5
6423 echo "$as_me: error: Septel support only available with 'linux' and 'septel' packet capture types" >&2;}
6424 { (exit 1); exit 1; }; }
6425 elif test $want_septel = yes; then
6426 want_septel=no
6427 fi
6428 ;;
6429 esac
6430
6431 if test "$with_septel" != no; then
6432 echo "$as_me:$LINENO: checking whether we have Septel API" >&5
6433 echo $ECHO_N "checking whether we have Septel API... $ECHO_C" >&6
6434
6435 if test -z "$septel_root"; then
6436 septel_root=$srcdir/../septel
6437
6438 fi
6439
6440 septel_tools_dir="$septel_root"
6441 septel_include_dir="$septel_root/INC"
6442 DEF="-DHAVE_SEPTEL_API"
6443
6444 ac_cv_lbl_septel_api=no
6445 if test -r "$septel_include_dir/msg.h"; then
6446 V_INCLS="$V_INCLS -I$septel_include_dir"
6447 V_DEFS="$V_DEFS $DEF"
6448 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 "
6449
6450 if test "$V_PCAP" != septel ; then
6451 SSRC="pcap-septel.c"
6452
6453 fi
6454 ac_cv_lbl_septel_api=yes
6455 fi
6456
6457 echo "$as_me:$LINENO: result: $ac_cv_lbl_septel_api" >&5
6458 echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6
6459 if test $ac_cv_lbl_septel_api = no; then
6460 if test "$want_septel" = yes; then
6461 { { echo "$as_me:$LINENO: error: Septel API not found under directory $septel_root; use --without-septel" >&5
6462 echo "$as_me: error: Septel API not found under directory $septel_root; use --without-septel" >&2;}
6463 { (exit 1); exit 1; }; }
6464 fi
6465 else
6466
6467 cat >>confdefs.h <<\_ACEOF
6468 #define HAVE_SEPTEL_API 1
6469 _ACEOF
6470
6471 fi
6472 fi
6473
6474 if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
6475 { { echo "$as_me:$LINENO: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&5
6476 echo "$as_me: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&2;}
6477 { (exit 1); exit 1; }; }
6478 fi
6479
6480
6481
6482 # Check whether --with-flex or --without-flex was given.
6483 if test "${with_flex+set}" = set; then
6484 withval="$with_flex"
6485
6486 fi;
6487
6488 # Check whether --with-bison or --without-bison was given.
6489 if test "${with_bison+set}" = set; then
6490 withval="$with_bison"
6491
6492 fi;
6493 if test "$with_flex" = no ; then
6494 V_LEX=lex
6495 else
6496 for ac_prog in flex
6497 do
6498 # Extract the first word of "$ac_prog", so it can be a program name with args.
6499 set dummy $ac_prog; ac_word=$2
6500 echo "$as_me:$LINENO: checking for $ac_word" >&5
6501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6502 if test "${ac_cv_prog_V_LEX+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 else
6505 if test -n "$V_LEX"; then
6506 ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
6507 else
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509 for as_dir in $PATH
6510 do
6511 IFS=$as_save_IFS
6512 test -z "$as_dir" && as_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6515 ac_cv_prog_V_LEX="$ac_prog"
6516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6517 break 2
6518 fi
6519 done
6520 done
6521
6522 fi
6523 fi
6524 V_LEX=$ac_cv_prog_V_LEX
6525 if test -n "$V_LEX"; then
6526 echo "$as_me:$LINENO: result: $V_LEX" >&5
6527 echo "${ECHO_T}$V_LEX" >&6
6528 else
6529 echo "$as_me:$LINENO: result: no" >&5
6530 echo "${ECHO_T}no" >&6
6531 fi
6532
6533 test -n "$V_LEX" && break
6534 done
6535 test -n "$V_LEX" || V_LEX="lex"
6536
6537 fi
6538 if test "$V_LEX" = flex ; then
6539 # The -V flag was added in 2.4
6540 echo "$as_me:$LINENO: checking for flex 2.4 or higher" >&5
6541 echo $ECHO_N "checking for flex 2.4 or higher... $ECHO_C" >&6
6542 if test "${ac_cv_lbl_flex_v24+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6544 else
6545 if flex -V >/dev/null 2>&1; then
6546 ac_cv_lbl_flex_v24=yes
6547 else
6548 ac_cv_lbl_flex_v24=no
6549 fi
6550 fi
6551
6552 echo "$as_me:$LINENO: result: $ac_cv_lbl_flex_v24" >&5
6553 echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6
6554 if test $ac_cv_lbl_flex_v24 = no ; then
6555 s="2.4 or higher required"
6556 { echo "$as_me:$LINENO: WARNING: ignoring obsolete flex executable ($s)" >&5
6557 echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
6558 V_LEX=lex
6559 fi
6560 fi
6561 if test "$with_bison" = no ; then
6562 V_YACC=yacc
6563 else
6564 for ac_prog in bison
6565 do
6566 # Extract the first word of "$ac_prog", so it can be a program name with args.
6567 set dummy $ac_prog; ac_word=$2
6568 echo "$as_me:$LINENO: checking for $ac_word" >&5
6569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6570 if test "${ac_cv_prog_V_YACC+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 else
6573 if test -n "$V_YACC"; then
6574 ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
6575 else
6576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 for as_dir in $PATH
6578 do
6579 IFS=$as_save_IFS
6580 test -z "$as_dir" && as_dir=.
6581 for ac_exec_ext in '' $ac_executable_extensions; do
6582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6583 ac_cv_prog_V_YACC="$ac_prog"
6584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6585 break 2
6586 fi
6587 done
6588 done
6589
6590 fi
6591 fi
6592 V_YACC=$ac_cv_prog_V_YACC
6593 if test -n "$V_YACC"; then
6594 echo "$as_me:$LINENO: result: $V_YACC" >&5
6595 echo "${ECHO_T}$V_YACC" >&6
6596 else
6597 echo "$as_me:$LINENO: result: no" >&5
6598 echo "${ECHO_T}no" >&6
6599 fi
6600
6601 test -n "$V_YACC" && break
6602 done
6603 test -n "$V_YACC" || V_YACC="yacc"
6604
6605 fi
6606 if test "$V_YACC" = bison ; then
6607 V_YACC="$V_YACC -y"
6608 fi
6609 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
6610 { echo "$as_me:$LINENO: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
6611 echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
6612 V_LEX=lex
6613 V_YACC=yacc
6614 fi
6615 if test "$V_LEX" = flex -a -n "pcap_" ; then
6616 V_LEX="$V_LEX -Ppcap_"
6617 V_YACC="$V_YACC -p pcap_"
6618 fi
6619 if test "$V_LEX" = lex ; then
6620 # Some versions of lex can't handle the definitions section of scanner.l .
6621 # Try lexing it and complain if it can't deal.
6622 echo "$as_me:$LINENO: checking for capable lex" >&5
6623 echo $ECHO_N "checking for capable lex... $ECHO_C" >&6
6624 if test "${tcpdump_cv_capable_lex+set}" = set; then
6625 echo $ECHO_N "(cached) $ECHO_C" >&6
6626 else
6627 if lex -t scanner.l > /dev/null 2>&1; then
6628 tcpdump_cv_capable_lex=yes
6629 else
6630 tcpdump_cv_capable_lex=insufficient
6631 fi
6632 fi
6633 echo "$as_me:$LINENO: result: $tcpdump_cv_capable_lex" >&5
6634 echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6
6635 if test $tcpdump_cv_capable_lex = insufficient ; then
6636 { { echo "$as_me:$LINENO: error: Your operating system's lex is insufficient to compile
6637 libpcap. flex is a lex replacement that has many advantages, including
6638 being able to compile libpcap. For more information, see
6639 http://www.gnu.org/software/flex/flex.html ." >&5
6640 echo "$as_me: error: Your operating system's lex is insufficient to compile
6641 libpcap. flex is a lex replacement that has many advantages, including
6642 being able to compile libpcap. For more information, see
6643 http://www.gnu.org/software/flex/flex.html ." >&2;}
6644 { (exit 1); exit 1; }; }
6645 fi
6646 fi
6647
6648 DYEXT="so"
6649 case "$host_os" in
6650
6651 aix*)
6652
6653 cat >>confdefs.h <<\_ACEOF
6654 #define _SUN 1
6655 _ACEOF
6656
6657 ;;
6658
6659 hpux9*)
6660
6661 cat >>confdefs.h <<\_ACEOF
6662 #define HAVE_HPUX9 1
6663 _ACEOF
6664
6665 ;;
6666
6667 hpux10.0*)
6668 ;;
6669
6670 hpux10.1*)
6671 ;;
6672
6673 hpux*)
6674
6675 cat >>confdefs.h <<\_ACEOF
6676 #define HAVE_HPUX10_20_OR_LATER 1
6677 _ACEOF
6678
6679 ;;
6680
6681 sinix*)
6682 echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
6683 echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6
6684 if test "${ac_cv_cc_sinix_defined+set}" = set; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 else
6687 cat >conftest.$ac_ext <<_ACEOF
6688 /* confdefs.h. */
6689 _ACEOF
6690 cat confdefs.h >>conftest.$ac_ext
6691 cat >>conftest.$ac_ext <<_ACEOF
6692 /* end confdefs.h. */
6693
6694 int
6695 main ()
6696 {
6697 int i = sinix;
6698 ;
6699 return 0;
6700 }
6701 _ACEOF
6702 rm -f conftest.$ac_objext
6703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6704 (eval $ac_compile) 2>conftest.er1
6705 ac_status=$?
6706 grep -v '^ *+' conftest.er1 >conftest.err
6707 rm -f conftest.er1
6708 cat conftest.err >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } &&
6711 { ac_try='test -z "$ac_c_werror_flag"
6712 || test ! -s conftest.err'
6713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6714 (eval $ac_try) 2>&5
6715 ac_status=$?
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; } &&
6718 { ac_try='test -s conftest.$ac_objext'
6719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6720 (eval $ac_try) 2>&5
6721 ac_status=$?
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; }; then
6724 ac_cv_cc_sinix_defined=yes
6725 else
6726 echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6728
6729 ac_cv_cc_sinix_defined=no
6730 fi
6731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6732 fi
6733
6734 echo "$as_me:$LINENO: result: $ac_cv_cc_sinix_defined" >&5
6735 echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6
6736 if test $ac_cv_cc_sinix_defined = no ; then
6737
6738 cat >>confdefs.h <<\_ACEOF
6739 #define sinix 1
6740 _ACEOF
6741
6742 fi
6743 ;;
6744
6745 solaris*)
6746
6747 cat >>confdefs.h <<\_ACEOF
6748 #define HAVE_SOLARIS 1
6749 _ACEOF
6750
6751 ;;
6752
6753 darwin*)
6754 DYEXT="dylib"
6755 V_CCOPT="$V_CCOPT -fno-common"
6756 ;;
6757
6758 linux*)
6759 V_CCOPT="$V_CCOPT -fPIC"
6760 ;;
6761
6762 esac
6763
6764 if test -n "$ac_tool_prefix"; then
6765 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6766 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6767 echo "$as_me:$LINENO: checking for $ac_word" >&5
6768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6769 if test "${ac_cv_prog_RANLIB+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 else
6772 if test -n "$RANLIB"; then
6773 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6774 else
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 for as_dir in $PATH
6777 do
6778 IFS=$as_save_IFS
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
6781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6782 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 break 2
6785 fi
6786 done
6787 done
6788
6789 fi
6790 fi
6791 RANLIB=$ac_cv_prog_RANLIB
6792 if test -n "$RANLIB"; then
6793 echo "$as_me:$LINENO: result: $RANLIB" >&5
6794 echo "${ECHO_T}$RANLIB" >&6
6795 else
6796 echo "$as_me:$LINENO: result: no" >&5
6797 echo "${ECHO_T}no" >&6
6798 fi
6799
6800 fi
6801 if test -z "$ac_cv_prog_RANLIB"; then
6802 ac_ct_RANLIB=$RANLIB
6803 # Extract the first word of "ranlib", so it can be a program name with args.
6804 set dummy ranlib; ac_word=$2
6805 echo "$as_me:$LINENO: checking for $ac_word" >&5
6806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6807 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6809 else
6810 if test -n "$ac_ct_RANLIB"; then
6811 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6812 else
6813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814 for as_dir in $PATH
6815 do
6816 IFS=$as_save_IFS
6817 test -z "$as_dir" && as_dir=.
6818 for ac_exec_ext in '' $ac_executable_extensions; do
6819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6820 ac_cv_prog_ac_ct_RANLIB="ranlib"
6821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6822 break 2
6823 fi
6824 done
6825 done
6826
6827 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6828 fi
6829 fi
6830 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6831 if test -n "$ac_ct_RANLIB"; then
6832 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6833 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6834 else
6835 echo "$as_me:$LINENO: result: no" >&5
6836 echo "${ECHO_T}no" >&6
6837 fi
6838
6839 RANLIB=$ac_ct_RANLIB
6840 else
6841 RANLIB="$ac_cv_prog_RANLIB"
6842 fi
6843
6844
6845 rm -f os-proto.h
6846 if test "${LBL_CFLAGS+set}" = set; then
6847 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
6848 fi
6849 if test -f .devel ; then
6850 if test "$GCC" = yes ; then
6851 if test "${LBL_CFLAGS+set}" != set; then
6852 if test "$ac_cv_prog_cc_g" = yes ; then
6853 V_CCOPT="-g $V_CCOPT"
6854 fi
6855 V_CCOPT="$V_CCOPT -Wall"
6856 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
6857 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
6858 fi
6859 fi
6860 else
6861 case "$target_os" in
6862
6863 irix6*)
6864 V_CCOPT="$V_CCOPT -n32"
6865 ;;
6866
6867 *)
6868 ;;
6869 esac
6870 fi
6871 os=`echo $target_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
6872 name="lbl/os-$os.h"
6873 if test -f $name ; then
6874 ln -s $name os-proto.h
6875
6876 cat >>confdefs.h <<\_ACEOF
6877 #define HAVE_OS_PROTO_H 1
6878 _ACEOF
6879
6880 else
6881 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
6882 echo "$as_me: WARNING: can't find $name" >&2;}
6883 fi
6884 fi
6885
6886 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
6887 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
6888 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6890 else
6891 cat >conftest.$ac_ext <<_ACEOF
6892 /* confdefs.h. */
6893 _ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6897
6898 # include <sys/types.h>
6899 # include <sys/socket.h>
6900 int
6901 main ()
6902 {
6903 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
6904 ;
6905 return 0;
6906 }
6907 _ACEOF
6908 rm -f conftest.$ac_objext
6909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6910 (eval $ac_compile) 2>conftest.er1
6911 ac_status=$?
6912 grep -v '^ *+' conftest.er1 >conftest.err
6913 rm -f conftest.er1
6914 cat conftest.err >&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); } &&
6917 { ac_try='test -z "$ac_c_werror_flag"
6918 || test ! -s conftest.err'
6919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920 (eval $ac_try) 2>&5
6921 ac_status=$?
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); }; } &&
6924 { ac_try='test -s conftest.$ac_objext'
6925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6926 (eval $ac_try) 2>&5
6927 ac_status=$?
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); }; }; then
6930 ac_cv_lbl_sockaddr_has_sa_len=yes
6931 else
6932 echo "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.$ac_ext >&5
6934
6935 ac_cv_lbl_sockaddr_has_sa_len=no
6936 fi
6937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6938 fi
6939
6940 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
6941 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
6942 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
6943
6944 cat >>confdefs.h <<\_ACEOF
6945 #define HAVE_SOCKADDR_SA_LEN 1
6946 _ACEOF
6947
6948 fi
6949
6950 echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
6951 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6
6952 if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 else
6955 cat >conftest.$ac_ext <<_ACEOF
6956 /* confdefs.h. */
6957 _ACEOF
6958 cat confdefs.h >>conftest.$ac_ext
6959 cat >>conftest.$ac_ext <<_ACEOF
6960 /* end confdefs.h. */
6961
6962 # include <sys/types.h>
6963 # include <sys/socket.h>
6964 int
6965 main ()
6966 {
6967 u_int i = sizeof (struct sockaddr_storage)
6968 ;
6969 return 0;
6970 }
6971 _ACEOF
6972 rm -f conftest.$ac_objext
6973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6974 (eval $ac_compile) 2>conftest.er1
6975 ac_status=$?
6976 grep -v '^ *+' conftest.er1 >conftest.err
6977 rm -f conftest.er1
6978 cat conftest.err >&5
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); } &&
6981 { ac_try='test -z "$ac_c_werror_flag"
6982 || test ! -s conftest.err'
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); }; } &&
6988 { ac_try='test -s conftest.$ac_objext'
6989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990 (eval $ac_try) 2>&5
6991 ac_status=$?
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); }; }; then
6994 ac_cv_lbl_has_sockaddr_storage=yes
6995 else
6996 echo "$as_me: failed program was:" >&5
6997 sed 's/^/| /' conftest.$ac_ext >&5
6998
6999 ac_cv_lbl_has_sockaddr_storage=no
7000 fi
7001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7002 fi
7003
7004 echo "$as_me:$LINENO: result: $ac_cv_lbl_has_sockaddr_storage" >&5
7005 echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6
7006 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
7007
7008 cat >>confdefs.h <<\_ACEOF
7009 #define HAVE_SOCKADDR_STORAGE 1
7010 _ACEOF
7011
7012 fi
7013
7014 echo "$as_me:$LINENO: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
7015 echo $ECHO_N "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... $ECHO_C" >&6
7016 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7018 else
7019 cat >conftest.$ac_ext <<_ACEOF
7020 /* confdefs.h. */
7021 _ACEOF
7022 cat confdefs.h >>conftest.$ac_ext
7023 cat >>conftest.$ac_ext <<_ACEOF
7024 /* end confdefs.h. */
7025
7026 # include <sys/types.h>
7027 # include <sys/dlpi.h>
7028 # include <sys/dlpi_ext.h>
7029 int
7030 main ()
7031 {
7032 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
7033 ;
7034 return 0;
7035 }
7036 _ACEOF
7037 rm -f conftest.$ac_objext
7038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7039 (eval $ac_compile) 2>conftest.er1
7040 ac_status=$?
7041 grep -v '^ *+' conftest.er1 >conftest.err
7042 rm -f conftest.er1
7043 cat conftest.err >&5
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); } &&
7046 { ac_try='test -z "$ac_c_werror_flag"
7047 || test ! -s conftest.err'
7048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049 (eval $ac_try) 2>&5
7050 ac_status=$?
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); }; } &&
7053 { ac_try='test -s conftest.$ac_objext'
7054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055 (eval $ac_try) 2>&5
7056 ac_status=$?
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); }; }; then
7059 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
7060 else
7061 echo "$as_me: failed program was:" >&5
7062 sed 's/^/| /' conftest.$ac_ext >&5
7063
7064 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
7065 fi
7066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7067 fi
7068
7069 echo "$as_me:$LINENO: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
7070 echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6
7071 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
7072
7073 cat >>confdefs.h <<\_ACEOF
7074 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
7075 _ACEOF
7076
7077 fi
7078
7079 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
7080 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
7081 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7083 else
7084 case "$host_cpu" in
7085
7086 #
7087 # These are CPU types where:
7088 #
7089 # the CPU faults on an unaligned access, but at least some
7090 # OSes that support that CPU catch the fault and simulate
7091 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
7092 # the simulation is slow, so we don't want to use it;
7093 #
7094 # the CPU, I infer (from the old
7095 #
7096 # XXX: should also check that they don't do weird things (like on arm)
7097 #
7098 # comment) doesn't fault on unaligned accesses, but doesn't
7099 # do a normal unaligned fetch, either (e.g., presumably, ARM);
7100 #
7101 # for whatever reason, the test program doesn't work
7102 # (this has been claimed to be the case for several of those
7103 # CPUs - I don't know what the problem is; the problem
7104 # was reported as "the test program dumps core" for SuperH,
7105 # but that's what the test program is *supposed* to do -
7106 # it dumps core before it writes anything, so the test
7107 # for an empty output file should find an empty output
7108 # file and conclude that unaligned accesses don't work).
7109 #
7110 # This run-time test won't work if you're cross-compiling, so
7111 # in order to support cross-compiling for a particular CPU,
7112 # we have to wire in the list of CPU types anyway, as far as
7113 # I know, so perhaps we should just have a set of CPUs on
7114 # which we know it doesn't work, a set of CPUs on which we
7115 # know it does work, and have the script just fail on other
7116 # cpu types and update it when such a failure occurs.
7117 #
7118 alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1)
7119 ac_cv_lbl_unaligned_fail=yes
7120 ;;
7121
7122 *)
7123 cat >conftest.c <<EOF
7124 # include <sys/types.h>
7125 # include <sys/wait.h>
7126 # include <stdio.h>
7127 unsigned char a[5] = { 1, 2, 3, 4, 5 };
7128 main() {
7129 unsigned int i;
7130 pid_t pid;
7131 int status;
7132 /* avoid "core dumped" message */
7133 pid = fork();
7134 if (pid < 0)
7135 exit(2);
7136 if (pid > 0) {
7137 /* parent */
7138 pid = waitpid(pid, &status, 0);
7139 if (pid < 0)
7140 exit(3);
7141 exit(!WIFEXITED(status));
7142 }
7143 /* child */
7144 i = *(unsigned int *)&a[1];
7145 printf("%d\n", i);
7146 exit(0);
7147 }
7148 EOF
7149 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
7150 conftest.c $LIBS >/dev/null 2>&1
7151 if test ! -x conftest ; then
7152 ac_cv_lbl_unaligned_fail=yes
7153 else
7154 ./conftest >conftest.out
7155 if test ! -s conftest.out ; then
7156 ac_cv_lbl_unaligned_fail=yes
7157 else
7158 ac_cv_lbl_unaligned_fail=no
7159 fi
7160 fi
7161 rm -f conftest* core core.conftest
7162 ;;
7163 esac
7164 fi
7165
7166 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
7167 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
7168 if test $ac_cv_lbl_unaligned_fail = yes ; then
7169
7170 cat >>confdefs.h <<\_ACEOF
7171 #define LBL_ALIGN 1
7172 _ACEOF
7173
7174 fi
7175
7176 #
7177 # Makefile.in includes rules to generate version.h, so we assume
7178 # that it will be generated if autoconf is used.
7179 #
7180
7181 cat >>confdefs.h <<\_ACEOF
7182 #define HAVE_VERSION_H 1
7183 _ACEOF
7184
7185
7186 rm -f net
7187 ln -s ${srcdir}/bpf/net net
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202 echo "$as_me:$LINENO: checking for USB sniffing support" >&5
7203 echo $ECHO_N "checking for USB sniffing support... $ECHO_C" >&6
7204 case "$host_os" in
7205 linux*)
7206
7207 cat >>confdefs.h <<\_ACEOF
7208 #define PCAP_SUPPORT_USB 1
7209 _ACEOF
7210
7211 USB_SRC=pcap-usb-linux.c
7212 echo "$as_me:$LINENO: result: yes" >&5
7213 echo "${ECHO_T}yes" >&6
7214 ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
7215 if test $? -ne 0 ; then
7216 ac_usb_dev_name="usbmon"
7217 fi
7218
7219 cat >>confdefs.h <<_ACEOF
7220 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
7221 _ACEOF
7222
7223 { echo "$as_me:$LINENO: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
7224 echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
7225 ;;
7226 *)
7227 echo "$as_me:$LINENO: result: no" >&5
7228 echo "${ECHO_T}no" >&6
7229 ;;
7230 esac
7231
7232
7233
7234 case "$host_os" in
7235 linux*)
7236 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
7237 echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
7238 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6
7239 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 fi
7242 echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
7243 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6
7244 else
7245 # Is the header compilable?
7246 echo "$as_me:$LINENO: checking bluetooth/bluetooth.h usability" >&5
7247 echo $ECHO_N "checking bluetooth/bluetooth.h usability... $ECHO_C" >&6
7248 cat >conftest.$ac_ext <<_ACEOF
7249 /* confdefs.h. */
7250 _ACEOF
7251 cat confdefs.h >>conftest.$ac_ext
7252 cat >>conftest.$ac_ext <<_ACEOF
7253 /* end confdefs.h. */
7254 $ac_includes_default
7255 #include <bluetooth/bluetooth.h>
7256 _ACEOF
7257 rm -f conftest.$ac_objext
7258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7259 (eval $ac_compile) 2>conftest.er1
7260 ac_status=$?
7261 grep -v '^ *+' conftest.er1 >conftest.err
7262 rm -f conftest.er1
7263 cat conftest.err >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); } &&
7266 { ac_try='test -z "$ac_c_werror_flag"
7267 || test ! -s conftest.err'
7268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7269 (eval $ac_try) 2>&5
7270 ac_status=$?
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); }; } &&
7273 { ac_try='test -s conftest.$ac_objext'
7274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275 (eval $ac_try) 2>&5
7276 ac_status=$?
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); }; }; then
7279 ac_header_compiler=yes
7280 else
7281 echo "$as_me: failed program was:" >&5
7282 sed 's/^/| /' conftest.$ac_ext >&5
7283
7284 ac_header_compiler=no
7285 fi
7286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7288 echo "${ECHO_T}$ac_header_compiler" >&6
7289
7290 # Is the header present?
7291 echo "$as_me:$LINENO: checking bluetooth/bluetooth.h presence" >&5
7292 echo $ECHO_N "checking bluetooth/bluetooth.h presence... $ECHO_C" >&6
7293 cat >conftest.$ac_ext <<_ACEOF
7294 /* confdefs.h. */
7295 _ACEOF
7296 cat confdefs.h >>conftest.$ac_ext
7297 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h. */
7299 #include <bluetooth/bluetooth.h>
7300 _ACEOF
7301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7303 ac_status=$?
7304 grep -v '^ *+' conftest.er1 >conftest.err
7305 rm -f conftest.er1
7306 cat conftest.err >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } >/dev/null; then
7309 if test -s conftest.err; then
7310 ac_cpp_err=$ac_c_preproc_warn_flag
7311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7312 else
7313 ac_cpp_err=
7314 fi
7315 else
7316 ac_cpp_err=yes
7317 fi
7318 if test -z "$ac_cpp_err"; then
7319 ac_header_preproc=yes
7320 else
7321 echo "$as_me: failed program was:" >&5
7322 sed 's/^/| /' conftest.$ac_ext >&5
7323
7324 ac_header_preproc=no
7325 fi
7326 rm -f conftest.err conftest.$ac_ext
7327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7328 echo "${ECHO_T}$ac_header_preproc" >&6
7329
7330 # So? What about this header?
7331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7332 yes:no: )
7333 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&5
7334 echo "$as_me: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7335 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&5
7336 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&2;}
7337 ac_header_preproc=yes
7338 ;;
7339 no:yes:* )
7340 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&5
7341 echo "$as_me: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&2;}
7342 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&5
7343 echo "$as_me: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&2;}
7344 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&5
7345 echo "$as_me: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&2;}
7346 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&5
7347 echo "$as_me: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&2;}
7348 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&5
7349 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&2;}
7350 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&5
7351 echo "$as_me: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&2;}
7352 (
7353 cat <<\_ASBOX
7354 ## ------------------------------------------ ##
7355 ## Report this to the AC_PACKAGE_NAME lists. ##
7356 ## ------------------------------------------ ##
7357 _ASBOX
7358 ) |
7359 sed "s/^/$as_me: WARNING: /" >&2
7360 ;;
7361 esac
7362 echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
7363 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6
7364 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 else
7367 ac_cv_header_bluetooth_bluetooth_h=$ac_header_preproc
7368 fi
7369 echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
7370 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6
7371
7372 fi
7373 if test $ac_cv_header_bluetooth_bluetooth_h = yes; then
7374
7375
7376 cat >>confdefs.h <<\_ACEOF
7377 #define PCAP_SUPPORT_BT 1
7378 _ACEOF
7379
7380 BT_SRC=pcap-bt-linux.c
7381 { echo "$as_me:$LINENO: Bluetooth sniffing is supported" >&5
7382 echo "$as_me: Bluetooth sniffing is supported" >&6;}
7383
7384 else
7385 { echo "$as_me:$LINENO: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
7386 echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
7387
7388 fi
7389
7390
7391 ;;
7392 *)
7393 { echo "$as_me:$LINENO: no Bluetooth sniffing support" >&5
7394 echo "$as_me: no Bluetooth sniffing support" >&6;}
7395 ;;
7396 esac
7397
7398
7399
7400 # Find a good install program. We prefer a C program (faster),
7401 # so one script is as good as another. But avoid the broken or
7402 # incompatible versions:
7403 # SysV /etc/install, /usr/sbin/install
7404 # SunOS /usr/etc/install
7405 # IRIX /sbin/install
7406 # AIX /bin/install
7407 # AmigaOS /C/install, which installs bootblocks on floppy discs
7408 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7409 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7410 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7411 # OS/2's system install, which has a completely different semantic
7412 # ./install, which can be erroneously created by make from ./install.sh.
7413 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7414 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7415 if test -z "$INSTALL"; then
7416 if test "${ac_cv_path_install+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 for as_dir in $PATH
7421 do
7422 IFS=$as_save_IFS
7423 test -z "$as_dir" && as_dir=.
7424 # Account for people who put trailing slashes in PATH elements.
7425 case $as_dir/ in
7426 ./ | .// | /cC/* | \
7427 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7428 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7429 /usr/ucb/* ) ;;
7430 *)
7431 # OSF1 and SCO ODT 3.0 have their own names for install.
7432 # Don't use installbsd from OSF since it installs stuff as root
7433 # by default.
7434 for ac_prog in ginstall scoinst install; do
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7437 if test $ac_prog = install &&
7438 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7439 # AIX install. It has an incompatible calling convention.
7440 :
7441 elif test $ac_prog = install &&
7442 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7443 # program-specific install script used by HP pwplus--don't use.
7444 :
7445 else
7446 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7447 break 3
7448 fi
7449 fi
7450 done
7451 done
7452 ;;
7453 esac
7454 done
7455
7456
7457 fi
7458 if test "${ac_cv_path_install+set}" = set; then
7459 INSTALL=$ac_cv_path_install
7460 else
7461 # As a last resort, use the slow shell script. We don't cache a
7462 # path for INSTALL within a source directory, because that will
7463 # break other packages using the cache if that directory is
7464 # removed, or if the path is relative.
7465 INSTALL=$ac_install_sh
7466 fi
7467 fi
7468 echo "$as_me:$LINENO: result: $INSTALL" >&5
7469 echo "${ECHO_T}$INSTALL" >&6
7470
7471 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7472 # It thinks the first close brace ends the variable substitution.
7473 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7474
7475 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7476
7477 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7478
7479
7480 ac_config_headers="$ac_config_headers config.h"
7481
7482
7483 ac_config_files="$ac_config_files Makefile"
7484 cat >confcache <<\_ACEOF
7485 # This file is a shell script that caches the results of configure
7486 # tests run on this system so they can be shared between configure
7487 # scripts and configure runs, see configure's option --config-cache.
7488 # It is not useful on other systems. If it contains results you don't
7489 # want to keep, you may remove or edit it.
7490 #
7491 # config.status only pays attention to the cache file if you give it
7492 # the --recheck option to rerun configure.
7493 #
7494 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7495 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7496 # following values.
7497
7498 _ACEOF
7499
7500 # The following way of writing the cache mishandles newlines in values,
7501 # but we know of no workaround that is simple, portable, and efficient.
7502 # So, don't put newlines in cache variables' values.
7503 # Ultrix sh set writes to stderr and can't be redirected directly,
7504 # and sets the high bit in the cache file unless we assign to the vars.
7505 {
7506 (set) 2>&1 |
7507 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7508 *ac_space=\ *)
7509 # `set' does not quote correctly, so add quotes (double-quote
7510 # substitution turns \\\\ into \\, and sed turns \\ into \).
7511 sed -n \
7512 "s/'/'\\\\''/g;
7513 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7514 ;;
7515 *)
7516 # `set' quotes correctly as required by POSIX, so do not add quotes.
7517 sed -n \
7518 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7519 ;;
7520 esac;
7521 } |
7522 sed '
7523 t clear
7524 : clear
7525 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7526 t end
7527 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7528 : end' >>confcache
7529 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7530 if test -w $cache_file; then
7531 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7532 cat confcache >$cache_file
7533 else
7534 echo "not updating unwritable cache $cache_file"
7535 fi
7536 fi
7537 rm -f confcache
7538
7539 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7540 # Let make expand exec_prefix.
7541 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7542
7543 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7544 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7545 # trailing colons and then remove the whole line if VPATH becomes empty
7546 # (actually we leave an empty line to preserve line numbers).
7547 if test "x$srcdir" = x.; then
7548 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7549 s/:*\$(srcdir):*/:/;
7550 s/:*\${srcdir}:*/:/;
7551 s/:*@srcdir@:*/:/;
7552 s/^\([^=]*=[ ]*\):*/\1/;
7553 s/:*$//;
7554 s/^[^=]*=[ ]*$//;
7555 }'
7556 fi
7557
7558 DEFS=-DHAVE_CONFIG_H
7559
7560 ac_libobjs=
7561 ac_ltlibobjs=
7562 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7563 # 1. Remove the extension, and $U if already installed.
7564 ac_i=`echo "$ac_i" |
7565 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7566 # 2. Add them.
7567 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7568 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7569 done
7570 LIBOBJS=$ac_libobjs
7571
7572 LTLIBOBJS=$ac_ltlibobjs
7573
7574
7575
7576 : ${CONFIG_STATUS=./config.status}
7577 ac_clean_files_save=$ac_clean_files
7578 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7579 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7580 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7581 cat >$CONFIG_STATUS <<_ACEOF
7582 #! $SHELL
7583 # Generated by $as_me.
7584 # Run this file to recreate the current configuration.
7585 # Compiler output produced by configure, useful for debugging
7586 # configure, is in config.log if it exists.
7587
7588 debug=false
7589 ac_cs_recheck=false
7590 ac_cs_silent=false
7591 SHELL=\${CONFIG_SHELL-$SHELL}
7592 _ACEOF
7593
7594 cat >>$CONFIG_STATUS <<\_ACEOF
7595 ## --------------------- ##
7596 ## M4sh Initialization. ##
7597 ## --------------------- ##
7598
7599 # Be Bourne compatible
7600 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7601 emulate sh
7602 NULLCMD=:
7603 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7604 # is contrary to our usage. Disable this feature.
7605 alias -g '${1+"$@"}'='"$@"'
7606 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7607 set -o posix
7608 fi
7609 DUALCASE=1; export DUALCASE # for MKS sh
7610
7611 # Support unset when possible.
7612 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7613 as_unset=unset
7614 else
7615 as_unset=false
7616 fi
7617
7618
7619 # Work around bugs in pre-3.0 UWIN ksh.
7620 $as_unset ENV MAIL MAILPATH
7621 PS1='$ '
7622 PS2='> '
7623 PS4='+ '
7624
7625 # NLS nuisances.
7626 for as_var in \
7627 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7628 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7629 LC_TELEPHONE LC_TIME
7630 do
7631 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7632 eval $as_var=C; export $as_var
7633 else
7634 $as_unset $as_var
7635 fi
7636 done
7637
7638 # Required to use basename.
7639 if expr a : '\(a\)' >/dev/null 2>&1; then
7640 as_expr=expr
7641 else
7642 as_expr=false
7643 fi
7644
7645 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7646 as_basename=basename
7647 else
7648 as_basename=false
7649 fi
7650
7651
7652 # Name of the executable.
7653 as_me=`$as_basename "$0" ||
7654 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7655 X"$0" : 'X\(//\)$' \| \
7656 X"$0" : 'X\(/\)$' \| \
7657 . : '\(.\)' 2>/dev/null ||
7658 echo X/"$0" |
7659 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7660 /^X\/\(\/\/\)$/{ s//\1/; q; }
7661 /^X\/\(\/\).*/{ s//\1/; q; }
7662 s/.*/./; q'`
7663
7664
7665 # PATH needs CR, and LINENO needs CR and PATH.
7666 # Avoid depending upon Character Ranges.
7667 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7668 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7669 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7670 as_cr_digits='0123456789'
7671 as_cr_alnum=$as_cr_Letters$as_cr_digits
7672
7673 # The user is always right.
7674 if test "${PATH_SEPARATOR+set}" != set; then
7675 echo "#! /bin/sh" >conf$$.sh
7676 echo "exit 0" >>conf$$.sh
7677 chmod +x conf$$.sh
7678 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7679 PATH_SEPARATOR=';'
7680 else
7681 PATH_SEPARATOR=:
7682 fi
7683 rm -f conf$$.sh
7684 fi
7685
7686
7687 as_lineno_1=$LINENO
7688 as_lineno_2=$LINENO
7689 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7690 test "x$as_lineno_1" != "x$as_lineno_2" &&
7691 test "x$as_lineno_3" = "x$as_lineno_2" || {
7692 # Find who we are. Look in the path if we contain no path at all
7693 # relative or not.
7694 case $0 in
7695 *[\\/]* ) as_myself=$0 ;;
7696 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697 for as_dir in $PATH
7698 do
7699 IFS=$as_save_IFS
7700 test -z "$as_dir" && as_dir=.
7701 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7702 done
7703
7704 ;;
7705 esac
7706 # We did not find ourselves, most probably we were run as `sh COMMAND'
7707 # in which case we are not to be found in the path.
7708 if test "x$as_myself" = x; then
7709 as_myself=$0
7710 fi
7711 if test ! -f "$as_myself"; then
7712 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7713 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7714 { (exit 1); exit 1; }; }
7715 fi
7716 case $CONFIG_SHELL in
7717 '')
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7720 do
7721 IFS=$as_save_IFS
7722 test -z "$as_dir" && as_dir=.
7723 for as_base in sh bash ksh sh5; do
7724 case $as_dir in
7725 /*)
7726 if ("$as_dir/$as_base" -c '
7727 as_lineno_1=$LINENO
7728 as_lineno_2=$LINENO
7729 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7730 test "x$as_lineno_1" != "x$as_lineno_2" &&
7731 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7732 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7733 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7734 CONFIG_SHELL=$as_dir/$as_base
7735 export CONFIG_SHELL
7736 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7737 fi;;
7738 esac
7739 done
7740 done
7741 ;;
7742 esac
7743
7744 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7745 # uniformly replaced by the line number. The first 'sed' inserts a
7746 # line-number line before each line; the second 'sed' does the real
7747 # work. The second script uses 'N' to pair each line-number line
7748 # with the numbered line, and appends trailing '-' during
7749 # substitution so that $LINENO is not a special case at line end.
7750 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7751 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7752 sed '=' <$as_myself |
7753 sed '
7754 N
7755 s,$,-,
7756 : loop
7757 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7758 t loop
7759 s,-$,,
7760 s,^['$as_cr_digits']*\n,,
7761 ' >$as_me.lineno &&
7762 chmod +x $as_me.lineno ||
7763 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7764 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7765 { (exit 1); exit 1; }; }
7766
7767 # Don't try to exec as it changes $[0], causing all sort of problems
7768 # (the dirname of $[0] is not the place where we might find the
7769 # original and so on. Autoconf is especially sensible to this).
7770 . ./$as_me.lineno
7771 # Exit status is that of the last command.
7772 exit
7773 }
7774
7775
7776 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7777 *c*,-n*) ECHO_N= ECHO_C='
7778 ' ECHO_T=' ' ;;
7779 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7780 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7781 esac
7782
7783 if expr a : '\(a\)' >/dev/null 2>&1; then
7784 as_expr=expr
7785 else
7786 as_expr=false
7787 fi
7788
7789 rm -f conf$$ conf$$.exe conf$$.file
7790 echo >conf$$.file
7791 if ln -s conf$$.file conf$$ 2>/dev/null; then
7792 # We could just check for DJGPP; but this test a) works b) is more generic
7793 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7794 if test -f conf$$.exe; then
7795 # Don't use ln at all; we don't have any links
7796 as_ln_s='cp -p'
7797 else
7798 as_ln_s='ln -s'
7799 fi
7800 elif ln conf$$.file conf$$ 2>/dev/null; then
7801 as_ln_s=ln
7802 else
7803 as_ln_s='cp -p'
7804 fi
7805 rm -f conf$$ conf$$.exe conf$$.file
7806
7807 if mkdir -p . 2>/dev/null; then
7808 as_mkdir_p=:
7809 else
7810 test -d ./-p && rmdir ./-p
7811 as_mkdir_p=false
7812 fi
7813
7814 as_executable_p="test -f"
7815
7816 # Sed expression to map a string onto a valid CPP name.
7817 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7818
7819 # Sed expression to map a string onto a valid variable name.
7820 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7821
7822
7823 # IFS
7824 # We need space, tab and new line, in precisely that order.
7825 as_nl='
7826 '
7827 IFS=" $as_nl"
7828
7829 # CDPATH.
7830 $as_unset CDPATH
7831
7832 exec 6>&1
7833
7834 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7835 # report actual input values of CONFIG_FILES etc. instead of their
7836 # values after options handling. Logging --version etc. is OK.
7837 exec 5>>config.log
7838 {
7839 echo
7840 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7841 ## Running $as_me. ##
7842 _ASBOX
7843 } >&5
7844 cat >&5 <<_CSEOF
7845
7846 This file was extended by $as_me, which was
7847 generated by GNU Autoconf 2.59. Invocation command line was
7848
7849 CONFIG_FILES = $CONFIG_FILES
7850 CONFIG_HEADERS = $CONFIG_HEADERS
7851 CONFIG_LINKS = $CONFIG_LINKS
7852 CONFIG_COMMANDS = $CONFIG_COMMANDS
7853 $ $0 $@
7854
7855 _CSEOF
7856 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7857 echo >&5
7858 _ACEOF
7859
7860 # Files that config.status was made for.
7861 if test -n "$ac_config_files"; then
7862 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7863 fi
7864
7865 if test -n "$ac_config_headers"; then
7866 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7867 fi
7868
7869 if test -n "$ac_config_links"; then
7870 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7871 fi
7872
7873 if test -n "$ac_config_commands"; then
7874 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7875 fi
7876
7877 cat >>$CONFIG_STATUS <<\_ACEOF
7878
7879 ac_cs_usage="\
7880 \`$as_me' instantiates files from templates according to the
7881 current configuration.
7882
7883 Usage: $0 [OPTIONS] [FILE]...
7884
7885 -h, --help print this help, then exit
7886 -V, --version print version number, then exit
7887 -q, --quiet do not print progress messages
7888 -d, --debug don't remove temporary files
7889 --recheck update $as_me by reconfiguring in the same conditions
7890 --file=FILE[:TEMPLATE]
7891 instantiate the configuration file FILE
7892 --header=FILE[:TEMPLATE]
7893 instantiate the configuration header FILE
7894
7895 Configuration files:
7896 $config_files
7897
7898 Configuration headers:
7899 $config_headers
7900
7901 Report bugs to <bug-autoconf@gnu.org>."
7902 _ACEOF
7903
7904 cat >>$CONFIG_STATUS <<_ACEOF
7905 ac_cs_version="\\
7906 config.status
7907 configured by $0, generated by GNU Autoconf 2.59,
7908 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7909
7910 Copyright (C) 2003 Free Software Foundation, Inc.
7911 This config.status script is free software; the Free Software Foundation
7912 gives unlimited permission to copy, distribute and modify it."
7913 srcdir=$srcdir
7914 INSTALL="$INSTALL"
7915 _ACEOF
7916
7917 cat >>$CONFIG_STATUS <<\_ACEOF
7918 # If no file are specified by the user, then we need to provide default
7919 # value. By we need to know if files were specified by the user.
7920 ac_need_defaults=:
7921 while test $# != 0
7922 do
7923 case $1 in
7924 --*=*)
7925 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7926 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7927 ac_shift=:
7928 ;;
7929 -*)
7930 ac_option=$1
7931 ac_optarg=$2
7932 ac_shift=shift
7933 ;;
7934 *) # This is not an option, so the user has probably given explicit
7935 # arguments.
7936 ac_option=$1
7937 ac_need_defaults=false;;
7938 esac
7939
7940 case $ac_option in
7941 # Handling of the options.
7942 _ACEOF
7943 cat >>$CONFIG_STATUS <<\_ACEOF
7944 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7945 ac_cs_recheck=: ;;
7946 --version | --vers* | -V )
7947 echo "$ac_cs_version"; exit 0 ;;
7948 --he | --h)
7949 # Conflict between --help and --header
7950 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7951 Try \`$0 --help' for more information." >&5
7952 echo "$as_me: error: ambiguous option: $1
7953 Try \`$0 --help' for more information." >&2;}
7954 { (exit 1); exit 1; }; };;
7955 --help | --hel | -h )
7956 echo "$ac_cs_usage"; exit 0 ;;
7957 --debug | --d* | -d )
7958 debug=: ;;
7959 --file | --fil | --fi | --f )
7960 $ac_shift
7961 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7962 ac_need_defaults=false;;
7963 --header | --heade | --head | --hea )
7964 $ac_shift
7965 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7966 ac_need_defaults=false;;
7967 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7968 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7969 ac_cs_silent=: ;;
7970
7971 # This is an error.
7972 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7973 Try \`$0 --help' for more information." >&5
7974 echo "$as_me: error: unrecognized option: $1
7975 Try \`$0 --help' for more information." >&2;}
7976 { (exit 1); exit 1; }; } ;;
7977
7978 *) ac_config_targets="$ac_config_targets $1" ;;
7979
7980 esac
7981 shift
7982 done
7983
7984 ac_configure_extra_args=
7985
7986 if $ac_cs_silent; then
7987 exec 6>/dev/null
7988 ac_configure_extra_args="$ac_configure_extra_args --silent"
7989 fi
7990
7991 _ACEOF
7992 cat >>$CONFIG_STATUS <<_ACEOF
7993 if \$ac_cs_recheck; then
7994 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7995 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7996 fi
7997
7998 _ACEOF
7999
8000
8001
8002
8003
8004 cat >>$CONFIG_STATUS <<\_ACEOF
8005 for ac_config_target in $ac_config_targets
8006 do
8007 case "$ac_config_target" in
8008 # Handling of arguments.
8009 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8010 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8011 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8012 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8013 { (exit 1); exit 1; }; };;
8014 esac
8015 done
8016
8017 # If the user did not use the arguments to specify the items to instantiate,
8018 # then the envvar interface is used. Set only those that are not.
8019 # We use the long form for the default assignment because of an extremely
8020 # bizarre bug on SunOS 4.1.3.
8021 if $ac_need_defaults; then
8022 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8023 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8024 fi
8025
8026 # Have a temporary directory for convenience. Make it in the build tree
8027 # simply because there is no reason to put it here, and in addition,
8028 # creating and moving files from /tmp can sometimes cause problems.
8029 # Create a temporary directory, and hook for its removal unless debugging.
8030 $debug ||
8031 {
8032 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8033 trap '{ (exit 1); exit 1; }' 1 2 13 15
8034 }
8035
8036 # Create a (secure) tmp directory for tmp files.
8037
8038 {
8039 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8040 test -n "$tmp" && test -d "$tmp"
8041 } ||
8042 {
8043 tmp=./confstat$$-$RANDOM
8044 (umask 077 && mkdir $tmp)
8045 } ||
8046 {
8047 echo "$me: cannot create a temporary directory in ." >&2
8048 { (exit 1); exit 1; }
8049 }
8050
8051 _ACEOF
8052
8053 cat >>$CONFIG_STATUS <<_ACEOF
8054
8055 #
8056 # CONFIG_FILES section.
8057 #
8058
8059 # No need to generate the scripts if there are no CONFIG_FILES.
8060 # This happens for instance when ./config.status config.h
8061 if test -n "\$CONFIG_FILES"; then
8062 # Protect against being on the right side of a sed subst in config.status.
8063 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8064 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8065 s,@SHELL@,$SHELL,;t t
8066 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8067 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8068 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8069 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8070 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8071 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8072 s,@exec_prefix@,$exec_prefix,;t t
8073 s,@prefix@,$prefix,;t t
8074 s,@program_transform_name@,$program_transform_name,;t t
8075 s,@bindir@,$bindir,;t t
8076 s,@sbindir@,$sbindir,;t t
8077 s,@libexecdir@,$libexecdir,;t t
8078 s,@datadir@,$datadir,;t t
8079 s,@sysconfdir@,$sysconfdir,;t t
8080 s,@sharedstatedir@,$sharedstatedir,;t t
8081 s,@localstatedir@,$localstatedir,;t t
8082 s,@libdir@,$libdir,;t t
8083 s,@includedir@,$includedir,;t t
8084 s,@oldincludedir@,$oldincludedir,;t t
8085 s,@infodir@,$infodir,;t t
8086 s,@mandir@,$mandir,;t t
8087 s,@build_alias@,$build_alias,;t t
8088 s,@host_alias@,$host_alias,;t t
8089 s,@target_alias@,$target_alias,;t t
8090 s,@DEFS@,$DEFS,;t t
8091 s,@ECHO_C@,$ECHO_C,;t t
8092 s,@ECHO_N@,$ECHO_N,;t t
8093 s,@ECHO_T@,$ECHO_T,;t t
8094 s,@LIBS@,$LIBS,;t t
8095 s,@build@,$build,;t t
8096 s,@build_cpu@,$build_cpu,;t t
8097 s,@build_vendor@,$build_vendor,;t t
8098 s,@build_os@,$build_os,;t t
8099 s,@host@,$host,;t t
8100 s,@host_cpu@,$host_cpu,;t t
8101 s,@host_vendor@,$host_vendor,;t t
8102 s,@host_os@,$host_os,;t t
8103 s,@target@,$target,;t t
8104 s,@target_cpu@,$target_cpu,;t t
8105 s,@target_vendor@,$target_vendor,;t t
8106 s,@target_os@,$target_os,;t t
8107 s,@SHLICC2@,$SHLICC2,;t t
8108 s,@CC@,$CC,;t t
8109 s,@CFLAGS@,$CFLAGS,;t t
8110 s,@LDFLAGS@,$LDFLAGS,;t t
8111 s,@CPPFLAGS@,$CPPFLAGS,;t t
8112 s,@ac_ct_CC@,$ac_ct_CC,;t t
8113 s,@EXEEXT@,$EXEEXT,;t t
8114 s,@OBJEXT@,$OBJEXT,;t t
8115 s,@CPP@,$CPP,;t t
8116 s,@EGREP@,$EGREP,;t t
8117 s,@LIBOBJS@,$LIBOBJS,;t t
8118 s,@V_LEX@,$V_LEX,;t t
8119 s,@V_YACC@,$V_YACC,;t t
8120 s,@RANLIB@,$RANLIB,;t t
8121 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8122 s,@V_CCOPT@,$V_CCOPT,;t t
8123 s,@V_DEFS@,$V_DEFS,;t t
8124 s,@V_INCLS@,$V_INCLS,;t t
8125 s,@V_LIBS@,$V_LIBS,;t t
8126 s,@V_PCAP@,$V_PCAP,;t t
8127 s,@V_FINDALLDEVS@,$V_FINDALLDEVS,;t t
8128 s,@V_RANLIB@,$V_RANLIB,;t t
8129 s,@SSRC@,$SSRC,;t t
8130 s,@DYEXT@,$DYEXT,;t t
8131 s,@DAGLIBS@,$DAGLIBS,;t t
8132 s,@PCAP_SUPPORT_USB@,$PCAP_SUPPORT_USB,;t t
8133 s,@USB_SRC@,$USB_SRC,;t t
8134 s,@PCAP_SUPPORT_BT@,$PCAP_SUPPORT_BT,;t t
8135 s,@BT_SRC@,$BT_SRC,;t t
8136 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8137 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8138 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8139 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8140 CEOF
8141
8142 _ACEOF
8143
8144 cat >>$CONFIG_STATUS <<\_ACEOF
8145 # Split the substitutions into bite-sized pieces for seds with
8146 # small command number limits, like on Digital OSF/1 and HP-UX.
8147 ac_max_sed_lines=48
8148 ac_sed_frag=1 # Number of current file.
8149 ac_beg=1 # First line for current file.
8150 ac_end=$ac_max_sed_lines # Line after last line for current file.
8151 ac_more_lines=:
8152 ac_sed_cmds=
8153 while $ac_more_lines; do
8154 if test $ac_beg -gt 1; then
8155 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8156 else
8157 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8158 fi
8159 if test ! -s $tmp/subs.frag; then
8160 ac_more_lines=false
8161 else
8162 # The purpose of the label and of the branching condition is to
8163 # speed up the sed processing (if there are no `@' at all, there
8164 # is no need to browse any of the substitutions).
8165 # These are the two extra sed commands mentioned above.
8166 (echo ':t
8167 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8168 if test -z "$ac_sed_cmds"; then
8169 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8170 else
8171 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8172 fi
8173 ac_sed_frag=`expr $ac_sed_frag + 1`
8174 ac_beg=$ac_end
8175 ac_end=`expr $ac_end + $ac_max_sed_lines`
8176 fi
8177 done
8178 if test -z "$ac_sed_cmds"; then
8179 ac_sed_cmds=cat
8180 fi
8181 fi # test -n "$CONFIG_FILES"
8182
8183 _ACEOF
8184 cat >>$CONFIG_STATUS <<\_ACEOF
8185 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8186 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8187 case $ac_file in
8188 - | *:- | *:-:* ) # input from stdin
8189 cat >$tmp/stdin
8190 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8191 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8192 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8193 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8194 * ) ac_file_in=$ac_file.in ;;
8195 esac
8196
8197 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8198 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8199 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8200 X"$ac_file" : 'X\(//\)[^/]' \| \
8201 X"$ac_file" : 'X\(//\)$' \| \
8202 X"$ac_file" : 'X\(/\)' \| \
8203 . : '\(.\)' 2>/dev/null ||
8204 echo X"$ac_file" |
8205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8206 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8207 /^X\(\/\/\)$/{ s//\1/; q; }
8208 /^X\(\/\).*/{ s//\1/; q; }
8209 s/.*/./; q'`
8210 { if $as_mkdir_p; then
8211 mkdir -p "$ac_dir"
8212 else
8213 as_dir="$ac_dir"
8214 as_dirs=
8215 while test ! -d "$as_dir"; do
8216 as_dirs="$as_dir $as_dirs"
8217 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8218 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8219 X"$as_dir" : 'X\(//\)[^/]' \| \
8220 X"$as_dir" : 'X\(//\)$' \| \
8221 X"$as_dir" : 'X\(/\)' \| \
8222 . : '\(.\)' 2>/dev/null ||
8223 echo X"$as_dir" |
8224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8225 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8226 /^X\(\/\/\)$/{ s//\1/; q; }
8227 /^X\(\/\).*/{ s//\1/; q; }
8228 s/.*/./; q'`
8229 done
8230 test ! -n "$as_dirs" || mkdir $as_dirs
8231 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8232 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8233 { (exit 1); exit 1; }; }; }
8234
8235 ac_builddir=.
8236
8237 if test "$ac_dir" != .; then
8238 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8239 # A "../" for each directory in $ac_dir_suffix.
8240 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8241 else
8242 ac_dir_suffix= ac_top_builddir=
8243 fi
8244
8245 case $srcdir in
8246 .) # No --srcdir option. We are building in place.
8247 ac_srcdir=.
8248 if test -z "$ac_top_builddir"; then
8249 ac_top_srcdir=.
8250 else
8251 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8252 fi ;;
8253 [\\/]* | ?:[\\/]* ) # Absolute path.
8254 ac_srcdir=$srcdir$ac_dir_suffix;
8255 ac_top_srcdir=$srcdir ;;
8256 *) # Relative path.
8257 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8258 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8259 esac
8260
8261 # Do not use `cd foo && pwd` to compute absolute paths, because
8262 # the directories may not exist.
8263 case `pwd` in
8264 .) ac_abs_builddir="$ac_dir";;
8265 *)
8266 case "$ac_dir" in
8267 .) ac_abs_builddir=`pwd`;;
8268 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8269 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8270 esac;;
8271 esac
8272 case $ac_abs_builddir in
8273 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8274 *)
8275 case ${ac_top_builddir}. in
8276 .) ac_abs_top_builddir=$ac_abs_builddir;;
8277 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8278 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8279 esac;;
8280 esac
8281 case $ac_abs_builddir in
8282 .) ac_abs_srcdir=$ac_srcdir;;
8283 *)
8284 case $ac_srcdir in
8285 .) ac_abs_srcdir=$ac_abs_builddir;;
8286 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8287 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8288 esac;;
8289 esac
8290 case $ac_abs_builddir in
8291 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8292 *)
8293 case $ac_top_srcdir in
8294 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8295 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8296 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8297 esac;;
8298 esac
8299
8300
8301 case $INSTALL in
8302 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8303 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8304 esac
8305
8306 if test x"$ac_file" != x-; then
8307 { echo "$as_me:$LINENO: creating $ac_file" >&5
8308 echo "$as_me: creating $ac_file" >&6;}
8309 rm -f "$ac_file"
8310 fi
8311 # Let's still pretend it is `configure' which instantiates (i.e., don't
8312 # use $as_me), people would be surprised to read:
8313 # /* config.h. Generated by config.status. */
8314 if test x"$ac_file" = x-; then
8315 configure_input=
8316 else
8317 configure_input="$ac_file. "
8318 fi
8319 configure_input=$configure_input"Generated from `echo $ac_file_in |
8320 sed 's,.*/,,'` by configure."
8321
8322 # First look for the input files in the build tree, otherwise in the
8323 # src tree.
8324 ac_file_inputs=`IFS=:
8325 for f in $ac_file_in; do
8326 case $f in
8327 -) echo $tmp/stdin ;;
8328 [\\/$]*)
8329 # Absolute (can't be DOS-style, as IFS=:)
8330 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8331 echo "$as_me: error: cannot find input file: $f" >&2;}
8332 { (exit 1); exit 1; }; }
8333 echo "$f";;
8334 *) # Relative
8335 if test -f "$f"; then
8336 # Build tree
8337 echo "$f"
8338 elif test -f "$srcdir/$f"; then
8339 # Source tree
8340 echo "$srcdir/$f"
8341 else
8342 # /dev/null tree
8343 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8344 echo "$as_me: error: cannot find input file: $f" >&2;}
8345 { (exit 1); exit 1; }; }
8346 fi;;
8347 esac
8348 done` || { (exit 1); exit 1; }
8349 _ACEOF
8350 cat >>$CONFIG_STATUS <<_ACEOF
8351 sed "$ac_vpsub
8352 $extrasub
8353 _ACEOF
8354 cat >>$CONFIG_STATUS <<\_ACEOF
8355 :t
8356 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8357 s,@configure_input@,$configure_input,;t t
8358 s,@srcdir@,$ac_srcdir,;t t
8359 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8360 s,@top_srcdir@,$ac_top_srcdir,;t t
8361 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8362 s,@builddir@,$ac_builddir,;t t
8363 s,@abs_builddir@,$ac_abs_builddir,;t t
8364 s,@top_builddir@,$ac_top_builddir,;t t
8365 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8366 s,@INSTALL@,$ac_INSTALL,;t t
8367 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8368 rm -f $tmp/stdin
8369 if test x"$ac_file" != x-; then
8370 mv $tmp/out $ac_file
8371 else
8372 cat $tmp/out
8373 rm -f $tmp/out
8374 fi
8375
8376 done
8377 _ACEOF
8378 cat >>$CONFIG_STATUS <<\_ACEOF
8379
8380 #
8381 # CONFIG_HEADER section.
8382 #
8383
8384 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8385 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8386 #
8387 # ac_d sets the value in "#define NAME VALUE" lines.
8388 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8389 ac_dB='[ ].*$,\1#\2'
8390 ac_dC=' '
8391 ac_dD=',;t'
8392 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8393 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8394 ac_uB='$,\1#\2define\3'
8395 ac_uC=' '
8396 ac_uD=',;t'
8397
8398 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8399 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8400 case $ac_file in
8401 - | *:- | *:-:* ) # input from stdin
8402 cat >$tmp/stdin
8403 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8404 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8405 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8406 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8407 * ) ac_file_in=$ac_file.in ;;
8408 esac
8409
8410 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8411 echo "$as_me: creating $ac_file" >&6;}
8412
8413 # First look for the input files in the build tree, otherwise in the
8414 # src tree.
8415 ac_file_inputs=`IFS=:
8416 for f in $ac_file_in; do
8417 case $f in
8418 -) echo $tmp/stdin ;;
8419 [\\/$]*)
8420 # Absolute (can't be DOS-style, as IFS=:)
8421 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8422 echo "$as_me: error: cannot find input file: $f" >&2;}
8423 { (exit 1); exit 1; }; }
8424 # Do quote $f, to prevent DOS paths from being IFS'd.
8425 echo "$f";;
8426 *) # Relative
8427 if test -f "$f"; then
8428 # Build tree
8429 echo "$f"
8430 elif test -f "$srcdir/$f"; then
8431 # Source tree
8432 echo "$srcdir/$f"
8433 else
8434 # /dev/null tree
8435 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8436 echo "$as_me: error: cannot find input file: $f" >&2;}
8437 { (exit 1); exit 1; }; }
8438 fi;;
8439 esac
8440 done` || { (exit 1); exit 1; }
8441 # Remove the trailing spaces.
8442 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8443
8444 _ACEOF
8445
8446 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8447 # `conftest.undefs', that substitutes the proper values into
8448 # config.h.in to produce config.h. The first handles `#define'
8449 # templates, and the second `#undef' templates.
8450 # And first: Protect against being on the right side of a sed subst in
8451 # config.status. Protect against being in an unquoted here document
8452 # in config.status.
8453 rm -f conftest.defines conftest.undefs
8454 # Using a here document instead of a string reduces the quoting nightmare.
8455 # Putting comments in sed scripts is not portable.
8456 #
8457 # `end' is used to avoid that the second main sed command (meant for
8458 # 0-ary CPP macros) applies to n-ary macro definitions.
8459 # See the Autoconf documentation for `clear'.
8460 cat >confdef2sed.sed <<\_ACEOF
8461 s/[\\&,]/\\&/g
8462 s,[\\$`],\\&,g
8463 t clear
8464 : clear
8465 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8466 t end
8467 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8468 : end
8469 _ACEOF
8470 # If some macros were called several times there might be several times
8471 # the same #defines, which is useless. Nevertheless, we may not want to
8472 # sort them, since we want the *last* AC-DEFINE to be honored.
8473 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8474 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8475 rm -f confdef2sed.sed
8476
8477 # This sed command replaces #undef with comments. This is necessary, for
8478 # example, in the case of _POSIX_SOURCE, which is predefined and required
8479 # on some systems where configure will not decide to define it.
8480 cat >>conftest.undefs <<\_ACEOF
8481 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8482 _ACEOF
8483
8484 # Break up conftest.defines because some shells have a limit on the size
8485 # of here documents, and old seds have small limits too (100 cmds).
8486 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8487 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8488 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8489 echo ' :' >>$CONFIG_STATUS
8490 rm -f conftest.tail
8491 while grep . conftest.defines >/dev/null
8492 do
8493 # Write a limited-size here document to $tmp/defines.sed.
8494 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8495 # Speed up: don't consider the non `#define' lines.
8496 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8497 # Work around the forget-to-reset-the-flag bug.
8498 echo 't clr' >>$CONFIG_STATUS
8499 echo ': clr' >>$CONFIG_STATUS
8500 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8501 echo 'CEOF
8502 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8503 rm -f $tmp/in
8504 mv $tmp/out $tmp/in
8505 ' >>$CONFIG_STATUS
8506 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8507 rm -f conftest.defines
8508 mv conftest.tail conftest.defines
8509 done
8510 rm -f conftest.defines
8511 echo ' fi # grep' >>$CONFIG_STATUS
8512 echo >>$CONFIG_STATUS
8513
8514 # Break up conftest.undefs because some shells have a limit on the size
8515 # of here documents, and old seds have small limits too (100 cmds).
8516 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8517 rm -f conftest.tail
8518 while grep . conftest.undefs >/dev/null
8519 do
8520 # Write a limited-size here document to $tmp/undefs.sed.
8521 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8522 # Speed up: don't consider the non `#undef'
8523 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8524 # Work around the forget-to-reset-the-flag bug.
8525 echo 't clr' >>$CONFIG_STATUS
8526 echo ': clr' >>$CONFIG_STATUS
8527 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8528 echo 'CEOF
8529 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8530 rm -f $tmp/in
8531 mv $tmp/out $tmp/in
8532 ' >>$CONFIG_STATUS
8533 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8534 rm -f conftest.undefs
8535 mv conftest.tail conftest.undefs
8536 done
8537 rm -f conftest.undefs
8538
8539 cat >>$CONFIG_STATUS <<\_ACEOF
8540 # Let's still pretend it is `configure' which instantiates (i.e., don't
8541 # use $as_me), people would be surprised to read:
8542 # /* config.h. Generated by config.status. */
8543 if test x"$ac_file" = x-; then
8544 echo "/* Generated by configure. */" >$tmp/config.h
8545 else
8546 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8547 fi
8548 cat $tmp/in >>$tmp/config.h
8549 rm -f $tmp/in
8550 if test x"$ac_file" != x-; then
8551 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8552 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8553 echo "$as_me: $ac_file is unchanged" >&6;}
8554 else
8555 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8556 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8557 X"$ac_file" : 'X\(//\)[^/]' \| \
8558 X"$ac_file" : 'X\(//\)$' \| \
8559 X"$ac_file" : 'X\(/\)' \| \
8560 . : '\(.\)' 2>/dev/null ||
8561 echo X"$ac_file" |
8562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8563 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8564 /^X\(\/\/\)$/{ s//\1/; q; }
8565 /^X\(\/\).*/{ s//\1/; q; }
8566 s/.*/./; q'`
8567 { if $as_mkdir_p; then
8568 mkdir -p "$ac_dir"
8569 else
8570 as_dir="$ac_dir"
8571 as_dirs=
8572 while test ! -d "$as_dir"; do
8573 as_dirs="$as_dir $as_dirs"
8574 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8575 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8576 X"$as_dir" : 'X\(//\)[^/]' \| \
8577 X"$as_dir" : 'X\(//\)$' \| \
8578 X"$as_dir" : 'X\(/\)' \| \
8579 . : '\(.\)' 2>/dev/null ||
8580 echo X"$as_dir" |
8581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8582 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8583 /^X\(\/\/\)$/{ s//\1/; q; }
8584 /^X\(\/\).*/{ s//\1/; q; }
8585 s/.*/./; q'`
8586 done
8587 test ! -n "$as_dirs" || mkdir $as_dirs
8588 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8589 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8590 { (exit 1); exit 1; }; }; }
8591
8592 rm -f $ac_file
8593 mv $tmp/config.h $ac_file
8594 fi
8595 else
8596 cat $tmp/config.h
8597 rm -f $tmp/config.h
8598 fi
8599 done
8600 _ACEOF
8601
8602 cat >>$CONFIG_STATUS <<\_ACEOF
8603
8604 { (exit 0); exit 0; }
8605 _ACEOF
8606 chmod +x $CONFIG_STATUS
8607 ac_clean_files=$ac_clean_files_save
8608
8609
8610 # configure is writing to config.log, and then calls config.status.
8611 # config.status does its own redirection, appending to config.log.
8612 # Unfortunately, on DOS this fails, as config.log is still kept open
8613 # by configure, so config.status won't be able to write to it; its
8614 # output is simply discarded. So we exec the FD to /dev/null,
8615 # effectively closing config.log, so it can be properly (re)opened and
8616 # appended to by config.status. When coming back to configure, we
8617 # need to make the FD available again.
8618 if test "$no_create" != yes; then
8619 ac_cs_success=:
8620 ac_config_status_args=
8621 test "$silent" = yes &&
8622 ac_config_status_args="$ac_config_status_args --quiet"
8623 exec 5>/dev/null
8624 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8625 exec 5>>config.log
8626 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8627 # would make configure fail if this is the last instruction.
8628 $ac_cs_success || { (exit 1); exit 1; }
8629 fi
8630
8631
8632 if test -f .devel ; then
8633 make depend
8634 fi
8635 exit 0