Debian Codegraph @

ncat/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="ncat_main.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_func_c_list=
650 ac_subst_vars='LTLIBOBJS
651 LIBOBJS
652 LUA_DIST_CLEAN
653 LUA_CLEAN
654 LUA_BUILD
655 LUA_DEPENDS
656 LIBLUADIR
657 LIBLUA_LIBS
658 NOLUA
659 CPP
660 LUA_CFLAGS
661 PCAP_LIBS
662 PCAP_DIST_CLEAN
663 PCAP_CLEAN
664 PCAP_BUILD
665 PCAP_DEPENDS
666 libpcapdir
667 OPENSSL_LIBS
668 HAVE_OPENSSL
669 EGREP
670 GREP
671 STRIP
672 INSTALL_DATA
673 INSTALL_SCRIPT
674 INSTALL_PROGRAM
675 OBJEXT
676 EXEEXT
677 ac_ct_CC
678 CPPFLAGS
679 LDFLAGS
680 CFLAGS
681 CC
682 host_os
683 host_vendor
684 host_cpu
685 host
686 build_os
687 build_vendor
688 build_cpu
689 build
690 target_alias
691 host_alias
692 build_alias
693 LIBS
694 ECHO_T
695 ECHO_N
696 ECHO_C
697 DEFS
698 mandir
699 localedir
700 libdir
701 psdir
702 pdfdir
703 dvidir
704 htmldir
705 infodir
706 docdir
707 oldincludedir
708 includedir
709 runstatedir
710 localstatedir
711 sharedstatedir
712 sysconfdir
713 datadir
714 datarootdir
715 libexecdir
716 sbindir
717 bindir
718 program_transform_name
719 prefix
720 exec_prefix
721 PACKAGE_URL
722 PACKAGE_BUGREPORT
723 PACKAGE_STRING
724 PACKAGE_VERSION
725 PACKAGE_TARNAME
726 PACKAGE_NAME
727 PATH_SEPARATOR
728 SHELL'
729 ac_subst_files=''
730 ac_user_opts='
731 enable_option_checking
732 with_openssl
733 with_libpcap
734 with_liblua
735 '
736 ac_precious_vars='build_alias
737 host_alias
738 target_alias
739 CC
740 CFLAGS
741 LDFLAGS
742 LIBS
743 CPPFLAGS
744 CPP'
745
746
747 # Initialize some variables set by options.
748 ac_init_help=
749 ac_init_version=false
750 ac_unrecognized_opts=
751 ac_unrecognized_sep=
752 # The variables have the same names as the options, with
753 # dashes changed to underlines.
754 cache_file=/dev/null
755 exec_prefix=NONE
756 no_create=
757 no_recursion=
758 prefix=NONE
759 program_prefix=NONE
760 program_suffix=NONE
761 program_transform_name=s,x,x,
762 silent=
763 site=
764 srcdir=
765 verbose=
766 x_includes=NONE
767 x_libraries=NONE
768
769 # Installation directory options.
770 # These are left unexpanded so users can "make install exec_prefix=/foo"
771 # and all the variables that are supposed to be based on exec_prefix
772 # by default will actually change.
773 # Use braces instead of parens because sh, perl, etc. also accept them.
774 # (The list follows the same order as the GNU Coding Standards.)
775 bindir='${exec_prefix}/bin'
776 sbindir='${exec_prefix}/sbin'
777 libexecdir='${exec_prefix}/libexec'
778 datarootdir='${prefix}/share'
779 datadir='${datarootdir}'
780 sysconfdir='${prefix}/etc'
781 sharedstatedir='${prefix}/com'
782 localstatedir='${prefix}/var'
783 runstatedir='${localstatedir}/run'
784 includedir='${prefix}/include'
785 oldincludedir='/usr/include'
786 docdir='${datarootdir}/doc/${PACKAGE}'
787 infodir='${datarootdir}/info'
788 htmldir='${docdir}'
789 dvidir='${docdir}'
790 pdfdir='${docdir}'
791 psdir='${docdir}'
792 libdir='${exec_prefix}/lib'
793 localedir='${datarootdir}/locale'
794 mandir='${datarootdir}/man'
795
796 ac_prev=
797 ac_dashdash=
798 for ac_option
799 do
800 # If the previous option needs an argument, assign it.
801 if test -n "$ac_prev"; then
802 eval $ac_prev=\$ac_option
803 ac_prev=
804 continue
805 fi
806
807 case $ac_option in
808 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
809 *=) ac_optarg= ;;
810 *) ac_optarg=yes ;;
811 esac
812
813 case $ac_dashdash$ac_option in
814 --)
815 ac_dashdash=yes ;;
816
817 -bindir | --bindir | --bindi | --bind | --bin | --bi)
818 ac_prev=bindir ;;
819 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
820 bindir=$ac_optarg ;;
821
822 -build | --build | --buil | --bui | --bu)
823 ac_prev=build_alias ;;
824 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
825 build_alias=$ac_optarg ;;
826
827 -cache-file | --cache-file | --cache-fil | --cache-fi \
828 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
829 ac_prev=cache_file ;;
830 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
831 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
832 cache_file=$ac_optarg ;;
833
834 --config-cache | -C)
835 cache_file=config.cache ;;
836
837 -datadir | --datadir | --datadi | --datad)
838 ac_prev=datadir ;;
839 -datadir=* | --datadir=* | --datadi=* | --datad=*)
840 datadir=$ac_optarg ;;
841
842 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
843 | --dataroo | --dataro | --datar)
844 ac_prev=datarootdir ;;
845 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
846 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
847 datarootdir=$ac_optarg ;;
848
849 -disable-* | --disable-*)
850 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
851 # Reject names that are not valid shell variable names.
852 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
853 as_fn_error $? "invalid feature name: \`$ac_useropt'"
854 ac_useropt_orig=$ac_useropt
855 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
856 case $ac_user_opts in
857 *"
858 "enable_$ac_useropt"
859 "*) ;;
860 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
861 ac_unrecognized_sep=', ';;
862 esac
863 eval enable_$ac_useropt=no ;;
864
865 -docdir | --docdir | --docdi | --doc | --do)
866 ac_prev=docdir ;;
867 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
868 docdir=$ac_optarg ;;
869
870 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
871 ac_prev=dvidir ;;
872 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
873 dvidir=$ac_optarg ;;
874
875 -enable-* | --enable-*)
876 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879 as_fn_error $? "invalid feature name: \`$ac_useropt'"
880 ac_useropt_orig=$ac_useropt
881 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
882 case $ac_user_opts in
883 *"
884 "enable_$ac_useropt"
885 "*) ;;
886 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
887 ac_unrecognized_sep=', ';;
888 esac
889 eval enable_$ac_useropt=\$ac_optarg ;;
890
891 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
892 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
893 | --exec | --exe | --ex)
894 ac_prev=exec_prefix ;;
895 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
896 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
897 | --exec=* | --exe=* | --ex=*)
898 exec_prefix=$ac_optarg ;;
899
900 -gas | --gas | --ga | --g)
901 # Obsolete; use --with-gas.
902 with_gas=yes ;;
903
904 -help | --help | --hel | --he | -h)
905 ac_init_help=long ;;
906 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
907 ac_init_help=recursive ;;
908 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
909 ac_init_help=short ;;
910
911 -host | --host | --hos | --ho)
912 ac_prev=host_alias ;;
913 -host=* | --host=* | --hos=* | --ho=*)
914 host_alias=$ac_optarg ;;
915
916 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
917 ac_prev=htmldir ;;
918 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
919 | --ht=*)
920 htmldir=$ac_optarg ;;
921
922 -includedir | --includedir | --includedi | --included | --include \
923 | --includ | --inclu | --incl | --inc)
924 ac_prev=includedir ;;
925 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
926 | --includ=* | --inclu=* | --incl=* | --inc=*)
927 includedir=$ac_optarg ;;
928
929 -infodir | --infodir | --infodi | --infod | --info | --inf)
930 ac_prev=infodir ;;
931 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
932 infodir=$ac_optarg ;;
933
934 -libdir | --libdir | --libdi | --libd)
935 ac_prev=libdir ;;
936 -libdir=* | --libdir=* | --libdi=* | --libd=*)
937 libdir=$ac_optarg ;;
938
939 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
940 | --libexe | --libex | --libe)
941 ac_prev=libexecdir ;;
942 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
943 | --libexe=* | --libex=* | --libe=*)
944 libexecdir=$ac_optarg ;;
945
946 -localedir | --localedir | --localedi | --localed | --locale)
947 ac_prev=localedir ;;
948 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
949 localedir=$ac_optarg ;;
950
951 -localstatedir | --localstatedir | --localstatedi | --localstated \
952 | --localstate | --localstat | --localsta | --localst | --locals)
953 ac_prev=localstatedir ;;
954 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
955 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
956 localstatedir=$ac_optarg ;;
957
958 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
959 ac_prev=mandir ;;
960 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
961 mandir=$ac_optarg ;;
962
963 -nfp | --nfp | --nf)
964 # Obsolete; use --without-fp.
965 with_fp=no ;;
966
967 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
968 | --no-cr | --no-c | -n)
969 no_create=yes ;;
970
971 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
972 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
973 no_recursion=yes ;;
974
975 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
976 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
977 | --oldin | --oldi | --old | --ol | --o)
978 ac_prev=oldincludedir ;;
979 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
980 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
981 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
982 oldincludedir=$ac_optarg ;;
983
984 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
985 ac_prev=prefix ;;
986 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
987 prefix=$ac_optarg ;;
988
989 -program-prefix | --program-prefix | --program-prefi | --program-pref \
990 | --program-pre | --program-pr | --program-p)
991 ac_prev=program_prefix ;;
992 -program-prefix=* | --program-prefix=* | --program-prefi=* \
993 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
994 program_prefix=$ac_optarg ;;
995
996 -program-suffix | --program-suffix | --program-suffi | --program-suff \
997 | --program-suf | --program-su | --program-s)
998 ac_prev=program_suffix ;;
999 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1000 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1001 program_suffix=$ac_optarg ;;
1002
1003 -program-transform-name | --program-transform-name \
1004 | --program-transform-nam | --program-transform-na \
1005 | --program-transform-n | --program-transform- \
1006 | --program-transform | --program-transfor \
1007 | --program-transfo | --program-transf \
1008 | --program-trans | --program-tran \
1009 | --progr-tra | --program-tr | --program-t)
1010 ac_prev=program_transform_name ;;
1011 -program-transform-name=* | --program-transform-name=* \
1012 | --program-transform-nam=* | --program-transform-na=* \
1013 | --program-transform-n=* | --program-transform-=* \
1014 | --program-transform=* | --program-transfor=* \
1015 | --program-transfo=* | --program-transf=* \
1016 | --program-trans=* | --program-tran=* \
1017 | --progr-tra=* | --program-tr=* | --program-t=*)
1018 program_transform_name=$ac_optarg ;;
1019
1020 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1021 ac_prev=pdfdir ;;
1022 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1023 pdfdir=$ac_optarg ;;
1024
1025 -psdir | --psdir | --psdi | --psd | --ps)
1026 ac_prev=psdir ;;
1027 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1028 psdir=$ac_optarg ;;
1029
1030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1031 | -silent | --silent | --silen | --sile | --sil)
1032 silent=yes ;;
1033
1034 -runstatedir | --runstatedir | --runstatedi | --runstated \
1035 | --runstate | --runstat | --runsta | --runst | --runs \
1036 | --run | --ru | --r)
1037 ac_prev=runstatedir ;;
1038 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1039 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1040 | --run=* | --ru=* | --r=*)
1041 runstatedir=$ac_optarg ;;
1042
1043 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1044 ac_prev=sbindir ;;
1045 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1046 | --sbi=* | --sb=*)
1047 sbindir=$ac_optarg ;;
1048
1049 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1050 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1051 | --sharedst | --shareds | --shared | --share | --shar \
1052 | --sha | --sh)
1053 ac_prev=sharedstatedir ;;
1054 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1055 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1056 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1057 | --sha=* | --sh=*)
1058 sharedstatedir=$ac_optarg ;;
1059
1060 -site | --site | --sit)
1061 ac_prev=site ;;
1062 -site=* | --site=* | --sit=*)
1063 site=$ac_optarg ;;
1064
1065 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1066 ac_prev=srcdir ;;
1067 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1068 srcdir=$ac_optarg ;;
1069
1070 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1071 | --syscon | --sysco | --sysc | --sys | --sy)
1072 ac_prev=sysconfdir ;;
1073 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1074 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1075 sysconfdir=$ac_optarg ;;
1076
1077 -target | --target | --targe | --targ | --tar | --ta | --t)
1078 ac_prev=target_alias ;;
1079 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1080 target_alias=$ac_optarg ;;
1081
1082 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1083 verbose=yes ;;
1084
1085 -version | --version | --versio | --versi | --vers | -V)
1086 ac_init_version=: ;;
1087
1088 -with-* | --with-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1101 esac
1102 eval with_$ac_useropt=\$ac_optarg ;;
1103
1104 -without-* | --without-*)
1105 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error $? "invalid package name: \`$ac_useropt'"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1112 *"
1113 "with_$ac_useropt"
1114 "*) ;;
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1117 esac
1118 eval with_$ac_useropt=no ;;
1119
1120 --x)
1121 # Obsolete; use --with-x.
1122 with_x=yes ;;
1123
1124 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1125 | --x-incl | --x-inc | --x-in | --x-i)
1126 ac_prev=x_includes ;;
1127 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1128 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1129 x_includes=$ac_optarg ;;
1130
1131 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1132 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1133 ac_prev=x_libraries ;;
1134 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1135 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1136 x_libraries=$ac_optarg ;;
1137
1138 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1139 Try \`$0 --help' for more information"
1140 ;;
1141
1142 *=*)
1143 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1144 # Reject names that are not valid shell variable names.
1145 case $ac_envvar in #(
1146 '' | [0-9]* | *[!_$as_cr_alnum]* )
1147 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1148 esac
1149 eval $ac_envvar=\$ac_optarg
1150 export $ac_envvar ;;
1151
1152 *)
1153 # FIXME: should be removed in autoconf 3.0.
1154 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1155 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1156 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1157 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1158 ;;
1159
1160 esac
1161 done
1162
1163 if test -n "$ac_prev"; then
1164 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1165 as_fn_error $? "missing argument to $ac_option"
1166 fi
1167
1168 if test -n "$ac_unrecognized_opts"; then
1169 case $enable_option_checking in
1170 no) ;;
1171 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1172 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1173 esac
1174 fi
1175
1176 # Check all directory arguments for consistency.
1177 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1178 datadir sysconfdir sharedstatedir localstatedir includedir \
1179 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1180 libdir localedir mandir runstatedir
1181 do
1182 eval ac_val=\$$ac_var
1183 # Remove trailing slashes.
1184 case $ac_val in
1185 */ )
1186 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1187 eval $ac_var=\$ac_val;;
1188 esac
1189 # Be sure to have absolute directory names.
1190 case $ac_val in
1191 [\\/$]* | ?:[\\/]* ) continue;;
1192 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1193 esac
1194 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1195 done
1196
1197 # There might be people who depend on the old broken behavior: `$host'
1198 # used to hold the argument of --host etc.
1199 # FIXME: To remove some day.
1200 build=$build_alias
1201 host=$host_alias
1202 target=$target_alias
1203
1204 # FIXME: To remove some day.
1205 if test "x$host_alias" != x; then
1206 if test "x$build_alias" = x; then
1207 cross_compiling=maybe
1208 elif test "x$build_alias" != "x$host_alias"; then
1209 cross_compiling=yes
1210 fi
1211 fi
1212
1213 ac_tool_prefix=
1214 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1215
1216 test "$silent" = yes && exec 6>/dev/null
1217
1218
1219 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1220 ac_ls_di=`ls -di .` &&
1221 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1222 as_fn_error $? "working directory cannot be determined"
1223 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1224 as_fn_error $? "pwd does not report name of working directory"
1225
1226
1227 # Find the source files, if location was not specified.
1228 if test -z "$srcdir"; then
1229 ac_srcdir_defaulted=yes
1230 # Try the directory containing this script, then the parent directory.
1231 ac_confdir=`$as_dirname -- "$as_myself" ||
1232 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$as_myself" : 'X\(//\)[^/]' \| \
1234 X"$as_myself" : 'X\(//\)$' \| \
1235 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1236 printf "%s\n" X"$as_myself" |
1237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1238 s//\1/
1239 q
1240 }
1241 /^X\(\/\/\)[^/].*/{
1242 s//\1/
1243 q
1244 }
1245 /^X\(\/\/\)$/{
1246 s//\1/
1247 q
1248 }
1249 /^X\(\/\).*/{
1250 s//\1/
1251 q
1252 }
1253 s/.*/./; q'`
1254 srcdir=$ac_confdir
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1256 srcdir=..
1257 fi
1258 else
1259 ac_srcdir_defaulted=no
1260 fi
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1263 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1264 fi
1265 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1266 ac_abs_confdir=`(
1267 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1268 pwd)`
1269 # When building in place, set srcdir=.
1270 if test "$ac_abs_confdir" = "$ac_pwd"; then
1271 srcdir=.
1272 fi
1273 # Remove unnecessary trailing slashes from srcdir.
1274 # Double slashes in file names in object file debugging info
1275 # mess up M-x gdb in Emacs.
1276 case $srcdir in
1277 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1278 esac
1279 for ac_var in $ac_precious_vars; do
1280 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1281 eval ac_env_${ac_var}_value=\$${ac_var}
1282 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1284 done
1285
1286 #
1287 # Report the --help message.
1288 #
1289 if test "$ac_init_help" = "long"; then
1290 # Omit some internal or obsolete options to make the list less imposing.
1291 # This message is too long to be a string in the A/UX 3.1 sh.
1292 cat <<_ACEOF
1293 \`configure' configures this package to adapt to many kinds of systems.
1294
1295 Usage: $0 [OPTION]... [VAR=VALUE]...
1296
1297 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1298 VAR=VALUE. See below for descriptions of some of the useful variables.
1299
1300 Defaults for the options are specified in brackets.
1301
1302 Configuration:
1303 -h, --help display this help and exit
1304 --help=short display options specific to this package
1305 --help=recursive display the short help of all the included packages
1306 -V, --version display version information and exit
1307 -q, --quiet, --silent do not print \`checking ...' messages
1308 --cache-file=FILE cache test results in FILE [disabled]
1309 -C, --config-cache alias for \`--cache-file=config.cache'
1310 -n, --no-create do not create output files
1311 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1312
1313 Installation directories:
1314 --prefix=PREFIX install architecture-independent files in PREFIX
1315 [$ac_default_prefix]
1316 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1317 [PREFIX]
1318
1319 By default, \`make install' will install all the files in
1320 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1321 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1322 for instance \`--prefix=\$HOME'.
1323
1324 For better control, use the options below.
1325
1326 Fine tuning of the installation directories:
1327 --bindir=DIR user executables [EPREFIX/bin]
1328 --sbindir=DIR system admin executables [EPREFIX/sbin]
1329 --libexecdir=DIR program executables [EPREFIX/libexec]
1330 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1331 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1332 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1333 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1334 --libdir=DIR object code libraries [EPREFIX/lib]
1335 --includedir=DIR C header files [PREFIX/include]
1336 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1337 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1338 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1339 --infodir=DIR info documentation [DATAROOTDIR/info]
1340 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1341 --mandir=DIR man documentation [DATAROOTDIR/man]
1342 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1343 --htmldir=DIR html documentation [DOCDIR]
1344 --dvidir=DIR dvi documentation [DOCDIR]
1345 --pdfdir=DIR pdf documentation [DOCDIR]
1346 --psdir=DIR ps documentation [DOCDIR]
1347 _ACEOF
1348
1349 cat <<\_ACEOF
1350
1351 System types:
1352 --build=BUILD configure for building on BUILD [guessed]
1353 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1354 _ACEOF
1355 fi
1356
1357 if test -n "$ac_init_help"; then
1358
1359 cat <<\_ACEOF
1360
1361 Optional Packages:
1362 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1363 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1364 --with-openssl=DIR Use optional openssl libs and includes from DIR/lib/ and DIR/include/openssl/
1365 --with-libpcap=DIR Look for pcap in DIR/include and DIR/libs.
1366 --with-libpcap=included Always use version included with Nmap
1367 --with-liblua=DIR Use an existing (compiled) lua lib from DIR/include
1368 and DIR/lib.
1369 --with-liblua=included Use the liblua version included with Nmap
1370 --without-liblua Compile without lua (this will exclude all of NSE
1371 from compilation)
1372
1373 Some influential environment variables:
1374 CC C compiler command
1375 CFLAGS C compiler flags
1376 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1377 nonstandard directory <lib dir>
1378 LIBS libraries to pass to the linker, e.g. -l<library>
1379 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1380 you have headers in a nonstandard directory <include dir>
1381 CPP C preprocessor
1382
1383 Use these variables to override the choices made by `configure' or to help
1384 it to find libraries and programs with nonstandard names/locations.
1385
1386 Report bugs to the package provider.
1387 _ACEOF
1388 ac_status=$?
1389 fi
1390
1391 if test "$ac_init_help" = "recursive"; then
1392 # If there are subdirs, report their specific --help.
1393 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1394 test -d "$ac_dir" ||
1395 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1396 continue
1397 ac_builddir=.
1398
1399 case "$ac_dir" in
1400 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401 *)
1402 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1403 # A ".." for each directory in $ac_dir_suffix.
1404 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1405 case $ac_top_builddir_sub in
1406 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1407 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1408 esac ;;
1409 esac
1410 ac_abs_top_builddir=$ac_pwd
1411 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1412 # for backward compatibility:
1413 ac_top_builddir=$ac_top_build_prefix
1414
1415 case $srcdir in
1416 .) # We are building in place.
1417 ac_srcdir=.
1418 ac_top_srcdir=$ac_top_builddir_sub
1419 ac_abs_top_srcdir=$ac_pwd ;;
1420 [\\/]* | ?:[\\/]* ) # Absolute name.
1421 ac_srcdir=$srcdir$ac_dir_suffix;
1422 ac_top_srcdir=$srcdir
1423 ac_abs_top_srcdir=$srcdir ;;
1424 *) # Relative name.
1425 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1426 ac_top_srcdir=$ac_top_build_prefix$srcdir
1427 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1428 esac
1429 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1430
1431 cd "$ac_dir" || { ac_status=$?; continue; }
1432 # Check for configure.gnu first; this name is used for a wrapper for
1433 # Metaconfig's "Configure" on case-insensitive file systems.
1434 if test -f "$ac_srcdir/configure.gnu"; then
1435 echo &&
1436 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1437 elif test -f "$ac_srcdir/configure"; then
1438 echo &&
1439 $SHELL "$ac_srcdir/configure" --help=recursive
1440 else
1441 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1442 fi || ac_status=$?
1443 cd "$ac_pwd" || { ac_status=$?; break; }
1444 done
1445 fi
1446
1447 test -n "$ac_init_help" && exit $ac_status
1448 if $ac_init_version; then
1449 cat <<\_ACEOF
1450 configure
1451 generated by GNU Autoconf 2.71
1452
1453 Copyright (C) 2021 Free Software Foundation, Inc.
1454 This configure script is free software; the Free Software Foundation
1455 gives unlimited permission to copy, distribute and modify it.
1456 _ACEOF
1457 exit
1458 fi
1459
1460 ## ------------------------ ##
1461 ## Autoconf initialization. ##
1462 ## ------------------------ ##
1463
1464 # ac_fn_c_try_compile LINENO
1465 # --------------------------
1466 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1467 ac_fn_c_try_compile ()
1468 {
1469 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1470 rm -f conftest.$ac_objext conftest.beam
1471 if { { ac_try="$ac_compile"
1472 case "(($ac_try" in
1473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1474 *) ac_try_echo=$ac_try;;
1475 esac
1476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1477 printf "%s\n" "$ac_try_echo"; } >&5
1478 (eval "$ac_compile") 2>conftest.err
1479 ac_status=$?
1480 if test -s conftest.err; then
1481 grep -v '^ *+' conftest.err >conftest.er1
1482 cat conftest.er1 >&5
1483 mv -f conftest.er1 conftest.err
1484 fi
1485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1486 test $ac_status = 0; } && {
1487 test -z "$ac_c_werror_flag" ||
1488 test ! -s conftest.err
1489 } && test -s conftest.$ac_objext
1490 then :
1491 ac_retval=0
1492 else $as_nop
1493 printf "%s\n" "$as_me: failed program was:" >&5
1494 sed 's/^/| /' conftest.$ac_ext >&5
1495
1496 ac_retval=1
1497 fi
1498 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1499 as_fn_set_status $ac_retval
1500
1501 } # ac_fn_c_try_compile
1502
1503 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1504 # -------------------------------------------------------
1505 # Tests whether HEADER exists and can be compiled using the include files in
1506 # INCLUDES, setting the cache variable VAR accordingly.
1507 ac_fn_c_check_header_compile ()
1508 {
1509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1511 printf %s "checking for $2... " >&6; }
1512 if eval test \${$3+y}
1513 then :
1514 printf %s "(cached) " >&6
1515 else $as_nop
1516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1517 /* end confdefs.h. */
1518 $4
1519 #include <$2>
1520 _ACEOF
1521 if ac_fn_c_try_compile "$LINENO"
1522 then :
1523 eval "$3=yes"
1524 else $as_nop
1525 eval "$3=no"
1526 fi
1527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1528 fi
1529 eval ac_res=\$$3
1530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1531 printf "%s\n" "$ac_res" >&6; }
1532 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1533
1534 } # ac_fn_c_check_header_compile
1535
1536 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1537 # -------------------------------------------
1538 # Tests whether TYPE exists after having included INCLUDES, setting cache
1539 # variable VAR accordingly.
1540 ac_fn_c_check_type ()
1541 {
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1544 printf %s "checking for $2... " >&6; }
1545 if eval test \${$3+y}
1546 then :
1547 printf %s "(cached) " >&6
1548 else $as_nop
1549 eval "$3=no"
1550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1551 /* end confdefs.h. */
1552 $4
1553 int
1554 main (void)
1555 {
1556 if (sizeof ($2))
1557 return 0;
1558 ;
1559 return 0;
1560 }
1561 _ACEOF
1562 if ac_fn_c_try_compile "$LINENO"
1563 then :
1564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1565 /* end confdefs.h. */
1566 $4
1567 int
1568 main (void)
1569 {
1570 if (sizeof (($2)))
1571 return 0;
1572 ;
1573 return 0;
1574 }
1575 _ACEOF
1576 if ac_fn_c_try_compile "$LINENO"
1577 then :
1578
1579 else $as_nop
1580 eval "$3=yes"
1581 fi
1582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1583 fi
1584 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1585 fi
1586 eval ac_res=\$$3
1587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1588 printf "%s\n" "$ac_res" >&6; }
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590
1591 } # ac_fn_c_check_type
1592
1593 # ac_fn_c_try_link LINENO
1594 # -----------------------
1595 # Try to link conftest.$ac_ext, and return whether this succeeded.
1596 ac_fn_c_try_link ()
1597 {
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1600 if { { ac_try="$ac_link"
1601 case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604 esac
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 printf "%s\n" "$ac_try_echo"; } >&5
1607 (eval "$ac_link") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && {
1616 test -z "$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 } && test -s conftest$ac_exeext && {
1619 test "$cross_compiling" = yes ||
1620 test -x conftest$ac_exeext
1621 }
1622 then :
1623 ac_retval=0
1624 else $as_nop
1625 printf "%s\n" "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1627
1628 ac_retval=1
1629 fi
1630 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1631 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1632 # interfere with the next link command; also delete a directory that is
1633 # left behind by Apple's compiler. We do this before executing the actions.
1634 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636 as_fn_set_status $ac_retval
1637
1638 } # ac_fn_c_try_link
1639
1640 # ac_fn_c_check_func LINENO FUNC VAR
1641 # ----------------------------------
1642 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1643 ac_fn_c_check_func ()
1644 {
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1647 printf %s "checking for $2... " >&6; }
1648 if eval test \${$3+y}
1649 then :
1650 printf %s "(cached) " >&6
1651 else $as_nop
1652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653 /* end confdefs.h. */
1654 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1656 #define $2 innocuous_$2
1657
1658 /* System header to define __stub macros and hopefully few prototypes,
1659 which can conflict with char $2 (); below. */
1660
1661 #include <limits.h>
1662 #undef $2
1663
1664 /* Override any GCC internal prototype to avoid an error.
1665 Use char because int might match the return type of a GCC
1666 builtin and then its argument prototype would still apply. */
1667 #ifdef __cplusplus
1668 extern "C"
1669 #endif
1670 char $2 ();
1671 /* The GNU C library defines this for functions which it implements
1672 to always fail with ENOSYS. Some functions are actually named
1673 something starting with __ and the normal name is an alias. */
1674 #if defined __stub_$2 || defined __stub___$2
1675 choke me
1676 #endif
1677
1678 int
1679 main (void)
1680 {
1681 return $2 ();
1682 ;
1683 return 0;
1684 }
1685 _ACEOF
1686 if ac_fn_c_try_link "$LINENO"
1687 then :
1688 eval "$3=yes"
1689 else $as_nop
1690 eval "$3=no"
1691 fi
1692 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1693 conftest$ac_exeext conftest.$ac_ext
1694 fi
1695 eval ac_res=\$$3
1696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1697 printf "%s\n" "$ac_res" >&6; }
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699
1700 } # ac_fn_c_check_func
1701
1702 # ac_fn_c_try_run LINENO
1703 # ----------------------
1704 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1705 # executables *can* be run.
1706 ac_fn_c_try_run ()
1707 {
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 if { { ac_try="$ac_link"
1710 case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713 esac
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 printf "%s\n" "$ac_try_echo"; } >&5
1716 (eval "$ac_link") 2>&5
1717 ac_status=$?
1718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1720 { { case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 printf "%s\n" "$ac_try_echo"; } >&5
1726 (eval "$ac_try") 2>&5
1727 ac_status=$?
1728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; }; }
1730 then :
1731 ac_retval=0
1732 else $as_nop
1733 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1734 printf "%s\n" "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.$ac_ext >&5
1736
1737 ac_retval=$ac_status
1738 fi
1739 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741 as_fn_set_status $ac_retval
1742
1743 } # ac_fn_c_try_run
1744
1745 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1746 # ------------------------------------------------------------------
1747 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1748 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1749 ac_fn_check_decl ()
1750 {
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 as_decl_name=`echo $2|sed 's/ *(.*//'`
1753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1754 printf %s "checking whether $as_decl_name is declared... " >&6; }
1755 if eval test \${$3+y}
1756 then :
1757 printf %s "(cached) " >&6
1758 else $as_nop
1759 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1760 eval ac_save_FLAGS=\$$6
1761 as_fn_append $6 " $5"
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h. */
1764 $4
1765 int
1766 main (void)
1767 {
1768 #ifndef $as_decl_name
1769 #ifdef __cplusplus
1770 (void) $as_decl_use;
1771 #else
1772 (void) $as_decl_name;
1773 #endif
1774 #endif
1775
1776 ;
1777 return 0;
1778 }
1779 _ACEOF
1780 if ac_fn_c_try_compile "$LINENO"
1781 then :
1782 eval "$3=yes"
1783 else $as_nop
1784 eval "$3=no"
1785 fi
1786 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1787 eval $6=\$ac_save_FLAGS
1788
1789 fi
1790 eval ac_res=\$$3
1791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 printf "%s\n" "$ac_res" >&6; }
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794
1795 } # ac_fn_check_decl
1796
1797 # ac_fn_c_try_cpp LINENO
1798 # ----------------------
1799 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1800 ac_fn_c_try_cpp ()
1801 {
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 if { { ac_try="$ac_cpp conftest.$ac_ext"
1804 case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 printf "%s\n" "$ac_try_echo"; } >&5
1810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1816 fi
1817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } > conftest.i && {
1819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1820 test ! -s conftest.err
1821 }
1822 then :
1823 ac_retval=0
1824 else $as_nop
1825 printf "%s\n" "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1827
1828 ac_retval=1
1829 fi
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831 as_fn_set_status $ac_retval
1832
1833 } # ac_fn_c_try_cpp
1834 ac_configure_args_raw=
1835 for ac_arg
1836 do
1837 case $ac_arg in
1838 *\'*)
1839 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1840 esac
1841 as_fn_append ac_configure_args_raw " '$ac_arg'"
1842 done
1843
1844 case $ac_configure_args_raw in
1845 *$as_nl*)
1846 ac_safe_unquote= ;;
1847 *)
1848 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1849 ac_unsafe_a="$ac_unsafe_z#~"
1850 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1851 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1852 esac
1853
1854 cat >config.log <<_ACEOF
1855 This file contains any messages produced by compilers while
1856 running configure, to aid debugging if configure makes a mistake.
1857
1858 It was created by $as_me, which was
1859 generated by GNU Autoconf 2.71. Invocation command line was
1860
1861 $ $0$ac_configure_args_raw
1862
1863 _ACEOF
1864 exec 5>>config.log
1865 {
1866 cat <<_ASUNAME
1867 ## --------- ##
1868 ## Platform. ##
1869 ## --------- ##
1870
1871 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1872 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1873 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1874 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1875 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1876
1877 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1878 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1879
1880 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1881 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1882 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1883 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1884 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1885 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1886 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1887
1888 _ASUNAME
1889
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 for as_dir in $PATH
1892 do
1893 IFS=$as_save_IFS
1894 case $as_dir in #(((
1895 '') as_dir=./ ;;
1896 */) ;;
1897 *) as_dir=$as_dir/ ;;
1898 esac
1899 printf "%s\n" "PATH: $as_dir"
1900 done
1901 IFS=$as_save_IFS
1902
1903 } >&5
1904
1905 cat >&5 <<_ACEOF
1906
1907
1908 ## ----------- ##
1909 ## Core tests. ##
1910 ## ----------- ##
1911
1912 _ACEOF
1913
1914
1915 # Keep a trace of the command line.
1916 # Strip out --no-create and --no-recursion so they do not pile up.
1917 # Strip out --silent because we don't want to record it for future runs.
1918 # Also quote any args containing shell meta-characters.
1919 # Make two passes to allow for proper duplicate-argument suppression.
1920 ac_configure_args=
1921 ac_configure_args0=
1922 ac_configure_args1=
1923 ac_must_keep_next=false
1924 for ac_pass in 1 2
1925 do
1926 for ac_arg
1927 do
1928 case $ac_arg in
1929 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1930 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1931 | -silent | --silent | --silen | --sile | --sil)
1932 continue ;;
1933 *\'*)
1934 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1935 esac
1936 case $ac_pass in
1937 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1938 2)
1939 as_fn_append ac_configure_args1 " '$ac_arg'"
1940 if test $ac_must_keep_next = true; then
1941 ac_must_keep_next=false # Got value, back to normal.
1942 else
1943 case $ac_arg in
1944 *=* | --config-cache | -C | -disable-* | --disable-* \
1945 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1946 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1947 | -with-* | --with-* | -without-* | --without-* | --x)
1948 case "$ac_configure_args0 " in
1949 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1950 esac
1951 ;;
1952 -* ) ac_must_keep_next=true ;;
1953 esac
1954 fi
1955 as_fn_append ac_configure_args " '$ac_arg'"
1956 ;;
1957 esac
1958 done
1959 done
1960 { ac_configure_args0=; unset ac_configure_args0;}
1961 { ac_configure_args1=; unset ac_configure_args1;}
1962
1963 # When interrupted or exit'd, cleanup temporary files, and complete
1964 # config.log. We remove comments because anyway the quotes in there
1965 # would cause problems or look ugly.
1966 # WARNING: Use '\'' to represent an apostrophe within the trap.
1967 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1968 trap 'exit_status=$?
1969 # Sanitize IFS.
1970 IFS=" "" $as_nl"
1971 # Save into config.log some information that might help in debugging.
1972 {
1973 echo
1974
1975 printf "%s\n" "## ---------------- ##
1976 ## Cache variables. ##
1977 ## ---------------- ##"
1978 echo
1979 # The following way of writing the cache mishandles newlines in values,
1980 (
1981 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1982 eval ac_val=\$$ac_var
1983 case $ac_val in #(
1984 *${as_nl}*)
1985 case $ac_var in #(
1986 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1987 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1988 esac
1989 case $ac_var in #(
1990 _ | IFS | as_nl) ;; #(
1991 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1992 *) { eval $ac_var=; unset $ac_var;} ;;
1993 esac ;;
1994 esac
1995 done
1996 (set) 2>&1 |
1997 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1998 *${as_nl}ac_space=\ *)
1999 sed -n \
2000 "s/'\''/'\''\\\\'\'''\''/g;
2001 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2002 ;; #(
2003 *)
2004 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2005 ;;
2006 esac |
2007 sort
2008 )
2009 echo
2010
2011 printf "%s\n" "## ----------------- ##
2012 ## Output variables. ##
2013 ## ----------------- ##"
2014 echo
2015 for ac_var in $ac_subst_vars
2016 do
2017 eval ac_val=\$$ac_var
2018 case $ac_val in
2019 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2020 esac
2021 printf "%s\n" "$ac_var='\''$ac_val'\''"
2022 done | sort
2023 echo
2024
2025 if test -n "$ac_subst_files"; then
2026 printf "%s\n" "## ------------------- ##
2027 ## File substitutions. ##
2028 ## ------------------- ##"
2029 echo
2030 for ac_var in $ac_subst_files
2031 do
2032 eval ac_val=\$$ac_var
2033 case $ac_val in
2034 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2035 esac
2036 printf "%s\n" "$ac_var='\''$ac_val'\''"
2037 done | sort
2038 echo
2039 fi
2040
2041 if test -s confdefs.h; then
2042 printf "%s\n" "## ----------- ##
2043 ## confdefs.h. ##
2044 ## ----------- ##"
2045 echo
2046 cat confdefs.h
2047 echo
2048 fi
2049 test "$ac_signal" != 0 &&
2050 printf "%s\n" "$as_me: caught signal $ac_signal"
2051 printf "%s\n" "$as_me: exit $exit_status"
2052 } >&5
2053 rm -f core *.core core.conftest.* &&
2054 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2055 exit $exit_status
2056 ' 0
2057 for ac_signal in 1 2 13 15; do
2058 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2059 done
2060 ac_signal=0
2061
2062 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2063 rm -f -r conftest* confdefs.h
2064
2065 printf "%s\n" "/* confdefs.h */" > confdefs.h
2066
2067 # Predefined preprocessor variables.
2068
2069 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2070
2071 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2072
2073 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2074
2075 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2076
2077 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2078
2079 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2080
2081
2082 # Let the site file select an alternate cache file if it wants to.
2083 # Prefer an explicitly selected file to automatically selected ones.
2084 if test -n "$CONFIG_SITE"; then
2085 ac_site_files="$CONFIG_SITE"
2086 elif test "x$prefix" != xNONE; then
2087 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2088 else
2089 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2090 fi
2091
2092 for ac_site_file in $ac_site_files
2093 do
2094 case $ac_site_file in #(
2095 */*) :
2096 ;; #(
2097 *) :
2098 ac_site_file=./$ac_site_file ;;
2099 esac
2100 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2102 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2103 sed 's/^/| /' "$ac_site_file" >&5
2104 . "$ac_site_file" \
2105 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2106 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2107 as_fn_error $? "failed to load site script $ac_site_file
2108 See \`config.log' for more details" "$LINENO" 5; }
2109 fi
2110 done
2111
2112 if test -r "$cache_file"; then
2113 # Some versions of bash will fail to source /dev/null (special files
2114 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2115 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2117 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2118 case $cache_file in
2119 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2120 *) . "./$cache_file";;
2121 esac
2122 fi
2123 else
2124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2125 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2126 >$cache_file
2127 fi
2128
2129 # Test code for whether the C compiler supports C89 (global declarations)
2130 ac_c_conftest_c89_globals='
2131 /* Does the compiler advertise C89 conformance?
2132 Do not test the value of __STDC__, because some compilers set it to 0
2133 while being otherwise adequately conformant. */
2134 #if !defined __STDC__
2135 # error "Compiler does not advertise C89 conformance"
2136 #endif
2137
2138 #include <stddef.h>
2139 #include <stdarg.h>
2140 struct stat;
2141 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2142 struct buf { int x; };
2143 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2144 static char *e (p, i)
2145 char **p;
2146 int i;
2147 {
2148 return p[i];
2149 }
2150 static char *f (char * (*g) (char **, int), char **p, ...)
2151 {
2152 char *s;
2153 va_list v;
2154 va_start (v,p);
2155 s = g (p, va_arg (v,int));
2156 va_end (v);
2157 return s;
2158 }
2159
2160 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2161 function prototypes and stuff, but not \xHH hex character constants.
2162 These do not provoke an error unfortunately, instead are silently treated
2163 as an "x". The following induces an error, until -std is added to get
2164 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2165 array size at least. It is necessary to write \x00 == 0 to get something
2166 that is true only with -std. */
2167 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2168
2169 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2170 inside strings and character constants. */
2171 #define FOO(x) '\''x'\''
2172 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2173
2174 int test (int i, double x);
2175 struct s1 {int (*f) (int a);};
2176 struct s2 {int (*f) (double a);};
2177 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2178 int, int);'
2179
2180 # Test code for whether the C compiler supports C89 (body of main).
2181 ac_c_conftest_c89_main='
2182 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2183 '
2184
2185 # Test code for whether the C compiler supports C99 (global declarations)
2186 ac_c_conftest_c99_globals='
2187 // Does the compiler advertise C99 conformance?
2188 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2189 # error "Compiler does not advertise C99 conformance"
2190 #endif
2191
2192 #include <stdbool.h>
2193 extern int puts (const char *);
2194 extern int printf (const char *, ...);
2195 extern int dprintf (int, const char *, ...);
2196 extern void *malloc (size_t);
2197
2198 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2199 // dprintf is used instead of fprintf to avoid needing to declare
2200 // FILE and stderr.
2201 #define debug(...) dprintf (2, __VA_ARGS__)
2202 #define showlist(...) puts (#__VA_ARGS__)
2203 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2204 static void
2205 test_varargs_macros (void)
2206 {
2207 int x = 1234;
2208 int y = 5678;
2209 debug ("Flag");
2210 debug ("X = %d\n", x);
2211 showlist (The first, second, and third items.);
2212 report (x>y, "x is %d but y is %d", x, y);
2213 }
2214
2215 // Check long long types.
2216 #define BIG64 18446744073709551615ull
2217 #define BIG32 4294967295ul
2218 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2219 #if !BIG_OK
2220 #error "your preprocessor is broken"
2221 #endif
2222 #if BIG_OK
2223 #else
2224 #error "your preprocessor is broken"
2225 #endif
2226 static long long int bignum = -9223372036854775807LL;
2227 static unsigned long long int ubignum = BIG64;
2228
2229 struct incomplete_array
2230 {
2231 int datasize;
2232 double data[];
2233 };
2234
2235 struct named_init {
2236 int number;
2237 const wchar_t *name;
2238 double average;
2239 };
2240
2241 typedef const char *ccp;
2242
2243 static inline int
2244 test_restrict (ccp restrict text)
2245 {
2246 // See if C++-style comments work.
2247 // Iterate through items via the restricted pointer.
2248 // Also check for declarations in for loops.
2249 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2250 continue;
2251 return 0;
2252 }
2253
2254 // Check varargs and va_copy.
2255 static bool
2256 test_varargs (const char *format, ...)
2257 {
2258 va_list args;
2259 va_start (args, format);
2260 va_list args_copy;
2261 va_copy (args_copy, args);
2262
2263 const char *str = "";
2264 int number = 0;
2265 float fnumber = 0;
2266
2267 while (*format)
2268 {
2269 switch (*format++)
2270 {
2271 case '\''s'\'': // string
2272 str = va_arg (args_copy, const char *);
2273 break;
2274 case '\''d'\'': // int
2275 number = va_arg (args_copy, int);
2276 break;
2277 case '\''f'\'': // float
2278 fnumber = va_arg (args_copy, double);
2279 break;
2280 default:
2281 break;
2282 }
2283 }
2284 va_end (args_copy);
2285 va_end (args);
2286
2287 return *str && number && fnumber;
2288 }
2289 '
2290
2291 # Test code for whether the C compiler supports C99 (body of main).
2292 ac_c_conftest_c99_main='
2293 // Check bool.
2294 _Bool success = false;
2295 success |= (argc != 0);
2296
2297 // Check restrict.
2298 if (test_restrict ("String literal") == 0)
2299 success = true;
2300 char *restrict newvar = "Another string";
2301
2302 // Check varargs.
2303 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2304 test_varargs_macros ();
2305
2306 // Check flexible array members.
2307 struct incomplete_array *ia =
2308 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2309 ia->datasize = 10;
2310 for (int i = 0; i < ia->datasize; ++i)
2311 ia->data[i] = i * 1.234;
2312
2313 // Check named initializers.
2314 struct named_init ni = {
2315 .number = 34,
2316 .name = L"Test wide string",
2317 .average = 543.34343,
2318 };
2319
2320 ni.number = 58;
2321
2322 int dynamic_array[ni.number];
2323 dynamic_array[0] = argv[0][0];
2324 dynamic_array[ni.number - 1] = 543;
2325
2326 // work around unused variable warnings
2327 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2328 || dynamic_array[ni.number - 1] != 543);
2329 '
2330
2331 # Test code for whether the C compiler supports C11 (global declarations)
2332 ac_c_conftest_c11_globals='
2333 // Does the compiler advertise C11 conformance?
2334 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2335 # error "Compiler does not advertise C11 conformance"
2336 #endif
2337
2338 // Check _Alignas.
2339 char _Alignas (double) aligned_as_double;
2340 char _Alignas (0) no_special_alignment;
2341 extern char aligned_as_int;
2342 char _Alignas (0) _Alignas (int) aligned_as_int;
2343
2344 // Check _Alignof.
2345 enum
2346 {
2347 int_alignment = _Alignof (int),
2348 int_array_alignment = _Alignof (int[100]),
2349 char_alignment = _Alignof (char)
2350 };
2351 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2352
2353 // Check _Noreturn.
2354 int _Noreturn does_not_return (void) { for (;;) continue; }
2355
2356 // Check _Static_assert.
2357 struct test_static_assert
2358 {
2359 int x;
2360 _Static_assert (sizeof (int) <= sizeof (long int),
2361 "_Static_assert does not work in struct");
2362 long int y;
2363 };
2364
2365 // Check UTF-8 literals.
2366 #define u8 syntax error!
2367 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2368
2369 // Check duplicate typedefs.
2370 typedef long *long_ptr;
2371 typedef long int *long_ptr;
2372 typedef long_ptr long_ptr;
2373
2374 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2375 struct anonymous
2376 {
2377 union {
2378 struct { int i; int j; };
2379 struct { int k; long int l; } w;
2380 };
2381 int m;
2382 } v1;
2383 '
2384
2385 # Test code for whether the C compiler supports C11 (body of main).
2386 ac_c_conftest_c11_main='
2387 _Static_assert ((offsetof (struct anonymous, i)
2388 == offsetof (struct anonymous, w.k)),
2389 "Anonymous union alignment botch");
2390 v1.i = 2;
2391 v1.w.k = 5;
2392 ok |= v1.i != 5;
2393 '
2394
2395 # Test code for whether the C compiler supports C11 (complete).
2396 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2397 ${ac_c_conftest_c99_globals}
2398 ${ac_c_conftest_c11_globals}
2399
2400 int
2401 main (int argc, char **argv)
2402 {
2403 int ok = 0;
2404 ${ac_c_conftest_c89_main}
2405 ${ac_c_conftest_c99_main}
2406 ${ac_c_conftest_c11_main}
2407 return ok;
2408 }
2409 "
2410
2411 # Test code for whether the C compiler supports C99 (complete).
2412 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2413 ${ac_c_conftest_c99_globals}
2414
2415 int
2416 main (int argc, char **argv)
2417 {
2418 int ok = 0;
2419 ${ac_c_conftest_c89_main}
2420 ${ac_c_conftest_c99_main}
2421 return ok;
2422 }
2423 "
2424
2425 # Test code for whether the C compiler supports C89 (complete).
2426 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2427
2428 int
2429 main (int argc, char **argv)
2430 {
2431 int ok = 0;
2432 ${ac_c_conftest_c89_main}
2433 return ok;
2434 }
2435 "
2436
2437 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2438 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2439 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2440 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2441 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2442 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2443 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2444 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2445 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2446 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
2447 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
2448 as_fn_append ac_func_c_list " fork HAVE_FORK"
2449 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
2450 as_fn_append ac_header_c_list " sys/select.h sys_select_h HAVE_SYS_SELECT_H"
2451 as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H"
2452 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
2453
2454 # Auxiliary files required by this configure script.
2455 ac_aux_files="install-sh config.guess config.sub"
2456
2457 # Locations in which to look for auxiliary files.
2458 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2459
2460 # Search for a directory containing all of the required auxiliary files,
2461 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2462 # If we don't find one directory that contains all the files we need,
2463 # we report the set of missing files from the *first* directory in
2464 # $ac_aux_dir_candidates and give up.
2465 ac_missing_aux_files=""
2466 ac_first_candidate=:
2467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 as_found=false
2470 for as_dir in $ac_aux_dir_candidates
2471 do
2472 IFS=$as_save_IFS
2473 case $as_dir in #(((
2474 '') as_dir=./ ;;
2475 */) ;;
2476 *) as_dir=$as_dir/ ;;
2477 esac
2478 as_found=:
2479
2480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2481 ac_aux_dir_found=yes
2482 ac_install_sh=
2483 for ac_aux in $ac_aux_files
2484 do
2485 # As a special case, if "install-sh" is required, that requirement
2486 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2487 # and $ac_install_sh is set appropriately for whichever one is found.
2488 if test x"$ac_aux" = x"install-sh"
2489 then
2490 if test -f "${as_dir}install-sh"; then
2491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2492 ac_install_sh="${as_dir}install-sh -c"
2493 elif test -f "${as_dir}install.sh"; then
2494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2495 ac_install_sh="${as_dir}install.sh -c"
2496 elif test -f "${as_dir}shtool"; then
2497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2498 ac_install_sh="${as_dir}shtool install -c"
2499 else
2500 ac_aux_dir_found=no
2501 if $ac_first_candidate; then
2502 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2503 else
2504 break
2505 fi
2506 fi
2507 else
2508 if test -f "${as_dir}${ac_aux}"; then
2509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2510 else
2511 ac_aux_dir_found=no
2512 if $ac_first_candidate; then
2513 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2514 else
2515 break
2516 fi
2517 fi
2518 fi
2519 done
2520 if test "$ac_aux_dir_found" = yes; then
2521 ac_aux_dir="$as_dir"
2522 break
2523 fi
2524 ac_first_candidate=false
2525
2526 as_found=false
2527 done
2528 IFS=$as_save_IFS
2529 if $as_found
2530 then :
2531
2532 else $as_nop
2533 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2534 fi
2535
2536
2537 # These three variables are undocumented and unsupported,
2538 # and are intended to be withdrawn in a future Autoconf release.
2539 # They can cause serious problems if a builder's source tree is in a directory
2540 # whose full name contains unusual characters.
2541 if test -f "${ac_aux_dir}config.guess"; then
2542 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2543 fi
2544 if test -f "${ac_aux_dir}config.sub"; then
2545 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2546 fi
2547 if test -f "$ac_aux_dir/configure"; then
2548 ac_configure="$SHELL ${ac_aux_dir}configure"
2549 fi
2550
2551 # Check that the precious variables saved in the cache have kept the same
2552 # value.
2553 ac_cache_corrupted=false
2554 for ac_var in $ac_precious_vars; do
2555 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2556 eval ac_new_set=\$ac_env_${ac_var}_set
2557 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2558 eval ac_new_val=\$ac_env_${ac_var}_value
2559 case $ac_old_set,$ac_new_set in
2560 set,)
2561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2562 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2563 ac_cache_corrupted=: ;;
2564 ,set)
2565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2566 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2567 ac_cache_corrupted=: ;;
2568 ,);;
2569 *)
2570 if test "x$ac_old_val" != "x$ac_new_val"; then
2571 # differences in whitespace do not lead to failure.
2572 ac_old_val_w=`echo x $ac_old_val`
2573 ac_new_val_w=`echo x $ac_new_val`
2574 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2576 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2577 ac_cache_corrupted=:
2578 else
2579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2580 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2581 eval $ac_var=\$ac_old_val
2582 fi
2583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2584 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2586 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2587 fi;;
2588 esac
2589 # Pass precious variables to config.status.
2590 if test "$ac_new_set" = set; then
2591 case $ac_new_val in
2592 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2593 *) ac_arg=$ac_var=$ac_new_val ;;
2594 esac
2595 case " $ac_configure_args " in
2596 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2597 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2598 esac
2599 fi
2600 done
2601 if $ac_cache_corrupted; then
2602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2603 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2605 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2606 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2607 and start over" "$LINENO" 5
2608 fi
2609 ## -------------------- ##
2610 ## Main body of script. ##
2611 ## -------------------- ##
2612
2613 ac_ext=c
2614 ac_cpp='$CPP $CPPFLAGS'
2615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2618
2619
2620
2621 ac_config_headers="$ac_config_headers config.h"
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638 # Make sure we can run config.sub.
2639 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2640 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2641
2642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2643 printf %s "checking build system type... " >&6; }
2644 if test ${ac_cv_build+y}
2645 then :
2646 printf %s "(cached) " >&6
2647 else $as_nop
2648 ac_build_alias=$build_alias
2649 test "x$ac_build_alias" = x &&
2650 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2651 test "x$ac_build_alias" = x &&
2652 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2653 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2654 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2655
2656 fi
2657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2658 printf "%s\n" "$ac_cv_build" >&6; }
2659 case $ac_cv_build in
2660 *-*-*) ;;
2661 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2662 esac
2663 build=$ac_cv_build
2664 ac_save_IFS=$IFS; IFS='-'
2665 set x $ac_cv_build
2666 shift
2667 build_cpu=$1
2668 build_vendor=$2
2669 shift; shift
2670 # Remember, the first character of IFS is used to create $*,
2671 # except with old shells:
2672 build_os=$*
2673 IFS=$ac_save_IFS
2674 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2675
2676
2677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2678 printf %s "checking host system type... " >&6; }
2679 if test ${ac_cv_host+y}
2680 then :
2681 printf %s "(cached) " >&6
2682 else $as_nop
2683 if test "x$host_alias" = x; then
2684 ac_cv_host=$ac_cv_build
2685 else
2686 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2687 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2688 fi
2689
2690 fi
2691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2692 printf "%s\n" "$ac_cv_host" >&6; }
2693 case $ac_cv_host in
2694 *-*-*) ;;
2695 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2696 esac
2697 host=$ac_cv_host
2698 ac_save_IFS=$IFS; IFS='-'
2699 set x $ac_cv_host
2700 shift
2701 host_cpu=$1
2702 host_vendor=$2
2703 shift; shift
2704 # Remember, the first character of IFS is used to create $*,
2705 # except with old shells:
2706 host_os=$*
2707 IFS=$ac_save_IFS
2708 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2709
2710
2711
2712 use_openssl="yes"
2713 specialssldir=""
2714
2715 # Check whether --with-openssl was given.
2716 if test ${with_openssl+y}
2717 then :
2718 withval=$with_openssl; case "$with_openssl" in
2719 yes)
2720 ;;
2721 no)
2722 use_openssl="no"
2723 ;;
2724 *)
2725 specialssldir="$with_openssl"
2726 LDFLAGS="$LDFLAGS -L$with_openssl/lib"
2727 CPPFLAGS="-I$with_openssl/include $CPPFLAGS"
2728 ;;
2729 esac
2730
2731 fi
2732
2733
2734 # Checks for programs.
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744 ac_ext=c
2745 ac_cpp='$CPP $CPPFLAGS'
2746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2749 if test -n "$ac_tool_prefix"; then
2750 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2751 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753 printf %s "checking for $ac_word... " >&6; }
2754 if test ${ac_cv_prog_CC+y}
2755 then :
2756 printf %s "(cached) " >&6
2757 else $as_nop
2758 if test -n "$CC"; then
2759 ac_cv_prog_CC="$CC" # Let the user override the test.
2760 else
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH
2763 do
2764 IFS=$as_save_IFS
2765 case $as_dir in #(((
2766 '') as_dir=./ ;;
2767 */) ;;
2768 *) as_dir=$as_dir/ ;;
2769 esac
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2772 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2774 break 2
2775 fi
2776 done
2777 done
2778 IFS=$as_save_IFS
2779
2780 fi
2781 fi
2782 CC=$ac_cv_prog_CC
2783 if test -n "$CC"; then
2784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2785 printf "%s\n" "$CC" >&6; }
2786 else
2787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788 printf "%s\n" "no" >&6; }
2789 fi
2790
2791
2792 fi
2793 if test -z "$ac_cv_prog_CC"; then
2794 ac_ct_CC=$CC
2795 # Extract the first word of "gcc", so it can be a program name with args.
2796 set dummy gcc; ac_word=$2
2797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798 printf %s "checking for $ac_word... " >&6; }
2799 if test ${ac_cv_prog_ac_ct_CC+y}
2800 then :
2801 printf %s "(cached) " >&6
2802 else $as_nop
2803 if test -n "$ac_ct_CC"; then
2804 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2805 else
2806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 for as_dir in $PATH
2808 do
2809 IFS=$as_save_IFS
2810 case $as_dir in #(((
2811 '') as_dir=./ ;;
2812 */) ;;
2813 *) as_dir=$as_dir/ ;;
2814 esac
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2817 ac_cv_prog_ac_ct_CC="gcc"
2818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2819 break 2
2820 fi
2821 done
2822 done
2823 IFS=$as_save_IFS
2824
2825 fi
2826 fi
2827 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2828 if test -n "$ac_ct_CC"; then
2829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2830 printf "%s\n" "$ac_ct_CC" >&6; }
2831 else
2832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833 printf "%s\n" "no" >&6; }
2834 fi
2835
2836 if test "x$ac_ct_CC" = x; then
2837 CC=""
2838 else
2839 case $cross_compiling:$ac_tool_warned in
2840 yes:)
2841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2842 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2843 ac_tool_warned=yes ;;
2844 esac
2845 CC=$ac_ct_CC
2846 fi
2847 else
2848 CC="$ac_cv_prog_CC"
2849 fi
2850
2851 if test -z "$CC"; then
2852 if test -n "$ac_tool_prefix"; then
2853 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2854 set dummy ${ac_tool_prefix}cc; 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}cc"
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 fi
2896 fi
2897 if test -z "$CC"; then
2898 # Extract the first word of "cc", so it can be a program name with args.
2899 set dummy cc; ac_word=$2
2900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901 printf %s "checking for $ac_word... " >&6; }
2902 if test ${ac_cv_prog_CC+y}
2903 then :
2904 printf %s "(cached) " >&6
2905 else $as_nop
2906 if test -n "$CC"; then
2907 ac_cv_prog_CC="$CC" # Let the user override the test.
2908 else
2909 ac_prog_rejected=no
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH
2912 do
2913 IFS=$as_save_IFS
2914 case $as_dir in #(((
2915 '') as_dir=./ ;;
2916 */) ;;
2917 *) as_dir=$as_dir/ ;;
2918 esac
2919 for ac_exec_ext in '' $ac_executable_extensions; do
2920 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2921 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2922 ac_prog_rejected=yes
2923 continue
2924 fi
2925 ac_cv_prog_CC="cc"
2926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2927 break 2
2928 fi
2929 done
2930 done
2931 IFS=$as_save_IFS
2932
2933 if test $ac_prog_rejected = yes; then
2934 # We found a bogon in the path, so make sure we never use it.
2935 set dummy $ac_cv_prog_CC
2936 shift
2937 if test $# != 0; then
2938 # We chose a different compiler from the bogus one.
2939 # However, it has the same basename, so the bogon will be chosen
2940 # first if we set CC to just the basename; use the full file name.
2941 shift
2942 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2943 fi
2944 fi
2945 fi
2946 fi
2947 CC=$ac_cv_prog_CC
2948 if test -n "$CC"; then
2949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2950 printf "%s\n" "$CC" >&6; }
2951 else
2952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 printf "%s\n" "no" >&6; }
2954 fi
2955
2956
2957 fi
2958 if test -z "$CC"; then
2959 if test -n "$ac_tool_prefix"; then
2960 for ac_prog in cl.exe
2961 do
2962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2963 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 printf %s "checking for $ac_word... " >&6; }
2966 if test ${ac_cv_prog_CC+y}
2967 then :
2968 printf %s "(cached) " >&6
2969 else $as_nop
2970 if test -n "$CC"; then
2971 ac_cv_prog_CC="$CC" # Let the user override the test.
2972 else
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 for as_dir in $PATH
2975 do
2976 IFS=$as_save_IFS
2977 case $as_dir in #(((
2978 '') as_dir=./ ;;
2979 */) ;;
2980 *) as_dir=$as_dir/ ;;
2981 esac
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2984 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2986 break 2
2987 fi
2988 done
2989 done
2990 IFS=$as_save_IFS
2991
2992 fi
2993 fi
2994 CC=$ac_cv_prog_CC
2995 if test -n "$CC"; then
2996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2997 printf "%s\n" "$CC" >&6; }
2998 else
2999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 printf "%s\n" "no" >&6; }
3001 fi
3002
3003
3004 test -n "$CC" && break
3005 done
3006 fi
3007 if test -z "$CC"; then
3008 ac_ct_CC=$CC
3009 for ac_prog in cl.exe
3010 do
3011 # Extract the first word of "$ac_prog", so it can be a program name with args.
3012 set dummy $ac_prog; ac_word=$2
3013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3014 printf %s "checking for $ac_word... " >&6; }
3015 if test ${ac_cv_prog_ac_ct_CC+y}
3016 then :
3017 printf %s "(cached) " >&6
3018 else $as_nop
3019 if test -n "$ac_ct_CC"; then
3020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3021 else
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 for as_dir in $PATH
3024 do
3025 IFS=$as_save_IFS
3026 case $as_dir in #(((
3027 '') as_dir=./ ;;
3028 */) ;;
3029 *) as_dir=$as_dir/ ;;
3030 esac
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3033 ac_cv_prog_ac_ct_CC="$ac_prog"
3034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3035 break 2
3036 fi
3037 done
3038 done
3039 IFS=$as_save_IFS
3040
3041 fi
3042 fi
3043 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3044 if test -n "$ac_ct_CC"; then
3045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3046 printf "%s\n" "$ac_ct_CC" >&6; }
3047 else
3048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049 printf "%s\n" "no" >&6; }
3050 fi
3051
3052
3053 test -n "$ac_ct_CC" && break
3054 done
3055
3056 if test "x$ac_ct_CC" = x; then
3057 CC=""
3058 else
3059 case $cross_compiling:$ac_tool_warned in
3060 yes:)
3061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3062 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3063 ac_tool_warned=yes ;;
3064 esac
3065 CC=$ac_ct_CC
3066 fi
3067 fi
3068
3069 fi
3070 if test -z "$CC"; then
3071 if test -n "$ac_tool_prefix"; then
3072 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3073 set dummy ${ac_tool_prefix}clang; ac_word=$2
3074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 printf %s "checking for $ac_word... " >&6; }
3076 if test ${ac_cv_prog_CC+y}
3077 then :
3078 printf %s "(cached) " >&6
3079 else $as_nop
3080 if test -n "$CC"; then
3081 ac_cv_prog_CC="$CC" # Let the user override the test.
3082 else
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 for as_dir in $PATH
3085 do
3086 IFS=$as_save_IFS
3087 case $as_dir in #(((
3088 '') as_dir=./ ;;
3089 */) ;;
3090 *) as_dir=$as_dir/ ;;
3091 esac
3092 for ac_exec_ext in '' $ac_executable_extensions; do
3093 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3094 ac_cv_prog_CC="${ac_tool_prefix}clang"
3095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3096 break 2
3097 fi
3098 done
3099 done
3100 IFS=$as_save_IFS
3101
3102 fi
3103 fi
3104 CC=$ac_cv_prog_CC
3105 if test -n "$CC"; then
3106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3107 printf "%s\n" "$CC" >&6; }
3108 else
3109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 printf "%s\n" "no" >&6; }
3111 fi
3112
3113
3114 fi
3115 if test -z "$ac_cv_prog_CC"; then
3116 ac_ct_CC=$CC
3117 # Extract the first word of "clang", so it can be a program name with args.
3118 set dummy clang; ac_word=$2
3119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120 printf %s "checking for $ac_word... " >&6; }
3121 if test ${ac_cv_prog_ac_ct_CC+y}
3122 then :
3123 printf %s "(cached) " >&6
3124 else $as_nop
3125 if test -n "$ac_ct_CC"; then
3126 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3127 else
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 for as_dir in $PATH
3130 do
3131 IFS=$as_save_IFS
3132 case $as_dir in #(((
3133 '') as_dir=./ ;;
3134 */) ;;
3135 *) as_dir=$as_dir/ ;;
3136 esac
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3139 ac_cv_prog_ac_ct_CC="clang"
3140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3141 break 2
3142 fi
3143 done
3144 done
3145 IFS=$as_save_IFS
3146
3147 fi
3148 fi
3149 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3150 if test -n "$ac_ct_CC"; then
3151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3152 printf "%s\n" "$ac_ct_CC" >&6; }
3153 else
3154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 printf "%s\n" "no" >&6; }
3156 fi
3157
3158 if test "x$ac_ct_CC" = x; then
3159 CC=""
3160 else
3161 case $cross_compiling:$ac_tool_warned in
3162 yes:)
3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3164 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3165 ac_tool_warned=yes ;;
3166 esac
3167 CC=$ac_ct_CC
3168 fi
3169 else
3170 CC="$ac_cv_prog_CC"
3171 fi
3172
3173 fi
3174
3175
3176 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3178 as_fn_error $? "no acceptable C compiler found in \$PATH
3179 See \`config.log' for more details" "$LINENO" 5; }
3180
3181 # Provide some information about the compiler.
3182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3183 set X $ac_compile
3184 ac_compiler=$2
3185 for ac_option in --version -v -V -qversion -version; do
3186 { { ac_try="$ac_compiler $ac_option >&5"
3187 case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190 esac
3191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3192 printf "%s\n" "$ac_try_echo"; } >&5
3193 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3194 ac_status=$?
3195 if test -s conftest.err; then
3196 sed '10a\
3197 ... rest of stderr output deleted ...
3198 10q' conftest.err >conftest.er1
3199 cat conftest.er1 >&5
3200 fi
3201 rm -f conftest.er1 conftest.err
3202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3203 test $ac_status = 0; }
3204 done
3205
3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207 /* end confdefs.h. */
3208
3209 int
3210 main (void)
3211 {
3212
3213 ;
3214 return 0;
3215 }
3216 _ACEOF
3217 ac_clean_files_save=$ac_clean_files
3218 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3219 # Try to create an executable without -o first, disregard a.out.
3220 # It will help us diagnose broken compilers, and finding out an intuition
3221 # of exeext.
3222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3223 printf %s "checking whether the C compiler works... " >&6; }
3224 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3225
3226 # The possible output files:
3227 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3228
3229 ac_rmfiles=
3230 for ac_file in $ac_files
3231 do
3232 case $ac_file in
3233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3234 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3235 esac
3236 done
3237 rm -f $ac_rmfiles
3238
3239 if { { ac_try="$ac_link_default"
3240 case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243 esac
3244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245 printf "%s\n" "$ac_try_echo"; } >&5
3246 (eval "$ac_link_default") 2>&5
3247 ac_status=$?
3248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3249 test $ac_status = 0; }
3250 then :
3251 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3252 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3253 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3254 # so that the user can short-circuit this test for compilers unknown to
3255 # Autoconf.
3256 for ac_file in $ac_files ''
3257 do
3258 test -f "$ac_file" || continue
3259 case $ac_file in
3260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3261 ;;
3262 [ab].out )
3263 # We found the default executable, but exeext='' is most
3264 # certainly right.
3265 break;;
3266 *.* )
3267 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3268 then :; else
3269 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3270 fi
3271 # We set ac_cv_exeext here because the later test for it is not
3272 # safe: cross compilers may not add the suffix if given an `-o'
3273 # argument, so we may need to know it at that point already.
3274 # Even if this section looks crufty: it has the advantage of
3275 # actually working.
3276 break;;
3277 * )
3278 break;;
3279 esac
3280 done
3281 test "$ac_cv_exeext" = no && ac_cv_exeext=
3282
3283 else $as_nop
3284 ac_file=''
3285 fi
3286 if test -z "$ac_file"
3287 then :
3288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 printf "%s\n" "no" >&6; }
3290 printf "%s\n" "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3292
3293 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3295 as_fn_error 77 "C compiler cannot create executables
3296 See \`config.log' for more details" "$LINENO" 5; }
3297 else $as_nop
3298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3299 printf "%s\n" "yes" >&6; }
3300 fi
3301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3302 printf %s "checking for C compiler default output file name... " >&6; }
3303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3304 printf "%s\n" "$ac_file" >&6; }
3305 ac_exeext=$ac_cv_exeext
3306
3307 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3308 ac_clean_files=$ac_clean_files_save
3309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3310 printf %s "checking for suffix of executables... " >&6; }
3311 if { { ac_try="$ac_link"
3312 case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3315 esac
3316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317 printf "%s\n" "$ac_try_echo"; } >&5
3318 (eval "$ac_link") 2>&5
3319 ac_status=$?
3320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321 test $ac_status = 0; }
3322 then :
3323 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3324 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3325 # work properly (i.e., refer to `conftest.exe'), while it won't with
3326 # `rm'.
3327 for ac_file in conftest.exe conftest conftest.*; do
3328 test -f "$ac_file" || continue
3329 case $ac_file in
3330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3331 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3332 break;;
3333 * ) break;;
3334 esac
3335 done
3336 else $as_nop
3337 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3338 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3339 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3340 See \`config.log' for more details" "$LINENO" 5; }
3341 fi
3342 rm -f conftest conftest$ac_cv_exeext
3343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3344 printf "%s\n" "$ac_cv_exeext" >&6; }
3345
3346 rm -f conftest.$ac_ext
3347 EXEEXT=$ac_cv_exeext
3348 ac_exeext=$EXEEXT
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3351 #include <stdio.h>
3352 int
3353 main (void)
3354 {
3355 FILE *f = fopen ("conftest.out", "w");
3356 return ferror (f) || fclose (f) != 0;
3357
3358 ;
3359 return 0;
3360 }
3361 _ACEOF
3362 ac_clean_files="$ac_clean_files conftest.out"
3363 # Check that the compiler produces executables we can run. If not, either
3364 # the compiler is broken, or we cross compile.
3365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3366 printf %s "checking whether we are cross compiling... " >&6; }
3367 if test "$cross_compiling" != yes; then
3368 { { ac_try="$ac_link"
3369 case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372 esac
3373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374 printf "%s\n" "$ac_try_echo"; } >&5
3375 (eval "$ac_link") 2>&5
3376 ac_status=$?
3377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378 test $ac_status = 0; }
3379 if { ac_try='./conftest$ac_cv_exeext'
3380 { { case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383 esac
3384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3385 printf "%s\n" "$ac_try_echo"; } >&5
3386 (eval "$ac_try") 2>&5
3387 ac_status=$?
3388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3389 test $ac_status = 0; }; }; then
3390 cross_compiling=no
3391 else
3392 if test "$cross_compiling" = maybe; then
3393 cross_compiling=yes
3394 else
3395 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3397 as_fn_error 77 "cannot run C compiled programs.
3398 If you meant to cross compile, use \`--host'.
3399 See \`config.log' for more details" "$LINENO" 5; }
3400 fi
3401 fi
3402 fi
3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3404 printf "%s\n" "$cross_compiling" >&6; }
3405
3406 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3407 ac_clean_files=$ac_clean_files_save
3408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3409 printf %s "checking for suffix of object files... " >&6; }
3410 if test ${ac_cv_objext+y}
3411 then :
3412 printf %s "(cached) " >&6
3413 else $as_nop
3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h. */
3416
3417 int
3418 main (void)
3419 {
3420
3421 ;
3422 return 0;
3423 }
3424 _ACEOF
3425 rm -f conftest.o conftest.obj
3426 if { { ac_try="$ac_compile"
3427 case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 printf "%s\n" "$ac_try_echo"; } >&5
3433 (eval "$ac_compile") 2>&5
3434 ac_status=$?
3435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436 test $ac_status = 0; }
3437 then :
3438 for ac_file in conftest.o conftest.obj conftest.*; do
3439 test -f "$ac_file" || continue;
3440 case $ac_file in
3441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3442 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3443 break;;
3444 esac
3445 done
3446 else $as_nop
3447 printf "%s\n" "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3449
3450 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3452 as_fn_error $? "cannot compute suffix of object files: cannot compile
3453 See \`config.log' for more details" "$LINENO" 5; }
3454 fi
3455 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3456 fi
3457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3458 printf "%s\n" "$ac_cv_objext" >&6; }
3459 OBJEXT=$ac_cv_objext
3460 ac_objext=$OBJEXT
3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3462 printf %s "checking whether the compiler supports GNU C... " >&6; }
3463 if test ${ac_cv_c_compiler_gnu+y}
3464 then :
3465 printf %s "(cached) " >&6
3466 else $as_nop
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3469
3470 int
3471 main (void)
3472 {
3473 #ifndef __GNUC__
3474 choke me
3475 #endif
3476
3477 ;
3478 return 0;
3479 }
3480 _ACEOF
3481 if ac_fn_c_try_compile "$LINENO"
3482 then :
3483 ac_compiler_gnu=yes
3484 else $as_nop
3485 ac_compiler_gnu=no
3486 fi
3487 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3488 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3489
3490 fi
3491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3492 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494
3495 if test $ac_compiler_gnu = yes; then
3496 GCC=yes
3497 else
3498 GCC=
3499 fi
3500 ac_test_CFLAGS=${CFLAGS+y}
3501 ac_save_CFLAGS=$CFLAGS
3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3503 printf %s "checking whether $CC accepts -g... " >&6; }
3504 if test ${ac_cv_prog_cc_g+y}
3505 then :
3506 printf %s "(cached) " >&6
3507 else $as_nop
3508 ac_save_c_werror_flag=$ac_c_werror_flag
3509 ac_c_werror_flag=yes
3510 ac_cv_prog_cc_g=no
3511 CFLAGS="-g"
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3514
3515 int
3516 main (void)
3517 {
3518
3519 ;
3520 return 0;
3521 }
3522 _ACEOF
3523 if ac_fn_c_try_compile "$LINENO"
3524 then :
3525 ac_cv_prog_cc_g=yes
3526 else $as_nop
3527 CFLAGS=""
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3530
3531 int
3532 main (void)
3533 {
3534
3535 ;
3536 return 0;
3537 }
3538 _ACEOF
3539 if ac_fn_c_try_compile "$LINENO"
3540 then :
3541
3542 else $as_nop
3543 ac_c_werror_flag=$ac_save_c_werror_flag
3544 CFLAGS="-g"
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h. */
3547
3548 int
3549 main (void)
3550 {
3551
3552 ;
3553 return 0;
3554 }
3555 _ACEOF
3556 if ac_fn_c_try_compile "$LINENO"
3557 then :
3558 ac_cv_prog_cc_g=yes
3559 fi
3560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3561 fi
3562 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3563 fi
3564 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3565 ac_c_werror_flag=$ac_save_c_werror_flag
3566 fi
3567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3568 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3569 if test $ac_test_CFLAGS; then
3570 CFLAGS=$ac_save_CFLAGS
3571 elif test $ac_cv_prog_cc_g = yes; then
3572 if test "$GCC" = yes; then
3573 CFLAGS="-g -O2"
3574 else
3575 CFLAGS="-g"
3576 fi
3577 else
3578 if test "$GCC" = yes; then
3579 CFLAGS="-O2"
3580 else
3581 CFLAGS=
3582 fi
3583 fi
3584 ac_prog_cc_stdc=no
3585 if test x$ac_prog_cc_stdc = xno
3586 then :
3587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3588 printf %s "checking for $CC option to enable C11 features... " >&6; }
3589 if test ${ac_cv_prog_cc_c11+y}
3590 then :
3591 printf %s "(cached) " >&6
3592 else $as_nop
3593 ac_cv_prog_cc_c11=no
3594 ac_save_CC=$CC
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h. */
3597 $ac_c_conftest_c11_program
3598 _ACEOF
3599 for ac_arg in '' -std=gnu11
3600 do
3601 CC="$ac_save_CC $ac_arg"
3602 if ac_fn_c_try_compile "$LINENO"
3603 then :
3604 ac_cv_prog_cc_c11=$ac_arg
3605 fi
3606 rm -f core conftest.err conftest.$ac_objext conftest.beam
3607 test "x$ac_cv_prog_cc_c11" != "xno" && break
3608 done
3609 rm -f conftest.$ac_ext
3610 CC=$ac_save_CC
3611 fi
3612
3613 if test "x$ac_cv_prog_cc_c11" = xno
3614 then :
3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3616 printf "%s\n" "unsupported" >&6; }
3617 else $as_nop
3618 if test "x$ac_cv_prog_cc_c11" = x
3619 then :
3620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3621 printf "%s\n" "none needed" >&6; }
3622 else $as_nop
3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3624 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3625 CC="$CC $ac_cv_prog_cc_c11"
3626 fi
3627 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3628 ac_prog_cc_stdc=c11
3629 fi
3630 fi
3631 if test x$ac_prog_cc_stdc = xno
3632 then :
3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3634 printf %s "checking for $CC option to enable C99 features... " >&6; }
3635 if test ${ac_cv_prog_cc_c99+y}
3636 then :
3637 printf %s "(cached) " >&6
3638 else $as_nop
3639 ac_cv_prog_cc_c99=no
3640 ac_save_CC=$CC
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3643 $ac_c_conftest_c99_program
3644 _ACEOF
3645 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3646 do
3647 CC="$ac_save_CC $ac_arg"
3648 if ac_fn_c_try_compile "$LINENO"
3649 then :
3650 ac_cv_prog_cc_c99=$ac_arg
3651 fi
3652 rm -f core conftest.err conftest.$ac_objext conftest.beam
3653 test "x$ac_cv_prog_cc_c99" != "xno" && break
3654 done
3655 rm -f conftest.$ac_ext
3656 CC=$ac_save_CC
3657 fi
3658
3659 if test "x$ac_cv_prog_cc_c99" = xno
3660 then :
3661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3662 printf "%s\n" "unsupported" >&6; }
3663 else $as_nop
3664 if test "x$ac_cv_prog_cc_c99" = x
3665 then :
3666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3667 printf "%s\n" "none needed" >&6; }
3668 else $as_nop
3669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3670 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3671 CC="$CC $ac_cv_prog_cc_c99"
3672 fi
3673 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3674 ac_prog_cc_stdc=c99
3675 fi
3676 fi
3677 if test x$ac_prog_cc_stdc = xno
3678 then :
3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3680 printf %s "checking for $CC option to enable C89 features... " >&6; }
3681 if test ${ac_cv_prog_cc_c89+y}
3682 then :
3683 printf %s "(cached) " >&6
3684 else $as_nop
3685 ac_cv_prog_cc_c89=no
3686 ac_save_CC=$CC
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h. */
3689 $ac_c_conftest_c89_program
3690 _ACEOF
3691 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3692 do
3693 CC="$ac_save_CC $ac_arg"
3694 if ac_fn_c_try_compile "$LINENO"
3695 then :
3696 ac_cv_prog_cc_c89=$ac_arg
3697 fi
3698 rm -f core conftest.err conftest.$ac_objext conftest.beam
3699 test "x$ac_cv_prog_cc_c89" != "xno" && break
3700 done
3701 rm -f conftest.$ac_ext
3702 CC=$ac_save_CC
3703 fi
3704
3705 if test "x$ac_cv_prog_cc_c89" = xno
3706 then :
3707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3708 printf "%s\n" "unsupported" >&6; }
3709 else $as_nop
3710 if test "x$ac_cv_prog_cc_c89" = x
3711 then :
3712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3713 printf "%s\n" "none needed" >&6; }
3714 else $as_nop
3715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3716 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3717 CC="$CC $ac_cv_prog_cc_c89"
3718 fi
3719 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3720 ac_prog_cc_stdc=c89
3721 fi
3722 fi
3723
3724 ac_ext=c
3725 ac_cpp='$CPP $CPPFLAGS'
3726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3729
3730 if test -n "$GCC"; then
3731 CFLAGS="$CFLAGS -Wall"
3732 fi
3733
3734 # Find a good install program. We prefer a C program (faster),
3735 # so one script is as good as another. But avoid the broken or
3736 # incompatible versions:
3737 # SysV /etc/install, /usr/sbin/install
3738 # SunOS /usr/etc/install
3739 # IRIX /sbin/install
3740 # AIX /bin/install
3741 # AmigaOS /C/install, which installs bootblocks on floppy discs
3742 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3743 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3744 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3745 # OS/2's system install, which has a completely different semantic
3746 # ./install, which can be erroneously created by make from ./install.sh.
3747 # Reject install programs that cannot install multiple files.
3748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3749 printf %s "checking for a BSD-compatible install... " >&6; }
3750 if test -z "$INSTALL"; then
3751 if test ${ac_cv_path_install+y}
3752 then :
3753 printf %s "(cached) " >&6
3754 else $as_nop
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 for as_dir in $PATH
3757 do
3758 IFS=$as_save_IFS
3759 case $as_dir in #(((
3760 '') as_dir=./ ;;
3761 */) ;;
3762 *) as_dir=$as_dir/ ;;
3763 esac
3764 # Account for fact that we put trailing slashes in our PATH walk.
3765 case $as_dir in #((
3766 ./ | /[cC]/* | \
3767 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3768 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3769 /usr/ucb/* ) ;;
3770 *)
3771 # OSF1 and SCO ODT 3.0 have their own names for install.
3772 # Don't use installbsd from OSF since it installs stuff as root
3773 # by default.
3774 for ac_prog in ginstall scoinst install; do
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3777 if test $ac_prog = install &&
3778 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3779 # AIX install. It has an incompatible calling convention.
3780 :
3781 elif test $ac_prog = install &&
3782 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3783 # program-specific install script used by HP pwplus--don't use.
3784 :
3785 else
3786 rm -rf conftest.one conftest.two conftest.dir
3787 echo one > conftest.one
3788 echo two > conftest.two
3789 mkdir conftest.dir
3790 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3791 test -s conftest.one && test -s conftest.two &&
3792 test -s conftest.dir/conftest.one &&
3793 test -s conftest.dir/conftest.two
3794 then
3795 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3796 break 3
3797 fi
3798 fi
3799 fi
3800 done
3801 done
3802 ;;
3803 esac
3804
3805 done
3806 IFS=$as_save_IFS
3807
3808 rm -rf conftest.one conftest.two conftest.dir
3809
3810 fi
3811 if test ${ac_cv_path_install+y}; then
3812 INSTALL=$ac_cv_path_install
3813 else
3814 # As a last resort, use the slow shell script. Don't cache a
3815 # value for INSTALL within a source directory, because that will
3816 # break other packages using the cache if that directory is
3817 # removed, or if the value is a relative name.
3818 INSTALL=$ac_install_sh
3819 fi
3820 fi
3821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3822 printf "%s\n" "$INSTALL" >&6; }
3823
3824 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3825 # It thinks the first close brace ends the variable substitution.
3826 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3827
3828 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3829
3830 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3831
3832
3833 if test -n "$ac_tool_prefix"; then
3834 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3835 set dummy ${ac_tool_prefix}strip; ac_word=$2
3836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837 printf %s "checking for $ac_word... " >&6; }
3838 if test ${ac_cv_path_STRIP+y}
3839 then :
3840 printf %s "(cached) " >&6
3841 else $as_nop
3842 case $STRIP in
3843 [\\/]* | ?:[\\/]*)
3844 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
3845 ;;
3846 *)
3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848 for as_dir in $PATH
3849 do
3850 IFS=$as_save_IFS
3851 case $as_dir in #(((
3852 '') as_dir=./ ;;
3853 */) ;;
3854 *) as_dir=$as_dir/ ;;
3855 esac
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3858 ac_cv_path_STRIP="$as_dir$ac_word$ac_exec_ext"
3859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3860 break 2
3861 fi
3862 done
3863 done
3864 IFS=$as_save_IFS
3865
3866 ;;
3867 esac
3868 fi
3869 STRIP=$ac_cv_path_STRIP
3870 if test -n "$STRIP"; then
3871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3872 printf "%s\n" "$STRIP" >&6; }
3873 else
3874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875 printf "%s\n" "no" >&6; }
3876 fi
3877
3878
3879 fi
3880 if test -z "$ac_cv_path_STRIP"; then
3881 ac_pt_STRIP=$STRIP
3882 # Extract the first word of "strip", so it can be a program name with args.
3883 set dummy strip; ac_word=$2
3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885 printf %s "checking for $ac_word... " >&6; }
3886 if test ${ac_cv_path_ac_pt_STRIP+y}
3887 then :
3888 printf %s "(cached) " >&6
3889 else $as_nop
3890 case $ac_pt_STRIP in
3891 [\\/]* | ?:[\\/]*)
3892 ac_cv_path_ac_pt_STRIP="$ac_pt_STRIP" # Let the user override the test with a path.
3893 ;;
3894 *)
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 for as_dir in $PATH
3897 do
3898 IFS=$as_save_IFS
3899 case $as_dir in #(((
3900 '') as_dir=./ ;;
3901 */) ;;
3902 *) as_dir=$as_dir/ ;;
3903 esac
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3906 ac_cv_path_ac_pt_STRIP="$as_dir$ac_word$ac_exec_ext"
3907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3908 break 2
3909 fi
3910 done
3911 done
3912 IFS=$as_save_IFS
3913
3914 ;;
3915 esac
3916 fi
3917 ac_pt_STRIP=$ac_cv_path_ac_pt_STRIP
3918 if test -n "$ac_pt_STRIP"; then
3919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_STRIP" >&5
3920 printf "%s\n" "$ac_pt_STRIP" >&6; }
3921 else
3922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923 printf "%s\n" "no" >&6; }
3924 fi
3925
3926 if test "x$ac_pt_STRIP" = x; then
3927 STRIP="/bin/true"
3928 else
3929 case $cross_compiling:$ac_tool_warned in
3930 yes:)
3931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3932 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3933 ac_tool_warned=yes ;;
3934 esac
3935 STRIP=$ac_pt_STRIP
3936 fi
3937 else
3938 STRIP="$ac_cv_path_STRIP"
3939 fi
3940
3941
3942 # Checks for header files.
3943
3944 ac_header= ac_cache=
3945 for ac_item in $ac_header_c_list
3946 do
3947 if test $ac_cache; then
3948 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3949 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3950 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3951 fi
3952 ac_header= ac_cache=
3953 elif test $ac_header; then
3954 ac_cache=$ac_item
3955 else
3956 ac_header=$ac_item
3957 fi
3958 done
3959
3960
3961
3962
3963
3964
3965
3966
3967 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3968 then :
3969
3970 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3971
3972 fi
3973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3974 printf %s "checking for grep that handles long lines and -e... " >&6; }
3975 if test ${ac_cv_path_GREP+y}
3976 then :
3977 printf %s "(cached) " >&6
3978 else $as_nop
3979 if test -z "$GREP"; then
3980 ac_path_GREP_found=false
3981 # Loop through the user's path and test for each of PROGNAME-LIST
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3984 do
3985 IFS=$as_save_IFS
3986 case $as_dir in #(((
3987 '') as_dir=./ ;;
3988 */) ;;
3989 *) as_dir=$as_dir/ ;;
3990 esac
3991 for ac_prog in grep ggrep
3992 do
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
3995 as_fn_executable_p "$ac_path_GREP" || continue
3996 # Check for GNU ac_path_GREP and select it if it is found.
3997 # Check for GNU $ac_path_GREP
3998 case `"$ac_path_GREP" --version 2>&1` in
3999 *GNU*)
4000 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4001 *)
4002 ac_count=0
4003 printf %s 0123456789 >"conftest.in"
4004 while :
4005 do
4006 cat "conftest.in" "conftest.in" >"conftest.tmp"
4007 mv "conftest.tmp" "conftest.in"
4008 cp "conftest.in" "conftest.nl"
4009 printf "%s\n" 'GREP' >> "conftest.nl"
4010 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4011 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4012 as_fn_arith $ac_count + 1 && ac_count=$as_val
4013 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4014 # Best one so far, save it but keep looking for a better one
4015 ac_cv_path_GREP="$ac_path_GREP"
4016 ac_path_GREP_max=$ac_count
4017 fi
4018 # 10*(2^10) chars as input seems more than enough
4019 test $ac_count -gt 10 && break
4020 done
4021 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4022 esac
4023
4024 $ac_path_GREP_found && break 3
4025 done
4026 done
4027 done
4028 IFS=$as_save_IFS
4029 if test -z "$ac_cv_path_GREP"; then
4030 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4031 fi
4032 else
4033 ac_cv_path_GREP=$GREP
4034 fi
4035
4036 fi
4037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4038 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4039 GREP="$ac_cv_path_GREP"
4040
4041
4042 # Autoupdate added the next two lines to ensure that your configure
4043 # script's behavior did not change. They are probably safe to remove.
4044
4045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4046 printf %s "checking for egrep... " >&6; }
4047 if test ${ac_cv_path_EGREP+y}
4048 then :
4049 printf %s "(cached) " >&6
4050 else $as_nop
4051 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4052 then ac_cv_path_EGREP="$GREP -E"
4053 else
4054 if test -z "$EGREP"; then
4055 ac_path_EGREP_found=false
4056 # Loop through the user's path and test for each of PROGNAME-LIST
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4059 do
4060 IFS=$as_save_IFS
4061 case $as_dir in #(((
4062 '') as_dir=./ ;;
4063 */) ;;
4064 *) as_dir=$as_dir/ ;;
4065 esac
4066 for ac_prog in egrep
4067 do
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4070 as_fn_executable_p "$ac_path_EGREP" || continue
4071 # Check for GNU ac_path_EGREP and select it if it is found.
4072 # Check for GNU $ac_path_EGREP
4073 case `"$ac_path_EGREP" --version 2>&1` in
4074 *GNU*)
4075 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4076 *)
4077 ac_count=0
4078 printf %s 0123456789 >"conftest.in"
4079 while :
4080 do
4081 cat "conftest.in" "conftest.in" >"conftest.tmp"
4082 mv "conftest.tmp" "conftest.in"
4083 cp "conftest.in" "conftest.nl"
4084 printf "%s\n" 'EGREP' >> "conftest.nl"
4085 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4086 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4087 as_fn_arith $ac_count + 1 && ac_count=$as_val
4088 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4089 # Best one so far, save it but keep looking for a better one
4090 ac_cv_path_EGREP="$ac_path_EGREP"
4091 ac_path_EGREP_max=$ac_count
4092 fi
4093 # 10*(2^10) chars as input seems more than enough
4094 test $ac_count -gt 10 && break
4095 done
4096 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4097 esac
4098
4099 $ac_path_EGREP_found && break 3
4100 done
4101 done
4102 done
4103 IFS=$as_save_IFS
4104 if test -z "$ac_cv_path_EGREP"; then
4105 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4106 fi
4107 else
4108 ac_cv_path_EGREP=$EGREP
4109 fi
4110
4111 fi
4112 fi
4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4114 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4115 EGREP="$ac_cv_path_EGREP"
4116
4117
4118
4119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4120 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4121 if test ${ac_cv_header_sys_wait_h+y}
4122 then :
4123 printf %s "(cached) " >&6
4124 else $as_nop
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4127 #include <sys/types.h>
4128 #include <sys/wait.h>
4129 #ifndef WEXITSTATUS
4130 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4131 #endif
4132 #ifndef WIFEXITED
4133 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4134 #endif
4135
4136 int
4137 main (void)
4138 {
4139 int s;
4140 wait (&s);
4141 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4142 ;
4143 return 0;
4144 }
4145 _ACEOF
4146 if ac_fn_c_try_compile "$LINENO"
4147 then :
4148 ac_cv_header_sys_wait_h=yes
4149 else $as_nop
4150 ac_cv_header_sys_wait_h=no
4151 fi
4152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4153 fi
4154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4155 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
4156 if test $ac_cv_header_sys_wait_h = yes; then
4157
4158 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4159
4160 fi
4161
4162 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
4163 if test "x$ac_cv_header_fcntl_h" = xyes
4164 then :
4165 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
4166
4167 fi
4168 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
4169 if test "x$ac_cv_header_limits_h" = xyes
4170 then :
4171 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
4172
4173 fi
4174 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
4175 if test "x$ac_cv_header_netdb_h" = xyes
4176 then :
4177 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
4178
4179 fi
4180 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
4181 if test "x$ac_cv_header_netinet_in_h" = xyes
4182 then :
4183 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
4184
4185 fi
4186 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4187 if test "x$ac_cv_header_stdlib_h" = xyes
4188 then :
4189 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
4190
4191 fi
4192 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4193 if test "x$ac_cv_header_string_h" = xyes
4194 then :
4195 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
4196
4197 fi
4198 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
4199 if test "x$ac_cv_header_strings_h" = xyes
4200 then :
4201 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
4202
4203 fi
4204 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
4205 if test "x$ac_cv_header_sys_param_h" = xyes
4206 then :
4207 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
4208
4209 fi
4210 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
4211 if test "x$ac_cv_header_sys_socket_h" = xyes
4212 then :
4213 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
4214
4215 fi
4216 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
4217 if test "x$ac_cv_header_sys_time_h" = xyes
4218 then :
4219 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
4220
4221 fi
4222 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4223 if test "x$ac_cv_header_unistd_h" = xyes
4224 then :
4225 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
4226
4227 fi
4228 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
4229 if test "x$ac_cv_header_sys_un_h" = xyes
4230 then :
4231 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
4232
4233 fi
4234
4235 ac_fn_c_check_header_compile "$LINENO" "linux/vm_sockets.h" "ac_cv_header_linux_vm_sockets_h" "#include <sys/socket.h>
4236 "
4237 if test "x$ac_cv_header_linux_vm_sockets_h" = xyes
4238 then :
4239 printf "%s\n" "#define HAVE_LINUX_VM_SOCKETS_H 1" >>confdefs.h
4240
4241 fi
4242
4243
4244 # Checks for typedefs, structures, and compiler characteristics.
4245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
4246 printf %s "checking whether stat file-mode macros are broken... " >&6; }
4247 if test ${ac_cv_header_stat_broken+y}
4248 then :
4249 printf %s "(cached) " >&6
4250 else $as_nop
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4253 #include <sys/types.h>
4254 #include <sys/stat.h>
4255
4256 #if defined S_ISBLK && defined S_IFDIR
4257 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
4258 #endif
4259
4260 #if defined S_ISBLK && defined S_IFCHR
4261 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
4262 #endif
4263
4264 #if defined S_ISLNK && defined S_IFREG
4265 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
4266 #endif
4267
4268 #if defined S_ISSOCK && defined S_IFREG
4269 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
4270 #endif
4271
4272 _ACEOF
4273 if ac_fn_c_try_compile "$LINENO"
4274 then :
4275 ac_cv_header_stat_broken=no
4276 else $as_nop
4277 ac_cv_header_stat_broken=yes
4278 fi
4279 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4280 fi
4281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
4282 printf "%s\n" "$ac_cv_header_stat_broken" >&6; }
4283 if test $ac_cv_header_stat_broken = yes; then
4284
4285 printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h
4286
4287 fi
4288
4289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4290 printf %s "checking for an ANSI C-conforming const... " >&6; }
4291 if test ${ac_cv_c_const+y}
4292 then :
4293 printf %s "(cached) " >&6
4294 else $as_nop
4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4297
4298 int
4299 main (void)
4300 {
4301
4302 #ifndef __cplusplus
4303 /* Ultrix mips cc rejects this sort of thing. */
4304 typedef int charset[2];
4305 const charset cs = { 0, 0 };
4306 /* SunOS 4.1.1 cc rejects this. */
4307 char const *const *pcpcc;
4308 char **ppc;
4309 /* NEC SVR4.0.2 mips cc rejects this. */
4310 struct point {int x, y;};
4311 static struct point const zero = {0,0};
4312 /* IBM XL C 1.02.0.0 rejects this.
4313 It does not let you subtract one const X* pointer from another in
4314 an arm of an if-expression whose if-part is not a constant
4315 expression */
4316 const char *g = "string";
4317 pcpcc = &g + (g ? g-g : 0);
4318 /* HPUX 7.0 cc rejects these. */
4319 ++pcpcc;
4320 ppc = (char**) pcpcc;
4321 pcpcc = (char const *const *) ppc;
4322 { /* SCO 3.2v4 cc rejects this sort of thing. */
4323 char tx;
4324 char *t = &tx;
4325 char const *s = 0 ? (char *) 0 : (char const *) 0;
4326
4327 *t++ = 0;
4328 if (s) return 0;
4329 }
4330 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4331 int x[] = {25, 17};
4332 const int *foo = &x[0];
4333 ++foo;
4334 }
4335 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4336 typedef const int *iptr;
4337 iptr p = 0;
4338 ++p;
4339 }
4340 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
4341 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4342 struct s { int j; const int *ap[3]; } bx;
4343 struct s *b = &bx; b->j = 5;
4344 }
4345 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4346 const int foo = 10;
4347 if (!foo) return 0;
4348 }
4349 return !cs[0] && !zero.x;
4350 #endif
4351
4352 ;
4353 return 0;
4354 }
4355 _ACEOF
4356 if ac_fn_c_try_compile "$LINENO"
4357 then :
4358 ac_cv_c_const=yes
4359 else $as_nop
4360 ac_cv_c_const=no
4361 fi
4362 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4363 fi
4364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4365 printf "%s\n" "$ac_cv_c_const" >&6; }
4366 if test $ac_cv_c_const = no; then
4367
4368 printf "%s\n" "#define const /**/" >>confdefs.h
4369
4370 fi
4371
4372
4373
4374 # Obsolete code to be removed.
4375 if test $ac_cv_header_sys_time_h = yes; then
4376
4377 printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4378
4379 fi
4380 # End of obsolete code.
4381
4382
4383 # Checks for library functions.
4384
4385 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
4386 "
4387 if test "x$ac_cv_type_pid_t" = xyes
4388 then :
4389
4390 else $as_nop
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h. */
4393
4394 #if defined _WIN64 && !defined __CYGWIN__
4395 LLP64
4396 #endif
4397
4398 int
4399 main (void)
4400 {
4401
4402 ;
4403 return 0;
4404 }
4405
4406 _ACEOF
4407 if ac_fn_c_try_compile "$LINENO"
4408 then :
4409 ac_pid_type='int'
4410 else $as_nop
4411 ac_pid_type='__int64'
4412 fi
4413 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4414
4415 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
4416
4417
4418 fi
4419
4420
4421
4422 ac_func=
4423 for ac_item in $ac_func_c_list
4424 do
4425 if test $ac_func; then
4426 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
4427 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
4428 echo "#define $ac_item 1" >> confdefs.h
4429 fi
4430 ac_func=
4431 else
4432 ac_func=$ac_item
4433 fi
4434 done
4435
4436
4437
4438 if test "x$ac_cv_func_fork" = xyes; then
4439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
4440 printf %s "checking for working fork... " >&6; }
4441 if test ${ac_cv_func_fork_works+y}
4442 then :
4443 printf %s "(cached) " >&6
4444 else $as_nop
4445 if test "$cross_compiling" = yes
4446 then :
4447 ac_cv_func_fork_works=cross
4448 else $as_nop
4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4451 $ac_includes_default
4452 int
4453 main (void)
4454 {
4455
4456 /* By Ruediger Kuhlmann. */
4457 return fork () < 0;
4458
4459 ;
4460 return 0;
4461 }
4462 _ACEOF
4463 if ac_fn_c_try_run "$LINENO"
4464 then :
4465 ac_cv_func_fork_works=yes
4466 else $as_nop
4467 ac_cv_func_fork_works=no
4468 fi
4469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4470 conftest.$ac_objext conftest.beam conftest.$ac_ext
4471 fi
4472
4473 fi
4474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
4475 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
4476
4477 else
4478 ac_cv_func_fork_works=$ac_cv_func_fork
4479 fi
4480 if test "x$ac_cv_func_fork_works" = xcross; then
4481 case $host in
4482 *-*-amigaos* | *-*-msdosdjgpp*)
4483 # Override, as these systems have only a dummy fork() stub
4484 ac_cv_func_fork_works=no
4485 ;;
4486 *)
4487 ac_cv_func_fork_works=yes
4488 ;;
4489 esac
4490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
4491 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
4492 fi
4493 ac_cv_func_vfork_works=$ac_cv_func_vfork
4494 if test "x$ac_cv_func_vfork" = xyes; then
4495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
4496 printf %s "checking for working vfork... " >&6; }
4497 if test ${ac_cv_func_vfork_works+y}
4498 then :
4499 printf %s "(cached) " >&6
4500 else $as_nop
4501 if test "$cross_compiling" = yes
4502 then :
4503 ac_cv_func_vfork_works=cross
4504 else $as_nop
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4507 /* Thanks to Paul Eggert for this test. */
4508 $ac_includes_default
4509 #include <signal.h>
4510 #include <sys/wait.h>
4511 #ifdef HAVE_VFORK_H
4512 # include <vfork.h>
4513 #endif
4514
4515 static void
4516 do_nothing (int sig)
4517 {
4518 (void) sig;
4519 }
4520
4521 /* On some sparc systems, changes by the child to local and incoming
4522 argument registers are propagated back to the parent. The compiler
4523 is told about this with #include <vfork.h>, but some compilers
4524 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
4525 static variable whose address is put into a register that is
4526 clobbered by the vfork. */
4527 static void
4528 sparc_address_test (int arg)
4529 {
4530 static pid_t child;
4531 if (!child) {
4532 child = vfork ();
4533 if (child < 0) {
4534 perror ("vfork");
4535 _exit(2);
4536 }
4537 if (!child) {
4538 arg = getpid();
4539 write(-1, "", 0);
4540 _exit (arg);
4541 }
4542 }
4543 }
4544
4545 int
4546 main (void)
4547 {
4548 pid_t parent = getpid ();
4549 pid_t child;
4550
4551 sparc_address_test (0);
4552
4553 /* On Solaris 2.4, changes by the child to the signal handler
4554 also munge signal handlers in the parent. To detect this,
4555 start by putting the parent's handler in a known state. */
4556 signal (SIGTERM, SIG_DFL);
4557
4558 child = vfork ();
4559
4560 if (child == 0) {
4561 /* Here is another test for sparc vfork register problems. This
4562 test uses lots of local variables, at least as many local
4563 variables as main has allocated so far including compiler
4564 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
4565 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
4566 reuse the register of parent for one of the local variables,
4567 since it will think that parent can't possibly be used any more
4568 in this routine. Assigning to the local variable will thus
4569 munge parent in the parent process. */
4570 pid_t
4571 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4572 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4573 /* Convince the compiler that p..p7 are live; otherwise, it might
4574 use the same hardware register for all 8 local variables. */
4575 if (p != p1 || p != p2 || p != p3 || p != p4
4576 || p != p5 || p != p6 || p != p7)
4577 _exit(1);
4578
4579 /* Alter the child's signal handler. */
4580 if (signal (SIGTERM, do_nothing) != SIG_DFL)
4581 _exit(1);
4582
4583 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
4584 from child file descriptors. If the child closes a descriptor
4585 before it execs or exits, this munges the parent's descriptor
4586 as well. Test for this by closing stdout in the child. */
4587 _exit(close(fileno(stdout)) != 0);
4588 } else {
4589 int status;
4590 struct stat st;
4591
4592 while (wait(&status) != child)
4593 ;
4594 return (
4595 /* Was there some problem with vforking? */
4596 child < 0
4597
4598 /* Did the child munge the parent's signal handler? */
4599 || signal (SIGTERM, SIG_DFL) != SIG_DFL
4600
4601 /* Did the child fail? (This shouldn't happen.) */
4602 || status
4603
4604 /* Did the vfork/compiler bug occur? */
4605 || parent != getpid()
4606
4607 /* Did the file descriptor bug occur? */
4608 || fstat(fileno(stdout), &st) != 0
4609 );
4610 }
4611 }
4612 _ACEOF
4613 if ac_fn_c_try_run "$LINENO"
4614 then :
4615 ac_cv_func_vfork_works=yes
4616 else $as_nop
4617 ac_cv_func_vfork_works=no
4618 fi
4619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4620 conftest.$ac_objext conftest.beam conftest.$ac_ext
4621 fi
4622
4623 fi
4624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
4625 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
4626
4627 fi;
4628 if test "x$ac_cv_func_fork_works" = xcross; then
4629 ac_cv_func_vfork_works=$ac_cv_func_vfork
4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
4631 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
4632 fi
4633
4634 if test "x$ac_cv_func_vfork_works" = xyes; then
4635
4636 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
4637
4638 else
4639
4640 printf "%s\n" "#define vfork fork" >>confdefs.h
4641
4642 fi
4643 if test "x$ac_cv_func_fork_works" = xyes; then
4644
4645 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
4646
4647 fi
4648
4649
4650
4651
4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
4653 printf %s "checking types of arguments for select... " >&6; }
4654 if test ${ac_cv_func_select_args+y}
4655 then :
4656 printf %s "(cached) " >&6
4657 else $as_nop
4658 ac_cv_func_select_args='int,int *,struct timeval *'
4659 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
4660 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
4661 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4664 $ac_includes_default
4665 #ifdef HAVE_SYS_SELECT_H
4666 # include <sys/select.h>
4667 #endif
4668 #ifdef HAVE_SYS_SOCKET_H
4669 # include <sys/socket.h>
4670 #endif
4671
4672 int
4673 main (void)
4674 {
4675 extern int select ($ac_arg1,
4676 $ac_arg234, $ac_arg234, $ac_arg234,
4677 $ac_arg5);
4678 ;
4679 return 0;
4680 }
4681 _ACEOF
4682 if ac_fn_c_try_compile "$LINENO"
4683 then :
4684 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
4685 fi
4686 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4687 done
4688 done
4689 done
4690
4691 fi
4692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
4693 printf "%s\n" "$ac_cv_func_select_args" >&6; }
4694 ac_save_IFS=$IFS; IFS=','
4695 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
4696 IFS=$ac_save_IFS
4697 shift
4698
4699 printf "%s\n" "#define SELECT_TYPE_ARG1 $1" >>confdefs.h
4700
4701
4702 printf "%s\n" "#define SELECT_TYPE_ARG234 ($2)" >>confdefs.h
4703
4704
4705 printf "%s\n" "#define SELECT_TYPE_ARG5 ($3)" >>confdefs.h
4706
4707 rm -rf conftest*
4708
4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4710 printf %s "checking return type of signal handlers... " >&6; }
4711 if test ${ac_cv_type_signal+y}
4712 then :
4713 printf %s "(cached) " >&6
4714 else $as_nop
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4717 #include <sys/types.h>
4718 #include <signal.h>
4719
4720 int
4721 main (void)
4722 {
4723 return *(signal (0, 0)) (0) == 1;
4724 ;
4725 return 0;
4726 }
4727 _ACEOF
4728 if ac_fn_c_try_compile "$LINENO"
4729 then :
4730 ac_cv_type_signal=int
4731 else $as_nop
4732 ac_cv_type_signal=void
4733 fi
4734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4735 fi
4736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4737 printf "%s\n" "$ac_cv_type_signal" >&6; }
4738
4739 printf "%s\n" "#define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h
4740
4741
4742
4743
4744 if test "x$ac_cv_func_vprintf" = xno
4745 then :
4746 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
4747 if test "x$ac_cv_func__doprnt" = xyes
4748 then :
4749
4750 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
4751
4752 fi
4753
4754 fi
4755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
4756 printf %s "checking for library containing setsockopt... " >&6; }
4757 if test ${ac_cv_search_setsockopt+y}
4758 then :
4759 printf %s "(cached) " >&6
4760 else $as_nop
4761 ac_func_search_save_LIBS=$LIBS
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4764
4765 /* Override any GCC internal prototype to avoid an error.
4766 Use char because int might match the return type of a GCC
4767 builtin and then its argument prototype would still apply. */
4768 char setsockopt ();
4769 int
4770 main (void)
4771 {
4772 return setsockopt ();
4773 ;
4774 return 0;
4775 }
4776 _ACEOF
4777 for ac_lib in '' socket
4778 do
4779 if test -z "$ac_lib"; then
4780 ac_res="none required"
4781 else
4782 ac_res=-l$ac_lib
4783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4784 fi
4785 if ac_fn_c_try_link "$LINENO"
4786 then :
4787 ac_cv_search_setsockopt=$ac_res
4788 fi
4789 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4790 conftest$ac_exeext
4791 if test ${ac_cv_search_setsockopt+y}
4792 then :
4793 break
4794 fi
4795 done
4796 if test ${ac_cv_search_setsockopt+y}
4797 then :
4798
4799 else $as_nop
4800 ac_cv_search_setsockopt=no
4801 fi
4802 rm conftest.$ac_ext
4803 LIBS=$ac_func_search_save_LIBS
4804 fi
4805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
4806 printf "%s\n" "$ac_cv_search_setsockopt" >&6; }
4807 ac_res=$ac_cv_search_setsockopt
4808 if test "$ac_res" != no
4809 then :
4810 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4811
4812 fi
4813
4814 # Ncat does not call gethostbyname directly, but some of the libraries
4815 # it links to (such as libpcap) do. Instead it calls getaddrinfo. At
4816 # one point we changed this test to use getaddrinfo rather than
4817 # gethostbyname, but on a Solaris 9 SPARC box that function could be
4818 # called without -lnsl, while gethostbyname sitll required -lnsl, so
4819 # we changed the test back.
4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4821 printf %s "checking for library containing gethostbyname... " >&6; }
4822 if test ${ac_cv_search_gethostbyname+y}
4823 then :
4824 printf %s "(cached) " >&6
4825 else $as_nop
4826 ac_func_search_save_LIBS=$LIBS
4827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828 /* end confdefs.h. */
4829
4830 /* Override any GCC internal prototype to avoid an error.
4831 Use char because int might match the return type of a GCC
4832 builtin and then its argument prototype would still apply. */
4833 char gethostbyname ();
4834 int
4835 main (void)
4836 {
4837 return gethostbyname ();
4838 ;
4839 return 0;
4840 }
4841 _ACEOF
4842 for ac_lib in '' nsl
4843 do
4844 if test -z "$ac_lib"; then
4845 ac_res="none required"
4846 else
4847 ac_res=-l$ac_lib
4848 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4849 fi
4850 if ac_fn_c_try_link "$LINENO"
4851 then :
4852 ac_cv_search_gethostbyname=$ac_res
4853 fi
4854 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4855 conftest$ac_exeext
4856 if test ${ac_cv_search_gethostbyname+y}
4857 then :
4858 break
4859 fi
4860 done
4861 if test ${ac_cv_search_gethostbyname+y}
4862 then :
4863
4864 else $as_nop
4865 ac_cv_search_gethostbyname=no
4866 fi
4867 rm conftest.$ac_ext
4868 LIBS=$ac_func_search_save_LIBS
4869 fi
4870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4871 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
4872 ac_res=$ac_cv_search_gethostbyname
4873 if test "$ac_res" != no
4874 then :
4875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4876
4877 fi
4878
4879 # OpenSSL requires dlopen on some platforms
4880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4881 printf %s "checking for library containing dlopen... " >&6; }
4882 if test ${ac_cv_search_dlopen+y}
4883 then :
4884 printf %s "(cached) " >&6
4885 else $as_nop
4886 ac_func_search_save_LIBS=$LIBS
4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h. */
4889
4890 /* Override any GCC internal prototype to avoid an error.
4891 Use char because int might match the return type of a GCC
4892 builtin and then its argument prototype would still apply. */
4893 char dlopen ();
4894 int
4895 main (void)
4896 {
4897 return dlopen ();
4898 ;
4899 return 0;
4900 }
4901 _ACEOF
4902 for ac_lib in '' dl
4903 do
4904 if test -z "$ac_lib"; then
4905 ac_res="none required"
4906 else
4907 ac_res=-l$ac_lib
4908 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4909 fi
4910 if ac_fn_c_try_link "$LINENO"
4911 then :
4912 ac_cv_search_dlopen=$ac_res
4913 fi
4914 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4915 conftest$ac_exeext
4916 if test ${ac_cv_search_dlopen+y}
4917 then :
4918 break
4919 fi
4920 done
4921 if test ${ac_cv_search_dlopen+y}
4922 then :
4923
4924 else $as_nop
4925 ac_cv_search_dlopen=no
4926 fi
4927 rm conftest.$ac_ext
4928 LIBS=$ac_func_search_save_LIBS
4929 fi
4930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4931 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
4932 ac_res=$ac_cv_search_dlopen
4933 if test "$ac_res" != no
4934 then :
4935 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4936
4937 fi
4938
4939 ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
4940 if test "x$ac_cv_func_dup2" = xyes
4941 then :
4942 printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h
4943
4944 fi
4945 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
4946 if test "x$ac_cv_func_gettimeofday" = xyes
4947 then :
4948 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
4949
4950 fi
4951 ac_fn_c_check_func "$LINENO" "inet_ntoa" "ac_cv_func_inet_ntoa"
4952 if test "x$ac_cv_func_inet_ntoa" = xyes
4953 then :
4954 printf "%s\n" "#define HAVE_INET_NTOA 1" >>confdefs.h
4955
4956 fi
4957 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
4958 if test "x$ac_cv_func_memset" = xyes
4959 then :
4960 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
4961
4962 fi
4963 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
4964 if test "x$ac_cv_func_mkstemp" = xyes
4965 then :
4966 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
4967
4968 fi
4969 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
4970 if test "x$ac_cv_func_select" = xyes
4971 then :
4972 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
4973
4974 fi
4975 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
4976 if test "x$ac_cv_func_socket" = xyes
4977 then :
4978 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
4979
4980 fi
4981 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
4982 if test "x$ac_cv_func_strcasecmp" = xyes
4983 then :
4984 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
4985
4986 fi
4987 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
4988 if test "x$ac_cv_func_strchr" = xyes
4989 then :
4990 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
4991
4992 fi
4993 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
4994 if test "x$ac_cv_func_strdup" = xyes
4995 then :
4996 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
4997
4998 fi
4999 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
5000 if test "x$ac_cv_func_strerror" = xyes
5001 then :
5002 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
5003
5004 fi
5005 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
5006 if test "x$ac_cv_func_strncasecmp" = xyes
5007 then :
5008 printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
5009
5010 fi
5011 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
5012 if test "x$ac_cv_func_strtol" = xyes
5013 then :
5014 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
5015
5016 fi
5017
5018
5019 # If they didn't specify it, we try to find it
5020 if test "$use_openssl" = "yes" -a -z "$specialssldir" ; then
5021 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
5022 if test "x$ac_cv_header_openssl_ssl_h" = xyes
5023 then :
5024
5025 else $as_nop
5026 use_openssl="no"
5027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Failed to find openssl/ssl.h so OpenSSL will not be used.
5028 If it is installed you can try the --with-openssl=DIR argument" >&5
5029 printf "%s\n" "$as_me: WARNING: Failed to find openssl/ssl.h so OpenSSL will not be used.
5030 If it is installed you can try the --with-openssl=DIR argument" >&2;}
5031 fi
5032
5033
5034 if test "$use_openssl" = "yes"; then
5035 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
5036 if test "x$ac_cv_header_openssl_err_h" = xyes
5037 then :
5038
5039 else $as_nop
5040 use_openssl="no"
5041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Failed to find openssl/err.h so OpenSSL will not be used.
5042 If it is installed you can try the --with-openssl=DIR argument" >&5
5043 printf "%s\n" "$as_me: WARNING: Failed to find openssl/err.h so OpenSSL will not be used.
5044 If it is installed you can try the --with-openssl=DIR argument" >&2;}
5045 fi
5046
5047 fi
5048
5049 if test "$use_openssl" = "yes"; then
5050 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default"
5051 if test "x$ac_cv_header_openssl_rand_h" = xyes
5052 then :
5053
5054 else $as_nop
5055 use_openssl="no"
5056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Failed to find openssl/rand.h so OpenSSL will not be used.
5057 If it is installed you can try the --with-openssl=DIR argument" >&5
5058 printf "%s\n" "$as_me: WARNING: Failed to find openssl/rand.h so OpenSSL will not be used.
5059 If it is installed you can try the --with-openssl=DIR argument" >&2;}
5060 fi
5061
5062 fi
5063
5064 if test "$use_openssl" = "yes"; then
5065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BIO_int_ctrl in -lcrypto" >&5
5066 printf %s "checking for BIO_int_ctrl in -lcrypto... " >&6; }
5067 if test ${ac_cv_lib_crypto_BIO_int_ctrl+y}
5068 then :
5069 printf %s "(cached) " >&6
5070 else $as_nop
5071 ac_check_lib_save_LIBS=$LIBS
5072 LIBS="-lcrypto $LIBS"
5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074 /* end confdefs.h. */
5075
5076 /* Override any GCC internal prototype to avoid an error.
5077 Use char because int might match the return type of a GCC
5078 builtin and then its argument prototype would still apply. */
5079 char BIO_int_ctrl ();
5080 int
5081 main (void)
5082 {
5083 return BIO_int_ctrl ();
5084 ;
5085 return 0;
5086 }
5087 _ACEOF
5088 if ac_fn_c_try_link "$LINENO"
5089 then :
5090 ac_cv_lib_crypto_BIO_int_ctrl=yes
5091 else $as_nop
5092 ac_cv_lib_crypto_BIO_int_ctrl=no
5093 fi
5094 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5095 conftest$ac_exeext conftest.$ac_ext
5096 LIBS=$ac_check_lib_save_LIBS
5097 fi
5098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BIO_int_ctrl" >&5
5099 printf "%s\n" "$ac_cv_lib_crypto_BIO_int_ctrl" >&6; }
5100 if test "x$ac_cv_lib_crypto_BIO_int_ctrl" = xyes
5101 then :
5102 use_openssl="yes"
5103 else $as_nop
5104 use_openssl="no"
5105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Failed to find libcrypto so OpenSSL will not be used.
5106 If it is installed you can try the --with-openssl=DIR argument" >&5
5107 printf "%s\n" "$as_me: WARNING: Failed to find libcrypto so OpenSSL will not be used.
5108 If it is installed you can try the --with-openssl=DIR argument" >&2;}
5109 fi
5110
5111 fi
5112
5113 if test "$use_openssl" = "yes"; then
5114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
5115 printf %s "checking for SSL_new in -lssl... " >&6; }
5116 if test ${ac_cv_lib_ssl_SSL_new+y}
5117 then :
5118 printf %s "(cached) " >&6
5119 else $as_nop
5120 ac_check_lib_save_LIBS=$LIBS
5121 LIBS="-lssl -lcrypto $LIBS"
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h. */
5124
5125 /* Override any GCC internal prototype to avoid an error.
5126 Use char because int might match the return type of a GCC
5127 builtin and then its argument prototype would still apply. */
5128 char SSL_new ();
5129 int
5130 main (void)
5131 {
5132 return SSL_new ();
5133 ;
5134 return 0;
5135 }
5136 _ACEOF
5137 if ac_fn_c_try_link "$LINENO"
5138 then :
5139 ac_cv_lib_ssl_SSL_new=yes
5140 else $as_nop
5141 ac_cv_lib_ssl_SSL_new=no
5142 fi
5143 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5144 conftest$ac_exeext conftest.$ac_ext
5145 LIBS=$ac_check_lib_save_LIBS
5146 fi
5147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
5148 printf "%s\n" "$ac_cv_lib_ssl_SSL_new" >&6; }
5149 if test "x$ac_cv_lib_ssl_SSL_new" = xyes
5150 then :
5151 use_openssl="yes"
5152 else $as_nop
5153 use_openssl="no"
5154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Failed to find libssl so OpenSSL will not be used.
5155 If it is installed you can try the --with-openssl=DIR argument" >&5
5156 printf "%s\n" "$as_me: WARNING: Failed to find libssl so OpenSSL will not be used.
5157 If it is installed you can try the --with-openssl=DIR argument" >&2;}
5158 fi
5159
5160 fi
5161 fi
5162
5163 OPENSSL_LIBS=
5164 if test "$use_openssl" = "yes"; then
5165
5166 printf "%s\n" "#define HAVE_OPENSSL 1" >>confdefs.h
5167
5168
5169 printf "%s\n" "#define HAVE_HTTP_DIGEST 1" >>confdefs.h
5170
5171 OPENSSL_LIBS="-lssl -lcrypto"
5172 # Define in Makefile also.
5173 HAVE_OPENSSL=yes
5174
5175 fi
5176
5177
5178
5179 libpcapdir=../libpcap
5180
5181
5182 have_libpcap=no
5183
5184 # By default, search for pcap library
5185 test "${with_libpcap+set}" != "set" && with_libpcap=yes
5186
5187
5188 # Check whether --with-libpcap was given.
5189 if test ${with_libpcap+y}
5190 then :
5191 withval=$with_libpcap; case "$with_libpcap" in
5192 yes)
5193 ac_fn_c_check_header_compile "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
5194 if test "x$ac_cv_header_pcap_h" = xyes
5195 then :
5196
5197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5
5198 printf %s "checking for pcap_create in -lpcap... " >&6; }
5199 if test ${ac_cv_lib_pcap_pcap_create+y}
5200 then :
5201 printf %s "(cached) " >&6
5202 else $as_nop
5203 ac_check_lib_save_LIBS=$LIBS
5204 LIBS="-lpcap $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 pcap_create ();
5212 int
5213 main (void)
5214 {
5215 return pcap_create ();
5216 ;
5217 return 0;
5218 }
5219 _ACEOF
5220 if ac_fn_c_try_link "$LINENO"
5221 then :
5222 ac_cv_lib_pcap_pcap_create=yes
5223 else $as_nop
5224 ac_cv_lib_pcap_pcap_create=no
5225 fi
5226 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5227 conftest$ac_exeext conftest.$ac_ext
5228 LIBS=$ac_check_lib_save_LIBS
5229 fi
5230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5
5231 printf "%s\n" "$ac_cv_lib_pcap_pcap_create" >&6; }
5232 if test "x$ac_cv_lib_pcap_pcap_create" = xyes
5233 then :
5234 have_libpcap=yes
5235 fi
5236
5237 fi
5238
5239 ;;
5240 included)
5241 have_libpcap=no
5242 ;;
5243 *)
5244 _cppflags=$CXXFLAGS
5245 _ldflags=$LDFLAGS
5246
5247 CPPFLAGS="-I$with_libpcap/include $CPPFLAGS"
5248 LDFLAGS="-L$with_libpcap/lib $LDFLAGS"
5249
5250 ac_fn_c_check_header_compile "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
5251 if test "x$ac_cv_header_pcap_h" = xyes
5252 then :
5253
5254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5
5255 printf %s "checking for pcap_create in -lpcap... " >&6; }
5256 if test ${ac_cv_lib_pcap_pcap_create+y}
5257 then :
5258 printf %s "(cached) " >&6
5259 else $as_nop
5260 ac_check_lib_save_LIBS=$LIBS
5261 LIBS="-lpcap $LIBS"
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5264
5265 /* Override any GCC internal prototype to avoid an error.
5266 Use char because int might match the return type of a GCC
5267 builtin and then its argument prototype would still apply. */
5268 char pcap_create ();
5269 int
5270 main (void)
5271 {
5272 return pcap_create ();
5273 ;
5274 return 0;
5275 }
5276 _ACEOF
5277 if ac_fn_c_try_link "$LINENO"
5278 then :
5279 ac_cv_lib_pcap_pcap_create=yes
5280 else $as_nop
5281 ac_cv_lib_pcap_pcap_create=no
5282 fi
5283 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5284 conftest$ac_exeext conftest.$ac_ext
5285 LIBS=$ac_check_lib_save_LIBS
5286 fi
5287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5
5288 printf "%s\n" "$ac_cv_lib_pcap_pcap_create" >&6; }
5289 if test "x$ac_cv_lib_pcap_pcap_create" = xyes
5290 then :
5291 have_libpcap=yes
5292 LIBPCAP_INC=$with_libpcap/include
5293 LIBPCAP_LIB=$with_libpcap/lib
5294 fi
5295
5296 fi
5297
5298
5299 LDFLAGS=$_ldflags
5300 CXXFLAGS=$_cppflags
5301 ;;
5302 esac
5303
5304 fi
5305
5306
5307 if test $have_libpcap = yes; then
5308 if test "${LIBPCAP_INC+set}" = "set"; then
5309 _cflags=$CXXFLAGS
5310 _ldflags=$LDFLAGS
5311
5312 CPPFLAGS="-I$LIBPCAP_INC $CPPFLAGS"
5313 LDFLAGS="-L$LIBPCAP_LIB $LDFLAGS"
5314 fi
5315
5316 # link with -lpcap for the purposes of this test
5317 LIBS_OLD="$LIBS"
5318 LIBS="$LIBS -lpcap"
5319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
5320 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
5321 if test ${ac_cv_c_undeclared_builtin_options+y}
5322 then :
5323 printf %s "(cached) " >&6
5324 else $as_nop
5325 ac_save_CFLAGS=$CFLAGS
5326 ac_cv_c_undeclared_builtin_options='cannot detect'
5327 for ac_arg in '' -fno-builtin; do
5328 CFLAGS="$ac_save_CFLAGS $ac_arg"
5329 # This test program should *not* compile successfully.
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5332
5333 int
5334 main (void)
5335 {
5336 (void) strchr;
5337 ;
5338 return 0;
5339 }
5340 _ACEOF
5341 if ac_fn_c_try_compile "$LINENO"
5342 then :
5343
5344 else $as_nop
5345 # This test program should compile successfully.
5346 # No library function is consistently available on
5347 # freestanding implementations, so test against a dummy
5348 # declaration. Include always-available headers on the
5349 # off chance that they somehow elicit warnings.
5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h. */
5352 #include <float.h>
5353 #include <limits.h>
5354 #include <stdarg.h>
5355 #include <stddef.h>
5356 extern void ac_decl (int, char *);
5357
5358 int
5359 main (void)
5360 {
5361 (void) ac_decl (0, (char *) 0);
5362 (void) ac_decl;
5363
5364 ;
5365 return 0;
5366 }
5367 _ACEOF
5368 if ac_fn_c_try_compile "$LINENO"
5369 then :
5370 if test x"$ac_arg" = x
5371 then :
5372 ac_cv_c_undeclared_builtin_options='none needed'
5373 else $as_nop
5374 ac_cv_c_undeclared_builtin_options=$ac_arg
5375 fi
5376 break
5377 fi
5378 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5379 fi
5380 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5381 done
5382 CFLAGS=$ac_save_CFLAGS
5383
5384 fi
5385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
5386 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
5387 case $ac_cv_c_undeclared_builtin_options in #(
5388 'cannot detect') :
5389 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5390 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5391 as_fn_error $? "cannot make $CC report undeclared builtins
5392 See \`config.log' for more details" "$LINENO" 5; } ;; #(
5393 'none needed') :
5394 ac_c_undeclared_builtin_options='' ;; #(
5395 *) :
5396 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
5397 esac
5398
5399
5400 ac_fn_c_check_header_compile "$LINENO" "sys/ioccom.h" "ac_cv_header_sys_ioccom_h" "$ac_includes_default"
5401 if test "x$ac_cv_header_sys_ioccom_h" = xyes
5402 then :
5403 printf "%s\n" "#define HAVE_SYS_IOCCOM_H 1" >>confdefs.h
5404
5405 fi
5406 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
5407 if test "x$ac_cv_header_sys_time_h" = xyes
5408 then :
5409 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
5410
5411 fi
5412 ac_fn_c_check_header_compile "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
5413 if test "x$ac_cv_header_net_bpf_h" = xyes
5414 then :
5415 printf "%s\n" "#define HAVE_NET_BPF_H 1" >>confdefs.h
5416
5417 fi
5418
5419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libpcap is suitable" >&5
5420 printf %s "checking if libpcap is suitable... " >&6; }
5421 if test "$cross_compiling" = yes
5422 then :
5423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compiling -- assuming yes" >&5
5424 printf "%s\n" "cross-compiling -- assuming yes" >&6; }; have_libpcap=yes
5425 else $as_nop
5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5428
5429 #include <stdio.h>
5430 extern char pcap_version[];
5431 int main() {
5432 int major, minor1, minor2;
5433 sscanf(pcap_version,"%d.%d.%d", &major, &minor1, &minor2);
5434 if (major > 0)
5435 return 0;
5436 if (minor1 < 9)
5437 return 1;
5438 if (minor2 < 4)
5439 return 1;
5440 return 0;
5441 }
5442
5443 _ACEOF
5444 if ac_fn_c_try_run "$LINENO"
5445 then :
5446
5447 if test "$cross_compiling" = yes
5448 then :
5449 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5450 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5451 as_fn_error $? "cannot run test program while cross compiling
5452 See \`config.log' for more details" "$LINENO" 5; }
5453 else $as_nop
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h. */
5456
5457 #include <stdio.h>
5458 #include <sys/types.h>
5459 #ifdef HAVE_SYS_IOCCOM_H
5460 #include <sys/ioccom.h>
5461 #endif
5462 #ifdef HAVE_SYS_TIME_H
5463 #include <sys/time.h>
5464 #endif
5465 #ifdef HAVE_NET_BPF_H
5466 #include <net/bpf.h>
5467 #endif
5468 extern char pcap_version[];
5469 int main() {
5470 int major, minor;
5471 sscanf(pcap_version,"%d.%d", &major, &minor);
5472 if ((major == 1 && minor >= 1) || major > 1)
5473 return 0;
5474 #ifdef BIOCSRTIMEOUT
5475 #ifdef IOCPARM_LEN
5476 if (IOCPARM_LEN(BIOCSRTIMEOUT) != sizeof(struct timeval))
5477 return 1;
5478 #endif
5479 #endif
5480 return 0;
5481 }
5482
5483 _ACEOF
5484 if ac_fn_c_try_run "$LINENO"
5485 then :
5486
5487 ac_fn_check_decl "$LINENO" "pcap_get_selectable_fd" "ac_cv_have_decl_pcap_get_selectable_fd" "#include <pcap.h>
5488 " "$ac_c_undeclared_builtin_options" "CFLAGS"
5489 if test "x$ac_cv_have_decl_pcap_get_selectable_fd" = xyes
5490 then :
5491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5492 printf "%s\n" "yes" >&6; }; have_libpcap=yes
5493 else $as_nop
5494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- pcap_get_selectable_fd not declared" >&5
5495 printf "%s\n" "no -- pcap_get_selectable_fd not declared" >&6; }; have_libpcap=no
5496 fi
5497
5498 else $as_nop
5499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- BPF_TIMEOUT BIOCSRTIMEOUT bug (64-bit OS X)" >&5
5500 printf "%s\n" "no -- BPF_TIMEOUT BIOCSRTIMEOUT bug (64-bit OS X)" >&6; }; have_libpcap=no
5501 fi
5502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5503 conftest.$ac_objext conftest.beam conftest.$ac_ext
5504 fi
5505
5506
5507 else $as_nop
5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509 printf "%s\n" "no" >&6; }; have_libpcap=no
5510 fi
5511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5512 conftest.$ac_objext conftest.beam conftest.$ac_ext
5513 fi
5514
5515
5516 LIBS="$LIBS_OLD"
5517 fi
5518
5519 PCAP_LIBS="-lpcap"
5520 if test $have_libpcap = yes; then
5521 PCAP_DEPENDS=""
5522 PCAP_BUILD=""
5523 PCAP_CLEAN=""
5524 PCAP_DIST_CLEAN=""
5525
5526 printf "%s\n" "#define HAVE_LIBPCAP 1" >>confdefs.h
5527
5528 else
5529 if test "${LIBPCAP_INC+set}" = "set"; then
5530 LDFLAGS="-L$libpcapdir $_ldflags"
5531 CPPFLAGS="$CPPFLAGS -I$LIBPCAP_INC"
5532 else
5533 LDFLAGS="-L$libpcapdir $LDFLAGS"
5534 CPPFLAGS="$CPPFLAGS -I$libpcapdir"
5535 fi
5536 PCAP_DEPENDS='$(LIBPCAPDIR)/libpcap.a'
5537 PCAP_BUILD="build-pcap"
5538 PCAP_CLEAN="clean-pcap"
5539 PCAP_DIST_CLEAN="distclean-pcap"
5540 fi
5541
5542
5543
5544
5545
5546
5547
5548 # Needed on AIX.
5549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for odm_initialize in -lodm" >&5
5550 printf %s "checking for odm_initialize in -lodm... " >&6; }
5551 if test ${ac_cv_lib_odm_odm_initialize+y}
5552 then :
5553 printf %s "(cached) " >&6
5554 else $as_nop
5555 ac_check_lib_save_LIBS=$LIBS
5556 LIBS="-lodm $LIBS"
5557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558 /* end confdefs.h. */
5559
5560 /* Override any GCC internal prototype to avoid an error.
5561 Use char because int might match the return type of a GCC
5562 builtin and then its argument prototype would still apply. */
5563 char odm_initialize ();
5564 int
5565 main (void)
5566 {
5567 return odm_initialize ();
5568 ;
5569 return 0;
5570 }
5571 _ACEOF
5572 if ac_fn_c_try_link "$LINENO"
5573 then :
5574 ac_cv_lib_odm_odm_initialize=yes
5575 else $as_nop
5576 ac_cv_lib_odm_odm_initialize=no
5577 fi
5578 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5579 conftest$ac_exeext conftest.$ac_ext
5580 LIBS=$ac_check_lib_save_LIBS
5581 fi
5582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odm_odm_initialize" >&5
5583 printf "%s\n" "$ac_cv_lib_odm_odm_initialize" >&6; }
5584 if test "x$ac_cv_lib_odm_odm_initialize" = xyes
5585 then :
5586 printf "%s\n" "#define HAVE_LIBODM 1" >>confdefs.h
5587
5588 LIBS="-lodm $LIBS"
5589
5590 fi
5591
5592
5593 # Needed on AIX.
5594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for odm_initialize in -lodm" >&5
5595 printf %s "checking for odm_initialize in -lodm... " >&6; }
5596 if test ${ac_cv_lib_odm_odm_initialize+y}
5597 then :
5598 printf %s "(cached) " >&6
5599 else $as_nop
5600 ac_check_lib_save_LIBS=$LIBS
5601 LIBS="-lodm $LIBS"
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5604
5605 /* Override any GCC internal prototype to avoid an error.
5606 Use char because int might match the return type of a GCC
5607 builtin and then its argument prototype would still apply. */
5608 char odm_initialize ();
5609 int
5610 main (void)
5611 {
5612 return odm_initialize ();
5613 ;
5614 return 0;
5615 }
5616 _ACEOF
5617 if ac_fn_c_try_link "$LINENO"
5618 then :
5619 ac_cv_lib_odm_odm_initialize=yes
5620 else $as_nop
5621 ac_cv_lib_odm_odm_initialize=no
5622 fi
5623 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5624 conftest$ac_exeext conftest.$ac_ext
5625 LIBS=$ac_check_lib_save_LIBS
5626 fi
5627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odm_odm_initialize" >&5
5628 printf "%s\n" "$ac_cv_lib_odm_odm_initialize" >&6; }
5629 if test "x$ac_cv_lib_odm_odm_initialize" = xyes
5630 then :
5631 printf "%s\n" "#define HAVE_LIBODM 1" >>confdefs.h
5632
5633 LIBS="-lodm $LIBS"
5634
5635 fi
5636
5637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _system_configuration in -lcfg" >&5
5638 printf %s "checking for _system_configuration in -lcfg... " >&6; }
5639 if test ${ac_cv_lib_cfg__system_configuration+y}
5640 then :
5641 printf %s "(cached) " >&6
5642 else $as_nop
5643 ac_check_lib_save_LIBS=$LIBS
5644 LIBS="-lcfg $LIBS"
5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h. */
5647
5648 /* Override any GCC internal prototype to avoid an error.
5649 Use char because int might match the return type of a GCC
5650 builtin and then its argument prototype would still apply. */
5651 char _system_configuration ();
5652 int
5653 main (void)
5654 {
5655 return _system_configuration ();
5656 ;
5657 return 0;
5658 }
5659 _ACEOF
5660 if ac_fn_c_try_link "$LINENO"
5661 then :
5662 ac_cv_lib_cfg__system_configuration=yes
5663 else $as_nop
5664 ac_cv_lib_cfg__system_configuration=no
5665 fi
5666 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5667 conftest$ac_exeext conftest.$ac_ext
5668 LIBS=$ac_check_lib_save_LIBS
5669 fi
5670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfg__system_configuration" >&5
5671 printf "%s\n" "$ac_cv_lib_cfg__system_configuration" >&6; }
5672 if test "x$ac_cv_lib_cfg__system_configuration" = xyes
5673 then :
5674 printf "%s\n" "#define HAVE_LIBCFG 1" >>confdefs.h
5675
5676 LIBS="-lcfg $LIBS"
5677
5678 fi
5679
5680
5681
5682
5683 LIBLUADIR=../liblua
5684
5685 have_lua=no
5686 requested_included_lua=no
5687 no_lua=no
5688
5689 # First we test whether they specified liblua explicitly
5690
5691 # Check whether --with-liblua was given.
5692 if test ${with_liblua+y}
5693 then :
5694 withval=$with_liblua; case "$with_liblua" in
5695 yes)
5696 ;;
5697 included)
5698 CPPFLAGS="-I\$(top_srcdir)/$LIBLUADIR $CPPFLAGS"
5699 LIBLUA_LIBS="\$(top_srcdir)/$LIBLUADIR/liblua.a"
5700 LUA_DEPENDS="\$(top_srcdir)/$LIBLUADIR/liblua.a"
5701 LUA_BUILD="build-lua"
5702 LUA_CLEAN="clean-lua"
5703 LUA_DIST_CLEAN="distclean-lua"
5704 have_lua="yes"
5705
5706 printf "%s\n" "#define LUA_INCLUDED 1" >>confdefs.h
5707
5708
5709 ;;
5710 no)
5711 no_lua="yes"
5712 ;;
5713 *)
5714 CPPFLAGS="-I$with_liblua/include $CPPFLAGS"
5715 LDFLAGS="-L$with_liblua/lib $LDFLAGS"
5716 ;;
5717 esac
5718
5719 fi
5720
5721
5722 LUA_CFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN"
5723
5724
5725 # They don't want lua
5726 if test "$no_lua" = "yes"; then
5727 CPPFLAGS="-DNOLUA $CPPFLAGS"
5728 NOLUA="yes"
5729 LIBLUA_LIBS=""
5730 LUA_DEPENDS=""
5731 LUA_BUILD=""
5732 LUA_CLEAN=""
5733 LUA_DIST_CLEAN=""
5734 INSTALLNSE=""
5735
5736 else
5737
5738 # If they didn't specify it, we try to find it
5739 if test $have_lua != yes; then
5740 for ac_header in lua5.4/lua.h lua/5.4/lua.h lua.h lua/lua.h
5741 do :
5742 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
5743 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5744 if eval test \"x\$"$as_ac_Header"\" = x"yes"
5745 then :
5746 cat >>confdefs.h <<_ACEOF
5747 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
5748 _ACEOF
5749 break
5750 fi
5751
5752 done
5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing lua_isyieldable" >&5
5754 printf %s "checking for library containing lua_isyieldable... " >&6; }
5755 if test ${ac_cv_search_lua_isyieldable+y}
5756 then :
5757 printf %s "(cached) " >&6
5758 else $as_nop
5759 ac_func_search_save_LIBS=$LIBS
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5762
5763 /* Override any GCC internal prototype to avoid an error.
5764 Use char because int might match the return type of a GCC
5765 builtin and then its argument prototype would still apply. */
5766 char lua_isyieldable ();
5767 int
5768 main (void)
5769 {
5770 return lua_isyieldable ();
5771 ;
5772 return 0;
5773 }
5774 _ACEOF
5775 for ac_lib in '' lua5.4 lua54 lua
5776 do
5777 if test -z "$ac_lib"; then
5778 ac_res="none required"
5779 else
5780 ac_res=-l$ac_lib
5781 LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
5782 fi
5783 if ac_fn_c_try_link "$LINENO"
5784 then :
5785 ac_cv_search_lua_isyieldable=$ac_res
5786 fi
5787 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5788 conftest$ac_exeext
5789 if test ${ac_cv_search_lua_isyieldable+y}
5790 then :
5791 break
5792 fi
5793 done
5794 if test ${ac_cv_search_lua_isyieldable+y}
5795 then :
5796
5797 else $as_nop
5798 ac_cv_search_lua_isyieldable=no
5799 fi
5800 rm conftest.$ac_ext
5801 LIBS=$ac_func_search_save_LIBS
5802 fi
5803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lua_isyieldable" >&5
5804 printf "%s\n" "$ac_cv_search_lua_isyieldable" >&6; }
5805 ac_res=$ac_cv_search_lua_isyieldable
5806 if test "$ac_res" != no
5807 then :
5808 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5809 have_lua=yes
5810 fi
5811
5812 ac_ext=c
5813 ac_cpp='$CPP $CPPFLAGS'
5814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5817
5818 ac_ext=c
5819 ac_cpp='$CPP $CPPFLAGS'
5820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5824 printf %s "checking how to run the C preprocessor... " >&6; }
5825 # On Suns, sometimes $CPP names a directory.
5826 if test -n "$CPP" && test -d "$CPP"; then
5827 CPP=
5828 fi
5829 if test -z "$CPP"; then
5830 if test ${ac_cv_prog_CPP+y}
5831 then :
5832 printf %s "(cached) " >&6
5833 else $as_nop
5834 # Double quotes because $CC needs to be expanded
5835 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5836 do
5837 ac_preproc_ok=false
5838 for ac_c_preproc_warn_flag in '' yes
5839 do
5840 # Use a header file that comes with gcc, so configuring glibc
5841 # with a fresh cross-compiler works.
5842 # On the NeXT, cc -E runs the code through the compiler's parser,
5843 # not just through cpp. "Syntax error" is here to catch this case.
5844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845 /* end confdefs.h. */
5846 #include <limits.h>
5847 Syntax error
5848 _ACEOF
5849 if ac_fn_c_try_cpp "$LINENO"
5850 then :
5851
5852 else $as_nop
5853 # Broken: fails on valid input.
5854 continue
5855 fi
5856 rm -f conftest.err conftest.i conftest.$ac_ext
5857
5858 # OK, works on sane cases. Now check whether nonexistent headers
5859 # can be detected and how.
5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861 /* end confdefs.h. */
5862 #include <ac_nonexistent.h>
5863 _ACEOF
5864 if ac_fn_c_try_cpp "$LINENO"
5865 then :
5866 # Broken: success on invalid input.
5867 continue
5868 else $as_nop
5869 # Passes both tests.
5870 ac_preproc_ok=:
5871 break
5872 fi
5873 rm -f conftest.err conftest.i conftest.$ac_ext
5874
5875 done
5876 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5877 rm -f conftest.i conftest.err conftest.$ac_ext
5878 if $ac_preproc_ok
5879 then :
5880 break
5881 fi
5882
5883 done
5884 ac_cv_prog_CPP=$CPP
5885
5886 fi
5887 CPP=$ac_cv_prog_CPP
5888 else
5889 ac_cv_prog_CPP=$CPP
5890 fi
5891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5892 printf "%s\n" "$CPP" >&6; }
5893 ac_preproc_ok=false
5894 for ac_c_preproc_warn_flag in '' yes
5895 do
5896 # Use a header file that comes with gcc, so configuring glibc
5897 # with a fresh cross-compiler works.
5898 # On the NeXT, cc -E runs the code through the compiler's parser,
5899 # not just through cpp. "Syntax error" is here to catch this case.
5900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901 /* end confdefs.h. */
5902 #include <limits.h>
5903 Syntax error
5904 _ACEOF
5905 if ac_fn_c_try_cpp "$LINENO"
5906 then :
5907
5908 else $as_nop
5909 # Broken: fails on valid input.
5910 continue
5911 fi
5912 rm -f conftest.err conftest.i conftest.$ac_ext
5913
5914 # OK, works on sane cases. Now check whether nonexistent headers
5915 # can be detected and how.
5916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917 /* end confdefs.h. */
5918 #include <ac_nonexistent.h>
5919 _ACEOF
5920 if ac_fn_c_try_cpp "$LINENO"
5921 then :
5922 # Broken: success on invalid input.
5923 continue
5924 else $as_nop
5925 # Passes both tests.
5926 ac_preproc_ok=:
5927 break
5928 fi
5929 rm -f conftest.err conftest.i conftest.$ac_ext
5930
5931 done
5932 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5933 rm -f conftest.i conftest.err conftest.$ac_ext
5934 if $ac_preproc_ok
5935 then :
5936
5937 else $as_nop
5938 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5939 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5940 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5941 See \`config.log' for more details" "$LINENO" 5; }
5942 fi
5943
5944 ac_ext=c
5945 ac_cpp='$CPP $CPPFLAGS'
5946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5949
5950
5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h. */
5953
5954 #ifdef HAVE_LUA5_4_LUA_H
5955 #include <lua5.4/lua.h>
5956 #elif defined HAVE_LUA_5_4_LUA_H
5957 #include <lua/5.4/lua.h>
5958 #elif defined HAVE_LUA_H || defined LUA_INCLUDED
5959 #include <lua.h>
5960 #elif defined HAVE_LUA_LUA_H
5961 #include <lua/lua.h>
5962 #endif
5963
5964 #if (LUA_VERSION_NUM < 504)
5965 #error Incorrect Lua version
5966 #endif
5967
5968 int
5969 main (void)
5970 {
5971 if(LUA_VERSION_NUM < 504) return 1;
5972 ;
5973 return 0;
5974 }
5975 _ACEOF
5976 if ac_fn_c_try_cpp "$LINENO"
5977 then :
5978 have_lua=yes
5979 else $as_nop
5980 have_lua=no
5981 fi
5982 rm -f conftest.err conftest.i conftest.$ac_ext
5983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua version >= 504" >&5
5984 printf %s "checking for lua version >= 504... " >&6; }
5985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lua" >&5
5986 printf "%s\n" "$have_lua" >&6; }
5987 ac_ext=c
5988 ac_cpp='$CPP $CPPFLAGS'
5989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5992
5993
5994 LUA_DEPENDS=""
5995 LUA_BUILD=""
5996 LUA_CLEAN=""
5997 LUA_DIST_CLEAN=""
5998 fi
5999
6000 # if we didn't find we use our own
6001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lua was found" >&5
6002 printf %s "checking whether lua was found... " >&6; }
6003 if test $have_lua != yes; then
6004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, will use our own" >&5
6005 printf "%s\n" "no, will use our own" >&6; }
6006 CPPFLAGS="-I\$(top_srcdir)/$LIBLUADIR $CPPFLAGS"
6007 LIBLUA_LIBS="\$(top_srcdir)/$LIBLUADIR/liblua.a"
6008 LUA_DEPENDS="\$(top_srcdir)/$LIBLUADIR/liblua.a"
6009 LUA_BUILD="build-lua"
6010 LUA_CLEAN="clean-lua"
6011 LUA_DIST_CLEAN="distclean-lua"
6012
6013 printf "%s\n" "#define LUA_INCLUDED 1" >>confdefs.h
6014
6015 else
6016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6017 printf "%s\n" "yes" >&6; }
6018 fi
6019
6020 INSTALLNSE="install-nse"
6021 fi
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033 ac_config_files="$ac_config_files Makefile"
6034
6035 cat >confcache <<\_ACEOF
6036 # This file is a shell script that caches the results of configure
6037 # tests run on this system so they can be shared between configure
6038 # scripts and configure runs, see configure's option --config-cache.
6039 # It is not useful on other systems. If it contains results you don't
6040 # want to keep, you may remove or edit it.
6041 #
6042 # config.status only pays attention to the cache file if you give it
6043 # the --recheck option to rerun configure.
6044 #
6045 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6046 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6047 # following values.
6048
6049 _ACEOF
6050
6051 # The following way of writing the cache mishandles newlines in values,
6052 # but we know of no workaround that is simple, portable, and efficient.
6053 # So, we kill variables containing newlines.
6054 # Ultrix sh set writes to stderr and can't be redirected directly,
6055 # and sets the high bit in the cache file unless we assign to the vars.
6056 (
6057 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6058 eval ac_val=\$$ac_var
6059 case $ac_val in #(
6060 *${as_nl}*)
6061 case $ac_var in #(
6062 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6063 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6064 esac
6065 case $ac_var in #(
6066 _ | IFS | as_nl) ;; #(
6067 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6068 *) { eval $ac_var=; unset $ac_var;} ;;
6069 esac ;;
6070 esac
6071 done
6072
6073 (set) 2>&1 |
6074 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6075 *${as_nl}ac_space=\ *)
6076 # `set' does not quote correctly, so add quotes: double-quote
6077 # substitution turns \\\\ into \\, and sed turns \\ into \.
6078 sed -n \
6079 "s/'/'\\\\''/g;
6080 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6081 ;; #(
6082 *)
6083 # `set' quotes correctly as required by POSIX, so do not add quotes.
6084 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6085 ;;
6086 esac |
6087 sort
6088 ) |
6089 sed '
6090 /^ac_cv_env_/b end
6091 t clear
6092 :clear
6093 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
6094 t end
6095 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6096 :end' >>confcache
6097 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6098 if test -w "$cache_file"; then
6099 if test "x$cache_file" != "x/dev/null"; then
6100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6101 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
6102 if test ! -f "$cache_file" || test -h "$cache_file"; then
6103 cat confcache >"$cache_file"
6104 else
6105 case $cache_file in #(
6106 */* | ?:*)
6107 mv -f confcache "$cache_file"$$ &&
6108 mv -f "$cache_file"$$ "$cache_file" ;; #(
6109 *)
6110 mv -f confcache "$cache_file" ;;
6111 esac
6112 fi
6113 fi
6114 else
6115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6116 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
6117 fi
6118 fi
6119 rm -f confcache
6120
6121 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6122 # Let make expand exec_prefix.
6123 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6124
6125 DEFS=-DHAVE_CONFIG_H
6126
6127 ac_libobjs=
6128 ac_ltlibobjs=
6129 U=
6130 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6131 # 1. Remove the extension, and $U if already installed.
6132 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6133 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
6134 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6135 # will be set to the directory where LIBOBJS objects are built.
6136 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6137 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6138 done
6139 LIBOBJS=$ac_libobjs
6140
6141 LTLIBOBJS=$ac_ltlibobjs
6142
6143
6144
6145 : "${CONFIG_STATUS=./config.status}"
6146 ac_write_fail=0
6147 ac_clean_files_save=$ac_clean_files
6148 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6150 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
6151 as_write_fail=0
6152 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6153 #! $SHELL
6154 # Generated by $as_me.
6155 # Run this file to recreate the current configuration.
6156 # Compiler output produced by configure, useful for debugging
6157 # configure, is in config.log if it exists.
6158
6159 debug=false
6160 ac_cs_recheck=false
6161 ac_cs_silent=false
6162
6163 SHELL=\${CONFIG_SHELL-$SHELL}
6164 export SHELL
6165 _ASEOF
6166 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6167 ## -------------------- ##
6168 ## M4sh Initialization. ##
6169 ## -------------------- ##
6170
6171 # Be more Bourne compatible
6172 DUALCASE=1; export DUALCASE # for MKS sh
6173 as_nop=:
6174 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
6175 then :
6176 emulate sh
6177 NULLCMD=:
6178 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6179 # is contrary to our usage. Disable this feature.
6180 alias -g '${1+"$@"}'='"$@"'
6181 setopt NO_GLOB_SUBST
6182 else $as_nop
6183 case `(set -o) 2>/dev/null` in #(
6184 *posix*) :
6185 set -o posix ;; #(
6186 *) :
6187 ;;
6188 esac
6189 fi
6190
6191
6192
6193 # Reset variables that may have inherited troublesome values from
6194 # the environment.
6195
6196 # IFS needs to be set, to space, tab, and newline, in precisely that order.
6197 # (If _AS_PATH_WALK were called with IFS unset, it would have the
6198 # side effect of setting IFS to empty, thus disabling word splitting.)
6199 # Quoting is to prevent editors from complaining about space-tab.
6200 as_nl='
6201 '
6202 export as_nl
6203 IFS=" "" $as_nl"
6204
6205 PS1='$ '
6206 PS2='> '
6207 PS4='+ '
6208
6209 # Ensure predictable behavior from utilities with locale-dependent output.
6210 LC_ALL=C
6211 export LC_ALL
6212 LANGUAGE=C
6213 export LANGUAGE
6214
6215 # We cannot yet rely on "unset" to work, but we need these variables
6216 # to be unset--not just set to an empty or harmless value--now, to
6217 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
6218 # also avoids known problems related to "unset" and subshell syntax
6219 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
6220 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
6221 do eval test \${$as_var+y} \
6222 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6223 done
6224
6225 # Ensure that fds 0, 1, and 2 are open.
6226 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
6227 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
6228 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
6229
6230 # The user is always right.
6231 if ${PATH_SEPARATOR+false} :; then
6232 PATH_SEPARATOR=:
6233 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6234 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6235 PATH_SEPARATOR=';'
6236 }
6237 fi
6238
6239
6240 # Find who we are. Look in the path if we contain no directory separator.
6241 as_myself=
6242 case $0 in #((
6243 *[\\/]* ) as_myself=$0 ;;
6244 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 for as_dir in $PATH
6246 do
6247 IFS=$as_save_IFS
6248 case $as_dir in #(((
6249 '') as_dir=./ ;;
6250 */) ;;
6251 *) as_dir=$as_dir/ ;;
6252 esac
6253 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
6254 done
6255 IFS=$as_save_IFS
6256
6257 ;;
6258 esac
6259 # We did not find ourselves, most probably we were run as `sh COMMAND'
6260 # in which case we are not to be found in the path.
6261 if test "x$as_myself" = x; then
6262 as_myself=$0
6263 fi
6264 if test ! -f "$as_myself"; then
6265 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6266 exit 1
6267 fi
6268
6269
6270
6271 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6272 # ----------------------------------------
6273 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6274 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6275 # script with STATUS, using 1 if that was 0.
6276 as_fn_error ()
6277 {
6278 as_status=$1; test $as_status -eq 0 && as_status=1
6279 if test "$4"; then
6280 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6282 fi
6283 printf "%s\n" "$as_me: error: $2" >&2
6284 as_fn_exit $as_status
6285 } # as_fn_error
6286
6287
6288
6289 # as_fn_set_status STATUS
6290 # -----------------------
6291 # Set $? to STATUS, without forking.
6292 as_fn_set_status ()
6293 {
6294 return $1
6295 } # as_fn_set_status
6296
6297 # as_fn_exit STATUS
6298 # -----------------
6299 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6300 as_fn_exit ()
6301 {
6302 set +e
6303 as_fn_set_status $1
6304 exit $1
6305 } # as_fn_exit
6306
6307 # as_fn_unset VAR
6308 # ---------------
6309 # Portably unset VAR.
6310 as_fn_unset ()
6311 {
6312 { eval $1=; unset $1;}
6313 }
6314 as_unset=as_fn_unset
6315
6316 # as_fn_append VAR VALUE
6317 # ----------------------
6318 # Append the text in VALUE to the end of the definition contained in VAR. Take
6319 # advantage of any shell optimizations that allow amortized linear growth over
6320 # repeated appends, instead of the typical quadratic growth present in naive
6321 # implementations.
6322 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
6323 then :
6324 eval 'as_fn_append ()
6325 {
6326 eval $1+=\$2
6327 }'
6328 else $as_nop
6329 as_fn_append ()
6330 {
6331 eval $1=\$$1\$2
6332 }
6333 fi # as_fn_append
6334
6335 # as_fn_arith ARG...
6336 # ------------------
6337 # Perform arithmetic evaluation on the ARGs, and store the result in the
6338 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6339 # must be portable across $(()) and expr.
6340 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
6341 then :
6342 eval 'as_fn_arith ()
6343 {
6344 as_val=$(( $* ))
6345 }'
6346 else $as_nop
6347 as_fn_arith ()
6348 {
6349 as_val=`expr "$@" || test $? -eq 1`
6350 }
6351 fi # as_fn_arith
6352
6353
6354 if expr a : '\(a\)' >/dev/null 2>&1 &&
6355 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6356 as_expr=expr
6357 else
6358 as_expr=false
6359 fi
6360
6361 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6362 as_basename=basename
6363 else
6364 as_basename=false
6365 fi
6366
6367 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6368 as_dirname=dirname
6369 else
6370 as_dirname=false
6371 fi
6372
6373 as_me=`$as_basename -- "$0" ||
6374 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6375 X"$0" : 'X\(//\)$' \| \
6376 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6377 printf "%s\n" X/"$0" |
6378 sed '/^.*\/\([^/][^/]*\)\/*$/{
6379 s//\1/
6380 q
6381 }
6382 /^X\/\(\/\/\)$/{
6383 s//\1/
6384 q
6385 }
6386 /^X\/\(\/\).*/{
6387 s//\1/
6388 q
6389 }
6390 s/.*/./; q'`
6391
6392 # Avoid depending upon Character Ranges.
6393 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6394 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6395 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6396 as_cr_digits='0123456789'
6397 as_cr_alnum=$as_cr_Letters$as_cr_digits
6398
6399
6400 # Determine whether it's possible to make 'echo' print without a newline.
6401 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
6402 # for compatibility with existing Makefiles.
6403 ECHO_C= ECHO_N= ECHO_T=
6404 case `echo -n x` in #(((((
6405 -n*)
6406 case `echo 'xy\c'` in
6407 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6408 xy) ECHO_C='\c';;
6409 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6410 ECHO_T=' ';;
6411 esac;;
6412 *)
6413 ECHO_N='-n';;
6414 esac
6415
6416 # For backward compatibility with old third-party macros, we provide
6417 # the shell variables $as_echo and $as_echo_n. New code should use
6418 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
6419 as_echo='printf %s\n'
6420 as_echo_n='printf %s'
6421
6422 rm -f conf$$ conf$$.exe conf$$.file
6423 if test -d conf$$.dir; then
6424 rm -f conf$$.dir/conf$$.file
6425 else
6426 rm -f conf$$.dir
6427 mkdir conf$$.dir 2>/dev/null
6428 fi
6429 if (echo >conf$$.file) 2>/dev/null; then
6430 if ln -s conf$$.file conf$$ 2>/dev/null; then
6431 as_ln_s='ln -s'
6432 # ... but there are two gotchas:
6433 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6434 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6435 # In both cases, we have to default to `cp -pR'.
6436 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6437 as_ln_s='cp -pR'
6438 elif ln conf$$.file conf$$ 2>/dev/null; then
6439 as_ln_s=ln
6440 else
6441 as_ln_s='cp -pR'
6442 fi
6443 else
6444 as_ln_s='cp -pR'
6445 fi
6446 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6447 rmdir conf$$.dir 2>/dev/null
6448
6449
6450 # as_fn_mkdir_p
6451 # -------------
6452 # Create "$as_dir" as a directory, including parents if necessary.
6453 as_fn_mkdir_p ()
6454 {
6455
6456 case $as_dir in #(
6457 -*) as_dir=./$as_dir;;
6458 esac
6459 test -d "$as_dir" || eval $as_mkdir_p || {
6460 as_dirs=
6461 while :; do
6462 case $as_dir in #(
6463 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6464 *) as_qdir=$as_dir;;
6465 esac
6466 as_dirs="'$as_qdir' $as_dirs"
6467 as_dir=`$as_dirname -- "$as_dir" ||
6468 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6469 X"$as_dir" : 'X\(//\)[^/]' \| \
6470 X"$as_dir" : 'X\(//\)$' \| \
6471 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6472 printf "%s\n" X"$as_dir" |
6473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6474 s//\1/
6475 q
6476 }
6477 /^X\(\/\/\)[^/].*/{
6478 s//\1/
6479 q
6480 }
6481 /^X\(\/\/\)$/{
6482 s//\1/
6483 q
6484 }
6485 /^X\(\/\).*/{
6486 s//\1/
6487 q
6488 }
6489 s/.*/./; q'`
6490 test -d "$as_dir" && break
6491 done
6492 test -z "$as_dirs" || eval "mkdir $as_dirs"
6493 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6494
6495
6496 } # as_fn_mkdir_p
6497 if mkdir -p . 2>/dev/null; then
6498 as_mkdir_p='mkdir -p "$as_dir"'
6499 else
6500 test -d ./-p && rmdir ./-p
6501 as_mkdir_p=false
6502 fi
6503
6504
6505 # as_fn_executable_p FILE
6506 # -----------------------
6507 # Test if FILE is an executable regular file.
6508 as_fn_executable_p ()
6509 {
6510 test -f "$1" && test -x "$1"
6511 } # as_fn_executable_p
6512 as_test_x='test -x'
6513 as_executable_p=as_fn_executable_p
6514
6515 # Sed expression to map a string onto a valid CPP name.
6516 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6517
6518 # Sed expression to map a string onto a valid variable name.
6519 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6520
6521
6522 exec 6>&1
6523 ## ----------------------------------- ##
6524 ## Main body of $CONFIG_STATUS script. ##
6525 ## ----------------------------------- ##
6526 _ASEOF
6527 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6528
6529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6530 # Save the log message, to keep $0 and so on meaningful, and to
6531 # report actual input values of CONFIG_FILES etc. instead of their
6532 # values after options handling.
6533 ac_log="
6534 This file was extended by $as_me, which was
6535 generated by GNU Autoconf 2.71. Invocation command line was
6536
6537 CONFIG_FILES = $CONFIG_FILES
6538 CONFIG_HEADERS = $CONFIG_HEADERS
6539 CONFIG_LINKS = $CONFIG_LINKS
6540 CONFIG_COMMANDS = $CONFIG_COMMANDS
6541 $ $0 $@
6542
6543 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6544 "
6545
6546 _ACEOF
6547
6548 case $ac_config_files in *"
6549 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6550 esac
6551
6552 case $ac_config_headers in *"
6553 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6554 esac
6555
6556
6557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6558 # Files that config.status was made for.
6559 config_files="$ac_config_files"
6560 config_headers="$ac_config_headers"
6561
6562 _ACEOF
6563
6564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6565 ac_cs_usage="\
6566 \`$as_me' instantiates files and other configuration actions
6567 from templates according to the current configuration. Unless the files
6568 and actions are specified as TAGs, all are instantiated by default.
6569
6570 Usage: $0 [OPTION]... [TAG]...
6571
6572 -h, --help print this help, then exit
6573 -V, --version print version number and configuration settings, then exit
6574 --config print configuration, then exit
6575 -q, --quiet, --silent
6576 do not print progress messages
6577 -d, --debug don't remove temporary files
6578 --recheck update $as_me by reconfiguring in the same conditions
6579 --file=FILE[:TEMPLATE]
6580 instantiate the configuration file FILE
6581 --header=FILE[:TEMPLATE]
6582 instantiate the configuration header FILE
6583
6584 Configuration files:
6585 $config_files
6586
6587 Configuration headers:
6588 $config_headers
6589
6590 Report bugs to the package provider."
6591
6592 _ACEOF
6593 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
6594 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
6595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6596 ac_cs_config='$ac_cs_config_escaped'
6597 ac_cs_version="\\
6598 config.status
6599 configured by $0, generated by GNU Autoconf 2.71,
6600 with options \\"\$ac_cs_config\\"
6601
6602 Copyright (C) 2021 Free Software Foundation, Inc.
6603 This config.status script is free software; the Free Software Foundation
6604 gives unlimited permission to copy, distribute and modify it."
6605
6606 ac_pwd='$ac_pwd'
6607 srcdir='$srcdir'
6608 INSTALL='$INSTALL'
6609 test -n "\$AWK" || AWK=awk
6610 _ACEOF
6611
6612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6613 # The default lists apply if the user does not specify any file.
6614 ac_need_defaults=:
6615 while test $# != 0
6616 do
6617 case $1 in
6618 --*=?*)
6619 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6620 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6621 ac_shift=:
6622 ;;
6623 --*=)
6624 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6625 ac_optarg=
6626 ac_shift=:
6627 ;;
6628 *)
6629 ac_option=$1
6630 ac_optarg=$2
6631 ac_shift=shift
6632 ;;
6633 esac
6634
6635 case $ac_option in
6636 # Handling of the options.
6637 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6638 ac_cs_recheck=: ;;
6639 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6640 printf "%s\n" "$ac_cs_version"; exit ;;
6641 --config | --confi | --conf | --con | --co | --c )
6642 printf "%s\n" "$ac_cs_config"; exit ;;
6643 --debug | --debu | --deb | --de | --d | -d )
6644 debug=: ;;
6645 --file | --fil | --fi | --f )
6646 $ac_shift
6647 case $ac_optarg in
6648 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6649 '') as_fn_error $? "missing file argument" ;;
6650 esac
6651 as_fn_append CONFIG_FILES " '$ac_optarg'"
6652 ac_need_defaults=false;;
6653 --header | --heade | --head | --hea )
6654 $ac_shift
6655 case $ac_optarg in
6656 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6657 esac
6658 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6659 ac_need_defaults=false;;
6660 --he | --h)
6661 # Conflict between --help and --header
6662 as_fn_error $? "ambiguous option: \`$1'
6663 Try \`$0 --help' for more information.";;
6664 --help | --hel | -h )
6665 printf "%s\n" "$ac_cs_usage"; exit ;;
6666 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6667 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6668 ac_cs_silent=: ;;
6669
6670 # This is an error.
6671 -*) as_fn_error $? "unrecognized option: \`$1'
6672 Try \`$0 --help' for more information." ;;
6673
6674 *) as_fn_append ac_config_targets " $1"
6675 ac_need_defaults=false ;;
6676
6677 esac
6678 shift
6679 done
6680
6681 ac_configure_extra_args=
6682
6683 if $ac_cs_silent; then
6684 exec 6>/dev/null
6685 ac_configure_extra_args="$ac_configure_extra_args --silent"
6686 fi
6687
6688 _ACEOF
6689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6690 if \$ac_cs_recheck; then
6691 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6692 shift
6693 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
6694 CONFIG_SHELL='$SHELL'
6695 export CONFIG_SHELL
6696 exec "\$@"
6697 fi
6698
6699 _ACEOF
6700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6701 exec 5>>config.log
6702 {
6703 echo
6704 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6705 ## Running $as_me. ##
6706 _ASBOX
6707 printf "%s\n" "$ac_log"
6708 } >&5
6709
6710 _ACEOF
6711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6712 _ACEOF
6713
6714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6715
6716 # Handling of arguments.
6717 for ac_config_target in $ac_config_targets
6718 do
6719 case $ac_config_target in
6720 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6721 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6722
6723 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6724 esac
6725 done
6726
6727
6728 # If the user did not use the arguments to specify the items to instantiate,
6729 # then the envvar interface is used. Set only those that are not.
6730 # We use the long form for the default assignment because of an extremely
6731 # bizarre bug on SunOS 4.1.3.
6732 if $ac_need_defaults; then
6733 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
6734 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
6735 fi
6736
6737 # Have a temporary directory for convenience. Make it in the build tree
6738 # simply because there is no reason against having it here, and in addition,
6739 # creating and moving files from /tmp can sometimes cause problems.
6740 # Hook for its removal unless debugging.
6741 # Note that there is a small window in which the directory will not be cleaned:
6742 # after its creation but before its name has been assigned to `$tmp'.
6743 $debug ||
6744 {
6745 tmp= ac_tmp=
6746 trap 'exit_status=$?
6747 : "${ac_tmp:=$tmp}"
6748 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6749 ' 0
6750 trap 'as_fn_exit 1' 1 2 13 15
6751 }
6752 # Create a (secure) tmp directory for tmp files.
6753
6754 {
6755 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6756 test -d "$tmp"
6757 } ||
6758 {
6759 tmp=./conf$$-$RANDOM
6760 (umask 077 && mkdir "$tmp")
6761 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6762 ac_tmp=$tmp
6763
6764 # Set up the scripts for CONFIG_FILES section.
6765 # No need to generate them if there are no CONFIG_FILES.
6766 # This happens for instance with `./config.status config.h'.
6767 if test -n "$CONFIG_FILES"; then
6768
6769
6770 ac_cr=`echo X | tr X '\015'`
6771 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6772 # But we know of no other shell where ac_cr would be empty at this
6773 # point, so we can use a bashism as a fallback.
6774 if test "x$ac_cr" = x; then
6775 eval ac_cr=\$\'\\r\'
6776 fi
6777 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6778 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6779 ac_cs_awk_cr='\\r'
6780 else
6781 ac_cs_awk_cr=$ac_cr
6782 fi
6783
6784 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6785 _ACEOF
6786
6787
6788 {
6789 echo "cat >conf$$subs.awk <<_ACEOF" &&
6790 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6791 echo "_ACEOF"
6792 } >conf$$subs.sh ||
6793 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6794 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6795 ac_delim='%!_!# '
6796 for ac_last_try in false false false false false :; do
6797 . ./conf$$subs.sh ||
6798 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6799
6800 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6801 if test $ac_delim_n = $ac_delim_num; then
6802 break
6803 elif $ac_last_try; then
6804 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6805 else
6806 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6807 fi
6808 done
6809 rm -f conf$$subs.sh
6810
6811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6812 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6813 _ACEOF
6814 sed -n '
6815 h
6816 s/^/S["/; s/!.*/"]=/
6817 p
6818 g
6819 s/^[^!]*!//
6820 :repl
6821 t repl
6822 s/'"$ac_delim"'$//
6823 t delim
6824 :nl
6825 h
6826 s/\(.\{148\}\)..*/\1/
6827 t more1
6828 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6829 p
6830 n
6831 b repl
6832 :more1
6833 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6834 p
6835 g
6836 s/.\{148\}//
6837 t nl
6838 :delim
6839 h
6840 s/\(.\{148\}\)..*/\1/
6841 t more2
6842 s/["\\]/\\&/g; s/^/"/; s/$/"/
6843 p
6844 b
6845 :more2
6846 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6847 p
6848 g
6849 s/.\{148\}//
6850 t delim
6851 ' <conf$$subs.awk | sed '
6852 /^[^""]/{
6853 N
6854 s/\n//
6855 }
6856 ' >>$CONFIG_STATUS || ac_write_fail=1
6857 rm -f conf$$subs.awk
6858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6859 _ACAWK
6860 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6861 for (key in S) S_is_set[key] = 1
6862 FS = ""
6863
6864 }
6865 {
6866 line = $ 0
6867 nfields = split(line, field, "@")
6868 substed = 0
6869 len = length(field[1])
6870 for (i = 2; i < nfields; i++) {
6871 key = field[i]
6872 keylen = length(key)
6873 if (S_is_set[key]) {
6874 value = S[key]
6875 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6876 len += length(value) + length(field[++i])
6877 substed = 1
6878 } else
6879 len += 1 + keylen
6880 }
6881
6882 print line
6883 }
6884
6885 _ACAWK
6886 _ACEOF
6887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6888 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6889 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6890 else
6891 cat
6892 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6893 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6894 _ACEOF
6895
6896 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6897 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6898 # trailing colons and then remove the whole line if VPATH becomes empty
6899 # (actually we leave an empty line to preserve line numbers).
6900 if test "x$srcdir" = x.; then
6901 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6902 h
6903 s///
6904 s/^/:/
6905 s/[ ]*$/:/
6906 s/:\$(srcdir):/:/g
6907 s/:\${srcdir}:/:/g
6908 s/:@srcdir@:/:/g
6909 s/^:*//
6910 s/:*$//
6911 x
6912 s/\(=[ ]*\).*/\1/
6913 G
6914 s/\n//
6915 s/^[^=]*=[ ]*$//
6916 }'
6917 fi
6918
6919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6920 fi # test -n "$CONFIG_FILES"
6921
6922 # Set up the scripts for CONFIG_HEADERS section.
6923 # No need to generate them if there are no CONFIG_HEADERS.
6924 # This happens for instance with `./config.status Makefile'.
6925 if test -n "$CONFIG_HEADERS"; then
6926 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6927 BEGIN {
6928 _ACEOF
6929
6930 # Transform confdefs.h into an awk script `defines.awk', embedded as
6931 # here-document in config.status, that substitutes the proper values into
6932 # config.h.in to produce config.h.
6933
6934 # Create a delimiter string that does not exist in confdefs.h, to ease
6935 # handling of long lines.
6936 ac_delim='%!_!# '
6937 for ac_last_try in false false :; do
6938 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6939 if test -z "$ac_tt"; then
6940 break
6941 elif $ac_last_try; then
6942 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6943 else
6944 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6945 fi
6946 done
6947
6948 # For the awk script, D is an array of macro values keyed by name,
6949 # likewise P contains macro parameters if any. Preserve backslash
6950 # newline sequences.
6951
6952 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6953 sed -n '
6954 s/.\{148\}/&'"$ac_delim"'/g
6955 t rset
6956 :rset
6957 s/^[ ]*#[ ]*define[ ][ ]*/ /
6958 t def
6959 d
6960 :def
6961 s/\\$//
6962 t bsnl
6963 s/["\\]/\\&/g
6964 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6965 D["\1"]=" \3"/p
6966 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6967 d
6968 :bsnl
6969 s/["\\]/\\&/g
6970 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6971 D["\1"]=" \3\\\\\\n"\\/p
6972 t cont
6973 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6974 t cont
6975 d
6976 :cont
6977 n
6978 s/.\{148\}/&'"$ac_delim"'/g
6979 t clear
6980 :clear
6981 s/\\$//
6982 t bsnlc
6983 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6984 d
6985 :bsnlc
6986 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6987 b cont
6988 ' <confdefs.h | sed '
6989 s/'"$ac_delim"'/"\\\
6990 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6991
6992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6993 for (key in D) D_is_set[key] = 1
6994 FS = ""
6995 }
6996 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6997 line = \$ 0
6998 split(line, arg, " ")
6999 if (arg[1] == "#") {
7000 defundef = arg[2]
7001 mac1 = arg[3]
7002 } else {
7003 defundef = substr(arg[1], 2)
7004 mac1 = arg[2]
7005 }
7006 split(mac1, mac2, "(") #)
7007 macro = mac2[1]
7008 prefix = substr(line, 1, index(line, defundef) - 1)
7009 if (D_is_set[macro]) {
7010 # Preserve the white space surrounding the "#".
7011 print prefix "define", macro P[macro] D[macro]
7012 next
7013 } else {
7014 # Replace #undef with comments. This is necessary, for example,
7015 # in the case of _POSIX_SOURCE, which is predefined and required
7016 # on some systems where configure will not decide to define it.
7017 if (defundef == "undef") {
7018 print "/*", prefix defundef, macro, "*/"
7019 next
7020 }
7021 }
7022 }
7023 { print }
7024 _ACAWK
7025 _ACEOF
7026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7027 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7028 fi # test -n "$CONFIG_HEADERS"
7029
7030
7031 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
7032 shift
7033 for ac_tag
7034 do
7035 case $ac_tag in
7036 :[FHLC]) ac_mode=$ac_tag; continue;;
7037 esac
7038 case $ac_mode$ac_tag in
7039 :[FHL]*:*);;
7040 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7041 :[FH]-) ac_tag=-:-;;
7042 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7043 esac
7044 ac_save_IFS=$IFS
7045 IFS=:
7046 set x $ac_tag
7047 IFS=$ac_save_IFS
7048 shift
7049 ac_file=$1
7050 shift
7051
7052 case $ac_mode in
7053 :L) ac_source=$1;;
7054 :[FH])
7055 ac_file_inputs=
7056 for ac_f
7057 do
7058 case $ac_f in
7059 -) ac_f="$ac_tmp/stdin";;
7060 *) # Look for the file first in the build tree, then in the source tree
7061 # (if the path is not absolute). The absolute path cannot be DOS-style,
7062 # because $ac_f cannot contain `:'.
7063 test -f "$ac_f" ||
7064 case $ac_f in
7065 [\\/$]*) false;;
7066 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7067 esac ||
7068 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7069 esac
7070 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7071 as_fn_append ac_file_inputs " '$ac_f'"
7072 done
7073
7074 # Let's still pretend it is `configure' which instantiates (i.e., don't
7075 # use $as_me), people would be surprised to read:
7076 # /* config.h. Generated by config.status. */
7077 configure_input='Generated from '`
7078 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7079 `' by configure.'
7080 if test x"$ac_file" != x-; then
7081 configure_input="$ac_file. $configure_input"
7082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7083 printf "%s\n" "$as_me: creating $ac_file" >&6;}
7084 fi
7085 # Neutralize special characters interpreted by sed in replacement strings.
7086 case $configure_input in #(
7087 *\&* | *\|* | *\\* )
7088 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
7089 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7090 *) ac_sed_conf_input=$configure_input;;
7091 esac
7092
7093 case $ac_tag in
7094 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7095 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7096 esac
7097 ;;
7098 esac
7099
7100 ac_dir=`$as_dirname -- "$ac_file" ||
7101 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7102 X"$ac_file" : 'X\(//\)[^/]' \| \
7103 X"$ac_file" : 'X\(//\)$' \| \
7104 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7105 printf "%s\n" X"$ac_file" |
7106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7107 s//\1/
7108 q
7109 }
7110 /^X\(\/\/\)[^/].*/{
7111 s//\1/
7112 q
7113 }
7114 /^X\(\/\/\)$/{
7115 s//\1/
7116 q
7117 }
7118 /^X\(\/\).*/{
7119 s//\1/
7120 q
7121 }
7122 s/.*/./; q'`
7123 as_dir="$ac_dir"; as_fn_mkdir_p
7124 ac_builddir=.
7125
7126 case "$ac_dir" in
7127 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7128 *)
7129 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
7130 # A ".." for each directory in $ac_dir_suffix.
7131 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7132 case $ac_top_builddir_sub in
7133 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7134 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7135 esac ;;
7136 esac
7137 ac_abs_top_builddir=$ac_pwd
7138 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7139 # for backward compatibility:
7140 ac_top_builddir=$ac_top_build_prefix
7141
7142 case $srcdir in
7143 .) # We are building in place.
7144 ac_srcdir=.
7145 ac_top_srcdir=$ac_top_builddir_sub
7146 ac_abs_top_srcdir=$ac_pwd ;;
7147 [\\/]* | ?:[\\/]* ) # Absolute name.
7148 ac_srcdir=$srcdir$ac_dir_suffix;
7149 ac_top_srcdir=$srcdir
7150 ac_abs_top_srcdir=$srcdir ;;
7151 *) # Relative name.
7152 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7153 ac_top_srcdir=$ac_top_build_prefix$srcdir
7154 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7155 esac
7156 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7157
7158
7159 case $ac_mode in
7160 :F)
7161 #
7162 # CONFIG_FILE
7163 #
7164
7165 case $INSTALL in
7166 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7167 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7168 esac
7169 _ACEOF
7170
7171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7172 # If the template does not know about datarootdir, expand it.
7173 # FIXME: This hack should be removed a few years after 2.60.
7174 ac_datarootdir_hack=; ac_datarootdir_seen=
7175 ac_sed_dataroot='
7176 /datarootdir/ {
7177 p
7178 q
7179 }
7180 /@datadir@/p
7181 /@docdir@/p
7182 /@infodir@/p
7183 /@localedir@/p
7184 /@mandir@/p'
7185 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7186 *datarootdir*) ac_datarootdir_seen=yes;;
7187 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7189 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7190 _ACEOF
7191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7192 ac_datarootdir_hack='
7193 s&@datadir@&$datadir&g
7194 s&@docdir@&$docdir&g
7195 s&@infodir@&$infodir&g
7196 s&@localedir@&$localedir&g
7197 s&@mandir@&$mandir&g
7198 s&\\\${datarootdir}&$datarootdir&g' ;;
7199 esac
7200 _ACEOF
7201
7202 # Neutralize VPATH when `$srcdir' = `.'.
7203 # Shell code in configure.ac might set extrasub.
7204 # FIXME: do we really want to maintain this feature?
7205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7206 ac_sed_extra="$ac_vpsub
7207 $extrasub
7208 _ACEOF
7209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7210 :t
7211 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7212 s|@configure_input@|$ac_sed_conf_input|;t t
7213 s&@top_builddir@&$ac_top_builddir_sub&;t t
7214 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7215 s&@srcdir@&$ac_srcdir&;t t
7216 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7217 s&@top_srcdir@&$ac_top_srcdir&;t t
7218 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7219 s&@builddir@&$ac_builddir&;t t
7220 s&@abs_builddir@&$ac_abs_builddir&;t t
7221 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7222 s&@INSTALL@&$ac_INSTALL&;t t
7223 $ac_datarootdir_hack
7224 "
7225 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7226 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7227
7228 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7229 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7230 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7231 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7233 which seems to be undefined. Please make sure it is defined" >&5
7234 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7235 which seems to be undefined. Please make sure it is defined" >&2;}
7236
7237 rm -f "$ac_tmp/stdin"
7238 case $ac_file in
7239 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7240 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7241 esac \
7242 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7243 ;;
7244 :H)
7245 #
7246 # CONFIG_HEADER
7247 #
7248 if test x"$ac_file" != x-; then
7249 {
7250 printf "%s\n" "/* $configure_input */" >&1 \
7251 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7252 } >"$ac_tmp/config.h" \
7253 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7254 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7256 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
7257 else
7258 rm -f "$ac_file"
7259 mv "$ac_tmp/config.h" "$ac_file" \
7260 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7261 fi
7262 else
7263 printf "%s\n" "/* $configure_input */" >&1 \
7264 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7265 || as_fn_error $? "could not create -" "$LINENO" 5
7266 fi
7267 ;;
7268
7269
7270 esac
7271
7272 done # for ac_tag
7273
7274
7275 as_fn_exit 0
7276 _ACEOF
7277 ac_clean_files=$ac_clean_files_save
7278
7279 test $ac_write_fail = 0 ||
7280 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7281
7282
7283 # configure is writing to config.log, and then calls config.status.
7284 # config.status does its own redirection, appending to config.log.
7285 # Unfortunately, on DOS this fails, as config.log is still kept open
7286 # by configure, so config.status won't be able to write to it; its
7287 # output is simply discarded. So we exec the FD to /dev/null,
7288 # effectively closing config.log, so it can be properly (re)opened and
7289 # appended to by config.status. When coming back to configure, we
7290 # need to make the FD available again.
7291 if test "$no_create" != yes; then
7292 ac_cs_success=:
7293 ac_config_status_args=
7294 test "$silent" = yes &&
7295 ac_config_status_args="$ac_config_status_args --quiet"
7296 exec 5>/dev/null
7297 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7298 exec 5>>config.log
7299 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7300 # would make configure fail if this is the last instruction.
7301 $ac_cs_success || as_fn_exit 1
7302 fi
7303 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7305 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7306 fi
7307
7308 # NCAT ASCII ART
7309 if test -f docs/ncat-ascii-art.txt; then
7310 cat docs/ncat-ascii-art.txt
7311 fi
7312
7313 echo "Configuration complete."
7314