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