Debian Codegraph @

nsock/src/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell [email protected] about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="nsock_core.c"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 ac_subst_vars='LTLIBOBJS
623 LIBOBJS
624 NSOCKTESTDIR
625 NBASEDIR
626 LIBNBASE_LIBS
627 OPENSSL_LIBS
628 RANLIB
629 LIBPCAP_LIBS
630 EGREP
631 GREP
632 CPP
633 OBJEXT
634 EXEEXT
635 ac_ct_CC
636 CPPFLAGS
637 LDFLAGS
638 CFLAGS
639 CC
640 host_os
641 host_vendor
642 host_cpu
643 host
644 build_os
645 build_vendor
646 build_cpu
647 build
648 target_alias
649 host_alias
650 build_alias
651 LIBS
652 ECHO_T
653 ECHO_N
654 ECHO_C
655 DEFS
656 mandir
657 localedir
658 libdir
659 psdir
660 pdfdir
661 dvidir
662 htmldir
663 infodir
664 docdir
665 oldincludedir
666 includedir
667 localstatedir
668 sharedstatedir
669 sysconfdir
670 datadir
671 datarootdir
672 libexecdir
673 sbindir
674 bindir
675 program_transform_name
676 prefix
677 exec_prefix
678 PACKAGE_URL
679 PACKAGE_BUGREPORT
680 PACKAGE_STRING
681 PACKAGE_VERSION
682 PACKAGE_TARNAME
683 PACKAGE_NAME
684 PATH_SEPARATOR
685 SHELL'
686 ac_subst_files=''
687 ac_user_opts='
688 enable_option_checking
689 with_localdirs
690 with_libpcap
691 with_openssl
692 with_libnbase
693 '
694 ac_precious_vars='build_alias
695 host_alias
696 target_alias
697 CC
698 CFLAGS
699 LDFLAGS
700 LIBS
701 CPPFLAGS
702 CPP'
703
704
705 # Initialize some variables set by options.
706 ac_init_help=
707 ac_init_version=false
708 ac_unrecognized_opts=
709 ac_unrecognized_sep=
710 # The variables have the same names as the options, with
711 # dashes changed to underlines.
712 cache_file=/dev/null
713 exec_prefix=NONE
714 no_create=
715 no_recursion=
716 prefix=NONE
717 program_prefix=NONE
718 program_suffix=NONE
719 program_transform_name=s,x,x,
720 silent=
721 site=
722 srcdir=
723 verbose=
724 x_includes=NONE
725 x_libraries=NONE
726
727 # Installation directory options.
728 # These are left unexpanded so users can "make install exec_prefix=/foo"
729 # and all the variables that are supposed to be based on exec_prefix
730 # by default will actually change.
731 # Use braces instead of parens because sh, perl, etc. also accept them.
732 # (The list follows the same order as the GNU Coding Standards.)
733 bindir='${exec_prefix}/bin'
734 sbindir='${exec_prefix}/sbin'
735 libexecdir='${exec_prefix}/libexec'
736 datarootdir='${prefix}/share'
737 datadir='${datarootdir}'
738 sysconfdir='${prefix}/etc'
739 sharedstatedir='${prefix}/com'
740 localstatedir='${prefix}/var'
741 includedir='${prefix}/include'
742 oldincludedir='/usr/include'
743 docdir='${datarootdir}/doc/${PACKAGE}'
744 infodir='${datarootdir}/info'
745 htmldir='${docdir}'
746 dvidir='${docdir}'
747 pdfdir='${docdir}'
748 psdir='${docdir}'
749 libdir='${exec_prefix}/lib'
750 localedir='${datarootdir}/locale'
751 mandir='${datarootdir}/man'
752
753 ac_prev=
754 ac_dashdash=
755 for ac_option
756 do
757 # If the previous option needs an argument, assign it.
758 if test -n "$ac_prev"; then
759 eval $ac_prev=\$ac_option
760 ac_prev=
761 continue
762 fi
763
764 case $ac_option in
765 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
766 *=) ac_optarg= ;;
767 *) ac_optarg=yes ;;
768 esac
769
770 # Accept the important Cygnus configure options, so we can diagnose typos.
771
772 case $ac_dashdash$ac_option in
773 --)
774 ac_dashdash=yes ;;
775
776 -bindir | --bindir | --bindi | --bind | --bin | --bi)
777 ac_prev=bindir ;;
778 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
779 bindir=$ac_optarg ;;
780
781 -build | --build | --buil | --bui | --bu)
782 ac_prev=build_alias ;;
783 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
784 build_alias=$ac_optarg ;;
785
786 -cache-file | --cache-file | --cache-fil | --cache-fi \
787 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
788 ac_prev=cache_file ;;
789 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
790 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
791 cache_file=$ac_optarg ;;
792
793 --config-cache | -C)
794 cache_file=config.cache ;;
795
796 -datadir | --datadir | --datadi | --datad)
797 ac_prev=datadir ;;
798 -datadir=* | --datadir=* | --datadi=* | --datad=*)
799 datadir=$ac_optarg ;;
800
801 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
802 | --dataroo | --dataro | --datar)
803 ac_prev=datarootdir ;;
804 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
805 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
806 datarootdir=$ac_optarg ;;
807
808 -disable-* | --disable-*)
809 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
810 # Reject names that are not valid shell variable names.
811 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
812 as_fn_error $? "invalid feature name: $ac_useropt"
813 ac_useropt_orig=$ac_useropt
814 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
815 case $ac_user_opts in
816 *"
817 "enable_$ac_useropt"
818 "*) ;;
819 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
820 ac_unrecognized_sep=', ';;
821 esac
822 eval enable_$ac_useropt=no ;;
823
824 -docdir | --docdir | --docdi | --doc | --do)
825 ac_prev=docdir ;;
826 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
827 docdir=$ac_optarg ;;
828
829 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
830 ac_prev=dvidir ;;
831 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
832 dvidir=$ac_optarg ;;
833
834 -enable-* | --enable-*)
835 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
836 # Reject names that are not valid shell variable names.
837 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
838 as_fn_error $? "invalid feature name: $ac_useropt"
839 ac_useropt_orig=$ac_useropt
840 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
841 case $ac_user_opts in
842 *"
843 "enable_$ac_useropt"
844 "*) ;;
845 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
846 ac_unrecognized_sep=', ';;
847 esac
848 eval enable_$ac_useropt=\$ac_optarg ;;
849
850 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
851 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
852 | --exec | --exe | --ex)
853 ac_prev=exec_prefix ;;
854 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
855 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
856 | --exec=* | --exe=* | --ex=*)
857 exec_prefix=$ac_optarg ;;
858
859 -gas | --gas | --ga | --g)
860 # Obsolete; use --with-gas.
861 with_gas=yes ;;
862
863 -help | --help | --hel | --he | -h)
864 ac_init_help=long ;;
865 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
866 ac_init_help=recursive ;;
867 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
868 ac_init_help=short ;;
869
870 -host | --host | --hos | --ho)
871 ac_prev=host_alias ;;
872 -host=* | --host=* | --hos=* | --ho=*)
873 host_alias=$ac_optarg ;;
874
875 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
876 ac_prev=htmldir ;;
877 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
878 | --ht=*)
879 htmldir=$ac_optarg ;;
880
881 -includedir | --includedir | --includedi | --included | --include \
882 | --includ | --inclu | --incl | --inc)
883 ac_prev=includedir ;;
884 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
885 | --includ=* | --inclu=* | --incl=* | --inc=*)
886 includedir=$ac_optarg ;;
887
888 -infodir | --infodir | --infodi | --infod | --info | --inf)
889 ac_prev=infodir ;;
890 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
891 infodir=$ac_optarg ;;
892
893 -libdir | --libdir | --libdi | --libd)
894 ac_prev=libdir ;;
895 -libdir=* | --libdir=* | --libdi=* | --libd=*)
896 libdir=$ac_optarg ;;
897
898 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
899 | --libexe | --libex | --libe)
900 ac_prev=libexecdir ;;
901 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
902 | --libexe=* | --libex=* | --libe=*)
903 libexecdir=$ac_optarg ;;
904
905 -localedir | --localedir | --localedi | --localed | --locale)
906 ac_prev=localedir ;;
907 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
908 localedir=$ac_optarg ;;
909
910 -localstatedir | --localstatedir | --localstatedi | --localstated \
911 | --localstate | --localstat | --localsta | --localst | --locals)
912 ac_prev=localstatedir ;;
913 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
914 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
915 localstatedir=$ac_optarg ;;
916
917 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
918 ac_prev=mandir ;;
919 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
920 mandir=$ac_optarg ;;
921
922 -nfp | --nfp | --nf)
923 # Obsolete; use --without-fp.
924 with_fp=no ;;
925
926 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
927 | --no-cr | --no-c | -n)
928 no_create=yes ;;
929
930 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
931 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
932 no_recursion=yes ;;
933
934 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
935 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
936 | --oldin | --oldi | --old | --ol | --o)
937 ac_prev=oldincludedir ;;
938 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
939 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
940 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
941 oldincludedir=$ac_optarg ;;
942
943 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
944 ac_prev=prefix ;;
945 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
946 prefix=$ac_optarg ;;
947
948 -program-prefix | --program-prefix | --program-prefi | --program-pref \
949 | --program-pre | --program-pr | --program-p)
950 ac_prev=program_prefix ;;
951 -program-prefix=* | --program-prefix=* | --program-prefi=* \
952 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
953 program_prefix=$ac_optarg ;;
954
955 -program-suffix | --program-suffix | --program-suffi | --program-suff \
956 | --program-suf | --program-su | --program-s)
957 ac_prev=program_suffix ;;
958 -program-suffix=* | --program-suffix=* | --program-suffi=* \
959 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
960 program_suffix=$ac_optarg ;;
961
962 -program-transform-name | --program-transform-name \
963 | --program-transform-nam | --program-transform-na \
964 | --program-transform-n | --program-transform- \
965 | --program-transform | --program-transfor \
966 | --program-transfo | --program-transf \
967 | --program-trans | --program-tran \
968 | --progr-tra | --program-tr | --program-t)
969 ac_prev=program_transform_name ;;
970 -program-transform-name=* | --program-transform-name=* \
971 | --program-transform-nam=* | --program-transform-na=* \
972 | --program-transform-n=* | --program-transform-=* \
973 | --program-transform=* | --program-transfor=* \
974 | --program-transfo=* | --program-transf=* \
975 | --program-trans=* | --program-tran=* \
976 | --progr-tra=* | --program-tr=* | --program-t=*)
977 program_transform_name=$ac_optarg ;;
978
979 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
980 ac_prev=pdfdir ;;
981 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
982 pdfdir=$ac_optarg ;;
983
984 -psdir | --psdir | --psdi | --psd | --ps)
985 ac_prev=psdir ;;
986 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
987 psdir=$ac_optarg ;;
988
989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
990 | -silent | --silent | --silen | --sile | --sil)
991 silent=yes ;;
992
993 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
994 ac_prev=sbindir ;;
995 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
996 | --sbi=* | --sb=*)
997 sbindir=$ac_optarg ;;
998
999 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1000 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1001 | --sharedst | --shareds | --shared | --share | --shar \
1002 | --sha | --sh)
1003 ac_prev=sharedstatedir ;;
1004 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1005 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1006 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1007 | --sha=* | --sh=*)
1008 sharedstatedir=$ac_optarg ;;
1009
1010 -site | --site | --sit)
1011 ac_prev=site ;;
1012 -site=* | --site=* | --sit=*)
1013 site=$ac_optarg ;;
1014
1015 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1016 ac_prev=srcdir ;;
1017 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1018 srcdir=$ac_optarg ;;
1019
1020 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1021 | --syscon | --sysco | --sysc | --sys | --sy)
1022 ac_prev=sysconfdir ;;
1023 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1024 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1025 sysconfdir=$ac_optarg ;;
1026
1027 -target | --target | --targe | --targ | --tar | --ta | --t)
1028 ac_prev=target_alias ;;
1029 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1030 target_alias=$ac_optarg ;;
1031
1032 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1033 verbose=yes ;;
1034
1035 -version | --version | --versio | --versi | --vers | -V)
1036 ac_init_version=: ;;
1037
1038 -with-* | --with-*)
1039 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1042 as_fn_error $? "invalid package name: $ac_useropt"
1043 ac_useropt_orig=$ac_useropt
1044 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045 case $ac_user_opts in
1046 *"
1047 "with_$ac_useropt"
1048 "*) ;;
1049 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1050 ac_unrecognized_sep=', ';;
1051 esac
1052 eval with_$ac_useropt=\$ac_optarg ;;
1053
1054 -without-* | --without-*)
1055 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058 as_fn_error $? "invalid package name: $ac_useropt"
1059 ac_useropt_orig=$ac_useropt
1060 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1062 *"
1063 "with_$ac_useropt"
1064 "*) ;;
1065 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1066 ac_unrecognized_sep=', ';;
1067 esac
1068 eval with_$ac_useropt=no ;;
1069
1070 --x)
1071 # Obsolete; use --with-x.
1072 with_x=yes ;;
1073
1074 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1075 | --x-incl | --x-inc | --x-in | --x-i)
1076 ac_prev=x_includes ;;
1077 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1078 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1079 x_includes=$ac_optarg ;;
1080
1081 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1082 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1083 ac_prev=x_libraries ;;
1084 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1085 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1086 x_libraries=$ac_optarg ;;
1087
1088 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1089 Try \`$0 --help' for more information"
1090 ;;
1091
1092 *=*)
1093 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1094 # Reject names that are not valid shell variable names.
1095 case $ac_envvar in #(
1096 '' | [0-9]* | *[!_$as_cr_alnum]* )
1097 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1098 esac
1099 eval $ac_envvar=\$ac_optarg
1100 export $ac_envvar ;;
1101
1102 *)
1103 # FIXME: should be removed in autoconf 3.0.
1104 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1105 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1106 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1107 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1108 ;;
1109
1110 esac
1111 done
1112
1113 if test -n "$ac_prev"; then
1114 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1115 as_fn_error $? "missing argument to $ac_option"
1116 fi
1117
1118 if test -n "$ac_unrecognized_opts"; then
1119 case $enable_option_checking in
1120 no) ;;
1121 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1122 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1123 esac
1124 fi
1125
1126 # Check all directory arguments for consistency.
1127 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1128 datadir sysconfdir sharedstatedir localstatedir includedir \
1129 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1130 libdir localedir mandir
1131 do
1132 eval ac_val=\$$ac_var
1133 # Remove trailing slashes.
1134 case $ac_val in
1135 */ )
1136 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1137 eval $ac_var=\$ac_val;;
1138 esac
1139 # Be sure to have absolute directory names.
1140 case $ac_val in
1141 [\\/$]* | ?:[\\/]* ) continue;;
1142 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1143 esac
1144 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1145 done
1146
1147 # There might be people who depend on the old broken behavior: `$host'
1148 # used to hold the argument of --host etc.
1149 # FIXME: To remove some day.
1150 build=$build_alias
1151 host=$host_alias
1152 target=$target_alias
1153
1154 # FIXME: To remove some day.
1155 if test "x$host_alias" != x; then
1156 if test "x$build_alias" = x; then
1157 cross_compiling=maybe
1158 elif test "x$build_alias" != "x$host_alias"; then
1159 cross_compiling=yes
1160 fi
1161 fi
1162
1163 ac_tool_prefix=
1164 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1165
1166 test "$silent" = yes && exec 6>/dev/null
1167
1168
1169 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1170 ac_ls_di=`ls -di .` &&
1171 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1172 as_fn_error $? "working directory cannot be determined"
1173 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1174 as_fn_error $? "pwd does not report name of working directory"
1175
1176
1177 # Find the source files, if location was not specified.
1178 if test -z "$srcdir"; then
1179 ac_srcdir_defaulted=yes
1180 # Try the directory containing this script, then the parent directory.
1181 ac_confdir=`$as_dirname -- "$as_myself" ||
1182 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1183 X"$as_myself" : 'X\(//\)[^/]' \| \
1184 X"$as_myself" : 'X\(//\)$' \| \
1185 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1186 $as_echo X"$as_myself" |
1187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1188 s//\1/
1189 q
1190 }
1191 /^X\(\/\/\)[^/].*/{
1192 s//\1/
1193 q
1194 }
1195 /^X\(\/\/\)$/{
1196 s//\1/
1197 q
1198 }
1199 /^X\(\/\).*/{
1200 s//\1/
1201 q
1202 }
1203 s/.*/./; q'`
1204 srcdir=$ac_confdir
1205 if test ! -r "$srcdir/$ac_unique_file"; then
1206 srcdir=..
1207 fi
1208 else
1209 ac_srcdir_defaulted=no
1210 fi
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1213 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1214 fi
1215 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1216 ac_abs_confdir=`(
1217 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1218 pwd)`
1219 # When building in place, set srcdir=.
1220 if test "$ac_abs_confdir" = "$ac_pwd"; then
1221 srcdir=.
1222 fi
1223 # Remove unnecessary trailing slashes from srcdir.
1224 # Double slashes in file names in object file debugging info
1225 # mess up M-x gdb in Emacs.
1226 case $srcdir in
1227 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1228 esac
1229 for ac_var in $ac_precious_vars; do
1230 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1231 eval ac_env_${ac_var}_value=\$${ac_var}
1232 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1233 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1234 done
1235
1236 #
1237 # Report the --help message.
1238 #
1239 if test "$ac_init_help" = "long"; then
1240 # Omit some internal or obsolete options to make the list less imposing.
1241 # This message is too long to be a string in the A/UX 3.1 sh.
1242 cat <<_ACEOF
1243 \`configure' configures this package to adapt to many kinds of systems.
1244
1245 Usage: $0 [OPTION]... [VAR=VALUE]...
1246
1247 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1248 VAR=VALUE. See below for descriptions of some of the useful variables.
1249
1250 Defaults for the options are specified in brackets.
1251
1252 Configuration:
1253 -h, --help display this help and exit
1254 --help=short display options specific to this package
1255 --help=recursive display the short help of all the included packages
1256 -V, --version display version information and exit
1257 -q, --quiet, --silent do not print \`checking ...' messages
1258 --cache-file=FILE cache test results in FILE [disabled]
1259 -C, --config-cache alias for \`--cache-file=config.cache'
1260 -n, --no-create do not create output files
1261 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1262
1263 Installation directories:
1264 --prefix=PREFIX install architecture-independent files in PREFIX
1265 [$ac_default_prefix]
1266 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1267 [PREFIX]
1268
1269 By default, \`make install' will install all the files in
1270 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1271 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1272 for instance \`--prefix=\$HOME'.
1273
1274 For better control, use the options below.
1275
1276 Fine tuning of the installation directories:
1277 --bindir=DIR user executables [EPREFIX/bin]
1278 --sbindir=DIR system admin executables [EPREFIX/sbin]
1279 --libexecdir=DIR program executables [EPREFIX/libexec]
1280 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1281 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1282 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1283 --libdir=DIR object code libraries [EPREFIX/lib]
1284 --includedir=DIR C header files [PREFIX/include]
1285 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1286 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1287 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1288 --infodir=DIR info documentation [DATAROOTDIR/info]
1289 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1290 --mandir=DIR man documentation [DATAROOTDIR/man]
1291 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1292 --htmldir=DIR html documentation [DOCDIR]
1293 --dvidir=DIR dvi documentation [DOCDIR]
1294 --pdfdir=DIR pdf documentation [DOCDIR]
1295 --psdir=DIR ps documentation [DOCDIR]
1296 _ACEOF
1297
1298 cat <<\_ACEOF
1299
1300 System types:
1301 --build=BUILD configure for building on BUILD [guessed]
1302 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1303 _ACEOF
1304 fi
1305
1306 if test -n "$ac_init_help"; then
1307
1308 cat <<\_ACEOF
1309
1310 Optional Packages:
1311 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1312 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1313 --with-localdirs Explicitly ask compiler to use /usr/local/{include,libs} if they exist
1314 --with-libpcap=DIR Look for pcap headers in DIR/include.
1315 --with-libpcap=included Always use version included with Nmap
1316 --without-libpcap Disable pcap functions.
1317 --with-openssl=DIR Use optional openssl libs and includes from
1318 [DIR]/lib/ and [DIR]/include/openssl/)
1319 --with-libnbase=DIR Look for nbase include/libs in DIR
1320
1321 Some influential environment variables:
1322 CC C compiler command
1323 CFLAGS C compiler flags
1324 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1325 nonstandard directory <lib dir>
1326 LIBS libraries to pass to the linker, e.g. -l<library>
1327 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1328 you have headers in a nonstandard directory <include dir>
1329 CPP C preprocessor
1330
1331 Use these variables to override the choices made by `configure' or to help
1332 it to find libraries and programs with nonstandard names/locations.
1333
1334 Report bugs to the package provider.
1335 _ACEOF
1336 ac_status=$?
1337 fi
1338
1339 if test "$ac_init_help" = "recursive"; then
1340 # If there are subdirs, report their specific --help.
1341 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1342 test -d "$ac_dir" ||
1343 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1344 continue
1345 ac_builddir=.
1346
1347 case "$ac_dir" in
1348 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1349 *)
1350 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1351 # A ".." for each directory in $ac_dir_suffix.
1352 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1353 case $ac_top_builddir_sub in
1354 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1355 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1356 esac ;;
1357 esac
1358 ac_abs_top_builddir=$ac_pwd
1359 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1360 # for backward compatibility:
1361 ac_top_builddir=$ac_top_build_prefix
1362
1363 case $srcdir in
1364 .) # We are building in place.
1365 ac_srcdir=.
1366 ac_top_srcdir=$ac_top_builddir_sub
1367 ac_abs_top_srcdir=$ac_pwd ;;
1368 [\\/]* | ?:[\\/]* ) # Absolute name.
1369 ac_srcdir=$srcdir$ac_dir_suffix;
1370 ac_top_srcdir=$srcdir
1371 ac_abs_top_srcdir=$srcdir ;;
1372 *) # Relative name.
1373 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1374 ac_top_srcdir=$ac_top_build_prefix$srcdir
1375 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1376 esac
1377 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1378
1379 cd "$ac_dir" || { ac_status=$?; continue; }
1380 # Check for guested configure.
1381 if test -f "$ac_srcdir/configure.gnu"; then
1382 echo &&
1383 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1384 elif test -f "$ac_srcdir/configure"; then
1385 echo &&
1386 $SHELL "$ac_srcdir/configure" --help=recursive
1387 else
1388 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1389 fi || ac_status=$?
1390 cd "$ac_pwd" || { ac_status=$?; break; }
1391 done
1392 fi
1393
1394 test -n "$ac_init_help" && exit $ac_status
1395 if $ac_init_version; then
1396 cat <<\_ACEOF
1397 configure
1398 generated by GNU Autoconf 2.69
1399
1400 Copyright (C) 2012 Free Software Foundation, Inc.
1401 This configure script is free software; the Free Software Foundation
1402 gives unlimited permission to copy, distribute and modify it.
1403 _ACEOF
1404 exit
1405 fi
1406
1407 ## ------------------------ ##
1408 ## Autoconf initialization. ##
1409 ## ------------------------ ##
1410
1411 # ac_fn_c_try_compile LINENO
1412 # --------------------------
1413 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1414 ac_fn_c_try_compile ()
1415 {
1416 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1417 rm -f conftest.$ac_objext
1418 if { { ac_try="$ac_compile"
1419 case "(($ac_try" in
1420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1421 *) ac_try_echo=$ac_try;;
1422 esac
1423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1424 $as_echo "$ac_try_echo"; } >&5
1425 (eval "$ac_compile") 2>conftest.err
1426 ac_status=$?
1427 if test -s conftest.err; then
1428 grep -v '^ *+' conftest.err >conftest.er1
1429 cat conftest.er1 >&5
1430 mv -f conftest.er1 conftest.err
1431 fi
1432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1433 test $ac_status = 0; } && {
1434 test -z "$ac_c_werror_flag" ||
1435 test ! -s conftest.err
1436 } && test -s conftest.$ac_objext; then :
1437 ac_retval=0
1438 else
1439 $as_echo "$as_me: failed program was:" >&5
1440 sed 's/^/| /' conftest.$ac_ext >&5
1441
1442 ac_retval=1
1443 fi
1444 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1445 as_fn_set_status $ac_retval
1446
1447 } # ac_fn_c_try_compile
1448
1449 # ac_fn_c_try_cpp LINENO
1450 # ----------------------
1451 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1452 ac_fn_c_try_cpp ()
1453 {
1454 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1455 if { { ac_try="$ac_cpp conftest.$ac_ext"
1456 case "(($ac_try" in
1457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1458 *) ac_try_echo=$ac_try;;
1459 esac
1460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1461 $as_echo "$ac_try_echo"; } >&5
1462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1463 ac_status=$?
1464 if test -s conftest.err; then
1465 grep -v '^ *+' conftest.err >conftest.er1
1466 cat conftest.er1 >&5
1467 mv -f conftest.er1 conftest.err
1468 fi
1469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1470 test $ac_status = 0; } > conftest.i && {
1471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1472 test ! -s conftest.err
1473 }; then :
1474 ac_retval=0
1475 else
1476 $as_echo "$as_me: failed program was:" >&5
1477 sed 's/^/| /' conftest.$ac_ext >&5
1478
1479 ac_retval=1
1480 fi
1481 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1482 as_fn_set_status $ac_retval
1483
1484 } # ac_fn_c_try_cpp
1485
1486 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1487 # -------------------------------------------------------
1488 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1489 # the include files in INCLUDES and setting the cache variable VAR
1490 # accordingly.
1491 ac_fn_c_check_header_mongrel ()
1492 {
1493 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1494 if eval \${$3+:} false; then :
1495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1496 $as_echo_n "checking for $2... " >&6; }
1497 if eval \${$3+:} false; then :
1498 $as_echo_n "(cached) " >&6
1499 fi
1500 eval ac_res=\$$3
1501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1502 $as_echo "$ac_res" >&6; }
1503 else
1504 # Is the header compilable?
1505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1506 $as_echo_n "checking $2 usability... " >&6; }
1507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1508 /* end confdefs.h. */
1509 $4
1510 #include <$2>
1511 _ACEOF
1512 if ac_fn_c_try_compile "$LINENO"; then :
1513 ac_header_compiler=yes
1514 else
1515 ac_header_compiler=no
1516 fi
1517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1519 $as_echo "$ac_header_compiler" >&6; }
1520
1521 # Is the header present?
1522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1523 $as_echo_n "checking $2 presence... " >&6; }
1524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1525 /* end confdefs.h. */
1526 #include <$2>
1527 _ACEOF
1528 if ac_fn_c_try_cpp "$LINENO"; then :
1529 ac_header_preproc=yes
1530 else
1531 ac_header_preproc=no
1532 fi
1533 rm -f conftest.err conftest.i conftest.$ac_ext
1534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1535 $as_echo "$ac_header_preproc" >&6; }
1536
1537 # So? What about this header?
1538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1539 yes:no: )
1540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1541 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1543 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1544 ;;
1545 no:yes:* )
1546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1547 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1549 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1551 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1553 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1555 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1556 ;;
1557 esac
1558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1559 $as_echo_n "checking for $2... " >&6; }
1560 if eval \${$3+:} false; then :
1561 $as_echo_n "(cached) " >&6
1562 else
1563 eval "$3=\$ac_header_compiler"
1564 fi
1565 eval ac_res=\$$3
1566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1567 $as_echo "$ac_res" >&6; }
1568 fi
1569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570
1571 } # ac_fn_c_check_header_mongrel
1572
1573 # ac_fn_c_try_run LINENO
1574 # ----------------------
1575 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1576 # that executables *can* be run.
1577 ac_fn_c_try_run ()
1578 {
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 if { { ac_try="$ac_link"
1581 case "(($ac_try" in
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1584 esac
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_link") 2>&5
1588 ac_status=$?
1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1591 { { case "(($ac_try" in
1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593 *) ac_try_echo=$ac_try;;
1594 esac
1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 $as_echo "$ac_try_echo"; } >&5
1597 (eval "$ac_try") 2>&5
1598 ac_status=$?
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; }; }; then :
1601 ac_retval=0
1602 else
1603 $as_echo "$as_me: program exited with status $ac_status" >&5
1604 $as_echo "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.$ac_ext >&5
1606
1607 ac_retval=$ac_status
1608 fi
1609 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval
1612
1613 } # ac_fn_c_try_run
1614
1615 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1616 # -------------------------------------------------------
1617 # Tests whether HEADER exists and can be compiled using the include files in
1618 # INCLUDES, setting the cache variable VAR accordingly.
1619 ac_fn_c_check_header_compile ()
1620 {
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1623 $as_echo_n "checking for $2... " >&6; }
1624 if eval \${$3+:} false; then :
1625 $as_echo_n "(cached) " >&6
1626 else
1627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1628 /* end confdefs.h. */
1629 $4
1630 #include <$2>
1631 _ACEOF
1632 if ac_fn_c_try_compile "$LINENO"; then :
1633 eval "$3=yes"
1634 else
1635 eval "$3=no"
1636 fi
1637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1638 fi
1639 eval ac_res=\$$3
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1641 $as_echo "$ac_res" >&6; }
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643
1644 } # ac_fn_c_check_header_compile
1645
1646 # ac_fn_c_try_link LINENO
1647 # -----------------------
1648 # Try to link conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_c_try_link ()
1650 {
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 rm -f conftest.$ac_objext conftest$ac_exeext
1653 if { { ac_try="$ac_link"
1654 case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_link") 2>conftest.err
1661 ac_status=$?
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1666 fi
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && {
1669 test -z "$ac_c_werror_flag" ||
1670 test ! -s conftest.err
1671 } && test -s conftest$ac_exeext && {
1672 test "$cross_compiling" = yes ||
1673 test -x conftest$ac_exeext
1674 }; then :
1675 ac_retval=0
1676 else
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1679
1680 ac_retval=1
1681 fi
1682 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1683 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1684 # interfere with the next link command; also delete a directory that is
1685 # left behind by Apple's compiler. We do this before executing the actions.
1686 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688 as_fn_set_status $ac_retval
1689
1690 } # ac_fn_c_try_link
1691
1692 # ac_fn_c_check_func LINENO FUNC VAR
1693 # ----------------------------------
1694 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1695 ac_fn_c_check_func ()
1696 {
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699 $as_echo_n "checking for $2... " >&6; }
1700 if eval \${$3+:} false; then :
1701 $as_echo_n "(cached) " >&6
1702 else
1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704 /* end confdefs.h. */
1705 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1707 #define $2 innocuous_$2
1708
1709 /* System header to define __stub macros and hopefully few prototypes,
1710 which can conflict with char $2 (); below.
1711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1712 <limits.h> exists even on freestanding compilers. */
1713
1714 #ifdef __STDC__
1715 # include <limits.h>
1716 #else
1717 # include <assert.h>
1718 #endif
1719
1720 #undef $2
1721
1722 /* Override any GCC internal prototype to avoid an error.
1723 Use char because int might match the return type of a GCC
1724 builtin and then its argument prototype would still apply. */
1725 #ifdef __cplusplus
1726 extern "C"
1727 #endif
1728 char $2 ();
1729 /* The GNU C library defines this for functions which it implements
1730 to always fail with ENOSYS. Some functions are actually named
1731 something starting with __ and the normal name is an alias. */
1732 #if defined __stub_$2 || defined __stub___$2
1733 choke me
1734 #endif
1735
1736 int
1737 main ()
1738 {
1739 return $2 ();
1740 ;
1741 return 0;
1742 }
1743 _ACEOF
1744 if ac_fn_c_try_link "$LINENO"; then :
1745 eval "$3=yes"
1746 else
1747 eval "$3=no"
1748 fi
1749 rm -f core conftest.err conftest.$ac_objext \
1750 conftest$ac_exeext conftest.$ac_ext
1751 fi
1752 eval ac_res=\$$3
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754 $as_echo "$ac_res" >&6; }
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756
1757 } # ac_fn_c_check_func
1758 cat >config.log <<_ACEOF
1759 This file contains any messages produced by compilers while
1760 running configure, to aid debugging if configure makes a mistake.
1761
1762 It was created by $as_me, which was
1763 generated by GNU Autoconf 2.69. Invocation command line was
1764
1765 $ $0 $@
1766
1767 _ACEOF
1768 exec 5>>config.log
1769 {
1770 cat <<_ASUNAME
1771 ## --------- ##
1772 ## Platform. ##
1773 ## --------- ##
1774
1775 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1776 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1777 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1778 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1779 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1780
1781 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1782 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1783
1784 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1785 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1786 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1787 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1788 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1789 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1790 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1791
1792 _ASUNAME
1793
1794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1795 for as_dir in $PATH
1796 do
1797 IFS=$as_save_IFS
1798 test -z "$as_dir" && as_dir=.
1799 $as_echo "PATH: $as_dir"
1800 done
1801 IFS=$as_save_IFS
1802
1803 } >&5
1804
1805 cat >&5 <<_ACEOF
1806
1807
1808 ## ----------- ##
1809 ## Core tests. ##
1810 ## ----------- ##
1811
1812 _ACEOF
1813
1814
1815 # Keep a trace of the command line.
1816 # Strip out --no-create and --no-recursion so they do not pile up.
1817 # Strip out --silent because we don't want to record it for future runs.
1818 # Also quote any args containing shell meta-characters.
1819 # Make two passes to allow for proper duplicate-argument suppression.
1820 ac_configure_args=
1821 ac_configure_args0=
1822 ac_configure_args1=
1823 ac_must_keep_next=false
1824 for ac_pass in 1 2
1825 do
1826 for ac_arg
1827 do
1828 case $ac_arg in
1829 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1830 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1831 | -silent | --silent | --silen | --sile | --sil)
1832 continue ;;
1833 *\'*)
1834 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1835 esac
1836 case $ac_pass in
1837 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1838 2)
1839 as_fn_append ac_configure_args1 " '$ac_arg'"
1840 if test $ac_must_keep_next = true; then
1841 ac_must_keep_next=false # Got value, back to normal.
1842 else
1843 case $ac_arg in
1844 *=* | --config-cache | -C | -disable-* | --disable-* \
1845 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1846 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1847 | -with-* | --with-* | -without-* | --without-* | --x)
1848 case "$ac_configure_args0 " in
1849 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1850 esac
1851 ;;
1852 -* ) ac_must_keep_next=true ;;
1853 esac
1854 fi
1855 as_fn_append ac_configure_args " '$ac_arg'"
1856 ;;
1857 esac
1858 done
1859 done
1860 { ac_configure_args0=; unset ac_configure_args0;}
1861 { ac_configure_args1=; unset ac_configure_args1;}
1862
1863 # When interrupted or exit'd, cleanup temporary files, and complete
1864 # config.log. We remove comments because anyway the quotes in there
1865 # would cause problems or look ugly.
1866 # WARNING: Use '\'' to represent an apostrophe within the trap.
1867 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1868 trap 'exit_status=$?
1869 # Save into config.log some information that might help in debugging.
1870 {
1871 echo
1872
1873 $as_echo "## ---------------- ##
1874 ## Cache variables. ##
1875 ## ---------------- ##"
1876 echo
1877 # The following way of writing the cache mishandles newlines in values,
1878 (
1879 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1880 eval ac_val=\$$ac_var
1881 case $ac_val in #(
1882 *${as_nl}*)
1883 case $ac_var in #(
1884 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1885 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1886 esac
1887 case $ac_var in #(
1888 _ | IFS | as_nl) ;; #(
1889 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1890 *) { eval $ac_var=; unset $ac_var;} ;;
1891 esac ;;
1892 esac
1893 done
1894 (set) 2>&1 |
1895 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1896 *${as_nl}ac_space=\ *)
1897 sed -n \
1898 "s/'\''/'\''\\\\'\'''\''/g;
1899 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1900 ;; #(
1901 *)
1902 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1903 ;;
1904 esac |
1905 sort
1906 )
1907 echo
1908
1909 $as_echo "## ----------------- ##
1910 ## Output variables. ##
1911 ## ----------------- ##"
1912 echo
1913 for ac_var in $ac_subst_vars
1914 do
1915 eval ac_val=\$$ac_var
1916 case $ac_val in
1917 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1918 esac
1919 $as_echo "$ac_var='\''$ac_val'\''"
1920 done | sort
1921 echo
1922
1923 if test -n "$ac_subst_files"; then
1924 $as_echo "## ------------------- ##
1925 ## File substitutions. ##
1926 ## ------------------- ##"
1927 echo
1928 for ac_var in $ac_subst_files
1929 do
1930 eval ac_val=\$$ac_var
1931 case $ac_val in
1932 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1933 esac
1934 $as_echo "$ac_var='\''$ac_val'\''"
1935 done | sort
1936 echo
1937 fi
1938
1939 if test -s confdefs.h; then
1940 $as_echo "## ----------- ##
1941 ## confdefs.h. ##
1942 ## ----------- ##"
1943 echo
1944 cat confdefs.h
1945 echo
1946 fi
1947 test "$ac_signal" != 0 &&
1948 $as_echo "$as_me: caught signal $ac_signal"
1949 $as_echo "$as_me: exit $exit_status"
1950 } >&5
1951 rm -f core *.core core.conftest.* &&
1952 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1953 exit $exit_status
1954 ' 0
1955 for ac_signal in 1 2 13 15; do
1956 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1957 done
1958 ac_signal=0
1959
1960 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1961 rm -f -r conftest* confdefs.h
1962
1963 $as_echo "/* confdefs.h */" > confdefs.h
1964
1965 # Predefined preprocessor variables.
1966
1967 cat >>confdefs.h <<_ACEOF
1968 #define PACKAGE_NAME "$PACKAGE_NAME"
1969 _ACEOF
1970
1971 cat >>confdefs.h <<_ACEOF
1972 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1973 _ACEOF
1974
1975 cat >>confdefs.h <<_ACEOF
1976 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1977 _ACEOF
1978
1979 cat >>confdefs.h <<_ACEOF
1980 #define PACKAGE_STRING "$PACKAGE_STRING"
1981 _ACEOF
1982
1983 cat >>confdefs.h <<_ACEOF
1984 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1985 _ACEOF
1986
1987 cat >>confdefs.h <<_ACEOF
1988 #define PACKAGE_URL "$PACKAGE_URL"
1989 _ACEOF
1990
1991
1992 # Let the site file select an alternate cache file if it wants to.
1993 # Prefer an explicitly selected file to automatically selected ones.
1994 ac_site_file1=NONE
1995 ac_site_file2=NONE
1996 if test -n "$CONFIG_SITE"; then
1997 # We do not want a PATH search for config.site.
1998 case $CONFIG_SITE in #((
1999 -*) ac_site_file1=./$CONFIG_SITE;;
2000 */*) ac_site_file1=$CONFIG_SITE;;
2001 *) ac_site_file1=./$CONFIG_SITE;;
2002 esac
2003 elif test "x$prefix" != xNONE; then
2004 ac_site_file1=$prefix/share/config.site
2005 ac_site_file2=$prefix/etc/config.site
2006 else
2007 ac_site_file1=$ac_default_prefix/share/config.site
2008 ac_site_file2=$ac_default_prefix/etc/config.site
2009 fi
2010 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2011 do
2012 test "x$ac_site_file" = xNONE && continue
2013 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2015 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2016 sed 's/^/| /' "$ac_site_file" >&5
2017 . "$ac_site_file" \
2018 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2020 as_fn_error $? "failed to load site script $ac_site_file
2021 See \`config.log' for more details" "$LINENO" 5; }
2022 fi
2023 done
2024
2025 if test -r "$cache_file"; then
2026 # Some versions of bash will fail to source /dev/null (special files
2027 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2028 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2030 $as_echo "$as_me: loading cache $cache_file" >&6;}
2031 case $cache_file in
2032 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2033 *) . "./$cache_file";;
2034 esac
2035 fi
2036 else
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2038 $as_echo "$as_me: creating cache $cache_file" >&6;}
2039 >$cache_file
2040 fi
2041
2042 # Check that the precious variables saved in the cache have kept the same
2043 # value.
2044 ac_cache_corrupted=false
2045 for ac_var in $ac_precious_vars; do
2046 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2047 eval ac_new_set=\$ac_env_${ac_var}_set
2048 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2049 eval ac_new_val=\$ac_env_${ac_var}_value
2050 case $ac_old_set,$ac_new_set in
2051 set,)
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2053 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2054 ac_cache_corrupted=: ;;
2055 ,set)
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2057 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2058 ac_cache_corrupted=: ;;
2059 ,);;
2060 *)
2061 if test "x$ac_old_val" != "x$ac_new_val"; then
2062 # differences in whitespace do not lead to failure.
2063 ac_old_val_w=`echo x $ac_old_val`
2064 ac_new_val_w=`echo x $ac_new_val`
2065 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2067 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2068 ac_cache_corrupted=:
2069 else
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2071 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2072 eval $ac_var=\$ac_old_val
2073 fi
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2075 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2077 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2078 fi;;
2079 esac
2080 # Pass precious variables to config.status.
2081 if test "$ac_new_set" = set; then
2082 case $ac_new_val in
2083 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2084 *) ac_arg=$ac_var=$ac_new_val ;;
2085 esac
2086 case " $ac_configure_args " in
2087 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2088 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2089 esac
2090 fi
2091 done
2092 if $ac_cache_corrupted; then
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2096 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2097 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2098 fi
2099 ## -------------------- ##
2100 ## Main body of script. ##
2101 ## -------------------- ##
2102
2103 ac_ext=c
2104 ac_cpp='$CPP $CPPFLAGS'
2105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2108
2109
2110
2111 if test "${top_nmap_srcdir+set}" != set; then
2112 top_nmap_srcdir=../..
2113 export top_nmap_srcdir
2114 fi
2115
2116 ac_config_files="$ac_config_files Makefile ../tests/Makefile"
2117
2118
2119 ac_config_headers="$ac_config_headers ../include/nsock_config.h"
2120
2121
2122 ac_aux_dir=
2123 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2124 if test -f "$ac_dir/install-sh"; then
2125 ac_aux_dir=$ac_dir
2126 ac_install_sh="$ac_aux_dir/install-sh -c"
2127 break
2128 elif test -f "$ac_dir/install.sh"; then
2129 ac_aux_dir=$ac_dir
2130 ac_install_sh="$ac_aux_dir/install.sh -c"
2131 break
2132 elif test -f "$ac_dir/shtool"; then
2133 ac_aux_dir=$ac_dir
2134 ac_install_sh="$ac_aux_dir/shtool install -c"
2135 break
2136 fi
2137 done
2138 if test -z "$ac_aux_dir"; then
2139 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2140 fi
2141
2142 # These three variables are undocumented and unsupported,
2143 # and are intended to be withdrawn in a future Autoconf release.
2144 # They can cause serious problems if a builder's source tree is in a directory
2145 # whose full name contains unusual characters.
2146 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2147 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2148 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2149
2150
2151 # Make sure we can run config.sub.
2152 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2153 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2154
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2156 $as_echo_n "checking build system type... " >&6; }
2157 if ${ac_cv_build+:} false; then :
2158 $as_echo_n "(cached) " >&6
2159 else
2160 ac_build_alias=$build_alias
2161 test "x$ac_build_alias" = x &&
2162 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2163 test "x$ac_build_alias" = x &&
2164 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2165 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2166 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2167
2168 fi
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2170 $as_echo "$ac_cv_build" >&6; }
2171 case $ac_cv_build in
2172 *-*-*) ;;
2173 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2174 esac
2175 build=$ac_cv_build
2176 ac_save_IFS=$IFS; IFS='-'
2177 set x $ac_cv_build
2178 shift
2179 build_cpu=$1
2180 build_vendor=$2
2181 shift; shift
2182 # Remember, the first character of IFS is used to create $*,
2183 # except with old shells:
2184 build_os=$*
2185 IFS=$ac_save_IFS
2186 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2187
2188
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2190 $as_echo_n "checking host system type... " >&6; }
2191 if ${ac_cv_host+:} false; then :
2192 $as_echo_n "(cached) " >&6
2193 else
2194 if test "x$host_alias" = x; then
2195 ac_cv_host=$ac_cv_build
2196 else
2197 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2198 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2199 fi
2200
2201 fi
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2203 $as_echo "$ac_cv_host" >&6; }
2204 case $ac_cv_host in
2205 *-*-*) ;;
2206 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2207 esac
2208 host=$ac_cv_host
2209 ac_save_IFS=$IFS; IFS='-'
2210 set x $ac_cv_host
2211 shift
2212 host_cpu=$1
2213 host_vendor=$2
2214 shift; shift
2215 # Remember, the first character of IFS is used to create $*,
2216 # except with old shells:
2217 host_os=$*
2218 IFS=$ac_save_IFS
2219 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2220
2221
2222
2223
2224
2225
2226 case "$host" in
2227 *alpha-dec-osf*)
2228
2229 $as_echo "#define DEC 1" >>confdefs.h
2230
2231 ;;
2232 *-netbsd* | *-knetbsd*-gnu)
2233
2234 $as_echo "#define NETBSD 1" >>confdefs.h
2235
2236 ;;
2237 *-openbsd*)
2238
2239 $as_echo "#define OPENBSD 1" >>confdefs.h
2240
2241 ;;
2242 *-sgi-irix5*)
2243 $as_echo "#define IRIX 1" >>confdefs.h
2244
2245 ;;
2246 *-sgi-irix6*)
2247 $as_echo "#define IRIX 1" >>confdefs.h
2248
2249 ;;
2250 *-hpux*)
2251
2252 $as_echo "#define HPUX 1" >>confdefs.h
2253
2254 ;;
2255 *-solaris2.1[1-9]*)
2256 $as_echo "#define SOLARIS 1" >>confdefs.h
2257
2258 # Solaris 11 and later use BPF packet capture rather than DLPI.
2259
2260 $as_echo "#define SOLARIS_BPF_PCAP_CAPTURE 1" >>confdefs.h
2261
2262 ;;
2263 *-solaris2.0*)
2264 $as_echo "#define SOLARIS 1" >>confdefs.h
2265
2266 ;;
2267 *-solaris2.[1-9][0-9]*)
2268 $as_echo "#define SOLARIS 1" >>confdefs.h
2269
2270 ;;
2271 *-solaris2.1*)
2272 $as_echo "#define SOLARIS 1" >>confdefs.h
2273
2274 ;;
2275 *-solaris2.2*)
2276 $as_echo "#define SOLARIS 1" >>confdefs.h
2277
2278 ;;
2279 *-solaris2.3*)
2280 $as_echo "#define SOLARIS 1" >>confdefs.h
2281
2282 ;;
2283 *-solaris2.4*)
2284 $as_echo "#define SOLARIS 1" >>confdefs.h
2285
2286 ;;
2287 *-solaris2.5.1)
2288 $as_echo "#define SOLARIS 1" >>confdefs.h
2289
2290 ;;
2291 *-solaris*)
2292 $as_echo "#define SOLARIS 1" >>confdefs.h
2293
2294 ;;
2295 *-sunos4*)
2296
2297 $as_echo "#define SUNOS 1" >>confdefs.h
2298
2299 ;;
2300 *-linux*)
2301
2302 $as_echo "#define LINUX 1" >>confdefs.h
2303
2304 ;;
2305 *-freebsd* | *-kfreebsd*-gnu | *-dragonfly*)
2306
2307 $as_echo "#define FREEBSD 1" >>confdefs.h
2308
2309 ;;
2310 *-bsdi*)
2311
2312 $as_echo "#define BSDI 1" >>confdefs.h
2313
2314 ;;
2315 *-apple-darwin*)
2316
2317 $as_echo "#define MACOSX 1" >>confdefs.h
2318
2319 ;;
2320 esac
2321
2322
2323
2324 # Check whether --with-localdirs was given.
2325 if test "${with_localdirs+set}" = set; then :
2326 withval=$with_localdirs; case "$with_localdirs" in
2327 yes)
2328 user_localdirs=1
2329 ;;
2330 no)
2331 user_localdirs=0
2332 ;;
2333 esac
2334
2335 else
2336 user_localdirs=0
2337 fi
2338
2339
2340 if test "$user_localdirs" = 1; then
2341 if test -d /usr/local/lib; then
2342 LDFLAGS="$LDFLAGS -L/usr/local/lib"
2343 fi
2344 if test -d /usr/local/include; then
2345 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
2346 fi
2347 fi
2348
2349 have_libpcap=no
2350
2351 # By default, search for pcap library
2352 test "${with_libpcap+set}" != "set" && with_libpcap=yes
2353
2354 ac_ext=c
2355 ac_cpp='$CPP $CPPFLAGS'
2356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359 if test -n "$ac_tool_prefix"; then
2360 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2361 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2363 $as_echo_n "checking for $ac_word... " >&6; }
2364 if ${ac_cv_prog_CC+:} false; then :
2365 $as_echo_n "(cached) " >&6
2366 else
2367 if test -n "$CC"; then
2368 ac_cv_prog_CC="$CC" # Let the user override the test.
2369 else
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 for as_dir in $PATH
2372 do
2373 IFS=$as_save_IFS
2374 test -z "$as_dir" && as_dir=.
2375 for ac_exec_ext in '' $ac_executable_extensions; do
2376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2377 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2379 break 2
2380 fi
2381 done
2382 done
2383 IFS=$as_save_IFS
2384
2385 fi
2386 fi
2387 CC=$ac_cv_prog_CC
2388 if test -n "$CC"; then
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2390 $as_echo "$CC" >&6; }
2391 else
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2393 $as_echo "no" >&6; }
2394 fi
2395
2396
2397 fi
2398 if test -z "$ac_cv_prog_CC"; then
2399 ac_ct_CC=$CC
2400 # Extract the first word of "gcc", so it can be a program name with args.
2401 set dummy gcc; ac_word=$2
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2403 $as_echo_n "checking for $ac_word... " >&6; }
2404 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2405 $as_echo_n "(cached) " >&6
2406 else
2407 if test -n "$ac_ct_CC"; then
2408 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2409 else
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 for as_dir in $PATH
2412 do
2413 IFS=$as_save_IFS
2414 test -z "$as_dir" && as_dir=.
2415 for ac_exec_ext in '' $ac_executable_extensions; do
2416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2417 ac_cv_prog_ac_ct_CC="gcc"
2418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2419 break 2
2420 fi
2421 done
2422 done
2423 IFS=$as_save_IFS
2424
2425 fi
2426 fi
2427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2428 if test -n "$ac_ct_CC"; then
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2430 $as_echo "$ac_ct_CC" >&6; }
2431 else
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2433 $as_echo "no" >&6; }
2434 fi
2435
2436 if test "x$ac_ct_CC" = x; then
2437 CC=""
2438 else
2439 case $cross_compiling:$ac_tool_warned in
2440 yes:)
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2443 ac_tool_warned=yes ;;
2444 esac
2445 CC=$ac_ct_CC
2446 fi
2447 else
2448 CC="$ac_cv_prog_CC"
2449 fi
2450
2451 if test -z "$CC"; then
2452 if test -n "$ac_tool_prefix"; then
2453 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2454 set dummy ${ac_tool_prefix}cc; ac_word=$2
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2456 $as_echo_n "checking for $ac_word... " >&6; }
2457 if ${ac_cv_prog_CC+:} false; then :
2458 $as_echo_n "(cached) " >&6
2459 else
2460 if test -n "$CC"; then
2461 ac_cv_prog_CC="$CC" # Let the user override the test.
2462 else
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2465 do
2466 IFS=$as_save_IFS
2467 test -z "$as_dir" && as_dir=.
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2470 ac_cv_prog_CC="${ac_tool_prefix}cc"
2471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 break 2
2473 fi
2474 done
2475 done
2476 IFS=$as_save_IFS
2477
2478 fi
2479 fi
2480 CC=$ac_cv_prog_CC
2481 if test -n "$CC"; then
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2483 $as_echo "$CC" >&6; }
2484 else
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2486 $as_echo "no" >&6; }
2487 fi
2488
2489
2490 fi
2491 fi
2492 if test -z "$CC"; then
2493 # Extract the first word of "cc", so it can be a program name with args.
2494 set dummy cc; ac_word=$2
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2496 $as_echo_n "checking for $ac_word... " >&6; }
2497 if ${ac_cv_prog_CC+:} false; then :
2498 $as_echo_n "(cached) " >&6
2499 else
2500 if test -n "$CC"; then
2501 ac_cv_prog_CC="$CC" # Let the user override the test.
2502 else
2503 ac_prog_rejected=no
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2506 do
2507 IFS=$as_save_IFS
2508 test -z "$as_dir" && as_dir=.
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2511 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2512 ac_prog_rejected=yes
2513 continue
2514 fi
2515 ac_cv_prog_CC="cc"
2516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2517 break 2
2518 fi
2519 done
2520 done
2521 IFS=$as_save_IFS
2522
2523 if test $ac_prog_rejected = yes; then
2524 # We found a bogon in the path, so make sure we never use it.
2525 set dummy $ac_cv_prog_CC
2526 shift
2527 if test $# != 0; then
2528 # We chose a different compiler from the bogus one.
2529 # However, it has the same basename, so the bogon will be chosen
2530 # first if we set CC to just the basename; use the full file name.
2531 shift
2532 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2533 fi
2534 fi
2535 fi
2536 fi
2537 CC=$ac_cv_prog_CC
2538 if test -n "$CC"; then
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2540 $as_echo "$CC" >&6; }
2541 else
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2543 $as_echo "no" >&6; }
2544 fi
2545
2546
2547 fi
2548 if test -z "$CC"; then
2549 if test -n "$ac_tool_prefix"; then
2550 for ac_prog in cl.exe
2551 do
2552 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2555 $as_echo_n "checking for $ac_word... " >&6; }
2556 if ${ac_cv_prog_CC+:} false; then :
2557 $as_echo_n "(cached) " >&6
2558 else
2559 if test -n "$CC"; then
2560 ac_cv_prog_CC="$CC" # Let the user override the test.
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2564 do
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2569 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 break 2
2572 fi
2573 done
2574 done
2575 IFS=$as_save_IFS
2576
2577 fi
2578 fi
2579 CC=$ac_cv_prog_CC
2580 if test -n "$CC"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2582 $as_echo "$CC" >&6; }
2583 else
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585 $as_echo "no" >&6; }
2586 fi
2587
2588
2589 test -n "$CC" && break
2590 done
2591 fi
2592 if test -z "$CC"; then
2593 ac_ct_CC=$CC
2594 for ac_prog in cl.exe
2595 do
2596 # Extract the first word of "$ac_prog", so it can be a program name with args.
2597 set dummy $ac_prog; ac_word=$2
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2599 $as_echo_n "checking for $ac_word... " >&6; }
2600 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2601 $as_echo_n "(cached) " >&6
2602 else
2603 if test -n "$ac_ct_CC"; then
2604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2605 else
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH
2608 do
2609 IFS=$as_save_IFS
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2613 ac_cv_prog_ac_ct_CC="$ac_prog"
2614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 break 2
2616 fi
2617 done
2618 done
2619 IFS=$as_save_IFS
2620
2621 fi
2622 fi
2623 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2624 if test -n "$ac_ct_CC"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2626 $as_echo "$ac_ct_CC" >&6; }
2627 else
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2629 $as_echo "no" >&6; }
2630 fi
2631
2632
2633 test -n "$ac_ct_CC" && break
2634 done
2635
2636 if test "x$ac_ct_CC" = x; then
2637 CC=""
2638 else
2639 case $cross_compiling:$ac_tool_warned in
2640 yes:)
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2643 ac_tool_warned=yes ;;
2644 esac
2645 CC=$ac_ct_CC
2646 fi
2647 fi
2648
2649 fi
2650
2651
2652 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2654 as_fn_error $? "no acceptable C compiler found in \$PATH
2655 See \`config.log' for more details" "$LINENO" 5; }
2656
2657 # Provide some information about the compiler.
2658 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2659 set X $ac_compile
2660 ac_compiler=$2
2661 for ac_option in --version -v -V -qversion; do
2662 { { ac_try="$ac_compiler $ac_option >&5"
2663 case "(($ac_try" in
2664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665 *) ac_try_echo=$ac_try;;
2666 esac
2667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2668 $as_echo "$ac_try_echo"; } >&5
2669 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2670 ac_status=$?
2671 if test -s conftest.err; then
2672 sed '10a\
2673 ... rest of stderr output deleted ...
2674 10q' conftest.err >conftest.er1
2675 cat conftest.er1 >&5
2676 fi
2677 rm -f conftest.er1 conftest.err
2678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2679 test $ac_status = 0; }
2680 done
2681
2682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683 /* end confdefs.h. */
2684
2685 int
2686 main ()
2687 {
2688
2689 ;
2690 return 0;
2691 }
2692 _ACEOF
2693 ac_clean_files_save=$ac_clean_files
2694 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2695 # Try to create an executable without -o first, disregard a.out.
2696 # It will help us diagnose broken compilers, and finding out an intuition
2697 # of exeext.
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2699 $as_echo_n "checking whether the C compiler works... " >&6; }
2700 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2701
2702 # The possible output files:
2703 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2704
2705 ac_rmfiles=
2706 for ac_file in $ac_files
2707 do
2708 case $ac_file in
2709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2710 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2711 esac
2712 done
2713 rm -f $ac_rmfiles
2714
2715 if { { ac_try="$ac_link_default"
2716 case "(($ac_try" in
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2719 esac
2720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2721 $as_echo "$ac_try_echo"; } >&5
2722 (eval "$ac_link_default") 2>&5
2723 ac_status=$?
2724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2725 test $ac_status = 0; }; then :
2726 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2727 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2728 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2729 # so that the user can short-circuit this test for compilers unknown to
2730 # Autoconf.
2731 for ac_file in $ac_files ''
2732 do
2733 test -f "$ac_file" || continue
2734 case $ac_file in
2735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2736 ;;
2737 [ab].out )
2738 # We found the default executable, but exeext='' is most
2739 # certainly right.
2740 break;;
2741 *.* )
2742 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2743 then :; else
2744 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2745 fi
2746 # We set ac_cv_exeext here because the later test for it is not
2747 # safe: cross compilers may not add the suffix if given an `-o'
2748 # argument, so we may need to know it at that point already.
2749 # Even if this section looks crufty: it has the advantage of
2750 # actually working.
2751 break;;
2752 * )
2753 break;;
2754 esac
2755 done
2756 test "$ac_cv_exeext" = no && ac_cv_exeext=
2757
2758 else
2759 ac_file=''
2760 fi
2761 if test -z "$ac_file"; then :
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763 $as_echo "no" >&6; }
2764 $as_echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2766
2767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2769 as_fn_error 77 "C compiler cannot create executables
2770 See \`config.log' for more details" "$LINENO" 5; }
2771 else
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2773 $as_echo "yes" >&6; }
2774 fi
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2776 $as_echo_n "checking for C compiler default output file name... " >&6; }
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2778 $as_echo "$ac_file" >&6; }
2779 ac_exeext=$ac_cv_exeext
2780
2781 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2782 ac_clean_files=$ac_clean_files_save
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2784 $as_echo_n "checking for suffix of executables... " >&6; }
2785 if { { ac_try="$ac_link"
2786 case "(($ac_try" in
2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788 *) ac_try_echo=$ac_try;;
2789 esac
2790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2791 $as_echo "$ac_try_echo"; } >&5
2792 (eval "$ac_link") 2>&5
2793 ac_status=$?
2794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2795 test $ac_status = 0; }; then :
2796 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2797 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2798 # work properly (i.e., refer to `conftest.exe'), while it won't with
2799 # `rm'.
2800 for ac_file in conftest.exe conftest conftest.*; do
2801 test -f "$ac_file" || continue
2802 case $ac_file in
2803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2804 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2805 break;;
2806 * ) break;;
2807 esac
2808 done
2809 else
2810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2812 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2813 See \`config.log' for more details" "$LINENO" 5; }
2814 fi
2815 rm -f conftest conftest$ac_cv_exeext
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2817 $as_echo "$ac_cv_exeext" >&6; }
2818
2819 rm -f conftest.$ac_ext
2820 EXEEXT=$ac_cv_exeext
2821 ac_exeext=$EXEEXT
2822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2823 /* end confdefs.h. */
2824 #include <stdio.h>
2825 int
2826 main ()
2827 {
2828 FILE *f = fopen ("conftest.out", "w");
2829 return ferror (f) || fclose (f) != 0;
2830
2831 ;
2832 return 0;
2833 }
2834 _ACEOF
2835 ac_clean_files="$ac_clean_files conftest.out"
2836 # Check that the compiler produces executables we can run. If not, either
2837 # the compiler is broken, or we cross compile.
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2839 $as_echo_n "checking whether we are cross compiling... " >&6; }
2840 if test "$cross_compiling" != yes; then
2841 { { ac_try="$ac_link"
2842 case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2845 esac
2846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2847 $as_echo "$ac_try_echo"; } >&5
2848 (eval "$ac_link") 2>&5
2849 ac_status=$?
2850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2851 test $ac_status = 0; }
2852 if { ac_try='./conftest$ac_cv_exeext'
2853 { { case "(($ac_try" in
2854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855 *) ac_try_echo=$ac_try;;
2856 esac
2857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2858 $as_echo "$ac_try_echo"; } >&5
2859 (eval "$ac_try") 2>&5
2860 ac_status=$?
2861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2862 test $ac_status = 0; }; }; then
2863 cross_compiling=no
2864 else
2865 if test "$cross_compiling" = maybe; then
2866 cross_compiling=yes
2867 else
2868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2870 as_fn_error $? "cannot run C compiled programs.
2871 If you meant to cross compile, use \`--host'.
2872 See \`config.log' for more details" "$LINENO" 5; }
2873 fi
2874 fi
2875 fi
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2877 $as_echo "$cross_compiling" >&6; }
2878
2879 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2880 ac_clean_files=$ac_clean_files_save
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2882 $as_echo_n "checking for suffix of object files... " >&6; }
2883 if ${ac_cv_objext+:} false; then :
2884 $as_echo_n "(cached) " >&6
2885 else
2886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2887 /* end confdefs.h. */
2888
2889 int
2890 main ()
2891 {
2892
2893 ;
2894 return 0;
2895 }
2896 _ACEOF
2897 rm -f conftest.o conftest.obj
2898 if { { ac_try="$ac_compile"
2899 case "(($ac_try" in
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2902 esac
2903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2904 $as_echo "$ac_try_echo"; } >&5
2905 (eval "$ac_compile") 2>&5
2906 ac_status=$?
2907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2908 test $ac_status = 0; }; then :
2909 for ac_file in conftest.o conftest.obj conftest.*; do
2910 test -f "$ac_file" || continue;
2911 case $ac_file in
2912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2913 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2914 break;;
2915 esac
2916 done
2917 else
2918 $as_echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2920
2921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2923 as_fn_error $? "cannot compute suffix of object files: cannot compile
2924 See \`config.log' for more details" "$LINENO" 5; }
2925 fi
2926 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2927 fi
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2929 $as_echo "$ac_cv_objext" >&6; }
2930 OBJEXT=$ac_cv_objext
2931 ac_objext=$OBJEXT
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2933 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2934 if ${ac_cv_c_compiler_gnu+:} false; then :
2935 $as_echo_n "(cached) " >&6
2936 else
2937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2938 /* end confdefs.h. */
2939
2940 int
2941 main ()
2942 {
2943 #ifndef __GNUC__
2944 choke me
2945 #endif
2946
2947 ;
2948 return 0;
2949 }
2950 _ACEOF
2951 if ac_fn_c_try_compile "$LINENO"; then :
2952 ac_compiler_gnu=yes
2953 else
2954 ac_compiler_gnu=no
2955 fi
2956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2957 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2958
2959 fi
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2961 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2962 if test $ac_compiler_gnu = yes; then
2963 GCC=yes
2964 else
2965 GCC=
2966 fi
2967 ac_test_CFLAGS=${CFLAGS+set}
2968 ac_save_CFLAGS=$CFLAGS
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2970 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2971 if ${ac_cv_prog_cc_g+:} false; then :
2972 $as_echo_n "(cached) " >&6
2973 else
2974 ac_save_c_werror_flag=$ac_c_werror_flag
2975 ac_c_werror_flag=yes
2976 ac_cv_prog_cc_g=no
2977 CFLAGS="-g"
2978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2979 /* end confdefs.h. */
2980
2981 int
2982 main ()
2983 {
2984
2985 ;
2986 return 0;
2987 }
2988 _ACEOF
2989 if ac_fn_c_try_compile "$LINENO"; then :
2990 ac_cv_prog_cc_g=yes
2991 else
2992 CFLAGS=""
2993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2994 /* end confdefs.h. */
2995
2996 int
2997 main ()
2998 {
2999
3000 ;
3001 return 0;
3002 }
3003 _ACEOF
3004 if ac_fn_c_try_compile "$LINENO"; then :
3005
3006 else
3007 ac_c_werror_flag=$ac_save_c_werror_flag
3008 CFLAGS="-g"
3009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3010 /* end confdefs.h. */
3011
3012 int
3013 main ()
3014 {
3015
3016 ;
3017 return 0;
3018 }
3019 _ACEOF
3020 if ac_fn_c_try_compile "$LINENO"; then :
3021 ac_cv_prog_cc_g=yes
3022 fi
3023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3024 fi
3025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3026 fi
3027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3028 ac_c_werror_flag=$ac_save_c_werror_flag
3029 fi
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3031 $as_echo "$ac_cv_prog_cc_g" >&6; }
3032 if test "$ac_test_CFLAGS" = set; then
3033 CFLAGS=$ac_save_CFLAGS
3034 elif test $ac_cv_prog_cc_g = yes; then
3035 if test "$GCC" = yes; then
3036 CFLAGS="-g -O2"
3037 else
3038 CFLAGS="-g"
3039 fi
3040 else
3041 if test "$GCC" = yes; then
3042 CFLAGS="-O2"
3043 else
3044 CFLAGS=
3045 fi
3046 fi
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3048 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3049 if ${ac_cv_prog_cc_c89+:} false; then :
3050 $as_echo_n "(cached) " >&6
3051 else
3052 ac_cv_prog_cc_c89=no
3053 ac_save_CC=$CC
3054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3055 /* end confdefs.h. */
3056 #include <stdarg.h>
3057 #include <stdio.h>
3058 struct stat;
3059 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3060 struct buf { int x; };
3061 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3062 static char *e (p, i)
3063 char **p;
3064 int i;
3065 {
3066 return p[i];
3067 }
3068 static char *f (char * (*g) (char **, int), char **p, ...)
3069 {
3070 char *s;
3071 va_list v;
3072 va_start (v,p);
3073 s = g (p, va_arg (v,int));
3074 va_end (v);
3075 return s;
3076 }
3077
3078 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3079 function prototypes and stuff, but not '\xHH' hex character constants.
3080 These don't provoke an error unfortunately, instead are silently treated
3081 as 'x'. The following induces an error, until -std is added to get
3082 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3083 array size at least. It's necessary to write '\x00'==0 to get something
3084 that's true only with -std. */
3085 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3086
3087 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3088 inside strings and character constants. */
3089 #define FOO(x) 'x'
3090 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3091
3092 int test (int i, double x);
3093 struct s1 {int (*f) (int a);};
3094 struct s2 {int (*f) (double a);};
3095 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3096 int argc;
3097 char **argv;
3098 int
3099 main ()
3100 {
3101 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3102 ;
3103 return 0;
3104 }
3105 _ACEOF
3106 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3107 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3108 do
3109 CC="$ac_save_CC $ac_arg"
3110 if ac_fn_c_try_compile "$LINENO"; then :
3111 ac_cv_prog_cc_c89=$ac_arg
3112 fi
3113 rm -f core conftest.err conftest.$ac_objext
3114 test "x$ac_cv_prog_cc_c89" != "xno" && break
3115 done
3116 rm -f conftest.$ac_ext
3117 CC=$ac_save_CC
3118
3119 fi
3120 # AC_CACHE_VAL
3121 case "x$ac_cv_prog_cc_c89" in
3122 x)
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3124 $as_echo "none needed" >&6; } ;;
3125 xno)
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3127 $as_echo "unsupported" >&6; } ;;
3128 *)
3129 CC="$CC $ac_cv_prog_cc_c89"
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3131 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3132 esac
3133 if test "x$ac_cv_prog_cc_c89" != xno; then :
3134
3135 fi
3136
3137 ac_ext=c
3138 ac_cpp='$CPP $CPPFLAGS'
3139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142
3143
3144 ac_ext=c
3145 ac_cpp='$CPP $CPPFLAGS'
3146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3150 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3151 # On Suns, sometimes $CPP names a directory.
3152 if test -n "$CPP" && test -d "$CPP"; then
3153 CPP=
3154 fi
3155 if test -z "$CPP"; then
3156 if ${ac_cv_prog_CPP+:} false; then :
3157 $as_echo_n "(cached) " >&6
3158 else
3159 # Double quotes because CPP needs to be expanded
3160 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3161 do
3162 ac_preproc_ok=false
3163 for ac_c_preproc_warn_flag in '' yes
3164 do
3165 # Use a header file that comes with gcc, so configuring glibc
3166 # with a fresh cross-compiler works.
3167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3168 # <limits.h> exists even on freestanding compilers.
3169 # On the NeXT, cc -E runs the code through the compiler's parser,
3170 # not just through cpp. "Syntax error" is here to catch this case.
3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172 /* end confdefs.h. */
3173 #ifdef __STDC__
3174 # include <limits.h>
3175 #else
3176 # include <assert.h>
3177 #endif
3178 Syntax error
3179 _ACEOF
3180 if ac_fn_c_try_cpp "$LINENO"; then :
3181
3182 else
3183 # Broken: fails on valid input.
3184 continue
3185 fi
3186 rm -f conftest.err conftest.i conftest.$ac_ext
3187
3188 # OK, works on sane cases. Now check whether nonexistent headers
3189 # can be detected and how.
3190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3191 /* end confdefs.h. */
3192 #include <ac_nonexistent.h>
3193 _ACEOF
3194 if ac_fn_c_try_cpp "$LINENO"; then :
3195 # Broken: success on invalid input.
3196 continue
3197 else
3198 # Passes both tests.
3199 ac_preproc_ok=:
3200 break
3201 fi
3202 rm -f conftest.err conftest.i conftest.$ac_ext
3203
3204 done
3205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3206 rm -f conftest.i conftest.err conftest.$ac_ext
3207 if $ac_preproc_ok; then :
3208 break
3209 fi
3210
3211 done
3212 ac_cv_prog_CPP=$CPP
3213
3214 fi
3215 CPP=$ac_cv_prog_CPP
3216 else
3217 ac_cv_prog_CPP=$CPP
3218 fi
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3220 $as_echo "$CPP" >&6; }
3221 ac_preproc_ok=false
3222 for ac_c_preproc_warn_flag in '' yes
3223 do
3224 # Use a header file that comes with gcc, so configuring glibc
3225 # with a fresh cross-compiler works.
3226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3227 # <limits.h> exists even on freestanding compilers.
3228 # On the NeXT, cc -E runs the code through the compiler's parser,
3229 # not just through cpp. "Syntax error" is here to catch this case.
3230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3231 /* end confdefs.h. */
3232 #ifdef __STDC__
3233 # include <limits.h>
3234 #else
3235 # include <assert.h>
3236 #endif
3237 Syntax error
3238 _ACEOF
3239 if ac_fn_c_try_cpp "$LINENO"; then :
3240
3241 else
3242 # Broken: fails on valid input.
3243 continue
3244 fi
3245 rm -f conftest.err conftest.i conftest.$ac_ext
3246
3247 # OK, works on sane cases. Now check whether nonexistent headers
3248 # can be detected and how.
3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h. */
3251 #include <ac_nonexistent.h>
3252 _ACEOF
3253 if ac_fn_c_try_cpp "$LINENO"; then :
3254 # Broken: success on invalid input.
3255 continue
3256 else
3257 # Passes both tests.
3258 ac_preproc_ok=:
3259 break
3260 fi
3261 rm -f conftest.err conftest.i conftest.$ac_ext
3262
3263 done
3264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3265 rm -f conftest.i conftest.err conftest.$ac_ext
3266 if $ac_preproc_ok; then :
3267
3268 else
3269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3271 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3272 See \`config.log' for more details" "$LINENO" 5; }
3273 fi
3274
3275 ac_ext=c
3276 ac_cpp='$CPP $CPPFLAGS'
3277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3280
3281
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3283 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3284 if ${ac_cv_path_GREP+:} false; then :
3285 $as_echo_n "(cached) " >&6
3286 else
3287 if test -z "$GREP"; then
3288 ac_path_GREP_found=false
3289 # Loop through the user's path and test for each of PROGNAME-LIST
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3292 do
3293 IFS=$as_save_IFS
3294 test -z "$as_dir" && as_dir=.
3295 for ac_prog in grep ggrep; do
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3298 as_fn_executable_p "$ac_path_GREP" || continue
3299 # Check for GNU ac_path_GREP and select it if it is found.
3300 # Check for GNU $ac_path_GREP
3301 case `"$ac_path_GREP" --version 2>&1` in
3302 *GNU*)
3303 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3304 *)
3305 ac_count=0
3306 $as_echo_n 0123456789 >"conftest.in"
3307 while :
3308 do
3309 cat "conftest.in" "conftest.in" >"conftest.tmp"
3310 mv "conftest.tmp" "conftest.in"
3311 cp "conftest.in" "conftest.nl"
3312 $as_echo 'GREP' >> "conftest.nl"
3313 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3315 as_fn_arith $ac_count + 1 && ac_count=$as_val
3316 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3317 # Best one so far, save it but keep looking for a better one
3318 ac_cv_path_GREP="$ac_path_GREP"
3319 ac_path_GREP_max=$ac_count
3320 fi
3321 # 10*(2^10) chars as input seems more than enough
3322 test $ac_count -gt 10 && break
3323 done
3324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3325 esac
3326
3327 $ac_path_GREP_found && break 3
3328 done
3329 done
3330 done
3331 IFS=$as_save_IFS
3332 if test -z "$ac_cv_path_GREP"; then
3333 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3334 fi
3335 else
3336 ac_cv_path_GREP=$GREP
3337 fi
3338
3339 fi
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3341 $as_echo "$ac_cv_path_GREP" >&6; }
3342 GREP="$ac_cv_path_GREP"
3343
3344
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3346 $as_echo_n "checking for egrep... " >&6; }
3347 if ${ac_cv_path_EGREP+:} false; then :
3348 $as_echo_n "(cached) " >&6
3349 else
3350 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3351 then ac_cv_path_EGREP="$GREP -E"
3352 else
3353 if test -z "$EGREP"; then
3354 ac_path_EGREP_found=false
3355 # Loop through the user's path and test for each of PROGNAME-LIST
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3358 do
3359 IFS=$as_save_IFS
3360 test -z "$as_dir" && as_dir=.
3361 for ac_prog in egrep; do
3362 for ac_exec_ext in '' $ac_executable_extensions; do
3363 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3364 as_fn_executable_p "$ac_path_EGREP" || continue
3365 # Check for GNU ac_path_EGREP and select it if it is found.
3366 # Check for GNU $ac_path_EGREP
3367 case `"$ac_path_EGREP" --version 2>&1` in
3368 *GNU*)
3369 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3370 *)
3371 ac_count=0
3372 $as_echo_n 0123456789 >"conftest.in"
3373 while :
3374 do
3375 cat "conftest.in" "conftest.in" >"conftest.tmp"
3376 mv "conftest.tmp" "conftest.in"
3377 cp "conftest.in" "conftest.nl"
3378 $as_echo 'EGREP' >> "conftest.nl"
3379 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3380 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3381 as_fn_arith $ac_count + 1 && ac_count=$as_val
3382 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3383 # Best one so far, save it but keep looking for a better one
3384 ac_cv_path_EGREP="$ac_path_EGREP"
3385 ac_path_EGREP_max=$ac_count
3386 fi
3387 # 10*(2^10) chars as input seems more than enough
3388 test $ac_count -gt 10 && break
3389 done
3390 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3391 esac
3392
3393 $ac_path_EGREP_found && break 3
3394 done
3395 done
3396 done
3397 IFS=$as_save_IFS
3398 if test -z "$ac_cv_path_EGREP"; then
3399 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3400 fi
3401 else
3402 ac_cv_path_EGREP=$EGREP
3403 fi
3404
3405 fi
3406 fi
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3408 $as_echo "$ac_cv_path_EGREP" >&6; }
3409 EGREP="$ac_cv_path_EGREP"
3410
3411
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3413 $as_echo_n "checking for ANSI C header files... " >&6; }
3414 if ${ac_cv_header_stdc+:} false; then :
3415 $as_echo_n "(cached) " >&6
3416 else
3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h. */
3419 #include <stdlib.h>
3420 #include <stdarg.h>
3421 #include <string.h>
3422 #include <float.h>
3423
3424 int
3425 main ()
3426 {
3427
3428 ;
3429 return 0;
3430 }
3431 _ACEOF
3432 if ac_fn_c_try_compile "$LINENO"; then :
3433 ac_cv_header_stdc=yes
3434 else
3435 ac_cv_header_stdc=no
3436 fi
3437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3438
3439 if test $ac_cv_header_stdc = yes; then
3440 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442 /* end confdefs.h. */
3443 #include <string.h>
3444
3445 _ACEOF
3446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3447 $EGREP "memchr" >/dev/null 2>&1; then :
3448
3449 else
3450 ac_cv_header_stdc=no
3451 fi
3452 rm -f conftest*
3453
3454 fi
3455
3456 if test $ac_cv_header_stdc = yes; then
3457 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h. */
3460 #include <stdlib.h>
3461
3462 _ACEOF
3463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3464 $EGREP "free" >/dev/null 2>&1; then :
3465
3466 else
3467 ac_cv_header_stdc=no
3468 fi
3469 rm -f conftest*
3470
3471 fi
3472
3473 if test $ac_cv_header_stdc = yes; then
3474 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3475 if test "$cross_compiling" = yes; then :
3476 :
3477 else
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3480 #include <ctype.h>
3481 #include <stdlib.h>
3482 #if ((' ' & 0x0FF) == 0x020)
3483 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3484 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3485 #else
3486 # define ISLOWER(c) \
3487 (('a' <= (c) && (c) <= 'i') \
3488 || ('j' <= (c) && (c) <= 'r') \
3489 || ('s' <= (c) && (c) <= 'z'))
3490 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3491 #endif
3492
3493 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3494 int
3495 main ()
3496 {
3497 int i;
3498 for (i = 0; i < 256; i++)
3499 if (XOR (islower (i), ISLOWER (i))
3500 || toupper (i) != TOUPPER (i))
3501 return 2;
3502 return 0;
3503 }
3504 _ACEOF
3505 if ac_fn_c_try_run "$LINENO"; then :
3506
3507 else
3508 ac_cv_header_stdc=no
3509 fi
3510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3511 conftest.$ac_objext conftest.beam conftest.$ac_ext
3512 fi
3513
3514 fi
3515 fi
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3517 $as_echo "$ac_cv_header_stdc" >&6; }
3518 if test $ac_cv_header_stdc = yes; then
3519
3520 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3521
3522 fi
3523
3524 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3525 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3526 inttypes.h stdint.h unistd.h
3527 do :
3528 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3529 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3530 "
3531 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3532 cat >>confdefs.h <<_ACEOF
3533 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3534 _ACEOF
3535
3536 fi
3537
3538 done
3539
3540
3541
3542 # Check whether --with-libpcap was given.
3543 if test "${with_libpcap+set}" = set; then :
3544 withval=$with_libpcap; case "$with_libpcap" in
3545 yes)
3546 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
3547 if test "x$ac_cv_header_pcap_h" = xyes; then :
3548
3549 have_libpcap=yes
3550 LIBPCAP_LIBS=-lpcap
3551 fi
3552
3553
3554 ;;
3555 included)
3556 have_libpcap=no
3557 ;;
3558 no)
3559 ;;
3560 *)
3561 _cppflags=$CPPFLAGS
3562 _ldflags=$LDFLAGS
3563
3564 CPPFLAGS="-I$with_libpcap/include $CPPFLAGS"
3565 LDFLAGS="-L$with_libpcap/lib $LDFLAGS"
3566
3567 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
3568 if test "x$ac_cv_header_pcap_h" = xyes; then :
3569
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_datalink in -lpcap" >&5
3571 $as_echo_n "checking for pcap_datalink in -lpcap... " >&6; }
3572 if ${ac_cv_lib_pcap_pcap_datalink+:} false; then :
3573 $as_echo_n "(cached) " >&6
3574 else
3575 ac_check_lib_save_LIBS=$LIBS
3576 LIBS="-lpcap $LIBS"
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3579
3580 /* Override any GCC internal prototype to avoid an error.
3581 Use char because int might match the return type of a GCC
3582 builtin and then its argument prototype would still apply. */
3583 #ifdef __cplusplus
3584 extern "C"
3585 #endif
3586 char pcap_datalink ();
3587 int
3588 main ()
3589 {
3590 return pcap_datalink ();
3591 ;
3592 return 0;
3593 }
3594 _ACEOF
3595 if ac_fn_c_try_link "$LINENO"; then :
3596 ac_cv_lib_pcap_pcap_datalink=yes
3597 else
3598 ac_cv_lib_pcap_pcap_datalink=no
3599 fi
3600 rm -f core conftest.err conftest.$ac_objext \
3601 conftest$ac_exeext conftest.$ac_ext
3602 LIBS=$ac_check_lib_save_LIBS
3603 fi
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_datalink" >&5
3605 $as_echo "$ac_cv_lib_pcap_pcap_datalink" >&6; }
3606 if test "x$ac_cv_lib_pcap_pcap_datalink" = xyes; then :
3607 have_libpcap=yes
3608 LIBPCAP_LIBS=-lpcap
3609 LIBPCAP_INC=$with_libpcap/include
3610 LIBPCAP_LIB=$with_libpcap/lib
3611 fi
3612
3613 fi
3614
3615
3616
3617 LDFLAGS=$_ldflags
3618 CPPFLAGS=$_cppflags
3619 ;;
3620 esac
3621
3622 fi
3623
3624
3625 if test "$with_libpcap" != "no" -a "$have_libpcap" = "no"; then
3626 LIBPCAP_INC=${top_nmap_srcdir}/libpcap
3627 LIBPCAP_LIB=${top_nmap_srcdir}/libpcap
3628 LIBPCAP_LIBS=${LIBPCAP_LIB}/libpcap.a
3629 have_libpcap=yes
3630 fi
3631 if test "$have_libpcap" != "no"; then
3632
3633 $as_echo "#define HAVE_PCAP 1" >>confdefs.h
3634
3635 if test "${LIBPCAP_INC+set}" = "set"; then
3636 CPPFLAGS="-I$LIBPCAP_INC $CPPFLAGS"
3637 LDFLAGS="-L$LIBPCAP_LIB $LDFLAGS"
3638 fi
3639 fi
3640
3641
3642
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PCAP_NETMASK_UNKNOWN is defined/handled by libpcap" >&5
3644 $as_echo_n "checking if PCAP_NETMASK_UNKNOWN is defined/handled by libpcap... " >&6; }
3645 if ${ac_cv_have_pcap_netmask_unknown+:} false; then :
3646 $as_echo_n "(cached) " >&6
3647 else
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h. */
3650
3651 #include <pcap.h>
3652
3653 int
3654 main ()
3655 {
3656
3657 int i = PCAP_NETMASK_UNKNOWN;
3658
3659 ;
3660 return 0;
3661 }
3662 _ACEOF
3663 if ac_fn_c_try_compile "$LINENO"; then :
3664 ac_cv_have_pcap_netmask_unknown=yes
3665 else
3666 ac_cv_have_pcap_netmask_unknown=no
3667 fi
3668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669 fi
3670
3671 if test $ac_cv_have_pcap_netmask_unknown = no; then
3672
3673 $as_echo "#define PCAP_NETMASK_UNKNOWN 0" >>confdefs.h
3674
3675 fi
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pcap_netmask_unknown" >&5
3677 $as_echo "$ac_cv_have_pcap_netmask_unknown" >&6; }
3678
3679
3680 ax_have_epoll_cppflags="${CPPFLAGS}"
3681 ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
3682 if test "x$ac_cv_header_linux_version_h" = xyes; then :
3683 CPPFLAGS="${CPPFLAGS} -DHAVE_LINUX_VERSION_H"
3684 fi
3685
3686
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux epoll(7) interface" >&5
3688 $as_echo_n "checking for Linux epoll(7) interface... " >&6; }
3689 if ${ax_cv_have_epoll+:} false; then :
3690 $as_echo_n "(cached) " >&6
3691 else
3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h. */
3694 #include <sys/epoll.h>
3695 #ifdef HAVE_LINUX_VERSION_H
3696 # include <linux/version.h>
3697 # if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,45)
3698 # error linux kernel version is too old to have epoll
3699 # endif
3700 #endif
3701
3702 int
3703 main ()
3704 {
3705 int fd, rc;
3706 struct epoll_event ev;
3707 fd = epoll_create(128);
3708 rc = epoll_wait(fd, &ev, 1, 0);
3709 ;
3710 return 0;
3711 }
3712 _ACEOF
3713 if ac_fn_c_try_link "$LINENO"; then :
3714 ax_cv_have_epoll=yes
3715 else
3716 ax_cv_have_epoll=no
3717 fi
3718 rm -f core conftest.err conftest.$ac_objext \
3719 conftest$ac_exeext conftest.$ac_ext
3720 fi
3721
3722 CPPFLAGS="${ax_have_epoll_cppflags}"
3723 if test "${ax_cv_have_epoll}" = "yes"; then :
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3725 $as_echo "yes" >&6; }
3726
3727 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
3728
3729 else
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3732
3733 fi
3734
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll(2)" >&5
3736 $as_echo_n "checking for poll(2)... " >&6; }
3737 if ${ax_cv_have_poll+:} false; then :
3738 $as_echo_n "(cached) " >&6
3739 else
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3742 #include <poll.h>
3743 int
3744 main ()
3745 {
3746 int rc; rc = poll((struct pollfd *)(0), 0, 0);
3747 ;
3748 return 0;
3749 }
3750 _ACEOF
3751 if ac_fn_c_try_link "$LINENO"; then :
3752 ax_cv_have_poll=yes
3753 else
3754 ax_cv_have_poll=no
3755 fi
3756 rm -f core conftest.err conftest.$ac_objext \
3757 conftest$ac_exeext conftest.$ac_ext
3758 fi
3759
3760 if test "${ax_cv_have_poll}" = "yes"; then :
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3762 $as_echo "yes" >&6; }
3763
3764 $as_echo "#define HAVE_POLL 1" >>confdefs.h
3765
3766 else
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768 $as_echo "no" >&6; }
3769
3770 fi
3771
3772 for ac_func in kqueue kevent
3773 do :
3774 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3775 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3776 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
3777 cat >>confdefs.h <<_ACEOF
3778 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3779 _ACEOF
3780 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
3781
3782 fi
3783 done
3784
3785
3786 ac_ext=c
3787 ac_cpp='$CPP $CPPFLAGS'
3788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791 if test -n "$ac_tool_prefix"; then
3792 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3793 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3795 $as_echo_n "checking for $ac_word... " >&6; }
3796 if ${ac_cv_prog_CC+:} false; then :
3797 $as_echo_n "(cached) " >&6
3798 else
3799 if test -n "$CC"; then
3800 ac_cv_prog_CC="$CC" # Let the user override the test.
3801 else
3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 for as_dir in $PATH
3804 do
3805 IFS=$as_save_IFS
3806 test -z "$as_dir" && as_dir=.
3807 for ac_exec_ext in '' $ac_executable_extensions; do
3808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3809 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3811 break 2
3812 fi
3813 done
3814 done
3815 IFS=$as_save_IFS
3816
3817 fi
3818 fi
3819 CC=$ac_cv_prog_CC
3820 if test -n "$CC"; then
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3822 $as_echo "$CC" >&6; }
3823 else
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825 $as_echo "no" >&6; }
3826 fi
3827
3828
3829 fi
3830 if test -z "$ac_cv_prog_CC"; then
3831 ac_ct_CC=$CC
3832 # Extract the first word of "gcc", so it can be a program name with args.
3833 set dummy gcc; ac_word=$2
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3835 $as_echo_n "checking for $ac_word... " >&6; }
3836 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3837 $as_echo_n "(cached) " >&6
3838 else
3839 if test -n "$ac_ct_CC"; then
3840 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3841 else
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 for as_dir in $PATH
3844 do
3845 IFS=$as_save_IFS
3846 test -z "$as_dir" && as_dir=.
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3849 ac_cv_prog_ac_ct_CC="gcc"
3850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3851 break 2
3852 fi
3853 done
3854 done
3855 IFS=$as_save_IFS
3856
3857 fi
3858 fi
3859 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3860 if test -n "$ac_ct_CC"; then
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3862 $as_echo "$ac_ct_CC" >&6; }
3863 else
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3865 $as_echo "no" >&6; }
3866 fi
3867
3868 if test "x$ac_ct_CC" = x; then
3869 CC=""
3870 else
3871 case $cross_compiling:$ac_tool_warned in
3872 yes:)
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3875 ac_tool_warned=yes ;;
3876 esac
3877 CC=$ac_ct_CC
3878 fi
3879 else
3880 CC="$ac_cv_prog_CC"
3881 fi
3882
3883 if test -z "$CC"; then
3884 if test -n "$ac_tool_prefix"; then
3885 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3886 set dummy ${ac_tool_prefix}cc; ac_word=$2
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3888 $as_echo_n "checking for $ac_word... " >&6; }
3889 if ${ac_cv_prog_CC+:} false; then :
3890 $as_echo_n "(cached) " >&6
3891 else
3892 if test -n "$CC"; then
3893 ac_cv_prog_CC="$CC" # Let the user override the test.
3894 else
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 for as_dir in $PATH
3897 do
3898 IFS=$as_save_IFS
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902 ac_cv_prog_CC="${ac_tool_prefix}cc"
3903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 break 2
3905 fi
3906 done
3907 done
3908 IFS=$as_save_IFS
3909
3910 fi
3911 fi
3912 CC=$ac_cv_prog_CC
3913 if test -n "$CC"; then
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3915 $as_echo "$CC" >&6; }
3916 else
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3918 $as_echo "no" >&6; }
3919 fi
3920
3921
3922 fi
3923 fi
3924 if test -z "$CC"; then
3925 # Extract the first word of "cc", so it can be a program name with args.
3926 set dummy cc; ac_word=$2
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3928 $as_echo_n "checking for $ac_word... " >&6; }
3929 if ${ac_cv_prog_CC+:} false; then :
3930 $as_echo_n "(cached) " >&6
3931 else
3932 if test -n "$CC"; then
3933 ac_cv_prog_CC="$CC" # Let the user override the test.
3934 else
3935 ac_prog_rejected=no
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 for as_dir in $PATH
3938 do
3939 IFS=$as_save_IFS
3940 test -z "$as_dir" && as_dir=.
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3943 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3944 ac_prog_rejected=yes
3945 continue
3946 fi
3947 ac_cv_prog_CC="cc"
3948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3949 break 2
3950 fi
3951 done
3952 done
3953 IFS=$as_save_IFS
3954
3955 if test $ac_prog_rejected = yes; then
3956 # We found a bogon in the path, so make sure we never use it.
3957 set dummy $ac_cv_prog_CC
3958 shift
3959 if test $# != 0; then
3960 # We chose a different compiler from the bogus one.
3961 # However, it has the same basename, so the bogon will be chosen
3962 # first if we set CC to just the basename; use the full file name.
3963 shift
3964 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3965 fi
3966 fi
3967 fi
3968 fi
3969 CC=$ac_cv_prog_CC
3970 if test -n "$CC"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3972 $as_echo "$CC" >&6; }
3973 else
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975 $as_echo "no" >&6; }
3976 fi
3977
3978
3979 fi
3980 if test -z "$CC"; then
3981 if test -n "$ac_tool_prefix"; then
3982 for ac_prog in cl.exe
3983 do
3984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987 $as_echo_n "checking for $ac_word... " >&6; }
3988 if ${ac_cv_prog_CC+:} false; then :
3989 $as_echo_n "(cached) " >&6
3990 else
3991 if test -n "$CC"; then
3992 ac_cv_prog_CC="$CC" # Let the user override the test.
3993 else
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 for as_dir in $PATH
3996 do
3997 IFS=$as_save_IFS
3998 test -z "$as_dir" && as_dir=.
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4001 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 break 2
4004 fi
4005 done
4006 done
4007 IFS=$as_save_IFS
4008
4009 fi
4010 fi
4011 CC=$ac_cv_prog_CC
4012 if test -n "$CC"; then
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4014 $as_echo "$CC" >&6; }
4015 else
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 $as_echo "no" >&6; }
4018 fi
4019
4020
4021 test -n "$CC" && break
4022 done
4023 fi
4024 if test -z "$CC"; then
4025 ac_ct_CC=$CC
4026 for ac_prog in cl.exe
4027 do
4028 # Extract the first word of "$ac_prog", so it can be a program name with args.
4029 set dummy $ac_prog; ac_word=$2
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4031 $as_echo_n "checking for $ac_word... " >&6; }
4032 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4033 $as_echo_n "(cached) " >&6
4034 else
4035 if test -n "$ac_ct_CC"; then
4036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4037 else
4038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039 for as_dir in $PATH
4040 do
4041 IFS=$as_save_IFS
4042 test -z "$as_dir" && as_dir=.
4043 for ac_exec_ext in '' $ac_executable_extensions; do
4044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4045 ac_cv_prog_ac_ct_CC="$ac_prog"
4046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4047 break 2
4048 fi
4049 done
4050 done
4051 IFS=$as_save_IFS
4052
4053 fi
4054 fi
4055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4056 if test -n "$ac_ct_CC"; then
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4058 $as_echo "$ac_ct_CC" >&6; }
4059 else
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061 $as_echo "no" >&6; }
4062 fi
4063
4064
4065 test -n "$ac_ct_CC" && break
4066 done
4067
4068 if test "x$ac_ct_CC" = x; then
4069 CC=""
4070 else
4071 case $cross_compiling:$ac_tool_warned in
4072 yes:)
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4075 ac_tool_warned=yes ;;
4076 esac
4077 CC=$ac_ct_CC
4078 fi
4079 fi
4080
4081 fi
4082
4083
4084 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4086 as_fn_error $? "no acceptable C compiler found in \$PATH
4087 See \`config.log' for more details" "$LINENO" 5; }
4088
4089 # Provide some information about the compiler.
4090 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4091 set X $ac_compile
4092 ac_compiler=$2
4093 for ac_option in --version -v -V -qversion; do
4094 { { ac_try="$ac_compiler $ac_option >&5"
4095 case "(($ac_try" in
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4098 esac
4099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4100 $as_echo "$ac_try_echo"; } >&5
4101 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4102 ac_status=$?
4103 if test -s conftest.err; then
4104 sed '10a\
4105 ... rest of stderr output deleted ...
4106 10q' conftest.err >conftest.er1
4107 cat conftest.er1 >&5
4108 fi
4109 rm -f conftest.er1 conftest.err
4110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4111 test $ac_status = 0; }
4112 done
4113
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4115 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4116 if ${ac_cv_c_compiler_gnu+:} false; then :
4117 $as_echo_n "(cached) " >&6
4118 else
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4121
4122 int
4123 main ()
4124 {
4125 #ifndef __GNUC__
4126 choke me
4127 #endif
4128
4129 ;
4130 return 0;
4131 }
4132 _ACEOF
4133 if ac_fn_c_try_compile "$LINENO"; then :
4134 ac_compiler_gnu=yes
4135 else
4136 ac_compiler_gnu=no
4137 fi
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4140
4141 fi
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4143 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4144 if test $ac_compiler_gnu = yes; then
4145 GCC=yes
4146 else
4147 GCC=
4148 fi
4149 ac_test_CFLAGS=${CFLAGS+set}
4150 ac_save_CFLAGS=$CFLAGS
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4152 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4153 if ${ac_cv_prog_cc_g+:} false; then :
4154 $as_echo_n "(cached) " >&6
4155 else
4156 ac_save_c_werror_flag=$ac_c_werror_flag
4157 ac_c_werror_flag=yes
4158 ac_cv_prog_cc_g=no
4159 CFLAGS="-g"
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4162
4163 int
4164 main ()
4165 {
4166
4167 ;
4168 return 0;
4169 }
4170 _ACEOF
4171 if ac_fn_c_try_compile "$LINENO"; then :
4172 ac_cv_prog_cc_g=yes
4173 else
4174 CFLAGS=""
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4177
4178 int
4179 main ()
4180 {
4181
4182 ;
4183 return 0;
4184 }
4185 _ACEOF
4186 if ac_fn_c_try_compile "$LINENO"; then :
4187
4188 else
4189 ac_c_werror_flag=$ac_save_c_werror_flag
4190 CFLAGS="-g"
4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192 /* end confdefs.h. */
4193
4194 int
4195 main ()
4196 {
4197
4198 ;
4199 return 0;
4200 }
4201 _ACEOF
4202 if ac_fn_c_try_compile "$LINENO"; then :
4203 ac_cv_prog_cc_g=yes
4204 fi
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206 fi
4207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208 fi
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210 ac_c_werror_flag=$ac_save_c_werror_flag
4211 fi
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4213 $as_echo "$ac_cv_prog_cc_g" >&6; }
4214 if test "$ac_test_CFLAGS" = set; then
4215 CFLAGS=$ac_save_CFLAGS
4216 elif test $ac_cv_prog_cc_g = yes; then
4217 if test "$GCC" = yes; then
4218 CFLAGS="-g -O2"
4219 else
4220 CFLAGS="-g"
4221 fi
4222 else
4223 if test "$GCC" = yes; then
4224 CFLAGS="-O2"
4225 else
4226 CFLAGS=
4227 fi
4228 fi
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4230 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4231 if ${ac_cv_prog_cc_c89+:} false; then :
4232 $as_echo_n "(cached) " >&6
4233 else
4234 ac_cv_prog_cc_c89=no
4235 ac_save_CC=$CC
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4238 #include <stdarg.h>
4239 #include <stdio.h>
4240 struct stat;
4241 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4242 struct buf { int x; };
4243 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4244 static char *e (p, i)
4245 char **p;
4246 int i;
4247 {
4248 return p[i];
4249 }
4250 static char *f (char * (*g) (char **, int), char **p, ...)
4251 {
4252 char *s;
4253 va_list v;
4254 va_start (v,p);
4255 s = g (p, va_arg (v,int));
4256 va_end (v);
4257 return s;
4258 }
4259
4260 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4261 function prototypes and stuff, but not '\xHH' hex character constants.
4262 These don't provoke an error unfortunately, instead are silently treated
4263 as 'x'. The following induces an error, until -std is added to get
4264 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4265 array size at least. It's necessary to write '\x00'==0 to get something
4266 that's true only with -std. */
4267 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4268
4269 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4270 inside strings and character constants. */
4271 #define FOO(x) 'x'
4272 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4273
4274 int test (int i, double x);
4275 struct s1 {int (*f) (int a);};
4276 struct s2 {int (*f) (double a);};
4277 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4278 int argc;
4279 char **argv;
4280 int
4281 main ()
4282 {
4283 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4284 ;
4285 return 0;
4286 }
4287 _ACEOF
4288 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4289 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4290 do
4291 CC="$ac_save_CC $ac_arg"
4292 if ac_fn_c_try_compile "$LINENO"; then :
4293 ac_cv_prog_cc_c89=$ac_arg
4294 fi
4295 rm -f core conftest.err conftest.$ac_objext
4296 test "x$ac_cv_prog_cc_c89" != "xno" && break
4297 done
4298 rm -f conftest.$ac_ext
4299 CC=$ac_save_CC
4300
4301 fi
4302 # AC_CACHE_VAL
4303 case "x$ac_cv_prog_cc_c89" in
4304 x)
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4306 $as_echo "none needed" >&6; } ;;
4307 xno)
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4309 $as_echo "unsupported" >&6; } ;;
4310 *)
4311 CC="$CC $ac_cv_prog_cc_c89"
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4313 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4314 esac
4315 if test "x$ac_cv_prog_cc_c89" != xno; then :
4316
4317 fi
4318
4319 ac_ext=c
4320 ac_cpp='$CPP $CPPFLAGS'
4321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4324
4325 if test -n "$GCC"; then
4326 CFLAGS="$CFLAGS -Wall "
4327 fi
4328 if test -n "$ac_tool_prefix"; then
4329 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4330 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4332 $as_echo_n "checking for $ac_word... " >&6; }
4333 if ${ac_cv_prog_RANLIB+:} false; then :
4334 $as_echo_n "(cached) " >&6
4335 else
4336 if test -n "$RANLIB"; then
4337 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4338 else
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4341 do
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4346 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 break 2
4349 fi
4350 done
4351 done
4352 IFS=$as_save_IFS
4353
4354 fi
4355 fi
4356 RANLIB=$ac_cv_prog_RANLIB
4357 if test -n "$RANLIB"; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4359 $as_echo "$RANLIB" >&6; }
4360 else
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362 $as_echo "no" >&6; }
4363 fi
4364
4365
4366 fi
4367 if test -z "$ac_cv_prog_RANLIB"; then
4368 ac_ct_RANLIB=$RANLIB
4369 # Extract the first word of "ranlib", so it can be a program name with args.
4370 set dummy ranlib; ac_word=$2
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4372 $as_echo_n "checking for $ac_word... " >&6; }
4373 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4374 $as_echo_n "(cached) " >&6
4375 else
4376 if test -n "$ac_ct_RANLIB"; then
4377 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4378 else
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 for as_dir in $PATH
4381 do
4382 IFS=$as_save_IFS
4383 test -z "$as_dir" && as_dir=.
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4386 ac_cv_prog_ac_ct_RANLIB="ranlib"
4387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4388 break 2
4389 fi
4390 done
4391 done
4392 IFS=$as_save_IFS
4393
4394 fi
4395 fi
4396 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4397 if test -n "$ac_ct_RANLIB"; then
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4399 $as_echo "$ac_ct_RANLIB" >&6; }
4400 else
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4402 $as_echo "no" >&6; }
4403 fi
4404
4405 if test "x$ac_ct_RANLIB" = x; then
4406 RANLIB=":"
4407 else
4408 case $cross_compiling:$ac_tool_warned in
4409 yes:)
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4412 ac_tool_warned=yes ;;
4413 esac
4414 RANLIB=$ac_ct_RANLIB
4415 fi
4416 else
4417 RANLIB="$ac_cv_prog_RANLIB"
4418 fi
4419
4420
4421
4422 ac_fn_c_check_func "$LINENO" "gethostent" "ac_cv_func_gethostent"
4423 if test "x$ac_cv_func_gethostent" = xyes; then :
4424
4425 else
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostent in -lnsl" >&5
4427 $as_echo_n "checking for gethostent in -lnsl... " >&6; }
4428 if ${ac_cv_lib_nsl_gethostent+:} false; then :
4429 $as_echo_n "(cached) " >&6
4430 else
4431 ac_check_lib_save_LIBS=$LIBS
4432 LIBS="-lnsl $LIBS"
4433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434 /* end confdefs.h. */
4435
4436 /* Override any GCC internal prototype to avoid an error.
4437 Use char because int might match the return type of a GCC
4438 builtin and then its argument prototype would still apply. */
4439 #ifdef __cplusplus
4440 extern "C"
4441 #endif
4442 char gethostent ();
4443 int
4444 main ()
4445 {
4446 return gethostent ();
4447 ;
4448 return 0;
4449 }
4450 _ACEOF
4451 if ac_fn_c_try_link "$LINENO"; then :
4452 ac_cv_lib_nsl_gethostent=yes
4453 else
4454 ac_cv_lib_nsl_gethostent=no
4455 fi
4456 rm -f core conftest.err conftest.$ac_objext \
4457 conftest$ac_exeext conftest.$ac_ext
4458 LIBS=$ac_check_lib_save_LIBS
4459 fi
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostent" >&5
4461 $as_echo "$ac_cv_lib_nsl_gethostent" >&6; }
4462 if test "x$ac_cv_lib_nsl_gethostent" = xyes; then :
4463 cat >>confdefs.h <<_ACEOF
4464 #define HAVE_LIBNSL 1
4465 _ACEOF
4466
4467 LIBS="-lnsl $LIBS"
4468
4469 fi
4470
4471 fi
4472
4473 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
4474 if test "x$ac_cv_func_setsockopt" = xyes; then :
4475
4476 else
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
4478 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
4479 if ${ac_cv_lib_socket_setsockopt+:} false; then :
4480 $as_echo_n "(cached) " >&6
4481 else
4482 ac_check_lib_save_LIBS=$LIBS
4483 LIBS="-lsocket $LIBS"
4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h. */
4486
4487 /* Override any GCC internal prototype to avoid an error.
4488 Use char because int might match the return type of a GCC
4489 builtin and then its argument prototype would still apply. */
4490 #ifdef __cplusplus
4491 extern "C"
4492 #endif
4493 char setsockopt ();
4494 int
4495 main ()
4496 {
4497 return setsockopt ();
4498 ;
4499 return 0;
4500 }
4501 _ACEOF
4502 if ac_fn_c_try_link "$LINENO"; then :
4503 ac_cv_lib_socket_setsockopt=yes
4504 else
4505 ac_cv_lib_socket_setsockopt=no
4506 fi
4507 rm -f core conftest.err conftest.$ac_objext \
4508 conftest$ac_exeext conftest.$ac_ext
4509 LIBS=$ac_check_lib_save_LIBS
4510 fi
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
4512 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
4513 if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
4514 cat >>confdefs.h <<_ACEOF
4515 #define HAVE_LIBSOCKET 1
4516 _ACEOF
4517
4518 LIBS="-lsocket $LIBS"
4519
4520 fi
4521
4522 fi
4523
4524
4525 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
4526 if test "x$ac_cv_func_nanosleep" = xyes; then :
4527
4528 else
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5
4530 $as_echo_n "checking for nanosleep in -lposix4... " >&6; }
4531 if ${ac_cv_lib_posix4_nanosleep+:} false; then :
4532 $as_echo_n "(cached) " >&6
4533 else
4534 ac_check_lib_save_LIBS=$LIBS
4535 LIBS="-lposix4 $LIBS"
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4538
4539 /* Override any GCC internal prototype to avoid an error.
4540 Use char because int might match the return type of a GCC
4541 builtin and then its argument prototype would still apply. */
4542 #ifdef __cplusplus
4543 extern "C"
4544 #endif
4545 char nanosleep ();
4546 int
4547 main ()
4548 {
4549 return nanosleep ();
4550 ;
4551 return 0;
4552 }
4553 _ACEOF
4554 if ac_fn_c_try_link "$LINENO"; then :
4555 ac_cv_lib_posix4_nanosleep=yes
4556 else
4557 ac_cv_lib_posix4_nanosleep=no
4558 fi
4559 rm -f core conftest.err conftest.$ac_objext \
4560 conftest$ac_exeext conftest.$ac_ext
4561 LIBS=$ac_check_lib_save_LIBS
4562 fi
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5
4564 $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
4565 if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then :
4566 cat >>confdefs.h <<_ACEOF
4567 #define HAVE_LIBPOSIX4 1
4568 _ACEOF
4569
4570 LIBS="-lposix4 $LIBS"
4571
4572 fi
4573
4574 fi
4575
4576
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4578 $as_echo_n "checking for ANSI C header files... " >&6; }
4579 if ${ac_cv_header_stdc+:} false; then :
4580 $as_echo_n "(cached) " >&6
4581 else
4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h. */
4584 #include <stdlib.h>
4585 #include <stdarg.h>
4586 #include <string.h>
4587 #include <float.h>
4588
4589 int
4590 main ()
4591 {
4592
4593 ;
4594 return 0;
4595 }
4596 _ACEOF
4597 if ac_fn_c_try_compile "$LINENO"; then :
4598 ac_cv_header_stdc=yes
4599 else
4600 ac_cv_header_stdc=no
4601 fi
4602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603
4604 if test $ac_cv_header_stdc = yes; then
4605 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4608 #include <string.h>
4609
4610 _ACEOF
4611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4612 $EGREP "memchr" >/dev/null 2>&1; then :
4613
4614 else
4615 ac_cv_header_stdc=no
4616 fi
4617 rm -f conftest*
4618
4619 fi
4620
4621 if test $ac_cv_header_stdc = yes; then
4622 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624 /* end confdefs.h. */
4625 #include <stdlib.h>
4626
4627 _ACEOF
4628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4629 $EGREP "free" >/dev/null 2>&1; then :
4630
4631 else
4632 ac_cv_header_stdc=no
4633 fi
4634 rm -f conftest*
4635
4636 fi
4637
4638 if test $ac_cv_header_stdc = yes; then
4639 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4640 if test "$cross_compiling" = yes; then :
4641 :
4642 else
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4645 #include <ctype.h>
4646 #include <stdlib.h>
4647 #if ((' ' & 0x0FF) == 0x020)
4648 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4649 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4650 #else
4651 # define ISLOWER(c) \
4652 (('a' <= (c) && (c) <= 'i') \
4653 || ('j' <= (c) && (c) <= 'r') \
4654 || ('s' <= (c) && (c) <= 'z'))
4655 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4656 #endif
4657
4658 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4659 int
4660 main ()
4661 {
4662 int i;
4663 for (i = 0; i < 256; i++)
4664 if (XOR (islower (i), ISLOWER (i))
4665 || toupper (i) != TOUPPER (i))
4666 return 2;
4667 return 0;
4668 }
4669 _ACEOF
4670 if ac_fn_c_try_run "$LINENO"; then :
4671
4672 else
4673 ac_cv_header_stdc=no
4674 fi
4675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4676 conftest.$ac_objext conftest.beam conftest.$ac_ext
4677 fi
4678
4679 fi
4680 fi
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4682 $as_echo "$ac_cv_header_stdc" >&6; }
4683 if test $ac_cv_header_stdc = yes; then
4684
4685 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4686
4687 fi
4688
4689 for ac_header in net/bpf.h sys/ioctl.h sys/un.h netdb.h
4690 do :
4691 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4692 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4693 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4694 cat >>confdefs.h <<_ACEOF
4695 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4696 _ACEOF
4697
4698 fi
4699
4700 done
4701
4702
4703 # We test whether they specified openssl desires explicitly
4704 use_openssl="yes"
4705 specialssldir=""
4706
4707 # Check whether --with-openssl was given.
4708 if test "${with_openssl+set}" = set; then :
4709 withval=$with_openssl; case "$with_openssl" in
4710 yes)
4711 ;;
4712 no)
4713 use_openssl="no"
4714 ;;
4715 *)
4716 specialssldir="$with_openssl"
4717 CPPFLAGS="$CPPFLAGS -I$with_openssl/include"
4718 LDFLAGS="$LDFLAGS -L$with_openssl/lib"
4719 ;;
4720 esac
4721
4722 fi
4723
4724
4725 # If they didn't specify it, we try to find it
4726 if test "$use_openssl" = "yes" -a -z "$specialssldir"; then
4727 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
4728 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
4729
4730 else
4731 use_openssl="no"
4732 if test "$with_openssl" = "yes"; then
4733 as_fn_error $? "OpenSSL was explicitly requested but openssl/ssl.h was not found. Try the --with-openssl=DIR argument to give the location of OpenSSL or run configure with --without-openssl." "$LINENO" 5
4734 fi
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed to find openssl/ssl.h so OpenSSL will not be used. If it is installed you can try the --with-openssl=DIR argument" >&5
4736 $as_echo "$as_me: WARNING: Failed to find openssl/ssl.h so OpenSSL will not be used. If it is installed you can try the --with-openssl=DIR argument" >&2;}
4737
4738 fi
4739
4740
4741
4742 # use_openssl="yes" given explicitly in next 2 rules to avoid adding lib to $LIBS
4743 if test "$use_openssl" = "yes"; then
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIO_int_ctrl in -lcrypto" >&5
4745 $as_echo_n "checking for BIO_int_ctrl in -lcrypto... " >&6; }
4746 if ${ac_cv_lib_crypto_BIO_int_ctrl+:} false; then :
4747 $as_echo_n "(cached) " >&6
4748 else
4749 ac_check_lib_save_LIBS=$LIBS
4750 LIBS="-lcrypto $LIBS"
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h. */
4753
4754 /* Override any GCC internal prototype to avoid an error.
4755 Use char because int might match the return type of a GCC
4756 builtin and then its argument prototype would still apply. */
4757 #ifdef __cplusplus
4758 extern "C"
4759 #endif
4760 char BIO_int_ctrl ();
4761 int
4762 main ()
4763 {
4764 return BIO_int_ctrl ();
4765 ;
4766 return 0;
4767 }
4768 _ACEOF
4769 if ac_fn_c_try_link "$LINENO"; then :
4770 ac_cv_lib_crypto_BIO_int_ctrl=yes
4771 else
4772 ac_cv_lib_crypto_BIO_int_ctrl=no
4773 fi
4774 rm -f core conftest.err conftest.$ac_objext \
4775 conftest$ac_exeext conftest.$ac_ext
4776 LIBS=$ac_check_lib_save_LIBS
4777 fi
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BIO_int_ctrl" >&5
4779 $as_echo "$ac_cv_lib_crypto_BIO_int_ctrl" >&6; }
4780 if test "x$ac_cv_lib_crypto_BIO_int_ctrl" = xyes; then :
4781 use_openssl="yes"
4782 else
4783 use_openssl="no"
4784 if test "$with_openssl" = "yes"; then
4785 as_fn_error $? "OpenSSL was explicitly requested but libcrypto was not found. Try the --with-openssl=DIR argument to give the location of OpenSSL or run configure with --without-openssl." "$LINENO" 5
4786 fi
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed to find libcrypto so OpenSSL will not be used. If it is installed you can try the --with-openssl=DIR argument" >&5
4788 $as_echo "$as_me: WARNING: Failed to find libcrypto so OpenSSL will not be used. If it is installed you can try the --with-openssl=DIR argument" >&2;}
4789
4790 fi
4791
4792 fi
4793
4794 if test "$use_openssl" = "yes"; then
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
4796 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
4797 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
4798 $as_echo_n "(cached) " >&6
4799 else
4800 ac_check_lib_save_LIBS=$LIBS
4801 LIBS="-lssl -lcrypto $LIBS"
4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4804
4805 /* Override any GCC internal prototype to avoid an error.
4806 Use char because int might match the return type of a GCC
4807 builtin and then its argument prototype would still apply. */
4808 #ifdef __cplusplus
4809 extern "C"
4810 #endif
4811 char SSL_new ();
4812 int
4813 main ()
4814 {
4815 return SSL_new ();
4816 ;
4817 return 0;
4818 }
4819 _ACEOF
4820 if ac_fn_c_try_link "$LINENO"; then :
4821 ac_cv_lib_ssl_SSL_new=yes
4822 else
4823 ac_cv_lib_ssl_SSL_new=no
4824 fi
4825 rm -f core conftest.err conftest.$ac_objext \
4826 conftest$ac_exeext conftest.$ac_ext
4827 LIBS=$ac_check_lib_save_LIBS
4828 fi
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
4830 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
4831 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
4832 use_openssl="yes"
4833 else
4834 use_openssl="no"
4835 if test "$with_openssl" = "yes"; then
4836 as_fn_error $? "OpenSSL was explicitly requested but libssl was not found. Try the --with-openssl=DIR argument to give the location of OpenSSL or run configure with --without-openssl." "$LINENO" 5
4837 fi
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed to find libssl so OpenSSL will not be used. If it is installed you can try the --with-openssl=DIR argument" >&5
4839 $as_echo "$as_me: WARNING: Failed to find libssl so OpenSSL will not be used. If it is installed you can try the --with-openssl=DIR argument" >&2;}
4840 fi
4841
4842 fi
4843 fi
4844
4845 # OpenSSL requires dlopen on some platforms
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4847 $as_echo_n "checking for library containing dlopen... " >&6; }
4848 if ${ac_cv_search_dlopen+:} false; then :
4849 $as_echo_n "(cached) " >&6
4850 else
4851 ac_func_search_save_LIBS=$LIBS
4852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853 /* end confdefs.h. */
4854
4855 /* Override any GCC internal prototype to avoid an error.
4856 Use char because int might match the return type of a GCC
4857 builtin and then its argument prototype would still apply. */
4858 #ifdef __cplusplus
4859 extern "C"
4860 #endif
4861 char dlopen ();
4862 int
4863 main ()
4864 {
4865 return dlopen ();
4866 ;
4867 return 0;
4868 }
4869 _ACEOF
4870 for ac_lib in '' dl; do
4871 if test -z "$ac_lib"; then
4872 ac_res="none required"
4873 else
4874 ac_res=-l$ac_lib
4875 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4876 fi
4877 if ac_fn_c_try_link "$LINENO"; then :
4878 ac_cv_search_dlopen=$ac_res
4879 fi
4880 rm -f core conftest.err conftest.$ac_objext \
4881 conftest$ac_exeext
4882 if ${ac_cv_search_dlopen+:} false; then :
4883 break
4884 fi
4885 done
4886 if ${ac_cv_search_dlopen+:} false; then :
4887
4888 else
4889 ac_cv_search_dlopen=no
4890 fi
4891 rm conftest.$ac_ext
4892 LIBS=$ac_func_search_save_LIBS
4893 fi
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4895 $as_echo "$ac_cv_search_dlopen" >&6; }
4896 ac_res=$ac_cv_search_dlopen
4897 if test "$ac_res" != no; then :
4898 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4899
4900 fi
4901
4902
4903 OPENSSL_LIBS=
4904 if test "$use_openssl" = "yes"; then
4905
4906 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
4907
4908 OPENSSL_LIBS="-lssl -lcrypto"
4909 LIBS_TMP="$LIBS"
4910 LIBS="$OPENSSL_LIBS $LIBS"
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_set_tlsext_host_name" >&5
4912 $as_echo_n "checking for SSL_set_tlsext_host_name... " >&6; }
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h. */
4915 #include <openssl/ssl.h>
4916 int
4917 main ()
4918 {
4919 SSL_set_tlsext_host_name(NULL, NULL)
4920 ;
4921 return 0;
4922 }
4923 _ACEOF
4924 if ac_fn_c_try_link "$LINENO"; then :
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4926 $as_echo "yes" >&6; };
4927 $as_echo "#define HAVE_SSL_SET_TLSEXT_HOST_NAME 1" >>confdefs.h
4928
4929 else
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4931 $as_echo "no" >&6; }
4932 fi
4933 rm -f core conftest.err conftest.$ac_objext \
4934 conftest$ac_exeext conftest.$ac_ext
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTLS_client_method" >&5
4936 $as_echo_n "checking for DTLS_client_method... " >&6; }
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4939 #include <openssl/ssl.h>
4940 int
4941 main ()
4942 {
4943 DTLS_client_method()
4944 ;
4945 return 0;
4946 }
4947 _ACEOF
4948 if ac_fn_c_try_link "$LINENO"; then :
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4950 $as_echo "yes" >&6; };
4951 $as_echo "#define HAVE_DTLS_CLIENT_METHOD 1" >>confdefs.h
4952
4953 else
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4956 fi
4957 rm -f core conftest.err conftest.$ac_objext \
4958 conftest$ac_exeext conftest.$ac_ext
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_set_alpn_protos" >&5
4960 $as_echo_n "checking for SSL_set_alpn_protos... " >&6; }
4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h. */
4963 #include <openssl/ssl.h>
4964 int
4965 main ()
4966 {
4967 SSL_set_alpn_protos(NULL, NULL, 0)
4968 ;
4969 return 0;
4970 }
4971 _ACEOF
4972 if ac_fn_c_try_link "$LINENO"; then :
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4974 $as_echo "yes" >&6; };
4975 $as_echo "#define HAVE_ALPN_SUPPORT 1" >>confdefs.h
4976
4977 else
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979 $as_echo "no" >&6; }
4980 fi
4981 rm -f core conftest.err conftest.$ac_objext \
4982 conftest$ac_exeext conftest.$ac_ext
4983 LIBS="$LIBS_TMP"
4984
4985 fi
4986
4987
4988
4989
4990
4991 # Check whether --with-libnbase was given.
4992 if test "${with_libnbase+set}" = set; then :
4993 withval=$with_libnbase; case "$with_libnbase" in
4994 yes)
4995 ;;
4996 *)
4997 NBASEDIR="$with_libnbase"
4998 ;;
4999 esac
5000 else
5001 NBASEDIR="${top_nmap_srcdir}/nbase"
5002
5003 fi
5004
5005
5006 NSOCKTESTDIR="../tests"
5007
5008 LDFLAGS="$LDFLAGS -L$NBASEDIR"
5009 CPPFLAGS="$CPPFLAGS -I$NBASEDIR"
5010 LIBNBASE_LIBS="$LIBS -lnbase"
5011
5012
5013
5014
5015
5016
5017
5018 cat >confcache <<\_ACEOF
5019 # This file is a shell script that caches the results of configure
5020 # tests run on this system so they can be shared between configure
5021 # scripts and configure runs, see configure's option --config-cache.
5022 # It is not useful on other systems. If it contains results you don't
5023 # want to keep, you may remove or edit it.
5024 #
5025 # config.status only pays attention to the cache file if you give it
5026 # the --recheck option to rerun configure.
5027 #
5028 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5029 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5030 # following values.
5031
5032 _ACEOF
5033
5034 # The following way of writing the cache mishandles newlines in values,
5035 # but we know of no workaround that is simple, portable, and efficient.
5036 # So, we kill variables containing newlines.
5037 # Ultrix sh set writes to stderr and can't be redirected directly,
5038 # and sets the high bit in the cache file unless we assign to the vars.
5039 (
5040 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5041 eval ac_val=\$$ac_var
5042 case $ac_val in #(
5043 *${as_nl}*)
5044 case $ac_var in #(
5045 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5046 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5047 esac
5048 case $ac_var in #(
5049 _ | IFS | as_nl) ;; #(
5050 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5051 *) { eval $ac_var=; unset $ac_var;} ;;
5052 esac ;;
5053 esac
5054 done
5055
5056 (set) 2>&1 |
5057 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5058 *${as_nl}ac_space=\ *)
5059 # `set' does not quote correctly, so add quotes: double-quote
5060 # substitution turns \\\\ into \\, and sed turns \\ into \.
5061 sed -n \
5062 "s/'/'\\\\''/g;
5063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5064 ;; #(
5065 *)
5066 # `set' quotes correctly as required by POSIX, so do not add quotes.
5067 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5068 ;;
5069 esac |
5070 sort
5071 ) |
5072 sed '
5073 /^ac_cv_env_/b end
5074 t clear
5075 :clear
5076 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5077 t end
5078 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5079 :end' >>confcache
5080 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5081 if test -w "$cache_file"; then
5082 if test "x$cache_file" != "x/dev/null"; then
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5084 $as_echo "$as_me: updating cache $cache_file" >&6;}
5085 if test ! -f "$cache_file" || test -h "$cache_file"; then
5086 cat confcache >"$cache_file"
5087 else
5088 case $cache_file in #(
5089 */* | ?:*)
5090 mv -f confcache "$cache_file"$$ &&
5091 mv -f "$cache_file"$$ "$cache_file" ;; #(
5092 *)
5093 mv -f confcache "$cache_file" ;;
5094 esac
5095 fi
5096 fi
5097 else
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5099 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5100 fi
5101 fi
5102 rm -f confcache
5103
5104 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5105 # Let make expand exec_prefix.
5106 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5107
5108 DEFS=-DHAVE_CONFIG_H
5109
5110 ac_libobjs=
5111 ac_ltlibobjs=
5112 U=
5113 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5114 # 1. Remove the extension, and $U if already installed.
5115 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5116 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5117 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5118 # will be set to the directory where LIBOBJS objects are built.
5119 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5120 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5121 done
5122 LIBOBJS=$ac_libobjs
5123
5124 LTLIBOBJS=$ac_ltlibobjs
5125
5126
5127
5128 : "${CONFIG_STATUS=./config.status}"
5129 ac_write_fail=0
5130 ac_clean_files_save=$ac_clean_files
5131 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5133 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5134 as_write_fail=0
5135 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5136 #! $SHELL
5137 # Generated by $as_me.
5138 # Run this file to recreate the current configuration.
5139 # Compiler output produced by configure, useful for debugging
5140 # configure, is in config.log if it exists.
5141
5142 debug=false
5143 ac_cs_recheck=false
5144 ac_cs_silent=false
5145
5146 SHELL=\${CONFIG_SHELL-$SHELL}
5147 export SHELL
5148 _ASEOF
5149 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5150 ## -------------------- ##
5151 ## M4sh Initialization. ##
5152 ## -------------------- ##
5153
5154 # Be more Bourne compatible
5155 DUALCASE=1; export DUALCASE # for MKS sh
5156 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5157 emulate sh
5158 NULLCMD=:
5159 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5160 # is contrary to our usage. Disable this feature.
5161 alias -g '${1+"$@"}'='"$@"'
5162 setopt NO_GLOB_SUBST
5163 else
5164 case `(set -o) 2>/dev/null` in #(
5165 *posix*) :
5166 set -o posix ;; #(
5167 *) :
5168 ;;
5169 esac
5170 fi
5171
5172
5173 as_nl='
5174 '
5175 export as_nl
5176 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5177 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5178 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5179 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5180 # Prefer a ksh shell builtin over an external printf program on Solaris,
5181 # but without wasting forks for bash or zsh.
5182 if test -z "$BASH_VERSION$ZSH_VERSION" \
5183 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5184 as_echo='print -r --'
5185 as_echo_n='print -rn --'
5186 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5187 as_echo='printf %s\n'
5188 as_echo_n='printf %s'
5189 else
5190 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5191 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5192 as_echo_n='/usr/ucb/echo -n'
5193 else
5194 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5195 as_echo_n_body='eval
5196 arg=$1;
5197 case $arg in #(
5198 *"$as_nl"*)
5199 expr "X$arg" : "X\\(.*\\)$as_nl";
5200 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5201 esac;
5202 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5203 '
5204 export as_echo_n_body
5205 as_echo_n='sh -c $as_echo_n_body as_echo'
5206 fi
5207 export as_echo_body
5208 as_echo='sh -c $as_echo_body as_echo'
5209 fi
5210
5211 # The user is always right.
5212 if test "${PATH_SEPARATOR+set}" != set; then
5213 PATH_SEPARATOR=:
5214 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5215 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5216 PATH_SEPARATOR=';'
5217 }
5218 fi
5219
5220
5221 # IFS
5222 # We need space, tab and new line, in precisely that order. Quoting is
5223 # there to prevent editors from complaining about space-tab.
5224 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5225 # splitting by setting IFS to empty value.)
5226 IFS=" "" $as_nl"
5227
5228 # Find who we are. Look in the path if we contain no directory separator.
5229 as_myself=
5230 case $0 in #((
5231 *[\\/]* ) as_myself=$0 ;;
5232 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH
5234 do
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5238 done
5239 IFS=$as_save_IFS
5240
5241 ;;
5242 esac
5243 # We did not find ourselves, most probably we were run as `sh COMMAND'
5244 # in which case we are not to be found in the path.
5245 if test "x$as_myself" = x; then
5246 as_myself=$0
5247 fi
5248 if test ! -f "$as_myself"; then
5249 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5250 exit 1
5251 fi
5252
5253 # Unset variables that we do not need and which cause bugs (e.g. in
5254 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5255 # suppresses any "Segmentation fault" message there. '((' could
5256 # trigger a bug in pdksh 5.2.14.
5257 for as_var in BASH_ENV ENV MAIL MAILPATH
5258 do eval test x\${$as_var+set} = xset \
5259 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5260 done
5261 PS1='$ '
5262 PS2='> '
5263 PS4='+ '
5264
5265 # NLS nuisances.
5266 LC_ALL=C
5267 export LC_ALL
5268 LANGUAGE=C
5269 export LANGUAGE
5270
5271 # CDPATH.
5272 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5273
5274
5275 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5276 # ----------------------------------------
5277 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5278 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5279 # script with STATUS, using 1 if that was 0.
5280 as_fn_error ()
5281 {
5282 as_status=$1; test $as_status -eq 0 && as_status=1
5283 if test "$4"; then
5284 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5285 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5286 fi
5287 $as_echo "$as_me: error: $2" >&2
5288 as_fn_exit $as_status
5289 } # as_fn_error
5290
5291
5292 # as_fn_set_status STATUS
5293 # -----------------------
5294 # Set $? to STATUS, without forking.
5295 as_fn_set_status ()
5296 {
5297 return $1
5298 } # as_fn_set_status
5299
5300 # as_fn_exit STATUS
5301 # -----------------
5302 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5303 as_fn_exit ()
5304 {
5305 set +e
5306 as_fn_set_status $1
5307 exit $1
5308 } # as_fn_exit
5309
5310 # as_fn_unset VAR
5311 # ---------------
5312 # Portably unset VAR.
5313 as_fn_unset ()
5314 {
5315 { eval $1=; unset $1;}
5316 }
5317 as_unset=as_fn_unset
5318 # as_fn_append VAR VALUE
5319 # ----------------------
5320 # Append the text in VALUE to the end of the definition contained in VAR. Take
5321 # advantage of any shell optimizations that allow amortized linear growth over
5322 # repeated appends, instead of the typical quadratic growth present in naive
5323 # implementations.
5324 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5325 eval 'as_fn_append ()
5326 {
5327 eval $1+=\$2
5328 }'
5329 else
5330 as_fn_append ()
5331 {
5332 eval $1=\$$1\$2
5333 }
5334 fi # as_fn_append
5335
5336 # as_fn_arith ARG...
5337 # ------------------
5338 # Perform arithmetic evaluation on the ARGs, and store the result in the
5339 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5340 # must be portable across $(()) and expr.
5341 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5342 eval 'as_fn_arith ()
5343 {
5344 as_val=$(( $* ))
5345 }'
5346 else
5347 as_fn_arith ()
5348 {
5349 as_val=`expr "$@" || test $? -eq 1`
5350 }
5351 fi # as_fn_arith
5352
5353
5354 if expr a : '\(a\)' >/dev/null 2>&1 &&
5355 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5356 as_expr=expr
5357 else
5358 as_expr=false
5359 fi
5360
5361 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5362 as_basename=basename
5363 else
5364 as_basename=false
5365 fi
5366
5367 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5368 as_dirname=dirname
5369 else
5370 as_dirname=false
5371 fi
5372
5373 as_me=`$as_basename -- "$0" ||
5374 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5375 X"$0" : 'X\(//\)$' \| \
5376 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5377 $as_echo X/"$0" |
5378 sed '/^.*\/\([^/][^/]*\)\/*$/{
5379 s//\1/
5380 q
5381 }
5382 /^X\/\(\/\/\)$/{
5383 s//\1/
5384 q
5385 }
5386 /^X\/\(\/\).*/{
5387 s//\1/
5388 q
5389 }
5390 s/.*/./; q'`
5391
5392 # Avoid depending upon Character Ranges.
5393 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5394 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5395 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5396 as_cr_digits='0123456789'
5397 as_cr_alnum=$as_cr_Letters$as_cr_digits
5398
5399 ECHO_C= ECHO_N= ECHO_T=
5400 case `echo -n x` in #(((((
5401 -n*)
5402 case `echo 'xy\c'` in
5403 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5404 xy) ECHO_C='\c';;
5405 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5406 ECHO_T=' ';;
5407 esac;;
5408 *)
5409 ECHO_N='-n';;
5410 esac
5411
5412 rm -f conf$$ conf$$.exe conf$$.file
5413 if test -d conf$$.dir; then
5414 rm -f conf$$.dir/conf$$.file
5415 else
5416 rm -f conf$$.dir
5417 mkdir conf$$.dir 2>/dev/null
5418 fi
5419 if (echo >conf$$.file) 2>/dev/null; then
5420 if ln -s conf$$.file conf$$ 2>/dev/null; then
5421 as_ln_s='ln -s'
5422 # ... but there are two gotchas:
5423 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5424 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5425 # In both cases, we have to default to `cp -pR'.
5426 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5427 as_ln_s='cp -pR'
5428 elif ln conf$$.file conf$$ 2>/dev/null; then
5429 as_ln_s=ln
5430 else
5431 as_ln_s='cp -pR'
5432 fi
5433 else
5434 as_ln_s='cp -pR'
5435 fi
5436 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5437 rmdir conf$$.dir 2>/dev/null
5438
5439
5440 # as_fn_mkdir_p
5441 # -------------
5442 # Create "$as_dir" as a directory, including parents if necessary.
5443 as_fn_mkdir_p ()
5444 {
5445
5446 case $as_dir in #(
5447 -*) as_dir=./$as_dir;;
5448 esac
5449 test -d "$as_dir" || eval $as_mkdir_p || {
5450 as_dirs=
5451 while :; do
5452 case $as_dir in #(
5453 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5454 *) as_qdir=$as_dir;;
5455 esac
5456 as_dirs="'$as_qdir' $as_dirs"
5457 as_dir=`$as_dirname -- "$as_dir" ||
5458 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5459 X"$as_dir" : 'X\(//\)[^/]' \| \
5460 X"$as_dir" : 'X\(//\)$' \| \
5461 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5462 $as_echo X"$as_dir" |
5463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5464 s//\1/
5465 q
5466 }
5467 /^X\(\/\/\)[^/].*/{
5468 s//\1/
5469 q
5470 }
5471 /^X\(\/\/\)$/{
5472 s//\1/
5473 q
5474 }
5475 /^X\(\/\).*/{
5476 s//\1/
5477 q
5478 }
5479 s/.*/./; q'`
5480 test -d "$as_dir" && break
5481 done
5482 test -z "$as_dirs" || eval "mkdir $as_dirs"
5483 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5484
5485
5486 } # as_fn_mkdir_p
5487 if mkdir -p . 2>/dev/null; then
5488 as_mkdir_p='mkdir -p "$as_dir"'
5489 else
5490 test -d ./-p && rmdir ./-p
5491 as_mkdir_p=false
5492 fi
5493
5494
5495 # as_fn_executable_p FILE
5496 # -----------------------
5497 # Test if FILE is an executable regular file.
5498 as_fn_executable_p ()
5499 {
5500 test -f "$1" && test -x "$1"
5501 } # as_fn_executable_p
5502 as_test_x='test -x'
5503 as_executable_p=as_fn_executable_p
5504
5505 # Sed expression to map a string onto a valid CPP name.
5506 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5507
5508 # Sed expression to map a string onto a valid variable name.
5509 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5510
5511
5512 exec 6>&1
5513 ## ----------------------------------- ##
5514 ## Main body of $CONFIG_STATUS script. ##
5515 ## ----------------------------------- ##
5516 _ASEOF
5517 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5518
5519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5520 # Save the log message, to keep $0 and so on meaningful, and to
5521 # report actual input values of CONFIG_FILES etc. instead of their
5522 # values after options handling.
5523 ac_log="
5524 This file was extended by $as_me, which was
5525 generated by GNU Autoconf 2.69. Invocation command line was
5526
5527 CONFIG_FILES = $CONFIG_FILES
5528 CONFIG_HEADERS = $CONFIG_HEADERS
5529 CONFIG_LINKS = $CONFIG_LINKS
5530 CONFIG_COMMANDS = $CONFIG_COMMANDS
5531 $ $0 $@
5532
5533 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5534 "
5535
5536 _ACEOF
5537
5538 case $ac_config_files in *"
5539 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5540 esac
5541
5542 case $ac_config_headers in *"
5543 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5544 esac
5545
5546
5547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5548 # Files that config.status was made for.
5549 config_files="$ac_config_files"
5550 config_headers="$ac_config_headers"
5551
5552 _ACEOF
5553
5554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5555 ac_cs_usage="\
5556 \`$as_me' instantiates files and other configuration actions
5557 from templates according to the current configuration. Unless the files
5558 and actions are specified as TAGs, all are instantiated by default.
5559
5560 Usage: $0 [OPTION]... [TAG]...
5561
5562 -h, --help print this help, then exit
5563 -V, --version print version number and configuration settings, then exit
5564 --config print configuration, then exit
5565 -q, --quiet, --silent
5566 do not print progress messages
5567 -d, --debug don't remove temporary files
5568 --recheck update $as_me by reconfiguring in the same conditions
5569 --file=FILE[:TEMPLATE]
5570 instantiate the configuration file FILE
5571 --header=FILE[:TEMPLATE]
5572 instantiate the configuration header FILE
5573
5574 Configuration files:
5575 $config_files
5576
5577 Configuration headers:
5578 $config_headers
5579
5580 Report bugs to the package provider."
5581
5582 _ACEOF
5583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5584 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5585 ac_cs_version="\\
5586 config.status
5587 configured by $0, generated by GNU Autoconf 2.69,
5588 with options \\"\$ac_cs_config\\"
5589
5590 Copyright (C) 2012 Free Software Foundation, Inc.
5591 This config.status script is free software; the Free Software Foundation
5592 gives unlimited permission to copy, distribute and modify it."
5593
5594 ac_pwd='$ac_pwd'
5595 srcdir='$srcdir'
5596 test -n "\$AWK" || AWK=awk
5597 _ACEOF
5598
5599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5600 # The default lists apply if the user does not specify any file.
5601 ac_need_defaults=:
5602 while test $# != 0
5603 do
5604 case $1 in
5605 --*=?*)
5606 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5607 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5608 ac_shift=:
5609 ;;
5610 --*=)
5611 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5612 ac_optarg=
5613 ac_shift=:
5614 ;;
5615 *)
5616 ac_option=$1
5617 ac_optarg=$2
5618 ac_shift=shift
5619 ;;
5620 esac
5621
5622 case $ac_option in
5623 # Handling of the options.
5624 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5625 ac_cs_recheck=: ;;
5626 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5627 $as_echo "$ac_cs_version"; exit ;;
5628 --config | --confi | --conf | --con | --co | --c )
5629 $as_echo "$ac_cs_config"; exit ;;
5630 --debug | --debu | --deb | --de | --d | -d )
5631 debug=: ;;
5632 --file | --fil | --fi | --f )
5633 $ac_shift
5634 case $ac_optarg in
5635 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5636 '') as_fn_error $? "missing file argument" ;;
5637 esac
5638 as_fn_append CONFIG_FILES " '$ac_optarg'"
5639 ac_need_defaults=false;;
5640 --header | --heade | --head | --hea )
5641 $ac_shift
5642 case $ac_optarg in
5643 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5644 esac
5645 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5646 ac_need_defaults=false;;
5647 --he | --h)
5648 # Conflict between --help and --header
5649 as_fn_error $? "ambiguous option: \`$1'
5650 Try \`$0 --help' for more information.";;
5651 --help | --hel | -h )
5652 $as_echo "$ac_cs_usage"; exit ;;
5653 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5654 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5655 ac_cs_silent=: ;;
5656
5657 # This is an error.
5658 -*) as_fn_error $? "unrecognized option: \`$1'
5659 Try \`$0 --help' for more information." ;;
5660
5661 *) as_fn_append ac_config_targets " $1"
5662 ac_need_defaults=false ;;
5663
5664 esac
5665 shift
5666 done
5667
5668 ac_configure_extra_args=
5669
5670 if $ac_cs_silent; then
5671 exec 6>/dev/null
5672 ac_configure_extra_args="$ac_configure_extra_args --silent"
5673 fi
5674
5675 _ACEOF
5676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5677 if \$ac_cs_recheck; then
5678 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5679 shift
5680 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5681 CONFIG_SHELL='$SHELL'
5682 export CONFIG_SHELL
5683 exec "\$@"
5684 fi
5685
5686 _ACEOF
5687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5688 exec 5>>config.log
5689 {
5690 echo
5691 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5692 ## Running $as_me. ##
5693 _ASBOX
5694 $as_echo "$ac_log"
5695 } >&5
5696
5697 _ACEOF
5698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5699 _ACEOF
5700
5701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5702
5703 # Handling of arguments.
5704 for ac_config_target in $ac_config_targets
5705 do
5706 case $ac_config_target in
5707 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5708 "../tests/Makefile") CONFIG_FILES="$CONFIG_FILES ../tests/Makefile" ;;
5709 "../include/nsock_config.h") CONFIG_HEADERS="$CONFIG_HEADERS ../include/nsock_config.h" ;;
5710
5711 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5712 esac
5713 done
5714
5715
5716 # If the user did not use the arguments to specify the items to instantiate,
5717 # then the envvar interface is used. Set only those that are not.
5718 # We use the long form for the default assignment because of an extremely
5719 # bizarre bug on SunOS 4.1.3.
5720 if $ac_need_defaults; then
5721 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5722 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5723 fi
5724
5725 # Have a temporary directory for convenience. Make it in the build tree
5726 # simply because there is no reason against having it here, and in addition,
5727 # creating and moving files from /tmp can sometimes cause problems.
5728 # Hook for its removal unless debugging.
5729 # Note that there is a small window in which the directory will not be cleaned:
5730 # after its creation but before its name has been assigned to `$tmp'.
5731 $debug ||
5732 {
5733 tmp= ac_tmp=
5734 trap 'exit_status=$?
5735 : "${ac_tmp:=$tmp}"
5736 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5737 ' 0
5738 trap 'as_fn_exit 1' 1 2 13 15
5739 }
5740 # Create a (secure) tmp directory for tmp files.
5741
5742 {
5743 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5744 test -d "$tmp"
5745 } ||
5746 {
5747 tmp=./conf$$-$RANDOM
5748 (umask 077 && mkdir "$tmp")
5749 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5750 ac_tmp=$tmp
5751
5752 # Set up the scripts for CONFIG_FILES section.
5753 # No need to generate them if there are no CONFIG_FILES.
5754 # This happens for instance with `./config.status config.h'.
5755 if test -n "$CONFIG_FILES"; then
5756
5757
5758 ac_cr=`echo X | tr X '\015'`
5759 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5760 # But we know of no other shell where ac_cr would be empty at this
5761 # point, so we can use a bashism as a fallback.
5762 if test "x$ac_cr" = x; then
5763 eval ac_cr=\$\'\\r\'
5764 fi
5765 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5766 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5767 ac_cs_awk_cr='\\r'
5768 else
5769 ac_cs_awk_cr=$ac_cr
5770 fi
5771
5772 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5773 _ACEOF
5774
5775
5776 {
5777 echo "cat >conf$$subs.awk <<_ACEOF" &&
5778 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5779 echo "_ACEOF"
5780 } >conf$$subs.sh ||
5781 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5782 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5783 ac_delim='%!_!# '
5784 for ac_last_try in false false false false false :; do
5785 . ./conf$$subs.sh ||
5786 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5787
5788 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5789 if test $ac_delim_n = $ac_delim_num; then
5790 break
5791 elif $ac_last_try; then
5792 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5793 else
5794 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5795 fi
5796 done
5797 rm -f conf$$subs.sh
5798
5799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5800 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5801 _ACEOF
5802 sed -n '
5803 h
5804 s/^/S["/; s/!.*/"]=/
5805 p
5806 g
5807 s/^[^!]*!//
5808 :repl
5809 t repl
5810 s/'"$ac_delim"'$//
5811 t delim
5812 :nl
5813 h
5814 s/\(.\{148\}\)..*/\1/
5815 t more1
5816 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5817 p
5818 n
5819 b repl
5820 :more1
5821 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5822 p
5823 g
5824 s/.\{148\}//
5825 t nl
5826 :delim
5827 h
5828 s/\(.\{148\}\)..*/\1/
5829 t more2
5830 s/["\\]/\\&/g; s/^/"/; s/$/"/
5831 p
5832 b
5833 :more2
5834 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5835 p
5836 g
5837 s/.\{148\}//
5838 t delim
5839 ' <conf$$subs.awk | sed '
5840 /^[^""]/{
5841 N
5842 s/\n//
5843 }
5844 ' >>$CONFIG_STATUS || ac_write_fail=1
5845 rm -f conf$$subs.awk
5846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5847 _ACAWK
5848 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5849 for (key in S) S_is_set[key] = 1
5850 FS = ""
5851
5852 }
5853 {
5854 line = $ 0
5855 nfields = split(line, field, "@")
5856 substed = 0
5857 len = length(field[1])
5858 for (i = 2; i < nfields; i++) {
5859 key = field[i]
5860 keylen = length(key)
5861 if (S_is_set[key]) {
5862 value = S[key]
5863 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5864 len += length(value) + length(field[++i])
5865 substed = 1
5866 } else
5867 len += 1 + keylen
5868 }
5869
5870 print line
5871 }
5872
5873 _ACAWK
5874 _ACEOF
5875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5876 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5877 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5878 else
5879 cat
5880 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5881 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5882 _ACEOF
5883
5884 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5885 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5886 # trailing colons and then remove the whole line if VPATH becomes empty
5887 # (actually we leave an empty line to preserve line numbers).
5888 if test "x$srcdir" = x.; then
5889 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5890 h
5891 s///
5892 s/^/:/
5893 s/[ ]*$/:/
5894 s/:\$(srcdir):/:/g
5895 s/:\${srcdir}:/:/g
5896 s/:@srcdir@:/:/g
5897 s/^:*//
5898 s/:*$//
5899 x
5900 s/\(=[ ]*\).*/\1/
5901 G
5902 s/\n//
5903 s/^[^=]*=[ ]*$//
5904 }'
5905 fi
5906
5907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5908 fi # test -n "$CONFIG_FILES"
5909
5910 # Set up the scripts for CONFIG_HEADERS section.
5911 # No need to generate them if there are no CONFIG_HEADERS.
5912 # This happens for instance with `./config.status Makefile'.
5913 if test -n "$CONFIG_HEADERS"; then
5914 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5915 BEGIN {
5916 _ACEOF
5917
5918 # Transform confdefs.h into an awk script `defines.awk', embedded as
5919 # here-document in config.status, that substitutes the proper values into
5920 # config.h.in to produce config.h.
5921
5922 # Create a delimiter string that does not exist in confdefs.h, to ease
5923 # handling of long lines.
5924 ac_delim='%!_!# '
5925 for ac_last_try in false false :; do
5926 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5927 if test -z "$ac_tt"; then
5928 break
5929 elif $ac_last_try; then
5930 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5931 else
5932 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5933 fi
5934 done
5935
5936 # For the awk script, D is an array of macro values keyed by name,
5937 # likewise P contains macro parameters if any. Preserve backslash
5938 # newline sequences.
5939
5940 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5941 sed -n '
5942 s/.\{148\}/&'"$ac_delim"'/g
5943 t rset
5944 :rset
5945 s/^[ ]*#[ ]*define[ ][ ]*/ /
5946 t def
5947 d
5948 :def
5949 s/\\$//
5950 t bsnl
5951 s/["\\]/\\&/g
5952 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5953 D["\1"]=" \3"/p
5954 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5955 d
5956 :bsnl
5957 s/["\\]/\\&/g
5958 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5959 D["\1"]=" \3\\\\\\n"\\/p
5960 t cont
5961 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5962 t cont
5963 d
5964 :cont
5965 n
5966 s/.\{148\}/&'"$ac_delim"'/g
5967 t clear
5968 :clear
5969 s/\\$//
5970 t bsnlc
5971 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5972 d
5973 :bsnlc
5974 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5975 b cont
5976 ' <confdefs.h | sed '
5977 s/'"$ac_delim"'/"\\\
5978 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5979
5980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5981 for (key in D) D_is_set[key] = 1
5982 FS = ""
5983 }
5984 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5985 line = \$ 0
5986 split(line, arg, " ")
5987 if (arg[1] == "#") {
5988 defundef = arg[2]
5989 mac1 = arg[3]
5990 } else {
5991 defundef = substr(arg[1], 2)
5992 mac1 = arg[2]
5993 }
5994 split(mac1, mac2, "(") #)
5995 macro = mac2[1]
5996 prefix = substr(line, 1, index(line, defundef) - 1)
5997 if (D_is_set[macro]) {
5998 # Preserve the white space surrounding the "#".
5999 print prefix "define", macro P[macro] D[macro]
6000 next
6001 } else {
6002 # Replace #undef with comments. This is necessary, for example,
6003 # in the case of _POSIX_SOURCE, which is predefined and required
6004 # on some systems where configure will not decide to define it.
6005 if (defundef == "undef") {
6006 print "/*", prefix defundef, macro, "*/"
6007 next
6008 }
6009 }
6010 }
6011 { print }
6012 _ACAWK
6013 _ACEOF
6014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6015 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6016 fi # test -n "$CONFIG_HEADERS"
6017
6018
6019 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6020 shift
6021 for ac_tag
6022 do
6023 case $ac_tag in
6024 :[FHLC]) ac_mode=$ac_tag; continue;;
6025 esac
6026 case $ac_mode$ac_tag in
6027 :[FHL]*:*);;
6028 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6029 :[FH]-) ac_tag=-:-;;
6030 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6031 esac
6032 ac_save_IFS=$IFS
6033 IFS=:
6034 set x $ac_tag
6035 IFS=$ac_save_IFS
6036 shift
6037 ac_file=$1
6038 shift
6039
6040 case $ac_mode in
6041 :L) ac_source=$1;;
6042 :[FH])
6043 ac_file_inputs=
6044 for ac_f
6045 do
6046 case $ac_f in
6047 -) ac_f="$ac_tmp/stdin";;
6048 *) # Look for the file first in the build tree, then in the source tree
6049 # (if the path is not absolute). The absolute path cannot be DOS-style,
6050 # because $ac_f cannot contain `:'.
6051 test -f "$ac_f" ||
6052 case $ac_f in
6053 [\\/$]*) false;;
6054 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6055 esac ||
6056 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6057 esac
6058 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6059 as_fn_append ac_file_inputs " '$ac_f'"
6060 done
6061
6062 # Let's still pretend it is `configure' which instantiates (i.e., don't
6063 # use $as_me), people would be surprised to read:
6064 # /* config.h. Generated by config.status. */
6065 configure_input='Generated from '`
6066 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6067 `' by configure.'
6068 if test x"$ac_file" != x-; then
6069 configure_input="$ac_file. $configure_input"
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6071 $as_echo "$as_me: creating $ac_file" >&6;}
6072 fi
6073 # Neutralize special characters interpreted by sed in replacement strings.
6074 case $configure_input in #(
6075 *\&* | *\|* | *\\* )
6076 ac_sed_conf_input=`$as_echo "$configure_input" |
6077 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6078 *) ac_sed_conf_input=$configure_input;;
6079 esac
6080
6081 case $ac_tag in
6082 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6083 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6084 esac
6085 ;;
6086 esac
6087
6088 ac_dir=`$as_dirname -- "$ac_file" ||
6089 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6090 X"$ac_file" : 'X\(//\)[^/]' \| \
6091 X"$ac_file" : 'X\(//\)$' \| \
6092 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6093 $as_echo X"$ac_file" |
6094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6095 s//\1/
6096 q
6097 }
6098 /^X\(\/\/\)[^/].*/{
6099 s//\1/
6100 q
6101 }
6102 /^X\(\/\/\)$/{
6103 s//\1/
6104 q
6105 }
6106 /^X\(\/\).*/{
6107 s//\1/
6108 q
6109 }
6110 s/.*/./; q'`
6111 as_dir="$ac_dir"; as_fn_mkdir_p
6112 ac_builddir=.
6113
6114 case "$ac_dir" in
6115 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6116 *)
6117 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6118 # A ".." for each directory in $ac_dir_suffix.
6119 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6120 case $ac_top_builddir_sub in
6121 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6122 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6123 esac ;;
6124 esac
6125 ac_abs_top_builddir=$ac_pwd
6126 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6127 # for backward compatibility:
6128 ac_top_builddir=$ac_top_build_prefix
6129
6130 case $srcdir in
6131 .) # We are building in place.
6132 ac_srcdir=.
6133 ac_top_srcdir=$ac_top_builddir_sub
6134 ac_abs_top_srcdir=$ac_pwd ;;
6135 [\\/]* | ?:[\\/]* ) # Absolute name.
6136 ac_srcdir=$srcdir$ac_dir_suffix;
6137 ac_top_srcdir=$srcdir
6138 ac_abs_top_srcdir=$srcdir ;;
6139 *) # Relative name.
6140 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6141 ac_top_srcdir=$ac_top_build_prefix$srcdir
6142 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6143 esac
6144 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6145
6146
6147 case $ac_mode in
6148 :F)
6149 #
6150 # CONFIG_FILE
6151 #
6152
6153 _ACEOF
6154
6155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6156 # If the template does not know about datarootdir, expand it.
6157 # FIXME: This hack should be removed a few years after 2.60.
6158 ac_datarootdir_hack=; ac_datarootdir_seen=
6159 ac_sed_dataroot='
6160 /datarootdir/ {
6161 p
6162 q
6163 }
6164 /@datadir@/p
6165 /@docdir@/p
6166 /@infodir@/p
6167 /@localedir@/p
6168 /@mandir@/p'
6169 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6170 *datarootdir*) ac_datarootdir_seen=yes;;
6171 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6173 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6174 _ACEOF
6175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6176 ac_datarootdir_hack='
6177 s&@datadir@&$datadir&g
6178 s&@docdir@&$docdir&g
6179 s&@infodir@&$infodir&g
6180 s&@localedir@&$localedir&g
6181 s&@mandir@&$mandir&g
6182 s&\\\${datarootdir}&$datarootdir&g' ;;
6183 esac
6184 _ACEOF
6185
6186 # Neutralize VPATH when `$srcdir' = `.'.
6187 # Shell code in configure.ac might set extrasub.
6188 # FIXME: do we really want to maintain this feature?
6189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6190 ac_sed_extra="$ac_vpsub
6191 $extrasub
6192 _ACEOF
6193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6194 :t
6195 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6196 s|@configure_input@|$ac_sed_conf_input|;t t
6197 s&@top_builddir@&$ac_top_builddir_sub&;t t
6198 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6199 s&@srcdir@&$ac_srcdir&;t t
6200 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6201 s&@top_srcdir@&$ac_top_srcdir&;t t
6202 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6203 s&@builddir@&$ac_builddir&;t t
6204 s&@abs_builddir@&$ac_abs_builddir&;t t
6205 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6206 $ac_datarootdir_hack
6207 "
6208 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6209 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6210
6211 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6212 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6213 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6214 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6216 which seems to be undefined. Please make sure it is defined" >&5
6217 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6218 which seems to be undefined. Please make sure it is defined" >&2;}
6219
6220 rm -f "$ac_tmp/stdin"
6221 case $ac_file in
6222 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6223 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6224 esac \
6225 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6226 ;;
6227 :H)
6228 #
6229 # CONFIG_HEADER
6230 #
6231 if test x"$ac_file" != x-; then
6232 {
6233 $as_echo "/* $configure_input */" \
6234 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6235 } >"$ac_tmp/config.h" \
6236 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6237 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6239 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6240 else
6241 rm -f "$ac_file"
6242 mv "$ac_tmp/config.h" "$ac_file" \
6243 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6244 fi
6245 else
6246 $as_echo "/* $configure_input */" \
6247 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6248 || as_fn_error $? "could not create -" "$LINENO" 5
6249 fi
6250 ;;
6251
6252
6253 esac
6254
6255 done # for ac_tag
6256
6257
6258 as_fn_exit 0
6259 _ACEOF
6260 ac_clean_files=$ac_clean_files_save
6261
6262 test $ac_write_fail = 0 ||
6263 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6264
6265
6266 # configure is writing to config.log, and then calls config.status.
6267 # config.status does its own redirection, appending to config.log.
6268 # Unfortunately, on DOS this fails, as config.log is still kept open
6269 # by configure, so config.status won't be able to write to it; its
6270 # output is simply discarded. So we exec the FD to /dev/null,
6271 # effectively closing config.log, so it can be properly (re)opened and
6272 # appended to by config.status. When coming back to configure, we
6273 # need to make the FD available again.
6274 if test "$no_create" != yes; then
6275 ac_cs_success=:
6276 ac_config_status_args=
6277 test "$silent" = yes &&
6278 ac_config_status_args="$ac_config_status_args --quiet"
6279 exec 5>/dev/null
6280 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6281 exec 5>>config.log
6282 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6283 # would make configure fail if this is the last instruction.
6284 $ac_cs_success || as_fn_exit 1
6285 fi
6286 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6288 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6289 fi
6290