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