Debian Codegraph @

configure

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