Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for Pcap 0.4.5.1.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
182 fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203 fi
204 fi
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell [email protected] and [email protected]
242 $0: about your system, including any error possibly output
243 $0: before this message. Then install a modern shell, or
244 $0: manually run the script under such a shell if you do
245 $0: have one."
246 fi
247 exit 1
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
256
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265 { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
268
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
273 {
274 return $1
275 } # as_fn_set_status
276
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
281 {
282 set +e
283 as_fn_set_status $1
284 exit $1
285 } # as_fn_exit
286
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
291 {
292
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
316 q
317 }
318 /^X\(\/\/\)$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\).*/{
323 s//\1/
324 q
325 }
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
342 {
343 eval $1+=\$2
344 }'
345 else
346 as_fn_append ()
347 {
348 eval $1=\$$1\$2
349 }
350 fi # as_fn_append
351
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
359 {
360 as_val=$(( $* ))
361 }'
362 else
363 as_fn_arith ()
364 {
365 as_val=`expr "$@" || test $? -eq 1`
366 }
367 fi # as_fn_arith
368
369
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
376 {
377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381 fi
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
384 } # as_fn_error
385
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389 else
390 as_expr=false
391 fi
392
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395 else
396 as_basename=false
397 fi
398
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401 else
402 as_dirname=false
403 fi
404
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
412 q
413 }
414 /^X\/\(\/\/\)$/{
415 s//\1/
416 q
417 }
418 /^X\/\(\/\).*/{
419 s//\1/
420 q
421 }
422 s/.*/./; q'`
423
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
446 N
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
461 }
462
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
471 esac;;
472 *)
473 ECHO_N='-n';;
474 esac
475
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479 else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
482 fi
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
496 fi
497 else
498 as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
502
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
505 else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
508 fi
509
510 if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512 else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
517 fi
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
523 case $1 in #(
524 -*)set "./$1";;
525 esac;
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
529 '
530 fi
531 as_executable_p=$as_test_x
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540 test -n "$DJDIR" || exec 7<&0 </dev/null
541 exec 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559
560 # Identity of this package.
561 PACKAGE_NAME='Pcap'
562 PACKAGE_TARNAME='pcap'
563 PACKAGE_VERSION='0.4.5.1'
564 PACKAGE_STRING='Pcap 0.4.5.1'
565 PACKAGE_BUGREPORT='[email protected]'
566 PACKAGE_URL=''
567
568 # Factoring default headers for most tests.
569 ac_includes_default="\
570 #include <stdio.h>
571 #ifdef HAVE_SYS_TYPES_H
572 # include <sys/types.h>
573 #endif
574 #ifdef HAVE_SYS_STAT_H
575 # include <sys/stat.h>
576 #endif
577 #ifdef STDC_HEADERS
578 # include <stdlib.h>
579 # include <stddef.h>
580 #else
581 # ifdef HAVE_STDLIB_H
582 # include <stdlib.h>
583 # endif
584 #endif
585 #ifdef HAVE_STRING_H
586 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
587 # include <memory.h>
588 # endif
589 # include <string.h>
590 #endif
591 #ifdef HAVE_STRINGS_H
592 # include <strings.h>
593 #endif
594 #ifdef HAVE_INTTYPES_H
595 # include <inttypes.h>
596 #endif
597 #ifdef HAVE_STDINT_H
598 # include <stdint.h>
599 #endif
600 #ifdef HAVE_UNISTD_H
601 # include <unistd.h>
602 #endif"
603
604 ac_subst_vars='LTLIBOBJS
605 LIBOBJS
606 EXTRA_LIBS
607 CALLCONV
608 EGREP
609 GREP
610 CPP
611 OBJEXT
612 EXEEXT
613 ac_ct_CC
614 CPPFLAGS
615 LDFLAGS
616 CFLAGS
617 CC
618 target_alias
619 host_alias
620 build_alias
621 LIBS
622 ECHO_T
623 ECHO_N
624 ECHO_C
625 DEFS
626 mandir
627 localedir
628 libdir
629 psdir
630 pdfdir
631 dvidir
632 htmldir
633 infodir
634 docdir
635 oldincludedir
636 includedir
637 localstatedir
638 sharedstatedir
639 sysconfdir
640 datadir
641 datarootdir
642 libexecdir
643 sbindir
644 bindir
645 program_transform_name
646 prefix
647 exec_prefix
648 PACKAGE_URL
649 PACKAGE_BUGREPORT
650 PACKAGE_STRING
651 PACKAGE_VERSION
652 PACKAGE_TARNAME
653 PACKAGE_NAME
654 PATH_SEPARATOR
655 SHELL'
656 ac_subst_files=''
657 ac_user_opts='
658 enable_option_checking
659 with_compiler
660 '
661 ac_precious_vars='build_alias
662 host_alias
663 target_alias
664 CC
665 CFLAGS
666 LDFLAGS
667 LIBS
668 CPPFLAGS
669 CPP'
670
671
672 # Initialize some variables set by options.
673 ac_init_help=
674 ac_init_version=false
675 ac_unrecognized_opts=
676 ac_unrecognized_sep=
677 # The variables have the same names as the options, with
678 # dashes changed to underlines.
679 cache_file=/dev/null
680 exec_prefix=NONE
681 no_create=
682 no_recursion=
683 prefix=NONE
684 program_prefix=NONE
685 program_suffix=NONE
686 program_transform_name=s,x,x,
687 silent=
688 site=
689 srcdir=
690 verbose=
691 x_includes=NONE
692 x_libraries=NONE
693
694 # Installation directory options.
695 # These are left unexpanded so users can "make install exec_prefix=/foo"
696 # and all the variables that are supposed to be based on exec_prefix
697 # by default will actually change.
698 # Use braces instead of parens because sh, perl, etc. also accept them.
699 # (The list follows the same order as the GNU Coding Standards.)
700 bindir='${exec_prefix}/bin'
701 sbindir='${exec_prefix}/sbin'
702 libexecdir='${exec_prefix}/libexec'
703 datarootdir='${prefix}/share'
704 datadir='${datarootdir}'
705 sysconfdir='${prefix}/etc'
706 sharedstatedir='${prefix}/com'
707 localstatedir='${prefix}/var'
708 includedir='${prefix}/include'
709 oldincludedir='/usr/include'
710 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
711 infodir='${datarootdir}/info'
712 htmldir='${docdir}'
713 dvidir='${docdir}'
714 pdfdir='${docdir}'
715 psdir='${docdir}'
716 libdir='${exec_prefix}/lib'
717 localedir='${datarootdir}/locale'
718 mandir='${datarootdir}/man'
719
720 ac_prev=
721 ac_dashdash=
722 for ac_option
723 do
724 # If the previous option needs an argument, assign it.
725 if test -n "$ac_prev"; then
726 eval $ac_prev=\$ac_option
727 ac_prev=
728 continue
729 fi
730
731 case $ac_option in
732 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
733 *=) ac_optarg= ;;
734 *) ac_optarg=yes ;;
735 esac
736
737 # Accept the important Cygnus configure options, so we can diagnose typos.
738
739 case $ac_dashdash$ac_option in
740 --)
741 ac_dashdash=yes ;;
742
743 -bindir | --bindir | --bindi | --bind | --bin | --bi)
744 ac_prev=bindir ;;
745 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
746 bindir=$ac_optarg ;;
747
748 -build | --build | --buil | --bui | --bu)
749 ac_prev=build_alias ;;
750 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
751 build_alias=$ac_optarg ;;
752
753 -cache-file | --cache-file | --cache-fil | --cache-fi \
754 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
755 ac_prev=cache_file ;;
756 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
757 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
758 cache_file=$ac_optarg ;;
759
760 --config-cache | -C)
761 cache_file=config.cache ;;
762
763 -datadir | --datadir | --datadi | --datad)
764 ac_prev=datadir ;;
765 -datadir=* | --datadir=* | --datadi=* | --datad=*)
766 datadir=$ac_optarg ;;
767
768 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
769 | --dataroo | --dataro | --datar)
770 ac_prev=datarootdir ;;
771 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
772 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
773 datarootdir=$ac_optarg ;;
774
775 -disable-* | --disable-*)
776 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
777 # Reject names that are not valid shell variable names.
778 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
779 as_fn_error $? "invalid feature name: $ac_useropt"
780 ac_useropt_orig=$ac_useropt
781 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
782 case $ac_user_opts in
783 *"
784 "enable_$ac_useropt"
785 "*) ;;
786 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
787 ac_unrecognized_sep=', ';;
788 esac
789 eval enable_$ac_useropt=no ;;
790
791 -docdir | --docdir | --docdi | --doc | --do)
792 ac_prev=docdir ;;
793 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
794 docdir=$ac_optarg ;;
795
796 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
797 ac_prev=dvidir ;;
798 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
799 dvidir=$ac_optarg ;;
800
801 -enable-* | --enable-*)
802 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
803 # Reject names that are not valid shell variable names.
804 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
805 as_fn_error $? "invalid feature name: $ac_useropt"
806 ac_useropt_orig=$ac_useropt
807 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
808 case $ac_user_opts in
809 *"
810 "enable_$ac_useropt"
811 "*) ;;
812 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
813 ac_unrecognized_sep=', ';;
814 esac
815 eval enable_$ac_useropt=\$ac_optarg ;;
816
817 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
818 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
819 | --exec | --exe | --ex)
820 ac_prev=exec_prefix ;;
821 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
822 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
823 | --exec=* | --exe=* | --ex=*)
824 exec_prefix=$ac_optarg ;;
825
826 -gas | --gas | --ga | --g)
827 # Obsolete; use --with-gas.
828 with_gas=yes ;;
829
830 -help | --help | --hel | --he | -h)
831 ac_init_help=long ;;
832 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
833 ac_init_help=recursive ;;
834 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
835 ac_init_help=short ;;
836
837 -host | --host | --hos | --ho)
838 ac_prev=host_alias ;;
839 -host=* | --host=* | --hos=* | --ho=*)
840 host_alias=$ac_optarg ;;
841
842 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
843 ac_prev=htmldir ;;
844 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
845 | --ht=*)
846 htmldir=$ac_optarg ;;
847
848 -includedir | --includedir | --includedi | --included | --include \
849 | --includ | --inclu | --incl | --inc)
850 ac_prev=includedir ;;
851 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
852 | --includ=* | --inclu=* | --incl=* | --inc=*)
853 includedir=$ac_optarg ;;
854
855 -infodir | --infodir | --infodi | --infod | --info | --inf)
856 ac_prev=infodir ;;
857 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
858 infodir=$ac_optarg ;;
859
860 -libdir | --libdir | --libdi | --libd)
861 ac_prev=libdir ;;
862 -libdir=* | --libdir=* | --libdi=* | --libd=*)
863 libdir=$ac_optarg ;;
864
865 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
866 | --libexe | --libex | --libe)
867 ac_prev=libexecdir ;;
868 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
869 | --libexe=* | --libex=* | --libe=*)
870 libexecdir=$ac_optarg ;;
871
872 -localedir | --localedir | --localedi | --localed | --locale)
873 ac_prev=localedir ;;
874 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
875 localedir=$ac_optarg ;;
876
877 -localstatedir | --localstatedir | --localstatedi | --localstated \
878 | --localstate | --localstat | --localsta | --localst | --locals)
879 ac_prev=localstatedir ;;
880 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
881 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
882 localstatedir=$ac_optarg ;;
883
884 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
885 ac_prev=mandir ;;
886 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
887 mandir=$ac_optarg ;;
888
889 -nfp | --nfp | --nf)
890 # Obsolete; use --without-fp.
891 with_fp=no ;;
892
893 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
894 | --no-cr | --no-c | -n)
895 no_create=yes ;;
896
897 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
898 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
899 no_recursion=yes ;;
900
901 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
902 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
903 | --oldin | --oldi | --old | --ol | --o)
904 ac_prev=oldincludedir ;;
905 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
906 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
907 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
908 oldincludedir=$ac_optarg ;;
909
910 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
911 ac_prev=prefix ;;
912 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
913 prefix=$ac_optarg ;;
914
915 -program-prefix | --program-prefix | --program-prefi | --program-pref \
916 | --program-pre | --program-pr | --program-p)
917 ac_prev=program_prefix ;;
918 -program-prefix=* | --program-prefix=* | --program-prefi=* \
919 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
920 program_prefix=$ac_optarg ;;
921
922 -program-suffix | --program-suffix | --program-suffi | --program-suff \
923 | --program-suf | --program-su | --program-s)
924 ac_prev=program_suffix ;;
925 -program-suffix=* | --program-suffix=* | --program-suffi=* \
926 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
927 program_suffix=$ac_optarg ;;
928
929 -program-transform-name | --program-transform-name \
930 | --program-transform-nam | --program-transform-na \
931 | --program-transform-n | --program-transform- \
932 | --program-transform | --program-transfor \
933 | --program-transfo | --program-transf \
934 | --program-trans | --program-tran \
935 | --progr-tra | --program-tr | --program-t)
936 ac_prev=program_transform_name ;;
937 -program-transform-name=* | --program-transform-name=* \
938 | --program-transform-nam=* | --program-transform-na=* \
939 | --program-transform-n=* | --program-transform-=* \
940 | --program-transform=* | --program-transfor=* \
941 | --program-transfo=* | --program-transf=* \
942 | --program-trans=* | --program-tran=* \
943 | --progr-tra=* | --program-tr=* | --program-t=*)
944 program_transform_name=$ac_optarg ;;
945
946 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
947 ac_prev=pdfdir ;;
948 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
949 pdfdir=$ac_optarg ;;
950
951 -psdir | --psdir | --psdi | --psd | --ps)
952 ac_prev=psdir ;;
953 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
954 psdir=$ac_optarg ;;
955
956 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
957 | -silent | --silent | --silen | --sile | --sil)
958 silent=yes ;;
959
960 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
961 ac_prev=sbindir ;;
962 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
963 | --sbi=* | --sb=*)
964 sbindir=$ac_optarg ;;
965
966 -sharedstatedir | --sharedstatedir | --sharedstatedi \
967 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
968 | --sharedst | --shareds | --shared | --share | --shar \
969 | --sha | --sh)
970 ac_prev=sharedstatedir ;;
971 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
972 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
973 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
974 | --sha=* | --sh=*)
975 sharedstatedir=$ac_optarg ;;
976
977 -site | --site | --sit)
978 ac_prev=site ;;
979 -site=* | --site=* | --sit=*)
980 site=$ac_optarg ;;
981
982 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
983 ac_prev=srcdir ;;
984 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
985 srcdir=$ac_optarg ;;
986
987 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
988 | --syscon | --sysco | --sysc | --sys | --sy)
989 ac_prev=sysconfdir ;;
990 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
991 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
992 sysconfdir=$ac_optarg ;;
993
994 -target | --target | --targe | --targ | --tar | --ta | --t)
995 ac_prev=target_alias ;;
996 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
997 target_alias=$ac_optarg ;;
998
999 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1000 verbose=yes ;;
1001
1002 -version | --version | --versio | --versi | --vers | -V)
1003 ac_init_version=: ;;
1004
1005 -with-* | --with-*)
1006 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009 as_fn_error $? "invalid package name: $ac_useropt"
1010 ac_useropt_orig=$ac_useropt
1011 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012 case $ac_user_opts in
1013 *"
1014 "with_$ac_useropt"
1015 "*) ;;
1016 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1017 ac_unrecognized_sep=', ';;
1018 esac
1019 eval with_$ac_useropt=\$ac_optarg ;;
1020
1021 -without-* | --without-*)
1022 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025 as_fn_error $? "invalid package name: $ac_useropt"
1026 ac_useropt_orig=$ac_useropt
1027 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 case $ac_user_opts in
1029 *"
1030 "with_$ac_useropt"
1031 "*) ;;
1032 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1033 ac_unrecognized_sep=', ';;
1034 esac
1035 eval with_$ac_useropt=no ;;
1036
1037 --x)
1038 # Obsolete; use --with-x.
1039 with_x=yes ;;
1040
1041 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1042 | --x-incl | --x-inc | --x-in | --x-i)
1043 ac_prev=x_includes ;;
1044 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1045 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1046 x_includes=$ac_optarg ;;
1047
1048 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1049 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1050 ac_prev=x_libraries ;;
1051 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1052 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1053 x_libraries=$ac_optarg ;;
1054
1055 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1056 Try \`$0 --help' for more information"
1057 ;;
1058
1059 *=*)
1060 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1061 # Reject names that are not valid shell variable names.
1062 case $ac_envvar in #(
1063 '' | [0-9]* | *[!_$as_cr_alnum]* )
1064 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1065 esac
1066 eval $ac_envvar=\$ac_optarg
1067 export $ac_envvar ;;
1068
1069 *)
1070 # FIXME: should be removed in autoconf 3.0.
1071 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1072 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1073 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1074 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1075 ;;
1076
1077 esac
1078 done
1079
1080 if test -n "$ac_prev"; then
1081 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1082 as_fn_error $? "missing argument to $ac_option"
1083 fi
1084
1085 if test -n "$ac_unrecognized_opts"; then
1086 case $enable_option_checking in
1087 no) ;;
1088 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1089 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1090 esac
1091 fi
1092
1093 # Check all directory arguments for consistency.
1094 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1095 datadir sysconfdir sharedstatedir localstatedir includedir \
1096 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1097 libdir localedir mandir
1098 do
1099 eval ac_val=\$$ac_var
1100 # Remove trailing slashes.
1101 case $ac_val in
1102 */ )
1103 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1104 eval $ac_var=\$ac_val;;
1105 esac
1106 # Be sure to have absolute directory names.
1107 case $ac_val in
1108 [\\/$]* | ?:[\\/]* ) continue;;
1109 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1110 esac
1111 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1112 done
1113
1114 # There might be people who depend on the old broken behavior: `$host'
1115 # used to hold the argument of --host etc.
1116 # FIXME: To remove some day.
1117 build=$build_alias
1118 host=$host_alias
1119 target=$target_alias
1120
1121 # FIXME: To remove some day.
1122 if test "x$host_alias" != x; then
1123 if test "x$build_alias" = x; then
1124 cross_compiling=maybe
1125 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1126 If a cross compiler is detected then cross compile mode will be used" >&2
1127 elif test "x$build_alias" != "x$host_alias"; then
1128 cross_compiling=yes
1129 fi
1130 fi
1131
1132 ac_tool_prefix=
1133 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1134
1135 test "$silent" = yes && exec 6>/dev/null
1136
1137
1138 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1139 ac_ls_di=`ls -di .` &&
1140 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1141 as_fn_error $? "working directory cannot be determined"
1142 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1143 as_fn_error $? "pwd does not report name of working directory"
1144
1145
1146 # Find the source files, if location was not specified.
1147 if test -z "$srcdir"; then
1148 ac_srcdir_defaulted=yes
1149 # Try the directory containing this script, then the parent directory.
1150 ac_confdir=`$as_dirname -- "$as_myself" ||
1151 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1152 X"$as_myself" : 'X\(//\)[^/]' \| \
1153 X"$as_myself" : 'X\(//\)$' \| \
1154 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1155 $as_echo X"$as_myself" |
1156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1157 s//\1/
1158 q
1159 }
1160 /^X\(\/\/\)[^/].*/{
1161 s//\1/
1162 q
1163 }
1164 /^X\(\/\/\)$/{
1165 s//\1/
1166 q
1167 }
1168 /^X\(\/\).*/{
1169 s//\1/
1170 q
1171 }
1172 s/.*/./; q'`
1173 srcdir=$ac_confdir
1174 if test ! -r "$srcdir/$ac_unique_file"; then
1175 srcdir=..
1176 fi
1177 else
1178 ac_srcdir_defaulted=no
1179 fi
1180 if test ! -r "$srcdir/$ac_unique_file"; then
1181 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1182 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1183 fi
1184 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1185 ac_abs_confdir=`(
1186 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1187 pwd)`
1188 # When building in place, set srcdir=.
1189 if test "$ac_abs_confdir" = "$ac_pwd"; then
1190 srcdir=.
1191 fi
1192 # Remove unnecessary trailing slashes from srcdir.
1193 # Double slashes in file names in object file debugging info
1194 # mess up M-x gdb in Emacs.
1195 case $srcdir in
1196 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1197 esac
1198 for ac_var in $ac_precious_vars; do
1199 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1200 eval ac_env_${ac_var}_value=\$${ac_var}
1201 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1202 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1203 done
1204
1205 #
1206 # Report the --help message.
1207 #
1208 if test "$ac_init_help" = "long"; then
1209 # Omit some internal or obsolete options to make the list less imposing.
1210 # This message is too long to be a string in the A/UX 3.1 sh.
1211 cat <<_ACEOF
1212 \`configure' configures Pcap 0.4.5.1 to adapt to many kinds of systems.
1213
1214 Usage: $0 [OPTION]... [VAR=VALUE]...
1215
1216 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1217 VAR=VALUE. See below for descriptions of some of the useful variables.
1218
1219 Defaults for the options are specified in brackets.
1220
1221 Configuration:
1222 -h, --help display this help and exit
1223 --help=short display options specific to this package
1224 --help=recursive display the short help of all the included packages
1225 -V, --version display version information and exit
1226 -q, --quiet, --silent do not print \`checking ...' messages
1227 --cache-file=FILE cache test results in FILE [disabled]
1228 -C, --config-cache alias for \`--cache-file=config.cache'
1229 -n, --no-create do not create output files
1230 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1231
1232 Installation directories:
1233 --prefix=PREFIX install architecture-independent files in PREFIX
1234 [$ac_default_prefix]
1235 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1236 [PREFIX]
1237
1238 By default, \`make install' will install all the files in
1239 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1240 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1241 for instance \`--prefix=\$HOME'.
1242
1243 For better control, use the options below.
1244
1245 Fine tuning of the installation directories:
1246 --bindir=DIR user executables [EPREFIX/bin]
1247 --sbindir=DIR system admin executables [EPREFIX/sbin]
1248 --libexecdir=DIR program executables [EPREFIX/libexec]
1249 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1250 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1251 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1252 --libdir=DIR object code libraries [EPREFIX/lib]
1253 --includedir=DIR C header files [PREFIX/include]
1254 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1255 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1256 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1257 --infodir=DIR info documentation [DATAROOTDIR/info]
1258 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1259 --mandir=DIR man documentation [DATAROOTDIR/man]
1260 --docdir=DIR documentation root [DATAROOTDIR/doc/pcap]
1261 --htmldir=DIR html documentation [DOCDIR]
1262 --dvidir=DIR dvi documentation [DOCDIR]
1263 --pdfdir=DIR pdf documentation [DOCDIR]
1264 --psdir=DIR ps documentation [DOCDIR]
1265 _ACEOF
1266
1267 cat <<\_ACEOF
1268 _ACEOF
1269 fi
1270
1271 if test -n "$ac_init_help"; then
1272 case $ac_init_help in
1273 short | recursive ) echo "Configuration of Pcap 0.4.5.1:";;
1274 esac
1275 cat <<\_ACEOF
1276
1277 Optional Packages:
1278 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1279 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1280 --with-compiler use the given Haskell compiler
1281
1282 Some influential environment variables:
1283 CC C compiler command
1284 CFLAGS C compiler flags
1285 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1286 nonstandard directory <lib dir>
1287 LIBS libraries to pass to the linker, e.g. -l<library>
1288 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1289 you have headers in a nonstandard directory <include dir>
1290 CPP C preprocessor
1291
1292 Use these variables to override the choices made by `configure' or to help
1293 it to find libraries and programs with nonstandard names/locations.
1294
1295 Report bugs to <[email protected]>.
1296 _ACEOF
1297 ac_status=$?
1298 fi
1299
1300 if test "$ac_init_help" = "recursive"; then
1301 # If there are subdirs, report their specific --help.
1302 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1303 test -d "$ac_dir" ||
1304 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1305 continue
1306 ac_builddir=.
1307
1308 case "$ac_dir" in
1309 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1310 *)
1311 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1312 # A ".." for each directory in $ac_dir_suffix.
1313 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1314 case $ac_top_builddir_sub in
1315 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1316 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1317 esac ;;
1318 esac
1319 ac_abs_top_builddir=$ac_pwd
1320 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1321 # for backward compatibility:
1322 ac_top_builddir=$ac_top_build_prefix
1323
1324 case $srcdir in
1325 .) # We are building in place.
1326 ac_srcdir=.
1327 ac_top_srcdir=$ac_top_builddir_sub
1328 ac_abs_top_srcdir=$ac_pwd ;;
1329 [\\/]* | ?:[\\/]* ) # Absolute name.
1330 ac_srcdir=$srcdir$ac_dir_suffix;
1331 ac_top_srcdir=$srcdir
1332 ac_abs_top_srcdir=$srcdir ;;
1333 *) # Relative name.
1334 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1335 ac_top_srcdir=$ac_top_build_prefix$srcdir
1336 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1337 esac
1338 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1339
1340 cd "$ac_dir" || { ac_status=$?; continue; }
1341 # Check for guested configure.
1342 if test -f "$ac_srcdir/configure.gnu"; then
1343 echo &&
1344 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1345 elif test -f "$ac_srcdir/configure"; then
1346 echo &&
1347 $SHELL "$ac_srcdir/configure" --help=recursive
1348 else
1349 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1350 fi || ac_status=$?
1351 cd "$ac_pwd" || { ac_status=$?; break; }
1352 done
1353 fi
1354
1355 test -n "$ac_init_help" && exit $ac_status
1356 if $ac_init_version; then
1357 cat <<\_ACEOF
1358 Pcap configure 0.4.5.1
1359 generated by GNU Autoconf 2.68
1360
1361 Copyright (C) 2010 Free Software Foundation, Inc.
1362 This configure script is free software; the Free Software Foundation
1363 gives unlimited permission to copy, distribute and modify it.
1364 _ACEOF
1365 exit
1366 fi
1367
1368 ## ------------------------ ##
1369 ## Autoconf initialization. ##
1370 ## ------------------------ ##
1371
1372 # ac_fn_c_try_compile LINENO
1373 # --------------------------
1374 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1375 ac_fn_c_try_compile ()
1376 {
1377 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1378 rm -f conftest.$ac_objext
1379 if { { ac_try="$ac_compile"
1380 case "(($ac_try" in
1381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1382 *) ac_try_echo=$ac_try;;
1383 esac
1384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1385 $as_echo "$ac_try_echo"; } >&5
1386 (eval "$ac_compile") 2>conftest.err
1387 ac_status=$?
1388 if test -s conftest.err; then
1389 grep -v '^ *+' conftest.err >conftest.er1
1390 cat conftest.er1 >&5
1391 mv -f conftest.er1 conftest.err
1392 fi
1393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1394 test $ac_status = 0; } && {
1395 test -z "$ac_c_werror_flag" ||
1396 test ! -s conftest.err
1397 } && test -s conftest.$ac_objext; then :
1398 ac_retval=0
1399 else
1400 $as_echo "$as_me: failed program was:" >&5
1401 sed 's/^/| /' conftest.$ac_ext >&5
1402
1403 ac_retval=1
1404 fi
1405 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1406 as_fn_set_status $ac_retval
1407
1408 } # ac_fn_c_try_compile
1409
1410 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1411 # ----------------------------------------------------
1412 # Tries to find if the field MEMBER exists in type AGGR, after including
1413 # INCLUDES, setting cache variable VAR accordingly.
1414 ac_fn_c_check_member ()
1415 {
1416 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1418 $as_echo_n "checking for $2.$3... " >&6; }
1419 if eval \${$4+:} false; then :
1420 $as_echo_n "(cached) " >&6
1421 else
1422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1423 /* end confdefs.h. */
1424 $5
1425 int
1426 main ()
1427 {
1428 static $2 ac_aggr;
1429 if (ac_aggr.$3)
1430 return 0;
1431 ;
1432 return 0;
1433 }
1434 _ACEOF
1435 if ac_fn_c_try_compile "$LINENO"; then :
1436 eval "$4=yes"
1437 else
1438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1439 /* end confdefs.h. */
1440 $5
1441 int
1442 main ()
1443 {
1444 static $2 ac_aggr;
1445 if (sizeof ac_aggr.$3)
1446 return 0;
1447 ;
1448 return 0;
1449 }
1450 _ACEOF
1451 if ac_fn_c_try_compile "$LINENO"; then :
1452 eval "$4=yes"
1453 else
1454 eval "$4=no"
1455 fi
1456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1457 fi
1458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1459 fi
1460 eval ac_res=\$$4
1461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1462 $as_echo "$ac_res" >&6; }
1463 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1464
1465 } # ac_fn_c_check_member
1466
1467 # ac_fn_c_try_cpp LINENO
1468 # ----------------------
1469 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1470 ac_fn_c_try_cpp ()
1471 {
1472 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1473 if { { ac_try="$ac_cpp conftest.$ac_ext"
1474 case "(($ac_try" in
1475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1476 *) ac_try_echo=$ac_try;;
1477 esac
1478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1479 $as_echo "$ac_try_echo"; } >&5
1480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1481 ac_status=$?
1482 if test -s conftest.err; then
1483 grep -v '^ *+' conftest.err >conftest.er1
1484 cat conftest.er1 >&5
1485 mv -f conftest.er1 conftest.err
1486 fi
1487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1488 test $ac_status = 0; } > conftest.i && {
1489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1490 test ! -s conftest.err
1491 }; then :
1492 ac_retval=0
1493 else
1494 $as_echo "$as_me: failed program was:" >&5
1495 sed 's/^/| /' conftest.$ac_ext >&5
1496
1497 ac_retval=1
1498 fi
1499 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1500 as_fn_set_status $ac_retval
1501
1502 } # ac_fn_c_try_cpp
1503
1504 # ac_fn_c_try_run LINENO
1505 # ----------------------
1506 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1507 # that executables *can* be run.
1508 ac_fn_c_try_run ()
1509 {
1510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1511 if { { ac_try="$ac_link"
1512 case "(($ac_try" in
1513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1514 *) ac_try_echo=$ac_try;;
1515 esac
1516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1517 $as_echo "$ac_try_echo"; } >&5
1518 (eval "$ac_link") 2>&5
1519 ac_status=$?
1520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1522 { { case "(($ac_try" in
1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524 *) ac_try_echo=$ac_try;;
1525 esac
1526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527 $as_echo "$ac_try_echo"; } >&5
1528 (eval "$ac_try") 2>&5
1529 ac_status=$?
1530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531 test $ac_status = 0; }; }; then :
1532 ac_retval=0
1533 else
1534 $as_echo "$as_me: program exited with status $ac_status" >&5
1535 $as_echo "$as_me: failed program was:" >&5
1536 sed 's/^/| /' conftest.$ac_ext >&5
1537
1538 ac_retval=$ac_status
1539 fi
1540 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1541 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1542 as_fn_set_status $ac_retval
1543
1544 } # ac_fn_c_try_run
1545
1546 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1547 # -------------------------------------------------------
1548 # Tests whether HEADER exists and can be compiled using the include files in
1549 # INCLUDES, setting the cache variable VAR accordingly.
1550 ac_fn_c_check_header_compile ()
1551 {
1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1554 $as_echo_n "checking for $2... " >&6; }
1555 if eval \${$3+:} false; then :
1556 $as_echo_n "(cached) " >&6
1557 else
1558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1559 /* end confdefs.h. */
1560 $4
1561 #include <$2>
1562 _ACEOF
1563 if ac_fn_c_try_compile "$LINENO"; then :
1564 eval "$3=yes"
1565 else
1566 eval "$3=no"
1567 fi
1568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1569 fi
1570 eval ac_res=\$$3
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1572 $as_echo "$ac_res" >&6; }
1573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574
1575 } # ac_fn_c_check_header_compile
1576 cat >config.log <<_ACEOF
1577 This file contains any messages produced by compilers while
1578 running configure, to aid debugging if configure makes a mistake.
1579
1580 It was created by Pcap $as_me 0.4.5.1, which was
1581 generated by GNU Autoconf 2.68. Invocation command line was
1582
1583 $ $0 $@
1584
1585 _ACEOF
1586 exec 5>>config.log
1587 {
1588 cat <<_ASUNAME
1589 ## --------- ##
1590 ## Platform. ##
1591 ## --------- ##
1592
1593 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1594 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1595 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1596 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1597 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1598
1599 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1600 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1601
1602 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1603 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1604 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1605 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1606 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1607 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1608 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1609
1610 _ASUNAME
1611
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613 for as_dir in $PATH
1614 do
1615 IFS=$as_save_IFS
1616 test -z "$as_dir" && as_dir=.
1617 $as_echo "PATH: $as_dir"
1618 done
1619 IFS=$as_save_IFS
1620
1621 } >&5
1622
1623 cat >&5 <<_ACEOF
1624
1625
1626 ## ----------- ##
1627 ## Core tests. ##
1628 ## ----------- ##
1629
1630 _ACEOF
1631
1632
1633 # Keep a trace of the command line.
1634 # Strip out --no-create and --no-recursion so they do not pile up.
1635 # Strip out --silent because we don't want to record it for future runs.
1636 # Also quote any args containing shell meta-characters.
1637 # Make two passes to allow for proper duplicate-argument suppression.
1638 ac_configure_args=
1639 ac_configure_args0=
1640 ac_configure_args1=
1641 ac_must_keep_next=false
1642 for ac_pass in 1 2
1643 do
1644 for ac_arg
1645 do
1646 case $ac_arg in
1647 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1648 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1649 | -silent | --silent | --silen | --sile | --sil)
1650 continue ;;
1651 *\'*)
1652 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1653 esac
1654 case $ac_pass in
1655 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1656 2)
1657 as_fn_append ac_configure_args1 " '$ac_arg'"
1658 if test $ac_must_keep_next = true; then
1659 ac_must_keep_next=false # Got value, back to normal.
1660 else
1661 case $ac_arg in
1662 *=* | --config-cache | -C | -disable-* | --disable-* \
1663 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1664 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1665 | -with-* | --with-* | -without-* | --without-* | --x)
1666 case "$ac_configure_args0 " in
1667 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1668 esac
1669 ;;
1670 -* ) ac_must_keep_next=true ;;
1671 esac
1672 fi
1673 as_fn_append ac_configure_args " '$ac_arg'"
1674 ;;
1675 esac
1676 done
1677 done
1678 { ac_configure_args0=; unset ac_configure_args0;}
1679 { ac_configure_args1=; unset ac_configure_args1;}
1680
1681 # When interrupted or exit'd, cleanup temporary files, and complete
1682 # config.log. We remove comments because anyway the quotes in there
1683 # would cause problems or look ugly.
1684 # WARNING: Use '\'' to represent an apostrophe within the trap.
1685 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1686 trap 'exit_status=$?
1687 # Save into config.log some information that might help in debugging.
1688 {
1689 echo
1690
1691 $as_echo "## ---------------- ##
1692 ## Cache variables. ##
1693 ## ---------------- ##"
1694 echo
1695 # The following way of writing the cache mishandles newlines in values,
1696 (
1697 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1698 eval ac_val=\$$ac_var
1699 case $ac_val in #(
1700 *${as_nl}*)
1701 case $ac_var in #(
1702 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1703 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1704 esac
1705 case $ac_var in #(
1706 _ | IFS | as_nl) ;; #(
1707 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1708 *) { eval $ac_var=; unset $ac_var;} ;;
1709 esac ;;
1710 esac
1711 done
1712 (set) 2>&1 |
1713 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1714 *${as_nl}ac_space=\ *)
1715 sed -n \
1716 "s/'\''/'\''\\\\'\'''\''/g;
1717 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1718 ;; #(
1719 *)
1720 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1721 ;;
1722 esac |
1723 sort
1724 )
1725 echo
1726
1727 $as_echo "## ----------------- ##
1728 ## Output variables. ##
1729 ## ----------------- ##"
1730 echo
1731 for ac_var in $ac_subst_vars
1732 do
1733 eval ac_val=\$$ac_var
1734 case $ac_val in
1735 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1736 esac
1737 $as_echo "$ac_var='\''$ac_val'\''"
1738 done | sort
1739 echo
1740
1741 if test -n "$ac_subst_files"; then
1742 $as_echo "## ------------------- ##
1743 ## File substitutions. ##
1744 ## ------------------- ##"
1745 echo
1746 for ac_var in $ac_subst_files
1747 do
1748 eval ac_val=\$$ac_var
1749 case $ac_val in
1750 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1751 esac
1752 $as_echo "$ac_var='\''$ac_val'\''"
1753 done | sort
1754 echo
1755 fi
1756
1757 if test -s confdefs.h; then
1758 $as_echo "## ----------- ##
1759 ## confdefs.h. ##
1760 ## ----------- ##"
1761 echo
1762 cat confdefs.h
1763 echo
1764 fi
1765 test "$ac_signal" != 0 &&
1766 $as_echo "$as_me: caught signal $ac_signal"
1767 $as_echo "$as_me: exit $exit_status"
1768 } >&5
1769 rm -f core *.core core.conftest.* &&
1770 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1771 exit $exit_status
1772 ' 0
1773 for ac_signal in 1 2 13 15; do
1774 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1775 done
1776 ac_signal=0
1777
1778 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1779 rm -f -r conftest* confdefs.h
1780
1781 $as_echo "/* confdefs.h */" > confdefs.h
1782
1783 # Predefined preprocessor variables.
1784
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_NAME "$PACKAGE_NAME"
1787 _ACEOF
1788
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1791 _ACEOF
1792
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1795 _ACEOF
1796
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_STRING "$PACKAGE_STRING"
1799 _ACEOF
1800
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1803 _ACEOF
1804
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_URL "$PACKAGE_URL"
1807 _ACEOF
1808
1809
1810 # Let the site file select an alternate cache file if it wants to.
1811 # Prefer an explicitly selected file to automatically selected ones.
1812 ac_site_file1=NONE
1813 ac_site_file2=NONE
1814 if test -n "$CONFIG_SITE"; then
1815 # We do not want a PATH search for config.site.
1816 case $CONFIG_SITE in #((
1817 -*) ac_site_file1=./$CONFIG_SITE;;
1818 */*) ac_site_file1=$CONFIG_SITE;;
1819 *) ac_site_file1=./$CONFIG_SITE;;
1820 esac
1821 elif test "x$prefix" != xNONE; then
1822 ac_site_file1=$prefix/share/config.site
1823 ac_site_file2=$prefix/etc/config.site
1824 else
1825 ac_site_file1=$ac_default_prefix/share/config.site
1826 ac_site_file2=$ac_default_prefix/etc/config.site
1827 fi
1828 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1829 do
1830 test "x$ac_site_file" = xNONE && continue
1831 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1833 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1834 sed 's/^/| /' "$ac_site_file" >&5
1835 . "$ac_site_file" \
1836 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1838 as_fn_error $? "failed to load site script $ac_site_file
1839 See \`config.log' for more details" "$LINENO" 5; }
1840 fi
1841 done
1842
1843 if test -r "$cache_file"; then
1844 # Some versions of bash will fail to source /dev/null (special files
1845 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1846 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1848 $as_echo "$as_me: loading cache $cache_file" >&6;}
1849 case $cache_file in
1850 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1851 *) . "./$cache_file";;
1852 esac
1853 fi
1854 else
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1856 $as_echo "$as_me: creating cache $cache_file" >&6;}
1857 >$cache_file
1858 fi
1859
1860 # Check that the precious variables saved in the cache have kept the same
1861 # value.
1862 ac_cache_corrupted=false
1863 for ac_var in $ac_precious_vars; do
1864 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1865 eval ac_new_set=\$ac_env_${ac_var}_set
1866 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1867 eval ac_new_val=\$ac_env_${ac_var}_value
1868 case $ac_old_set,$ac_new_set in
1869 set,)
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1871 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1872 ac_cache_corrupted=: ;;
1873 ,set)
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1875 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1876 ac_cache_corrupted=: ;;
1877 ,);;
1878 *)
1879 if test "x$ac_old_val" != "x$ac_new_val"; then
1880 # differences in whitespace do not lead to failure.
1881 ac_old_val_w=`echo x $ac_old_val`
1882 ac_new_val_w=`echo x $ac_new_val`
1883 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1885 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1886 ac_cache_corrupted=:
1887 else
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1889 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1890 eval $ac_var=\$ac_old_val
1891 fi
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1893 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1895 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1896 fi;;
1897 esac
1898 # Pass precious variables to config.status.
1899 if test "$ac_new_set" = set; then
1900 case $ac_new_val in
1901 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1902 *) ac_arg=$ac_var=$ac_new_val ;;
1903 esac
1904 case " $ac_configure_args " in
1905 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1906 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1907 esac
1908 fi
1909 done
1910 if $ac_cache_corrupted; then
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1914 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1915 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1916 fi
1917 ## -------------------- ##
1918 ## Main body of script. ##
1919 ## -------------------- ##
1920
1921 ac_ext=c
1922 ac_cpp='$CPP $CPPFLAGS'
1923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1926
1927
1928
1929
1930 # Check whether --with-compiler was given.
1931 if test "${with_compiler+set}" = set; then :
1932 withval=$with_compiler; compiler="$withval"
1933 else
1934 compiler=ghc
1935 fi
1936
1937 ac_config_headers="$ac_config_headers include/pcapconfig.h"
1938
1939
1940 ac_ext=c
1941 ac_cpp='$CPP $CPPFLAGS'
1942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1945 if test -n "$ac_tool_prefix"; then
1946 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1947 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1949 $as_echo_n "checking for $ac_word... " >&6; }
1950 if ${ac_cv_prog_CC+:} false; then :
1951 $as_echo_n "(cached) " >&6
1952 else
1953 if test -n "$CC"; then
1954 ac_cv_prog_CC="$CC" # Let the user override the test.
1955 else
1956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957 for as_dir in $PATH
1958 do
1959 IFS=$as_save_IFS
1960 test -z "$as_dir" && as_dir=.
1961 for ac_exec_ext in '' $ac_executable_extensions; do
1962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1963 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1965 break 2
1966 fi
1967 done
1968 done
1969 IFS=$as_save_IFS
1970
1971 fi
1972 fi
1973 CC=$ac_cv_prog_CC
1974 if test -n "$CC"; then
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1976 $as_echo "$CC" >&6; }
1977 else
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1979 $as_echo "no" >&6; }
1980 fi
1981
1982
1983 fi
1984 if test -z "$ac_cv_prog_CC"; then
1985 ac_ct_CC=$CC
1986 # Extract the first word of "gcc", so it can be a program name with args.
1987 set dummy gcc; ac_word=$2
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1989 $as_echo_n "checking for $ac_word... " >&6; }
1990 if ${ac_cv_prog_ac_ct_CC+:} false; then :
1991 $as_echo_n "(cached) " >&6
1992 else
1993 if test -n "$ac_ct_CC"; then
1994 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1995 else
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 for as_dir in $PATH
1998 do
1999 IFS=$as_save_IFS
2000 test -z "$as_dir" && as_dir=.
2001 for ac_exec_ext in '' $ac_executable_extensions; do
2002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2003 ac_cv_prog_ac_ct_CC="gcc"
2004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2005 break 2
2006 fi
2007 done
2008 done
2009 IFS=$as_save_IFS
2010
2011 fi
2012 fi
2013 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2014 if test -n "$ac_ct_CC"; then
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2016 $as_echo "$ac_ct_CC" >&6; }
2017 else
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2019 $as_echo "no" >&6; }
2020 fi
2021
2022 if test "x$ac_ct_CC" = x; then
2023 CC=""
2024 else
2025 case $cross_compiling:$ac_tool_warned in
2026 yes:)
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2029 ac_tool_warned=yes ;;
2030 esac
2031 CC=$ac_ct_CC
2032 fi
2033 else
2034 CC="$ac_cv_prog_CC"
2035 fi
2036
2037 if test -z "$CC"; then
2038 if test -n "$ac_tool_prefix"; then
2039 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2040 set dummy ${ac_tool_prefix}cc; ac_word=$2
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2042 $as_echo_n "checking for $ac_word... " >&6; }
2043 if ${ac_cv_prog_CC+:} false; then :
2044 $as_echo_n "(cached) " >&6
2045 else
2046 if test -n "$CC"; then
2047 ac_cv_prog_CC="$CC" # Let the user override the test.
2048 else
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 for as_dir in $PATH
2051 do
2052 IFS=$as_save_IFS
2053 test -z "$as_dir" && as_dir=.
2054 for ac_exec_ext in '' $ac_executable_extensions; do
2055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2056 ac_cv_prog_CC="${ac_tool_prefix}cc"
2057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2058 break 2
2059 fi
2060 done
2061 done
2062 IFS=$as_save_IFS
2063
2064 fi
2065 fi
2066 CC=$ac_cv_prog_CC
2067 if test -n "$CC"; then
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2069 $as_echo "$CC" >&6; }
2070 else
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2072 $as_echo "no" >&6; }
2073 fi
2074
2075
2076 fi
2077 fi
2078 if test -z "$CC"; then
2079 # Extract the first word of "cc", so it can be a program name with args.
2080 set dummy cc; ac_word=$2
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2082 $as_echo_n "checking for $ac_word... " >&6; }
2083 if ${ac_cv_prog_CC+:} false; then :
2084 $as_echo_n "(cached) " >&6
2085 else
2086 if test -n "$CC"; then
2087 ac_cv_prog_CC="$CC" # Let the user override the test.
2088 else
2089 ac_prog_rejected=no
2090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091 for as_dir in $PATH
2092 do
2093 IFS=$as_save_IFS
2094 test -z "$as_dir" && as_dir=.
2095 for ac_exec_ext in '' $ac_executable_extensions; do
2096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2097 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2098 ac_prog_rejected=yes
2099 continue
2100 fi
2101 ac_cv_prog_CC="cc"
2102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 break 2
2104 fi
2105 done
2106 done
2107 IFS=$as_save_IFS
2108
2109 if test $ac_prog_rejected = yes; then
2110 # We found a bogon in the path, so make sure we never use it.
2111 set dummy $ac_cv_prog_CC
2112 shift
2113 if test $# != 0; then
2114 # We chose a different compiler from the bogus one.
2115 # However, it has the same basename, so the bogon will be chosen
2116 # first if we set CC to just the basename; use the full file name.
2117 shift
2118 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2119 fi
2120 fi
2121 fi
2122 fi
2123 CC=$ac_cv_prog_CC
2124 if test -n "$CC"; then
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2126 $as_echo "$CC" >&6; }
2127 else
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2129 $as_echo "no" >&6; }
2130 fi
2131
2132
2133 fi
2134 if test -z "$CC"; then
2135 if test -n "$ac_tool_prefix"; then
2136 for ac_prog in cl.exe
2137 do
2138 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2139 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2141 $as_echo_n "checking for $ac_word... " >&6; }
2142 if ${ac_cv_prog_CC+:} false; then :
2143 $as_echo_n "(cached) " >&6
2144 else
2145 if test -n "$CC"; then
2146 ac_cv_prog_CC="$CC" # Let the user override the test.
2147 else
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 for as_dir in $PATH
2150 do
2151 IFS=$as_save_IFS
2152 test -z "$as_dir" && as_dir=.
2153 for ac_exec_ext in '' $ac_executable_extensions; do
2154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2155 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2157 break 2
2158 fi
2159 done
2160 done
2161 IFS=$as_save_IFS
2162
2163 fi
2164 fi
2165 CC=$ac_cv_prog_CC
2166 if test -n "$CC"; then
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2168 $as_echo "$CC" >&6; }
2169 else
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2171 $as_echo "no" >&6; }
2172 fi
2173
2174
2175 test -n "$CC" && break
2176 done
2177 fi
2178 if test -z "$CC"; then
2179 ac_ct_CC=$CC
2180 for ac_prog in cl.exe
2181 do
2182 # Extract the first word of "$ac_prog", so it can be a program name with args.
2183 set dummy $ac_prog; ac_word=$2
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2185 $as_echo_n "checking for $ac_word... " >&6; }
2186 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2187 $as_echo_n "(cached) " >&6
2188 else
2189 if test -n "$ac_ct_CC"; then
2190 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2191 else
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 for as_dir in $PATH
2194 do
2195 IFS=$as_save_IFS
2196 test -z "$as_dir" && as_dir=.
2197 for ac_exec_ext in '' $ac_executable_extensions; do
2198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2199 ac_cv_prog_ac_ct_CC="$ac_prog"
2200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2201 break 2
2202 fi
2203 done
2204 done
2205 IFS=$as_save_IFS
2206
2207 fi
2208 fi
2209 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2210 if test -n "$ac_ct_CC"; then
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2212 $as_echo "$ac_ct_CC" >&6; }
2213 else
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2215 $as_echo "no" >&6; }
2216 fi
2217
2218
2219 test -n "$ac_ct_CC" && break
2220 done
2221
2222 if test "x$ac_ct_CC" = x; then
2223 CC=""
2224 else
2225 case $cross_compiling:$ac_tool_warned in
2226 yes:)
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2229 ac_tool_warned=yes ;;
2230 esac
2231 CC=$ac_ct_CC
2232 fi
2233 fi
2234
2235 fi
2236
2237
2238 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2240 as_fn_error $? "no acceptable C compiler found in \$PATH
2241 See \`config.log' for more details" "$LINENO" 5; }
2242
2243 # Provide some information about the compiler.
2244 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2245 set X $ac_compile
2246 ac_compiler=$2
2247 for ac_option in --version -v -V -qversion; do
2248 { { ac_try="$ac_compiler $ac_option >&5"
2249 case "(($ac_try" in
2250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2251 *) ac_try_echo=$ac_try;;
2252 esac
2253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2254 $as_echo "$ac_try_echo"; } >&5
2255 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2256 ac_status=$?
2257 if test -s conftest.err; then
2258 sed '10a\
2259 ... rest of stderr output deleted ...
2260 10q' conftest.err >conftest.er1
2261 cat conftest.er1 >&5
2262 fi
2263 rm -f conftest.er1 conftest.err
2264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2265 test $ac_status = 0; }
2266 done
2267
2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h. */
2270
2271 int
2272 main ()
2273 {
2274
2275 ;
2276 return 0;
2277 }
2278 _ACEOF
2279 ac_clean_files_save=$ac_clean_files
2280 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2281 # Try to create an executable without -o first, disregard a.out.
2282 # It will help us diagnose broken compilers, and finding out an intuition
2283 # of exeext.
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2285 $as_echo_n "checking whether the C compiler works... " >&6; }
2286 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2287
2288 # The possible output files:
2289 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2290
2291 ac_rmfiles=
2292 for ac_file in $ac_files
2293 do
2294 case $ac_file in
2295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2296 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2297 esac
2298 done
2299 rm -f $ac_rmfiles
2300
2301 if { { ac_try="$ac_link_default"
2302 case "(($ac_try" in
2303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2304 *) ac_try_echo=$ac_try;;
2305 esac
2306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2307 $as_echo "$ac_try_echo"; } >&5
2308 (eval "$ac_link_default") 2>&5
2309 ac_status=$?
2310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2311 test $ac_status = 0; }; then :
2312 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2313 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2314 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2315 # so that the user can short-circuit this test for compilers unknown to
2316 # Autoconf.
2317 for ac_file in $ac_files ''
2318 do
2319 test -f "$ac_file" || continue
2320 case $ac_file in
2321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2322 ;;
2323 [ab].out )
2324 # We found the default executable, but exeext='' is most
2325 # certainly right.
2326 break;;
2327 *.* )
2328 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2329 then :; else
2330 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2331 fi
2332 # We set ac_cv_exeext here because the later test for it is not
2333 # safe: cross compilers may not add the suffix if given an `-o'
2334 # argument, so we may need to know it at that point already.
2335 # Even if this section looks crufty: it has the advantage of
2336 # actually working.
2337 break;;
2338 * )
2339 break;;
2340 esac
2341 done
2342 test "$ac_cv_exeext" = no && ac_cv_exeext=
2343
2344 else
2345 ac_file=''
2346 fi
2347 if test -z "$ac_file"; then :
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2349 $as_echo "no" >&6; }
2350 $as_echo "$as_me: failed program was:" >&5
2351 sed 's/^/| /' conftest.$ac_ext >&5
2352
2353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2355 as_fn_error 77 "C compiler cannot create executables
2356 See \`config.log' for more details" "$LINENO" 5; }
2357 else
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2359 $as_echo "yes" >&6; }
2360 fi
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2362 $as_echo_n "checking for C compiler default output file name... " >&6; }
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2364 $as_echo "$ac_file" >&6; }
2365 ac_exeext=$ac_cv_exeext
2366
2367 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2368 ac_clean_files=$ac_clean_files_save
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2370 $as_echo_n "checking for suffix of executables... " >&6; }
2371 if { { ac_try="$ac_link"
2372 case "(($ac_try" in
2373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2374 *) ac_try_echo=$ac_try;;
2375 esac
2376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2377 $as_echo "$ac_try_echo"; } >&5
2378 (eval "$ac_link") 2>&5
2379 ac_status=$?
2380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2381 test $ac_status = 0; }; then :
2382 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2383 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2384 # work properly (i.e., refer to `conftest.exe'), while it won't with
2385 # `rm'.
2386 for ac_file in conftest.exe conftest conftest.*; do
2387 test -f "$ac_file" || continue
2388 case $ac_file in
2389 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2390 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2391 break;;
2392 * ) break;;
2393 esac
2394 done
2395 else
2396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2398 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2399 See \`config.log' for more details" "$LINENO" 5; }
2400 fi
2401 rm -f conftest conftest$ac_cv_exeext
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2403 $as_echo "$ac_cv_exeext" >&6; }
2404
2405 rm -f conftest.$ac_ext
2406 EXEEXT=$ac_cv_exeext
2407 ac_exeext=$EXEEXT
2408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2409 /* end confdefs.h. */
2410 #include <stdio.h>
2411 int
2412 main ()
2413 {
2414 FILE *f = fopen ("conftest.out", "w");
2415 return ferror (f) || fclose (f) != 0;
2416
2417 ;
2418 return 0;
2419 }
2420 _ACEOF
2421 ac_clean_files="$ac_clean_files conftest.out"
2422 # Check that the compiler produces executables we can run. If not, either
2423 # the compiler is broken, or we cross compile.
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2425 $as_echo_n "checking whether we are cross compiling... " >&6; }
2426 if test "$cross_compiling" != yes; then
2427 { { ac_try="$ac_link"
2428 case "(($ac_try" in
2429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2430 *) ac_try_echo=$ac_try;;
2431 esac
2432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2433 $as_echo "$ac_try_echo"; } >&5
2434 (eval "$ac_link") 2>&5
2435 ac_status=$?
2436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2437 test $ac_status = 0; }
2438 if { ac_try='./conftest$ac_cv_exeext'
2439 { { case "(($ac_try" in
2440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441 *) ac_try_echo=$ac_try;;
2442 esac
2443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2444 $as_echo "$ac_try_echo"; } >&5
2445 (eval "$ac_try") 2>&5
2446 ac_status=$?
2447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2448 test $ac_status = 0; }; }; then
2449 cross_compiling=no
2450 else
2451 if test "$cross_compiling" = maybe; then
2452 cross_compiling=yes
2453 else
2454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2456 as_fn_error $? "cannot run C compiled programs.
2457 If you meant to cross compile, use \`--host'.
2458 See \`config.log' for more details" "$LINENO" 5; }
2459 fi
2460 fi
2461 fi
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2463 $as_echo "$cross_compiling" >&6; }
2464
2465 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2466 ac_clean_files=$ac_clean_files_save
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2468 $as_echo_n "checking for suffix of object files... " >&6; }
2469 if ${ac_cv_objext+:} false; then :
2470 $as_echo_n "(cached) " >&6
2471 else
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473 /* end confdefs.h. */
2474
2475 int
2476 main ()
2477 {
2478
2479 ;
2480 return 0;
2481 }
2482 _ACEOF
2483 rm -f conftest.o conftest.obj
2484 if { { ac_try="$ac_compile"
2485 case "(($ac_try" in
2486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487 *) ac_try_echo=$ac_try;;
2488 esac
2489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2490 $as_echo "$ac_try_echo"; } >&5
2491 (eval "$ac_compile") 2>&5
2492 ac_status=$?
2493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2494 test $ac_status = 0; }; then :
2495 for ac_file in conftest.o conftest.obj conftest.*; do
2496 test -f "$ac_file" || continue;
2497 case $ac_file in
2498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2499 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2500 break;;
2501 esac
2502 done
2503 else
2504 $as_echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.$ac_ext >&5
2506
2507 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2509 as_fn_error $? "cannot compute suffix of object files: cannot compile
2510 See \`config.log' for more details" "$LINENO" 5; }
2511 fi
2512 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2513 fi
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2515 $as_echo "$ac_cv_objext" >&6; }
2516 OBJEXT=$ac_cv_objext
2517 ac_objext=$OBJEXT
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2519 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2520 if ${ac_cv_c_compiler_gnu+:} false; then :
2521 $as_echo_n "(cached) " >&6
2522 else
2523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2524 /* end confdefs.h. */
2525
2526 int
2527 main ()
2528 {
2529 #ifndef __GNUC__
2530 choke me
2531 #endif
2532
2533 ;
2534 return 0;
2535 }
2536 _ACEOF
2537 if ac_fn_c_try_compile "$LINENO"; then :
2538 ac_compiler_gnu=yes
2539 else
2540 ac_compiler_gnu=no
2541 fi
2542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2543 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2544
2545 fi
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2547 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2548 if test $ac_compiler_gnu = yes; then
2549 GCC=yes
2550 else
2551 GCC=
2552 fi
2553 ac_test_CFLAGS=${CFLAGS+set}
2554 ac_save_CFLAGS=$CFLAGS
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2556 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2557 if ${ac_cv_prog_cc_g+:} false; then :
2558 $as_echo_n "(cached) " >&6
2559 else
2560 ac_save_c_werror_flag=$ac_c_werror_flag
2561 ac_c_werror_flag=yes
2562 ac_cv_prog_cc_g=no
2563 CFLAGS="-g"
2564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2565 /* end confdefs.h. */
2566
2567 int
2568 main ()
2569 {
2570
2571 ;
2572 return 0;
2573 }
2574 _ACEOF
2575 if ac_fn_c_try_compile "$LINENO"; then :
2576 ac_cv_prog_cc_g=yes
2577 else
2578 CFLAGS=""
2579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580 /* end confdefs.h. */
2581
2582 int
2583 main ()
2584 {
2585
2586 ;
2587 return 0;
2588 }
2589 _ACEOF
2590 if ac_fn_c_try_compile "$LINENO"; then :
2591
2592 else
2593 ac_c_werror_flag=$ac_save_c_werror_flag
2594 CFLAGS="-g"
2595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2596 /* end confdefs.h. */
2597
2598 int
2599 main ()
2600 {
2601
2602 ;
2603 return 0;
2604 }
2605 _ACEOF
2606 if ac_fn_c_try_compile "$LINENO"; then :
2607 ac_cv_prog_cc_g=yes
2608 fi
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 fi
2611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612 fi
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 ac_c_werror_flag=$ac_save_c_werror_flag
2615 fi
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2617 $as_echo "$ac_cv_prog_cc_g" >&6; }
2618 if test "$ac_test_CFLAGS" = set; then
2619 CFLAGS=$ac_save_CFLAGS
2620 elif test $ac_cv_prog_cc_g = yes; then
2621 if test "$GCC" = yes; then
2622 CFLAGS="-g -O2"
2623 else
2624 CFLAGS="-g"
2625 fi
2626 else
2627 if test "$GCC" = yes; then
2628 CFLAGS="-O2"
2629 else
2630 CFLAGS=
2631 fi
2632 fi
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2634 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2635 if ${ac_cv_prog_cc_c89+:} false; then :
2636 $as_echo_n "(cached) " >&6
2637 else
2638 ac_cv_prog_cc_c89=no
2639 ac_save_CC=$CC
2640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2641 /* end confdefs.h. */
2642 #include <stdarg.h>
2643 #include <stdio.h>
2644 #include <sys/types.h>
2645 #include <sys/stat.h>
2646 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2647 struct buf { int x; };
2648 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2649 static char *e (p, i)
2650 char **p;
2651 int i;
2652 {
2653 return p[i];
2654 }
2655 static char *f (char * (*g) (char **, int), char **p, ...)
2656 {
2657 char *s;
2658 va_list v;
2659 va_start (v,p);
2660 s = g (p, va_arg (v,int));
2661 va_end (v);
2662 return s;
2663 }
2664
2665 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2666 function prototypes and stuff, but not '\xHH' hex character constants.
2667 These don't provoke an error unfortunately, instead are silently treated
2668 as 'x'. The following induces an error, until -std is added to get
2669 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2670 array size at least. It's necessary to write '\x00'==0 to get something
2671 that's true only with -std. */
2672 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2673
2674 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2675 inside strings and character constants. */
2676 #define FOO(x) 'x'
2677 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2678
2679 int test (int i, double x);
2680 struct s1 {int (*f) (int a);};
2681 struct s2 {int (*f) (double a);};
2682 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2683 int argc;
2684 char **argv;
2685 int
2686 main ()
2687 {
2688 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2689 ;
2690 return 0;
2691 }
2692 _ACEOF
2693 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2694 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2695 do
2696 CC="$ac_save_CC $ac_arg"
2697 if ac_fn_c_try_compile "$LINENO"; then :
2698 ac_cv_prog_cc_c89=$ac_arg
2699 fi
2700 rm -f core conftest.err conftest.$ac_objext
2701 test "x$ac_cv_prog_cc_c89" != "xno" && break
2702 done
2703 rm -f conftest.$ac_ext
2704 CC=$ac_save_CC
2705
2706 fi
2707 # AC_CACHE_VAL
2708 case "x$ac_cv_prog_cc_c89" in
2709 x)
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2711 $as_echo "none needed" >&6; } ;;
2712 xno)
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2714 $as_echo "unsupported" >&6; } ;;
2715 *)
2716 CC="$CC $ac_cv_prog_cc_c89"
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2718 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2719 esac
2720 if test "x$ac_cv_prog_cc_c89" != xno; then :
2721
2722 fi
2723
2724 ac_ext=c
2725 ac_cpp='$CPP $CPPFLAGS'
2726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2729
2730
2731 ac_ext=c
2732 ac_cpp='$CPP $CPPFLAGS'
2733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2737 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2738 # On Suns, sometimes $CPP names a directory.
2739 if test -n "$CPP" && test -d "$CPP"; then
2740 CPP=
2741 fi
2742 if test -z "$CPP"; then
2743 if ${ac_cv_prog_CPP+:} false; then :
2744 $as_echo_n "(cached) " >&6
2745 else
2746 # Double quotes because CPP needs to be expanded
2747 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2748 do
2749 ac_preproc_ok=false
2750 for ac_c_preproc_warn_flag in '' yes
2751 do
2752 # Use a header file that comes with gcc, so configuring glibc
2753 # with a fresh cross-compiler works.
2754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2755 # <limits.h> exists even on freestanding compilers.
2756 # On the NeXT, cc -E runs the code through the compiler's parser,
2757 # not just through cpp. "Syntax error" is here to catch this case.
2758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2759 /* end confdefs.h. */
2760 #ifdef __STDC__
2761 # include <limits.h>
2762 #else
2763 # include <assert.h>
2764 #endif
2765 Syntax error
2766 _ACEOF
2767 if ac_fn_c_try_cpp "$LINENO"; then :
2768
2769 else
2770 # Broken: fails on valid input.
2771 continue
2772 fi
2773 rm -f conftest.err conftest.i conftest.$ac_ext
2774
2775 # OK, works on sane cases. Now check whether nonexistent headers
2776 # can be detected and how.
2777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2778 /* end confdefs.h. */
2779 #include <ac_nonexistent.h>
2780 _ACEOF
2781 if ac_fn_c_try_cpp "$LINENO"; then :
2782 # Broken: success on invalid input.
2783 continue
2784 else
2785 # Passes both tests.
2786 ac_preproc_ok=:
2787 break
2788 fi
2789 rm -f conftest.err conftest.i conftest.$ac_ext
2790
2791 done
2792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2793 rm -f conftest.i conftest.err conftest.$ac_ext
2794 if $ac_preproc_ok; then :
2795 break
2796 fi
2797
2798 done
2799 ac_cv_prog_CPP=$CPP
2800
2801 fi
2802 CPP=$ac_cv_prog_CPP
2803 else
2804 ac_cv_prog_CPP=$CPP
2805 fi
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
2807 $as_echo "$CPP" >&6; }
2808 ac_preproc_ok=false
2809 for ac_c_preproc_warn_flag in '' yes
2810 do
2811 # Use a header file that comes with gcc, so configuring glibc
2812 # with a fresh cross-compiler works.
2813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2814 # <limits.h> exists even on freestanding compilers.
2815 # On the NeXT, cc -E runs the code through the compiler's parser,
2816 # not just through cpp. "Syntax error" is here to catch this case.
2817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2818 /* end confdefs.h. */
2819 #ifdef __STDC__
2820 # include <limits.h>
2821 #else
2822 # include <assert.h>
2823 #endif
2824 Syntax error
2825 _ACEOF
2826 if ac_fn_c_try_cpp "$LINENO"; then :
2827
2828 else
2829 # Broken: fails on valid input.
2830 continue
2831 fi
2832 rm -f conftest.err conftest.i conftest.$ac_ext
2833
2834 # OK, works on sane cases. Now check whether nonexistent headers
2835 # can be detected and how.
2836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2837 /* end confdefs.h. */
2838 #include <ac_nonexistent.h>
2839 _ACEOF
2840 if ac_fn_c_try_cpp "$LINENO"; then :
2841 # Broken: success on invalid input.
2842 continue
2843 else
2844 # Passes both tests.
2845 ac_preproc_ok=:
2846 break
2847 fi
2848 rm -f conftest.err conftest.i conftest.$ac_ext
2849
2850 done
2851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2852 rm -f conftest.i conftest.err conftest.$ac_ext
2853 if $ac_preproc_ok; then :
2854
2855 else
2856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2858 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
2859 See \`config.log' for more details" "$LINENO" 5; }
2860 fi
2861
2862 ac_ext=c
2863 ac_cpp='$CPP $CPPFLAGS'
2864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867
2868
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
2870 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
2871 if ${ac_cv_path_GREP+:} false; then :
2872 $as_echo_n "(cached) " >&6
2873 else
2874 if test -z "$GREP"; then
2875 ac_path_GREP_found=false
2876 # Loop through the user's path and test for each of PROGNAME-LIST
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2879 do
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_prog in grep ggrep; do
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2885 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
2886 # Check for GNU ac_path_GREP and select it if it is found.
2887 # Check for GNU $ac_path_GREP
2888 case `"$ac_path_GREP" --version 2>&1` in
2889 *GNU*)
2890 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2891 *)
2892 ac_count=0
2893 $as_echo_n 0123456789 >"conftest.in"
2894 while :
2895 do
2896 cat "conftest.in" "conftest.in" >"conftest.tmp"
2897 mv "conftest.tmp" "conftest.in"
2898 cp "conftest.in" "conftest.nl"
2899 $as_echo 'GREP' >> "conftest.nl"
2900 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2901 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2902 as_fn_arith $ac_count + 1 && ac_count=$as_val
2903 if test $ac_count -gt ${ac_path_GREP_max-0}; then
2904 # Best one so far, save it but keep looking for a better one
2905 ac_cv_path_GREP="$ac_path_GREP"
2906 ac_path_GREP_max=$ac_count
2907 fi
2908 # 10*(2^10) chars as input seems more than enough
2909 test $ac_count -gt 10 && break
2910 done
2911 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2912 esac
2913
2914 $ac_path_GREP_found && break 3
2915 done
2916 done
2917 done
2918 IFS=$as_save_IFS
2919 if test -z "$ac_cv_path_GREP"; then
2920 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
2921 fi
2922 else
2923 ac_cv_path_GREP=$GREP
2924 fi
2925
2926 fi
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
2928 $as_echo "$ac_cv_path_GREP" >&6; }
2929 GREP="$ac_cv_path_GREP"
2930
2931
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
2933 $as_echo_n "checking for egrep... " >&6; }
2934 if ${ac_cv_path_EGREP+:} false; then :
2935 $as_echo_n "(cached) " >&6
2936 else
2937 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
2938 then ac_cv_path_EGREP="$GREP -E"
2939 else
2940 if test -z "$EGREP"; then
2941 ac_path_EGREP_found=false
2942 # Loop through the user's path and test for each of PROGNAME-LIST
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2945 do
2946 IFS=$as_save_IFS
2947 test -z "$as_dir" && as_dir=.
2948 for ac_prog in egrep; do
2949 for ac_exec_ext in '' $ac_executable_extensions; do
2950 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
2951 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
2952 # Check for GNU ac_path_EGREP and select it if it is found.
2953 # Check for GNU $ac_path_EGREP
2954 case `"$ac_path_EGREP" --version 2>&1` in
2955 *GNU*)
2956 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
2957 *)
2958 ac_count=0
2959 $as_echo_n 0123456789 >"conftest.in"
2960 while :
2961 do
2962 cat "conftest.in" "conftest.in" >"conftest.tmp"
2963 mv "conftest.tmp" "conftest.in"
2964 cp "conftest.in" "conftest.nl"
2965 $as_echo 'EGREP' >> "conftest.nl"
2966 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2967 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2968 as_fn_arith $ac_count + 1 && ac_count=$as_val
2969 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
2970 # Best one so far, save it but keep looking for a better one
2971 ac_cv_path_EGREP="$ac_path_EGREP"
2972 ac_path_EGREP_max=$ac_count
2973 fi
2974 # 10*(2^10) chars as input seems more than enough
2975 test $ac_count -gt 10 && break
2976 done
2977 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2978 esac
2979
2980 $ac_path_EGREP_found && break 3
2981 done
2982 done
2983 done
2984 IFS=$as_save_IFS
2985 if test -z "$ac_cv_path_EGREP"; then
2986 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
2987 fi
2988 else
2989 ac_cv_path_EGREP=$EGREP
2990 fi
2991
2992 fi
2993 fi
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
2995 $as_echo "$ac_cv_path_EGREP" >&6; }
2996 EGREP="$ac_cv_path_EGREP"
2997
2998
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3000 $as_echo_n "checking for ANSI C header files... " >&6; }
3001 if ${ac_cv_header_stdc+:} false; then :
3002 $as_echo_n "(cached) " >&6
3003 else
3004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3005 /* end confdefs.h. */
3006 #include <stdlib.h>
3007 #include <stdarg.h>
3008 #include <string.h>
3009 #include <float.h>
3010
3011 int
3012 main ()
3013 {
3014
3015 ;
3016 return 0;
3017 }
3018 _ACEOF
3019 if ac_fn_c_try_compile "$LINENO"; then :
3020 ac_cv_header_stdc=yes
3021 else
3022 ac_cv_header_stdc=no
3023 fi
3024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3025
3026 if test $ac_cv_header_stdc = yes; then
3027 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3029 /* end confdefs.h. */
3030 #include <string.h>
3031
3032 _ACEOF
3033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3034 $EGREP "memchr" >/dev/null 2>&1; then :
3035
3036 else
3037 ac_cv_header_stdc=no
3038 fi
3039 rm -f conftest*
3040
3041 fi
3042
3043 if test $ac_cv_header_stdc = yes; then
3044 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3046 /* end confdefs.h. */
3047 #include <stdlib.h>
3048
3049 _ACEOF
3050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3051 $EGREP "free" >/dev/null 2>&1; then :
3052
3053 else
3054 ac_cv_header_stdc=no
3055 fi
3056 rm -f conftest*
3057
3058 fi
3059
3060 if test $ac_cv_header_stdc = yes; then
3061 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3062 if test "$cross_compiling" = yes; then :
3063 :
3064 else
3065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3066 /* end confdefs.h. */
3067 #include <ctype.h>
3068 #include <stdlib.h>
3069 #if ((' ' & 0x0FF) == 0x020)
3070 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3071 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3072 #else
3073 # define ISLOWER(c) \
3074 (('a' <= (c) && (c) <= 'i') \
3075 || ('j' <= (c) && (c) <= 'r') \
3076 || ('s' <= (c) && (c) <= 'z'))
3077 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3078 #endif
3079
3080 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3081 int
3082 main ()
3083 {
3084 int i;
3085 for (i = 0; i < 256; i++)
3086 if (XOR (islower (i), ISLOWER (i))
3087 || toupper (i) != TOUPPER (i))
3088 return 2;
3089 return 0;
3090 }
3091 _ACEOF
3092 if ac_fn_c_try_run "$LINENO"; then :
3093
3094 else
3095 ac_cv_header_stdc=no
3096 fi
3097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3098 conftest.$ac_objext conftest.beam conftest.$ac_ext
3099 fi
3100
3101 fi
3102 fi
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3104 $as_echo "$ac_cv_header_stdc" >&6; }
3105 if test $ac_cv_header_stdc = yes; then
3106
3107 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3108
3109 fi
3110
3111 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3112 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3113 inttypes.h stdint.h unistd.h
3114 do :
3115 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3116 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3117 "
3118 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3119 cat >>confdefs.h <<_ACEOF
3120 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3121 _ACEOF
3122
3123 fi
3124
3125 done
3126
3127
3128 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "$ac_includes_default"
3129 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
3130
3131 cat >>confdefs.h <<_ACEOF
3132 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
3133 _ACEOF
3134
3135
3136 fi
3137
3138
3139 case "$host" in
3140 *-mingw32)
3141 EXTRA_LIBS=wsock32
3142 CALLCONV=stdcall
3143 ;;
3144 *)
3145 EXTRA_LIBS=pcap
3146 CALLCONV=ccall
3147 ;;
3148 esac
3149
3150
3151
3152
3153 ac_config_files="$ac_config_files pcap.buildinfo"
3154
3155
3156 cat >confcache <<\_ACEOF
3157 # This file is a shell script that caches the results of configure
3158 # tests run on this system so they can be shared between configure
3159 # scripts and configure runs, see configure's option --config-cache.
3160 # It is not useful on other systems. If it contains results you don't
3161 # want to keep, you may remove or edit it.
3162 #
3163 # config.status only pays attention to the cache file if you give it
3164 # the --recheck option to rerun configure.
3165 #
3166 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3167 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3168 # following values.
3169
3170 _ACEOF
3171
3172 # The following way of writing the cache mishandles newlines in values,
3173 # but we know of no workaround that is simple, portable, and efficient.
3174 # So, we kill variables containing newlines.
3175 # Ultrix sh set writes to stderr and can't be redirected directly,
3176 # and sets the high bit in the cache file unless we assign to the vars.
3177 (
3178 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3179 eval ac_val=\$$ac_var
3180 case $ac_val in #(
3181 *${as_nl}*)
3182 case $ac_var in #(
3183 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3184 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3185 esac
3186 case $ac_var in #(
3187 _ | IFS | as_nl) ;; #(
3188 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3189 *) { eval $ac_var=; unset $ac_var;} ;;
3190 esac ;;
3191 esac
3192 done
3193
3194 (set) 2>&1 |
3195 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3196 *${as_nl}ac_space=\ *)
3197 # `set' does not quote correctly, so add quotes: double-quote
3198 # substitution turns \\\\ into \\, and sed turns \\ into \.
3199 sed -n \
3200 "s/'/'\\\\''/g;
3201 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3202 ;; #(
3203 *)
3204 # `set' quotes correctly as required by POSIX, so do not add quotes.
3205 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3206 ;;
3207 esac |
3208 sort
3209 ) |
3210 sed '
3211 /^ac_cv_env_/b end
3212 t clear
3213 :clear
3214 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3215 t end
3216 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3217 :end' >>confcache
3218 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3219 if test -w "$cache_file"; then
3220 if test "x$cache_file" != "x/dev/null"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3222 $as_echo "$as_me: updating cache $cache_file" >&6;}
3223 if test ! -f "$cache_file" || test -h "$cache_file"; then
3224 cat confcache >"$cache_file"
3225 else
3226 case $cache_file in #(
3227 */* | ?:*)
3228 mv -f confcache "$cache_file"$$ &&
3229 mv -f "$cache_file"$$ "$cache_file" ;; #(
3230 *)
3231 mv -f confcache "$cache_file" ;;
3232 esac
3233 fi
3234 fi
3235 else
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3237 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3238 fi
3239 fi
3240 rm -f confcache
3241
3242 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3243 # Let make expand exec_prefix.
3244 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3245
3246 DEFS=-DHAVE_CONFIG_H
3247
3248 ac_libobjs=
3249 ac_ltlibobjs=
3250 U=
3251 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3252 # 1. Remove the extension, and $U if already installed.
3253 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3254 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3255 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3256 # will be set to the directory where LIBOBJS objects are built.
3257 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3258 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3259 done
3260 LIBOBJS=$ac_libobjs
3261
3262 LTLIBOBJS=$ac_ltlibobjs
3263
3264
3265
3266 : "${CONFIG_STATUS=./config.status}"
3267 ac_write_fail=0
3268 ac_clean_files_save=$ac_clean_files
3269 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3271 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3272 as_write_fail=0
3273 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3274 #! $SHELL
3275 # Generated by $as_me.
3276 # Run this file to recreate the current configuration.
3277 # Compiler output produced by configure, useful for debugging
3278 # configure, is in config.log if it exists.
3279
3280 debug=false
3281 ac_cs_recheck=false
3282 ac_cs_silent=false
3283
3284 SHELL=\${CONFIG_SHELL-$SHELL}
3285 export SHELL
3286 _ASEOF
3287 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3288 ## -------------------- ##
3289 ## M4sh Initialization. ##
3290 ## -------------------- ##
3291
3292 # Be more Bourne compatible
3293 DUALCASE=1; export DUALCASE # for MKS sh
3294 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3295 emulate sh
3296 NULLCMD=:
3297 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3298 # is contrary to our usage. Disable this feature.
3299 alias -g '${1+"$@"}'='"$@"'
3300 setopt NO_GLOB_SUBST
3301 else
3302 case `(set -o) 2>/dev/null` in #(
3303 *posix*) :
3304 set -o posix ;; #(
3305 *) :
3306 ;;
3307 esac
3308 fi
3309
3310
3311 as_nl='
3312 '
3313 export as_nl
3314 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3315 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3316 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3317 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3318 # Prefer a ksh shell builtin over an external printf program on Solaris,
3319 # but without wasting forks for bash or zsh.
3320 if test -z "$BASH_VERSION$ZSH_VERSION" \
3321 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3322 as_echo='print -r --'
3323 as_echo_n='print -rn --'
3324 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3325 as_echo='printf %s\n'
3326 as_echo_n='printf %s'
3327 else
3328 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3329 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3330 as_echo_n='/usr/ucb/echo -n'
3331 else
3332 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3333 as_echo_n_body='eval
3334 arg=$1;
3335 case $arg in #(
3336 *"$as_nl"*)
3337 expr "X$arg" : "X\\(.*\\)$as_nl";
3338 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3339 esac;
3340 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3341 '
3342 export as_echo_n_body
3343 as_echo_n='sh -c $as_echo_n_body as_echo'
3344 fi
3345 export as_echo_body
3346 as_echo='sh -c $as_echo_body as_echo'
3347 fi
3348
3349 # The user is always right.
3350 if test "${PATH_SEPARATOR+set}" != set; then
3351 PATH_SEPARATOR=:
3352 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3353 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3354 PATH_SEPARATOR=';'
3355 }
3356 fi
3357
3358
3359 # IFS
3360 # We need space, tab and new line, in precisely that order. Quoting is
3361 # there to prevent editors from complaining about space-tab.
3362 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3363 # splitting by setting IFS to empty value.)
3364 IFS=" "" $as_nl"
3365
3366 # Find who we are. Look in the path if we contain no directory separator.
3367 as_myself=
3368 case $0 in #((
3369 *[\\/]* ) as_myself=$0 ;;
3370 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH
3372 do
3373 IFS=$as_save_IFS
3374 test -z "$as_dir" && as_dir=.
3375 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3376 done
3377 IFS=$as_save_IFS
3378
3379 ;;
3380 esac
3381 # We did not find ourselves, most probably we were run as `sh COMMAND'
3382 # in which case we are not to be found in the path.
3383 if test "x$as_myself" = x; then
3384 as_myself=$0
3385 fi
3386 if test ! -f "$as_myself"; then
3387 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3388 exit 1
3389 fi
3390
3391 # Unset variables that we do not need and which cause bugs (e.g. in
3392 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3393 # suppresses any "Segmentation fault" message there. '((' could
3394 # trigger a bug in pdksh 5.2.14.
3395 for as_var in BASH_ENV ENV MAIL MAILPATH
3396 do eval test x\${$as_var+set} = xset \
3397 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3398 done
3399 PS1='$ '
3400 PS2='> '
3401 PS4='+ '
3402
3403 # NLS nuisances.
3404 LC_ALL=C
3405 export LC_ALL
3406 LANGUAGE=C
3407 export LANGUAGE
3408
3409 # CDPATH.
3410 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3411
3412
3413 # as_fn_error STATUS ERROR [LINENO LOG_FD]
3414 # ----------------------------------------
3415 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3416 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3417 # script with STATUS, using 1 if that was 0.
3418 as_fn_error ()
3419 {
3420 as_status=$1; test $as_status -eq 0 && as_status=1
3421 if test "$4"; then
3422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3423 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3424 fi
3425 $as_echo "$as_me: error: $2" >&2
3426 as_fn_exit $as_status
3427 } # as_fn_error
3428
3429
3430 # as_fn_set_status STATUS
3431 # -----------------------
3432 # Set $? to STATUS, without forking.
3433 as_fn_set_status ()
3434 {
3435 return $1
3436 } # as_fn_set_status
3437
3438 # as_fn_exit STATUS
3439 # -----------------
3440 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3441 as_fn_exit ()
3442 {
3443 set +e
3444 as_fn_set_status $1
3445 exit $1
3446 } # as_fn_exit
3447
3448 # as_fn_unset VAR
3449 # ---------------
3450 # Portably unset VAR.
3451 as_fn_unset ()
3452 {
3453 { eval $1=; unset $1;}
3454 }
3455 as_unset=as_fn_unset
3456 # as_fn_append VAR VALUE
3457 # ----------------------
3458 # Append the text in VALUE to the end of the definition contained in VAR. Take
3459 # advantage of any shell optimizations that allow amortized linear growth over
3460 # repeated appends, instead of the typical quadratic growth present in naive
3461 # implementations.
3462 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3463 eval 'as_fn_append ()
3464 {
3465 eval $1+=\$2
3466 }'
3467 else
3468 as_fn_append ()
3469 {
3470 eval $1=\$$1\$2
3471 }
3472 fi # as_fn_append
3473
3474 # as_fn_arith ARG...
3475 # ------------------
3476 # Perform arithmetic evaluation on the ARGs, and store the result in the
3477 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3478 # must be portable across $(()) and expr.
3479 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3480 eval 'as_fn_arith ()
3481 {
3482 as_val=$(( $* ))
3483 }'
3484 else
3485 as_fn_arith ()
3486 {
3487 as_val=`expr "$@" || test $? -eq 1`
3488 }
3489 fi # as_fn_arith
3490
3491
3492 if expr a : '\(a\)' >/dev/null 2>&1 &&
3493 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3494 as_expr=expr
3495 else
3496 as_expr=false
3497 fi
3498
3499 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3500 as_basename=basename
3501 else
3502 as_basename=false
3503 fi
3504
3505 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3506 as_dirname=dirname
3507 else
3508 as_dirname=false
3509 fi
3510
3511 as_me=`$as_basename -- "$0" ||
3512 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3513 X"$0" : 'X\(//\)$' \| \
3514 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3515 $as_echo X/"$0" |
3516 sed '/^.*\/\([^/][^/]*\)\/*$/{
3517 s//\1/
3518 q
3519 }
3520 /^X\/\(\/\/\)$/{
3521 s//\1/
3522 q
3523 }
3524 /^X\/\(\/\).*/{
3525 s//\1/
3526 q
3527 }
3528 s/.*/./; q'`
3529
3530 # Avoid depending upon Character Ranges.
3531 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3532 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3533 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3534 as_cr_digits='0123456789'
3535 as_cr_alnum=$as_cr_Letters$as_cr_digits
3536
3537 ECHO_C= ECHO_N= ECHO_T=
3538 case `echo -n x` in #(((((
3539 -n*)
3540 case `echo 'xy\c'` in
3541 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3542 xy) ECHO_C='\c';;
3543 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3544 ECHO_T=' ';;
3545 esac;;
3546 *)
3547 ECHO_N='-n';;
3548 esac
3549
3550 rm -f conf$$ conf$$.exe conf$$.file
3551 if test -d conf$$.dir; then
3552 rm -f conf$$.dir/conf$$.file
3553 else
3554 rm -f conf$$.dir
3555 mkdir conf$$.dir 2>/dev/null
3556 fi
3557 if (echo >conf$$.file) 2>/dev/null; then
3558 if ln -s conf$$.file conf$$ 2>/dev/null; then
3559 as_ln_s='ln -s'
3560 # ... but there are two gotchas:
3561 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3562 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3563 # In both cases, we have to default to `cp -p'.
3564 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3565 as_ln_s='cp -p'
3566 elif ln conf$$.file conf$$ 2>/dev/null; then
3567 as_ln_s=ln
3568 else
3569 as_ln_s='cp -p'
3570 fi
3571 else
3572 as_ln_s='cp -p'
3573 fi
3574 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3575 rmdir conf$$.dir 2>/dev/null
3576
3577
3578 # as_fn_mkdir_p
3579 # -------------
3580 # Create "$as_dir" as a directory, including parents if necessary.
3581 as_fn_mkdir_p ()
3582 {
3583
3584 case $as_dir in #(
3585 -*) as_dir=./$as_dir;;
3586 esac
3587 test -d "$as_dir" || eval $as_mkdir_p || {
3588 as_dirs=
3589 while :; do
3590 case $as_dir in #(
3591 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3592 *) as_qdir=$as_dir;;
3593 esac
3594 as_dirs="'$as_qdir' $as_dirs"
3595 as_dir=`$as_dirname -- "$as_dir" ||
3596 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3597 X"$as_dir" : 'X\(//\)[^/]' \| \
3598 X"$as_dir" : 'X\(//\)$' \| \
3599 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3600 $as_echo X"$as_dir" |
3601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3602 s//\1/
3603 q
3604 }
3605 /^X\(\/\/\)[^/].*/{
3606 s//\1/
3607 q
3608 }
3609 /^X\(\/\/\)$/{
3610 s//\1/
3611 q
3612 }
3613 /^X\(\/\).*/{
3614 s//\1/
3615 q
3616 }
3617 s/.*/./; q'`
3618 test -d "$as_dir" && break
3619 done
3620 test -z "$as_dirs" || eval "mkdir $as_dirs"
3621 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3622
3623
3624 } # as_fn_mkdir_p
3625 if mkdir -p . 2>/dev/null; then
3626 as_mkdir_p='mkdir -p "$as_dir"'
3627 else
3628 test -d ./-p && rmdir ./-p
3629 as_mkdir_p=false
3630 fi
3631
3632 if test -x / >/dev/null 2>&1; then
3633 as_test_x='test -x'
3634 else
3635 if ls -dL / >/dev/null 2>&1; then
3636 as_ls_L_option=L
3637 else
3638 as_ls_L_option=
3639 fi
3640 as_test_x='
3641 eval sh -c '\''
3642 if test -d "$1"; then
3643 test -d "$1/.";
3644 else
3645 case $1 in #(
3646 -*)set "./$1";;
3647 esac;
3648 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
3649 ???[sx]*):;;*)false;;esac;fi
3650 '\'' sh
3651 '
3652 fi
3653 as_executable_p=$as_test_x
3654
3655 # Sed expression to map a string onto a valid CPP name.
3656 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3657
3658 # Sed expression to map a string onto a valid variable name.
3659 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3660
3661
3662 exec 6>&1
3663 ## ----------------------------------- ##
3664 ## Main body of $CONFIG_STATUS script. ##
3665 ## ----------------------------------- ##
3666 _ASEOF
3667 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3668
3669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3670 # Save the log message, to keep $0 and so on meaningful, and to
3671 # report actual input values of CONFIG_FILES etc. instead of their
3672 # values after options handling.
3673 ac_log="
3674 This file was extended by Pcap $as_me 0.4.5.1, which was
3675 generated by GNU Autoconf 2.68. Invocation command line was
3676
3677 CONFIG_FILES = $CONFIG_FILES
3678 CONFIG_HEADERS = $CONFIG_HEADERS
3679 CONFIG_LINKS = $CONFIG_LINKS
3680 CONFIG_COMMANDS = $CONFIG_COMMANDS
3681 $ $0 $@
3682
3683 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3684 "
3685
3686 _ACEOF
3687
3688 case $ac_config_files in *"
3689 "*) set x $ac_config_files; shift; ac_config_files=$*;;
3690 esac
3691
3692 case $ac_config_headers in *"
3693 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
3694 esac
3695
3696
3697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3698 # Files that config.status was made for.
3699 config_files="$ac_config_files"
3700 config_headers="$ac_config_headers"
3701
3702 _ACEOF
3703
3704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3705 ac_cs_usage="\
3706 \`$as_me' instantiates files and other configuration actions
3707 from templates according to the current configuration. Unless the files
3708 and actions are specified as TAGs, all are instantiated by default.
3709
3710 Usage: $0 [OPTION]... [TAG]...
3711
3712 -h, --help print this help, then exit
3713 -V, --version print version number and configuration settings, then exit
3714 --config print configuration, then exit
3715 -q, --quiet, --silent
3716 do not print progress messages
3717 -d, --debug don't remove temporary files
3718 --recheck update $as_me by reconfiguring in the same conditions
3719 --file=FILE[:TEMPLATE]
3720 instantiate the configuration file FILE
3721 --header=FILE[:TEMPLATE]
3722 instantiate the configuration header FILE
3723
3724 Configuration files:
3725 $config_files
3726
3727 Configuration headers:
3728 $config_headers
3729
3730 Report bugs to <[email protected]>."
3731
3732 _ACEOF
3733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3734 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3735 ac_cs_version="\\
3736 Pcap config.status 0.4.5.1
3737 configured by $0, generated by GNU Autoconf 2.68,
3738 with options \\"\$ac_cs_config\\"
3739
3740 Copyright (C) 2010 Free Software Foundation, Inc.
3741 This config.status script is free software; the Free Software Foundation
3742 gives unlimited permission to copy, distribute and modify it."
3743
3744 ac_pwd='$ac_pwd'
3745 srcdir='$srcdir'
3746 test -n "\$AWK" || AWK=awk
3747 _ACEOF
3748
3749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3750 # The default lists apply if the user does not specify any file.
3751 ac_need_defaults=:
3752 while test $# != 0
3753 do
3754 case $1 in
3755 --*=?*)
3756 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3757 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3758 ac_shift=:
3759 ;;
3760 --*=)
3761 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3762 ac_optarg=
3763 ac_shift=:
3764 ;;
3765 *)
3766 ac_option=$1
3767 ac_optarg=$2
3768 ac_shift=shift
3769 ;;
3770 esac
3771
3772 case $ac_option in
3773 # Handling of the options.
3774 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3775 ac_cs_recheck=: ;;
3776 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3777 $as_echo "$ac_cs_version"; exit ;;
3778 --config | --confi | --conf | --con | --co | --c )
3779 $as_echo "$ac_cs_config"; exit ;;
3780 --debug | --debu | --deb | --de | --d | -d )
3781 debug=: ;;
3782 --file | --fil | --fi | --f )
3783 $ac_shift
3784 case $ac_optarg in
3785 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3786 '') as_fn_error $? "missing file argument" ;;
3787 esac
3788 as_fn_append CONFIG_FILES " '$ac_optarg'"
3789 ac_need_defaults=false;;
3790 --header | --heade | --head | --hea )
3791 $ac_shift
3792 case $ac_optarg in
3793 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3794 esac
3795 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
3796 ac_need_defaults=false;;
3797 --he | --h)
3798 # Conflict between --help and --header
3799 as_fn_error $? "ambiguous option: \`$1'
3800 Try \`$0 --help' for more information.";;
3801 --help | --hel | -h )
3802 $as_echo "$ac_cs_usage"; exit ;;
3803 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3804 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3805 ac_cs_silent=: ;;
3806
3807 # This is an error.
3808 -*) as_fn_error $? "unrecognized option: \`$1'
3809 Try \`$0 --help' for more information." ;;
3810
3811 *) as_fn_append ac_config_targets " $1"
3812 ac_need_defaults=false ;;
3813
3814 esac
3815 shift
3816 done
3817
3818 ac_configure_extra_args=
3819
3820 if $ac_cs_silent; then
3821 exec 6>/dev/null
3822 ac_configure_extra_args="$ac_configure_extra_args --silent"
3823 fi
3824
3825 _ACEOF
3826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3827 if \$ac_cs_recheck; then
3828 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3829 shift
3830 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3831 CONFIG_SHELL='$SHELL'
3832 export CONFIG_SHELL
3833 exec "\$@"
3834 fi
3835
3836 _ACEOF
3837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3838 exec 5>>config.log
3839 {
3840 echo
3841 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3842 ## Running $as_me. ##
3843 _ASBOX
3844 $as_echo "$ac_log"
3845 } >&5
3846
3847 _ACEOF
3848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3849 _ACEOF
3850
3851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3852
3853 # Handling of arguments.
3854 for ac_config_target in $ac_config_targets
3855 do
3856 case $ac_config_target in
3857 "include/pcapconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/pcapconfig.h" ;;
3858 "pcap.buildinfo") CONFIG_FILES="$CONFIG_FILES pcap.buildinfo" ;;
3859
3860 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3861 esac
3862 done
3863
3864
3865 # If the user did not use the arguments to specify the items to instantiate,
3866 # then the envvar interface is used. Set only those that are not.
3867 # We use the long form for the default assignment because of an extremely
3868 # bizarre bug on SunOS 4.1.3.
3869 if $ac_need_defaults; then
3870 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3871 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3872 fi
3873
3874 # Have a temporary directory for convenience. Make it in the build tree
3875 # simply because there is no reason against having it here, and in addition,
3876 # creating and moving files from /tmp can sometimes cause problems.
3877 # Hook for its removal unless debugging.
3878 # Note that there is a small window in which the directory will not be cleaned:
3879 # after its creation but before its name has been assigned to `$tmp'.
3880 $debug ||
3881 {
3882 tmp= ac_tmp=
3883 trap 'exit_status=$?
3884 : "${ac_tmp:=$tmp}"
3885 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3886 ' 0
3887 trap 'as_fn_exit 1' 1 2 13 15
3888 }
3889 # Create a (secure) tmp directory for tmp files.
3890
3891 {
3892 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3893 test -d "$tmp"
3894 } ||
3895 {
3896 tmp=./conf$$-$RANDOM
3897 (umask 077 && mkdir "$tmp")
3898 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3899 ac_tmp=$tmp
3900
3901 # Set up the scripts for CONFIG_FILES section.
3902 # No need to generate them if there are no CONFIG_FILES.
3903 # This happens for instance with `./config.status config.h'.
3904 if test -n "$CONFIG_FILES"; then
3905
3906
3907 ac_cr=`echo X | tr X '\015'`
3908 # On cygwin, bash can eat \r inside `` if the user requested igncr.
3909 # But we know of no other shell where ac_cr would be empty at this
3910 # point, so we can use a bashism as a fallback.
3911 if test "x$ac_cr" = x; then
3912 eval ac_cr=\$\'\\r\'
3913 fi
3914 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3915 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3916 ac_cs_awk_cr='\\r'
3917 else
3918 ac_cs_awk_cr=$ac_cr
3919 fi
3920
3921 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
3922 _ACEOF
3923
3924
3925 {
3926 echo "cat >conf$$subs.awk <<_ACEOF" &&
3927 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3928 echo "_ACEOF"
3929 } >conf$$subs.sh ||
3930 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3931 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
3932 ac_delim='%!_!# '
3933 for ac_last_try in false false false false false :; do
3934 . ./conf$$subs.sh ||
3935 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3936
3937 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3938 if test $ac_delim_n = $ac_delim_num; then
3939 break
3940 elif $ac_last_try; then
3941 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3942 else
3943 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3944 fi
3945 done
3946 rm -f conf$$subs.sh
3947
3948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3949 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
3950 _ACEOF
3951 sed -n '
3952 h
3953 s/^/S["/; s/!.*/"]=/
3954 p
3955 g
3956 s/^[^!]*!//
3957 :repl
3958 t repl
3959 s/'"$ac_delim"'$//
3960 t delim
3961 :nl
3962 h
3963 s/\(.\{148\}\)..*/\1/
3964 t more1
3965 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3966 p
3967 n
3968 b repl
3969 :more1
3970 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3971 p
3972 g
3973 s/.\{148\}//
3974 t nl
3975 :delim
3976 h
3977 s/\(.\{148\}\)..*/\1/
3978 t more2
3979 s/["\\]/\\&/g; s/^/"/; s/$/"/
3980 p
3981 b
3982 :more2
3983 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3984 p
3985 g
3986 s/.\{148\}//
3987 t delim
3988 ' <conf$$subs.awk | sed '
3989 /^[^""]/{
3990 N
3991 s/\n//
3992 }
3993 ' >>$CONFIG_STATUS || ac_write_fail=1
3994 rm -f conf$$subs.awk
3995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3996 _ACAWK
3997 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
3998 for (key in S) S_is_set[key] = 1
3999 FS = ""
4000
4001 }
4002 {
4003 line = $ 0
4004 nfields = split(line, field, "@")
4005 substed = 0
4006 len = length(field[1])
4007 for (i = 2; i < nfields; i++) {
4008 key = field[i]
4009 keylen = length(key)
4010 if (S_is_set[key]) {
4011 value = S[key]
4012 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4013 len += length(value) + length(field[++i])
4014 substed = 1
4015 } else
4016 len += 1 + keylen
4017 }
4018
4019 print line
4020 }
4021
4022 _ACAWK
4023 _ACEOF
4024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4025 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4026 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4027 else
4028 cat
4029 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4030 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4031 _ACEOF
4032
4033 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4034 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4035 # trailing colons and then remove the whole line if VPATH becomes empty
4036 # (actually we leave an empty line to preserve line numbers).
4037 if test "x$srcdir" = x.; then
4038 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4039 h
4040 s///
4041 s/^/:/
4042 s/[ ]*$/:/
4043 s/:\$(srcdir):/:/g
4044 s/:\${srcdir}:/:/g
4045 s/:@srcdir@:/:/g
4046 s/^:*//
4047 s/:*$//
4048 x
4049 s/\(=[ ]*\).*/\1/
4050 G
4051 s/\n//
4052 s/^[^=]*=[ ]*$//
4053 }'
4054 fi
4055
4056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4057 fi # test -n "$CONFIG_FILES"
4058
4059 # Set up the scripts for CONFIG_HEADERS section.
4060 # No need to generate them if there are no CONFIG_HEADERS.
4061 # This happens for instance with `./config.status Makefile'.
4062 if test -n "$CONFIG_HEADERS"; then
4063 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
4064 BEGIN {
4065 _ACEOF
4066
4067 # Transform confdefs.h into an awk script `defines.awk', embedded as
4068 # here-document in config.status, that substitutes the proper values into
4069 # config.h.in to produce config.h.
4070
4071 # Create a delimiter string that does not exist in confdefs.h, to ease
4072 # handling of long lines.
4073 ac_delim='%!_!# '
4074 for ac_last_try in false false :; do
4075 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
4076 if test -z "$ac_tt"; then
4077 break
4078 elif $ac_last_try; then
4079 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
4080 else
4081 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4082 fi
4083 done
4084
4085 # For the awk script, D is an array of macro values keyed by name,
4086 # likewise P contains macro parameters if any. Preserve backslash
4087 # newline sequences.
4088
4089 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4090 sed -n '
4091 s/.\{148\}/&'"$ac_delim"'/g
4092 t rset
4093 :rset
4094 s/^[ ]*#[ ]*define[ ][ ]*/ /
4095 t def
4096 d
4097 :def
4098 s/\\$//
4099 t bsnl
4100 s/["\\]/\\&/g
4101 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4102 D["\1"]=" \3"/p
4103 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
4104 d
4105 :bsnl
4106 s/["\\]/\\&/g
4107 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4108 D["\1"]=" \3\\\\\\n"\\/p
4109 t cont
4110 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4111 t cont
4112 d
4113 :cont
4114 n
4115 s/.\{148\}/&'"$ac_delim"'/g
4116 t clear
4117 :clear
4118 s/\\$//
4119 t bsnlc
4120 s/["\\]/\\&/g; s/^/"/; s/$/"/p
4121 d
4122 :bsnlc
4123 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4124 b cont
4125 ' <confdefs.h | sed '
4126 s/'"$ac_delim"'/"\\\
4127 "/g' >>$CONFIG_STATUS || ac_write_fail=1
4128
4129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4130 for (key in D) D_is_set[key] = 1
4131 FS = ""
4132 }
4133 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4134 line = \$ 0
4135 split(line, arg, " ")
4136 if (arg[1] == "#") {
4137 defundef = arg[2]
4138 mac1 = arg[3]
4139 } else {
4140 defundef = substr(arg[1], 2)
4141 mac1 = arg[2]
4142 }
4143 split(mac1, mac2, "(") #)
4144 macro = mac2[1]
4145 prefix = substr(line, 1, index(line, defundef) - 1)
4146 if (D_is_set[macro]) {
4147 # Preserve the white space surrounding the "#".
4148 print prefix "define", macro P[macro] D[macro]
4149 next
4150 } else {
4151 # Replace #undef with comments. This is necessary, for example,
4152 # in the case of _POSIX_SOURCE, which is predefined and required
4153 # on some systems where configure will not decide to define it.
4154 if (defundef == "undef") {
4155 print "/*", prefix defundef, macro, "*/"
4156 next
4157 }
4158 }
4159 }
4160 { print }
4161 _ACAWK
4162 _ACEOF
4163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4164 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
4165 fi # test -n "$CONFIG_HEADERS"
4166
4167
4168 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
4169 shift
4170 for ac_tag
4171 do
4172 case $ac_tag in
4173 :[FHLC]) ac_mode=$ac_tag; continue;;
4174 esac
4175 case $ac_mode$ac_tag in
4176 :[FHL]*:*);;
4177 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4178 :[FH]-) ac_tag=-:-;;
4179 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4180 esac
4181 ac_save_IFS=$IFS
4182 IFS=:
4183 set x $ac_tag
4184 IFS=$ac_save_IFS
4185 shift
4186 ac_file=$1
4187 shift
4188
4189 case $ac_mode in
4190 :L) ac_source=$1;;
4191 :[FH])
4192 ac_file_inputs=
4193 for ac_f
4194 do
4195 case $ac_f in
4196 -) ac_f="$ac_tmp/stdin";;
4197 *) # Look for the file first in the build tree, then in the source tree
4198 # (if the path is not absolute). The absolute path cannot be DOS-style,
4199 # because $ac_f cannot contain `:'.
4200 test -f "$ac_f" ||
4201 case $ac_f in
4202 [\\/$]*) false;;
4203 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4204 esac ||
4205 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4206 esac
4207 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4208 as_fn_append ac_file_inputs " '$ac_f'"
4209 done
4210
4211 # Let's still pretend it is `configure' which instantiates (i.e., don't
4212 # use $as_me), people would be surprised to read:
4213 # /* config.h. Generated by config.status. */
4214 configure_input='Generated from '`
4215 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4216 `' by configure.'
4217 if test x"$ac_file" != x-; then
4218 configure_input="$ac_file. $configure_input"
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4220 $as_echo "$as_me: creating $ac_file" >&6;}
4221 fi
4222 # Neutralize special characters interpreted by sed in replacement strings.
4223 case $configure_input in #(
4224 *\&* | *\|* | *\\* )
4225 ac_sed_conf_input=`$as_echo "$configure_input" |
4226 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4227 *) ac_sed_conf_input=$configure_input;;
4228 esac
4229
4230 case $ac_tag in
4231 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4232 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4233 esac
4234 ;;
4235 esac
4236
4237 ac_dir=`$as_dirname -- "$ac_file" ||
4238 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4239 X"$ac_file" : 'X\(//\)[^/]' \| \
4240 X"$ac_file" : 'X\(//\)$' \| \
4241 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4242 $as_echo X"$ac_file" |
4243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4244 s//\1/
4245 q
4246 }
4247 /^X\(\/\/\)[^/].*/{
4248 s//\1/
4249 q
4250 }
4251 /^X\(\/\/\)$/{
4252 s//\1/
4253 q
4254 }
4255 /^X\(\/\).*/{
4256 s//\1/
4257 q
4258 }
4259 s/.*/./; q'`
4260 as_dir="$ac_dir"; as_fn_mkdir_p
4261 ac_builddir=.
4262
4263 case "$ac_dir" in
4264 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4265 *)
4266 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4267 # A ".." for each directory in $ac_dir_suffix.
4268 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4269 case $ac_top_builddir_sub in
4270 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4271 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4272 esac ;;
4273 esac
4274 ac_abs_top_builddir=$ac_pwd
4275 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4276 # for backward compatibility:
4277 ac_top_builddir=$ac_top_build_prefix
4278
4279 case $srcdir in
4280 .) # We are building in place.
4281 ac_srcdir=.
4282 ac_top_srcdir=$ac_top_builddir_sub
4283 ac_abs_top_srcdir=$ac_pwd ;;
4284 [\\/]* | ?:[\\/]* ) # Absolute name.
4285 ac_srcdir=$srcdir$ac_dir_suffix;
4286 ac_top_srcdir=$srcdir
4287 ac_abs_top_srcdir=$srcdir ;;
4288 *) # Relative name.
4289 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4290 ac_top_srcdir=$ac_top_build_prefix$srcdir
4291 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4292 esac
4293 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4294
4295
4296 case $ac_mode in
4297 :F)
4298 #
4299 # CONFIG_FILE
4300 #
4301
4302 _ACEOF
4303
4304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4305 # If the template does not know about datarootdir, expand it.
4306 # FIXME: This hack should be removed a few years after 2.60.
4307 ac_datarootdir_hack=; ac_datarootdir_seen=
4308 ac_sed_dataroot='
4309 /datarootdir/ {
4310 p
4311 q
4312 }
4313 /@datadir@/p
4314 /@docdir@/p
4315 /@infodir@/p
4316 /@localedir@/p
4317 /@mandir@/p'
4318 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4319 *datarootdir*) ac_datarootdir_seen=yes;;
4320 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4322 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4323 _ACEOF
4324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4325 ac_datarootdir_hack='
4326 s&@datadir@&$datadir&g
4327 s&@docdir@&$docdir&g
4328 s&@infodir@&$infodir&g
4329 s&@localedir@&$localedir&g
4330 s&@mandir@&$mandir&g
4331 s&\\\${datarootdir}&$datarootdir&g' ;;
4332 esac
4333 _ACEOF
4334
4335 # Neutralize VPATH when `$srcdir' = `.'.
4336 # Shell code in configure.ac might set extrasub.
4337 # FIXME: do we really want to maintain this feature?
4338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4339 ac_sed_extra="$ac_vpsub
4340 $extrasub
4341 _ACEOF
4342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4343 :t
4344 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4345 s|@configure_input@|$ac_sed_conf_input|;t t
4346 s&@top_builddir@&$ac_top_builddir_sub&;t t
4347 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4348 s&@srcdir@&$ac_srcdir&;t t
4349 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4350 s&@top_srcdir@&$ac_top_srcdir&;t t
4351 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4352 s&@builddir@&$ac_builddir&;t t
4353 s&@abs_builddir@&$ac_abs_builddir&;t t
4354 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4355 $ac_datarootdir_hack
4356 "
4357 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4358 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4359
4360 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4361 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4362 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
4363 "$ac_tmp/out"`; test -z "$ac_out"; } &&
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4365 which seems to be undefined. Please make sure it is defined" >&5
4366 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4367 which seems to be undefined. Please make sure it is defined" >&2;}
4368
4369 rm -f "$ac_tmp/stdin"
4370 case $ac_file in
4371 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4372 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4373 esac \
4374 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4375 ;;
4376 :H)
4377 #
4378 # CONFIG_HEADER
4379 #
4380 if test x"$ac_file" != x-; then
4381 {
4382 $as_echo "/* $configure_input */" \
4383 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
4384 } >"$ac_tmp/config.h" \
4385 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4386 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
4388 $as_echo "$as_me: $ac_file is unchanged" >&6;}
4389 else
4390 rm -f "$ac_file"
4391 mv "$ac_tmp/config.h" "$ac_file" \
4392 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4393 fi
4394 else
4395 $as_echo "/* $configure_input */" \
4396 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
4397 || as_fn_error $? "could not create -" "$LINENO" 5
4398 fi
4399 ;;
4400
4401
4402 esac
4403
4404 done # for ac_tag
4405
4406
4407 as_fn_exit 0
4408 _ACEOF
4409 ac_clean_files=$ac_clean_files_save
4410
4411 test $ac_write_fail = 0 ||
4412 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4413
4414
4415 # configure is writing to config.log, and then calls config.status.
4416 # config.status does its own redirection, appending to config.log.
4417 # Unfortunately, on DOS this fails, as config.log is still kept open
4418 # by configure, so config.status won't be able to write to it; its
4419 # output is simply discarded. So we exec the FD to /dev/null,
4420 # effectively closing config.log, so it can be properly (re)opened and
4421 # appended to by config.status. When coming back to configure, we
4422 # need to make the FD available again.
4423 if test "$no_create" != yes; then
4424 ac_cs_success=:
4425 ac_config_status_args=
4426 test "$silent" = yes &&
4427 ac_config_status_args="$ac_config_status_args --quiet"
4428 exec 5>/dev/null
4429 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4430 exec 5>>config.log
4431 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4432 # would make configure fail if this is the last instruction.
4433 $ac_cs_success || as_fn_exit 1
4434 fi
4435 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4437 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4438 fi
4439