Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for OpenSMTPD-portable 7.8.0p0.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188 if (eval "$as_required") 2>/dev/null
189 then :
190 as_have_required=yes
191 else case e in #(
192 e) as_have_required=no ;;
193 esac
194 fi
195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196 then :
197
198 else case e in #(
199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200 as_found=false
201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 do
203 IFS=$as_save_IFS
204 case $as_dir in #(((
205 '') as_dir=./ ;;
206 */) ;;
207 *) as_dir=$as_dir/ ;;
208 esac
209 as_found=:
210 case $as_dir in #(
211 /*)
212 for as_base in sh bash ksh sh5; do
213 # Try only shells that exist, to save several forks.
214 as_shell=$as_dir$as_base
215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217 then :
218 CONFIG_SHELL=$as_shell as_have_required=yes
219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220 then :
221 break 2
222 fi
223 fi
224 done;;
225 esac
226 as_found=false
227 done
228 IFS=$as_save_IFS
229 if $as_found
230 then :
231
232 else case e in #(
233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235 then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi ;;
238 esac
239 fi
240
241
242 if test "x$CONFIG_SHELL" != x
243 then :
244 export CONFIG_SHELL
245 # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
249 BASH_ENV=/dev/null
250 ENV=/dev/null
251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 case $- in # ((((
253 *v*x* | *x*v* ) as_opts=-vx ;;
254 *v* ) as_opts=-v ;;
255 *x* ) as_opts=-x ;;
256 * ) as_opts= ;;
257 esac
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed 'exec'.
261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 exit 255
263 fi
264
265 if test x$as_have_required = xno
266 then :
267 printf "%s\n" "$0: This script requires a shell more modern than all"
268 printf "%s\n" "$0: the shells that I found on your system."
269 if test ${ZSH_VERSION+y} ; then
270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272 else
273 printf "%s\n" "$0: Please tell [email protected] and [email protected]
274 $0: about your system, including any error possibly output
275 $0: before this message. Then install a modern shell, or
276 $0: manually run the script under such a shell if you do
277 $0: have one."
278 fi
279 exit 1
280 fi ;;
281 esac
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302
303 # as_fn_set_status STATUS
304 # -----------------------
305 # Set $? to STATUS, without forking.
306 as_fn_set_status ()
307 {
308 return $1
309 } # as_fn_set_status
310
311 # as_fn_exit STATUS
312 # -----------------
313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 as_fn_exit ()
315 {
316 set +e
317 as_fn_set_status $1
318 exit $1
319 } # as_fn_exit
320
321 # as_fn_mkdir_p
322 # -------------
323 # Create "$as_dir" as a directory, including parents if necessary.
324 as_fn_mkdir_p ()
325 {
326
327 case $as_dir in #(
328 -*) as_dir=./$as_dir;;
329 esac
330 test -d "$as_dir" || eval $as_mkdir_p || {
331 as_dirs=
332 while :; do
333 case $as_dir in #(
334 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
335 *) as_qdir=$as_dir;;
336 esac
337 as_dirs="'$as_qdir' $as_dirs"
338 as_dir=`$as_dirname -- "$as_dir" ||
339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
340 X"$as_dir" : 'X\(//\)[^/]' \| \
341 X"$as_dir" : 'X\(//\)$' \| \
342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
343 printf "%s\n" X"$as_dir" |
344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
345 s//\1/
346 q
347 }
348 /^X\(\/\/\)[^/].*/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\).*/{
357 s//\1/
358 q
359 }
360 s/.*/./; q'`
361 test -d "$as_dir" && break
362 done
363 test -z "$as_dirs" || eval "mkdir $as_dirs"
364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
365
366
367 } # as_fn_mkdir_p
368
369 # as_fn_executable_p FILE
370 # -----------------------
371 # Test if FILE is an executable regular file.
372 as_fn_executable_p ()
373 {
374 test -f "$1" && test -x "$1"
375 } # as_fn_executable_p
376 # as_fn_append VAR VALUE
377 # ----------------------
378 # Append the text in VALUE to the end of the definition contained in VAR. Take
379 # advantage of any shell optimizations that allow amortized linear growth over
380 # repeated appends, instead of the typical quadratic growth present in naive
381 # implementations.
382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
383 then :
384 eval 'as_fn_append ()
385 {
386 eval $1+=\$2
387 }'
388 else case e in #(
389 e) as_fn_append ()
390 {
391 eval $1=\$$1\$2
392 } ;;
393 esac
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402 then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else case e in #(
408 e) as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 } ;;
412 esac
413 fi # as_fn_arith
414
415
416 # as_fn_error STATUS ERROR [LINENO LOG_FD]
417 # ----------------------------------------
418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
420 # script with STATUS, using 1 if that was 0.
421 as_fn_error ()
422 {
423 as_status=$1; test $as_status -eq 0 && as_status=1
424 if test "$4"; then
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 fi
428 printf "%s\n" "$as_me: error: $2" >&2
429 as_fn_exit $as_status
430 } # as_fn_error
431
432 if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 as_expr=expr
435 else
436 as_expr=false
437 fi
438
439 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 as_basename=basename
441 else
442 as_basename=false
443 fi
444
445 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_dirname=dirname
447 else
448 as_dirname=false
449 fi
450
451 as_me=`$as_basename -- "$0" ||
452 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 printf "%s\n" X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\/\)$/{
461 s//\1/
462 q
463 }
464 /^X\/\(\/\).*/{
465 s//\1/
466 q
467 }
468 s/.*/./; q'`
469
470 # Avoid depending upon Character Ranges.
471 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474 as_cr_digits='0123456789'
475 as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 sed -n '
484 p
485 /[$]LINENO/=
486 ' <$as_myself |
487 sed '
488 t clear
489 :clear
490 s/[$]LINENO.*/&-/
491 t lineno
492 b
493 :lineno
494 N
495 :loop
496 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 t loop
498 s/-\n.*//
499 ' >$as_me.lineno &&
500 chmod +x "$as_me.lineno" ||
501 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
502
503 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
504 # already done that, so ensure we don't try to do so again and fall
505 # in an infinite loop. This has already happened in practice.
506 _as_can_reexec=no; export _as_can_reexec
507 # Don't try to exec as it changes $[0], causing all sort of problems
508 # (the dirname of $[0] is not the place where we might find the
509 # original and so on. Autoconf is especially sensitive to this).
510 . "./$as_me.lineno"
511 # Exit status is that of the last command.
512 exit
513 }
514
515
516 # Determine whether it's possible to make 'echo' print without a newline.
517 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
518 # for compatibility with existing Makefiles.
519 ECHO_C= ECHO_N= ECHO_T=
520 case `echo -n x` in #(((((
521 -n*)
522 case `echo 'xy\c'` in
523 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
524 xy) ECHO_C='\c';;
525 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
526 ECHO_T=' ';;
527 esac;;
528 *)
529 ECHO_N='-n';;
530 esac
531
532 # For backward compatibility with old third-party macros, we provide
533 # the shell variables $as_echo and $as_echo_n. New code should use
534 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
535 as_echo='printf %s\n'
536 as_echo_n='printf %s'
537
538 rm -f conf$$ conf$$.exe conf$$.file
539 if test -d conf$$.dir; then
540 rm -f conf$$.dir/conf$$.file
541 else
542 rm -f conf$$.dir
543 mkdir conf$$.dir 2>/dev/null
544 fi
545 if (echo >conf$$.file) 2>/dev/null; then
546 if ln -s conf$$.file conf$$ 2>/dev/null; then
547 as_ln_s='ln -s'
548 # ... but there are two gotchas:
549 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
550 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
551 # In both cases, we have to default to 'cp -pR'.
552 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
553 as_ln_s='cp -pR'
554 elif ln conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s=ln
556 else
557 as_ln_s='cp -pR'
558 fi
559 else
560 as_ln_s='cp -pR'
561 fi
562 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
563 rmdir conf$$.dir 2>/dev/null
564
565 if mkdir -p . 2>/dev/null; then
566 as_mkdir_p='mkdir -p "$as_dir"'
567 else
568 test -d ./-p && rmdir ./-p
569 as_mkdir_p=false
570 fi
571
572 as_test_x='test -x'
573 as_executable_p=as_fn_executable_p
574
575 # Sed expression to map a string onto a valid CPP name.
576 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
577 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
578
579 # Sed expression to map a string onto a valid variable name.
580 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
581 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
582
583
584 test -n "$DJDIR" || exec 7<&0 </dev/null
585 exec 6>&1
586
587 # Name of the host.
588 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
589 # so uname gets run too.
590 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
591
592 #
593 # Initializations.
594 #
595 ac_default_prefix=/usr/local
596 ac_clean_files=
597 ac_config_libobj_dir=.
598 LIBOBJS=
599 cross_compiling=no
600 subdirs=
601 MFLAGS=
602 MAKEFLAGS=
603
604 # Identity of this package.
605 PACKAGE_NAME='OpenSMTPD-portable'
606 PACKAGE_TARNAME='opensmtpd'
607 PACKAGE_VERSION='7.8.0p0'
608 PACKAGE_STRING='OpenSMTPD-portable 7.8.0p0'
609 PACKAGE_BUGREPORT='[email protected]'
610 PACKAGE_URL='https://www.opensmtpd.org'
611
612 ac_config_libobj_dir=openbsd-compat
613 # Factoring default headers for most tests.
614 ac_includes_default="\
615 #include <stddef.h>
616 #ifdef HAVE_STDIO_H
617 # include <stdio.h>
618 #endif
619 #ifdef HAVE_STDLIB_H
620 # include <stdlib.h>
621 #endif
622 #ifdef HAVE_STRING_H
623 # include <string.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_STRINGS_H
632 # include <strings.h>
633 #endif
634 #ifdef HAVE_SYS_TYPES_H
635 # include <sys/types.h>
636 #endif
637 #ifdef HAVE_SYS_STAT_H
638 # include <sys/stat.h>
639 #endif
640 #ifdef HAVE_UNISTD_H
641 # include <unistd.h>
642 #endif"
643
644 ac_header_c_list=
645 ac_subst_vars='am__EXEEXT_FALSE
646 am__EXEEXT_TRUE
647 LTLIBOBJS
648 AM_CFLAGS
649 HAVE_DB_API_FALSE
650 HAVE_DB_API_TRUE
651 DB_LIB
652 piddir
653 sockdir
654 PRIVSEP_PATH
655 spooldir
656 SMTPD_QUEUE_GROUP
657 SMTPD_QUEUE_USER
658 SMTPD_USER
659 USE_PAM_SERVICE
660 mansubdir
661 MANTYPE
662 NEED_LIBASR_FALSE
663 NEED_LIBASR_TRUE
664 LIBOBJS
665 pkglibexecdir
666 LIBBSD_LIBS
667 LIBBSD_CFLAGS
668 SED
669 ZCAT
670 CHOWN
671 CHMOD
672 CAT
673 YFLAGS
674 YACC
675 PKG_CONFIG_LIBDIR
676 PKG_CONFIG_PATH
677 PKG_CONFIG
678 EGREP
679 GREP
680 ac_ct_AR
681 AR
682 am__fastdepCC_FALSE
683 am__fastdepCC_TRUE
684 CCDEPMODE
685 am__nodep
686 AMDEPBACKSLASH
687 AMDEP_FALSE
688 AMDEP_TRUE
689 am__include
690 DEPDIR
691 OBJEXT
692 EXEEXT
693 ac_ct_CC
694 CPPFLAGS
695 LDFLAGS
696 CFLAGS
697 CC
698 am__xargs_n
699 am__rm_f_notfound
700 AM_BACKSLASH
701 AM_DEFAULT_VERBOSITY
702 AM_DEFAULT_V
703 AM_V
704 CSCOPE
705 ETAGS
706 CTAGS
707 am__untar
708 am__tar
709 AMTAR
710 am__leading_dot
711 SET_MAKE
712 AWK
713 mkdir_p
714 MKDIR_P
715 INSTALL_STRIP_PROGRAM
716 STRIP
717 install_sh
718 MAKEINFO
719 AUTOHEADER
720 AUTOMAKE
721 AUTOCONF
722 ACLOCAL
723 VERSION
724 PACKAGE
725 CYGPATH_W
726 am__isrc
727 INSTALL_DATA
728 INSTALL_SCRIPT
729 INSTALL_PROGRAM
730 host_os
731 host_vendor
732 host_cpu
733 host
734 build_os
735 build_vendor
736 build_cpu
737 build
738 target_alias
739 host_alias
740 build_alias
741 LIBS
742 ECHO_T
743 ECHO_N
744 ECHO_C
745 DEFS
746 mandir
747 localedir
748 libdir
749 psdir
750 pdfdir
751 dvidir
752 htmldir
753 infodir
754 docdir
755 oldincludedir
756 includedir
757 runstatedir
758 localstatedir
759 sharedstatedir
760 sysconfdir
761 datadir
762 datarootdir
763 libexecdir
764 sbindir
765 bindir
766 program_transform_name
767 prefix
768 exec_prefix
769 PACKAGE_URL
770 PACKAGE_BUGREPORT
771 PACKAGE_STRING
772 PACKAGE_VERSION
773 PACKAGE_TARNAME
774 PACKAGE_NAME
775 PATH_SEPARATOR
776 SHELL
777 am__quote'
778 ac_subst_files=''
779 ac_user_opts='
780 enable_option_checking
781 enable_silent_rules
782 enable_dependency_tracking
783 with_libbsd
784 with_rpath
785 with_cflags
786 with_cppflags
787 with_ldflags
788 with_Werror
789 with_pie
790 with_mantype
791 with_auth_bsdauth
792 with_auth_pam
793 with_user_smtpd
794 with_user_queue
795 with_group_queue
796 with_path_queue
797 with_path_empty
798 with_path_mbox
799 with_path_socket
800 with_path_pidfile
801 with_path_CAfile
802 with_libfts
803 with_libevent
804 with_libssl
805 with_libz
806 with_table_db
807 '
808 ac_precious_vars='build_alias
809 host_alias
810 target_alias
811 CC
812 CFLAGS
813 LDFLAGS
814 LIBS
815 CPPFLAGS
816 PKG_CONFIG
817 PKG_CONFIG_PATH
818 PKG_CONFIG_LIBDIR
819 YACC
820 YFLAGS
821 LIBBSD_CFLAGS
822 LIBBSD_LIBS'
823
824
825 # Initialize some variables set by options.
826 ac_init_help=
827 ac_init_version=false
828 ac_unrecognized_opts=
829 ac_unrecognized_sep=
830 # The variables have the same names as the options, with
831 # dashes changed to underlines.
832 cache_file=/dev/null
833 exec_prefix=NONE
834 no_create=
835 no_recursion=
836 prefix=NONE
837 program_prefix=NONE
838 program_suffix=NONE
839 program_transform_name=s,x,x,
840 silent=
841 site=
842 srcdir=
843 verbose=
844 x_includes=NONE
845 x_libraries=NONE
846
847 # Installation directory options.
848 # These are left unexpanded so users can "make install exec_prefix=/foo"
849 # and all the variables that are supposed to be based on exec_prefix
850 # by default will actually change.
851 # Use braces instead of parens because sh, perl, etc. also accept them.
852 # (The list follows the same order as the GNU Coding Standards.)
853 bindir='${exec_prefix}/bin'
854 sbindir='${exec_prefix}/sbin'
855 libexecdir='${exec_prefix}/libexec'
856 datarootdir='${prefix}/share'
857 datadir='${datarootdir}'
858 sysconfdir='${prefix}/etc'
859 sharedstatedir='${prefix}/com'
860 localstatedir='${prefix}/var'
861 runstatedir='${localstatedir}/run'
862 includedir='${prefix}/include'
863 oldincludedir='/usr/include'
864 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
865 infodir='${datarootdir}/info'
866 htmldir='${docdir}'
867 dvidir='${docdir}'
868 pdfdir='${docdir}'
869 psdir='${docdir}'
870 libdir='${exec_prefix}/lib'
871 localedir='${datarootdir}/locale'
872 mandir='${datarootdir}/man'
873
874 ac_prev=
875 ac_dashdash=
876 for ac_option
877 do
878 # If the previous option needs an argument, assign it.
879 if test -n "$ac_prev"; then
880 eval $ac_prev=\$ac_option
881 ac_prev=
882 continue
883 fi
884
885 case $ac_option in
886 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887 *=) ac_optarg= ;;
888 *) ac_optarg=yes ;;
889 esac
890
891 case $ac_dashdash$ac_option in
892 --)
893 ac_dashdash=yes ;;
894
895 -bindir | --bindir | --bindi | --bind | --bin | --bi)
896 ac_prev=bindir ;;
897 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
898 bindir=$ac_optarg ;;
899
900 -build | --build | --buil | --bui | --bu)
901 ac_prev=build_alias ;;
902 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
903 build_alias=$ac_optarg ;;
904
905 -cache-file | --cache-file | --cache-fil | --cache-fi \
906 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
907 ac_prev=cache_file ;;
908 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
909 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
910 cache_file=$ac_optarg ;;
911
912 --config-cache | -C)
913 cache_file=config.cache ;;
914
915 -datadir | --datadir | --datadi | --datad)
916 ac_prev=datadir ;;
917 -datadir=* | --datadir=* | --datadi=* | --datad=*)
918 datadir=$ac_optarg ;;
919
920 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
921 | --dataroo | --dataro | --datar)
922 ac_prev=datarootdir ;;
923 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
924 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
925 datarootdir=$ac_optarg ;;
926
927 -disable-* | --disable-*)
928 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931 as_fn_error $? "invalid feature name: '$ac_useropt'"
932 ac_useropt_orig=$ac_useropt
933 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
935 *"
936 "enable_$ac_useropt"
937 "*) ;;
938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
939 ac_unrecognized_sep=', ';;
940 esac
941 eval enable_$ac_useropt=no ;;
942
943 -docdir | --docdir | --docdi | --doc | --do)
944 ac_prev=docdir ;;
945 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 docdir=$ac_optarg ;;
947
948 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949 ac_prev=dvidir ;;
950 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 dvidir=$ac_optarg ;;
952
953 -enable-* | --enable-*)
954 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957 as_fn_error $? "invalid feature name: '$ac_useropt'"
958 ac_useropt_orig=$ac_useropt
959 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
960 case $ac_user_opts in
961 *"
962 "enable_$ac_useropt"
963 "*) ;;
964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
965 ac_unrecognized_sep=', ';;
966 esac
967 eval enable_$ac_useropt=\$ac_optarg ;;
968
969 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
970 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
971 | --exec | --exe | --ex)
972 ac_prev=exec_prefix ;;
973 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
974 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
975 | --exec=* | --exe=* | --ex=*)
976 exec_prefix=$ac_optarg ;;
977
978 -gas | --gas | --ga | --g)
979 # Obsolete; use --with-gas.
980 with_gas=yes ;;
981
982 -help | --help | --hel | --he | -h)
983 ac_init_help=long ;;
984 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
985 ac_init_help=recursive ;;
986 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
987 ac_init_help=short ;;
988
989 -host | --host | --hos | --ho)
990 ac_prev=host_alias ;;
991 -host=* | --host=* | --hos=* | --ho=*)
992 host_alias=$ac_optarg ;;
993
994 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
995 ac_prev=htmldir ;;
996 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
997 | --ht=*)
998 htmldir=$ac_optarg ;;
999
1000 -includedir | --includedir | --includedi | --included | --include \
1001 | --includ | --inclu | --incl | --inc)
1002 ac_prev=includedir ;;
1003 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1004 | --includ=* | --inclu=* | --incl=* | --inc=*)
1005 includedir=$ac_optarg ;;
1006
1007 -infodir | --infodir | --infodi | --infod | --info | --inf)
1008 ac_prev=infodir ;;
1009 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1010 infodir=$ac_optarg ;;
1011
1012 -libdir | --libdir | --libdi | --libd)
1013 ac_prev=libdir ;;
1014 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1015 libdir=$ac_optarg ;;
1016
1017 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1018 | --libexe | --libex | --libe)
1019 ac_prev=libexecdir ;;
1020 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1021 | --libexe=* | --libex=* | --libe=*)
1022 libexecdir=$ac_optarg ;;
1023
1024 -localedir | --localedir | --localedi | --localed | --locale)
1025 ac_prev=localedir ;;
1026 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1027 localedir=$ac_optarg ;;
1028
1029 -localstatedir | --localstatedir | --localstatedi | --localstated \
1030 | --localstate | --localstat | --localsta | --localst | --locals)
1031 ac_prev=localstatedir ;;
1032 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1033 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1034 localstatedir=$ac_optarg ;;
1035
1036 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1037 ac_prev=mandir ;;
1038 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1039 mandir=$ac_optarg ;;
1040
1041 -nfp | --nfp | --nf)
1042 # Obsolete; use --without-fp.
1043 with_fp=no ;;
1044
1045 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1046 | --no-cr | --no-c | -n)
1047 no_create=yes ;;
1048
1049 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1050 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1051 no_recursion=yes ;;
1052
1053 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1054 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1055 | --oldin | --oldi | --old | --ol | --o)
1056 ac_prev=oldincludedir ;;
1057 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1058 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1059 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1060 oldincludedir=$ac_optarg ;;
1061
1062 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1063 ac_prev=prefix ;;
1064 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1065 prefix=$ac_optarg ;;
1066
1067 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1068 | --program-pre | --program-pr | --program-p)
1069 ac_prev=program_prefix ;;
1070 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1071 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1072 program_prefix=$ac_optarg ;;
1073
1074 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1075 | --program-suf | --program-su | --program-s)
1076 ac_prev=program_suffix ;;
1077 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1078 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1079 program_suffix=$ac_optarg ;;
1080
1081 -program-transform-name | --program-transform-name \
1082 | --program-transform-nam | --program-transform-na \
1083 | --program-transform-n | --program-transform- \
1084 | --program-transform | --program-transfor \
1085 | --program-transfo | --program-transf \
1086 | --program-trans | --program-tran \
1087 | --progr-tra | --program-tr | --program-t)
1088 ac_prev=program_transform_name ;;
1089 -program-transform-name=* | --program-transform-name=* \
1090 | --program-transform-nam=* | --program-transform-na=* \
1091 | --program-transform-n=* | --program-transform-=* \
1092 | --program-transform=* | --program-transfor=* \
1093 | --program-transfo=* | --program-transf=* \
1094 | --program-trans=* | --program-tran=* \
1095 | --progr-tra=* | --program-tr=* | --program-t=*)
1096 program_transform_name=$ac_optarg ;;
1097
1098 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1099 ac_prev=pdfdir ;;
1100 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1101 pdfdir=$ac_optarg ;;
1102
1103 -psdir | --psdir | --psdi | --psd | --ps)
1104 ac_prev=psdir ;;
1105 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1106 psdir=$ac_optarg ;;
1107
1108 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1109 | -silent | --silent | --silen | --sile | --sil)
1110 silent=yes ;;
1111
1112 -runstatedir | --runstatedir | --runstatedi | --runstated \
1113 | --runstate | --runstat | --runsta | --runst | --runs \
1114 | --run | --ru | --r)
1115 ac_prev=runstatedir ;;
1116 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1117 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1118 | --run=* | --ru=* | --r=*)
1119 runstatedir=$ac_optarg ;;
1120
1121 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122 ac_prev=sbindir ;;
1123 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124 | --sbi=* | --sb=*)
1125 sbindir=$ac_optarg ;;
1126
1127 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1128 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1129 | --sharedst | --shareds | --shared | --share | --shar \
1130 | --sha | --sh)
1131 ac_prev=sharedstatedir ;;
1132 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1133 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1134 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135 | --sha=* | --sh=*)
1136 sharedstatedir=$ac_optarg ;;
1137
1138 -site | --site | --sit)
1139 ac_prev=site ;;
1140 -site=* | --site=* | --sit=*)
1141 site=$ac_optarg ;;
1142
1143 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144 ac_prev=srcdir ;;
1145 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1146 srcdir=$ac_optarg ;;
1147
1148 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1149 | --syscon | --sysco | --sysc | --sys | --sy)
1150 ac_prev=sysconfdir ;;
1151 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1152 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1153 sysconfdir=$ac_optarg ;;
1154
1155 -target | --target | --targe | --targ | --tar | --ta | --t)
1156 ac_prev=target_alias ;;
1157 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1158 target_alias=$ac_optarg ;;
1159
1160 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161 verbose=yes ;;
1162
1163 -version | --version | --versio | --versi | --vers | -V)
1164 ac_init_version=: ;;
1165
1166 -with-* | --with-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error $? "invalid package name: '$ac_useropt'"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1174 *"
1175 "with_$ac_useropt"
1176 "*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=\$ac_optarg ;;
1181
1182 -without-* | --without-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid package name: '$ac_useropt'"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1190 *"
1191 "with_$ac_useropt"
1192 "*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=no ;;
1197
1198 --x)
1199 # Obsolete; use --with-x.
1200 with_x=yes ;;
1201
1202 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1203 | --x-incl | --x-inc | --x-in | --x-i)
1204 ac_prev=x_includes ;;
1205 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1206 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1207 x_includes=$ac_optarg ;;
1208
1209 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1210 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1211 ac_prev=x_libraries ;;
1212 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1213 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1214 x_libraries=$ac_optarg ;;
1215
1216 -*) as_fn_error $? "unrecognized option: '$ac_option'
1217 Try '$0 --help' for more information"
1218 ;;
1219
1220 *=*)
1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222 # Reject names that are not valid shell variable names.
1223 case $ac_envvar in #(
1224 '' | [0-9]* | *[!_$as_cr_alnum]* )
1225 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1226 esac
1227 eval $ac_envvar=\$ac_optarg
1228 export $ac_envvar ;;
1229
1230 *)
1231 # FIXME: should be removed in autoconf 3.0.
1232 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1233 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1235 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1236 ;;
1237
1238 esac
1239 done
1240
1241 if test -n "$ac_prev"; then
1242 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1243 as_fn_error $? "missing argument to $ac_option"
1244 fi
1245
1246 if test -n "$ac_unrecognized_opts"; then
1247 case $enable_option_checking in
1248 no) ;;
1249 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1250 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251 esac
1252 fi
1253
1254 # Check all directory arguments for consistency.
1255 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256 datadir sysconfdir sharedstatedir localstatedir includedir \
1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258 libdir localedir mandir runstatedir
1259 do
1260 eval ac_val=\$$ac_var
1261 # Remove trailing slashes.
1262 case $ac_val in
1263 */ )
1264 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265 eval $ac_var=\$ac_val;;
1266 esac
1267 # Be sure to have absolute directory names.
1268 case $ac_val in
1269 [\\/$]* | ?:[\\/]* ) continue;;
1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271 esac
1272 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1273 done
1274
1275 # There might be people who depend on the old broken behavior: '$host'
1276 # used to hold the argument of --host etc.
1277 # FIXME: To remove some day.
1278 build=$build_alias
1279 host=$host_alias
1280 target=$target_alias
1281
1282 # FIXME: To remove some day.
1283 if test "x$host_alias" != x; then
1284 if test "x$build_alias" = x; then
1285 cross_compiling=maybe
1286 elif test "x$build_alias" != "x$host_alias"; then
1287 cross_compiling=yes
1288 fi
1289 fi
1290
1291 ac_tool_prefix=
1292 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294 test "$silent" = yes && exec 6>/dev/null
1295
1296
1297 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298 ac_ls_di=`ls -di .` &&
1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 as_fn_error $? "working directory cannot be determined"
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 as_fn_error $? "pwd does not report name of working directory"
1303
1304
1305 # Find the source files, if location was not specified.
1306 if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314 printf "%s\n" X"$as_myself" |
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)[^/].*/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\).*/{
1328 s//\1/
1329 q
1330 }
1331 s/.*/./; q'`
1332 srcdir=$ac_confdir
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334 srcdir=..
1335 fi
1336 else
1337 ac_srcdir_defaulted=no
1338 fi
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1342 fi
1343 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1344 ac_abs_confdir=`(
1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1346 pwd)`
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1350 fi
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1354 case $srcdir in
1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356 esac
1357 for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362 done
1363
1364 #
1365 # Report the --help message.
1366 #
1367 if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1370 cat <<_ACEOF
1371 'configure' configures OpenSMTPD-portable 7.8.0p0 to adapt to many kinds of systems.
1372
1373 Usage: $0 [OPTION]... [VAR=VALUE]...
1374
1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376 VAR=VALUE. See below for descriptions of some of the useful variables.
1377
1378 Defaults for the options are specified in brackets.
1379
1380 Configuration:
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
1385 -q, --quiet, --silent do not print 'checking ...' messages
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for '--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or '..']
1390
1391 Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
1393 [$ac_default_prefix]
1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395 [PREFIX]
1396
1397 By default, 'make install' will install all the files in
1398 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1399 an installation prefix other than '$ac_default_prefix' using '--prefix',
1400 for instance '--prefix=\$HOME'.
1401
1402 For better control, use the options below.
1403
1404 Fine tuning of the installation directories:
1405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/opensmtpd]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1425 _ACEOF
1426
1427 cat <<\_ACEOF
1428
1429 Program names:
1430 --program-prefix=PREFIX prepend PREFIX to installed program names
1431 --program-suffix=SUFFIX append SUFFIX to installed program names
1432 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1433
1434 System types:
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 _ACEOF
1438 fi
1439
1440 if test -n "$ac_init_help"; then
1441 case $ac_init_help in
1442 short | recursive ) echo "Configuration of OpenSMTPD-portable 7.8.0p0:";;
1443 esac
1444 cat <<\_ACEOF
1445
1446 Optional Features:
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --enable-silent-rules less verbose build output (undo: "make V=1")
1451 --disable-silent-rules verbose build output (undo: "make V=0")
1452 --enable-dependency-tracking
1453 do not reject slow dependency extractors
1454 --disable-dependency-tracking
1455 speeds up one-time build
1456
1457 Optional Packages:
1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1460 --without-libbsd Disable libbsd usage
1461 --without-rpath Disable auto-added -R linker paths
1462 --with-cflags Specify additional flags to pass to compiler
1463 --with-cppflags Specify additional flags to pass to preprocessor
1464 --with-ldflags Specify additional flags to pass to linker
1465 --with-Werror Build main code with -Werror
1466 --with-pie Build Position Independent Executables if possible
1467 --with-mantype=man|cat|doc Set man page type
1468 --with-auth-bsdauth Enable bsd_auth(3) authentication support
1469 --with-auth-pam=SERVICE Enable PAM authentication support (default=smtpd)
1470 --with-user-smtpd=user Specify non-privileged user for smtpd (default=_smtpd)
1471 --with-user-queue=user Specify non-privileged user for queue process (default=_smtpq)
1472 --with-group-queue=group Specify non-privileged group for offline queue (default=_smtpq)
1473 --with-path-queue=PATH Specify path to queue directory (default=/var/spool/smtpd)
1474 --with-path-empty=PATH Specify path to empty directory (default=/var/empty)
1475 --with-path-mbox=PATH Specify path to mbox directory (default=/var/spool/mail)
1476 --with-path-socket=PATH Specify path to smtpd.sock directory (default=/var/run)
1477 --with-path-pidfile=PATH Specify path to smtpd.pid directory (default=/var/run)
1478 --with-path-CAfile=FILE Specify path to CA certificate
1479 --with-libfts=PATH Specify path to libfts installation (default: none, part of libc)
1480 --with-libevent=PATH Specify path to libevent installation
1481 --with-libssl=PATH Specify path to libssl installation
1482 --with-libz=PATH Specify path to libz installation
1483 --with-table-db Enable building of table-db backend (default=no)
1484
1485 Some influential environment variables:
1486 CC C compiler command
1487 CFLAGS C compiler flags
1488 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1489 nonstandard directory <lib dir>
1490 LIBS libraries to pass to the linker, e.g. -l<library>
1491 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1492 you have headers in a nonstandard directory <include dir>
1493 PKG_CONFIG path to pkg-config utility
1494 PKG_CONFIG_PATH
1495 directories to add to pkg-config's search path
1496 PKG_CONFIG_LIBDIR
1497 path overriding pkg-config's built-in search path
1498 YACC The 'Yet Another Compiler Compiler' implementation to use.
1499 Defaults to the first program found out of: 'bison -y', 'byacc',
1500 'yacc'.
1501 YFLAGS The list of arguments that will be passed by default to $YACC.
1502 This script will default YFLAGS to the empty string to avoid a
1503 default value of '-d' given by some make applications.
1504 LIBBSD_CFLAGS
1505 C compiler flags for LIBBSD, overriding pkg-config
1506 LIBBSD_LIBS linker flags for LIBBSD, overriding pkg-config
1507
1508 Use these variables to override the choices made by 'configure' or to help
1509 it to find libraries and programs with nonstandard names/locations.
1510
1511 Report bugs to <[email protected]>.
1512 OpenSMTPD-portable home page: <https://www.opensmtpd.org>.
1513 _ACEOF
1514 ac_status=$?
1515 fi
1516
1517 if test "$ac_init_help" = "recursive"; then
1518 # If there are subdirs, report their specific --help.
1519 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1520 test -d "$ac_dir" ||
1521 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1522 continue
1523 ac_builddir=.
1524
1525 case "$ac_dir" in
1526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *)
1528 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1529 # A ".." for each directory in $ac_dir_suffix.
1530 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1531 case $ac_top_builddir_sub in
1532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1534 esac ;;
1535 esac
1536 ac_abs_top_builddir=$ac_pwd
1537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538 # for backward compatibility:
1539 ac_top_builddir=$ac_top_build_prefix
1540
1541 case $srcdir in
1542 .) # We are building in place.
1543 ac_srcdir=.
1544 ac_top_srcdir=$ac_top_builddir_sub
1545 ac_abs_top_srcdir=$ac_pwd ;;
1546 [\\/]* | ?:[\\/]* ) # Absolute name.
1547 ac_srcdir=$srcdir$ac_dir_suffix;
1548 ac_top_srcdir=$srcdir
1549 ac_abs_top_srcdir=$srcdir ;;
1550 *) # Relative name.
1551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552 ac_top_srcdir=$ac_top_build_prefix$srcdir
1553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1554 esac
1555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1556
1557 cd "$ac_dir" || { ac_status=$?; continue; }
1558 # Check for configure.gnu first; this name is used for a wrapper for
1559 # Metaconfig's "Configure" on case-insensitive file systems.
1560 if test -f "$ac_srcdir/configure.gnu"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563 elif test -f "$ac_srcdir/configure"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure" --help=recursive
1566 else
1567 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568 fi || ac_status=$?
1569 cd "$ac_pwd" || { ac_status=$?; break; }
1570 done
1571 fi
1572
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1575 cat <<\_ACEOF
1576 OpenSMTPD-portable configure 7.8.0p0
1577 generated by GNU Autoconf 2.72
1578
1579 Copyright (C) 2023 Free Software Foundation, Inc.
1580 This configure script is free software; the Free Software Foundation
1581 gives unlimited permission to copy, distribute and modify it.
1582 _ACEOF
1583 exit
1584 fi
1585
1586 ## ------------------------ ##
1587 ## Autoconf initialization. ##
1588 ## ------------------------ ##
1589
1590 # ac_fn_c_try_compile LINENO
1591 # --------------------------
1592 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_compile ()
1594 {
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext conftest.beam
1597 if { { ac_try="$ac_compile"
1598 case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 printf "%s\n" "$ac_try_echo"; } >&5
1604 (eval "$ac_compile") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1610 fi
1611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest.$ac_objext
1616 then :
1617 ac_retval=0
1618 else case e in #(
1619 e) printf "%s\n" "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1621
1622 ac_retval=1 ;;
1623 esac
1624 fi
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626 as_fn_set_status $ac_retval
1627
1628 } # ac_fn_c_try_compile
1629
1630 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1631 # -------------------------------------------------------
1632 # Tests whether HEADER exists and can be compiled using the include files in
1633 # INCLUDES, setting the cache variable VAR accordingly.
1634 ac_fn_c_check_header_compile ()
1635 {
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638 printf %s "checking for $2... " >&6; }
1639 if eval test \${$3+y}
1640 then :
1641 printf %s "(cached) " >&6
1642 else case e in #(
1643 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644 /* end confdefs.h. */
1645 $4
1646 #include <$2>
1647 _ACEOF
1648 if ac_fn_c_try_compile "$LINENO"
1649 then :
1650 eval "$3=yes"
1651 else case e in #(
1652 e) eval "$3=no" ;;
1653 esac
1654 fi
1655 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1656 esac
1657 fi
1658 eval ac_res=\$$3
1659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660 printf "%s\n" "$ac_res" >&6; }
1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662
1663 } # ac_fn_c_check_header_compile
1664
1665 # ac_fn_c_try_link LINENO
1666 # -----------------------
1667 # Try to link conftest.$ac_ext, and return whether this succeeded.
1668 ac_fn_c_try_link ()
1669 {
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1672 if { { ac_try="$ac_link"
1673 case "(($ac_try" in
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1676 esac
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 printf "%s\n" "$ac_try_echo"; } >&5
1679 (eval "$ac_link") 2>conftest.err
1680 ac_status=$?
1681 if test -s conftest.err; then
1682 grep -v '^ *+' conftest.err >conftest.er1
1683 cat conftest.er1 >&5
1684 mv -f conftest.er1 conftest.err
1685 fi
1686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && {
1688 test -z "$ac_c_werror_flag" ||
1689 test ! -s conftest.err
1690 } && test -s conftest$ac_exeext && {
1691 test "$cross_compiling" = yes ||
1692 test -x conftest$ac_exeext
1693 }
1694 then :
1695 ac_retval=0
1696 else case e in #(
1697 e) printf "%s\n" "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1699
1700 ac_retval=1 ;;
1701 esac
1702 fi
1703 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1704 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1705 # interfere with the next link command; also delete a directory that is
1706 # left behind by Apple's compiler. We do this before executing the actions.
1707 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
1710
1711 } # ac_fn_c_try_link
1712
1713 # ac_fn_c_check_func LINENO FUNC VAR
1714 # ----------------------------------
1715 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1716 ac_fn_c_check_func ()
1717 {
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720 printf %s "checking for $2... " >&6; }
1721 if eval test \${$3+y}
1722 then :
1723 printf %s "(cached) " >&6
1724 else case e in #(
1725 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1726 /* end confdefs.h. */
1727 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1729 #define $2 innocuous_$2
1730
1731 /* System header to define __stub macros and hopefully few prototypes,
1732 which can conflict with char $2 (void); below. */
1733
1734 #include <limits.h>
1735 #undef $2
1736
1737 /* Override any GCC internal prototype to avoid an error.
1738 Use char because int might match the return type of a GCC
1739 builtin and then its argument prototype would still apply. */
1740 #ifdef __cplusplus
1741 extern "C"
1742 #endif
1743 char $2 (void);
1744 /* The GNU C library defines this for functions which it implements
1745 to always fail with ENOSYS. Some functions are actually named
1746 something starting with __ and the normal name is an alias. */
1747 #if defined __stub_$2 || defined __stub___$2
1748 choke me
1749 #endif
1750
1751 int
1752 main (void)
1753 {
1754 return $2 ();
1755 ;
1756 return 0;
1757 }
1758 _ACEOF
1759 if ac_fn_c_try_link "$LINENO"
1760 then :
1761 eval "$3=yes"
1762 else case e in #(
1763 e) eval "$3=no" ;;
1764 esac
1765 fi
1766 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1767 conftest$ac_exeext conftest.$ac_ext ;;
1768 esac
1769 fi
1770 eval ac_res=\$$3
1771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772 printf "%s\n" "$ac_res" >&6; }
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774
1775 } # ac_fn_c_check_func
1776
1777 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1778 # -------------------------------------------
1779 # Tests whether TYPE exists after having included INCLUDES, setting cache
1780 # variable VAR accordingly.
1781 ac_fn_c_check_type ()
1782 {
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 printf %s "checking for $2... " >&6; }
1786 if eval test \${$3+y}
1787 then :
1788 printf %s "(cached) " >&6
1789 else case e in #(
1790 e) eval "$3=no"
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1793 $4
1794 int
1795 main (void)
1796 {
1797 if (sizeof ($2))
1798 return 0;
1799 ;
1800 return 0;
1801 }
1802 _ACEOF
1803 if ac_fn_c_try_compile "$LINENO"
1804 then :
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h. */
1807 $4
1808 int
1809 main (void)
1810 {
1811 if (sizeof (($2)))
1812 return 0;
1813 ;
1814 return 0;
1815 }
1816 _ACEOF
1817 if ac_fn_c_try_compile "$LINENO"
1818 then :
1819
1820 else case e in #(
1821 e) eval "$3=yes" ;;
1822 esac
1823 fi
1824 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1825 fi
1826 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1827 esac
1828 fi
1829 eval ac_res=\$$3
1830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 printf "%s\n" "$ac_res" >&6; }
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833
1834 } # ac_fn_c_check_type
1835
1836 # ac_fn_c_try_run LINENO
1837 # ----------------------
1838 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1839 # executables *can* be run.
1840 ac_fn_c_try_run ()
1841 {
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 if { { ac_try="$ac_link"
1844 case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 printf "%s\n" "$ac_try_echo"; } >&5
1850 (eval "$ac_link") 2>&5
1851 ac_status=$?
1852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1854 { { case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 printf "%s\n" "$ac_try_echo"; } >&5
1860 (eval "$ac_try") 2>&5
1861 ac_status=$?
1862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; }; }
1864 then :
1865 ac_retval=0
1866 else case e in #(
1867 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1868 printf "%s\n" "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1870
1871 ac_retval=$ac_status ;;
1872 esac
1873 fi
1874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 as_fn_set_status $ac_retval
1877
1878 } # ac_fn_c_try_run
1879
1880 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1881 # --------------------------------------------
1882 # Tries to find the compile-time value of EXPR in a program that includes
1883 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1884 # computed
1885 ac_fn_c_compute_int ()
1886 {
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 if test "$cross_compiling" = yes; then
1889 # Depending upon the size, compute the lo and hi bounds.
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h. */
1892 $4
1893 int
1894 main (void)
1895 {
1896 static int test_array [1 - 2 * !(($2) >= 0)];
1897 test_array [0] = 0;
1898 return test_array [0];
1899
1900 ;
1901 return 0;
1902 }
1903 _ACEOF
1904 if ac_fn_c_try_compile "$LINENO"
1905 then :
1906 ac_lo=0 ac_mid=0
1907 while :; do
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1910 $4
1911 int
1912 main (void)
1913 {
1914 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1915 test_array [0] = 0;
1916 return test_array [0];
1917
1918 ;
1919 return 0;
1920 }
1921 _ACEOF
1922 if ac_fn_c_try_compile "$LINENO"
1923 then :
1924 ac_hi=$ac_mid; break
1925 else case e in #(
1926 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1927 if test $ac_lo -le $ac_mid; then
1928 ac_lo= ac_hi=
1929 break
1930 fi
1931 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
1932 esac
1933 fi
1934 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1935 done
1936 else case e in #(
1937 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1939 $4
1940 int
1941 main (void)
1942 {
1943 static int test_array [1 - 2 * !(($2) < 0)];
1944 test_array [0] = 0;
1945 return test_array [0];
1946
1947 ;
1948 return 0;
1949 }
1950 _ACEOF
1951 if ac_fn_c_try_compile "$LINENO"
1952 then :
1953 ac_hi=-1 ac_mid=-1
1954 while :; do
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1957 $4
1958 int
1959 main (void)
1960 {
1961 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1962 test_array [0] = 0;
1963 return test_array [0];
1964
1965 ;
1966 return 0;
1967 }
1968 _ACEOF
1969 if ac_fn_c_try_compile "$LINENO"
1970 then :
1971 ac_lo=$ac_mid; break
1972 else case e in #(
1973 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1974 if test $ac_mid -le $ac_hi; then
1975 ac_lo= ac_hi=
1976 break
1977 fi
1978 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
1979 esac
1980 fi
1981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1982 done
1983 else case e in #(
1984 e) ac_lo= ac_hi= ;;
1985 esac
1986 fi
1987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1988 esac
1989 fi
1990 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1991 # Binary search between lo and hi bounds.
1992 while test "x$ac_lo" != "x$ac_hi"; do
1993 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h. */
1996 $4
1997 int
1998 main (void)
1999 {
2000 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2001 test_array [0] = 0;
2002 return test_array [0];
2003
2004 ;
2005 return 0;
2006 }
2007 _ACEOF
2008 if ac_fn_c_try_compile "$LINENO"
2009 then :
2010 ac_hi=$ac_mid
2011 else case e in #(
2012 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
2013 esac
2014 fi
2015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2016 done
2017 case $ac_lo in #((
2018 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2019 '') ac_retval=1 ;;
2020 esac
2021 else
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2024 $4
2025 static long int longval (void) { return $2; }
2026 static unsigned long int ulongval (void) { return $2; }
2027 #include <stdio.h>
2028 #include <stdlib.h>
2029 int
2030 main (void)
2031 {
2032
2033 FILE *f = fopen ("conftest.val", "w");
2034 if (! f)
2035 return 1;
2036 if (($2) < 0)
2037 {
2038 long int i = longval ();
2039 if (i != ($2))
2040 return 1;
2041 fprintf (f, "%ld", i);
2042 }
2043 else
2044 {
2045 unsigned long int i = ulongval ();
2046 if (i != ($2))
2047 return 1;
2048 fprintf (f, "%lu", i);
2049 }
2050 /* Do not output a trailing newline, as this causes \r\n confusion
2051 on some platforms. */
2052 return ferror (f) || fclose (f) != 0;
2053
2054 ;
2055 return 0;
2056 }
2057 _ACEOF
2058 if ac_fn_c_try_run "$LINENO"
2059 then :
2060 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2061 else case e in #(
2062 e) ac_retval=1 ;;
2063 esac
2064 fi
2065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2066 conftest.$ac_objext conftest.beam conftest.$ac_ext
2067 rm -f conftest.val
2068
2069 fi
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 as_fn_set_status $ac_retval
2072
2073 } # ac_fn_c_compute_int
2074
2075 # ac_fn_c_find_intX_t LINENO BITS VAR
2076 # -----------------------------------
2077 # Finds a signed integer type with width BITS, setting cache variable VAR
2078 # accordingly.
2079 ac_fn_c_find_intX_t ()
2080 {
2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2083 printf %s "checking for int$2_t... " >&6; }
2084 if eval test \${$3+y}
2085 then :
2086 printf %s "(cached) " >&6
2087 else case e in #(
2088 e) eval "$3=no"
2089 # Order is important - never check a type that is potentially smaller
2090 # than half of the expected target width.
2091 for ac_type in int$2_t 'int' 'long int' \
2092 'long long int' 'short int' 'signed char'; do
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2095 $ac_includes_default
2096 enum { N = $2 / 2 - 1 };
2097 int
2098 main (void)
2099 {
2100 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2101 test_array [0] = 0;
2102 return test_array [0];
2103
2104 ;
2105 return 0;
2106 }
2107 _ACEOF
2108 if ac_fn_c_try_compile "$LINENO"
2109 then :
2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h. */
2112 $ac_includes_default
2113 enum { N = $2 / 2 - 1 };
2114 int
2115 main (void)
2116 {
2117 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2118 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2119 test_array [0] = 0;
2120 return test_array [0];
2121
2122 ;
2123 return 0;
2124 }
2125 _ACEOF
2126 if ac_fn_c_try_compile "$LINENO"
2127 then :
2128
2129 else case e in #(
2130 e) case $ac_type in #(
2131 int$2_t) :
2132 eval "$3=yes" ;; #(
2133 *) :
2134 eval "$3=\$ac_type" ;;
2135 esac ;;
2136 esac
2137 fi
2138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2139 fi
2140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2141 if eval test \"x\$"$3"\" = x"no"
2142 then :
2143
2144 else case e in #(
2145 e) break ;;
2146 esac
2147 fi
2148 done ;;
2149 esac
2150 fi
2151 eval ac_res=\$$3
2152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2153 printf "%s\n" "$ac_res" >&6; }
2154 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2155
2156 } # ac_fn_c_find_intX_t
2157
2158 # ac_fn_c_find_uintX_t LINENO BITS VAR
2159 # ------------------------------------
2160 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2161 # accordingly.
2162 ac_fn_c_find_uintX_t ()
2163 {
2164 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2166 printf %s "checking for uint$2_t... " >&6; }
2167 if eval test \${$3+y}
2168 then :
2169 printf %s "(cached) " >&6
2170 else case e in #(
2171 e) eval "$3=no"
2172 # Order is important - never check a type that is potentially smaller
2173 # than half of the expected target width.
2174 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2175 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2178 $ac_includes_default
2179 int
2180 main (void)
2181 {
2182 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2183 test_array [0] = 0;
2184 return test_array [0];
2185
2186 ;
2187 return 0;
2188 }
2189 _ACEOF
2190 if ac_fn_c_try_compile "$LINENO"
2191 then :
2192 case $ac_type in #(
2193 uint$2_t) :
2194 eval "$3=yes" ;; #(
2195 *) :
2196 eval "$3=\$ac_type" ;;
2197 esac
2198 fi
2199 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2200 if eval test \"x\$"$3"\" = x"no"
2201 then :
2202
2203 else case e in #(
2204 e) break ;;
2205 esac
2206 fi
2207 done ;;
2208 esac
2209 fi
2210 eval ac_res=\$$3
2211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2212 printf "%s\n" "$ac_res" >&6; }
2213 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214
2215 } # ac_fn_c_find_uintX_t
2216
2217 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2218 # ----------------------------------------------------
2219 # Tries to find if the field MEMBER exists in type AGGR, after including
2220 # INCLUDES, setting cache variable VAR accordingly.
2221 ac_fn_c_check_member ()
2222 {
2223 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2225 printf %s "checking for $2.$3... " >&6; }
2226 if eval test \${$4+y}
2227 then :
2228 printf %s "(cached) " >&6
2229 else case e in #(
2230 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2232 $5
2233 int
2234 main (void)
2235 {
2236 static $2 ac_aggr;
2237 if (ac_aggr.$3)
2238 return 0;
2239 ;
2240 return 0;
2241 }
2242 _ACEOF
2243 if ac_fn_c_try_compile "$LINENO"
2244 then :
2245 eval "$4=yes"
2246 else case e in #(
2247 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2249 $5
2250 int
2251 main (void)
2252 {
2253 static $2 ac_aggr;
2254 if (sizeof ac_aggr.$3)
2255 return 0;
2256 ;
2257 return 0;
2258 }
2259 _ACEOF
2260 if ac_fn_c_try_compile "$LINENO"
2261 then :
2262 eval "$4=yes"
2263 else case e in #(
2264 e) eval "$4=no" ;;
2265 esac
2266 fi
2267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2268 esac
2269 fi
2270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2271 esac
2272 fi
2273 eval ac_res=\$$4
2274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2275 printf "%s\n" "$ac_res" >&6; }
2276 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2277
2278 } # ac_fn_c_check_member
2279
2280 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2281 # ------------------------------------------------------------------
2282 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2283 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2284 ac_fn_check_decl ()
2285 {
2286 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287 as_decl_name=`echo $2|sed 's/ *(.*//'`
2288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2289 printf %s "checking whether $as_decl_name is declared... " >&6; }
2290 if eval test \${$3+y}
2291 then :
2292 printf %s "(cached) " >&6
2293 else case e in #(
2294 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2295 eval ac_save_FLAGS=\$$6
2296 as_fn_append $6 " $5"
2297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2298 /* end confdefs.h. */
2299 $4
2300 int
2301 main (void)
2302 {
2303 #ifndef $as_decl_name
2304 #ifdef __cplusplus
2305 (void) $as_decl_use;
2306 #else
2307 (void) $as_decl_name;
2308 #endif
2309 #endif
2310
2311 ;
2312 return 0;
2313 }
2314 _ACEOF
2315 if ac_fn_c_try_compile "$LINENO"
2316 then :
2317 eval "$3=yes"
2318 else case e in #(
2319 e) eval "$3=no" ;;
2320 esac
2321 fi
2322 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2323 eval $6=\$ac_save_FLAGS
2324 ;;
2325 esac
2326 fi
2327 eval ac_res=\$$3
2328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2329 printf "%s\n" "$ac_res" >&6; }
2330 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2331
2332 } # ac_fn_check_decl
2333 ac_configure_args_raw=
2334 for ac_arg
2335 do
2336 case $ac_arg in
2337 *\'*)
2338 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2339 esac
2340 as_fn_append ac_configure_args_raw " '$ac_arg'"
2341 done
2342
2343 case $ac_configure_args_raw in
2344 *$as_nl*)
2345 ac_safe_unquote= ;;
2346 *)
2347 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2348 ac_unsafe_a="$ac_unsafe_z#~"
2349 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2350 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2351 esac
2352
2353 cat >config.log <<_ACEOF
2354 This file contains any messages produced by compilers while
2355 running configure, to aid debugging if configure makes a mistake.
2356
2357 It was created by OpenSMTPD-portable $as_me 7.8.0p0, which was
2358 generated by GNU Autoconf 2.72. Invocation command line was
2359
2360 $ $0$ac_configure_args_raw
2361
2362 _ACEOF
2363 exec 5>>config.log
2364 {
2365 cat <<_ASUNAME
2366 ## --------- ##
2367 ## Platform. ##
2368 ## --------- ##
2369
2370 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2371 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2372 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2373 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2374 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2375
2376 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2377 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2378
2379 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2380 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2381 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2382 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2383 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2384 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2385 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2386
2387 _ASUNAME
2388
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 for as_dir in $PATH
2391 do
2392 IFS=$as_save_IFS
2393 case $as_dir in #(((
2394 '') as_dir=./ ;;
2395 */) ;;
2396 *) as_dir=$as_dir/ ;;
2397 esac
2398 printf "%s\n" "PATH: $as_dir"
2399 done
2400 IFS=$as_save_IFS
2401
2402 } >&5
2403
2404 cat >&5 <<_ACEOF
2405
2406
2407 ## ----------- ##
2408 ## Core tests. ##
2409 ## ----------- ##
2410
2411 _ACEOF
2412
2413
2414 # Keep a trace of the command line.
2415 # Strip out --no-create and --no-recursion so they do not pile up.
2416 # Strip out --silent because we don't want to record it for future runs.
2417 # Also quote any args containing shell meta-characters.
2418 # Make two passes to allow for proper duplicate-argument suppression.
2419 ac_configure_args=
2420 ac_configure_args0=
2421 ac_configure_args1=
2422 ac_must_keep_next=false
2423 for ac_pass in 1 2
2424 do
2425 for ac_arg
2426 do
2427 case $ac_arg in
2428 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2429 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2430 | -silent | --silent | --silen | --sile | --sil)
2431 continue ;;
2432 *\'*)
2433 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2434 esac
2435 case $ac_pass in
2436 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2437 2)
2438 as_fn_append ac_configure_args1 " '$ac_arg'"
2439 if test $ac_must_keep_next = true; then
2440 ac_must_keep_next=false # Got value, back to normal.
2441 else
2442 case $ac_arg in
2443 *=* | --config-cache | -C | -disable-* | --disable-* \
2444 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2445 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2446 | -with-* | --with-* | -without-* | --without-* | --x)
2447 case "$ac_configure_args0 " in
2448 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2449 esac
2450 ;;
2451 -* ) ac_must_keep_next=true ;;
2452 esac
2453 fi
2454 as_fn_append ac_configure_args " '$ac_arg'"
2455 ;;
2456 esac
2457 done
2458 done
2459 { ac_configure_args0=; unset ac_configure_args0;}
2460 { ac_configure_args1=; unset ac_configure_args1;}
2461
2462 # When interrupted or exit'd, cleanup temporary files, and complete
2463 # config.log. We remove comments because anyway the quotes in there
2464 # would cause problems or look ugly.
2465 # WARNING: Use '\'' to represent an apostrophe within the trap.
2466 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2467 trap 'exit_status=$?
2468 # Sanitize IFS.
2469 IFS=" "" $as_nl"
2470 # Save into config.log some information that might help in debugging.
2471 {
2472 echo
2473
2474 printf "%s\n" "## ---------------- ##
2475 ## Cache variables. ##
2476 ## ---------------- ##"
2477 echo
2478 # The following way of writing the cache mishandles newlines in values,
2479 (
2480 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2481 eval ac_val=\$$ac_var
2482 case $ac_val in #(
2483 *${as_nl}*)
2484 case $ac_var in #(
2485 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2486 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2487 esac
2488 case $ac_var in #(
2489 _ | IFS | as_nl) ;; #(
2490 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2491 *) { eval $ac_var=; unset $ac_var;} ;;
2492 esac ;;
2493 esac
2494 done
2495 (set) 2>&1 |
2496 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2497 *${as_nl}ac_space=\ *)
2498 sed -n \
2499 "s/'\''/'\''\\\\'\'''\''/g;
2500 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2501 ;; #(
2502 *)
2503 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2504 ;;
2505 esac |
2506 sort
2507 )
2508 echo
2509
2510 printf "%s\n" "## ----------------- ##
2511 ## Output variables. ##
2512 ## ----------------- ##"
2513 echo
2514 for ac_var in $ac_subst_vars
2515 do
2516 eval ac_val=\$$ac_var
2517 case $ac_val in
2518 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2519 esac
2520 printf "%s\n" "$ac_var='\''$ac_val'\''"
2521 done | sort
2522 echo
2523
2524 if test -n "$ac_subst_files"; then
2525 printf "%s\n" "## ------------------- ##
2526 ## File substitutions. ##
2527 ## ------------------- ##"
2528 echo
2529 for ac_var in $ac_subst_files
2530 do
2531 eval ac_val=\$$ac_var
2532 case $ac_val in
2533 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2534 esac
2535 printf "%s\n" "$ac_var='\''$ac_val'\''"
2536 done | sort
2537 echo
2538 fi
2539
2540 if test -s confdefs.h; then
2541 printf "%s\n" "## ----------- ##
2542 ## confdefs.h. ##
2543 ## ----------- ##"
2544 echo
2545 cat confdefs.h
2546 echo
2547 fi
2548 test "$ac_signal" != 0 &&
2549 printf "%s\n" "$as_me: caught signal $ac_signal"
2550 printf "%s\n" "$as_me: exit $exit_status"
2551 } >&5
2552 rm -f core *.core core.conftest.* &&
2553 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2554 exit $exit_status
2555 ' 0
2556 for ac_signal in 1 2 13 15; do
2557 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2558 done
2559 ac_signal=0
2560
2561 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2562 rm -f -r conftest* confdefs.h
2563
2564 printf "%s\n" "/* confdefs.h */" > confdefs.h
2565
2566 # Predefined preprocessor variables.
2567
2568 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2569
2570 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2571
2572 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2573
2574 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2575
2576 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2577
2578 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2579
2580
2581 # Let the site file select an alternate cache file if it wants to.
2582 # Prefer an explicitly selected file to automatically selected ones.
2583 if test -n "$CONFIG_SITE"; then
2584 ac_site_files="$CONFIG_SITE"
2585 elif test "x$prefix" != xNONE; then
2586 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2587 else
2588 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2589 fi
2590
2591 for ac_site_file in $ac_site_files
2592 do
2593 case $ac_site_file in #(
2594 */*) :
2595 ;; #(
2596 *) :
2597 ac_site_file=./$ac_site_file ;;
2598 esac
2599 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2601 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2602 sed 's/^/| /' "$ac_site_file" >&5
2603 . "$ac_site_file" \
2604 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2605 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2606 as_fn_error $? "failed to load site script $ac_site_file
2607 See 'config.log' for more details" "$LINENO" 5; }
2608 fi
2609 done
2610
2611 if test -r "$cache_file"; then
2612 # Some versions of bash will fail to source /dev/null (special files
2613 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2614 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2616 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2617 case $cache_file in
2618 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2619 *) . "./$cache_file";;
2620 esac
2621 fi
2622 else
2623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2624 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2625 >$cache_file
2626 fi
2627
2628 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2629 # Test code for whether the C compiler supports C89 (global declarations)
2630 ac_c_conftest_c89_globals='
2631 /* Does the compiler advertise C89 conformance?
2632 Do not test the value of __STDC__, because some compilers set it to 0
2633 while being otherwise adequately conformant. */
2634 #if !defined __STDC__
2635 # error "Compiler does not advertise C89 conformance"
2636 #endif
2637
2638 #include <stddef.h>
2639 #include <stdarg.h>
2640 struct stat;
2641 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2642 struct buf { int x; };
2643 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2644 static char *e (char **p, int i)
2645 {
2646 return p[i];
2647 }
2648 static char *f (char * (*g) (char **, int), char **p, ...)
2649 {
2650 char *s;
2651 va_list v;
2652 va_start (v,p);
2653 s = g (p, va_arg (v,int));
2654 va_end (v);
2655 return s;
2656 }
2657
2658 /* C89 style stringification. */
2659 #define noexpand_stringify(a) #a
2660 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2661
2662 /* C89 style token pasting. Exercises some of the corner cases that
2663 e.g. old MSVC gets wrong, but not very hard. */
2664 #define noexpand_concat(a,b) a##b
2665 #define expand_concat(a,b) noexpand_concat(a,b)
2666 extern int vA;
2667 extern int vbee;
2668 #define aye A
2669 #define bee B
2670 int *pvA = &expand_concat(v,aye);
2671 int *pvbee = &noexpand_concat(v,bee);
2672
2673 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2674 function prototypes and stuff, but not \xHH hex character constants.
2675 These do not provoke an error unfortunately, instead are silently treated
2676 as an "x". The following induces an error, until -std is added to get
2677 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2678 array size at least. It is necessary to write \x00 == 0 to get something
2679 that is true only with -std. */
2680 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2681
2682 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2683 inside strings and character constants. */
2684 #define FOO(x) '\''x'\''
2685 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2686
2687 int test (int i, double x);
2688 struct s1 {int (*f) (int a);};
2689 struct s2 {int (*f) (double a);};
2690 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2691 int, int);'
2692
2693 # Test code for whether the C compiler supports C89 (body of main).
2694 ac_c_conftest_c89_main='
2695 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2696 '
2697
2698 # Test code for whether the C compiler supports C99 (global declarations)
2699 ac_c_conftest_c99_globals='
2700 /* Does the compiler advertise C99 conformance? */
2701 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2702 # error "Compiler does not advertise C99 conformance"
2703 #endif
2704
2705 // See if C++-style comments work.
2706
2707 #include <stdbool.h>
2708 extern int puts (const char *);
2709 extern int printf (const char *, ...);
2710 extern int dprintf (int, const char *, ...);
2711 extern void *malloc (size_t);
2712 extern void free (void *);
2713
2714 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2715 // dprintf is used instead of fprintf to avoid needing to declare
2716 // FILE and stderr.
2717 #define debug(...) dprintf (2, __VA_ARGS__)
2718 #define showlist(...) puts (#__VA_ARGS__)
2719 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2720 static void
2721 test_varargs_macros (void)
2722 {
2723 int x = 1234;
2724 int y = 5678;
2725 debug ("Flag");
2726 debug ("X = %d\n", x);
2727 showlist (The first, second, and third items.);
2728 report (x>y, "x is %d but y is %d", x, y);
2729 }
2730
2731 // Check long long types.
2732 #define BIG64 18446744073709551615ull
2733 #define BIG32 4294967295ul
2734 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2735 #if !BIG_OK
2736 #error "your preprocessor is broken"
2737 #endif
2738 #if BIG_OK
2739 #else
2740 #error "your preprocessor is broken"
2741 #endif
2742 static long long int bignum = -9223372036854775807LL;
2743 static unsigned long long int ubignum = BIG64;
2744
2745 struct incomplete_array
2746 {
2747 int datasize;
2748 double data[];
2749 };
2750
2751 struct named_init {
2752 int number;
2753 const wchar_t *name;
2754 double average;
2755 };
2756
2757 typedef const char *ccp;
2758
2759 static inline int
2760 test_restrict (ccp restrict text)
2761 {
2762 // Iterate through items via the restricted pointer.
2763 // Also check for declarations in for loops.
2764 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2765 continue;
2766 return 0;
2767 }
2768
2769 // Check varargs and va_copy.
2770 static bool
2771 test_varargs (const char *format, ...)
2772 {
2773 va_list args;
2774 va_start (args, format);
2775 va_list args_copy;
2776 va_copy (args_copy, args);
2777
2778 const char *str = "";
2779 int number = 0;
2780 float fnumber = 0;
2781
2782 while (*format)
2783 {
2784 switch (*format++)
2785 {
2786 case '\''s'\'': // string
2787 str = va_arg (args_copy, const char *);
2788 break;
2789 case '\''d'\'': // int
2790 number = va_arg (args_copy, int);
2791 break;
2792 case '\''f'\'': // float
2793 fnumber = va_arg (args_copy, double);
2794 break;
2795 default:
2796 break;
2797 }
2798 }
2799 va_end (args_copy);
2800 va_end (args);
2801
2802 return *str && number && fnumber;
2803 }
2804 '
2805
2806 # Test code for whether the C compiler supports C99 (body of main).
2807 ac_c_conftest_c99_main='
2808 // Check bool.
2809 _Bool success = false;
2810 success |= (argc != 0);
2811
2812 // Check restrict.
2813 if (test_restrict ("String literal") == 0)
2814 success = true;
2815 char *restrict newvar = "Another string";
2816
2817 // Check varargs.
2818 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2819 test_varargs_macros ();
2820
2821 // Check flexible array members.
2822 struct incomplete_array *ia =
2823 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2824 ia->datasize = 10;
2825 for (int i = 0; i < ia->datasize; ++i)
2826 ia->data[i] = i * 1.234;
2827 // Work around memory leak warnings.
2828 free (ia);
2829
2830 // Check named initializers.
2831 struct named_init ni = {
2832 .number = 34,
2833 .name = L"Test wide string",
2834 .average = 543.34343,
2835 };
2836
2837 ni.number = 58;
2838
2839 int dynamic_array[ni.number];
2840 dynamic_array[0] = argv[0][0];
2841 dynamic_array[ni.number - 1] = 543;
2842
2843 // work around unused variable warnings
2844 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2845 || dynamic_array[ni.number - 1] != 543);
2846 '
2847
2848 # Test code for whether the C compiler supports C11 (global declarations)
2849 ac_c_conftest_c11_globals='
2850 /* Does the compiler advertise C11 conformance? */
2851 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2852 # error "Compiler does not advertise C11 conformance"
2853 #endif
2854
2855 // Check _Alignas.
2856 char _Alignas (double) aligned_as_double;
2857 char _Alignas (0) no_special_alignment;
2858 extern char aligned_as_int;
2859 char _Alignas (0) _Alignas (int) aligned_as_int;
2860
2861 // Check _Alignof.
2862 enum
2863 {
2864 int_alignment = _Alignof (int),
2865 int_array_alignment = _Alignof (int[100]),
2866 char_alignment = _Alignof (char)
2867 };
2868 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2869
2870 // Check _Noreturn.
2871 int _Noreturn does_not_return (void) { for (;;) continue; }
2872
2873 // Check _Static_assert.
2874 struct test_static_assert
2875 {
2876 int x;
2877 _Static_assert (sizeof (int) <= sizeof (long int),
2878 "_Static_assert does not work in struct");
2879 long int y;
2880 };
2881
2882 // Check UTF-8 literals.
2883 #define u8 syntax error!
2884 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2885
2886 // Check duplicate typedefs.
2887 typedef long *long_ptr;
2888 typedef long int *long_ptr;
2889 typedef long_ptr long_ptr;
2890
2891 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2892 struct anonymous
2893 {
2894 union {
2895 struct { int i; int j; };
2896 struct { int k; long int l; } w;
2897 };
2898 int m;
2899 } v1;
2900 '
2901
2902 # Test code for whether the C compiler supports C11 (body of main).
2903 ac_c_conftest_c11_main='
2904 _Static_assert ((offsetof (struct anonymous, i)
2905 == offsetof (struct anonymous, w.k)),
2906 "Anonymous union alignment botch");
2907 v1.i = 2;
2908 v1.w.k = 5;
2909 ok |= v1.i != 5;
2910 '
2911
2912 # Test code for whether the C compiler supports C11 (complete).
2913 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2914 ${ac_c_conftest_c99_globals}
2915 ${ac_c_conftest_c11_globals}
2916
2917 int
2918 main (int argc, char **argv)
2919 {
2920 int ok = 0;
2921 ${ac_c_conftest_c89_main}
2922 ${ac_c_conftest_c99_main}
2923 ${ac_c_conftest_c11_main}
2924 return ok;
2925 }
2926 "
2927
2928 # Test code for whether the C compiler supports C99 (complete).
2929 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2930 ${ac_c_conftest_c99_globals}
2931
2932 int
2933 main (int argc, char **argv)
2934 {
2935 int ok = 0;
2936 ${ac_c_conftest_c89_main}
2937 ${ac_c_conftest_c99_main}
2938 return ok;
2939 }
2940 "
2941
2942 # Test code for whether the C compiler supports C89 (complete).
2943 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2944
2945 int
2946 main (int argc, char **argv)
2947 {
2948 int ok = 0;
2949 ${ac_c_conftest_c89_main}
2950 return ok;
2951 }
2952 "
2953
2954 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2955 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2956 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2957 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2958 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2959 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2960 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2961 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2962 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2963 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2964
2965 # Auxiliary files required by this configure script.
2966 ac_aux_files="ar-lib compile missing install-sh config.guess config.sub"
2967
2968 # Locations in which to look for auxiliary files.
2969 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2970
2971 # Search for a directory containing all of the required auxiliary files,
2972 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2973 # If we don't find one directory that contains all the files we need,
2974 # we report the set of missing files from the *first* directory in
2975 # $ac_aux_dir_candidates and give up.
2976 ac_missing_aux_files=""
2977 ac_first_candidate=:
2978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 as_found=false
2981 for as_dir in $ac_aux_dir_candidates
2982 do
2983 IFS=$as_save_IFS
2984 case $as_dir in #(((
2985 '') as_dir=./ ;;
2986 */) ;;
2987 *) as_dir=$as_dir/ ;;
2988 esac
2989 as_found=:
2990
2991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2992 ac_aux_dir_found=yes
2993 ac_install_sh=
2994 for ac_aux in $ac_aux_files
2995 do
2996 # As a special case, if "install-sh" is required, that requirement
2997 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2998 # and $ac_install_sh is set appropriately for whichever one is found.
2999 if test x"$ac_aux" = x"install-sh"
3000 then
3001 if test -f "${as_dir}install-sh"; then
3002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3003 ac_install_sh="${as_dir}install-sh -c"
3004 elif test -f "${as_dir}install.sh"; then
3005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3006 ac_install_sh="${as_dir}install.sh -c"
3007 elif test -f "${as_dir}shtool"; then
3008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3009 ac_install_sh="${as_dir}shtool install -c"
3010 else
3011 ac_aux_dir_found=no
3012 if $ac_first_candidate; then
3013 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3014 else
3015 break
3016 fi
3017 fi
3018 else
3019 if test -f "${as_dir}${ac_aux}"; then
3020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3021 else
3022 ac_aux_dir_found=no
3023 if $ac_first_candidate; then
3024 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3025 else
3026 break
3027 fi
3028 fi
3029 fi
3030 done
3031 if test "$ac_aux_dir_found" = yes; then
3032 ac_aux_dir="$as_dir"
3033 break
3034 fi
3035 ac_first_candidate=false
3036
3037 as_found=false
3038 done
3039 IFS=$as_save_IFS
3040 if $as_found
3041 then :
3042
3043 else case e in #(
3044 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3045 esac
3046 fi
3047
3048
3049 # These three variables are undocumented and unsupported,
3050 # and are intended to be withdrawn in a future Autoconf release.
3051 # They can cause serious problems if a builder's source tree is in a directory
3052 # whose full name contains unusual characters.
3053 if test -f "${ac_aux_dir}config.guess"; then
3054 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3055 fi
3056 if test -f "${ac_aux_dir}config.sub"; then
3057 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3058 fi
3059 if test -f "$ac_aux_dir/configure"; then
3060 ac_configure="$SHELL ${ac_aux_dir}configure"
3061 fi
3062
3063 # Check that the precious variables saved in the cache have kept the same
3064 # value.
3065 ac_cache_corrupted=false
3066 for ac_var in $ac_precious_vars; do
3067 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3068 eval ac_new_set=\$ac_env_${ac_var}_set
3069 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3070 eval ac_new_val=\$ac_env_${ac_var}_value
3071 case $ac_old_set,$ac_new_set in
3072 set,)
3073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3074 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3075 ac_cache_corrupted=: ;;
3076 ,set)
3077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3078 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3079 ac_cache_corrupted=: ;;
3080 ,);;
3081 *)
3082 if test "x$ac_old_val" != "x$ac_new_val"; then
3083 # differences in whitespace do not lead to failure.
3084 ac_old_val_w=`echo x $ac_old_val`
3085 ac_new_val_w=`echo x $ac_new_val`
3086 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3088 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3089 ac_cache_corrupted=:
3090 else
3091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3092 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3093 eval $ac_var=\$ac_old_val
3094 fi
3095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3096 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3098 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3099 fi;;
3100 esac
3101 # Pass precious variables to config.status.
3102 if test "$ac_new_set" = set; then
3103 case $ac_new_val in
3104 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3105 *) ac_arg=$ac_var=$ac_new_val ;;
3106 esac
3107 case " $ac_configure_args " in
3108 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3109 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3110 esac
3111 fi
3112 done
3113 if $ac_cache_corrupted; then
3114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3115 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3117 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3118 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3119 and start over" "$LINENO" 5
3120 fi
3121 ## -------------------- ##
3122 ## Main body of script. ##
3123 ## -------------------- ##
3124
3125 ac_ext=c
3126 ac_cpp='$CPP $CPPFLAGS'
3127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3130
3131
3132
3133
3134
3135
3136
3137
3138 # Make sure we can run config.sub.
3139 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3140 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3141
3142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3143 printf %s "checking build system type... " >&6; }
3144 if test ${ac_cv_build+y}
3145 then :
3146 printf %s "(cached) " >&6
3147 else case e in #(
3148 e) ac_build_alias=$build_alias
3149 test "x$ac_build_alias" = x &&
3150 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3151 test "x$ac_build_alias" = x &&
3152 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3153 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3154 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3155 ;;
3156 esac
3157 fi
3158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3159 printf "%s\n" "$ac_cv_build" >&6; }
3160 case $ac_cv_build in
3161 *-*-*) ;;
3162 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3163 esac
3164 build=$ac_cv_build
3165 ac_save_IFS=$IFS; IFS='-'
3166 set x $ac_cv_build
3167 shift
3168 build_cpu=$1
3169 build_vendor=$2
3170 shift; shift
3171 # Remember, the first character of IFS is used to create $*,
3172 # except with old shells:
3173 build_os=$*
3174 IFS=$ac_save_IFS
3175 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3176
3177
3178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3179 printf %s "checking host system type... " >&6; }
3180 if test ${ac_cv_host+y}
3181 then :
3182 printf %s "(cached) " >&6
3183 else case e in #(
3184 e) if test "x$host_alias" = x; then
3185 ac_cv_host=$ac_cv_build
3186 else
3187 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3188 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3189 fi
3190 ;;
3191 esac
3192 fi
3193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3194 printf "%s\n" "$ac_cv_host" >&6; }
3195 case $ac_cv_host in
3196 *-*-*) ;;
3197 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3198 esac
3199 host=$ac_cv_host
3200 ac_save_IFS=$IFS; IFS='-'
3201 set x $ac_cv_host
3202 shift
3203 host_cpu=$1
3204 host_vendor=$2
3205 shift; shift
3206 # Remember, the first character of IFS is used to create $*,
3207 # except with old shells:
3208 host_os=$*
3209 IFS=$ac_save_IFS
3210 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3211
3212
3213 am__api_version='1.18'
3214
3215
3216 # Find a good install program. We prefer a C program (faster),
3217 # so one script is as good as another. But avoid the broken or
3218 # incompatible versions:
3219 # SysV /etc/install, /usr/sbin/install
3220 # SunOS /usr/etc/install
3221 # IRIX /sbin/install
3222 # AIX /bin/install
3223 # AmigaOS /C/install, which installs bootblocks on floppy discs
3224 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3225 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3226 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3227 # OS/2's system install, which has a completely different semantic
3228 # ./install, which can be erroneously created by make from ./install.sh.
3229 # Reject install programs that cannot install multiple files.
3230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3231 printf %s "checking for a BSD-compatible install... " >&6; }
3232 if test -z "$INSTALL"; then
3233 if test ${ac_cv_path_install+y}
3234 then :
3235 printf %s "(cached) " >&6
3236 else case e in #(
3237 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in $PATH
3239 do
3240 IFS=$as_save_IFS
3241 case $as_dir in #(((
3242 '') as_dir=./ ;;
3243 */) ;;
3244 *) as_dir=$as_dir/ ;;
3245 esac
3246 # Account for fact that we put trailing slashes in our PATH walk.
3247 case $as_dir in #((
3248 ./ | /[cC]/* | \
3249 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3250 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3251 /usr/ucb/* ) ;;
3252 *)
3253 # OSF1 and SCO ODT 3.0 have their own names for install.
3254 # Don't use installbsd from OSF since it installs stuff as root
3255 # by default.
3256 for ac_prog in ginstall scoinst install; do
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3259 if test $ac_prog = install &&
3260 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3261 # AIX install. It has an incompatible calling convention.
3262 :
3263 elif test $ac_prog = install &&
3264 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3265 # program-specific install script used by HP pwplus--don't use.
3266 :
3267 else
3268 rm -rf conftest.one conftest.two conftest.dir
3269 echo one > conftest.one
3270 echo two > conftest.two
3271 mkdir conftest.dir
3272 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3273 test -s conftest.one && test -s conftest.two &&
3274 test -s conftest.dir/conftest.one &&
3275 test -s conftest.dir/conftest.two
3276 then
3277 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3278 break 3
3279 fi
3280 fi
3281 fi
3282 done
3283 done
3284 ;;
3285 esac
3286
3287 done
3288 IFS=$as_save_IFS
3289
3290 rm -rf conftest.one conftest.two conftest.dir
3291 ;;
3292 esac
3293 fi
3294 if test ${ac_cv_path_install+y}; then
3295 INSTALL=$ac_cv_path_install
3296 else
3297 # As a last resort, use the slow shell script. Don't cache a
3298 # value for INSTALL within a source directory, because that will
3299 # break other packages using the cache if that directory is
3300 # removed, or if the value is a relative name.
3301 INSTALL=$ac_install_sh
3302 fi
3303 fi
3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3305 printf "%s\n" "$INSTALL" >&6; }
3306
3307 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3308 # It thinks the first close brace ends the variable substitution.
3309 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3310
3311 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3312
3313 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3314
3315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3316 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3317 if test ${am_cv_sleep_fractional_seconds+y}
3318 then :
3319 printf %s "(cached) " >&6
3320 else case e in #(
3321 e) if sleep 0.001 2>/dev/null
3322 then :
3323 am_cv_sleep_fractional_seconds=yes
3324 else case e in #(
3325 e) am_cv_sleep_fractional_seconds=no ;;
3326 esac
3327 fi
3328 ;;
3329 esac
3330 fi
3331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3332 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3333
3334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3335 printf %s "checking filesystem timestamp resolution... " >&6; }
3336 if test ${am_cv_filesystem_timestamp_resolution+y}
3337 then :
3338 printf %s "(cached) " >&6
3339 else case e in #(
3340 e) # Default to the worst case.
3341 am_cv_filesystem_timestamp_resolution=2
3342
3343 # Only try to go finer than 1 sec if sleep can do it.
3344 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3345 # - 1 sec is not much of a win compared to 2 sec, and
3346 # - it takes 2 seconds to perform the test whether 1 sec works.
3347 #
3348 # Instead, just use the default 2s on platforms that have 1s resolution,
3349 # accept the extra 1s delay when using $sleep in the Automake tests, in
3350 # exchange for not incurring the 2s delay for running the test for all
3351 # packages.
3352 #
3353 am_try_resolutions=
3354 if test "$am_cv_sleep_fractional_seconds" = yes; then
3355 # Even a millisecond often causes a bunch of false positives,
3356 # so just try a hundredth of a second. The time saved between .001 and
3357 # .01 is not terribly consequential.
3358 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3359 fi
3360
3361 # In order to catch current-generation FAT out, we must *modify* files
3362 # that already exist; the *creation* timestamp is finer. Use names
3363 # that make ls -t sort them differently when they have equal
3364 # timestamps than when they have distinct timestamps, keeping
3365 # in mind that ls -t prints the *newest* file first.
3366 rm -f conftest.ts?
3367 : > conftest.ts1
3368 : > conftest.ts2
3369 : > conftest.ts3
3370
3371 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3372 # clobber the current shell's arguments. (Outer-level square brackets
3373 # are removed by m4; they're present so that m4 does not expand
3374 # <dollar><star>; be careful, easy to get confused.)
3375 if (
3376 set X `ls -t conftest.ts[12]` &&
3377 {
3378 test "$*" != "X conftest.ts1 conftest.ts2" ||
3379 test "$*" != "X conftest.ts2 conftest.ts1";
3380 }
3381 ); then :; else
3382 # If neither matched, then we have a broken ls. This can happen
3383 # if, for instance, CONFIG_SHELL is bash and it inherits a
3384 # broken ls alias from the environment. This has actually
3385 # happened. Such a system could not be considered "sane".
3386 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3387 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3388 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3389 as_fn_error $? "ls -t produces unexpected output.
3390 Make sure there is not a broken ls alias in your environment.
3391 See 'config.log' for more details" "$LINENO" 5; }
3392 fi
3393
3394 for am_try_res in $am_try_resolutions; do
3395 # Any one fine-grained sleep might happen to cross the boundary
3396 # between two values of a coarser actual resolution, but if we do
3397 # two fine-grained sleeps in a row, at least one of them will fall
3398 # entirely within a coarse interval.
3399 echo alpha > conftest.ts1
3400 sleep $am_try_res
3401 echo beta > conftest.ts2
3402 sleep $am_try_res
3403 echo gamma > conftest.ts3
3404
3405 # We assume that 'ls -t' will make use of high-resolution
3406 # timestamps if the operating system supports them at all.
3407 if (set X `ls -t conftest.ts?` &&
3408 test "$2" = conftest.ts3 &&
3409 test "$3" = conftest.ts2 &&
3410 test "$4" = conftest.ts1); then
3411 #
3412 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3413 # because we don't need to test make.
3414 make_ok=true
3415 if test $am_try_res != 1; then
3416 # But if we've succeeded so far with a subsecond resolution, we
3417 # have one more thing to check: make. It can happen that
3418 # everything else supports the subsecond mtimes, but make doesn't;
3419 # notably on macOS, which ships make 3.81 from 2006 (the last one
3420 # released under GPLv2). https://bugs.gnu.org/68808
3421 #
3422 # We test $MAKE if it is defined in the environment, else "make".
3423 # It might get overridden later, but our hope is that in practice
3424 # it does not matter: it is the system "make" which is (by far)
3425 # the most likely to be broken, whereas if the user overrides it,
3426 # probably they did so with a better, or at least not worse, make.
3427 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3428 #
3429 # Create a Makefile (real tab character here):
3430 rm -f conftest.mk
3431 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3432 echo ' touch conftest.ts2' >>conftest.mk
3433 #
3434 # Now, running
3435 # touch conftest.ts1; touch conftest.ts2; make
3436 # should touch ts1 because ts2 is newer. This could happen by luck,
3437 # but most often, it will fail if make's support is insufficient. So
3438 # test for several consecutive successes.
3439 #
3440 # (We reuse conftest.ts[12] because we still want to modify existing
3441 # files, not create new ones, per above.)
3442 n=0
3443 make=${MAKE-make}
3444 until test $n -eq 3; do
3445 echo one > conftest.ts1
3446 sleep $am_try_res
3447 echo two > conftest.ts2 # ts2 should now be newer than ts1
3448 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3449 make_ok=false
3450 break # out of $n loop
3451 fi
3452 n=`expr $n + 1`
3453 done
3454 fi
3455 #
3456 if $make_ok; then
3457 # Everything we know to check worked out, so call this resolution good.
3458 am_cv_filesystem_timestamp_resolution=$am_try_res
3459 break # out of $am_try_res loop
3460 fi
3461 # Otherwise, we'll go on to check the next resolution.
3462 fi
3463 done
3464 rm -f conftest.ts?
3465 # (end _am_filesystem_timestamp_resolution)
3466 ;;
3467 esac
3468 fi
3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3470 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3471
3472 # This check should not be cached, as it may vary across builds of
3473 # different projects.
3474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3475 printf %s "checking whether build environment is sane... " >&6; }
3476 # Reject unsafe characters in $srcdir or the absolute working directory
3477 # name. Accept space and tab only in the latter.
3478 am_lf='
3479 '
3480 case `pwd` in
3481 *[\\\"\#\$\&\'\`$am_lf]*)
3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 printf "%s\n" "no" >&6; }
3484 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3485 esac
3486 case $srcdir in
3487 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489 printf "%s\n" "no" >&6; }
3490 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3491 esac
3492
3493 # Do 'set' in a subshell so we don't clobber the current shell's
3494 # arguments. Must try -L first in case configure is actually a
3495 # symlink; some systems play weird games with the mod time of symlinks
3496 # (eg FreeBSD returns the mod time of the symlink's containing
3497 # directory).
3498 am_build_env_is_sane=no
3499 am_has_slept=no
3500 rm -f conftest.file
3501 for am_try in 1 2; do
3502 echo "timestamp, slept: $am_has_slept" > conftest.file
3503 if (
3504 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3505 if test "$*" = "X"; then
3506 # -L didn't work.
3507 set X `ls -t "$srcdir/configure" conftest.file`
3508 fi
3509 test "$2" = conftest.file
3510 ); then
3511 am_build_env_is_sane=yes
3512 break
3513 fi
3514 # Just in case.
3515 sleep "$am_cv_filesystem_timestamp_resolution"
3516 am_has_slept=yes
3517 done
3518
3519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3520 printf "%s\n" "$am_build_env_is_sane" >&6; }
3521 if test "$am_build_env_is_sane" = no; then
3522 as_fn_error $? "newly created file is older than distributed files!
3523 Check your system clock" "$LINENO" 5
3524 fi
3525
3526 # If we didn't sleep, we still need to ensure time stamps of config.status and
3527 # generated files are strictly newer.
3528 am_sleep_pid=
3529 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3530 then :
3531
3532 else case e in #(
3533 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3534 am_sleep_pid=$!
3535 ;;
3536 esac
3537 fi
3538
3539 rm -f conftest.file
3540
3541 test "$program_prefix" != NONE &&
3542 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3543 # Use a double $ so make ignores it.
3544 test "$program_suffix" != NONE &&
3545 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3546 # Double any \ or $.
3547 # By default was 's,x,x', remove it if useless.
3548 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3549 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3550
3551
3552 # Expand $ac_aux_dir to an absolute path.
3553 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3554
3555
3556 if test x"${MISSING+set}" != xset; then
3557 MISSING="\${SHELL} '$am_aux_dir/missing'"
3558 fi
3559 # Use eval to expand $SHELL
3560 if eval "$MISSING --is-lightweight"; then
3561 am_missing_run="$MISSING "
3562 else
3563 am_missing_run=
3564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3565 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3566 fi
3567
3568 if test x"${install_sh+set}" != xset; then
3569 case $am_aux_dir in
3570 *\ * | *\ *)
3571 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3572 *)
3573 install_sh="\${SHELL} $am_aux_dir/install-sh"
3574 esac
3575 fi
3576
3577 # Installed binaries are usually stripped using 'strip' when the user
3578 # run "make install-strip". However 'strip' might not be the right
3579 # tool to use in cross-compilation environments, therefore Automake
3580 # will honor the 'STRIP' environment variable to overrule this program.
3581 if test "$cross_compiling" != no; then
3582 if test -n "$ac_tool_prefix"; then
3583 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3584 set dummy ${ac_tool_prefix}strip; ac_word=$2
3585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3586 printf %s "checking for $ac_word... " >&6; }
3587 if test ${ac_cv_prog_STRIP+y}
3588 then :
3589 printf %s "(cached) " >&6
3590 else case e in #(
3591 e) if test -n "$STRIP"; then
3592 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3593 else
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3596 do
3597 IFS=$as_save_IFS
3598 case $as_dir in #(((
3599 '') as_dir=./ ;;
3600 */) ;;
3601 *) as_dir=$as_dir/ ;;
3602 esac
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3605 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3607 break 2
3608 fi
3609 done
3610 done
3611 IFS=$as_save_IFS
3612
3613 fi ;;
3614 esac
3615 fi
3616 STRIP=$ac_cv_prog_STRIP
3617 if test -n "$STRIP"; then
3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3619 printf "%s\n" "$STRIP" >&6; }
3620 else
3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622 printf "%s\n" "no" >&6; }
3623 fi
3624
3625
3626 fi
3627 if test -z "$ac_cv_prog_STRIP"; then
3628 ac_ct_STRIP=$STRIP
3629 # Extract the first word of "strip", so it can be a program name with args.
3630 set dummy strip; ac_word=$2
3631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632 printf %s "checking for $ac_word... " >&6; }
3633 if test ${ac_cv_prog_ac_ct_STRIP+y}
3634 then :
3635 printf %s "(cached) " >&6
3636 else case e in #(
3637 e) if test -n "$ac_ct_STRIP"; then
3638 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3639 else
3640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641 for as_dir in $PATH
3642 do
3643 IFS=$as_save_IFS
3644 case $as_dir in #(((
3645 '') as_dir=./ ;;
3646 */) ;;
3647 *) as_dir=$as_dir/ ;;
3648 esac
3649 for ac_exec_ext in '' $ac_executable_extensions; do
3650 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3651 ac_cv_prog_ac_ct_STRIP="strip"
3652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3653 break 2
3654 fi
3655 done
3656 done
3657 IFS=$as_save_IFS
3658
3659 fi ;;
3660 esac
3661 fi
3662 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3663 if test -n "$ac_ct_STRIP"; then
3664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3665 printf "%s\n" "$ac_ct_STRIP" >&6; }
3666 else
3667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668 printf "%s\n" "no" >&6; }
3669 fi
3670
3671 if test "x$ac_ct_STRIP" = x; then
3672 STRIP=":"
3673 else
3674 case $cross_compiling:$ac_tool_warned in
3675 yes:)
3676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3677 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3678 ac_tool_warned=yes ;;
3679 esac
3680 STRIP=$ac_ct_STRIP
3681 fi
3682 else
3683 STRIP="$ac_cv_prog_STRIP"
3684 fi
3685
3686 fi
3687 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3688
3689
3690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3691 printf %s "checking for a race-free mkdir -p... " >&6; }
3692 if test -z "$MKDIR_P"; then
3693 if test ${ac_cv_path_mkdir+y}
3694 then :
3695 printf %s "(cached) " >&6
3696 else case e in #(
3697 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3699 do
3700 IFS=$as_save_IFS
3701 case $as_dir in #(((
3702 '') as_dir=./ ;;
3703 */) ;;
3704 *) as_dir=$as_dir/ ;;
3705 esac
3706 for ac_prog in mkdir gmkdir; do
3707 for ac_exec_ext in '' $ac_executable_extensions; do
3708 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3709 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3710 'mkdir ('*'coreutils) '* | \
3711 *'BusyBox '* | \
3712 'mkdir (fileutils) '4.1*)
3713 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3714 break 3;;
3715 esac
3716 done
3717 done
3718 done
3719 IFS=$as_save_IFS
3720 ;;
3721 esac
3722 fi
3723
3724 test -d ./--version && rmdir ./--version
3725 if test ${ac_cv_path_mkdir+y}; then
3726 MKDIR_P="$ac_cv_path_mkdir -p"
3727 else
3728 # As a last resort, use plain mkdir -p,
3729 # in the hope it doesn't have the bugs of ancient mkdir.
3730 MKDIR_P='mkdir -p'
3731 fi
3732 fi
3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3734 printf "%s\n" "$MKDIR_P" >&6; }
3735
3736 for ac_prog in gawk mawk nawk awk
3737 do
3738 # Extract the first word of "$ac_prog", so it can be a program name with args.
3739 set dummy $ac_prog; ac_word=$2
3740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3741 printf %s "checking for $ac_word... " >&6; }
3742 if test ${ac_cv_prog_AWK+y}
3743 then :
3744 printf %s "(cached) " >&6
3745 else case e in #(
3746 e) if test -n "$AWK"; then
3747 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3748 else
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 for as_dir in $PATH
3751 do
3752 IFS=$as_save_IFS
3753 case $as_dir in #(((
3754 '') as_dir=./ ;;
3755 */) ;;
3756 *) as_dir=$as_dir/ ;;
3757 esac
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3760 ac_cv_prog_AWK="$ac_prog"
3761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3762 break 2
3763 fi
3764 done
3765 done
3766 IFS=$as_save_IFS
3767
3768 fi ;;
3769 esac
3770 fi
3771 AWK=$ac_cv_prog_AWK
3772 if test -n "$AWK"; then
3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3774 printf "%s\n" "$AWK" >&6; }
3775 else
3776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3777 printf "%s\n" "no" >&6; }
3778 fi
3779
3780
3781 test -n "$AWK" && break
3782 done
3783
3784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3785 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3786 set x ${MAKE-make}
3787 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3788 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3789 then :
3790 printf %s "(cached) " >&6
3791 else case e in #(
3792 e) cat >conftest.make <<\_ACEOF
3793 SHELL = /bin/sh
3794 all:
3795 @echo '@@@%%%=$(MAKE)=@@@%%%'
3796 _ACEOF
3797 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3798 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3799 *@@@%%%=?*=@@@%%%*)
3800 eval ac_cv_prog_make_${ac_make}_set=yes;;
3801 *)
3802 eval ac_cv_prog_make_${ac_make}_set=no;;
3803 esac
3804 rm -f conftest.make ;;
3805 esac
3806 fi
3807 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3809 printf "%s\n" "yes" >&6; }
3810 SET_MAKE=
3811 else
3812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3813 printf "%s\n" "no" >&6; }
3814 SET_MAKE="MAKE=${MAKE-make}"
3815 fi
3816
3817 rm -rf .tst 2>/dev/null
3818 mkdir .tst 2>/dev/null
3819 if test -d .tst; then
3820 am__leading_dot=.
3821 else
3822 am__leading_dot=_
3823 fi
3824 rmdir .tst 2>/dev/null
3825
3826 AM_DEFAULT_VERBOSITY=1
3827 # Check whether --enable-silent-rules was given.
3828 if test ${enable_silent_rules+y}
3829 then :
3830 enableval=$enable_silent_rules;
3831 fi
3832
3833 am_make=${MAKE-make}
3834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3835 printf %s "checking whether $am_make supports nested variables... " >&6; }
3836 if test ${am_cv_make_support_nested_variables+y}
3837 then :
3838 printf %s "(cached) " >&6
3839 else case e in #(
3840 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3841 BAR0=false
3842 BAR1=true
3843 V=1
3844 am__doit:
3845 @$(TRUE)
3846 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3847 am_cv_make_support_nested_variables=yes
3848 else
3849 am_cv_make_support_nested_variables=no
3850 fi ;;
3851 esac
3852 fi
3853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3854 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3855 AM_BACKSLASH='\'
3856
3857 am__rm_f_notfound=
3858 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3859 then :
3860
3861 else case e in #(
3862 e) am__rm_f_notfound='""' ;;
3863 esac
3864 fi
3865
3866
3867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3868 printf %s "checking xargs -n works... " >&6; }
3869 if test ${am_cv_xargs_n_works+y}
3870 then :
3871 printf %s "(cached) " >&6
3872 else case e in #(
3873 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3874 3"
3875 then :
3876 am_cv_xargs_n_works=yes
3877 else case e in #(
3878 e) am_cv_xargs_n_works=no ;;
3879 esac
3880 fi ;;
3881 esac
3882 fi
3883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3884 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3885 if test "$am_cv_xargs_n_works" = yes
3886 then :
3887 am__xargs_n='xargs -n'
3888 else case e in #(
3889 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3890 ;;
3891 esac
3892 fi
3893
3894 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3895 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3896 # is not polluted with repeated "-I."
3897 am__isrc=' -I$(srcdir)'
3898 # test to see if srcdir already configured
3899 if test -f $srcdir/config.status; then
3900 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3901 fi
3902 fi
3903
3904 # test whether we have cygpath
3905 if test -z "$CYGPATH_W"; then
3906 if (cygpath --version) >/dev/null 2>/dev/null; then
3907 CYGPATH_W='cygpath -w'
3908 else
3909 CYGPATH_W=echo
3910 fi
3911 fi
3912
3913
3914 # Define the identity of the package.
3915 PACKAGE='opensmtpd'
3916 VERSION='7.8.0p0'
3917
3918
3919 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3920
3921
3922 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3923
3924 # Some tools Automake needs.
3925
3926 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3927
3928
3929 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3930
3931
3932 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3933
3934
3935 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3936
3937
3938 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3939
3940 # For better backward compatibility. To be removed once Automake 1.9.x
3941 # dies out for good. For more background, see:
3942 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3943 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3944 mkdir_p='$(MKDIR_P)'
3945
3946 # We need awk for the "check" target (and possibly the TAP driver). The
3947 # system "awk" is bad on some platforms.
3948 # Always define AMTAR for backward compatibility. Yes, it's still used
3949 # in the wild :-( We should find a proper way to deprecate it ...
3950 AMTAR='$${TAR-tar}'
3951
3952
3953 # We'll loop over all known methods to create a tar archive until one works.
3954 _am_tools='gnutar plaintar pax cpio none'
3955
3956 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3957 # There is notably a 21 bits limit for the UID and the GID. In fact,
3958 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3959 # and bug#13588).
3960 am_max_uid=2097151 # 2^21 - 1
3961 am_max_gid=$am_max_uid
3962 # The $UID and $GID variables are not portable, so we need to resort
3963 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3964 # below are definitely unexpected, so allow the users to see them
3965 # (that is, avoid stderr redirection).
3966 am_uid=`id -u || echo unknown`
3967 am_gid=`id -g || echo unknown`
3968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3969 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3970 if test x$am_uid = xunknown; then
3971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
3972 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
3973 elif test $am_uid -le $am_max_uid; then
3974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3975 printf "%s\n" "yes" >&6; }
3976 else
3977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978 printf "%s\n" "no" >&6; }
3979 _am_tools=none
3980 fi
3981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3982 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3983 if test x$gm_gid = xunknown; then
3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
3985 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
3986 elif test $am_gid -le $am_max_gid; then
3987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3988 printf "%s\n" "yes" >&6; }
3989 else
3990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991 printf "%s\n" "no" >&6; }
3992 _am_tools=none
3993 fi
3994
3995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3996 printf %s "checking how to create a ustar tar archive... " >&6; }
3997
3998 # Go ahead even if we have the value already cached. We do so because we
3999 # need to set the values for the 'am__tar' and 'am__untar' variables.
4000 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4001
4002 for _am_tool in $_am_tools; do
4003 case $_am_tool in
4004 gnutar)
4005 for _am_tar in tar gnutar gtar; do
4006 { echo "$as_me:$LINENO: $_am_tar --version" >&5
4007 ($_am_tar --version) >&5 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } && break
4011 done
4012 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4013 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4014 am__untar="$_am_tar -xf -"
4015 ;;
4016 plaintar)
4017 # Must skip GNU tar: if it does not support --format= it doesn't create
4018 # ustar tarball either.
4019 (tar --version) >/dev/null 2>&1 && continue
4020 am__tar='tar chf - "$$tardir"'
4021 am__tar_='tar chf - "$tardir"'
4022 am__untar='tar xf -'
4023 ;;
4024 pax)
4025 am__tar='pax -L -x ustar -w "$$tardir"'
4026 am__tar_='pax -L -x ustar -w "$tardir"'
4027 am__untar='pax -r'
4028 ;;
4029 cpio)
4030 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4031 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4032 am__untar='cpio -i -H ustar -d'
4033 ;;
4034 none)
4035 am__tar=false
4036 am__tar_=false
4037 am__untar=false
4038 ;;
4039 esac
4040
4041 # If the value was cached, stop now. We just wanted to have am__tar
4042 # and am__untar set.
4043 test -n "${am_cv_prog_tar_ustar}" && break
4044
4045 # tar/untar a dummy directory, and stop if the command works.
4046 rm -rf conftest.dir
4047 mkdir conftest.dir
4048 echo GrepMe > conftest.dir/file
4049 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4050 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4051 ac_status=$?
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }
4054 rm -rf conftest.dir
4055 if test -s conftest.tar; then
4056 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4057 ($am__untar <conftest.tar) >&5 2>&5
4058 ac_status=$?
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }
4061 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4062 (cat conftest.dir/file) >&5 2>&5
4063 ac_status=$?
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); }
4066 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4067 fi
4068 done
4069 rm -rf conftest.dir
4070
4071 if test ${am_cv_prog_tar_ustar+y}
4072 then :
4073 printf %s "(cached) " >&6
4074 else case e in #(
4075 e) am_cv_prog_tar_ustar=$_am_tool ;;
4076 esac
4077 fi
4078
4079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4080 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
4081
4082
4083
4084
4085
4086 # Variables for tags utilities; see am/tags.am
4087 if test -z "$CTAGS"; then
4088 CTAGS=ctags
4089 fi
4090
4091 if test -z "$ETAGS"; then
4092 ETAGS=etags
4093 fi
4094
4095 if test -z "$CSCOPE"; then
4096 CSCOPE=cscope
4097 fi
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115 DEPDIR="${am__leading_dot}deps"
4116
4117 ac_config_commands="$ac_config_commands depfiles"
4118
4119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4120 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4121 cat > confinc.mk << 'END'
4122 am__doit:
4123 @echo this is the am__doit target >confinc.out
4124 .PHONY: am__doit
4125 END
4126 am__include="#"
4127 am__quote=
4128 # BSD make does it like this.
4129 echo '.include "confinc.mk" # ignored' > confmf.BSD
4130 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4131 echo 'include confinc.mk # ignored' > confmf.GNU
4132 _am_result=no
4133 for s in GNU BSD; do
4134 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4135 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4136 ac_status=$?
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); }
4139 case $?:`cat confinc.out 2>/dev/null` in #(
4140 '0:this is the am__doit target') :
4141 case $s in #(
4142 BSD) :
4143 am__include='.include' am__quote='"' ;; #(
4144 *) :
4145 am__include='include' am__quote='' ;;
4146 esac ;; #(
4147 *) :
4148 ;;
4149 esac
4150 if test "$am__include" != "#"; then
4151 _am_result="yes ($s style)"
4152 break
4153 fi
4154 done
4155 rm -f confinc.* confmf.*
4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4157 printf "%s\n" "${_am_result}" >&6; }
4158
4159 # Check whether --enable-dependency-tracking was given.
4160 if test ${enable_dependency_tracking+y}
4161 then :
4162 enableval=$enable_dependency_tracking;
4163 fi
4164
4165 if test "x$enable_dependency_tracking" != xno; then
4166 am_depcomp="$ac_aux_dir/depcomp"
4167 AMDEPBACKSLASH='\'
4168 am__nodep='_no'
4169 fi
4170 if test "x$enable_dependency_tracking" != xno; then
4171 AMDEP_TRUE=
4172 AMDEP_FALSE='#'
4173 else
4174 AMDEP_TRUE='#'
4175 AMDEP_FALSE=
4176 fi
4177
4178
4179 ac_ext=c
4180 ac_cpp='$CPP $CPPFLAGS'
4181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4184 if test -n "$ac_tool_prefix"; then
4185 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4186 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4188 printf %s "checking for $ac_word... " >&6; }
4189 if test ${ac_cv_prog_CC+y}
4190 then :
4191 printf %s "(cached) " >&6
4192 else case e in #(
4193 e) if test -n "$CC"; then
4194 ac_cv_prog_CC="$CC" # Let the user override the test.
4195 else
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $PATH
4198 do
4199 IFS=$as_save_IFS
4200 case $as_dir in #(((
4201 '') as_dir=./ ;;
4202 */) ;;
4203 *) as_dir=$as_dir/ ;;
4204 esac
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4207 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4209 break 2
4210 fi
4211 done
4212 done
4213 IFS=$as_save_IFS
4214
4215 fi ;;
4216 esac
4217 fi
4218 CC=$ac_cv_prog_CC
4219 if test -n "$CC"; then
4220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4221 printf "%s\n" "$CC" >&6; }
4222 else
4223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4224 printf "%s\n" "no" >&6; }
4225 fi
4226
4227
4228 fi
4229 if test -z "$ac_cv_prog_CC"; then
4230 ac_ct_CC=$CC
4231 # Extract the first word of "gcc", so it can be a program name with args.
4232 set dummy gcc; ac_word=$2
4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4234 printf %s "checking for $ac_word... " >&6; }
4235 if test ${ac_cv_prog_ac_ct_CC+y}
4236 then :
4237 printf %s "(cached) " >&6
4238 else case e in #(
4239 e) if test -n "$ac_ct_CC"; then
4240 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4241 else
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 for as_dir in $PATH
4244 do
4245 IFS=$as_save_IFS
4246 case $as_dir in #(((
4247 '') as_dir=./ ;;
4248 */) ;;
4249 *) as_dir=$as_dir/ ;;
4250 esac
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4253 ac_cv_prog_ac_ct_CC="gcc"
4254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4255 break 2
4256 fi
4257 done
4258 done
4259 IFS=$as_save_IFS
4260
4261 fi ;;
4262 esac
4263 fi
4264 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4265 if test -n "$ac_ct_CC"; then
4266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4267 printf "%s\n" "$ac_ct_CC" >&6; }
4268 else
4269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4270 printf "%s\n" "no" >&6; }
4271 fi
4272
4273 if test "x$ac_ct_CC" = x; then
4274 CC=""
4275 else
4276 case $cross_compiling:$ac_tool_warned in
4277 yes:)
4278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4279 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4280 ac_tool_warned=yes ;;
4281 esac
4282 CC=$ac_ct_CC
4283 fi
4284 else
4285 CC="$ac_cv_prog_CC"
4286 fi
4287
4288 if test -z "$CC"; then
4289 if test -n "$ac_tool_prefix"; then
4290 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4291 set dummy ${ac_tool_prefix}cc; ac_word=$2
4292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4293 printf %s "checking for $ac_word... " >&6; }
4294 if test ${ac_cv_prog_CC+y}
4295 then :
4296 printf %s "(cached) " >&6
4297 else case e in #(
4298 e) if test -n "$CC"; then
4299 ac_cv_prog_CC="$CC" # Let the user override the test.
4300 else
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 for as_dir in $PATH
4303 do
4304 IFS=$as_save_IFS
4305 case $as_dir in #(((
4306 '') as_dir=./ ;;
4307 */) ;;
4308 *) as_dir=$as_dir/ ;;
4309 esac
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4312 ac_cv_prog_CC="${ac_tool_prefix}cc"
4313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4314 break 2
4315 fi
4316 done
4317 done
4318 IFS=$as_save_IFS
4319
4320 fi ;;
4321 esac
4322 fi
4323 CC=$ac_cv_prog_CC
4324 if test -n "$CC"; then
4325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4326 printf "%s\n" "$CC" >&6; }
4327 else
4328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329 printf "%s\n" "no" >&6; }
4330 fi
4331
4332
4333 fi
4334 fi
4335 if test -z "$CC"; then
4336 # Extract the first word of "cc", so it can be a program name with args.
4337 set dummy cc; ac_word=$2
4338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4339 printf %s "checking for $ac_word... " >&6; }
4340 if test ${ac_cv_prog_CC+y}
4341 then :
4342 printf %s "(cached) " >&6
4343 else case e in #(
4344 e) if test -n "$CC"; then
4345 ac_cv_prog_CC="$CC" # Let the user override the test.
4346 else
4347 ac_prog_rejected=no
4348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 for as_dir in $PATH
4350 do
4351 IFS=$as_save_IFS
4352 case $as_dir in #(((
4353 '') as_dir=./ ;;
4354 */) ;;
4355 *) as_dir=$as_dir/ ;;
4356 esac
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4359 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4360 ac_prog_rejected=yes
4361 continue
4362 fi
4363 ac_cv_prog_CC="cc"
4364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4365 break 2
4366 fi
4367 done
4368 done
4369 IFS=$as_save_IFS
4370
4371 if test $ac_prog_rejected = yes; then
4372 # We found a bogon in the path, so make sure we never use it.
4373 set dummy $ac_cv_prog_CC
4374 shift
4375 if test $# != 0; then
4376 # We chose a different compiler from the bogus one.
4377 # However, it has the same basename, so the bogon will be chosen
4378 # first if we set CC to just the basename; use the full file name.
4379 shift
4380 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4381 fi
4382 fi
4383 fi ;;
4384 esac
4385 fi
4386 CC=$ac_cv_prog_CC
4387 if test -n "$CC"; then
4388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4389 printf "%s\n" "$CC" >&6; }
4390 else
4391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392 printf "%s\n" "no" >&6; }
4393 fi
4394
4395
4396 fi
4397 if test -z "$CC"; then
4398 if test -n "$ac_tool_prefix"; then
4399 for ac_prog in cl.exe
4400 do
4401 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4402 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404 printf %s "checking for $ac_word... " >&6; }
4405 if test ${ac_cv_prog_CC+y}
4406 then :
4407 printf %s "(cached) " >&6
4408 else case e in #(
4409 e) if test -n "$CC"; then
4410 ac_cv_prog_CC="$CC" # Let the user override the test.
4411 else
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH
4414 do
4415 IFS=$as_save_IFS
4416 case $as_dir in #(((
4417 '') as_dir=./ ;;
4418 */) ;;
4419 *) as_dir=$as_dir/ ;;
4420 esac
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4423 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4425 break 2
4426 fi
4427 done
4428 done
4429 IFS=$as_save_IFS
4430
4431 fi ;;
4432 esac
4433 fi
4434 CC=$ac_cv_prog_CC
4435 if test -n "$CC"; then
4436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4437 printf "%s\n" "$CC" >&6; }
4438 else
4439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4440 printf "%s\n" "no" >&6; }
4441 fi
4442
4443
4444 test -n "$CC" && break
4445 done
4446 fi
4447 if test -z "$CC"; then
4448 ac_ct_CC=$CC
4449 for ac_prog in cl.exe
4450 do
4451 # Extract the first word of "$ac_prog", so it can be a program name with args.
4452 set dummy $ac_prog; ac_word=$2
4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4454 printf %s "checking for $ac_word... " >&6; }
4455 if test ${ac_cv_prog_ac_ct_CC+y}
4456 then :
4457 printf %s "(cached) " >&6
4458 else case e in #(
4459 e) if test -n "$ac_ct_CC"; then
4460 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4461 else
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 for as_dir in $PATH
4464 do
4465 IFS=$as_save_IFS
4466 case $as_dir in #(((
4467 '') as_dir=./ ;;
4468 */) ;;
4469 *) as_dir=$as_dir/ ;;
4470 esac
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4473 ac_cv_prog_ac_ct_CC="$ac_prog"
4474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4475 break 2
4476 fi
4477 done
4478 done
4479 IFS=$as_save_IFS
4480
4481 fi ;;
4482 esac
4483 fi
4484 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4485 if test -n "$ac_ct_CC"; then
4486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4487 printf "%s\n" "$ac_ct_CC" >&6; }
4488 else
4489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4490 printf "%s\n" "no" >&6; }
4491 fi
4492
4493
4494 test -n "$ac_ct_CC" && break
4495 done
4496
4497 if test "x$ac_ct_CC" = x; then
4498 CC=""
4499 else
4500 case $cross_compiling:$ac_tool_warned in
4501 yes:)
4502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4503 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4504 ac_tool_warned=yes ;;
4505 esac
4506 CC=$ac_ct_CC
4507 fi
4508 fi
4509
4510 fi
4511 if test -z "$CC"; then
4512 if test -n "$ac_tool_prefix"; then
4513 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4514 set dummy ${ac_tool_prefix}clang; ac_word=$2
4515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4516 printf %s "checking for $ac_word... " >&6; }
4517 if test ${ac_cv_prog_CC+y}
4518 then :
4519 printf %s "(cached) " >&6
4520 else case e in #(
4521 e) if test -n "$CC"; then
4522 ac_cv_prog_CC="$CC" # Let the user override the test.
4523 else
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH
4526 do
4527 IFS=$as_save_IFS
4528 case $as_dir in #(((
4529 '') as_dir=./ ;;
4530 */) ;;
4531 *) as_dir=$as_dir/ ;;
4532 esac
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4535 ac_cv_prog_CC="${ac_tool_prefix}clang"
4536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4537 break 2
4538 fi
4539 done
4540 done
4541 IFS=$as_save_IFS
4542
4543 fi ;;
4544 esac
4545 fi
4546 CC=$ac_cv_prog_CC
4547 if test -n "$CC"; then
4548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4549 printf "%s\n" "$CC" >&6; }
4550 else
4551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4552 printf "%s\n" "no" >&6; }
4553 fi
4554
4555
4556 fi
4557 if test -z "$ac_cv_prog_CC"; then
4558 ac_ct_CC=$CC
4559 # Extract the first word of "clang", so it can be a program name with args.
4560 set dummy clang; ac_word=$2
4561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4562 printf %s "checking for $ac_word... " >&6; }
4563 if test ${ac_cv_prog_ac_ct_CC+y}
4564 then :
4565 printf %s "(cached) " >&6
4566 else case e in #(
4567 e) if test -n "$ac_ct_CC"; then
4568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4569 else
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH
4572 do
4573 IFS=$as_save_IFS
4574 case $as_dir in #(((
4575 '') as_dir=./ ;;
4576 */) ;;
4577 *) as_dir=$as_dir/ ;;
4578 esac
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4581 ac_cv_prog_ac_ct_CC="clang"
4582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4583 break 2
4584 fi
4585 done
4586 done
4587 IFS=$as_save_IFS
4588
4589 fi ;;
4590 esac
4591 fi
4592 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4593 if test -n "$ac_ct_CC"; then
4594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4595 printf "%s\n" "$ac_ct_CC" >&6; }
4596 else
4597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598 printf "%s\n" "no" >&6; }
4599 fi
4600
4601 if test "x$ac_ct_CC" = x; then
4602 CC=""
4603 else
4604 case $cross_compiling:$ac_tool_warned in
4605 yes:)
4606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4607 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4608 ac_tool_warned=yes ;;
4609 esac
4610 CC=$ac_ct_CC
4611 fi
4612 else
4613 CC="$ac_cv_prog_CC"
4614 fi
4615
4616 fi
4617
4618
4619 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4620 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4621 as_fn_error $? "no acceptable C compiler found in \$PATH
4622 See 'config.log' for more details" "$LINENO" 5; }
4623
4624 # Provide some information about the compiler.
4625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4626 set X $ac_compile
4627 ac_compiler=$2
4628 for ac_option in --version -v -V -qversion -version; do
4629 { { ac_try="$ac_compiler $ac_option >&5"
4630 case "(($ac_try" in
4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4633 esac
4634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4635 printf "%s\n" "$ac_try_echo"; } >&5
4636 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4637 ac_status=$?
4638 if test -s conftest.err; then
4639 sed '10a\
4640 ... rest of stderr output deleted ...
4641 10q' conftest.err >conftest.er1
4642 cat conftest.er1 >&5
4643 fi
4644 rm -f conftest.er1 conftest.err
4645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4646 test $ac_status = 0; }
4647 done
4648
4649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650 /* end confdefs.h. */
4651
4652 int
4653 main (void)
4654 {
4655
4656 ;
4657 return 0;
4658 }
4659 _ACEOF
4660 ac_clean_files_save=$ac_clean_files
4661 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4662 # Try to create an executable without -o first, disregard a.out.
4663 # It will help us diagnose broken compilers, and finding out an intuition
4664 # of exeext.
4665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4666 printf %s "checking whether the C compiler works... " >&6; }
4667 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4668
4669 # The possible output files:
4670 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4671
4672 ac_rmfiles=
4673 for ac_file in $ac_files
4674 do
4675 case $ac_file in
4676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4677 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4678 esac
4679 done
4680 rm -f $ac_rmfiles
4681
4682 if { { ac_try="$ac_link_default"
4683 case "(($ac_try" in
4684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685 *) ac_try_echo=$ac_try;;
4686 esac
4687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4688 printf "%s\n" "$ac_try_echo"; } >&5
4689 (eval "$ac_link_default") 2>&5
4690 ac_status=$?
4691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4692 test $ac_status = 0; }
4693 then :
4694 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4695 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4696 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4697 # so that the user can short-circuit this test for compilers unknown to
4698 # Autoconf.
4699 for ac_file in $ac_files ''
4700 do
4701 test -f "$ac_file" || continue
4702 case $ac_file in
4703 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4704 ;;
4705 [ab].out )
4706 # We found the default executable, but exeext='' is most
4707 # certainly right.
4708 break;;
4709 *.* )
4710 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4711 then :; else
4712 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4713 fi
4714 # We set ac_cv_exeext here because the later test for it is not
4715 # safe: cross compilers may not add the suffix if given an '-o'
4716 # argument, so we may need to know it at that point already.
4717 # Even if this section looks crufty: it has the advantage of
4718 # actually working.
4719 break;;
4720 * )
4721 break;;
4722 esac
4723 done
4724 test "$ac_cv_exeext" = no && ac_cv_exeext=
4725
4726 else case e in #(
4727 e) ac_file='' ;;
4728 esac
4729 fi
4730 if test -z "$ac_file"
4731 then :
4732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733 printf "%s\n" "no" >&6; }
4734 printf "%s\n" "$as_me: failed program was:" >&5
4735 sed 's/^/| /' conftest.$ac_ext >&5
4736
4737 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4738 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4739 as_fn_error 77 "C compiler cannot create executables
4740 See 'config.log' for more details" "$LINENO" 5; }
4741 else case e in #(
4742 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4743 printf "%s\n" "yes" >&6; } ;;
4744 esac
4745 fi
4746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4747 printf %s "checking for C compiler default output file name... " >&6; }
4748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4749 printf "%s\n" "$ac_file" >&6; }
4750 ac_exeext=$ac_cv_exeext
4751
4752 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4753 ac_clean_files=$ac_clean_files_save
4754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4755 printf %s "checking for suffix of executables... " >&6; }
4756 if { { ac_try="$ac_link"
4757 case "(($ac_try" in
4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759 *) ac_try_echo=$ac_try;;
4760 esac
4761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4762 printf "%s\n" "$ac_try_echo"; } >&5
4763 (eval "$ac_link") 2>&5
4764 ac_status=$?
4765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4766 test $ac_status = 0; }
4767 then :
4768 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4769 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4770 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4771 # 'rm'.
4772 for ac_file in conftest.exe conftest conftest.*; do
4773 test -f "$ac_file" || continue
4774 case $ac_file in
4775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4776 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4777 break;;
4778 * ) break;;
4779 esac
4780 done
4781 else case e in #(
4782 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4783 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4784 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4785 See 'config.log' for more details" "$LINENO" 5; } ;;
4786 esac
4787 fi
4788 rm -f conftest conftest$ac_cv_exeext
4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4790 printf "%s\n" "$ac_cv_exeext" >&6; }
4791
4792 rm -f conftest.$ac_ext
4793 EXEEXT=$ac_cv_exeext
4794 ac_exeext=$EXEEXT
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4797 #include <stdio.h>
4798 int
4799 main (void)
4800 {
4801 FILE *f = fopen ("conftest.out", "w");
4802 if (!f)
4803 return 1;
4804 return ferror (f) || fclose (f) != 0;
4805
4806 ;
4807 return 0;
4808 }
4809 _ACEOF
4810 ac_clean_files="$ac_clean_files conftest.out"
4811 # Check that the compiler produces executables we can run. If not, either
4812 # the compiler is broken, or we cross compile.
4813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4814 printf %s "checking whether we are cross compiling... " >&6; }
4815 if test "$cross_compiling" != yes; then
4816 { { ac_try="$ac_link"
4817 case "(($ac_try" in
4818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4819 *) ac_try_echo=$ac_try;;
4820 esac
4821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4822 printf "%s\n" "$ac_try_echo"; } >&5
4823 (eval "$ac_link") 2>&5
4824 ac_status=$?
4825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4826 test $ac_status = 0; }
4827 if { ac_try='./conftest$ac_cv_exeext'
4828 { { case "(($ac_try" in
4829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4830 *) ac_try_echo=$ac_try;;
4831 esac
4832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4833 printf "%s\n" "$ac_try_echo"; } >&5
4834 (eval "$ac_try") 2>&5
4835 ac_status=$?
4836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4837 test $ac_status = 0; }; }; then
4838 cross_compiling=no
4839 else
4840 if test "$cross_compiling" = maybe; then
4841 cross_compiling=yes
4842 else
4843 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4844 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4845 as_fn_error 77 "cannot run C compiled programs.
4846 If you meant to cross compile, use '--host'.
4847 See 'config.log' for more details" "$LINENO" 5; }
4848 fi
4849 fi
4850 fi
4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4852 printf "%s\n" "$cross_compiling" >&6; }
4853
4854 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4855 conftest.o conftest.obj conftest.out
4856 ac_clean_files=$ac_clean_files_save
4857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4858 printf %s "checking for suffix of object files... " >&6; }
4859 if test ${ac_cv_objext+y}
4860 then :
4861 printf %s "(cached) " >&6
4862 else case e in #(
4863 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h. */
4865
4866 int
4867 main (void)
4868 {
4869
4870 ;
4871 return 0;
4872 }
4873 _ACEOF
4874 rm -f conftest.o conftest.obj
4875 if { { ac_try="$ac_compile"
4876 case "(($ac_try" in
4877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4878 *) ac_try_echo=$ac_try;;
4879 esac
4880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4881 printf "%s\n" "$ac_try_echo"; } >&5
4882 (eval "$ac_compile") 2>&5
4883 ac_status=$?
4884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4885 test $ac_status = 0; }
4886 then :
4887 for ac_file in conftest.o conftest.obj conftest.*; do
4888 test -f "$ac_file" || continue;
4889 case $ac_file in
4890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4891 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4892 break;;
4893 esac
4894 done
4895 else case e in #(
4896 e) printf "%s\n" "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.$ac_ext >&5
4898
4899 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4900 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4901 as_fn_error $? "cannot compute suffix of object files: cannot compile
4902 See 'config.log' for more details" "$LINENO" 5; } ;;
4903 esac
4904 fi
4905 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4906 esac
4907 fi
4908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4909 printf "%s\n" "$ac_cv_objext" >&6; }
4910 OBJEXT=$ac_cv_objext
4911 ac_objext=$OBJEXT
4912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4913 printf %s "checking whether the compiler supports GNU C... " >&6; }
4914 if test ${ac_cv_c_compiler_gnu+y}
4915 then :
4916 printf %s "(cached) " >&6
4917 else case e in #(
4918 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4919 /* end confdefs.h. */
4920
4921 int
4922 main (void)
4923 {
4924 #ifndef __GNUC__
4925 choke me
4926 #endif
4927
4928 ;
4929 return 0;
4930 }
4931 _ACEOF
4932 if ac_fn_c_try_compile "$LINENO"
4933 then :
4934 ac_compiler_gnu=yes
4935 else case e in #(
4936 e) ac_compiler_gnu=no ;;
4937 esac
4938 fi
4939 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4940 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4941 ;;
4942 esac
4943 fi
4944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4945 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4947
4948 if test $ac_compiler_gnu = yes; then
4949 GCC=yes
4950 else
4951 GCC=
4952 fi
4953 ac_test_CFLAGS=${CFLAGS+y}
4954 ac_save_CFLAGS=$CFLAGS
4955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4956 printf %s "checking whether $CC accepts -g... " >&6; }
4957 if test ${ac_cv_prog_cc_g+y}
4958 then :
4959 printf %s "(cached) " >&6
4960 else case e in #(
4961 e) ac_save_c_werror_flag=$ac_c_werror_flag
4962 ac_c_werror_flag=yes
4963 ac_cv_prog_cc_g=no
4964 CFLAGS="-g"
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4967
4968 int
4969 main (void)
4970 {
4971
4972 ;
4973 return 0;
4974 }
4975 _ACEOF
4976 if ac_fn_c_try_compile "$LINENO"
4977 then :
4978 ac_cv_prog_cc_g=yes
4979 else case e in #(
4980 e) CFLAGS=""
4981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982 /* end confdefs.h. */
4983
4984 int
4985 main (void)
4986 {
4987
4988 ;
4989 return 0;
4990 }
4991 _ACEOF
4992 if ac_fn_c_try_compile "$LINENO"
4993 then :
4994
4995 else case e in #(
4996 e) ac_c_werror_flag=$ac_save_c_werror_flag
4997 CFLAGS="-g"
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5000
5001 int
5002 main (void)
5003 {
5004
5005 ;
5006 return 0;
5007 }
5008 _ACEOF
5009 if ac_fn_c_try_compile "$LINENO"
5010 then :
5011 ac_cv_prog_cc_g=yes
5012 fi
5013 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5014 esac
5015 fi
5016 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5017 esac
5018 fi
5019 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5020 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5021 esac
5022 fi
5023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5024 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5025 if test $ac_test_CFLAGS; then
5026 CFLAGS=$ac_save_CFLAGS
5027 elif test $ac_cv_prog_cc_g = yes; then
5028 if test "$GCC" = yes; then
5029 CFLAGS="-g -O2"
5030 else
5031 CFLAGS="-g"
5032 fi
5033 else
5034 if test "$GCC" = yes; then
5035 CFLAGS="-O2"
5036 else
5037 CFLAGS=
5038 fi
5039 fi
5040 ac_prog_cc_stdc=no
5041 if test x$ac_prog_cc_stdc = xno
5042 then :
5043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5044 printf %s "checking for $CC option to enable C11 features... " >&6; }
5045 if test ${ac_cv_prog_cc_c11+y}
5046 then :
5047 printf %s "(cached) " >&6
5048 else case e in #(
5049 e) ac_cv_prog_cc_c11=no
5050 ac_save_CC=$CC
5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052 /* end confdefs.h. */
5053 $ac_c_conftest_c11_program
5054 _ACEOF
5055 for ac_arg in '' -std=gnu11
5056 do
5057 CC="$ac_save_CC $ac_arg"
5058 if ac_fn_c_try_compile "$LINENO"
5059 then :
5060 ac_cv_prog_cc_c11=$ac_arg
5061 fi
5062 rm -f core conftest.err conftest.$ac_objext conftest.beam
5063 test "x$ac_cv_prog_cc_c11" != "xno" && break
5064 done
5065 rm -f conftest.$ac_ext
5066 CC=$ac_save_CC ;;
5067 esac
5068 fi
5069
5070 if test "x$ac_cv_prog_cc_c11" = xno
5071 then :
5072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5073 printf "%s\n" "unsupported" >&6; }
5074 else case e in #(
5075 e) if test "x$ac_cv_prog_cc_c11" = x
5076 then :
5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5078 printf "%s\n" "none needed" >&6; }
5079 else case e in #(
5080 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5081 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5082 CC="$CC $ac_cv_prog_cc_c11" ;;
5083 esac
5084 fi
5085 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5086 ac_prog_cc_stdc=c11 ;;
5087 esac
5088 fi
5089 fi
5090 if test x$ac_prog_cc_stdc = xno
5091 then :
5092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5093 printf %s "checking for $CC option to enable C99 features... " >&6; }
5094 if test ${ac_cv_prog_cc_c99+y}
5095 then :
5096 printf %s "(cached) " >&6
5097 else case e in #(
5098 e) ac_cv_prog_cc_c99=no
5099 ac_save_CC=$CC
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5102 $ac_c_conftest_c99_program
5103 _ACEOF
5104 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5105 do
5106 CC="$ac_save_CC $ac_arg"
5107 if ac_fn_c_try_compile "$LINENO"
5108 then :
5109 ac_cv_prog_cc_c99=$ac_arg
5110 fi
5111 rm -f core conftest.err conftest.$ac_objext conftest.beam
5112 test "x$ac_cv_prog_cc_c99" != "xno" && break
5113 done
5114 rm -f conftest.$ac_ext
5115 CC=$ac_save_CC ;;
5116 esac
5117 fi
5118
5119 if test "x$ac_cv_prog_cc_c99" = xno
5120 then :
5121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5122 printf "%s\n" "unsupported" >&6; }
5123 else case e in #(
5124 e) if test "x$ac_cv_prog_cc_c99" = x
5125 then :
5126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5127 printf "%s\n" "none needed" >&6; }
5128 else case e in #(
5129 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5130 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5131 CC="$CC $ac_cv_prog_cc_c99" ;;
5132 esac
5133 fi
5134 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5135 ac_prog_cc_stdc=c99 ;;
5136 esac
5137 fi
5138 fi
5139 if test x$ac_prog_cc_stdc = xno
5140 then :
5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5142 printf %s "checking for $CC option to enable C89 features... " >&6; }
5143 if test ${ac_cv_prog_cc_c89+y}
5144 then :
5145 printf %s "(cached) " >&6
5146 else case e in #(
5147 e) ac_cv_prog_cc_c89=no
5148 ac_save_CC=$CC
5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h. */
5151 $ac_c_conftest_c89_program
5152 _ACEOF
5153 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5154 do
5155 CC="$ac_save_CC $ac_arg"
5156 if ac_fn_c_try_compile "$LINENO"
5157 then :
5158 ac_cv_prog_cc_c89=$ac_arg
5159 fi
5160 rm -f core conftest.err conftest.$ac_objext conftest.beam
5161 test "x$ac_cv_prog_cc_c89" != "xno" && break
5162 done
5163 rm -f conftest.$ac_ext
5164 CC=$ac_save_CC ;;
5165 esac
5166 fi
5167
5168 if test "x$ac_cv_prog_cc_c89" = xno
5169 then :
5170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5171 printf "%s\n" "unsupported" >&6; }
5172 else case e in #(
5173 e) if test "x$ac_cv_prog_cc_c89" = x
5174 then :
5175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5176 printf "%s\n" "none needed" >&6; }
5177 else case e in #(
5178 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5179 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5180 CC="$CC $ac_cv_prog_cc_c89" ;;
5181 esac
5182 fi
5183 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5184 ac_prog_cc_stdc=c89 ;;
5185 esac
5186 fi
5187 fi
5188
5189 ac_ext=c
5190 ac_cpp='$CPP $CPPFLAGS'
5191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5194
5195
5196 ac_ext=c
5197 ac_cpp='$CPP $CPPFLAGS'
5198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5202 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5203 if test ${am_cv_prog_cc_c_o+y}
5204 then :
5205 printf %s "(cached) " >&6
5206 else case e in #(
5207 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208 /* end confdefs.h. */
5209
5210 int
5211 main (void)
5212 {
5213
5214 ;
5215 return 0;
5216 }
5217 _ACEOF
5218 # Make sure it works both with $CC and with simple cc.
5219 # Following AC_PROG_CC_C_O, we do the test twice because some
5220 # compilers refuse to overwrite an existing .o file with -o,
5221 # though they will create one.
5222 am_cv_prog_cc_c_o=yes
5223 for am_i in 1 2; do
5224 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5225 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5226 ac_status=$?
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } \
5229 && test -f conftest2.$ac_objext; then
5230 : OK
5231 else
5232 am_cv_prog_cc_c_o=no
5233 break
5234 fi
5235 done
5236 # aligned with autoconf, so not including core; see bug#72225.
5237 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
5238 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
5239 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
5240 unset am_i ;;
5241 esac
5242 fi
5243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5244 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5245 if test "$am_cv_prog_cc_c_o" != yes; then
5246 # Losing compiler, so override with the script.
5247 # FIXME: It is wrong to rewrite CC.
5248 # But if we don't then we get into trouble of one sort or another.
5249 # A longer-term fix would be to have automake use am__CC in this case,
5250 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5251 CC="$am_aux_dir/compile $CC"
5252 fi
5253 ac_ext=c
5254 ac_cpp='$CPP $CPPFLAGS'
5255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5258
5259
5260 depcc="$CC" am_compiler_list=
5261
5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5263 printf %s "checking dependency style of $depcc... " >&6; }
5264 if test ${am_cv_CC_dependencies_compiler_type+y}
5265 then :
5266 printf %s "(cached) " >&6
5267 else case e in #(
5268 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5269 # We make a subdir and do the tests there. Otherwise we can end up
5270 # making bogus files that we don't know about and never remove. For
5271 # instance it was reported that on HP-UX the gcc test will end up
5272 # making a dummy file named 'D' -- because '-MD' means "put the output
5273 # in D".
5274 rm -rf conftest.dir
5275 mkdir conftest.dir
5276 # Copy depcomp to subdir because otherwise we won't find it if we're
5277 # using a relative directory.
5278 cp "$am_depcomp" conftest.dir
5279 cd conftest.dir
5280 # We will build objects and dependencies in a subdirectory because
5281 # it helps to detect inapplicable dependency modes. For instance
5282 # both Tru64's cc and ICC support -MD to output dependencies as a
5283 # side effect of compilation, but ICC will put the dependencies in
5284 # the current directory while Tru64 will put them in the object
5285 # directory.
5286 mkdir sub
5287
5288 am_cv_CC_dependencies_compiler_type=none
5289 if test "$am_compiler_list" = ""; then
5290 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5291 fi
5292 am__universal=false
5293 case " $depcc " in #(
5294 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5295 esac
5296
5297 for depmode in $am_compiler_list; do
5298 # Setup a source with many dependencies, because some compilers
5299 # like to wrap large dependency lists on column 80 (with \), and
5300 # we should not choose a depcomp mode which is confused by this.
5301 #
5302 # We need to recreate these files for each test, as the compiler may
5303 # overwrite some of them when testing with obscure command lines.
5304 # This happens at least with the AIX C compiler.
5305 : > sub/conftest.c
5306 for i in 1 2 3 4 5 6; do
5307 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5308 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5309 # Solaris 10 /bin/sh.
5310 echo '/* dummy */' > sub/conftst$i.h
5311 done
5312 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5313
5314 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5315 # mode. It turns out that the SunPro C++ compiler does not properly
5316 # handle '-M -o', and we need to detect this. Also, some Intel
5317 # versions had trouble with output in subdirs.
5318 am__obj=sub/conftest.${OBJEXT-o}
5319 am__minus_obj="-o $am__obj"
5320 case $depmode in
5321 gcc)
5322 # This depmode causes a compiler race in universal mode.
5323 test "$am__universal" = false || continue
5324 ;;
5325 nosideeffect)
5326 # After this tag, mechanisms are not by side-effect, so they'll
5327 # only be used when explicitly requested.
5328 if test "x$enable_dependency_tracking" = xyes; then
5329 continue
5330 else
5331 break
5332 fi
5333 ;;
5334 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5335 # This compiler won't grok '-c -o', but also, the minuso test has
5336 # not run yet. These depmodes are late enough in the game, and
5337 # so weak that their functioning should not be impacted.
5338 am__obj=conftest.${OBJEXT-o}
5339 am__minus_obj=
5340 ;;
5341 none) break ;;
5342 esac
5343 if depmode=$depmode \
5344 source=sub/conftest.c object=$am__obj \
5345 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5346 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5347 >/dev/null 2>conftest.err &&
5348 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5349 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5350 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5351 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5352 # icc doesn't choke on unknown options, it will just issue warnings
5353 # or remarks (even with -Werror). So we grep stderr for any message
5354 # that says an option was ignored or not supported.
5355 # When given -MP, icc 7.0 and 7.1 complain thus:
5356 # icc: Command line warning: ignoring option '-M'; no argument required
5357 # The diagnosis changed in icc 8.0:
5358 # icc: Command line remark: option '-MP' not supported
5359 if (grep 'ignoring option' conftest.err ||
5360 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5361 am_cv_CC_dependencies_compiler_type=$depmode
5362 break
5363 fi
5364 fi
5365 done
5366
5367 cd ..
5368 rm -rf conftest.dir
5369 else
5370 am_cv_CC_dependencies_compiler_type=none
5371 fi
5372 ;;
5373 esac
5374 fi
5375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5376 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5377 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5378
5379 if
5380 test "x$enable_dependency_tracking" != xno \
5381 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5382 am__fastdepCC_TRUE=
5383 am__fastdepCC_FALSE='#'
5384 else
5385 am__fastdepCC_TRUE='#'
5386 am__fastdepCC_FALSE=
5387 fi
5388
5389
5390
5391 ac_header= ac_cache=
5392 for ac_item in $ac_header_c_list
5393 do
5394 if test $ac_cache; then
5395 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5396 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5397 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5398 fi
5399 ac_header= ac_cache=
5400 elif test $ac_header; then
5401 ac_cache=$ac_item
5402 else
5403 ac_header=$ac_item
5404 fi
5405 done
5406
5407
5408
5409
5410
5411
5412
5413
5414 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5415 then :
5416
5417 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5418
5419 fi
5420
5421
5422
5423
5424
5425
5426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5427 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5428 if test ${ac_cv_safe_to_define___extensions__+y}
5429 then :
5430 printf %s "(cached) " >&6
5431 else case e in #(
5432 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h. */
5434
5435 # define __EXTENSIONS__ 1
5436 $ac_includes_default
5437 int
5438 main (void)
5439 {
5440
5441 ;
5442 return 0;
5443 }
5444 _ACEOF
5445 if ac_fn_c_try_compile "$LINENO"
5446 then :
5447 ac_cv_safe_to_define___extensions__=yes
5448 else case e in #(
5449 e) ac_cv_safe_to_define___extensions__=no ;;
5450 esac
5451 fi
5452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5453 esac
5454 fi
5455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5456 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5457
5458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5459 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5460 if test ${ac_cv_should_define__xopen_source+y}
5461 then :
5462 printf %s "(cached) " >&6
5463 else case e in #(
5464 e) ac_cv_should_define__xopen_source=no
5465 if test $ac_cv_header_wchar_h = yes
5466 then :
5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5469
5470 #include <wchar.h>
5471 mbstate_t x;
5472 int
5473 main (void)
5474 {
5475
5476 ;
5477 return 0;
5478 }
5479 _ACEOF
5480 if ac_fn_c_try_compile "$LINENO"
5481 then :
5482
5483 else case e in #(
5484 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5485 /* end confdefs.h. */
5486
5487 #define _XOPEN_SOURCE 500
5488 #include <wchar.h>
5489 mbstate_t x;
5490 int
5491 main (void)
5492 {
5493
5494 ;
5495 return 0;
5496 }
5497 _ACEOF
5498 if ac_fn_c_try_compile "$LINENO"
5499 then :
5500 ac_cv_should_define__xopen_source=yes
5501 fi
5502 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5503 esac
5504 fi
5505 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5506 fi ;;
5507 esac
5508 fi
5509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5510 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5511
5512 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5513
5514 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5515
5516 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5517
5518 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5519
5520 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5521
5522 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5523
5524 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5525
5526 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5527
5528 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5529
5530 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5531
5532 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
5533
5534 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5535
5536 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5537
5538 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5539
5540 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5541
5542 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5543
5544 if test $ac_cv_header_minix_config_h = yes
5545 then :
5546 MINIX=yes
5547 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5548
5549 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5550
5551 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5552
5553 else case e in #(
5554 e) MINIX= ;;
5555 esac
5556 fi
5557 if test $ac_cv_safe_to_define___extensions__ = yes
5558 then :
5559 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5560
5561 fi
5562 if test $ac_cv_should_define__xopen_source = yes
5563 then :
5564 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5565
5566 fi
5567
5568
5569
5570 if test -n "$ac_tool_prefix"; then
5571 for ac_prog in ar lib "link -lib"
5572 do
5573 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5574 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576 printf %s "checking for $ac_word... " >&6; }
5577 if test ${ac_cv_prog_AR+y}
5578 then :
5579 printf %s "(cached) " >&6
5580 else case e in #(
5581 e) if test -n "$AR"; then
5582 ac_cv_prog_AR="$AR" # Let the user override the test.
5583 else
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 for as_dir in $PATH
5586 do
5587 IFS=$as_save_IFS
5588 case $as_dir in #(((
5589 '') as_dir=./ ;;
5590 */) ;;
5591 *) as_dir=$as_dir/ ;;
5592 esac
5593 for ac_exec_ext in '' $ac_executable_extensions; do
5594 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5595 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5597 break 2
5598 fi
5599 done
5600 done
5601 IFS=$as_save_IFS
5602
5603 fi ;;
5604 esac
5605 fi
5606 AR=$ac_cv_prog_AR
5607 if test -n "$AR"; then
5608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5609 printf "%s\n" "$AR" >&6; }
5610 else
5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612 printf "%s\n" "no" >&6; }
5613 fi
5614
5615
5616 test -n "$AR" && break
5617 done
5618 fi
5619 if test -z "$AR"; then
5620 ac_ct_AR=$AR
5621 for ac_prog in ar lib "link -lib"
5622 do
5623 # Extract the first word of "$ac_prog", so it can be a program name with args.
5624 set dummy $ac_prog; ac_word=$2
5625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 printf %s "checking for $ac_word... " >&6; }
5627 if test ${ac_cv_prog_ac_ct_AR+y}
5628 then :
5629 printf %s "(cached) " >&6
5630 else case e in #(
5631 e) if test -n "$ac_ct_AR"; then
5632 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5633 else
5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635 for as_dir in $PATH
5636 do
5637 IFS=$as_save_IFS
5638 case $as_dir in #(((
5639 '') as_dir=./ ;;
5640 */) ;;
5641 *) as_dir=$as_dir/ ;;
5642 esac
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5645 ac_cv_prog_ac_ct_AR="$ac_prog"
5646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5647 break 2
5648 fi
5649 done
5650 done
5651 IFS=$as_save_IFS
5652
5653 fi ;;
5654 esac
5655 fi
5656 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5657 if test -n "$ac_ct_AR"; then
5658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5659 printf "%s\n" "$ac_ct_AR" >&6; }
5660 else
5661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662 printf "%s\n" "no" >&6; }
5663 fi
5664
5665
5666 test -n "$ac_ct_AR" && break
5667 done
5668
5669 if test "x$ac_ct_AR" = x; then
5670 AR="false"
5671 else
5672 case $cross_compiling:$ac_tool_warned in
5673 yes:)
5674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5675 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5676 ac_tool_warned=yes ;;
5677 esac
5678 AR=$ac_ct_AR
5679 fi
5680 fi
5681
5682 : ${AR=ar}
5683 : ${ARFLAGS=cr}
5684
5685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5686 printf %s "checking the archiver ($AR) interface... " >&6; }
5687 if test ${am_cv_ar_interface+y}
5688 then :
5689 printf %s "(cached) " >&6
5690 else case e in #(
5691 e) ac_ext=c
5692 ac_cpp='$CPP $CPPFLAGS'
5693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5696
5697 am_cv_ar_interface=ar
5698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5699 /* end confdefs.h. */
5700 int some_variable = 0;
5701 _ACEOF
5702 if ac_fn_c_try_compile "$LINENO"
5703 then :
5704 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
5705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5706 (eval $am_ar_try) 2>&5
5707 ac_status=$?
5708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5709 test $ac_status = 0; }
5710 if test "$ac_status" -eq 0; then
5711 am_cv_ar_interface=ar
5712 else
5713 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5715 (eval $am_ar_try) 2>&5
5716 ac_status=$?
5717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5718 test $ac_status = 0; }
5719 if test "$ac_status" -eq 0; then
5720 am_cv_ar_interface=lib
5721 else
5722 am_cv_ar_interface=unknown
5723 fi
5724 fi
5725 rm -f conftest.lib libconftest.a
5726
5727 fi
5728 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5729 ac_ext=c
5730 ac_cpp='$CPP $CPPFLAGS'
5731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5734 ;;
5735 esac
5736 fi
5737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5738 printf "%s\n" "$am_cv_ar_interface" >&6; }
5739
5740 case $am_cv_ar_interface in
5741 ar)
5742 ;;
5743 lib)
5744 # Microsoft lib, so override with the ar-lib wrapper script.
5745 # FIXME: It is wrong to rewrite AR.
5746 # But if we don't then we get into trouble of one sort or another.
5747 # A longer-term fix would be to have automake use am__AR in this case,
5748 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5749 # similar.
5750 AR="$am_aux_dir/ar-lib $AR"
5751 ;;
5752 unknown)
5753 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5754 ;;
5755 esac
5756
5757 ac_ext=c
5758 ac_cpp='$CPP $CPPFLAGS'
5759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5762 if test -n "$ac_tool_prefix"; then
5763 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5764 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766 printf %s "checking for $ac_word... " >&6; }
5767 if test ${ac_cv_prog_CC+y}
5768 then :
5769 printf %s "(cached) " >&6
5770 else case e in #(
5771 e) if test -n "$CC"; then
5772 ac_cv_prog_CC="$CC" # Let the user override the test.
5773 else
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 for as_dir in $PATH
5776 do
5777 IFS=$as_save_IFS
5778 case $as_dir in #(((
5779 '') as_dir=./ ;;
5780 */) ;;
5781 *) as_dir=$as_dir/ ;;
5782 esac
5783 for ac_exec_ext in '' $ac_executable_extensions; do
5784 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5785 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5787 break 2
5788 fi
5789 done
5790 done
5791 IFS=$as_save_IFS
5792
5793 fi ;;
5794 esac
5795 fi
5796 CC=$ac_cv_prog_CC
5797 if test -n "$CC"; then
5798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5799 printf "%s\n" "$CC" >&6; }
5800 else
5801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5802 printf "%s\n" "no" >&6; }
5803 fi
5804
5805
5806 fi
5807 if test -z "$ac_cv_prog_CC"; then
5808 ac_ct_CC=$CC
5809 # Extract the first word of "gcc", so it can be a program name with args.
5810 set dummy gcc; ac_word=$2
5811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812 printf %s "checking for $ac_word... " >&6; }
5813 if test ${ac_cv_prog_ac_ct_CC+y}
5814 then :
5815 printf %s "(cached) " >&6
5816 else case e in #(
5817 e) if test -n "$ac_ct_CC"; then
5818 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5819 else
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 for as_dir in $PATH
5822 do
5823 IFS=$as_save_IFS
5824 case $as_dir in #(((
5825 '') as_dir=./ ;;
5826 */) ;;
5827 *) as_dir=$as_dir/ ;;
5828 esac
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5831 ac_cv_prog_ac_ct_CC="gcc"
5832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5833 break 2
5834 fi
5835 done
5836 done
5837 IFS=$as_save_IFS
5838
5839 fi ;;
5840 esac
5841 fi
5842 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5843 if test -n "$ac_ct_CC"; then
5844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5845 printf "%s\n" "$ac_ct_CC" >&6; }
5846 else
5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848 printf "%s\n" "no" >&6; }
5849 fi
5850
5851 if test "x$ac_ct_CC" = x; then
5852 CC=""
5853 else
5854 case $cross_compiling:$ac_tool_warned in
5855 yes:)
5856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5857 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5858 ac_tool_warned=yes ;;
5859 esac
5860 CC=$ac_ct_CC
5861 fi
5862 else
5863 CC="$ac_cv_prog_CC"
5864 fi
5865
5866 if test -z "$CC"; then
5867 if test -n "$ac_tool_prefix"; then
5868 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5869 set dummy ${ac_tool_prefix}cc; ac_word=$2
5870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871 printf %s "checking for $ac_word... " >&6; }
5872 if test ${ac_cv_prog_CC+y}
5873 then :
5874 printf %s "(cached) " >&6
5875 else case e in #(
5876 e) if test -n "$CC"; then
5877 ac_cv_prog_CC="$CC" # Let the user override the test.
5878 else
5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880 for as_dir in $PATH
5881 do
5882 IFS=$as_save_IFS
5883 case $as_dir in #(((
5884 '') as_dir=./ ;;
5885 */) ;;
5886 *) as_dir=$as_dir/ ;;
5887 esac
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5890 ac_cv_prog_CC="${ac_tool_prefix}cc"
5891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5892 break 2
5893 fi
5894 done
5895 done
5896 IFS=$as_save_IFS
5897
5898 fi ;;
5899 esac
5900 fi
5901 CC=$ac_cv_prog_CC
5902 if test -n "$CC"; then
5903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5904 printf "%s\n" "$CC" >&6; }
5905 else
5906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907 printf "%s\n" "no" >&6; }
5908 fi
5909
5910
5911 fi
5912 fi
5913 if test -z "$CC"; then
5914 # Extract the first word of "cc", so it can be a program name with args.
5915 set dummy cc; ac_word=$2
5916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917 printf %s "checking for $ac_word... " >&6; }
5918 if test ${ac_cv_prog_CC+y}
5919 then :
5920 printf %s "(cached) " >&6
5921 else case e in #(
5922 e) if test -n "$CC"; then
5923 ac_cv_prog_CC="$CC" # Let the user override the test.
5924 else
5925 ac_prog_rejected=no
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 for as_dir in $PATH
5928 do
5929 IFS=$as_save_IFS
5930 case $as_dir in #(((
5931 '') as_dir=./ ;;
5932 */) ;;
5933 *) as_dir=$as_dir/ ;;
5934 esac
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5937 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5938 ac_prog_rejected=yes
5939 continue
5940 fi
5941 ac_cv_prog_CC="cc"
5942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5943 break 2
5944 fi
5945 done
5946 done
5947 IFS=$as_save_IFS
5948
5949 if test $ac_prog_rejected = yes; then
5950 # We found a bogon in the path, so make sure we never use it.
5951 set dummy $ac_cv_prog_CC
5952 shift
5953 if test $# != 0; then
5954 # We chose a different compiler from the bogus one.
5955 # However, it has the same basename, so the bogon will be chosen
5956 # first if we set CC to just the basename; use the full file name.
5957 shift
5958 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5959 fi
5960 fi
5961 fi ;;
5962 esac
5963 fi
5964 CC=$ac_cv_prog_CC
5965 if test -n "$CC"; then
5966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5967 printf "%s\n" "$CC" >&6; }
5968 else
5969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 printf "%s\n" "no" >&6; }
5971 fi
5972
5973
5974 fi
5975 if test -z "$CC"; then
5976 if test -n "$ac_tool_prefix"; then
5977 for ac_prog in cl.exe
5978 do
5979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5982 printf %s "checking for $ac_word... " >&6; }
5983 if test ${ac_cv_prog_CC+y}
5984 then :
5985 printf %s "(cached) " >&6
5986 else case e in #(
5987 e) if test -n "$CC"; then
5988 ac_cv_prog_CC="$CC" # Let the user override the test.
5989 else
5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 for as_dir in $PATH
5992 do
5993 IFS=$as_save_IFS
5994 case $as_dir in #(((
5995 '') as_dir=./ ;;
5996 */) ;;
5997 *) as_dir=$as_dir/ ;;
5998 esac
5999 for ac_exec_ext in '' $ac_executable_extensions; do
6000 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6001 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6003 break 2
6004 fi
6005 done
6006 done
6007 IFS=$as_save_IFS
6008
6009 fi ;;
6010 esac
6011 fi
6012 CC=$ac_cv_prog_CC
6013 if test -n "$CC"; then
6014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6015 printf "%s\n" "$CC" >&6; }
6016 else
6017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6018 printf "%s\n" "no" >&6; }
6019 fi
6020
6021
6022 test -n "$CC" && break
6023 done
6024 fi
6025 if test -z "$CC"; then
6026 ac_ct_CC=$CC
6027 for ac_prog in cl.exe
6028 do
6029 # Extract the first word of "$ac_prog", so it can be a program name with args.
6030 set dummy $ac_prog; ac_word=$2
6031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032 printf %s "checking for $ac_word... " >&6; }
6033 if test ${ac_cv_prog_ac_ct_CC+y}
6034 then :
6035 printf %s "(cached) " >&6
6036 else case e in #(
6037 e) if test -n "$ac_ct_CC"; then
6038 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6039 else
6040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041 for as_dir in $PATH
6042 do
6043 IFS=$as_save_IFS
6044 case $as_dir in #(((
6045 '') as_dir=./ ;;
6046 */) ;;
6047 *) as_dir=$as_dir/ ;;
6048 esac
6049 for ac_exec_ext in '' $ac_executable_extensions; do
6050 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6051 ac_cv_prog_ac_ct_CC="$ac_prog"
6052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6053 break 2
6054 fi
6055 done
6056 done
6057 IFS=$as_save_IFS
6058
6059 fi ;;
6060 esac
6061 fi
6062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6063 if test -n "$ac_ct_CC"; then
6064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6065 printf "%s\n" "$ac_ct_CC" >&6; }
6066 else
6067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068 printf "%s\n" "no" >&6; }
6069 fi
6070
6071
6072 test -n "$ac_ct_CC" && break
6073 done
6074
6075 if test "x$ac_ct_CC" = x; then
6076 CC=""
6077 else
6078 case $cross_compiling:$ac_tool_warned in
6079 yes:)
6080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6081 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6082 ac_tool_warned=yes ;;
6083 esac
6084 CC=$ac_ct_CC
6085 fi
6086 fi
6087
6088 fi
6089 if test -z "$CC"; then
6090 if test -n "$ac_tool_prefix"; then
6091 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
6092 set dummy ${ac_tool_prefix}clang; ac_word=$2
6093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6094 printf %s "checking for $ac_word... " >&6; }
6095 if test ${ac_cv_prog_CC+y}
6096 then :
6097 printf %s "(cached) " >&6
6098 else case e in #(
6099 e) if test -n "$CC"; then
6100 ac_cv_prog_CC="$CC" # Let the user override the test.
6101 else
6102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 for as_dir in $PATH
6104 do
6105 IFS=$as_save_IFS
6106 case $as_dir in #(((
6107 '') as_dir=./ ;;
6108 */) ;;
6109 *) as_dir=$as_dir/ ;;
6110 esac
6111 for ac_exec_ext in '' $ac_executable_extensions; do
6112 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6113 ac_cv_prog_CC="${ac_tool_prefix}clang"
6114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6115 break 2
6116 fi
6117 done
6118 done
6119 IFS=$as_save_IFS
6120
6121 fi ;;
6122 esac
6123 fi
6124 CC=$ac_cv_prog_CC
6125 if test -n "$CC"; then
6126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6127 printf "%s\n" "$CC" >&6; }
6128 else
6129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6130 printf "%s\n" "no" >&6; }
6131 fi
6132
6133
6134 fi
6135 if test -z "$ac_cv_prog_CC"; then
6136 ac_ct_CC=$CC
6137 # Extract the first word of "clang", so it can be a program name with args.
6138 set dummy clang; ac_word=$2
6139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140 printf %s "checking for $ac_word... " >&6; }
6141 if test ${ac_cv_prog_ac_ct_CC+y}
6142 then :
6143 printf %s "(cached) " >&6
6144 else case e in #(
6145 e) if test -n "$ac_ct_CC"; then
6146 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6147 else
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 for as_dir in $PATH
6150 do
6151 IFS=$as_save_IFS
6152 case $as_dir in #(((
6153 '') as_dir=./ ;;
6154 */) ;;
6155 *) as_dir=$as_dir/ ;;
6156 esac
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6159 ac_cv_prog_ac_ct_CC="clang"
6160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6161 break 2
6162 fi
6163 done
6164 done
6165 IFS=$as_save_IFS
6166
6167 fi ;;
6168 esac
6169 fi
6170 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6171 if test -n "$ac_ct_CC"; then
6172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6173 printf "%s\n" "$ac_ct_CC" >&6; }
6174 else
6175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176 printf "%s\n" "no" >&6; }
6177 fi
6178
6179 if test "x$ac_ct_CC" = x; then
6180 CC=""
6181 else
6182 case $cross_compiling:$ac_tool_warned in
6183 yes:)
6184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6185 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6186 ac_tool_warned=yes ;;
6187 esac
6188 CC=$ac_ct_CC
6189 fi
6190 else
6191 CC="$ac_cv_prog_CC"
6192 fi
6193
6194 fi
6195
6196
6197 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6198 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6199 as_fn_error $? "no acceptable C compiler found in \$PATH
6200 See 'config.log' for more details" "$LINENO" 5; }
6201
6202 # Provide some information about the compiler.
6203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6204 set X $ac_compile
6205 ac_compiler=$2
6206 for ac_option in --version -v -V -qversion -version; do
6207 { { ac_try="$ac_compiler $ac_option >&5"
6208 case "(($ac_try" in
6209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210 *) ac_try_echo=$ac_try;;
6211 esac
6212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6213 printf "%s\n" "$ac_try_echo"; } >&5
6214 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6215 ac_status=$?
6216 if test -s conftest.err; then
6217 sed '10a\
6218 ... rest of stderr output deleted ...
6219 10q' conftest.err >conftest.er1
6220 cat conftest.er1 >&5
6221 fi
6222 rm -f conftest.er1 conftest.err
6223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6224 test $ac_status = 0; }
6225 done
6226
6227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
6228 printf %s "checking whether the compiler supports GNU C... " >&6; }
6229 if test ${ac_cv_c_compiler_gnu+y}
6230 then :
6231 printf %s "(cached) " >&6
6232 else case e in #(
6233 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6234 /* end confdefs.h. */
6235
6236 int
6237 main (void)
6238 {
6239 #ifndef __GNUC__
6240 choke me
6241 #endif
6242
6243 ;
6244 return 0;
6245 }
6246 _ACEOF
6247 if ac_fn_c_try_compile "$LINENO"
6248 then :
6249 ac_compiler_gnu=yes
6250 else case e in #(
6251 e) ac_compiler_gnu=no ;;
6252 esac
6253 fi
6254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6255 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6256 ;;
6257 esac
6258 fi
6259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6260 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
6261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6262
6263 if test $ac_compiler_gnu = yes; then
6264 GCC=yes
6265 else
6266 GCC=
6267 fi
6268 ac_test_CFLAGS=${CFLAGS+y}
6269 ac_save_CFLAGS=$CFLAGS
6270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6271 printf %s "checking whether $CC accepts -g... " >&6; }
6272 if test ${ac_cv_prog_cc_g+y}
6273 then :
6274 printf %s "(cached) " >&6
6275 else case e in #(
6276 e) ac_save_c_werror_flag=$ac_c_werror_flag
6277 ac_c_werror_flag=yes
6278 ac_cv_prog_cc_g=no
6279 CFLAGS="-g"
6280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h. */
6282
6283 int
6284 main (void)
6285 {
6286
6287 ;
6288 return 0;
6289 }
6290 _ACEOF
6291 if ac_fn_c_try_compile "$LINENO"
6292 then :
6293 ac_cv_prog_cc_g=yes
6294 else case e in #(
6295 e) CFLAGS=""
6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h. */
6298
6299 int
6300 main (void)
6301 {
6302
6303 ;
6304 return 0;
6305 }
6306 _ACEOF
6307 if ac_fn_c_try_compile "$LINENO"
6308 then :
6309
6310 else case e in #(
6311 e) ac_c_werror_flag=$ac_save_c_werror_flag
6312 CFLAGS="-g"
6313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6314 /* end confdefs.h. */
6315
6316 int
6317 main (void)
6318 {
6319
6320 ;
6321 return 0;
6322 }
6323 _ACEOF
6324 if ac_fn_c_try_compile "$LINENO"
6325 then :
6326 ac_cv_prog_cc_g=yes
6327 fi
6328 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6329 esac
6330 fi
6331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6332 esac
6333 fi
6334 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6335 ac_c_werror_flag=$ac_save_c_werror_flag ;;
6336 esac
6337 fi
6338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6339 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
6340 if test $ac_test_CFLAGS; then
6341 CFLAGS=$ac_save_CFLAGS
6342 elif test $ac_cv_prog_cc_g = yes; then
6343 if test "$GCC" = yes; then
6344 CFLAGS="-g -O2"
6345 else
6346 CFLAGS="-g"
6347 fi
6348 else
6349 if test "$GCC" = yes; then
6350 CFLAGS="-O2"
6351 else
6352 CFLAGS=
6353 fi
6354 fi
6355 ac_prog_cc_stdc=no
6356 if test x$ac_prog_cc_stdc = xno
6357 then :
6358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
6359 printf %s "checking for $CC option to enable C11 features... " >&6; }
6360 if test ${ac_cv_prog_cc_c11+y}
6361 then :
6362 printf %s "(cached) " >&6
6363 else case e in #(
6364 e) ac_cv_prog_cc_c11=no
6365 ac_save_CC=$CC
6366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367 /* end confdefs.h. */
6368 $ac_c_conftest_c11_program
6369 _ACEOF
6370 for ac_arg in '' -std=gnu11
6371 do
6372 CC="$ac_save_CC $ac_arg"
6373 if ac_fn_c_try_compile "$LINENO"
6374 then :
6375 ac_cv_prog_cc_c11=$ac_arg
6376 fi
6377 rm -f core conftest.err conftest.$ac_objext conftest.beam
6378 test "x$ac_cv_prog_cc_c11" != "xno" && break
6379 done
6380 rm -f conftest.$ac_ext
6381 CC=$ac_save_CC ;;
6382 esac
6383 fi
6384
6385 if test "x$ac_cv_prog_cc_c11" = xno
6386 then :
6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6388 printf "%s\n" "unsupported" >&6; }
6389 else case e in #(
6390 e) if test "x$ac_cv_prog_cc_c11" = x
6391 then :
6392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6393 printf "%s\n" "none needed" >&6; }
6394 else case e in #(
6395 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
6396 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
6397 CC="$CC $ac_cv_prog_cc_c11" ;;
6398 esac
6399 fi
6400 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
6401 ac_prog_cc_stdc=c11 ;;
6402 esac
6403 fi
6404 fi
6405 if test x$ac_prog_cc_stdc = xno
6406 then :
6407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
6408 printf %s "checking for $CC option to enable C99 features... " >&6; }
6409 if test ${ac_cv_prog_cc_c99+y}
6410 then :
6411 printf %s "(cached) " >&6
6412 else case e in #(
6413 e) ac_cv_prog_cc_c99=no
6414 ac_save_CC=$CC
6415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h. */
6417 $ac_c_conftest_c99_program
6418 _ACEOF
6419 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
6420 do
6421 CC="$ac_save_CC $ac_arg"
6422 if ac_fn_c_try_compile "$LINENO"
6423 then :
6424 ac_cv_prog_cc_c99=$ac_arg
6425 fi
6426 rm -f core conftest.err conftest.$ac_objext conftest.beam
6427 test "x$ac_cv_prog_cc_c99" != "xno" && break
6428 done
6429 rm -f conftest.$ac_ext
6430 CC=$ac_save_CC ;;
6431 esac
6432 fi
6433
6434 if test "x$ac_cv_prog_cc_c99" = xno
6435 then :
6436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6437 printf "%s\n" "unsupported" >&6; }
6438 else case e in #(
6439 e) if test "x$ac_cv_prog_cc_c99" = x
6440 then :
6441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6442 printf "%s\n" "none needed" >&6; }
6443 else case e in #(
6444 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6445 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
6446 CC="$CC $ac_cv_prog_cc_c99" ;;
6447 esac
6448 fi
6449 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6450 ac_prog_cc_stdc=c99 ;;
6451 esac
6452 fi
6453 fi
6454 if test x$ac_prog_cc_stdc = xno
6455 then :
6456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6457 printf %s "checking for $CC option to enable C89 features... " >&6; }
6458 if test ${ac_cv_prog_cc_c89+y}
6459 then :
6460 printf %s "(cached) " >&6
6461 else case e in #(
6462 e) ac_cv_prog_cc_c89=no
6463 ac_save_CC=$CC
6464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465 /* end confdefs.h. */
6466 $ac_c_conftest_c89_program
6467 _ACEOF
6468 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6469 do
6470 CC="$ac_save_CC $ac_arg"
6471 if ac_fn_c_try_compile "$LINENO"
6472 then :
6473 ac_cv_prog_cc_c89=$ac_arg
6474 fi
6475 rm -f core conftest.err conftest.$ac_objext conftest.beam
6476 test "x$ac_cv_prog_cc_c89" != "xno" && break
6477 done
6478 rm -f conftest.$ac_ext
6479 CC=$ac_save_CC ;;
6480 esac
6481 fi
6482
6483 if test "x$ac_cv_prog_cc_c89" = xno
6484 then :
6485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6486 printf "%s\n" "unsupported" >&6; }
6487 else case e in #(
6488 e) if test "x$ac_cv_prog_cc_c89" = x
6489 then :
6490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6491 printf "%s\n" "none needed" >&6; }
6492 else case e in #(
6493 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6494 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6495 CC="$CC $ac_cv_prog_cc_c89" ;;
6496 esac
6497 fi
6498 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6499 ac_prog_cc_stdc=c89 ;;
6500 esac
6501 fi
6502 fi
6503
6504 ac_ext=c
6505 ac_cpp='$CPP $CPPFLAGS'
6506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6509
6510
6511 ac_ext=c
6512 ac_cpp='$CPP $CPPFLAGS'
6513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6517 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6518 if test ${am_cv_prog_cc_c_o+y}
6519 then :
6520 printf %s "(cached) " >&6
6521 else case e in #(
6522 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6524
6525 int
6526 main (void)
6527 {
6528
6529 ;
6530 return 0;
6531 }
6532 _ACEOF
6533 # Make sure it works both with $CC and with simple cc.
6534 # Following AC_PROG_CC_C_O, we do the test twice because some
6535 # compilers refuse to overwrite an existing .o file with -o,
6536 # though they will create one.
6537 am_cv_prog_cc_c_o=yes
6538 for am_i in 1 2; do
6539 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6540 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6541 ac_status=$?
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } \
6544 && test -f conftest2.$ac_objext; then
6545 : OK
6546 else
6547 am_cv_prog_cc_c_o=no
6548 break
6549 fi
6550 done
6551 # aligned with autoconf, so not including core; see bug#72225.
6552 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
6553 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
6554 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
6555 unset am_i ;;
6556 esac
6557 fi
6558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6559 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6560 if test "$am_cv_prog_cc_c_o" != yes; then
6561 # Losing compiler, so override with the script.
6562 # FIXME: It is wrong to rewrite CC.
6563 # But if we don't then we get into trouble of one sort or another.
6564 # A longer-term fix would be to have automake use am__CC in this case,
6565 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6566 CC="$am_aux_dir/compile $CC"
6567 fi
6568 ac_ext=c
6569 ac_cpp='$CPP $CPPFLAGS'
6570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6573
6574
6575 depcc="$CC" am_compiler_list=
6576
6577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6578 printf %s "checking dependency style of $depcc... " >&6; }
6579 if test ${am_cv_CC_dependencies_compiler_type+y}
6580 then :
6581 printf %s "(cached) " >&6
6582 else case e in #(
6583 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6584 # We make a subdir and do the tests there. Otherwise we can end up
6585 # making bogus files that we don't know about and never remove. For
6586 # instance it was reported that on HP-UX the gcc test will end up
6587 # making a dummy file named 'D' -- because '-MD' means "put the output
6588 # in D".
6589 rm -rf conftest.dir
6590 mkdir conftest.dir
6591 # Copy depcomp to subdir because otherwise we won't find it if we're
6592 # using a relative directory.
6593 cp "$am_depcomp" conftest.dir
6594 cd conftest.dir
6595 # We will build objects and dependencies in a subdirectory because
6596 # it helps to detect inapplicable dependency modes. For instance
6597 # both Tru64's cc and ICC support -MD to output dependencies as a
6598 # side effect of compilation, but ICC will put the dependencies in
6599 # the current directory while Tru64 will put them in the object
6600 # directory.
6601 mkdir sub
6602
6603 am_cv_CC_dependencies_compiler_type=none
6604 if test "$am_compiler_list" = ""; then
6605 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6606 fi
6607 am__universal=false
6608 case " $depcc " in #(
6609 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6610 esac
6611
6612 for depmode in $am_compiler_list; do
6613 # Setup a source with many dependencies, because some compilers
6614 # like to wrap large dependency lists on column 80 (with \), and
6615 # we should not choose a depcomp mode which is confused by this.
6616 #
6617 # We need to recreate these files for each test, as the compiler may
6618 # overwrite some of them when testing with obscure command lines.
6619 # This happens at least with the AIX C compiler.
6620 : > sub/conftest.c
6621 for i in 1 2 3 4 5 6; do
6622 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6623 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6624 # Solaris 10 /bin/sh.
6625 echo '/* dummy */' > sub/conftst$i.h
6626 done
6627 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6628
6629 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6630 # mode. It turns out that the SunPro C++ compiler does not properly
6631 # handle '-M -o', and we need to detect this. Also, some Intel
6632 # versions had trouble with output in subdirs.
6633 am__obj=sub/conftest.${OBJEXT-o}
6634 am__minus_obj="-o $am__obj"
6635 case $depmode in
6636 gcc)
6637 # This depmode causes a compiler race in universal mode.
6638 test "$am__universal" = false || continue
6639 ;;
6640 nosideeffect)
6641 # After this tag, mechanisms are not by side-effect, so they'll
6642 # only be used when explicitly requested.
6643 if test "x$enable_dependency_tracking" = xyes; then
6644 continue
6645 else
6646 break
6647 fi
6648 ;;
6649 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6650 # This compiler won't grok '-c -o', but also, the minuso test has
6651 # not run yet. These depmodes are late enough in the game, and
6652 # so weak that their functioning should not be impacted.
6653 am__obj=conftest.${OBJEXT-o}
6654 am__minus_obj=
6655 ;;
6656 none) break ;;
6657 esac
6658 if depmode=$depmode \
6659 source=sub/conftest.c object=$am__obj \
6660 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6661 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6662 >/dev/null 2>conftest.err &&
6663 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6664 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6665 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6666 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6667 # icc doesn't choke on unknown options, it will just issue warnings
6668 # or remarks (even with -Werror). So we grep stderr for any message
6669 # that says an option was ignored or not supported.
6670 # When given -MP, icc 7.0 and 7.1 complain thus:
6671 # icc: Command line warning: ignoring option '-M'; no argument required
6672 # The diagnosis changed in icc 8.0:
6673 # icc: Command line remark: option '-MP' not supported
6674 if (grep 'ignoring option' conftest.err ||
6675 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6676 am_cv_CC_dependencies_compiler_type=$depmode
6677 break
6678 fi
6679 fi
6680 done
6681
6682 cd ..
6683 rm -rf conftest.dir
6684 else
6685 am_cv_CC_dependencies_compiler_type=none
6686 fi
6687 ;;
6688 esac
6689 fi
6690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6691 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6692 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6693
6694 if
6695 test "x$enable_dependency_tracking" != xno \
6696 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6697 am__fastdepCC_TRUE=
6698 am__fastdepCC_FALSE='#'
6699 else
6700 am__fastdepCC_TRUE='#'
6701 am__fastdepCC_FALSE=
6702 fi
6703
6704
6705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6706 printf %s "checking for inline... " >&6; }
6707 if test ${ac_cv_c_inline+y}
6708 then :
6709 printf %s "(cached) " >&6
6710 else case e in #(
6711 e) ac_cv_c_inline=no
6712 for ac_kw in inline __inline__ __inline; do
6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h. */
6715 #ifndef __cplusplus
6716 typedef int foo_t;
6717 static $ac_kw foo_t static_foo (void) {return 0; }
6718 $ac_kw foo_t foo (void) {return 0; }
6719 #endif
6720
6721 _ACEOF
6722 if ac_fn_c_try_compile "$LINENO"
6723 then :
6724 ac_cv_c_inline=$ac_kw
6725 fi
6726 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6727 test "$ac_cv_c_inline" != no && break
6728 done
6729 ;;
6730 esac
6731 fi
6732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6733 printf "%s\n" "$ac_cv_c_inline" >&6; }
6734
6735 case $ac_cv_c_inline in
6736 inline | yes) ;;
6737 *)
6738 case $ac_cv_c_inline in
6739 no) ac_val=;;
6740 *) ac_val=$ac_cv_c_inline;;
6741 esac
6742 cat >>confdefs.h <<_ACEOF
6743 #ifndef __cplusplus
6744 #define inline $ac_val
6745 #endif
6746 _ACEOF
6747 ;;
6748 esac
6749
6750
6751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6752 printf %s "checking for grep that handles long lines and -e... " >&6; }
6753 if test ${ac_cv_path_GREP+y}
6754 then :
6755 printf %s "(cached) " >&6
6756 else case e in #(
6757 e) if test -z "$GREP"; then
6758 ac_path_GREP_found=false
6759 # Loop through the user's path and test for each of PROGNAME-LIST
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6762 do
6763 IFS=$as_save_IFS
6764 case $as_dir in #(((
6765 '') as_dir=./ ;;
6766 */) ;;
6767 *) as_dir=$as_dir/ ;;
6768 esac
6769 for ac_prog in grep ggrep
6770 do
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6773 as_fn_executable_p "$ac_path_GREP" || continue
6774 # Check for GNU ac_path_GREP and select it if it is found.
6775 # Check for GNU $ac_path_GREP
6776 case `"$ac_path_GREP" --version 2>&1` in #(
6777 *GNU*)
6778 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6779 #(
6780 *)
6781 ac_count=0
6782 printf %s 0123456789 >"conftest.in"
6783 while :
6784 do
6785 cat "conftest.in" "conftest.in" >"conftest.tmp"
6786 mv "conftest.tmp" "conftest.in"
6787 cp "conftest.in" "conftest.nl"
6788 printf "%s\n" 'GREP' >> "conftest.nl"
6789 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6790 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6791 as_fn_arith $ac_count + 1 && ac_count=$as_val
6792 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6793 # Best one so far, save it but keep looking for a better one
6794 ac_cv_path_GREP="$ac_path_GREP"
6795 ac_path_GREP_max=$ac_count
6796 fi
6797 # 10*(2^10) chars as input seems more than enough
6798 test $ac_count -gt 10 && break
6799 done
6800 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6801 esac
6802
6803 $ac_path_GREP_found && break 3
6804 done
6805 done
6806 done
6807 IFS=$as_save_IFS
6808 if test -z "$ac_cv_path_GREP"; then
6809 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6810 fi
6811 else
6812 ac_cv_path_GREP=$GREP
6813 fi
6814 ;;
6815 esac
6816 fi
6817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6818 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6819 GREP="$ac_cv_path_GREP"
6820
6821
6822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6823 printf %s "checking for egrep... " >&6; }
6824 if test ${ac_cv_path_EGREP+y}
6825 then :
6826 printf %s "(cached) " >&6
6827 else case e in #(
6828 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6829 then ac_cv_path_EGREP="$GREP -E"
6830 else
6831 if test -z "$EGREP"; then
6832 ac_path_EGREP_found=false
6833 # Loop through the user's path and test for each of PROGNAME-LIST
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6836 do
6837 IFS=$as_save_IFS
6838 case $as_dir in #(((
6839 '') as_dir=./ ;;
6840 */) ;;
6841 *) as_dir=$as_dir/ ;;
6842 esac
6843 for ac_prog in egrep
6844 do
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6847 as_fn_executable_p "$ac_path_EGREP" || continue
6848 # Check for GNU ac_path_EGREP and select it if it is found.
6849 # Check for GNU $ac_path_EGREP
6850 case `"$ac_path_EGREP" --version 2>&1` in #(
6851 *GNU*)
6852 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6853 #(
6854 *)
6855 ac_count=0
6856 printf %s 0123456789 >"conftest.in"
6857 while :
6858 do
6859 cat "conftest.in" "conftest.in" >"conftest.tmp"
6860 mv "conftest.tmp" "conftest.in"
6861 cp "conftest.in" "conftest.nl"
6862 printf "%s\n" 'EGREP' >> "conftest.nl"
6863 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6864 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6865 as_fn_arith $ac_count + 1 && ac_count=$as_val
6866 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6867 # Best one so far, save it but keep looking for a better one
6868 ac_cv_path_EGREP="$ac_path_EGREP"
6869 ac_path_EGREP_max=$ac_count
6870 fi
6871 # 10*(2^10) chars as input seems more than enough
6872 test $ac_count -gt 10 && break
6873 done
6874 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6875 esac
6876
6877 $ac_path_EGREP_found && break 3
6878 done
6879 done
6880 done
6881 IFS=$as_save_IFS
6882 if test -z "$ac_cv_path_EGREP"; then
6883 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6884 fi
6885 else
6886 ac_cv_path_EGREP=$EGREP
6887 fi
6888
6889 fi ;;
6890 esac
6891 fi
6892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6893 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6894 EGREP="$ac_cv_path_EGREP"
6895
6896 EGREP_TRADITIONAL=$EGREP
6897 ac_cv_path_EGREP_TRADITIONAL=$EGREP
6898
6899
6900
6901
6902
6903
6904
6905
6906 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6907 if test -n "$ac_tool_prefix"; then
6908 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6909 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6911 printf %s "checking for $ac_word... " >&6; }
6912 if test ${ac_cv_path_PKG_CONFIG+y}
6913 then :
6914 printf %s "(cached) " >&6
6915 else case e in #(
6916 e) case $PKG_CONFIG in
6917 [\\/]* | ?:[\\/]*)
6918 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6919 ;;
6920 *)
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 for as_dir in $PATH
6923 do
6924 IFS=$as_save_IFS
6925 case $as_dir in #(((
6926 '') as_dir=./ ;;
6927 */) ;;
6928 *) as_dir=$as_dir/ ;;
6929 esac
6930 for ac_exec_ext in '' $ac_executable_extensions; do
6931 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6932 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6934 break 2
6935 fi
6936 done
6937 done
6938 IFS=$as_save_IFS
6939
6940 ;;
6941 esac ;;
6942 esac
6943 fi
6944 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6945 if test -n "$PKG_CONFIG"; then
6946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6947 printf "%s\n" "$PKG_CONFIG" >&6; }
6948 else
6949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6950 printf "%s\n" "no" >&6; }
6951 fi
6952
6953
6954 fi
6955 if test -z "$ac_cv_path_PKG_CONFIG"; then
6956 ac_pt_PKG_CONFIG=$PKG_CONFIG
6957 # Extract the first word of "pkg-config", so it can be a program name with args.
6958 set dummy pkg-config; ac_word=$2
6959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6960 printf %s "checking for $ac_word... " >&6; }
6961 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6962 then :
6963 printf %s "(cached) " >&6
6964 else case e in #(
6965 e) case $ac_pt_PKG_CONFIG in
6966 [\\/]* | ?:[\\/]*)
6967 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6968 ;;
6969 *)
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH
6972 do
6973 IFS=$as_save_IFS
6974 case $as_dir in #(((
6975 '') as_dir=./ ;;
6976 */) ;;
6977 *) as_dir=$as_dir/ ;;
6978 esac
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6981 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6983 break 2
6984 fi
6985 done
6986 done
6987 IFS=$as_save_IFS
6988
6989 ;;
6990 esac ;;
6991 esac
6992 fi
6993 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6994 if test -n "$ac_pt_PKG_CONFIG"; then
6995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6996 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6997 else
6998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6999 printf "%s\n" "no" >&6; }
7000 fi
7001
7002 if test "x$ac_pt_PKG_CONFIG" = x; then
7003 PKG_CONFIG=""
7004 else
7005 case $cross_compiling:$ac_tool_warned in
7006 yes:)
7007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7008 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7009 ac_tool_warned=yes ;;
7010 esac
7011 PKG_CONFIG=$ac_pt_PKG_CONFIG
7012 fi
7013 else
7014 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7015 fi
7016
7017 fi
7018 if test -n "$PKG_CONFIG"; then
7019 _pkg_min_version=0.9.0
7020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7021 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7022 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7024 printf "%s\n" "yes" >&6; }
7025 else
7026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7027 printf "%s\n" "no" >&6; }
7028 PKG_CONFIG=""
7029 fi
7030 fi
7031 for ac_prog in 'bison -y' byacc
7032 do
7033 # Extract the first word of "$ac_prog", so it can be a program name with args.
7034 set dummy $ac_prog; ac_word=$2
7035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7036 printf %s "checking for $ac_word... " >&6; }
7037 if test ${ac_cv_prog_YACC+y}
7038 then :
7039 printf %s "(cached) " >&6
7040 else case e in #(
7041 e) if test -n "$YACC"; then
7042 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7043 else
7044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 for as_dir in $PATH
7046 do
7047 IFS=$as_save_IFS
7048 case $as_dir in #(((
7049 '') as_dir=./ ;;
7050 */) ;;
7051 *) as_dir=$as_dir/ ;;
7052 esac
7053 for ac_exec_ext in '' $ac_executable_extensions; do
7054 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7055 ac_cv_prog_YACC="$ac_prog"
7056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7057 break 2
7058 fi
7059 done
7060 done
7061 IFS=$as_save_IFS
7062
7063 fi ;;
7064 esac
7065 fi
7066 YACC=$ac_cv_prog_YACC
7067 if test -n "$YACC"; then
7068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7069 printf "%s\n" "$YACC" >&6; }
7070 else
7071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072 printf "%s\n" "no" >&6; }
7073 fi
7074
7075
7076 test -n "$YACC" && break
7077 done
7078 test -n "$YACC" || YACC="yacc"
7079
7080
7081 LT_INIT
7082
7083 # Extract the first word of "cat", so it can be a program name with args.
7084 set dummy cat; ac_word=$2
7085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086 printf %s "checking for $ac_word... " >&6; }
7087 if test ${ac_cv_path_CAT+y}
7088 then :
7089 printf %s "(cached) " >&6
7090 else case e in #(
7091 e) case $CAT in
7092 [\\/]* | ?:[\\/]*)
7093 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7094 ;;
7095 *)
7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 for as_dir in $PATH
7098 do
7099 IFS=$as_save_IFS
7100 case $as_dir in #(((
7101 '') as_dir=./ ;;
7102 */) ;;
7103 *) as_dir=$as_dir/ ;;
7104 esac
7105 for ac_exec_ext in '' $ac_executable_extensions; do
7106 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7107 ac_cv_path_CAT="$as_dir$ac_word$ac_exec_ext"
7108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7109 break 2
7110 fi
7111 done
7112 done
7113 IFS=$as_save_IFS
7114
7115 ;;
7116 esac ;;
7117 esac
7118 fi
7119 CAT=$ac_cv_path_CAT
7120 if test -n "$CAT"; then
7121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
7122 printf "%s\n" "$CAT" >&6; }
7123 else
7124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125 printf "%s\n" "no" >&6; }
7126 fi
7127
7128
7129 # Extract the first word of "chmod", so it can be a program name with args.
7130 set dummy chmod; ac_word=$2
7131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132 printf %s "checking for $ac_word... " >&6; }
7133 if test ${ac_cv_path_CHMOD+y}
7134 then :
7135 printf %s "(cached) " >&6
7136 else case e in #(
7137 e) case $CHMOD in
7138 [\\/]* | ?:[\\/]*)
7139 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
7140 ;;
7141 *)
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 for as_dir in $PATH
7144 do
7145 IFS=$as_save_IFS
7146 case $as_dir in #(((
7147 '') as_dir=./ ;;
7148 */) ;;
7149 *) as_dir=$as_dir/ ;;
7150 esac
7151 for ac_exec_ext in '' $ac_executable_extensions; do
7152 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7153 ac_cv_path_CHMOD="$as_dir$ac_word$ac_exec_ext"
7154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7155 break 2
7156 fi
7157 done
7158 done
7159 IFS=$as_save_IFS
7160
7161 ;;
7162 esac ;;
7163 esac
7164 fi
7165 CHMOD=$ac_cv_path_CHMOD
7166 if test -n "$CHMOD"; then
7167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
7168 printf "%s\n" "$CHMOD" >&6; }
7169 else
7170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171 printf "%s\n" "no" >&6; }
7172 fi
7173
7174
7175 # Extract the first word of "chown", so it can be a program name with args.
7176 set dummy chown; ac_word=$2
7177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7178 printf %s "checking for $ac_word... " >&6; }
7179 if test ${ac_cv_path_CHOWN+y}
7180 then :
7181 printf %s "(cached) " >&6
7182 else case e in #(
7183 e) case $CHOWN in
7184 [\\/]* | ?:[\\/]*)
7185 ac_cv_path_CHOWN="$CHOWN" # Let the user override the test with a path.
7186 ;;
7187 *)
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 for as_dir in $PATH
7190 do
7191 IFS=$as_save_IFS
7192 case $as_dir in #(((
7193 '') as_dir=./ ;;
7194 */) ;;
7195 *) as_dir=$as_dir/ ;;
7196 esac
7197 for ac_exec_ext in '' $ac_executable_extensions; do
7198 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7199 ac_cv_path_CHOWN="$as_dir$ac_word$ac_exec_ext"
7200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7201 break 2
7202 fi
7203 done
7204 done
7205 IFS=$as_save_IFS
7206
7207 ;;
7208 esac ;;
7209 esac
7210 fi
7211 CHOWN=$ac_cv_path_CHOWN
7212 if test -n "$CHOWN"; then
7213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHOWN" >&5
7214 printf "%s\n" "$CHOWN" >&6; }
7215 else
7216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217 printf "%s\n" "no" >&6; }
7218 fi
7219
7220
7221 # Extract the first word of "zcat", so it can be a program name with args.
7222 set dummy zcat; ac_word=$2
7223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7224 printf %s "checking for $ac_word... " >&6; }
7225 if test ${ac_cv_path_ZCAT+y}
7226 then :
7227 printf %s "(cached) " >&6
7228 else case e in #(
7229 e) case $ZCAT in
7230 [\\/]* | ?:[\\/]*)
7231 ac_cv_path_ZCAT="$ZCAT" # Let the user override the test with a path.
7232 ;;
7233 *)
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 for as_dir in $PATH
7236 do
7237 IFS=$as_save_IFS
7238 case $as_dir in #(((
7239 '') as_dir=./ ;;
7240 */) ;;
7241 *) as_dir=$as_dir/ ;;
7242 esac
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7245 ac_cv_path_ZCAT="$as_dir$ac_word$ac_exec_ext"
7246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7247 break 2
7248 fi
7249 done
7250 done
7251 IFS=$as_save_IFS
7252
7253 ;;
7254 esac ;;
7255 esac
7256 fi
7257 ZCAT=$ac_cv_path_ZCAT
7258 if test -n "$ZCAT"; then
7259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ZCAT" >&5
7260 printf "%s\n" "$ZCAT" >&6; }
7261 else
7262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7263 printf "%s\n" "no" >&6; }
7264 fi
7265
7266
7267 # Extract the first word of "sed", so it can be a program name with args.
7268 set dummy sed; ac_word=$2
7269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7270 printf %s "checking for $ac_word... " >&6; }
7271 if test ${ac_cv_path_SED+y}
7272 then :
7273 printf %s "(cached) " >&6
7274 else case e in #(
7275 e) case $SED in
7276 [\\/]* | ?:[\\/]*)
7277 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7278 ;;
7279 *)
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 for as_dir in $PATH
7282 do
7283 IFS=$as_save_IFS
7284 case $as_dir in #(((
7285 '') as_dir=./ ;;
7286 */) ;;
7287 *) as_dir=$as_dir/ ;;
7288 esac
7289 for ac_exec_ext in '' $ac_executable_extensions; do
7290 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7291 ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
7292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7293 break 2
7294 fi
7295 done
7296 done
7297 IFS=$as_save_IFS
7298
7299 ;;
7300 esac ;;
7301 esac
7302 fi
7303 SED=$ac_cv_path_SED
7304 if test -n "$SED"; then
7305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
7306 printf "%s\n" "$SED" >&6; }
7307 else
7308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309 printf "%s\n" "no" >&6; }
7310 fi
7311
7312
7313
7314 # use libbsd by default; these needs to precede any other check, as we
7315 # might not need a compat function when using libbsd.
7316
7317 # Check whether --with-libbsd was given.
7318 if test ${with_libbsd+y}
7319 then :
7320 withval=$with_libbsd;
7321 fi
7322
7323 if test "x$with_libbsd" != xno
7324 then :
7325
7326
7327 pkg_failed=no
7328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbsd-overlay libbsd-ctor" >&5
7329 printf %s "checking for libbsd-overlay libbsd-ctor... " >&6; }
7330
7331 if test -n "$LIBBSD_CFLAGS"; then
7332 pkg_cv_LIBBSD_CFLAGS="$LIBBSD_CFLAGS"
7333 elif test -n "$PKG_CONFIG"; then
7334 if test -n "$PKG_CONFIG" && \
7335 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay libbsd-ctor\""; } >&5
7336 ($PKG_CONFIG --exists --print-errors "libbsd-overlay libbsd-ctor") 2>&5
7337 ac_status=$?
7338 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7339 test $ac_status = 0; }; then
7340 pkg_cv_LIBBSD_CFLAGS=`$PKG_CONFIG --cflags "libbsd-overlay libbsd-ctor" 2>/dev/null`
7341 test "x$?" != "x0" && pkg_failed=yes
7342 else
7343 pkg_failed=yes
7344 fi
7345 else
7346 pkg_failed=untried
7347 fi
7348 if test -n "$LIBBSD_LIBS"; then
7349 pkg_cv_LIBBSD_LIBS="$LIBBSD_LIBS"
7350 elif test -n "$PKG_CONFIG"; then
7351 if test -n "$PKG_CONFIG" && \
7352 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay libbsd-ctor\""; } >&5
7353 ($PKG_CONFIG --exists --print-errors "libbsd-overlay libbsd-ctor") 2>&5
7354 ac_status=$?
7355 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7356 test $ac_status = 0; }; then
7357 pkg_cv_LIBBSD_LIBS=`$PKG_CONFIG --libs "libbsd-overlay libbsd-ctor" 2>/dev/null`
7358 test "x$?" != "x0" && pkg_failed=yes
7359 else
7360 pkg_failed=yes
7361 fi
7362 else
7363 pkg_failed=untried
7364 fi
7365
7366
7367
7368 if test $pkg_failed = yes; then
7369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370 printf "%s\n" "no" >&6; }
7371
7372 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7373 _pkg_short_errors_supported=yes
7374 else
7375 _pkg_short_errors_supported=no
7376 fi
7377 if test $_pkg_short_errors_supported = yes; then
7378 LIBBSD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbsd-overlay libbsd-ctor" 2>&1`
7379 else
7380 LIBBSD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbsd-overlay libbsd-ctor" 2>&1`
7381 fi
7382 # Put the nasty error message in config.log where it belongs
7383 echo "$LIBBSD_PKG_ERRORS" >&5
7384
7385 if test "x$with_libbsd" = "xyes"
7386 then :
7387
7388 as_fn_error $? "libbsd requested but not found" "$LINENO" 5
7389
7390 fi
7391 elif test $pkg_failed = untried; then
7392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393 printf "%s\n" "no" >&6; }
7394 if test "x$with_libbsd" = "xyes"
7395 then :
7396
7397 as_fn_error $? "libbsd requested but not found" "$LINENO" 5
7398
7399 fi
7400 else
7401 LIBBSD_CFLAGS=$pkg_cv_LIBBSD_CFLAGS
7402 LIBBSD_LIBS=$pkg_cv_LIBBSD_LIBS
7403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7404 printf "%s\n" "yes" >&6; }
7405
7406 CFLAGS="$LIBBSD_CFLAGS $CFLAGS"
7407 LDFLAGS="$LIBBSD_LIBS $LDFLAGS"
7408
7409 fi
7410
7411 fi
7412
7413 need_dash_r=
7414 need_libasr=yes
7415 pkglibexecdir="$libexecdir/opensmtpd"
7416 case "$host" in #(
7417 *-*-darwin*) :
7418
7419 use_pie=auto
7420
7421 printf "%s\n" "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7422
7423
7424 printf "%s\n" "#define BROKEN_SETREUID 1" >>confdefs.h
7425
7426
7427 printf "%s\n" "#define BROKEN_SETREGID 1" >>confdefs.h
7428
7429
7430 printf "%s\n" "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7431
7432 ;; #(
7433 *-*-linux* | *-gnu* | *-k*bsd*-gnu*) :
7434
7435 use_pie=auto
7436 printf "%s\n" "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7437
7438 ;; #(
7439 *-*-netbsd*) :
7440
7441 need_dash_r=yes
7442 AM_CFLAGS="$AM_CFLAGS -D_OPENBSD_SOURCE"
7443 ;; #(
7444 *-*-openbsd*) :
7445
7446 use_pie=auto
7447 need_libasr=no
7448 pkglibexecdir="$libexecdir/smtpd"
7449
7450 printf "%s\n" "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h
7451
7452
7453 printf "%s\n" "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h
7454
7455
7456 printf "%s\n" "#define NOOP_ASR_FREEADDRINFO 0" >>confdefs.h
7457
7458 ;; #(
7459 *-sun-solaris*) :
7460
7461
7462 printf "%s\n" "#define HAVE_M_DATA 1" >>confdefs.h
7463
7464 ;; #(
7465 *) :
7466 ;;
7467 esac
7468
7469
7470 # XXX arc4random is checked later since some old (pre 3.8) versions of
7471 # LibreSSL provide this symbol mistakenly.
7472 ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
7473 if test "x$ac_cv_func_basename" = xyes
7474 then :
7475 printf "%s\n" "#define HAVE_BASENAME 1" >>confdefs.h
7476
7477 else case e in #(
7478 e) case " $LIBOBJS " in
7479 *" basename.$ac_objext "* ) ;;
7480 *) LIBOBJS="$LIBOBJS basename.$ac_objext"
7481 ;;
7482 esac
7483 ;;
7484 esac
7485 fi
7486 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
7487 if test "x$ac_cv_func_clock_gettime" = xyes
7488 then :
7489 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
7490
7491 else case e in #(
7492 e) case " $LIBOBJS " in
7493 *" clock_gettime.$ac_objext "* ) ;;
7494 *) LIBOBJS="$LIBOBJS clock_gettime.$ac_objext"
7495 ;;
7496 esac
7497 ;;
7498 esac
7499 fi
7500 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
7501 if test "x$ac_cv_func_closefrom" = xyes
7502 then :
7503 printf "%s\n" "#define HAVE_CLOSEFROM 1" >>confdefs.h
7504
7505 else case e in #(
7506 e) case " $LIBOBJS " in
7507 *" closefrom.$ac_objext "* ) ;;
7508 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
7509 ;;
7510 esac
7511 ;;
7512 esac
7513 fi
7514 ac_fn_c_check_func "$LINENO" "crypt_checkpass" "ac_cv_func_crypt_checkpass"
7515 if test "x$ac_cv_func_crypt_checkpass" = xyes
7516 then :
7517 printf "%s\n" "#define HAVE_CRYPT_CHECKPASS 1" >>confdefs.h
7518
7519 else case e in #(
7520 e) case " $LIBOBJS " in
7521 *" crypt_checkpass.$ac_objext "* ) ;;
7522 *) LIBOBJS="$LIBOBJS crypt_checkpass.$ac_objext"
7523 ;;
7524 esac
7525 ;;
7526 esac
7527 fi
7528 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
7529 if test "x$ac_cv_func_daemon" = xyes
7530 then :
7531 printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h
7532
7533 else case e in #(
7534 e) case " $LIBOBJS " in
7535 *" daemon.$ac_objext "* ) ;;
7536 *) LIBOBJS="$LIBOBJS daemon.$ac_objext"
7537 ;;
7538 esac
7539 ;;
7540 esac
7541 fi
7542 ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
7543 if test "x$ac_cv_func_dirname" = xyes
7544 then :
7545 printf "%s\n" "#define HAVE_DIRNAME 1" >>confdefs.h
7546
7547 else case e in #(
7548 e) case " $LIBOBJS " in
7549 *" dirname.$ac_objext "* ) ;;
7550 *) LIBOBJS="$LIBOBJS dirname.$ac_objext"
7551 ;;
7552 esac
7553 ;;
7554 esac
7555 fi
7556 ac_fn_c_check_func "$LINENO" "errc" "ac_cv_func_errc"
7557 if test "x$ac_cv_func_errc" = xyes
7558 then :
7559 printf "%s\n" "#define HAVE_ERRC 1" >>confdefs.h
7560
7561 else case e in #(
7562 e) case " $LIBOBJS " in
7563 *" errc.$ac_objext "* ) ;;
7564 *) LIBOBJS="$LIBOBJS errc.$ac_objext"
7565 ;;
7566 esac
7567 ;;
7568 esac
7569 fi
7570 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
7571 if test "x$ac_cv_func_explicit_bzero" = xyes
7572 then :
7573 printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
7574
7575 else case e in #(
7576 e) case " $LIBOBJS " in
7577 *" explicit_bzero.$ac_objext "* ) ;;
7578 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
7579 ;;
7580 esac
7581 ;;
7582 esac
7583 fi
7584 ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
7585 if test "x$ac_cv_func_fgetln" = xyes
7586 then :
7587 printf "%s\n" "#define HAVE_FGETLN 1" >>confdefs.h
7588
7589 else case e in #(
7590 e) case " $LIBOBJS " in
7591 *" fgetln.$ac_objext "* ) ;;
7592 *) LIBOBJS="$LIBOBJS fgetln.$ac_objext"
7593 ;;
7594 esac
7595 ;;
7596 esac
7597 fi
7598 ac_fn_c_check_func "$LINENO" "freezero" "ac_cv_func_freezero"
7599 if test "x$ac_cv_func_freezero" = xyes
7600 then :
7601 printf "%s\n" "#define HAVE_FREEZERO 1" >>confdefs.h
7602
7603 else case e in #(
7604 e) case " $LIBOBJS " in
7605 *" freezero.$ac_objext "* ) ;;
7606 *) LIBOBJS="$LIBOBJS freezero.$ac_objext"
7607 ;;
7608 esac
7609 ;;
7610 esac
7611 fi
7612 ac_fn_c_check_func "$LINENO" "getdtablecount" "ac_cv_func_getdtablecount"
7613 if test "x$ac_cv_func_getdtablecount" = xyes
7614 then :
7615 printf "%s\n" "#define HAVE_GETDTABLECOUNT 1" >>confdefs.h
7616
7617 else case e in #(
7618 e) case " $LIBOBJS " in
7619 *" getdtablecount.$ac_objext "* ) ;;
7620 *) LIBOBJS="$LIBOBJS getdtablecount.$ac_objext"
7621 ;;
7622 esac
7623 ;;
7624 esac
7625 fi
7626 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
7627 if test "x$ac_cv_func_getdtablesize" = xyes
7628 then :
7629 printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
7630
7631 else case e in #(
7632 e) case " $LIBOBJS " in
7633 *" getdtablesize.$ac_objext "* ) ;;
7634 *) LIBOBJS="$LIBOBJS getdtablesize.$ac_objext"
7635 ;;
7636 esac
7637 ;;
7638 esac
7639 fi
7640 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
7641 if test "x$ac_cv_func_getopt" = xyes
7642 then :
7643 printf "%s\n" "#define HAVE_GETOPT 1" >>confdefs.h
7644
7645 else case e in #(
7646 e) case " $LIBOBJS " in
7647 *" getopt.$ac_objext "* ) ;;
7648 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
7649 ;;
7650 esac
7651 ;;
7652 esac
7653 fi
7654 ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
7655 if test "x$ac_cv_func_getpeereid" = xyes
7656 then :
7657 printf "%s\n" "#define HAVE_GETPEEREID 1" >>confdefs.h
7658
7659 else case e in #(
7660 e) case " $LIBOBJS " in
7661 *" getpeereid.$ac_objext "* ) ;;
7662 *) LIBOBJS="$LIBOBJS getpeereid.$ac_objext"
7663 ;;
7664 esac
7665 ;;
7666 esac
7667 fi
7668 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
7669 if test "x$ac_cv_func_nanosleep" = xyes
7670 then :
7671 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
7672
7673 else case e in #(
7674 e) case " $LIBOBJS " in
7675 *" nanosleep.$ac_objext "* ) ;;
7676 *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
7677 ;;
7678 esac
7679 ;;
7680 esac
7681 fi
7682 ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2"
7683 if test "x$ac_cv_func_pipe2" = xyes
7684 then :
7685 printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h
7686
7687 else case e in #(
7688 e) case " $LIBOBJS " in
7689 *" pipe2.$ac_objext "* ) ;;
7690 *) LIBOBJS="$LIBOBJS pipe2.$ac_objext"
7691 ;;
7692 esac
7693 ;;
7694 esac
7695 fi
7696 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
7697 if test "x$ac_cv_func_reallocarray" = xyes
7698 then :
7699 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
7700
7701 else case e in #(
7702 e) case " $LIBOBJS " in
7703 *" reallocarray.$ac_objext "* ) ;;
7704 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
7705 ;;
7706 esac
7707 ;;
7708 esac
7709 fi
7710 ac_fn_c_check_func "$LINENO" "recallocarray" "ac_cv_func_recallocarray"
7711 if test "x$ac_cv_func_recallocarray" = xyes
7712 then :
7713 printf "%s\n" "#define HAVE_RECALLOCARRAY 1" >>confdefs.h
7714
7715 else case e in #(
7716 e) case " $LIBOBJS " in
7717 *" recallocarray.$ac_objext "* ) ;;
7718 *) LIBOBJS="$LIBOBJS recallocarray.$ac_objext"
7719 ;;
7720 esac
7721 ;;
7722 esac
7723 fi
7724 ac_fn_c_check_func "$LINENO" "res_hnok" "ac_cv_func_res_hnok"
7725 if test "x$ac_cv_func_res_hnok" = xyes
7726 then :
7727 printf "%s\n" "#define HAVE_RES_HNOK 1" >>confdefs.h
7728
7729 else case e in #(
7730 e) case " $LIBOBJS " in
7731 *" res_hnok.$ac_objext "* ) ;;
7732 *) LIBOBJS="$LIBOBJS res_hnok.$ac_objext"
7733 ;;
7734 esac
7735 ;;
7736 esac
7737 fi
7738 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
7739 if test "x$ac_cv_func_seteuid" = xyes
7740 then :
7741 printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h
7742
7743 else case e in #(
7744 e) case " $LIBOBJS " in
7745 *" seteuid.$ac_objext "* ) ;;
7746 *) LIBOBJS="$LIBOBJS seteuid.$ac_objext"
7747 ;;
7748 esac
7749 ;;
7750 esac
7751 fi
7752 ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid"
7753 if test "x$ac_cv_func_setegid" = xyes
7754 then :
7755 printf "%s\n" "#define HAVE_SETEGID 1" >>confdefs.h
7756
7757 else case e in #(
7758 e) case " $LIBOBJS " in
7759 *" setegid.$ac_objext "* ) ;;
7760 *) LIBOBJS="$LIBOBJS setegid.$ac_objext"
7761 ;;
7762 esac
7763 ;;
7764 esac
7765 fi
7766 ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
7767 if test "x$ac_cv_func_setproctitle" = xyes
7768 then :
7769 printf "%s\n" "#define HAVE_SETPROCTITLE 1" >>confdefs.h
7770
7771 else case e in #(
7772 e) case " $LIBOBJS " in
7773 *" setproctitle.$ac_objext "* ) ;;
7774 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
7775 ;;
7776 esac
7777 ;;
7778 esac
7779 fi
7780 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
7781 if test "x$ac_cv_func_setresuid" = xyes
7782 then :
7783 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
7784
7785 else case e in #(
7786 e) case " $LIBOBJS " in
7787 *" setresuid.$ac_objext "* ) ;;
7788 *) LIBOBJS="$LIBOBJS setresuid.$ac_objext"
7789 ;;
7790 esac
7791 ;;
7792 esac
7793 fi
7794 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
7795 if test "x$ac_cv_func_setresgid" = xyes
7796 then :
7797 printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
7798
7799 else case e in #(
7800 e) case " $LIBOBJS " in
7801 *" setresgid.$ac_objext "* ) ;;
7802 *) LIBOBJS="$LIBOBJS setresgid.$ac_objext"
7803 ;;
7804 esac
7805 ;;
7806 esac
7807 fi
7808 ac_fn_c_check_func "$LINENO" "signal" "ac_cv_func_signal"
7809 if test "x$ac_cv_func_signal" = xyes
7810 then :
7811 printf "%s\n" "#define HAVE_SIGNAL 1" >>confdefs.h
7812
7813 else case e in #(
7814 e) case " $LIBOBJS " in
7815 *" signal.$ac_objext "* ) ;;
7816 *) LIBOBJS="$LIBOBJS signal.$ac_objext"
7817 ;;
7818 esac
7819 ;;
7820 esac
7821 fi
7822 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
7823 if test "x$ac_cv_func_strlcpy" = xyes
7824 then :
7825 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
7826
7827 else case e in #(
7828 e) case " $LIBOBJS " in
7829 *" strlcpy.$ac_objext "* ) ;;
7830 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
7831 ;;
7832 esac
7833 ;;
7834 esac
7835 fi
7836 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
7837 if test "x$ac_cv_func_strlcat" = xyes
7838 then :
7839 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
7840
7841 else case e in #(
7842 e) case " $LIBOBJS " in
7843 *" strlcat.$ac_objext "* ) ;;
7844 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
7845 ;;
7846 esac
7847 ;;
7848 esac
7849 fi
7850 ac_fn_c_check_func "$LINENO" "strmode" "ac_cv_func_strmode"
7851 if test "x$ac_cv_func_strmode" = xyes
7852 then :
7853 printf "%s\n" "#define HAVE_STRMODE 1" >>confdefs.h
7854
7855 else case e in #(
7856 e) case " $LIBOBJS " in
7857 *" strmode.$ac_objext "* ) ;;
7858 *) LIBOBJS="$LIBOBJS strmode.$ac_objext"
7859 ;;
7860 esac
7861 ;;
7862 esac
7863 fi
7864 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
7865 if test "x$ac_cv_func_strndup" = xyes
7866 then :
7867 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
7868
7869 else case e in #(
7870 e) case " $LIBOBJS " in
7871 *" strndup.$ac_objext "* ) ;;
7872 *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
7873 ;;
7874 esac
7875 ;;
7876 esac
7877 fi
7878 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
7879 if test "x$ac_cv_func_strnlen" = xyes
7880 then :
7881 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
7882
7883 else case e in #(
7884 e) case " $LIBOBJS " in
7885 *" strnlen.$ac_objext "* ) ;;
7886 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
7887 ;;
7888 esac
7889 ;;
7890 esac
7891 fi
7892 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
7893 if test "x$ac_cv_func_strsep" = xyes
7894 then :
7895 printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h
7896
7897 else case e in #(
7898 e) case " $LIBOBJS " in
7899 *" strsep.$ac_objext "* ) ;;
7900 *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
7901 ;;
7902 esac
7903 ;;
7904 esac
7905 fi
7906 ac_fn_c_check_func "$LINENO" "strtonum" "ac_cv_func_strtonum"
7907 if test "x$ac_cv_func_strtonum" = xyes
7908 then :
7909 printf "%s\n" "#define HAVE_STRTONUM 1" >>confdefs.h
7910
7911 else case e in #(
7912 e) case " $LIBOBJS " in
7913 *" strtonum.$ac_objext "* ) ;;
7914 *) LIBOBJS="$LIBOBJS strtonum.$ac_objext"
7915 ;;
7916 esac
7917 ;;
7918 esac
7919 fi
7920 ac_fn_c_check_func "$LINENO" "timingsafe_memcmp" "ac_cv_func_timingsafe_memcmp"
7921 if test "x$ac_cv_func_timingsafe_memcmp" = xyes
7922 then :
7923 printf "%s\n" "#define HAVE_TIMINGSAFE_MEMCMP 1" >>confdefs.h
7924
7925 else case e in #(
7926 e) case " $LIBOBJS " in
7927 *" timingsafe_memcmp.$ac_objext "* ) ;;
7928 *) LIBOBJS="$LIBOBJS timingsafe_memcmp.$ac_objext"
7929 ;;
7930 esac
7931 ;;
7932 esac
7933 fi
7934 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
7935 if test "x$ac_cv_func_usleep" = xyes
7936 then :
7937 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
7938
7939 else case e in #(
7940 e) case " $LIBOBJS " in
7941 *" usleep.$ac_objext "* ) ;;
7942 *) LIBOBJS="$LIBOBJS usleep.$ac_objext"
7943 ;;
7944 esac
7945 ;;
7946 esac
7947 fi
7948
7949 # TODO: add vasprintf to the above
7950
7951 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
7952 if test "x$ac_cv_func_dirfd" = xyes
7953 then :
7954 printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h
7955
7956 fi
7957 ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred"
7958 if test "x$ac_cv_func_getpeerucred" = xyes
7959 then :
7960 printf "%s\n" "#define HAVE_GETPEERUCRED 1" >>confdefs.h
7961
7962 fi
7963 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
7964 if test "x$ac_cv_func_getspnam" = xyes
7965 then :
7966 printf "%s\n" "#define HAVE_GETSPNAM 1" >>confdefs.h
7967
7968 fi
7969 ac_fn_c_check_func "$LINENO" "malloc_conceal" "ac_cv_func_malloc_conceal"
7970 if test "x$ac_cv_func_malloc_conceal" = xyes
7971 then :
7972 printf "%s\n" "#define HAVE_MALLOC_CONCEAL 1" >>confdefs.h
7973
7974 fi
7975 ac_fn_c_check_func "$LINENO" "pledge" "ac_cv_func_pledge"
7976 if test "x$ac_cv_func_pledge" = xyes
7977 then :
7978 printf "%s\n" "#define HAVE_PLEDGE 1" >>confdefs.h
7979
7980 fi
7981 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
7982 if test "x$ac_cv_func_setreuid" = xyes
7983 then :
7984 printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h
7985
7986 fi
7987 ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
7988 if test "x$ac_cv_func_setsid" = xyes
7989 then :
7990 printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h
7991
7992 fi
7993 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
7994 if test "x$ac_cv_func_sigaction" = xyes
7995 then :
7996 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
7997
7998 fi
7999 ac_fn_c_check_func "$LINENO" "strnvis" "ac_cv_func_strnvis"
8000 if test "x$ac_cv_func_strnvis" = xyes
8001 then :
8002 printf "%s\n" "#define HAVE_STRNVIS 1" >>confdefs.h
8003
8004 fi
8005 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
8006 if test "x$ac_cv_func_sysconf" = xyes
8007 then :
8008 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
8009
8010 fi
8011
8012
8013 ac_fn_c_check_header_compile "$LINENO" "arpa/nameser_compat.h" "ac_cv_header_arpa_nameser_compat_h" "$ac_includes_default"
8014 if test "x$ac_cv_header_arpa_nameser_compat_h" = xyes
8015 then :
8016 printf "%s\n" "#define HAVE_ARPA_NAMESER_COMPAT_H 1" >>confdefs.h
8017
8018 fi
8019 ac_fn_c_check_header_compile "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
8020 if test "x$ac_cv_header_crypt_h" = xyes
8021 then :
8022 printf "%s\n" "#define HAVE_CRYPT_H 1" >>confdefs.h
8023
8024 fi
8025 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
8026 if test "x$ac_cv_header_dirent_h" = xyes
8027 then :
8028 printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
8029
8030 fi
8031 ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
8032 if test "x$ac_cv_header_endian_h" = xyes
8033 then :
8034 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
8035
8036 fi
8037 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
8038 if test "x$ac_cv_header_fcntl_h" = xyes
8039 then :
8040 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
8041
8042 fi
8043 ac_fn_c_check_header_compile "$LINENO" "libkern/OSByteOrder.h" "ac_cv_header_libkern_OSByteOrder_h" "$ac_includes_default"
8044 if test "x$ac_cv_header_libkern_OSByteOrder_h" = xyes
8045 then :
8046 printf "%s\n" "#define HAVE_LIBKERN_OSBYTEORDER_H 1" >>confdefs.h
8047
8048 fi
8049 ac_fn_c_check_header_compile "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
8050 if test "x$ac_cv_header_libutil_h" = xyes
8051 then :
8052 printf "%s\n" "#define HAVE_LIBUTIL_H 1" >>confdefs.h
8053
8054 fi
8055 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
8056 if test "x$ac_cv_header_limits_h" = xyes
8057 then :
8058 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
8059
8060 fi
8061 ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default"
8062 if test "x$ac_cv_header_login_cap_h" = xyes
8063 then :
8064 printf "%s\n" "#define HAVE_LOGIN_CAP_H 1" >>confdefs.h
8065
8066 fi
8067 ac_fn_c_check_header_compile "$LINENO" "mach/mach_time.h" "ac_cv_header_mach_mach_time_h" "$ac_includes_default"
8068 if test "x$ac_cv_header_mach_mach_time_h" = xyes
8069 then :
8070 printf "%s\n" "#define HAVE_MACH_MACH_TIME_H 1" >>confdefs.h
8071
8072 fi
8073 ac_fn_c_check_header_compile "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
8074 if test "x$ac_cv_header_maillock_h" = xyes
8075 then :
8076 printf "%s\n" "#define HAVE_MAILLOCK_H 1" >>confdefs.h
8077
8078 fi
8079 ac_fn_c_check_header_compile "$LINENO" "ndir.h" "ac_cv_header_ndir_h" "$ac_includes_default"
8080 if test "x$ac_cv_header_ndir_h" = xyes
8081 then :
8082 printf "%s\n" "#define HAVE_NDIR_H 1" >>confdefs.h
8083
8084 fi
8085 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
8086 if test "x$ac_cv_header_netdb_h" = xyes
8087 then :
8088 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
8089
8090 fi
8091 ac_fn_c_check_header_compile "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
8092 if test "x$ac_cv_header_pam_pam_appl_h" = xyes
8093 then :
8094 printf "%s\n" "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
8095
8096 fi
8097 ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
8098 if test "x$ac_cv_header_paths_h" = xyes
8099 then :
8100 printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
8101
8102 fi
8103 ac_fn_c_check_header_compile "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
8104 if test "x$ac_cv_header_security_pam_appl_h" = xyes
8105 then :
8106 printf "%s\n" "#define HAVE_SECURITY_PAM_APPL_H 1" >>confdefs.h
8107
8108 fi
8109 ac_fn_c_check_header_compile "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
8110 if test "x$ac_cv_header_shadow_h" = xyes
8111 then :
8112 printf "%s\n" "#define HAVE_SHADOW_H 1" >>confdefs.h
8113
8114 fi
8115 ac_fn_c_check_header_compile "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default"
8116 if test "x$ac_cv_header_sys_bitypes_h" = xyes
8117 then :
8118 printf "%s\n" "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
8119
8120 fi
8121 ac_fn_c_check_header_compile "$LINENO" "sys/dir.h" "ac_cv_header_sys_dir_h" "$ac_includes_default"
8122 if test "x$ac_cv_header_sys_dir_h" = xyes
8123 then :
8124 printf "%s\n" "#define HAVE_SYS_DIR_H 1" >>confdefs.h
8125
8126 fi
8127 ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
8128 if test "x$ac_cv_header_sys_endian_h" = xyes
8129 then :
8130 printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
8131
8132 fi
8133 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
8134 if test "x$ac_cv_header_sys_file_h" = xyes
8135 then :
8136 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
8137
8138 fi
8139 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
8140 if test "x$ac_cv_header_sys_mount_h" = xyes
8141 then :
8142 printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
8143
8144 fi
8145 ac_fn_c_check_header_compile "$LINENO" "sys/ndir.h" "ac_cv_header_sys_ndir_h" "$ac_includes_default"
8146 if test "x$ac_cv_header_sys_ndir_h" = xyes
8147 then :
8148 printf "%s\n" "#define HAVE_SYS_NDIR_H 1" >>confdefs.h
8149
8150 fi
8151 ac_fn_c_check_header_compile "$LINENO" "sys/pstat.h" "ac_cv_header_sys_pstat_h" "$ac_includes_default"
8152 if test "x$ac_cv_header_sys_pstat_h" = xyes
8153 then :
8154 printf "%s\n" "#define HAVE_SYS_PSTAT_H 1" >>confdefs.h
8155
8156 fi
8157 ac_fn_c_check_header_compile "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
8158 if test "x$ac_cv_header_sys_statfs_h" = xyes
8159 then :
8160 printf "%s\n" "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
8161
8162 fi
8163 ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
8164 if test "x$ac_cv_header_sys_statvfs_h" = xyes
8165 then :
8166 printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
8167
8168 fi
8169 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
8170 if test "x$ac_cv_header_sys_time_h" = xyes
8171 then :
8172 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
8173
8174 fi
8175 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
8176 if test "x$ac_cv_header_sys_un_h" = xyes
8177 then :
8178 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
8179
8180 fi
8181 ac_fn_c_check_header_compile "$LINENO" "ucred.h" "ac_cv_header_ucred_h" "$ac_includes_default"
8182 if test "x$ac_cv_header_ucred_h" = xyes
8183 then :
8184 printf "%s\n" "#define HAVE_UCRED_H 1" >>confdefs.h
8185
8186 fi
8187 ac_fn_c_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default"
8188 if test "x$ac_cv_header_util_h" = xyes
8189 then :
8190 printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h
8191
8192 fi
8193 ac_fn_c_check_header_compile "$LINENO" "vis.h" "ac_cv_header_vis_h" "$ac_includes_default"
8194 if test "x$ac_cv_header_vis_h" = xyes
8195 then :
8196 printf "%s\n" "#define HAVE_VIS_H 1" >>confdefs.h
8197
8198 fi
8199
8200
8201 if test "x$need_libasr" = xyes
8202 then :
8203
8204 AM_CFLAGS="$AM_CFLAGS -I\${top_srcdir}/openbsd-compat/libasr"
8205
8206 fi
8207 if test "x$need_libasr" = xyes; then
8208 NEED_LIBASR_TRUE=
8209 NEED_LIBASR_FALSE='#'
8210 else
8211 NEED_LIBASR_TRUE='#'
8212 NEED_LIBASR_FALSE=
8213 fi
8214
8215
8216 if test "x$ac_cv_func_errc" = xno
8217 then :
8218
8219 AM_CFLAGS="$AM_CFLAGS -I\${top_srcdir}/openbsd-compat/err_h"
8220
8221 fi
8222
8223 if test "x$ac_cv_header_paths_h" = xno
8224 then :
8225
8226 AM_CFLAGS="$AM_CFLAGS -I\${top_srcdir}/openbsd-compat/paths_h"
8227
8228 fi
8229
8230 # check for functions that may be provided by a library; need to do
8231 # this *after* the libc/libbsd things to avoid picking up unwanted
8232 # symbols from libraries.
8233
8234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5
8235 printf %s "checking for library containing basename... " >&6; }
8236 if test ${ac_cv_search_basename+y}
8237 then :
8238 printf %s "(cached) " >&6
8239 else case e in #(
8240 e) ac_func_search_save_LIBS=$LIBS
8241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8242 /* end confdefs.h. */
8243
8244 /* Override any GCC internal prototype to avoid an error.
8245 Use char because int might match the return type of a GCC
8246 builtin and then its argument prototype would still apply.
8247 The 'extern "C"' is for builds by C++ compilers;
8248 although this is not generally supported in C code supporting it here
8249 has little cost and some practical benefit (sr 110532). */
8250 #ifdef __cplusplus
8251 extern "C"
8252 #endif
8253 char basename (void);
8254 int
8255 main (void)
8256 {
8257 return basename ();
8258 ;
8259 return 0;
8260 }
8261 _ACEOF
8262 for ac_lib in '' gen
8263 do
8264 if test -z "$ac_lib"; then
8265 ac_res="none required"
8266 else
8267 ac_res=-l$ac_lib
8268 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8269 fi
8270 if ac_fn_c_try_link "$LINENO"
8271 then :
8272 ac_cv_search_basename=$ac_res
8273 fi
8274 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8275 conftest$ac_exeext
8276 if test ${ac_cv_search_basename+y}
8277 then :
8278 break
8279 fi
8280 done
8281 if test ${ac_cv_search_basename+y}
8282 then :
8283
8284 else case e in #(
8285 e) ac_cv_search_basename=no ;;
8286 esac
8287 fi
8288 rm conftest.$ac_ext
8289 LIBS=$ac_func_search_save_LIBS ;;
8290 esac
8291 fi
8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5
8293 printf "%s\n" "$ac_cv_search_basename" >&6; }
8294 ac_res=$ac_cv_search_basename
8295 if test "$ac_res" != no
8296 then :
8297 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8298
8299 printf "%s\n" "#define HAVE_BASENAME 1" >>confdefs.h
8300
8301 else case e in #(
8302 e) case " $LIBOBJS " in
8303 *" basename.$ac_objext "* ) ;;
8304 *) LIBOBJS="$LIBOBJS basename.$ac_objext"
8305 ;;
8306 esac
8307 ;;
8308 esac
8309 fi
8310
8311
8312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
8313 printf %s "checking for library containing clock_gettime... " >&6; }
8314 if test ${ac_cv_search_clock_gettime+y}
8315 then :
8316 printf %s "(cached) " >&6
8317 else case e in #(
8318 e) ac_func_search_save_LIBS=$LIBS
8319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320 /* end confdefs.h. */
8321
8322 /* Override any GCC internal prototype to avoid an error.
8323 Use char because int might match the return type of a GCC
8324 builtin and then its argument prototype would still apply.
8325 The 'extern "C"' is for builds by C++ compilers;
8326 although this is not generally supported in C code supporting it here
8327 has little cost and some practical benefit (sr 110532). */
8328 #ifdef __cplusplus
8329 extern "C"
8330 #endif
8331 char clock_gettime (void);
8332 int
8333 main (void)
8334 {
8335 return clock_gettime ();
8336 ;
8337 return 0;
8338 }
8339 _ACEOF
8340 for ac_lib in '' rt
8341 do
8342 if test -z "$ac_lib"; then
8343 ac_res="none required"
8344 else
8345 ac_res=-l$ac_lib
8346 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8347 fi
8348 if ac_fn_c_try_link "$LINENO"
8349 then :
8350 ac_cv_search_clock_gettime=$ac_res
8351 fi
8352 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8353 conftest$ac_exeext
8354 if test ${ac_cv_search_clock_gettime+y}
8355 then :
8356 break
8357 fi
8358 done
8359 if test ${ac_cv_search_clock_gettime+y}
8360 then :
8361
8362 else case e in #(
8363 e) ac_cv_search_clock_gettime=no ;;
8364 esac
8365 fi
8366 rm conftest.$ac_ext
8367 LIBS=$ac_func_search_save_LIBS ;;
8368 esac
8369 fi
8370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
8371 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
8372 ac_res=$ac_cv_search_clock_gettime
8373 if test "$ac_res" != no
8374 then :
8375 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8376
8377 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
8378
8379 else case e in #(
8380 e) case " $LIBOBJS " in
8381 *" clock_gettime.$ac_objext "* ) ;;
8382 *) LIBOBJS="$LIBOBJS clock_gettime.$ac_objext"
8383 ;;
8384 esac
8385 ;;
8386 esac
8387 fi
8388
8389
8390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing closefrom" >&5
8391 printf %s "checking for library containing closefrom... " >&6; }
8392 if test ${ac_cv_search_closefrom+y}
8393 then :
8394 printf %s "(cached) " >&6
8395 else case e in #(
8396 e) ac_func_search_save_LIBS=$LIBS
8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h. */
8399
8400 /* Override any GCC internal prototype to avoid an error.
8401 Use char because int might match the return type of a GCC
8402 builtin and then its argument prototype would still apply.
8403 The 'extern "C"' is for builds by C++ compilers;
8404 although this is not generally supported in C code supporting it here
8405 has little cost and some practical benefit (sr 110532). */
8406 #ifdef __cplusplus
8407 extern "C"
8408 #endif
8409 char closefrom (void);
8410 int
8411 main (void)
8412 {
8413 return closefrom ();
8414 ;
8415 return 0;
8416 }
8417 _ACEOF
8418 for ac_lib in '' gen
8419 do
8420 if test -z "$ac_lib"; then
8421 ac_res="none required"
8422 else
8423 ac_res=-l$ac_lib
8424 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8425 fi
8426 if ac_fn_c_try_link "$LINENO"
8427 then :
8428 ac_cv_search_closefrom=$ac_res
8429 fi
8430 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8431 conftest$ac_exeext
8432 if test ${ac_cv_search_closefrom+y}
8433 then :
8434 break
8435 fi
8436 done
8437 if test ${ac_cv_search_closefrom+y}
8438 then :
8439
8440 else case e in #(
8441 e) ac_cv_search_closefrom=no ;;
8442 esac
8443 fi
8444 rm conftest.$ac_ext
8445 LIBS=$ac_func_search_save_LIBS ;;
8446 esac
8447 fi
8448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_closefrom" >&5
8449 printf "%s\n" "$ac_cv_search_closefrom" >&6; }
8450 ac_res=$ac_cv_search_closefrom
8451 if test "$ac_res" != no
8452 then :
8453 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8454
8455
8456 printf "%s\n" "#define HAVE_CLOSEFROM 1" >>confdefs.h
8457
8458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459 /* end confdefs.h. */
8460 int r = closefrom(0);
8461 int
8462 main (void)
8463 {
8464
8465 ;
8466 return 0;
8467 }
8468 _ACEOF
8469 if ac_fn_c_try_compile "$LINENO"
8470 then :
8471
8472
8473 printf "%s\n" "#define HAVE_CLOSEFROM_INT 1" >>confdefs.h
8474
8475
8476 fi
8477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8478
8479 else case e in #(
8480 e) case " $LIBOBJS " in
8481 *" closefrom.$ac_objext "* ) ;;
8482 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
8483 ;;
8484 esac
8485 ;;
8486 esac
8487 fi
8488
8489
8490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
8491 printf %s "checking for library containing crypt... " >&6; }
8492 if test ${ac_cv_search_crypt+y}
8493 then :
8494 printf %s "(cached) " >&6
8495 else case e in #(
8496 e) ac_func_search_save_LIBS=$LIBS
8497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8498 /* end confdefs.h. */
8499
8500 /* Override any GCC internal prototype to avoid an error.
8501 Use char because int might match the return type of a GCC
8502 builtin and then its argument prototype would still apply.
8503 The 'extern "C"' is for builds by C++ compilers;
8504 although this is not generally supported in C code supporting it here
8505 has little cost and some practical benefit (sr 110532). */
8506 #ifdef __cplusplus
8507 extern "C"
8508 #endif
8509 char crypt (void);
8510 int
8511 main (void)
8512 {
8513 return crypt ();
8514 ;
8515 return 0;
8516 }
8517 _ACEOF
8518 for ac_lib in '' crypt
8519 do
8520 if test -z "$ac_lib"; then
8521 ac_res="none required"
8522 else
8523 ac_res=-l$ac_lib
8524 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8525 fi
8526 if ac_fn_c_try_link "$LINENO"
8527 then :
8528 ac_cv_search_crypt=$ac_res
8529 fi
8530 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8531 conftest$ac_exeext
8532 if test ${ac_cv_search_crypt+y}
8533 then :
8534 break
8535 fi
8536 done
8537 if test ${ac_cv_search_crypt+y}
8538 then :
8539
8540 else case e in #(
8541 e) ac_cv_search_crypt=no ;;
8542 esac
8543 fi
8544 rm conftest.$ac_ext
8545 LIBS=$ac_func_search_save_LIBS ;;
8546 esac
8547 fi
8548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
8549 printf "%s\n" "$ac_cv_search_crypt" >&6; }
8550 ac_res=$ac_cv_search_crypt
8551 if test "$ac_res" != no
8552 then :
8553 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8554
8555 printf "%s\n" "#define HAVE_CRYPT 1" >>confdefs.h
8556
8557 fi
8558
8559
8560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypt_gensalt" >&5
8561 printf %s "checking for library containing crypt_gensalt... " >&6; }
8562 if test ${ac_cv_search_crypt_gensalt+y}
8563 then :
8564 printf %s "(cached) " >&6
8565 else case e in #(
8566 e) ac_func_search_save_LIBS=$LIBS
8567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8568 /* end confdefs.h. */
8569
8570 /* Override any GCC internal prototype to avoid an error.
8571 Use char because int might match the return type of a GCC
8572 builtin and then its argument prototype would still apply.
8573 The 'extern "C"' is for builds by C++ compilers;
8574 although this is not generally supported in C code supporting it here
8575 has little cost and some practical benefit (sr 110532). */
8576 #ifdef __cplusplus
8577 extern "C"
8578 #endif
8579 char crypt_gensalt (void);
8580 int
8581 main (void)
8582 {
8583 return crypt_gensalt ();
8584 ;
8585 return 0;
8586 }
8587 _ACEOF
8588 for ac_lib in '' crypt
8589 do
8590 if test -z "$ac_lib"; then
8591 ac_res="none required"
8592 else
8593 ac_res=-l$ac_lib
8594 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8595 fi
8596 if ac_fn_c_try_link "$LINENO"
8597 then :
8598 ac_cv_search_crypt_gensalt=$ac_res
8599 fi
8600 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8601 conftest$ac_exeext
8602 if test ${ac_cv_search_crypt_gensalt+y}
8603 then :
8604 break
8605 fi
8606 done
8607 if test ${ac_cv_search_crypt_gensalt+y}
8608 then :
8609
8610 else case e in #(
8611 e) ac_cv_search_crypt_gensalt=no ;;
8612 esac
8613 fi
8614 rm conftest.$ac_ext
8615 LIBS=$ac_func_search_save_LIBS ;;
8616 esac
8617 fi
8618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt_gensalt" >&5
8619 printf "%s\n" "$ac_cv_search_crypt_gensalt" >&6; }
8620 ac_res=$ac_cv_search_crypt_gensalt
8621 if test "$ac_res" != no
8622 then :
8623 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8624
8625 printf "%s\n" "#define HAVE_CRYPT_GENSALT 1" >>confdefs.h
8626
8627 fi
8628
8629
8630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dirname" >&5
8631 printf %s "checking for library containing dirname... " >&6; }
8632 if test ${ac_cv_search_dirname+y}
8633 then :
8634 printf %s "(cached) " >&6
8635 else case e in #(
8636 e) ac_func_search_save_LIBS=$LIBS
8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h. */
8639
8640 /* Override any GCC internal prototype to avoid an error.
8641 Use char because int might match the return type of a GCC
8642 builtin and then its argument prototype would still apply.
8643 The 'extern "C"' is for builds by C++ compilers;
8644 although this is not generally supported in C code supporting it here
8645 has little cost and some practical benefit (sr 110532). */
8646 #ifdef __cplusplus
8647 extern "C"
8648 #endif
8649 char dirname (void);
8650 int
8651 main (void)
8652 {
8653 return dirname ();
8654 ;
8655 return 0;
8656 }
8657 _ACEOF
8658 for ac_lib in '' gen
8659 do
8660 if test -z "$ac_lib"; then
8661 ac_res="none required"
8662 else
8663 ac_res=-l$ac_lib
8664 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8665 fi
8666 if ac_fn_c_try_link "$LINENO"
8667 then :
8668 ac_cv_search_dirname=$ac_res
8669 fi
8670 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8671 conftest$ac_exeext
8672 if test ${ac_cv_search_dirname+y}
8673 then :
8674 break
8675 fi
8676 done
8677 if test ${ac_cv_search_dirname+y}
8678 then :
8679
8680 else case e in #(
8681 e) ac_cv_search_dirname=no ;;
8682 esac
8683 fi
8684 rm conftest.$ac_ext
8685 LIBS=$ac_func_search_save_LIBS ;;
8686 esac
8687 fi
8688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dirname" >&5
8689 printf "%s\n" "$ac_cv_search_dirname" >&6; }
8690 ac_res=$ac_cv_search_dirname
8691 if test "$ac_res" != no
8692 then :
8693 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8694
8695 printf "%s\n" "#define HAVE_DIRNAME 1" >>confdefs.h
8696
8697 else case e in #(
8698 e) case " $LIBOBJS " in
8699 *" dirname.$ac_objext "* ) ;;
8700 *) LIBOBJS="$LIBOBJS dirname.$ac_objext"
8701 ;;
8702 esac
8703 ;;
8704 esac
8705 fi
8706
8707
8708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing fmt_scaled" >&5
8709 printf %s "checking for library containing fmt_scaled... " >&6; }
8710 if test ${ac_cv_search_fmt_scaled+y}
8711 then :
8712 printf %s "(cached) " >&6
8713 else case e in #(
8714 e) ac_func_search_save_LIBS=$LIBS
8715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8716 /* end confdefs.h. */
8717
8718 /* Override any GCC internal prototype to avoid an error.
8719 Use char because int might match the return type of a GCC
8720 builtin and then its argument prototype would still apply.
8721 The 'extern "C"' is for builds by C++ compilers;
8722 although this is not generally supported in C code supporting it here
8723 has little cost and some practical benefit (sr 110532). */
8724 #ifdef __cplusplus
8725 extern "C"
8726 #endif
8727 char fmt_scaled (void);
8728 int
8729 main (void)
8730 {
8731 return fmt_scaled ();
8732 ;
8733 return 0;
8734 }
8735 _ACEOF
8736 for ac_lib in '' util
8737 do
8738 if test -z "$ac_lib"; then
8739 ac_res="none required"
8740 else
8741 ac_res=-l$ac_lib
8742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8743 fi
8744 if ac_fn_c_try_link "$LINENO"
8745 then :
8746 ac_cv_search_fmt_scaled=$ac_res
8747 fi
8748 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8749 conftest$ac_exeext
8750 if test ${ac_cv_search_fmt_scaled+y}
8751 then :
8752 break
8753 fi
8754 done
8755 if test ${ac_cv_search_fmt_scaled+y}
8756 then :
8757
8758 else case e in #(
8759 e) ac_cv_search_fmt_scaled=no ;;
8760 esac
8761 fi
8762 rm conftest.$ac_ext
8763 LIBS=$ac_func_search_save_LIBS ;;
8764 esac
8765 fi
8766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmt_scaled" >&5
8767 printf "%s\n" "$ac_cv_search_fmt_scaled" >&6; }
8768 ac_res=$ac_cv_search_fmt_scaled
8769 if test "$ac_res" != no
8770 then :
8771 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8772
8773 printf "%s\n" "#define HAVE_FMT_SCALED 1" >>confdefs.h
8774
8775 else case e in #(
8776 e) case " $LIBOBJS " in
8777 *" fmt_scaled.$ac_objext "* ) ;;
8778 *) LIBOBJS="$LIBOBJS fmt_scaled.$ac_objext"
8779 ;;
8780 esac
8781 ;;
8782 esac
8783 fi
8784
8785
8786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing fparseln" >&5
8787 printf %s "checking for library containing fparseln... " >&6; }
8788 if test ${ac_cv_search_fparseln+y}
8789 then :
8790 printf %s "(cached) " >&6
8791 else case e in #(
8792 e) ac_func_search_save_LIBS=$LIBS
8793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8794 /* end confdefs.h. */
8795
8796 /* Override any GCC internal prototype to avoid an error.
8797 Use char because int might match the return type of a GCC
8798 builtin and then its argument prototype would still apply.
8799 The 'extern "C"' is for builds by C++ compilers;
8800 although this is not generally supported in C code supporting it here
8801 has little cost and some practical benefit (sr 110532). */
8802 #ifdef __cplusplus
8803 extern "C"
8804 #endif
8805 char fparseln (void);
8806 int
8807 main (void)
8808 {
8809 return fparseln ();
8810 ;
8811 return 0;
8812 }
8813 _ACEOF
8814 for ac_lib in '' util
8815 do
8816 if test -z "$ac_lib"; then
8817 ac_res="none required"
8818 else
8819 ac_res=-l$ac_lib
8820 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8821 fi
8822 if ac_fn_c_try_link "$LINENO"
8823 then :
8824 ac_cv_search_fparseln=$ac_res
8825 fi
8826 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8827 conftest$ac_exeext
8828 if test ${ac_cv_search_fparseln+y}
8829 then :
8830 break
8831 fi
8832 done
8833 if test ${ac_cv_search_fparseln+y}
8834 then :
8835
8836 else case e in #(
8837 e) ac_cv_search_fparseln=no ;;
8838 esac
8839 fi
8840 rm conftest.$ac_ext
8841 LIBS=$ac_func_search_save_LIBS ;;
8842 esac
8843 fi
8844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fparseln" >&5
8845 printf "%s\n" "$ac_cv_search_fparseln" >&6; }
8846 ac_res=$ac_cv_search_fparseln
8847 if test "$ac_res" != no
8848 then :
8849 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8850
8851 printf "%s\n" "#define HAVE_FPARSELN 1" >>confdefs.h
8852
8853 else case e in #(
8854 e) case " $LIBOBJS " in
8855 *" fparseln.$ac_objext "* ) ;;
8856 *) LIBOBJS="$LIBOBJS fparseln.$ac_objext"
8857 ;;
8858 esac
8859 ;;
8860 esac
8861 fi
8862
8863
8864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing fts_open" >&5
8865 printf %s "checking for library containing fts_open... " >&6; }
8866 if test ${ac_cv_search_fts_open+y}
8867 then :
8868 printf %s "(cached) " >&6
8869 else case e in #(
8870 e) ac_func_search_save_LIBS=$LIBS
8871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872 /* end confdefs.h. */
8873
8874 /* Override any GCC internal prototype to avoid an error.
8875 Use char because int might match the return type of a GCC
8876 builtin and then its argument prototype would still apply.
8877 The 'extern "C"' is for builds by C++ compilers;
8878 although this is not generally supported in C code supporting it here
8879 has little cost and some practical benefit (sr 110532). */
8880 #ifdef __cplusplus
8881 extern "C"
8882 #endif
8883 char fts_open (void);
8884 int
8885 main (void)
8886 {
8887 return fts_open ();
8888 ;
8889 return 0;
8890 }
8891 _ACEOF
8892 for ac_lib in '' fts
8893 do
8894 if test -z "$ac_lib"; then
8895 ac_res="none required"
8896 else
8897 ac_res=-l$ac_lib
8898 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8899 fi
8900 if ac_fn_c_try_link "$LINENO"
8901 then :
8902 ac_cv_search_fts_open=$ac_res
8903 fi
8904 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8905 conftest$ac_exeext
8906 if test ${ac_cv_search_fts_open+y}
8907 then :
8908 break
8909 fi
8910 done
8911 if test ${ac_cv_search_fts_open+y}
8912 then :
8913
8914 else case e in #(
8915 e) ac_cv_search_fts_open=no ;;
8916 esac
8917 fi
8918 rm conftest.$ac_ext
8919 LIBS=$ac_func_search_save_LIBS ;;
8920 esac
8921 fi
8922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fts_open" >&5
8923 printf "%s\n" "$ac_cv_search_fts_open" >&6; }
8924 ac_res=$ac_cv_search_fts_open
8925 if test "$ac_res" != no
8926 then :
8927 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8928
8929 printf "%s\n" "#define HAVE_FTS_OPEN 1" >>confdefs.h
8930
8931 else case e in #(
8932 e) as_fn_error $? "can't find fts_open(); please install libfts" "$LINENO" 5 ;;
8933 esac
8934 fi
8935
8936
8937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_net_pton" >&5
8938 printf %s "checking for library containing inet_net_pton... " >&6; }
8939 if test ${ac_cv_search_inet_net_pton+y}
8940 then :
8941 printf %s "(cached) " >&6
8942 else case e in #(
8943 e) ac_func_search_save_LIBS=$LIBS
8944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8945 /* end confdefs.h. */
8946
8947 /* Override any GCC internal prototype to avoid an error.
8948 Use char because int might match the return type of a GCC
8949 builtin and then its argument prototype would still apply.
8950 The 'extern "C"' is for builds by C++ compilers;
8951 although this is not generally supported in C code supporting it here
8952 has little cost and some practical benefit (sr 110532). */
8953 #ifdef __cplusplus
8954 extern "C"
8955 #endif
8956 char inet_net_pton (void);
8957 int
8958 main (void)
8959 {
8960 return inet_net_pton ();
8961 ;
8962 return 0;
8963 }
8964 _ACEOF
8965 for ac_lib in '' resorv
8966 do
8967 if test -z "$ac_lib"; then
8968 ac_res="none required"
8969 else
8970 ac_res=-l$ac_lib
8971 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8972 fi
8973 if ac_fn_c_try_link "$LINENO"
8974 then :
8975 ac_cv_search_inet_net_pton=$ac_res
8976 fi
8977 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8978 conftest$ac_exeext
8979 if test ${ac_cv_search_inet_net_pton+y}
8980 then :
8981 break
8982 fi
8983 done
8984 if test ${ac_cv_search_inet_net_pton+y}
8985 then :
8986
8987 else case e in #(
8988 e) ac_cv_search_inet_net_pton=no ;;
8989 esac
8990 fi
8991 rm conftest.$ac_ext
8992 LIBS=$ac_func_search_save_LIBS ;;
8993 esac
8994 fi
8995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_net_pton" >&5
8996 printf "%s\n" "$ac_cv_search_inet_net_pton" >&6; }
8997 ac_res=$ac_cv_search_inet_net_pton
8998 if test "$ac_res" != no
8999 then :
9000 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9001
9002 printf "%s\n" "#define HAVE_INET_NET_PTON 1" >>confdefs.h
9003
9004 else case e in #(
9005 e) case " $LIBOBJS " in
9006 *" inet_net_pton.$ac_objext "* ) ;;
9007 *) LIBOBJS="$LIBOBJS inet_net_pton.$ac_objext"
9008 ;;
9009 esac
9010 ;;
9011 esac
9012 fi
9013
9014
9015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing imsg_init" >&5
9016 printf %s "checking for library containing imsg_init... " >&6; }
9017 if test ${ac_cv_search_imsg_init+y}
9018 then :
9019 printf %s "(cached) " >&6
9020 else case e in #(
9021 e) ac_func_search_save_LIBS=$LIBS
9022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9023 /* end confdefs.h. */
9024
9025 /* Override any GCC internal prototype to avoid an error.
9026 Use char because int might match the return type of a GCC
9027 builtin and then its argument prototype would still apply.
9028 The 'extern "C"' is for builds by C++ compilers;
9029 although this is not generally supported in C code supporting it here
9030 has little cost and some practical benefit (sr 110532). */
9031 #ifdef __cplusplus
9032 extern "C"
9033 #endif
9034 char imsg_init (void);
9035 int
9036 main (void)
9037 {
9038 return imsg_init ();
9039 ;
9040 return 0;
9041 }
9042 _ACEOF
9043 for ac_lib in '' util imsg
9044 do
9045 if test -z "$ac_lib"; then
9046 ac_res="none required"
9047 else
9048 ac_res=-l$ac_lib
9049 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9050 fi
9051 if ac_fn_c_try_link "$LINENO"
9052 then :
9053 ac_cv_search_imsg_init=$ac_res
9054 fi
9055 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9056 conftest$ac_exeext
9057 if test ${ac_cv_search_imsg_init+y}
9058 then :
9059 break
9060 fi
9061 done
9062 if test ${ac_cv_search_imsg_init+y}
9063 then :
9064
9065 else case e in #(
9066 e) ac_cv_search_imsg_init=no ;;
9067 esac
9068 fi
9069 rm conftest.$ac_ext
9070 LIBS=$ac_func_search_save_LIBS ;;
9071 esac
9072 fi
9073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_imsg_init" >&5
9074 printf "%s\n" "$ac_cv_search_imsg_init" >&6; }
9075 ac_res=$ac_cv_search_imsg_init
9076 if test "$ac_res" != no
9077 then :
9078 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9079
9080 printf "%s\n" "#define HAVE_IMSG_INIT 1" >>confdefs.h
9081
9082 else case e in #(
9083 e)
9084 case " $LIBOBJS " in
9085 *" imsg.$ac_objext "* ) ;;
9086 *) LIBOBJS="$LIBOBJS imsg.$ac_objext"
9087 ;;
9088 esac
9089
9090 case " $LIBOBJS " in
9091 *" imsg-buffer.$ac_objext "* ) ;;
9092 *) LIBOBJS="$LIBOBJS imsg-buffer.$ac_objext"
9093 ;;
9094 esac
9095
9096 ;;
9097 esac
9098 fi
9099
9100
9101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pidfile" >&5
9102 printf %s "checking for library containing pidfile... " >&6; }
9103 if test ${ac_cv_search_pidfile+y}
9104 then :
9105 printf %s "(cached) " >&6
9106 else case e in #(
9107 e) ac_func_search_save_LIBS=$LIBS
9108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109 /* end confdefs.h. */
9110
9111 /* Override any GCC internal prototype to avoid an error.
9112 Use char because int might match the return type of a GCC
9113 builtin and then its argument prototype would still apply.
9114 The 'extern "C"' is for builds by C++ compilers;
9115 although this is not generally supported in C code supporting it here
9116 has little cost and some practical benefit (sr 110532). */
9117 #ifdef __cplusplus
9118 extern "C"
9119 #endif
9120 char pidfile (void);
9121 int
9122 main (void)
9123 {
9124 return pidfile ();
9125 ;
9126 return 0;
9127 }
9128 _ACEOF
9129 for ac_lib in '' util
9130 do
9131 if test -z "$ac_lib"; then
9132 ac_res="none required"
9133 else
9134 ac_res=-l$ac_lib
9135 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9136 fi
9137 if ac_fn_c_try_link "$LINENO"
9138 then :
9139 ac_cv_search_pidfile=$ac_res
9140 fi
9141 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9142 conftest$ac_exeext
9143 if test ${ac_cv_search_pidfile+y}
9144 then :
9145 break
9146 fi
9147 done
9148 if test ${ac_cv_search_pidfile+y}
9149 then :
9150
9151 else case e in #(
9152 e) ac_cv_search_pidfile=no ;;
9153 esac
9154 fi
9155 rm conftest.$ac_ext
9156 LIBS=$ac_func_search_save_LIBS ;;
9157 esac
9158 fi
9159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pidfile" >&5
9160 printf "%s\n" "$ac_cv_search_pidfile" >&6; }
9161 ac_res=$ac_cv_search_pidfile
9162 if test "$ac_res" != no
9163 then :
9164 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9165
9166 printf "%s\n" "#define HAVE_PIDFILE 1" >>confdefs.h
9167
9168 else case e in #(
9169 e) case " $LIBOBJS " in
9170 *" pidfile.$ac_objext "* ) ;;
9171 *) LIBOBJS="$LIBOBJS pidfile.$ac_objext"
9172 ;;
9173 esac
9174 ;;
9175 esac
9176 fi
9177
9178
9179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_hnok" >&5
9180 printf %s "checking for library containing res_hnok... " >&6; }
9181 if test ${ac_cv_search_res_hnok+y}
9182 then :
9183 printf %s "(cached) " >&6
9184 else case e in #(
9185 e) ac_func_search_save_LIBS=$LIBS
9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9188
9189 /* Override any GCC internal prototype to avoid an error.
9190 Use char because int might match the return type of a GCC
9191 builtin and then its argument prototype would still apply.
9192 The 'extern "C"' is for builds by C++ compilers;
9193 although this is not generally supported in C code supporting it here
9194 has little cost and some practical benefit (sr 110532). */
9195 #ifdef __cplusplus
9196 extern "C"
9197 #endif
9198 char res_hnok (void);
9199 int
9200 main (void)
9201 {
9202 return res_hnok ();
9203 ;
9204 return 0;
9205 }
9206 _ACEOF
9207 for ac_lib in '' resolv
9208 do
9209 if test -z "$ac_lib"; then
9210 ac_res="none required"
9211 else
9212 ac_res=-l$ac_lib
9213 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9214 fi
9215 if ac_fn_c_try_link "$LINENO"
9216 then :
9217 ac_cv_search_res_hnok=$ac_res
9218 fi
9219 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9220 conftest$ac_exeext
9221 if test ${ac_cv_search_res_hnok+y}
9222 then :
9223 break
9224 fi
9225 done
9226 if test ${ac_cv_search_res_hnok+y}
9227 then :
9228
9229 else case e in #(
9230 e) ac_cv_search_res_hnok=no ;;
9231 esac
9232 fi
9233 rm conftest.$ac_ext
9234 LIBS=$ac_func_search_save_LIBS ;;
9235 esac
9236 fi
9237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_hnok" >&5
9238 printf "%s\n" "$ac_cv_search_res_hnok" >&6; }
9239 ac_res=$ac_cv_search_res_hnok
9240 if test "$ac_res" != no
9241 then :
9242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9243
9244 printf "%s\n" "#define HAVE_RES_HNOK 1" >>confdefs.h
9245
9246 else case e in #(
9247 e)
9248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_hnok" >&5
9249 printf %s "checking for library containing res_9_hnok... " >&6; }
9250 if test ${ac_cv_search_res_9_hnok+y}
9251 then :
9252 printf %s "(cached) " >&6
9253 else case e in #(
9254 e) ac_func_search_save_LIBS=$LIBS
9255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9256 /* end confdefs.h. */
9257
9258 /* Override any GCC internal prototype to avoid an error.
9259 Use char because int might match the return type of a GCC
9260 builtin and then its argument prototype would still apply.
9261 The 'extern "C"' is for builds by C++ compilers;
9262 although this is not generally supported in C code supporting it here
9263 has little cost and some practical benefit (sr 110532). */
9264 #ifdef __cplusplus
9265 extern "C"
9266 #endif
9267 char res_9_hnok (void);
9268 int
9269 main (void)
9270 {
9271 return res_9_hnok ();
9272 ;
9273 return 0;
9274 }
9275 _ACEOF
9276 for ac_lib in '' resolv
9277 do
9278 if test -z "$ac_lib"; then
9279 ac_res="none required"
9280 else
9281 ac_res=-l$ac_lib
9282 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9283 fi
9284 if ac_fn_c_try_link "$LINENO"
9285 then :
9286 ac_cv_search_res_9_hnok=$ac_res
9287 fi
9288 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9289 conftest$ac_exeext
9290 if test ${ac_cv_search_res_9_hnok+y}
9291 then :
9292 break
9293 fi
9294 done
9295 if test ${ac_cv_search_res_9_hnok+y}
9296 then :
9297
9298 else case e in #(
9299 e) ac_cv_search_res_9_hnok=no ;;
9300 esac
9301 fi
9302 rm conftest.$ac_ext
9303 LIBS=$ac_func_search_save_LIBS ;;
9304 esac
9305 fi
9306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_hnok" >&5
9307 printf "%s\n" "$ac_cv_search_res_9_hnok" >&6; }
9308 ac_res=$ac_cv_search_res_9_hnok
9309 if test "$ac_res" != no
9310 then :
9311 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9312
9313
9314 printf "%s\n" "#define HAVE_RES_HNOK 1" >>confdefs.h
9315
9316 case " $LIBOBJS " in
9317 *" res_hnok.$ac_objext "* ) ;;
9318 *) LIBOBJS="$LIBOBJS res_hnok.$ac_objext"
9319 ;;
9320 esac
9321
9322
9323 fi
9324
9325 ;;
9326 esac
9327 fi
9328
9329
9330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_randomid" >&5
9331 printf %s "checking for library containing res_randomid... " >&6; }
9332 if test ${ac_cv_search_res_randomid+y}
9333 then :
9334 printf %s "(cached) " >&6
9335 else case e in #(
9336 e) ac_func_search_save_LIBS=$LIBS
9337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338 /* end confdefs.h. */
9339
9340 /* Override any GCC internal prototype to avoid an error.
9341 Use char because int might match the return type of a GCC
9342 builtin and then its argument prototype would still apply.
9343 The 'extern "C"' is for builds by C++ compilers;
9344 although this is not generally supported in C code supporting it here
9345 has little cost and some practical benefit (sr 110532). */
9346 #ifdef __cplusplus
9347 extern "C"
9348 #endif
9349 char res_randomid (void);
9350 int
9351 main (void)
9352 {
9353 return res_randomid ();
9354 ;
9355 return 0;
9356 }
9357 _ACEOF
9358 for ac_lib in '' resolv
9359 do
9360 if test -z "$ac_lib"; then
9361 ac_res="none required"
9362 else
9363 ac_res=-l$ac_lib
9364 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9365 fi
9366 if ac_fn_c_try_link "$LINENO"
9367 then :
9368 ac_cv_search_res_randomid=$ac_res
9369 fi
9370 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9371 conftest$ac_exeext
9372 if test ${ac_cv_search_res_randomid+y}
9373 then :
9374 break
9375 fi
9376 done
9377 if test ${ac_cv_search_res_randomid+y}
9378 then :
9379
9380 else case e in #(
9381 e) ac_cv_search_res_randomid=no ;;
9382 esac
9383 fi
9384 rm conftest.$ac_ext
9385 LIBS=$ac_func_search_save_LIBS ;;
9386 esac
9387 fi
9388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_randomid" >&5
9389 printf "%s\n" "$ac_cv_search_res_randomid" >&6; }
9390 ac_res=$ac_cv_search_res_randomid
9391 if test "$ac_res" != no
9392 then :
9393 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9394
9395 printf "%s\n" "#define HAVE_RES_RANDOMID 1" >>confdefs.h
9396
9397 else case e in #(
9398 e) case " $LIBOBJS " in
9399 *" res_random.$ac_objext "* ) ;;
9400 *) LIBOBJS="$LIBOBJS res_random.$ac_objext"
9401 ;;
9402 esac
9403 ;;
9404 esac
9405 fi
9406
9407
9408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
9409 printf %s "checking for library containing setsockopt... " >&6; }
9410 if test ${ac_cv_search_setsockopt+y}
9411 then :
9412 printf %s "(cached) " >&6
9413 else case e in #(
9414 e) ac_func_search_save_LIBS=$LIBS
9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416 /* end confdefs.h. */
9417
9418 /* Override any GCC internal prototype to avoid an error.
9419 Use char because int might match the return type of a GCC
9420 builtin and then its argument prototype would still apply.
9421 The 'extern "C"' is for builds by C++ compilers;
9422 although this is not generally supported in C code supporting it here
9423 has little cost and some practical benefit (sr 110532). */
9424 #ifdef __cplusplus
9425 extern "C"
9426 #endif
9427 char setsockopt (void);
9428 int
9429 main (void)
9430 {
9431 return setsockopt ();
9432 ;
9433 return 0;
9434 }
9435 _ACEOF
9436 for ac_lib in '' socket
9437 do
9438 if test -z "$ac_lib"; then
9439 ac_res="none required"
9440 else
9441 ac_res=-l$ac_lib
9442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9443 fi
9444 if ac_fn_c_try_link "$LINENO"
9445 then :
9446 ac_cv_search_setsockopt=$ac_res
9447 fi
9448 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9449 conftest$ac_exeext
9450 if test ${ac_cv_search_setsockopt+y}
9451 then :
9452 break
9453 fi
9454 done
9455 if test ${ac_cv_search_setsockopt+y}
9456 then :
9457
9458 else case e in #(
9459 e) ac_cv_search_setsockopt=no ;;
9460 esac
9461 fi
9462 rm conftest.$ac_ext
9463 LIBS=$ac_func_search_save_LIBS ;;
9464 esac
9465 fi
9466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
9467 printf "%s\n" "$ac_cv_search_setsockopt" >&6; }
9468 ac_res=$ac_cv_search_setsockopt
9469 if test "$ac_res" != no
9470 then :
9471 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9472 :
9473 else case e in #(
9474 e) as_fn_error $? "can't find setsockopt" "$LINENO" 5 ;;
9475 esac
9476 fi
9477
9478
9479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing __b64_pton" >&5
9480 printf %s "checking for library containing __b64_pton... " >&6; }
9481 if test ${ac_cv_search___b64_pton+y}
9482 then :
9483 printf %s "(cached) " >&6
9484 else case e in #(
9485 e) ac_func_search_save_LIBS=$LIBS
9486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9487 /* end confdefs.h. */
9488
9489 /* Override any GCC internal prototype to avoid an error.
9490 Use char because int might match the return type of a GCC
9491 builtin and then its argument prototype would still apply.
9492 The 'extern "C"' is for builds by C++ compilers;
9493 although this is not generally supported in C code supporting it here
9494 has little cost and some practical benefit (sr 110532). */
9495 #ifdef __cplusplus
9496 extern "C"
9497 #endif
9498 char __b64_pton (void);
9499 int
9500 main (void)
9501 {
9502 return __b64_pton ();
9503 ;
9504 return 0;
9505 }
9506 _ACEOF
9507 for ac_lib in '' resolv
9508 do
9509 if test -z "$ac_lib"; then
9510 ac_res="none required"
9511 else
9512 ac_res=-l$ac_lib
9513 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9514 fi
9515 if ac_fn_c_try_link "$LINENO"
9516 then :
9517 ac_cv_search___b64_pton=$ac_res
9518 fi
9519 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9520 conftest$ac_exeext
9521 if test ${ac_cv_search___b64_pton+y}
9522 then :
9523 break
9524 fi
9525 done
9526 if test ${ac_cv_search___b64_pton+y}
9527 then :
9528
9529 else case e in #(
9530 e) ac_cv_search___b64_pton=no ;;
9531 esac
9532 fi
9533 rm conftest.$ac_ext
9534 LIBS=$ac_func_search_save_LIBS ;;
9535 esac
9536 fi
9537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___b64_pton" >&5
9538 printf "%s\n" "$ac_cv_search___b64_pton" >&6; }
9539 ac_res=$ac_cv_search___b64_pton
9540 if test "$ac_res" != no
9541 then :
9542 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9543
9544 printf "%s\n" "#define HAVE___B64_PTON 1" >>confdefs.h
9545
9546 fi
9547
9548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing b64_pton" >&5
9549 printf %s "checking for library containing b64_pton... " >&6; }
9550 if test ${ac_cv_search_b64_pton+y}
9551 then :
9552 printf %s "(cached) " >&6
9553 else case e in #(
9554 e) ac_func_search_save_LIBS=$LIBS
9555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9556 /* end confdefs.h. */
9557
9558 /* Override any GCC internal prototype to avoid an error.
9559 Use char because int might match the return type of a GCC
9560 builtin and then its argument prototype would still apply.
9561 The 'extern "C"' is for builds by C++ compilers;
9562 although this is not generally supported in C code supporting it here
9563 has little cost and some practical benefit (sr 110532). */
9564 #ifdef __cplusplus
9565 extern "C"
9566 #endif
9567 char b64_pton (void);
9568 int
9569 main (void)
9570 {
9571 return b64_pton ();
9572 ;
9573 return 0;
9574 }
9575 _ACEOF
9576 for ac_lib in '' resolv
9577 do
9578 if test -z "$ac_lib"; then
9579 ac_res="none required"
9580 else
9581 ac_res=-l$ac_lib
9582 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9583 fi
9584 if ac_fn_c_try_link "$LINENO"
9585 then :
9586 ac_cv_search_b64_pton=$ac_res
9587 fi
9588 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9589 conftest$ac_exeext
9590 if test ${ac_cv_search_b64_pton+y}
9591 then :
9592 break
9593 fi
9594 done
9595 if test ${ac_cv_search_b64_pton+y}
9596 then :
9597
9598 else case e in #(
9599 e) ac_cv_search_b64_pton=no ;;
9600 esac
9601 fi
9602 rm conftest.$ac_ext
9603 LIBS=$ac_func_search_save_LIBS ;;
9604 esac
9605 fi
9606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_b64_pton" >&5
9607 printf "%s\n" "$ac_cv_search_b64_pton" >&6; }
9608 ac_res=$ac_cv_search_b64_pton
9609 if test "$ac_res" != no
9610 then :
9611 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9612
9613 printf "%s\n" "#define HAVE_b64_PTON 1" >>confdefs.h
9614
9615 fi
9616
9617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing __b64_ntop" >&5
9618 printf %s "checking for library containing __b64_ntop... " >&6; }
9619 if test ${ac_cv_search___b64_ntop+y}
9620 then :
9621 printf %s "(cached) " >&6
9622 else case e in #(
9623 e) ac_func_search_save_LIBS=$LIBS
9624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9625 /* end confdefs.h. */
9626
9627 /* Override any GCC internal prototype to avoid an error.
9628 Use char because int might match the return type of a GCC
9629 builtin and then its argument prototype would still apply.
9630 The 'extern "C"' is for builds by C++ compilers;
9631 although this is not generally supported in C code supporting it here
9632 has little cost and some practical benefit (sr 110532). */
9633 #ifdef __cplusplus
9634 extern "C"
9635 #endif
9636 char __b64_ntop (void);
9637 int
9638 main (void)
9639 {
9640 return __b64_ntop ();
9641 ;
9642 return 0;
9643 }
9644 _ACEOF
9645 for ac_lib in '' resolv
9646 do
9647 if test -z "$ac_lib"; then
9648 ac_res="none required"
9649 else
9650 ac_res=-l$ac_lib
9651 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9652 fi
9653 if ac_fn_c_try_link "$LINENO"
9654 then :
9655 ac_cv_search___b64_ntop=$ac_res
9656 fi
9657 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9658 conftest$ac_exeext
9659 if test ${ac_cv_search___b64_ntop+y}
9660 then :
9661 break
9662 fi
9663 done
9664 if test ${ac_cv_search___b64_ntop+y}
9665 then :
9666
9667 else case e in #(
9668 e) ac_cv_search___b64_ntop=no ;;
9669 esac
9670 fi
9671 rm conftest.$ac_ext
9672 LIBS=$ac_func_search_save_LIBS ;;
9673 esac
9674 fi
9675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___b64_ntop" >&5
9676 printf "%s\n" "$ac_cv_search___b64_ntop" >&6; }
9677 ac_res=$ac_cv_search___b64_ntop
9678 if test "$ac_res" != no
9679 then :
9680 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9681
9682 printf "%s\n" "#define HAVE___B64_NTOP 1" >>confdefs.h
9683
9684 fi
9685
9686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing b64_ntop" >&5
9687 printf %s "checking for library containing b64_ntop... " >&6; }
9688 if test ${ac_cv_search_b64_ntop+y}
9689 then :
9690 printf %s "(cached) " >&6
9691 else case e in #(
9692 e) ac_func_search_save_LIBS=$LIBS
9693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9694 /* end confdefs.h. */
9695
9696 /* Override any GCC internal prototype to avoid an error.
9697 Use char because int might match the return type of a GCC
9698 builtin and then its argument prototype would still apply.
9699 The 'extern "C"' is for builds by C++ compilers;
9700 although this is not generally supported in C code supporting it here
9701 has little cost and some practical benefit (sr 110532). */
9702 #ifdef __cplusplus
9703 extern "C"
9704 #endif
9705 char b64_ntop (void);
9706 int
9707 main (void)
9708 {
9709 return b64_ntop ();
9710 ;
9711 return 0;
9712 }
9713 _ACEOF
9714 for ac_lib in '' resolv
9715 do
9716 if test -z "$ac_lib"; then
9717 ac_res="none required"
9718 else
9719 ac_res=-l$ac_lib
9720 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9721 fi
9722 if ac_fn_c_try_link "$LINENO"
9723 then :
9724 ac_cv_search_b64_ntop=$ac_res
9725 fi
9726 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9727 conftest$ac_exeext
9728 if test ${ac_cv_search_b64_ntop+y}
9729 then :
9730 break
9731 fi
9732 done
9733 if test ${ac_cv_search_b64_ntop+y}
9734 then :
9735
9736 else case e in #(
9737 e) ac_cv_search_b64_ntop=no ;;
9738 esac
9739 fi
9740 rm conftest.$ac_ext
9741 LIBS=$ac_func_search_save_LIBS ;;
9742 esac
9743 fi
9744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_b64_ntop" >&5
9745 printf "%s\n" "$ac_cv_search_b64_ntop" >&6; }
9746 ac_res=$ac_cv_search_b64_ntop
9747 if test "$ac_res" != no
9748 then :
9749 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9750
9751 printf "%s\n" "#define HAVE_b64_NTOP 1" >>confdefs.h
9752
9753 fi
9754
9755
9756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_b64_pton" >&5
9757 printf %s "checking for library containing res_9_b64_pton... " >&6; }
9758 if test ${ac_cv_search_res_9_b64_pton+y}
9759 then :
9760 printf %s "(cached) " >&6
9761 else case e in #(
9762 e) ac_func_search_save_LIBS=$LIBS
9763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764 /* end confdefs.h. */
9765
9766 /* Override any GCC internal prototype to avoid an error.
9767 Use char because int might match the return type of a GCC
9768 builtin and then its argument prototype would still apply.
9769 The 'extern "C"' is for builds by C++ compilers;
9770 although this is not generally supported in C code supporting it here
9771 has little cost and some practical benefit (sr 110532). */
9772 #ifdef __cplusplus
9773 extern "C"
9774 #endif
9775 char res_9_b64_pton (void);
9776 int
9777 main (void)
9778 {
9779 return res_9_b64_pton ();
9780 ;
9781 return 0;
9782 }
9783 _ACEOF
9784 for ac_lib in '' resolv
9785 do
9786 if test -z "$ac_lib"; then
9787 ac_res="none required"
9788 else
9789 ac_res=-l$ac_lib
9790 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9791 fi
9792 if ac_fn_c_try_link "$LINENO"
9793 then :
9794 ac_cv_search_res_9_b64_pton=$ac_res
9795 fi
9796 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9797 conftest$ac_exeext
9798 if test ${ac_cv_search_res_9_b64_pton+y}
9799 then :
9800 break
9801 fi
9802 done
9803 if test ${ac_cv_search_res_9_b64_pton+y}
9804 then :
9805
9806 else case e in #(
9807 e) ac_cv_search_res_9_b64_pton=no ;;
9808 esac
9809 fi
9810 rm conftest.$ac_ext
9811 LIBS=$ac_func_search_save_LIBS ;;
9812 esac
9813 fi
9814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_b64_pton" >&5
9815 printf "%s\n" "$ac_cv_search_res_9_b64_pton" >&6; }
9816 ac_res=$ac_cv_search_res_9_b64_pton
9817 if test "$ac_res" != no
9818 then :
9819 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9820
9821 printf "%s\n" "#define HAVE_RES_9_B64_PTON 1" >>confdefs.h
9822
9823 fi
9824
9825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_b64_ntop" >&5
9826 printf %s "checking for library containing res_9_b64_ntop... " >&6; }
9827 if test ${ac_cv_search_res_9_b64_ntop+y}
9828 then :
9829 printf %s "(cached) " >&6
9830 else case e in #(
9831 e) ac_func_search_save_LIBS=$LIBS
9832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9833 /* end confdefs.h. */
9834
9835 /* Override any GCC internal prototype to avoid an error.
9836 Use char because int might match the return type of a GCC
9837 builtin and then its argument prototype would still apply.
9838 The 'extern "C"' is for builds by C++ compilers;
9839 although this is not generally supported in C code supporting it here
9840 has little cost and some practical benefit (sr 110532). */
9841 #ifdef __cplusplus
9842 extern "C"
9843 #endif
9844 char res_9_b64_ntop (void);
9845 int
9846 main (void)
9847 {
9848 return res_9_b64_ntop ();
9849 ;
9850 return 0;
9851 }
9852 _ACEOF
9853 for ac_lib in '' resolv
9854 do
9855 if test -z "$ac_lib"; then
9856 ac_res="none required"
9857 else
9858 ac_res=-l$ac_lib
9859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9860 fi
9861 if ac_fn_c_try_link "$LINENO"
9862 then :
9863 ac_cv_search_res_9_b64_ntop=$ac_res
9864 fi
9865 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9866 conftest$ac_exeext
9867 if test ${ac_cv_search_res_9_b64_ntop+y}
9868 then :
9869 break
9870 fi
9871 done
9872 if test ${ac_cv_search_res_9_b64_ntop+y}
9873 then :
9874
9875 else case e in #(
9876 e) ac_cv_search_res_9_b64_ntop=no ;;
9877 esac
9878 fi
9879 rm conftest.$ac_ext
9880 LIBS=$ac_func_search_save_LIBS ;;
9881 esac
9882 fi
9883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_b64_ntop" >&5
9884 printf "%s\n" "$ac_cv_search_res_9_b64_ntop" >&6; }
9885 ac_res=$ac_cv_search_res_9_b64_ntop
9886 if test "$ac_res" != no
9887 then :
9888 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9889
9890 printf "%s\n" "#define HAVE_RES_9_B64_NTOP 1" >>confdefs.h
9891
9892 fi
9893
9894
9895 if test "x$ac_cv_search_b64_ntop" = "xno" -a \
9896 "x$ac_cv_search___b64_ntop" = "xno" -a \
9897 "x$ac_cv_search_res_9_b64_pton" = "xno" -a \
9898 "x$ac_cv_search_res_9_b64_ntop" = "xno"
9899 then :
9900
9901 case " $LIBOBJS " in
9902 *" base64.$ac_objext "* ) ;;
9903 *) LIBOBJS="$LIBOBJS base64.$ac_objext"
9904 ;;
9905 esac
9906
9907
9908 fi
9909
9910 if test "x$ac_cv_func_strnvis" = xyes
9911 then :
9912
9913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken strnvis" >&5
9914 printf %s "checking for broken strnvis... " >&6; }
9915
9916 saved_CFLAGS="$CFLAGS"
9917 CFLAGS="$CFLAGS -Wall -Werror"
9918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9919 /* end confdefs.h. */
9920
9921 #include <stdio.h>
9922 #include <stdlib.h>
9923 #include <vis.h>
9924
9925 int
9926 main (void)
9927 {
9928
9929 char buf[128];
9930 return (strnvis(buf, "Hello, world!\n", sizeof(buf), 0));
9931
9932 ;
9933 return 0;
9934 }
9935 _ACEOF
9936 if ac_fn_c_try_compile "$LINENO"
9937 then :
9938
9939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9940 printf "%s\n" "no" >&6; }
9941
9942 else case e in #(
9943 e)
9944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9945 printf "%s\n" "yes" >&6; }
9946
9947 printf "%s\n" "#define BROKEN_STRNVIS 1" >>confdefs.h
9948
9949 case " $LIBOBJS " in
9950 *" vis.$ac_objext "* ) ;;
9951 *) LIBOBJS="$LIBOBJS vis.$ac_objext"
9952 ;;
9953 esac
9954
9955 ;;
9956 esac
9957 fi
9958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9959 CFLAGS="$saved_CFLAGS"
9960
9961 fi
9962 if test "x$ac_cv_func_strnvis" = xno
9963 then :
9964 case " $LIBOBJS " in
9965 *" vis.$ac_objext "* ) ;;
9966 *) LIBOBJS="$LIBOBJS vis.$ac_objext"
9967 ;;
9968 esac
9969
9970 fi
9971
9972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5
9973 printf %s "checking for /proc/pid/fd directory... " >&6; }
9974 if test -d "/proc/$$/fd"
9975 then :
9976
9977
9978 printf "%s\n" "#define HAVE_PROC_PID 1" >>confdefs.h
9979
9980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9981 printf "%s\n" "yes" >&6; }
9982
9983 else case e in #(
9984 e)
9985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9986 printf "%s\n" "no" >&6; }
9987 ;;
9988 esac
9989 fi
9990
9991 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
9992 if test "x$ac_cv_type_long_long" = xyes
9993 then :
9994
9995 printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h
9996
9997
9998 fi
9999 ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
10000 if test "x$ac_cv_type_unsigned_long_long" = xyes
10001 then :
10002
10003 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
10004
10005
10006 fi
10007 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
10008 if test "x$ac_cv_type_long_double" = xyes
10009 then :
10010
10011 printf "%s\n" "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
10012
10013
10014 fi
10015 ac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default"
10016 if test "x$ac_cv_type_u_int" = xyes
10017 then :
10018
10019 printf "%s\n" "#define HAVE_U_INT 1" >>confdefs.h
10020
10021
10022 fi
10023 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "$ac_includes_default"
10024 if test "x$ac_cv_type_u_char" = xyes
10025 then :
10026
10027 printf "%s\n" "#define HAVE_U_CHAR 1" >>confdefs.h
10028
10029
10030 fi
10031
10032 # The cast to long int works around a bug in the HP C Compiler
10033 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10034 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
10035 # This bug is HP SR number 8606223364.
10036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
10037 printf %s "checking size of short int... " >&6; }
10038 if test ${ac_cv_sizeof_short_int+y}
10039 then :
10040 printf %s "(cached) " >&6
10041 else case e in #(
10042 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"
10043 then :
10044
10045 else case e in #(
10046 e) if test "$ac_cv_type_short_int" = yes; then
10047 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
10048 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
10049 as_fn_error 77 "cannot compute sizeof (short int)
10050 See 'config.log' for more details" "$LINENO" 5; }
10051 else
10052 ac_cv_sizeof_short_int=0
10053 fi ;;
10054 esac
10055 fi
10056 ;;
10057 esac
10058 fi
10059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
10060 printf "%s\n" "$ac_cv_sizeof_short_int" >&6; }
10061
10062
10063
10064 printf "%s\n" "#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int" >>confdefs.h
10065
10066
10067 # The cast to long int works around a bug in the HP C Compiler
10068 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10069 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
10070 # This bug is HP SR number 8606223364.
10071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10072 printf %s "checking size of int... " >&6; }
10073 if test ${ac_cv_sizeof_int+y}
10074 then :
10075 printf %s "(cached) " >&6
10076 else case e in #(
10077 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
10078 then :
10079
10080 else case e in #(
10081 e) if test "$ac_cv_type_int" = yes; then
10082 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
10083 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
10084 as_fn_error 77 "cannot compute sizeof (int)
10085 See 'config.log' for more details" "$LINENO" 5; }
10086 else
10087 ac_cv_sizeof_int=0
10088 fi ;;
10089 esac
10090 fi
10091 ;;
10092 esac
10093 fi
10094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10095 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
10096
10097
10098
10099 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
10100
10101
10102 # The cast to long int works around a bug in the HP C Compiler
10103 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10104 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
10105 # This bug is HP SR number 8606223364.
10106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
10107 printf %s "checking size of long int... " >&6; }
10108 if test ${ac_cv_sizeof_long_int+y}
10109 then :
10110 printf %s "(cached) " >&6
10111 else case e in #(
10112 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"
10113 then :
10114
10115 else case e in #(
10116 e) if test "$ac_cv_type_long_int" = yes; then
10117 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
10118 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
10119 as_fn_error 77 "cannot compute sizeof (long int)
10120 See 'config.log' for more details" "$LINENO" 5; }
10121 else
10122 ac_cv_sizeof_long_int=0
10123 fi ;;
10124 esac
10125 fi
10126 ;;
10127 esac
10128 fi
10129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
10130 printf "%s\n" "$ac_cv_sizeof_long_int" >&6; }
10131
10132
10133
10134 printf "%s\n" "#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int" >>confdefs.h
10135
10136
10137 # The cast to long int works around a bug in the HP C Compiler
10138 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10139 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
10140 # This bug is HP SR number 8606223364.
10141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
10142 printf %s "checking size of long long int... " >&6; }
10143 if test ${ac_cv_sizeof_long_long_int+y}
10144 then :
10145 printf %s "(cached) " >&6
10146 else case e in #(
10147 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"
10148 then :
10149
10150 else case e in #(
10151 e) if test "$ac_cv_type_long_long_int" = yes; then
10152 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
10153 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
10154 as_fn_error 77 "cannot compute sizeof (long long int)
10155 See 'config.log' for more details" "$LINENO" 5; }
10156 else
10157 ac_cv_sizeof_long_long_int=0
10158 fi ;;
10159 esac
10160 fi
10161 ;;
10162 esac
10163 fi
10164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
10165 printf "%s\n" "$ac_cv_sizeof_long_long_int" >&6; }
10166
10167
10168
10169 printf "%s\n" "#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int" >>confdefs.h
10170
10171
10172
10173 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
10174 case $ac_cv_c_int8_t in #(
10175 no|yes) ;; #(
10176 *)
10177
10178 printf "%s\n" "#define int8_t $ac_cv_c_int8_t" >>confdefs.h
10179 ;;
10180 esac
10181
10182 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
10183 case $ac_cv_c_int16_t in #(
10184 no|yes) ;; #(
10185 *)
10186
10187 printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h
10188 ;;
10189 esac
10190
10191 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
10192 case $ac_cv_c_int32_t in #(
10193 no|yes) ;; #(
10194 *)
10195
10196 printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
10197 ;;
10198 esac
10199
10200 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
10201 case $ac_cv_c_int64_t in #(
10202 no|yes) ;; #(
10203 *)
10204
10205 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
10206 ;;
10207 esac
10208
10209 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
10210 case $ac_cv_c_uint8_t in #(
10211 no|yes) ;; #(
10212 *)
10213
10214 printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
10215
10216
10217 printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
10218 ;;
10219 esac
10220
10221 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
10222 case $ac_cv_c_uint16_t in #(
10223 no|yes) ;; #(
10224 *)
10225
10226
10227 printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
10228 ;;
10229 esac
10230
10231 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
10232 case $ac_cv_c_uint32_t in #(
10233 no|yes) ;; #(
10234 *)
10235
10236 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
10237
10238
10239 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
10240 ;;
10241 esac
10242
10243 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
10244 case $ac_cv_c_uint64_t in #(
10245 no|yes) ;; #(
10246 *)
10247
10248 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
10249
10250
10251 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
10252 ;;
10253 esac
10254
10255
10256 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10257 if test "x$ac_cv_type_intptr_t" = xyes
10258 then :
10259
10260 printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
10261
10262 else case e in #(
10263 e) for ac_type in 'int' 'long int' 'long long int'; do
10264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10265 /* end confdefs.h. */
10266 $ac_includes_default
10267 int
10268 main (void)
10269 {
10270 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
10271 test_array [0] = 0;
10272 return test_array [0];
10273
10274 ;
10275 return 0;
10276 }
10277 _ACEOF
10278 if ac_fn_c_try_compile "$LINENO"
10279 then :
10280
10281 printf "%s\n" "#define intptr_t $ac_type" >>confdefs.h
10282
10283 ac_type=
10284 fi
10285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10286 test -z "$ac_type" && break
10287 done ;;
10288 esac
10289 fi
10290
10291
10292
10293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
10294 printf %s "checking for unsigned long long int... " >&6; }
10295 if test ${ac_cv_type_unsigned_long_long_int+y}
10296 then :
10297 printf %s "(cached) " >&6
10298 else case e in #(
10299 e) ac_cv_type_unsigned_long_long_int=yes
10300 case $ac_prog_cc_stdc in
10301 no | c89) ;;
10302 *)
10303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10304 /* end confdefs.h. */
10305
10306 /* For now, do not test the preprocessor; as of 2007 there are too many
10307 implementations with broken preprocessors. Perhaps this can
10308 be revisited in 2012. In the meantime, code should not expect
10309 #if to work with literals wider than 32 bits. */
10310 /* Test literals. */
10311 long long int ll = 9223372036854775807ll;
10312 long long int nll = -9223372036854775807LL;
10313 unsigned long long int ull = 18446744073709551615ULL;
10314 /* Test constant expressions. */
10315 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10316 ? 1 : -1)];
10317 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
10318 ? 1 : -1)];
10319 int i = 63;
10320 int
10321 main (void)
10322 {
10323 /* Test availability of runtime routines for shift and division. */
10324 long long int llmax = 9223372036854775807ll;
10325 unsigned long long int ullmax = 18446744073709551615ull;
10326 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
10327 | (llmax / ll) | (llmax % ll)
10328 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
10329 | (ullmax / ull) | (ullmax % ull));
10330 ;
10331 return 0;
10332 }
10333
10334 _ACEOF
10335 if ac_fn_c_try_link "$LINENO"
10336 then :
10337
10338 else case e in #(
10339 e) ac_cv_type_unsigned_long_long_int=no ;;
10340 esac
10341 fi
10342 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10343 conftest$ac_exeext conftest.$ac_ext;;
10344 esac ;;
10345 esac
10346 fi
10347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
10348 printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
10349 if test $ac_cv_type_unsigned_long_long_int = yes; then
10350
10351 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
10352
10353 fi
10354
10355
10356
10357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10358 printf %s "checking for long long int... " >&6; }
10359 if test ${ac_cv_type_long_long_int+y}
10360 then :
10361 printf %s "(cached) " >&6
10362 else case e in #(
10363 e) ac_cv_type_long_long_int=yes
10364 case $ac_prog_cc_stdc in
10365 no | c89) ;;
10366 *)
10367 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
10368 if test $ac_cv_type_long_long_int = yes; then
10369 if test "$cross_compiling" = yes
10370 then :
10371 :
10372 else case e in #(
10373 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10374 /* end confdefs.h. */
10375 #include <limits.h>
10376 #ifndef LLONG_MAX
10377 # define HALF \\
10378 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10379 # define LLONG_MAX (HALF - 1 + HALF)
10380 #endif
10381 int
10382 main (void)
10383 {
10384 long long int n = 1;
10385 int i;
10386 for (i = 0; ; i++)
10387 {
10388 long long int m = n << i;
10389 if (m >> i != n)
10390 return 1;
10391 if (LLONG_MAX / 2 < m)
10392 break;
10393 }
10394 return 0;
10395 ;
10396 return 0;
10397 }
10398 _ACEOF
10399 if ac_fn_c_try_run "$LINENO"
10400 then :
10401
10402 else case e in #(
10403 e) ac_cv_type_long_long_int=no ;;
10404 esac
10405 fi
10406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10407 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10408 esac
10409 fi
10410
10411 fi;;
10412 esac ;;
10413 esac
10414 fi
10415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
10416 printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
10417 if test $ac_cv_type_long_long_int = yes; then
10418
10419 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
10420
10421 fi
10422
10423
10424
10425 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
10426 if test "x$ac_cv_type_intmax_t" = xyes
10427 then :
10428
10429 printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
10430
10431 else case e in #(
10432 e) test $ac_cv_type_long_long_int = yes \
10433 && ac_type='long long int' \
10434 || ac_type='long int'
10435
10436 printf "%s\n" "#define intmax_t $ac_type" >>confdefs.h
10437 ;;
10438 esac
10439 fi
10440
10441
10442
10443 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10444 if test "x$ac_cv_type_uintptr_t" = xyes
10445 then :
10446
10447 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
10448
10449 else case e in #(
10450 e) for ac_type in 'unsigned int' 'unsigned long int' \
10451 'unsigned long long int'; do
10452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10453 /* end confdefs.h. */
10454 $ac_includes_default
10455 int
10456 main (void)
10457 {
10458 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
10459 test_array [0] = 0;
10460 return test_array [0];
10461
10462 ;
10463 return 0;
10464 }
10465 _ACEOF
10466 if ac_fn_c_try_compile "$LINENO"
10467 then :
10468
10469 printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
10470
10471 ac_type=
10472 fi
10473 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10474 test -z "$ac_type" && break
10475 done ;;
10476 esac
10477 fi
10478
10479
10480
10481
10482 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
10483 if test "x$ac_cv_type_uintmax_t" = xyes
10484 then :
10485
10486 printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h
10487
10488 else case e in #(
10489 e) test $ac_cv_type_unsigned_long_long_int = yes \
10490 && ac_type='unsigned long long int' \
10491 || ac_type='unsigned long int'
10492
10493 printf "%s\n" "#define uintmax_t $ac_type" >>confdefs.h
10494 ;;
10495 esac
10496 fi
10497
10498
10499 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
10500 if test "x$ac_cv_type_size_t" = xyes
10501 then :
10502
10503 else case e in #(
10504 e)
10505 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
10506 ;;
10507 esac
10508 fi
10509
10510 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10511 if test "x$ac_cv_type_ssize_t" = xyes
10512 then :
10513
10514 else case e in #(
10515 e)
10516 printf "%s\n" "#define ssize_t int" >>confdefs.h
10517 ;;
10518 esac
10519 fi
10520
10521 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
10522 if test "x$ac_cv_type_off_t" = xyes
10523 then :
10524
10525 else case e in #(
10526 e)
10527 printf "%s\n" "#define off_t long int" >>confdefs.h
10528 ;;
10529 esac
10530 fi
10531
10532 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
10533 if test "x$ac_cv_type_mode_t" = xyes
10534 then :
10535
10536 else case e in #(
10537 e)
10538 printf "%s\n" "#define mode_t int" >>confdefs.h
10539 ;;
10540 esac
10541 fi
10542
10543
10544 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
10545 "
10546 if test "x$ac_cv_type_pid_t" = xyes
10547 then :
10548
10549 else case e in #(
10550 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10551 /* end confdefs.h. */
10552
10553 #if defined _WIN64 && !defined __CYGWIN__
10554 LLP64
10555 #endif
10556
10557 int
10558 main (void)
10559 {
10560
10561 ;
10562 return 0;
10563 }
10564
10565 _ACEOF
10566 if ac_fn_c_try_compile "$LINENO"
10567 then :
10568 ac_pid_type='int'
10569 else case e in #(
10570 e) ac_pid_type='__int64' ;;
10571 esac
10572 fi
10573 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10574
10575 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
10576
10577 ;;
10578 esac
10579 fi
10580
10581
10582 ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default"
10583 if test "x$ac_cv_type_uid_t" = xyes
10584 then :
10585
10586 else case e in #(
10587 e)
10588 printf "%s\n" "#define uid_t int" >>confdefs.h
10589 ;;
10590 esac
10591 fi
10592
10593 ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default"
10594 if test "x$ac_cv_type_gid_t" = xyes
10595 then :
10596
10597 else case e in #(
10598 e)
10599 printf "%s\n" "#define gid_t int" >>confdefs.h
10600 ;;
10601 esac
10602 fi
10603
10604
10605
10606 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
10607 #include <sys/socket.h>
10608 "
10609 if test "x$ac_cv_type_socklen_t" = xyes
10610 then :
10611
10612 else case e in #(
10613 e)
10614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
10615 printf %s "checking for socklen_t equivalent... " >&6; }
10616 if test ${curl_cv_socklen_t_equiv+y}
10617 then :
10618 printf %s "(cached) " >&6
10619 else case e in #(
10620 e)
10621 # Systems have either "struct sockaddr *" or
10622 # "void *" as the second argument to getpeername
10623 curl_cv_socklen_t_equiv=
10624 for arg2 in "struct sockaddr" void; do
10625 for t in int size_t unsigned long "unsigned long"; do
10626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627 /* end confdefs.h. */
10628
10629
10630 #include <sys/types.h>
10631 #include <sys/socket.h>
10632 int getpeername (int, $arg2 *, $t *);
10633
10634 int
10635 main (void)
10636 {
10637
10638 $t len;
10639 getpeername(0,0,&len);
10640
10641 ;
10642 return 0;
10643 }
10644
10645 _ACEOF
10646 if ac_fn_c_try_compile "$LINENO"
10647 then :
10648
10649 curl_cv_socklen_t_equiv="$t"
10650 break
10651
10652 fi
10653 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10654 done
10655 done
10656
10657 if test "x$curl_cv_socklen_t_equiv" = x; then
10658 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
10659 fi
10660 ;;
10661 esac
10662 fi
10663
10664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
10665 printf "%s\n" "$curl_cv_socklen_t_equiv" >&6; }
10666
10667 printf "%s\n" "#define socklen_t $curl_cv_socklen_t_equiv" >>confdefs.h
10668 ;;
10669 esac
10670 fi
10671
10672
10673
10674 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
10675 #include <signal.h>
10676
10677 "
10678 if test "x$ac_cv_type_sig_atomic_t" = xyes
10679 then :
10680
10681 printf "%s\n" "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
10682
10683
10684 fi
10685
10686 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "
10687 #include <sys/types.h>
10688 #ifdef HAVE_SYS_BITYPES_H
10689 #include <sys/bitypes.h>
10690 #endif
10691 #ifdef HAVE_SYS_STATFS_H
10692 #include <sys/statfs.h>
10693 #endif
10694 #ifdef HAVE_SYS_STATVFS_H
10695 #include <sys/statvfs.h>
10696 #endif
10697
10698 "
10699 if test "x$ac_cv_type_fsblkcnt_t" = xyes
10700 then :
10701
10702 printf "%s\n" "#define HAVE_FSBLKCNT_T 1" >>confdefs.h
10703
10704
10705 fi
10706 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "
10707 #include <sys/types.h>
10708 #ifdef HAVE_SYS_BITYPES_H
10709 #include <sys/bitypes.h>
10710 #endif
10711 #ifdef HAVE_SYS_STATFS_H
10712 #include <sys/statfs.h>
10713 #endif
10714 #ifdef HAVE_SYS_STATVFS_H
10715 #include <sys/statvfs.h>
10716 #endif
10717
10718 "
10719 if test "x$ac_cv_type_fsfilcnt_t" = xyes
10720 then :
10721
10722 printf "%s\n" "#define HAVE_FSFILCNT_T 1" >>confdefs.h
10723
10724
10725 fi
10726
10727
10728 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
10729 #include <sys/types.h>
10730 #include <netinet/in.h>
10731
10732 "
10733 if test "x$ac_cv_type_in_addr_t" = xyes
10734 then :
10735
10736 printf "%s\n" "#define HAVE_IN_ADDR_T 1" >>confdefs.h
10737
10738
10739 fi
10740 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
10741 #include <sys/types.h>
10742 #include <netinet/in.h>
10743
10744 "
10745 if test "x$ac_cv_type_in_port_t" = xyes
10746 then :
10747
10748 printf "%s\n" "#define HAVE_IN_PORT_T 1" >>confdefs.h
10749
10750
10751 fi
10752
10753
10754 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
10755 #include <sys/types.h>
10756 #include <sys/socket.h>
10757 #include <netinet/in.h>
10758
10759 "
10760 if test "x$ac_cv_type_sa_family_t" = xyes
10761 then :
10762
10763 printf "%s\n" "#define HAVE_SA_FAMILY_T 1" >>confdefs.h
10764
10765
10766 fi
10767
10768
10769 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
10770 if test "x$ac_cv_type_struct_timespec" = xyes
10771 then :
10772
10773 printf "%s\n" "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
10774
10775
10776 fi
10777
10778 ac_fn_c_check_type "$LINENO" "struct ifgroupreq" "ac_cv_type_struct_ifgroupreq" "$ac_includes_default"
10779 if test "x$ac_cv_type_struct_ifgroupreq" = xyes
10780 then :
10781
10782 printf "%s\n" "#define HAVE_STRUCT_IFGROUPREQ 1" >>confdefs.h
10783
10784
10785 fi
10786
10787 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
10788 #include <sys/types.h>
10789 #include <sys/socket.h>
10790
10791 "
10792 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
10793 then :
10794
10795 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
10796
10797
10798 fi
10799
10800 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
10801 #include <sys/types.h>
10802 #include <netinet/in.h>
10803
10804 "
10805 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes
10806 then :
10807
10808 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
10809
10810
10811 fi
10812
10813 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
10814 #include <sys/types.h>
10815 #include <netinet/in.h>
10816
10817 "
10818 if test "x$ac_cv_type_struct_in6_addr" = xyes
10819 then :
10820
10821 printf "%s\n" "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
10822
10823
10824 fi
10825
10826 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
10827 #include <sys/types.h>
10828 #include <sys/socket.h>
10829 #include <netdb.h>
10830
10831 "
10832 if test "x$ac_cv_type_struct_addrinfo" = xyes
10833 then :
10834
10835 printf "%s\n" "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
10836
10837
10838 fi
10839
10840 ac_fn_c_check_type "$LINENO" "struct timeval" "ac_cv_type_struct_timeval" "
10841 #include <sys/time.h>
10842
10843 "
10844 if test "x$ac_cv_type_struct_timeval" = xyes
10845 then :
10846
10847 printf "%s\n" "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
10848
10849
10850 fi
10851
10852 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
10853 #ifdef HAVE_SYS_TYPES_H
10854 #include <sys/types.h>
10855 #endif
10856 #include <netinet/in.h>
10857
10858 "
10859 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes
10860 then :
10861
10862 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
10863
10864
10865 fi
10866
10867
10868 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "
10869 #include <sys/types.h>
10870 #include <pwd.h>
10871
10872 "
10873 if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes
10874 then :
10875
10876 printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_GECOS 1" >>confdefs.h
10877
10878
10879 fi
10880 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_class" "ac_cv_member_struct_passwd_pw_class" "
10881 #include <sys/types.h>
10882 #include <pwd.h>
10883
10884 "
10885 if test "x$ac_cv_member_struct_passwd_pw_class" = xyes
10886 then :
10887
10888 printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_CLASS 1" >>confdefs.h
10889
10890
10891 fi
10892 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_change" "ac_cv_member_struct_passwd_pw_change" "
10893 #include <sys/types.h>
10894 #include <pwd.h>
10895
10896 "
10897 if test "x$ac_cv_member_struct_passwd_pw_change" = xyes
10898 then :
10899
10900 printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_CHANGE 1" >>confdefs.h
10901
10902
10903 fi
10904 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_expire" "ac_cv_member_struct_passwd_pw_expire" "
10905 #include <sys/types.h>
10906 #include <pwd.h>
10907
10908 "
10909 if test "x$ac_cv_member_struct_passwd_pw_expire" = xyes
10910 then :
10911
10912 printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_EXPIRE 1" >>confdefs.h
10913
10914
10915 fi
10916
10917
10918 ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" " #include <sys/types.h>
10919 #include <sys/stat.h>
10920
10921 "
10922 if test "x$ac_cv_member_struct_stat_st_flags" = xyes
10923 then :
10924
10925 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_FLAGS 1" >>confdefs.h
10926
10927
10928 fi
10929
10930
10931 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" " #include <sys/types.h>
10932 #include <sys/stat.h>
10933
10934 "
10935 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
10936 then :
10937
10938 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
10939
10940
10941 fi
10942
10943
10944 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" " #include <sys/types.h>
10945 #include <sys/stat.h>
10946
10947 "
10948 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes
10949 then :
10950
10951 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIMESPEC 1" >>confdefs.h
10952
10953
10954 fi
10955
10956
10957 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " #include <netdb.h>
10958 #include <netinet/in.h>
10959 #include <sys/socket.h>
10960
10961 "
10962 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
10963 then :
10964
10965 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h
10966
10967
10968 fi
10969
10970
10971 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_len" "ac_cv_member_struct_sockaddr_storage_ss_len" " #include <netdb.h>
10972 #include <netinet/in.h>
10973 #include <sys/socket.h>
10974
10975 "
10976 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = xyes
10977 then :
10978
10979 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1" >>confdefs.h
10980
10981
10982 fi
10983
10984
10985 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " #include <netdb.h>
10986 #include <netinet/in.h>
10987 #include <sys/socket.h>
10988
10989 "
10990 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
10991 then :
10992
10993 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
10994
10995
10996 fi
10997
10998
10999 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" " #include <netdb.h>
11000 #include <netinet/in.h>
11001 #include <sys/socket.h>
11002
11003 "
11004 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes
11005 then :
11006
11007 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1" >>confdefs.h
11008
11009
11010 fi
11011
11012
11013 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" " #include <sys/vfs.h>
11014 #include <sys/statfs.h>
11015
11016 "
11017 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes
11018 then :
11019
11020 printf "%s\n" "#define HAVE_STRUCT_STATFS_F_FAVAIL 1" >>confdefs.h
11021
11022
11023 fi
11024
11025
11026 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "
11027 #include <sys/types.h>
11028 #include <sys/socket.h>
11029
11030 "
11031 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
11032 then :
11033
11034 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1" >>confdefs.h
11035
11036
11037 fi
11038
11039
11040 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "
11041 #include <sys/types.h>
11042 #include <sys/socket.h>
11043
11044 "
11045 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes
11046 then :
11047
11048 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1" >>confdefs.h
11049
11050
11051 fi
11052
11053
11054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
11055 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
11056 if test ${ac_cv_c_undeclared_builtin_options+y}
11057 then :
11058 printf %s "(cached) " >&6
11059 else case e in #(
11060 e) ac_save_CFLAGS=$CFLAGS
11061 ac_cv_c_undeclared_builtin_options='cannot detect'
11062 for ac_arg in '' -fno-builtin; do
11063 CFLAGS="$ac_save_CFLAGS $ac_arg"
11064 # This test program should *not* compile successfully.
11065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066 /* end confdefs.h. */
11067
11068 int
11069 main (void)
11070 {
11071 (void) strchr;
11072 ;
11073 return 0;
11074 }
11075 _ACEOF
11076 if ac_fn_c_try_compile "$LINENO"
11077 then :
11078
11079 else case e in #(
11080 e) # This test program should compile successfully.
11081 # No library function is consistently available on
11082 # freestanding implementations, so test against a dummy
11083 # declaration. Include always-available headers on the
11084 # off chance that they somehow elicit warnings.
11085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11086 /* end confdefs.h. */
11087 #include <float.h>
11088 #include <limits.h>
11089 #include <stdarg.h>
11090 #include <stddef.h>
11091 extern void ac_decl (int, char *);
11092
11093 int
11094 main (void)
11095 {
11096 (void) ac_decl (0, (char *) 0);
11097 (void) ac_decl;
11098
11099 ;
11100 return 0;
11101 }
11102 _ACEOF
11103 if ac_fn_c_try_compile "$LINENO"
11104 then :
11105 if test x"$ac_arg" = x
11106 then :
11107 ac_cv_c_undeclared_builtin_options='none needed'
11108 else case e in #(
11109 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
11110 esac
11111 fi
11112 break
11113 fi
11114 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11115 esac
11116 fi
11117 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11118 done
11119 CFLAGS=$ac_save_CFLAGS
11120 ;;
11121 esac
11122 fi
11123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
11124 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
11125 case $ac_cv_c_undeclared_builtin_options in #(
11126 'cannot detect') :
11127 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11128 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11129 as_fn_error $? "cannot make $CC report undeclared builtins
11130 See 'config.log' for more details" "$LINENO" 5; } ;; #(
11131 'none needed') :
11132 ac_c_undeclared_builtin_options='' ;; #(
11133 *) :
11134 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
11135 esac
11136
11137 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" " #include <time.h>
11138
11139 "
11140 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
11141 then :
11142
11143 printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h
11144
11145
11146 else case e in #(
11147 e)
11148 ac_fn_check_decl "$LINENO" "timezone" "ac_cv_have_decl_timezone" " #include <time.h>
11149
11150 " "$ac_c_undeclared_builtin_options" "CFLAGS"
11151 if test "x$ac_cv_have_decl_timezone" = xyes
11152 then :
11153 ac_have_decl=1
11154 else case e in #(
11155 e) ac_have_decl=0 ;;
11156 esac
11157 fi
11158 printf "%s\n" "#define HAVE_DECL_TIMEZONE $ac_have_decl" >>confdefs.h
11159 if test $ac_have_decl = 1
11160 then :
11161
11162 else case e in #(
11163 e) as_fn_error $? "cannot find timezone" "$LINENO" 5 ;;
11164 esac
11165 fi
11166 ac_fn_check_decl "$LINENO" "altzone" "ac_cv_have_decl_altzone" " #include <time.h>
11167
11168 " "$ac_c_undeclared_builtin_options" "CFLAGS"
11169 if test "x$ac_cv_have_decl_altzone" = xyes
11170 then :
11171 ac_have_decl=1
11172 else case e in #(
11173 e) ac_have_decl=0 ;;
11174 esac
11175 fi
11176 printf "%s\n" "#define HAVE_DECL_ALTZONE $ac_have_decl" >>confdefs.h
11177 if test $ac_have_decl = 1
11178 then :
11179
11180 else case e in #(
11181 e) as_fn_error $? "cannot find timezone" "$LINENO" 5 ;;
11182 esac
11183 fi
11184 ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" " #include <time.h>
11185
11186 " "$ac_c_undeclared_builtin_options" "CFLAGS"
11187 if test "x$ac_cv_have_decl_tzname" = xyes
11188 then :
11189 ac_have_decl=1
11190 else case e in #(
11191 e) ac_have_decl=0 ;;
11192 esac
11193 fi
11194 printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
11195 if test $ac_have_decl = 1
11196 then :
11197
11198 else case e in #(
11199 e) as_fn_error $? "cannot find timezone" "$LINENO" 5 ;;
11200 esac
11201 fi
11202
11203 ;;
11204 esac
11205 fi
11206 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" " #include <time.h>
11207
11208 "
11209 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
11210 then :
11211
11212 printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h
11213
11214
11215 else case e in #(
11216 e)
11217 ac_fn_check_decl "$LINENO" "timezone" "ac_cv_have_decl_timezone" " #include <time.h>
11218
11219 " "$ac_c_undeclared_builtin_options" "CFLAGS"
11220 if test "x$ac_cv_have_decl_timezone" = xyes
11221 then :
11222 ac_have_decl=1
11223 else case e in #(
11224 e) ac_have_decl=0 ;;
11225 esac
11226 fi
11227 printf "%s\n" "#define HAVE_DECL_TIMEZONE $ac_have_decl" >>confdefs.h
11228 if test $ac_have_decl = 1
11229 then :
11230
11231 else case e in #(
11232 e) as_fn_error $? "cannot find timezone" "$LINENO" 5 ;;
11233 esac
11234 fi
11235 ac_fn_check_decl "$LINENO" "altzone" "ac_cv_have_decl_altzone" " #include <time.h>
11236
11237 " "$ac_c_undeclared_builtin_options" "CFLAGS"
11238 if test "x$ac_cv_have_decl_altzone" = xyes
11239 then :
11240 ac_have_decl=1
11241 else case e in #(
11242 e) ac_have_decl=0 ;;
11243 esac
11244 fi
11245 printf "%s\n" "#define HAVE_DECL_ALTZONE $ac_have_decl" >>confdefs.h
11246 if test $ac_have_decl = 1
11247 then :
11248
11249 else case e in #(
11250 e) as_fn_error $? "cannot find timezone" "$LINENO" 5 ;;
11251 esac
11252 fi
11253 ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" " #include <time.h>
11254
11255 " "$ac_c_undeclared_builtin_options" "CFLAGS"
11256 if test "x$ac_cv_have_decl_tzname" = xyes
11257 then :
11258 ac_have_decl=1
11259 else case e in #(
11260 e) ac_have_decl=0 ;;
11261 esac
11262 fi
11263 printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
11264 if test $ac_have_decl = 1
11265 then :
11266
11267 else case e in #(
11268 e) as_fn_error $? "cannot find timezone" "$LINENO" 5 ;;
11269 esac
11270 fi
11271
11272 ;;
11273 esac
11274 fi
11275
11276
11277 ac_fn_c_check_member "$LINENO" "struct DIR" "d_type" "ac_cv_member_struct_DIR_d_type" "
11278 #include <sys/types.h>
11279 #include <dirent.h>
11280
11281 "
11282 if test "x$ac_cv_member_struct_DIR_d_type" = xyes
11283 then :
11284
11285 printf "%s\n" "#define HAVE_STRUCT_DIR_D_TYPE 1" >>confdefs.h
11286
11287
11288 fi
11289
11290 ac_fn_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "
11291 #include <sys/types.h>
11292 #ifdef HAVE_SYS_STAT_H
11293 # include <sys/stat.h>
11294 #endif
11295 #ifdef HAVE_FCNTL_H
11296 # include <fcntl.h>
11297 #endif
11298
11299 " "$ac_c_undeclared_builtin_options" "CFLAGS"
11300 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes
11301 then :
11302 ac_have_decl=1
11303 else case e in #(
11304 e) ac_have_decl=0 ;;
11305 esac
11306 fi
11307 printf "%s\n" "#define HAVE_DECL_O_NONBLOCK $ac_have_decl" >>confdefs.h
11308
11309
11310 ac_fn_check_decl "$LINENO" "AF_LOCAL" "ac_cv_have_decl_AF_LOCAL" "
11311 #include <sys/socket.h>
11312
11313 " "$ac_c_undeclared_builtin_options" "CFLAGS"
11314 if test "x$ac_cv_have_decl_AF_LOCAL" = xyes
11315 then :
11316 ac_have_decl=1
11317 else case e in #(
11318 e) ac_have_decl=0 ;;
11319 esac
11320 fi
11321 printf "%s\n" "#define HAVE_DECL_AF_LOCAL $ac_have_decl" >>confdefs.h
11322 ac_fn_check_decl "$LINENO" "PF_LOCAL" "ac_cv_have_decl_PF_LOCAL" "
11323 #include <sys/socket.h>
11324
11325 " "$ac_c_undeclared_builtin_options" "CFLAGS"
11326 if test "x$ac_cv_have_decl_PF_LOCAL" = xyes
11327 then :
11328 ac_have_decl=1
11329 else case e in #(
11330 e) ac_have_decl=0 ;;
11331 esac
11332 fi
11333 printf "%s\n" "#define HAVE_DECL_PF_LOCAL $ac_have_decl" >>confdefs.h
11334
11335
11336 ac_fn_check_decl "$LINENO" "IPPORT_HILASTAUTO" "ac_cv_have_decl_IPPORT_HILASTAUTO" "
11337 #include <netinet/in.h>
11338
11339 " "$ac_c_undeclared_builtin_options" "CFLAGS"
11340 if test "x$ac_cv_have_decl_IPPORT_HILASTAUTO" = xyes
11341 then :
11342 ac_have_decl=1
11343 else case e in #(
11344 e) ac_have_decl=0 ;;
11345 esac
11346 fi
11347 printf "%s\n" "#define HAVE_DECL_IPPORT_HILASTAUTO $ac_have_decl" >>confdefs.h
11348
11349
11350 ac_fn_check_decl "$LINENO" "IPV6_ADDR_SCOPE_INTFACELOCAL" "ac_cv_have_decl_IPV6_ADDR_SCOPE_INTFACELOCAL" "
11351 #include <netinet6/in6.h>
11352 #include <netinet/in.h>
11353
11354 " "$ac_c_undeclared_builtin_options" "CFLAGS"
11355 if test "x$ac_cv_have_decl_IPV6_ADDR_SCOPE_INTFACELOCAL" = xyes
11356 then :
11357 ac_have_decl=1
11358 else case e in #(
11359 e) ac_have_decl=0 ;;
11360 esac
11361 fi
11362 printf "%s\n" "#define HAVE_DECL_IPV6_ADDR_SCOPE_INTFACELOCAL $ac_have_decl" >>confdefs.h
11363
11364
11365 ac_fn_check_decl "$LINENO" "WAIT_MYPGRP" "ac_cv_have_decl_WAIT_MYPGRP" "
11366 #include <sys/wait.h>
11367
11368 " "$ac_c_undeclared_builtin_options" "CFLAGS"
11369 if test "x$ac_cv_have_decl_WAIT_MYPGRP" = xyes
11370 then :
11371 ac_have_decl=1
11372 else case e in #(
11373 e) ac_have_decl=0 ;;
11374 esac
11375 fi
11376 printf "%s\n" "#define HAVE_DECL_WAIT_MYPGRP $ac_have_decl" >>confdefs.h
11377
11378
11379 ac_fn_check_decl "$LINENO" "LOG_PERROR" "ac_cv_have_decl_LOG_PERROR" "
11380 #include <syslog.h>
11381
11382 " "$ac_c_undeclared_builtin_options" "CFLAGS"
11383 if test "x$ac_cv_have_decl_LOG_PERROR" = xyes
11384 then :
11385 ac_have_decl=1
11386 else case e in #(
11387 e) ac_have_decl=0 ;;
11388 esac
11389 fi
11390 printf "%s\n" "#define HAVE_DECL_LOG_PERROR $ac_have_decl" >>confdefs.h
11391
11392
11393 ###
11394 ### EVERYTHING BELOW MUST BE CLEANED AND MOVED ABOVE
11395 ###
11396
11397 #l150 (without _FORTIFY_SOURCE=2)
11398 if test "$GCC" = "yes" -o "$GCC" = "egcs"; then
11399 {
11400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Qunused-arguments" >&5
11401 printf %s "checking if $CC supports compile flag -Qunused-arguments... " >&6; }
11402 saved_CFLAGS="$CFLAGS"
11403 CFLAGS="$CFLAGS $WERROR -Qunused-arguments"
11404 _define_flag=""
11405 test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments"
11406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11407 /* end confdefs.h. */
11408
11409 #include <stdlib.h>
11410 #include <stdio.h>
11411 /* Trivial function to help test for -fzero-call-used-regs */
11412 void f(int n) {}
11413 int main(int argc, char **argv) {
11414 (void)argv;
11415 /* Some math to catch -ftrapv problems in the toolchain */
11416 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
11417 float l = i * 2.1;
11418 double m = l / 0.5;
11419 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
11420 f(0);
11421 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
11422 /*
11423 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
11424 * not understand comments and we don't use the "fallthrough" attribute
11425 * that it's looking for.
11426 */
11427 switch(i){
11428 case 0: j += i;
11429 /* FALLTHROUGH */
11430 default: j += k;
11431 }
11432 exit(0);
11433 }
11434
11435 _ACEOF
11436 if ac_fn_c_try_compile "$LINENO"
11437 then :
11438
11439 if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
11440 then
11441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11442 printf "%s\n" "no" >&6; }
11443 CFLAGS="$saved_CFLAGS"
11444 else
11445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11446 printf "%s\n" "yes" >&6; }
11447 CFLAGS="$saved_CFLAGS $_define_flag"
11448 fi
11449 else case e in #(
11450 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11451 printf "%s\n" "no" >&6; }
11452 CFLAGS="$saved_CFLAGS"
11453 ;;
11454 esac
11455 fi
11456 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11457 }
11458 {
11459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunknown-warning-option" >&5
11460 printf %s "checking if $CC supports compile flag -Wunknown-warning-option... " >&6; }
11461 saved_CFLAGS="$CFLAGS"
11462 CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option"
11463 _define_flag=""
11464 test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option"
11465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11466 /* end confdefs.h. */
11467
11468 #include <stdlib.h>
11469 #include <stdio.h>
11470 /* Trivial function to help test for -fzero-call-used-regs */
11471 void f(int n) {}
11472 int main(int argc, char **argv) {
11473 (void)argv;
11474 /* Some math to catch -ftrapv problems in the toolchain */
11475 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
11476 float l = i * 2.1;
11477 double m = l / 0.5;
11478 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
11479 f(0);
11480 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
11481 /*
11482 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
11483 * not understand comments and we don't use the "fallthrough" attribute
11484 * that it's looking for.
11485 */
11486 switch(i){
11487 case 0: j += i;
11488 /* FALLTHROUGH */
11489 default: j += k;
11490 }
11491 exit(0);
11492 }
11493
11494 _ACEOF
11495 if ac_fn_c_try_compile "$LINENO"
11496 then :
11497
11498 if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
11499 then
11500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501 printf "%s\n" "no" >&6; }
11502 CFLAGS="$saved_CFLAGS"
11503 else
11504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11505 printf "%s\n" "yes" >&6; }
11506 CFLAGS="$saved_CFLAGS $_define_flag"
11507 fi
11508 else case e in #(
11509 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11510 printf "%s\n" "no" >&6; }
11511 CFLAGS="$saved_CFLAGS"
11512 ;;
11513 esac
11514 fi
11515 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11516 }
11517 {
11518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wall" >&5
11519 printf %s "checking if $CC supports compile flag -Wall... " >&6; }
11520 saved_CFLAGS="$CFLAGS"
11521 CFLAGS="$CFLAGS $WERROR -Wall"
11522 _define_flag=""
11523 test "x$_define_flag" = "x" && _define_flag="-Wall"
11524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11525 /* end confdefs.h. */
11526
11527 #include <stdlib.h>
11528 #include <stdio.h>
11529 /* Trivial function to help test for -fzero-call-used-regs */
11530 void f(int n) {}
11531 int main(int argc, char **argv) {
11532 (void)argv;
11533 /* Some math to catch -ftrapv problems in the toolchain */
11534 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
11535 float l = i * 2.1;
11536 double m = l / 0.5;
11537 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
11538 f(0);
11539 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
11540 /*
11541 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
11542 * not understand comments and we don't use the "fallthrough" attribute
11543 * that it's looking for.
11544 */
11545 switch(i){
11546 case 0: j += i;
11547 /* FALLTHROUGH */
11548 default: j += k;
11549 }
11550 exit(0);
11551 }
11552
11553 _ACEOF
11554 if ac_fn_c_try_compile "$LINENO"
11555 then :
11556
11557 if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
11558 then
11559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11560 printf "%s\n" "no" >&6; }
11561 CFLAGS="$saved_CFLAGS"
11562 else
11563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11564 printf "%s\n" "yes" >&6; }
11565 CFLAGS="$saved_CFLAGS $_define_flag"
11566 fi
11567 else case e in #(
11568 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11569 printf "%s\n" "no" >&6; }
11570 CFLAGS="$saved_CFLAGS"
11571 ;;
11572 esac
11573 fi
11574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11575 }
11576 {
11577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-arith" >&5
11578 printf %s "checking if $CC supports compile flag -Wpointer-arith... " >&6; }
11579 saved_CFLAGS="$CFLAGS"
11580 CFLAGS="$CFLAGS $WERROR -Wpointer-arith"
11581 _define_flag=""
11582 test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith"
11583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584 /* end confdefs.h. */
11585
11586 #include <stdlib.h>
11587 #include <stdio.h>
11588 /* Trivial function to help test for -fzero-call-used-regs */
11589 void f(int n) {}
11590 int main(int argc, char **argv) {
11591 (void)argv;
11592 /* Some math to catch -ftrapv problems in the toolchain */
11593 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
11594 float l = i * 2.1;
11595 double m = l / 0.5;
11596 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
11597 f(0);
11598 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
11599 /*
11600 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
11601 * not understand comments and we don't use the "fallthrough" attribute
11602 * that it's looking for.
11603 */
11604 switch(i){
11605 case 0: j += i;
11606 /* FALLTHROUGH */
11607 default: j += k;
11608 }
11609 exit(0);
11610 }
11611
11612 _ACEOF
11613 if ac_fn_c_try_compile "$LINENO"
11614 then :
11615
11616 if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
11617 then
11618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11619 printf "%s\n" "no" >&6; }
11620 CFLAGS="$saved_CFLAGS"
11621 else
11622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11623 printf "%s\n" "yes" >&6; }
11624 CFLAGS="$saved_CFLAGS $_define_flag"
11625 fi
11626 else case e in #(
11627 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11628 printf "%s\n" "no" >&6; }
11629 CFLAGS="$saved_CFLAGS"
11630 ;;
11631 esac
11632 fi
11633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11634 }
11635 {
11636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wuninitialized" >&5
11637 printf %s "checking if $CC supports compile flag -Wuninitialized... " >&6; }
11638 saved_CFLAGS="$CFLAGS"
11639 CFLAGS="$CFLAGS $WERROR -Wuninitialized"
11640 _define_flag=""
11641 test "x$_define_flag" = "x" && _define_flag="-Wuninitialized"
11642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11643 /* end confdefs.h. */
11644
11645 #include <stdlib.h>
11646 #include <stdio.h>
11647 /* Trivial function to help test for -fzero-call-used-regs */
11648 void f(int n) {}
11649 int main(int argc, char **argv) {
11650 (void)argv;
11651 /* Some math to catch -ftrapv problems in the toolchain */
11652 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
11653 float l = i * 2.1;
11654 double m = l / 0.5;
11655 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
11656 f(0);
11657 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
11658 /*
11659 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
11660 * not understand comments and we don't use the "fallthrough" attribute
11661 * that it's looking for.
11662 */
11663 switch(i){
11664 case 0: j += i;
11665 /* FALLTHROUGH */
11666 default: j += k;
11667 }
11668 exit(0);
11669 }
11670
11671 _ACEOF
11672 if ac_fn_c_try_compile "$LINENO"
11673 then :
11674
11675 if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
11676 then
11677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11678 printf "%s\n" "no" >&6; }
11679 CFLAGS="$saved_CFLAGS"
11680 else
11681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11682 printf "%s\n" "yes" >&6; }
11683 CFLAGS="$saved_CFLAGS $_define_flag"
11684 fi
11685 else case e in #(
11686 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11687 printf "%s\n" "no" >&6; }
11688 CFLAGS="$saved_CFLAGS"
11689 ;;
11690 esac
11691 fi
11692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11693 }
11694 {
11695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsign-compare" >&5
11696 printf %s "checking if $CC supports compile flag -Wsign-compare... " >&6; }
11697 saved_CFLAGS="$CFLAGS"
11698 CFLAGS="$CFLAGS $WERROR -Wsign-compare"
11699 _define_flag=""
11700 test "x$_define_flag" = "x" && _define_flag="-Wsign-compare"
11701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11702 /* end confdefs.h. */
11703
11704 #include <stdlib.h>
11705 #include <stdio.h>
11706 /* Trivial function to help test for -fzero-call-used-regs */
11707 void f(int n) {}
11708 int main(int argc, char **argv) {
11709 (void)argv;
11710 /* Some math to catch -ftrapv problems in the toolchain */
11711 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
11712 float l = i * 2.1;
11713 double m = l / 0.5;
11714 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
11715 f(0);
11716 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
11717 /*
11718 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
11719 * not understand comments and we don't use the "fallthrough" attribute
11720 * that it's looking for.
11721 */
11722 switch(i){
11723 case 0: j += i;
11724 /* FALLTHROUGH */
11725 default: j += k;
11726 }
11727 exit(0);
11728 }
11729
11730 _ACEOF
11731 if ac_fn_c_try_compile "$LINENO"
11732 then :
11733
11734 if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
11735 then
11736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737 printf "%s\n" "no" >&6; }
11738 CFLAGS="$saved_CFLAGS"
11739 else
11740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11741 printf "%s\n" "yes" >&6; }
11742 CFLAGS="$saved_CFLAGS $_define_flag"
11743 fi
11744 else case e in #(
11745 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11746 printf "%s\n" "no" >&6; }
11747 CFLAGS="$saved_CFLAGS"
11748 ;;
11749 esac
11750 fi
11751 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11752 }
11753 {
11754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wformat-security" >&5
11755 printf %s "checking if $CC supports compile flag -Wformat-security... " >&6; }
11756 saved_CFLAGS="$CFLAGS"
11757 CFLAGS="$CFLAGS $WERROR -Wformat-security"
11758 _define_flag=""
11759 test "x$_define_flag" = "x" && _define_flag="-Wformat-security"
11760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11761 /* end confdefs.h. */
11762
11763 #include <stdlib.h>
11764 #include <stdio.h>
11765 /* Trivial function to help test for -fzero-call-used-regs */
11766 void f(int n) {}
11767 int main(int argc, char **argv) {
11768 (void)argv;
11769 /* Some math to catch -ftrapv problems in the toolchain */
11770 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
11771 float l = i * 2.1;
11772 double m = l / 0.5;
11773 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
11774 f(0);
11775 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
11776 /*
11777 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
11778 * not understand comments and we don't use the "fallthrough" attribute
11779 * that it's looking for.
11780 */
11781 switch(i){
11782 case 0: j += i;
11783 /* FALLTHROUGH */
11784 default: j += k;
11785 }
11786 exit(0);
11787 }
11788
11789 _ACEOF
11790 if ac_fn_c_try_compile "$LINENO"
11791 then :
11792
11793 if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
11794 then
11795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 printf "%s\n" "no" >&6; }
11797 CFLAGS="$saved_CFLAGS"
11798 else
11799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11800 printf "%s\n" "yes" >&6; }
11801 CFLAGS="$saved_CFLAGS $_define_flag"
11802 fi
11803 else case e in #(
11804 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11805 printf "%s\n" "no" >&6; }
11806 CFLAGS="$saved_CFLAGS"
11807 ;;
11808 esac
11809 fi
11810 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11811 }
11812 {
11813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsizeof-pointer-memaccess" >&5
11814 printf %s "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... " >&6; }
11815 saved_CFLAGS="$CFLAGS"
11816 CFLAGS="$CFLAGS $WERROR -Wsizeof-pointer-memaccess"
11817 _define_flag=""
11818 test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess"
11819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11820 /* end confdefs.h. */
11821
11822 #include <stdlib.h>
11823 #include <stdio.h>
11824 /* Trivial function to help test for -fzero-call-used-regs */
11825 void f(int n) {}
11826 int main(int argc, char **argv) {
11827 (void)argv;
11828 /* Some math to catch -ftrapv problems in the toolchain */
11829 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
11830 float l = i * 2.1;
11831 double m = l / 0.5;
11832 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
11833 f(0);
11834 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
11835 /*
11836 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
11837 * not understand comments and we don't use the "fallthrough" attribute
11838 * that it's looking for.
11839 */
11840 switch(i){
11841 case 0: j += i;
11842 /* FALLTHROUGH */
11843 default: j += k;
11844 }
11845 exit(0);
11846 }
11847
11848 _ACEOF
11849 if ac_fn_c_try_compile "$LINENO"
11850 then :
11851
11852 if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
11853 then
11854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11855 printf "%s\n" "no" >&6; }
11856 CFLAGS="$saved_CFLAGS"
11857 else
11858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11859 printf "%s\n" "yes" >&6; }
11860 CFLAGS="$saved_CFLAGS $_define_flag"
11861 fi
11862 else case e in #(
11863 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11864 printf "%s\n" "no" >&6; }
11865 CFLAGS="$saved_CFLAGS"
11866 ;;
11867 esac
11868 fi
11869 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11870 }
11871 {
11872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-sign" >&5
11873 printf %s "checking if $CC supports compile flag -Wpointer-sign... " >&6; }
11874 saved_CFLAGS="$CFLAGS"
11875 CFLAGS="$CFLAGS $WERROR -Wpointer-sign"
11876 _define_flag="-Wno-pointer-sign"
11877 test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign"
11878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11879 /* end confdefs.h. */
11880
11881 #include <stdlib.h>
11882 #include <stdio.h>
11883 /* Trivial function to help test for -fzero-call-used-regs */
11884 void f(int n) {}
11885 int main(int argc, char **argv) {
11886 (void)argv;
11887 /* Some math to catch -ftrapv problems in the toolchain */
11888 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
11889 float l = i * 2.1;
11890 double m = l / 0.5;
11891 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
11892 f(0);
11893 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
11894 /*
11895 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
11896 * not understand comments and we don't use the "fallthrough" attribute
11897 * that it's looking for.
11898 */
11899 switch(i){
11900 case 0: j += i;
11901 /* FALLTHROUGH */
11902 default: j += k;
11903 }
11904 exit(0);
11905 }
11906
11907 _ACEOF
11908 if ac_fn_c_try_compile "$LINENO"
11909 then :
11910
11911 if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
11912 then
11913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11914 printf "%s\n" "no" >&6; }
11915 CFLAGS="$saved_CFLAGS"
11916 else
11917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11918 printf "%s\n" "yes" >&6; }
11919 CFLAGS="$saved_CFLAGS $_define_flag"
11920 fi
11921 else case e in #(
11922 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11923 printf "%s\n" "no" >&6; }
11924 CFLAGS="$saved_CFLAGS"
11925 ;;
11926 esac
11927 fi
11928 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11929 }
11930 {
11931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunused-result" >&5
11932 printf %s "checking if $CC supports compile flag -Wunused-result... " >&6; }
11933 saved_CFLAGS="$CFLAGS"
11934 CFLAGS="$CFLAGS $WERROR -Wunused-result"
11935 _define_flag="-Wno-unused-result"
11936 test "x$_define_flag" = "x" && _define_flag="-Wunused-result"
11937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938 /* end confdefs.h. */
11939
11940 #include <stdlib.h>
11941 #include <stdio.h>
11942 /* Trivial function to help test for -fzero-call-used-regs */
11943 void f(int n) {}
11944 int main(int argc, char **argv) {
11945 (void)argv;
11946 /* Some math to catch -ftrapv problems in the toolchain */
11947 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
11948 float l = i * 2.1;
11949 double m = l / 0.5;
11950 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
11951 f(0);
11952 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
11953 /*
11954 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
11955 * not understand comments and we don't use the "fallthrough" attribute
11956 * that it's looking for.
11957 */
11958 switch(i){
11959 case 0: j += i;
11960 /* FALLTHROUGH */
11961 default: j += k;
11962 }
11963 exit(0);
11964 }
11965
11966 _ACEOF
11967 if ac_fn_c_try_compile "$LINENO"
11968 then :
11969
11970 if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
11971 then
11972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973 printf "%s\n" "no" >&6; }
11974 CFLAGS="$saved_CFLAGS"
11975 else
11976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11977 printf "%s\n" "yes" >&6; }
11978 CFLAGS="$saved_CFLAGS $_define_flag"
11979 fi
11980 else case e in #(
11981 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11982 printf "%s\n" "no" >&6; }
11983 CFLAGS="$saved_CFLAGS"
11984 ;;
11985 esac
11986 fi
11987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11988 }
11989 {
11990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fno-strict-aliasing" >&5
11991 printf %s "checking if $CC supports compile flag -fno-strict-aliasing... " >&6; }
11992 saved_CFLAGS="$CFLAGS"
11993 CFLAGS="$CFLAGS $WERROR -fno-strict-aliasing"
11994 _define_flag=""
11995 test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing"
11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h. */
11998
11999 #include <stdlib.h>
12000 #include <stdio.h>
12001 /* Trivial function to help test for -fzero-call-used-regs */
12002 void f(int n) {}
12003 int main(int argc, char **argv) {
12004 (void)argv;
12005 /* Some math to catch -ftrapv problems in the toolchain */
12006 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
12007 float l = i * 2.1;
12008 double m = l / 0.5;
12009 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
12010 f(0);
12011 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
12012 /*
12013 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
12014 * not understand comments and we don't use the "fallthrough" attribute
12015 * that it's looking for.
12016 */
12017 switch(i){
12018 case 0: j += i;
12019 /* FALLTHROUGH */
12020 default: j += k;
12021 }
12022 exit(0);
12023 }
12024
12025 _ACEOF
12026 if ac_fn_c_try_compile "$LINENO"
12027 then :
12028
12029 if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
12030 then
12031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12032 printf "%s\n" "no" >&6; }
12033 CFLAGS="$saved_CFLAGS"
12034 else
12035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12036 printf "%s\n" "yes" >&6; }
12037 CFLAGS="$saved_CFLAGS $_define_flag"
12038 fi
12039 else case e in #(
12040 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041 printf "%s\n" "no" >&6; }
12042 CFLAGS="$saved_CFLAGS"
12043 ;;
12044 esac
12045 fi
12046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12047 }
12048 # OSSH_CHECK_CFLAG_COMPILE([-D_FORTIFY_SOURCE=2])
12049 if test "x$use_toolchain_hardening" = "x1"; then
12050 {
12051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,relro" >&5
12052 printf %s "checking if $LD supports link flag -Wl,-z,relro... " >&6; }
12053 saved_LDFLAGS="$LDFLAGS"
12054 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,relro"
12055 _define_flag=""
12056 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,relro"
12057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h. */
12059
12060 #include <stdlib.h>
12061 #include <stdio.h>
12062 int main(int argc, char **argv) {
12063 (void)argv;
12064 /* Some math to catch -ftrapv problems in the toolchain */
12065 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
12066 float l = i * 2.1;
12067 double m = l / 0.5;
12068 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
12069 long long p = n * o;
12070 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
12071 exit(0);
12072 }
12073
12074 _ACEOF
12075 if ac_fn_c_try_link "$LINENO"
12076 then :
12077
12078 if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
12079 then
12080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081 printf "%s\n" "no" >&6; }
12082 LDFLAGS="$saved_LDFLAGS"
12083 else
12084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12085 printf "%s\n" "yes" >&6; }
12086 LDFLAGS="$saved_LDFLAGS $_define_flag"
12087 fi
12088 else case e in #(
12089 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12090 printf "%s\n" "no" >&6; }
12091 LDFLAGS="$saved_LDFLAGS"
12092 ;;
12093 esac
12094 fi
12095 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12096 conftest$ac_exeext conftest.$ac_ext
12097 }
12098 {
12099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,now" >&5
12100 printf %s "checking if $LD supports link flag -Wl,-z,now... " >&6; }
12101 saved_LDFLAGS="$LDFLAGS"
12102 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,now"
12103 _define_flag=""
12104 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,now"
12105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12106 /* end confdefs.h. */
12107
12108 #include <stdlib.h>
12109 #include <stdio.h>
12110 int main(int argc, char **argv) {
12111 (void)argv;
12112 /* Some math to catch -ftrapv problems in the toolchain */
12113 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
12114 float l = i * 2.1;
12115 double m = l / 0.5;
12116 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
12117 long long p = n * o;
12118 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
12119 exit(0);
12120 }
12121
12122 _ACEOF
12123 if ac_fn_c_try_link "$LINENO"
12124 then :
12125
12126 if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
12127 then
12128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12129 printf "%s\n" "no" >&6; }
12130 LDFLAGS="$saved_LDFLAGS"
12131 else
12132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12133 printf "%s\n" "yes" >&6; }
12134 LDFLAGS="$saved_LDFLAGS $_define_flag"
12135 fi
12136 else case e in #(
12137 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12138 printf "%s\n" "no" >&6; }
12139 LDFLAGS="$saved_LDFLAGS"
12140 ;;
12141 esac
12142 fi
12143 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12144 conftest$ac_exeext conftest.$ac_ext
12145 }
12146 {
12147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,noexecstack" >&5
12148 printf %s "checking if $LD supports link flag -Wl,-z,noexecstack... " >&6; }
12149 saved_LDFLAGS="$LDFLAGS"
12150 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,noexecstack"
12151 _define_flag=""
12152 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,noexecstack"
12153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12154 /* end confdefs.h. */
12155
12156 #include <stdlib.h>
12157 #include <stdio.h>
12158 int main(int argc, char **argv) {
12159 (void)argv;
12160 /* Some math to catch -ftrapv problems in the toolchain */
12161 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
12162 float l = i * 2.1;
12163 double m = l / 0.5;
12164 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
12165 long long p = n * o;
12166 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
12167 exit(0);
12168 }
12169
12170 _ACEOF
12171 if ac_fn_c_try_link "$LINENO"
12172 then :
12173
12174 if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
12175 then
12176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12177 printf "%s\n" "no" >&6; }
12178 LDFLAGS="$saved_LDFLAGS"
12179 else
12180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12181 printf "%s\n" "yes" >&6; }
12182 LDFLAGS="$saved_LDFLAGS $_define_flag"
12183 fi
12184 else case e in #(
12185 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12186 printf "%s\n" "no" >&6; }
12187 LDFLAGS="$saved_LDFLAGS"
12188 ;;
12189 esac
12190 fi
12191 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12192 conftest$ac_exeext conftest.$ac_ext
12193 }
12194 # NB. -ftrapv expects certain support functions to be present in
12195 # the compiler library (libgcc or similar) to detect integer operations
12196 # that can overflow. We must check that the result of enabling it
12197 # actually links. The test program compiled/linked includes a number
12198 # of integer operations that should exercise this.
12199 {
12200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -ftrapv and linking succeeds" >&5
12201 printf %s "checking if $CC supports compile flag -ftrapv and linking succeeds... " >&6; }
12202 saved_CFLAGS="$CFLAGS"
12203 CFLAGS="$CFLAGS $WERROR -ftrapv"
12204 _define_flag=""
12205 test "x$_define_flag" = "x" && _define_flag="-ftrapv"
12206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207 /* end confdefs.h. */
12208
12209 #include <stdlib.h>
12210 #include <stdio.h>
12211 int main(int argc, char **argv) {
12212 (void)argv;
12213 /* Some math to catch -ftrapv problems in the toolchain */
12214 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
12215 float l = i * 2.1;
12216 double m = l / 0.5;
12217 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
12218 long long int p = n * o;
12219 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
12220 exit(0);
12221 }
12222
12223 _ACEOF
12224 if ac_fn_c_try_link "$LINENO"
12225 then :
12226
12227 if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
12228 then
12229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12230 printf "%s\n" "no" >&6; }
12231 CFLAGS="$saved_CFLAGS"
12232 else
12233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12234 printf "%s\n" "yes" >&6; }
12235 CFLAGS="$saved_CFLAGS $_define_flag"
12236 fi
12237 else case e in #(
12238 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12239 printf "%s\n" "no" >&6; }
12240 CFLAGS="$saved_CFLAGS"
12241 ;;
12242 esac
12243 fi
12244 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12245 conftest$ac_exeext conftest.$ac_ext
12246 }
12247 fi
12248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
12249 printf %s "checking gcc version... " >&6; }
12250 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
12251 case $GCC_VER in
12252 1.*) no_attrib_nonnull=1 ;;
12253 2.8* | 2.9*)
12254 no_attrib_nonnull=1
12255 ;;
12256 2.*) no_attrib_nonnull=1 ;;
12257 *) ;;
12258 esac
12259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5
12260 printf "%s\n" "$GCC_VER" >&6; }
12261
12262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5
12263 printf %s "checking if $CC accepts -fno-builtin-memset... " >&6; }
12264 saved_CFLAGS="$CFLAGS"
12265 CFLAGS="$CFLAGS -fno-builtin-memset"
12266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12267 /* end confdefs.h. */
12268 #include <string.h>
12269 int
12270 main (void)
12271 {
12272 char b[10]; memset(b, 0, sizeof(b));
12273 ;
12274 return 0;
12275 }
12276 _ACEOF
12277 if ac_fn_c_try_link "$LINENO"
12278 then :
12279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12280 printf "%s\n" "yes" >&6; }
12281 else case e in #(
12282 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12283 printf "%s\n" "no" >&6; }
12284 CFLAGS="$saved_CFLAGS"
12285 ;;
12286 esac
12287 fi
12288 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12289 conftest$ac_exeext conftest.$ac_ext
12290
12291 # -fstack-protector-all doesn't always work for some GCC versions
12292 # and/or platforms, so we test if we can. If it's not supported
12293 # on a given platform gcc will emit a warning so we use -Werror.
12294 if test "x$use_stack_protector" = "x1"; then
12295 for t in -fstack-protector-strong -fstack-protector-all \
12296 -fstack-protector; do
12297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5
12298 printf %s "checking if $CC supports $t... " >&6; }
12299 saved_CFLAGS="$CFLAGS"
12300 saved_LDFLAGS="$LDFLAGS"
12301 CFLAGS="$CFLAGS $t -Werror"
12302 LDFLAGS="$LDFLAGS $t -Werror"
12303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12304 /* end confdefs.h. */
12305 #include <stdio.h>
12306 int
12307 main (void)
12308 {
12309
12310 char x[256];
12311 snprintf(x, sizeof(x), "XXX");
12312
12313 ;
12314 return 0;
12315 }
12316 _ACEOF
12317 if ac_fn_c_try_link "$LINENO"
12318 then :
12319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12320 printf "%s\n" "yes" >&6; }
12321 CFLAGS="$saved_CFLAGS $t"
12322 LDFLAGS="$saved_LDFLAGS $t"
12323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5
12324 printf %s "checking if $t works... " >&6; }
12325 if test "$cross_compiling" = yes
12326 then :
12327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5
12328 printf "%s\n" "$as_me: WARNING: cross compiling: cannot test" >&2;}
12329 break
12330
12331 else case e in #(
12332 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12333 /* end confdefs.h. */
12334 #include <stdio.h>
12335 int
12336 main (void)
12337 {
12338
12339 char x[256];
12340 snprintf(x, sizeof(x), "XXX");
12341
12342 ;
12343 return 0;
12344 }
12345 _ACEOF
12346 if ac_fn_c_try_run "$LINENO"
12347 then :
12348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12349 printf "%s\n" "yes" >&6; }
12350 break
12351 else case e in #(
12352 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12353 printf "%s\n" "no" >&6; } ;;
12354 esac
12355 fi
12356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12357 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12358 esac
12359 fi
12360
12361
12362 else case e in #(
12363 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12364 printf "%s\n" "no" >&6; }
12365 ;;
12366 esac
12367 fi
12368 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12369 conftest$ac_exeext conftest.$ac_ext
12370 CFLAGS="$saved_CFLAGS"
12371 LDFLAGS="$saved_LDFLAGS"
12372 done
12373 fi
12374
12375 if test -z "$have_llong_max"; then
12376 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
12377 unset ac_cv_have_decl_LLONG_MAX
12378 saved_CFLAGS="$CFLAGS"
12379 CFLAGS="$CFLAGS -std=gnu99"
12380 ac_fn_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
12381
12382 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12383 if test "x$ac_cv_have_decl_LLONG_MAX" = xyes
12384 then :
12385 have_llong_max=1
12386 else case e in #(
12387 e) CFLAGS="$saved_CFLAGS" ;;
12388 esac
12389 fi
12390 fi
12391 fi
12392
12393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ on return types" >&5
12394 printf %s "checking if compiler allows __attribute__ on return types... " >&6; }
12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12396 /* end confdefs.h. */
12397
12398 #include <stdlib.h>
12399 __attribute__((__unused__)) static void foo(void){return;}
12400 int
12401 main (void)
12402 {
12403 exit(0);
12404 ;
12405 return 0;
12406 }
12407 _ACEOF
12408 if ac_fn_c_try_compile "$LINENO"
12409 then :
12410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12411 printf "%s\n" "yes" >&6; }
12412 else case e in #(
12413 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12414 printf "%s\n" "no" >&6; }
12415
12416 printf "%s\n" "#define NO_ATTRIBUTE_ON_RETURN_TYPE 1" >>confdefs.h
12417
12418 ;;
12419 esac
12420 fi
12421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12422
12423 if test "x$no_attrib_nonnull" != "x1"; then
12424
12425 printf "%s\n" "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h
12426
12427 fi
12428
12429
12430 # Check whether --with-rpath was given.
12431 if test ${with_rpath+y}
12432 then :
12433 withval=$with_rpath; case "$withval" in #(
12434 yes) :
12435 need_dash_r=yes ;; #(
12436 no) :
12437 need_dash_r=''
12438 ;; #(
12439 *) :
12440 ;;
12441 esac
12442 fi
12443
12444
12445
12446 # Check whether --with-cflags was given.
12447 if test ${with_cflags+y}
12448 then :
12449 withval=$with_cflags;
12450 if test -n "$withval" -a "$withval" != "no" -a "${withval}" != "yes"; then
12451 CFLAGS="$CFLAGS $withval"
12452 fi
12453
12454
12455 fi
12456
12457
12458 # Check whether --with-cppflags was given.
12459 if test ${with_cppflags+y}
12460 then :
12461 withval=$with_cppflags;
12462 if test -n "$withval" -a "$withval" != "no" -a "${withval}" != "yes"; then
12463 CPPFLAGS="$CPPFLAGS $withval"
12464 fi
12465
12466
12467 fi
12468
12469
12470 # Check whether --with-ldflags was given.
12471 if test ${with_ldflags+y}
12472 then :
12473 withval=$with_ldflags;
12474 if test -n "$withval" -a "$withval" != "xno" -a "${withval}" != "yes"; then
12475 LDFLAGS="$LDFLAGS $withval"
12476 fi
12477
12478
12479 fi
12480
12481
12482 werror_flags=
12483
12484 # Check whether --with-Werror was given.
12485 if test ${with_Werror+y}
12486 then :
12487 withval=$with_Werror;
12488 if test -n "$withval" -a "$withval" != "no"; then
12489 werror_flags="-Werror"
12490 if test "${withval}" != "yes"; then
12491 werror_flags="$withval"
12492 fi
12493 fi
12494
12495
12496 fi
12497
12498
12499
12500 # Check whether --with-pie was given.
12501 if test ${with_pie+y}
12502 then :
12503 withval=$with_pie;
12504 if test "x$withval" = "xno"; then
12505 use_pie=no
12506 fi
12507 if test "x$withval" = "xyes"; then
12508 use_pie=yes
12509 fi
12510
12511
12512 fi
12513
12514 if test -z "$use_pie"; then
12515 use_pie=no
12516 fi
12517 if test "x$use_toolchain_hardening" != "x1" -a "x$use_pie" = "xauto"; then
12518 # Turn off automatic PIE when toolchain hardening is off.
12519 use_pie=no
12520 fi
12521 if test "x$use_pie" = "xauto"; then
12522 # Automatic PIE requires gcc >= 4.x
12523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.x" >&5
12524 printf %s "checking for gcc >= 4.x... " >&6; }
12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h. */
12527
12528 #if !defined(__GNUC__) || __GNUC__ < 4
12529 #error gcc is too old
12530 #endif
12531
12532 _ACEOF
12533 if ac_fn_c_try_compile "$LINENO"
12534 then :
12535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12536 printf "%s\n" "yes" >&6; }
12537 else case e in #(
12538 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12539 printf "%s\n" "no" >&6; }
12540 use_pie=no
12541 ;;
12542 esac
12543 fi
12544 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12545 fi
12546 if test "x$use_pie" != "xno"; then
12547 SAVED_CFLAGS="$CFLAGS"
12548 SAVED_LDFLAGS="$LDFLAGS"
12549 {
12550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fPIE" >&5
12551 printf %s "checking if $CC supports compile flag -fPIE... " >&6; }
12552 saved_CFLAGS="$CFLAGS"
12553 CFLAGS="$CFLAGS $WERROR -fPIE"
12554 _define_flag=""
12555 test "x$_define_flag" = "x" && _define_flag="-fPIE"
12556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12557 /* end confdefs.h. */
12558
12559 #include <stdlib.h>
12560 #include <stdio.h>
12561 /* Trivial function to help test for -fzero-call-used-regs */
12562 void f(int n) {}
12563 int main(int argc, char **argv) {
12564 (void)argv;
12565 /* Some math to catch -ftrapv problems in the toolchain */
12566 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
12567 float l = i * 2.1;
12568 double m = l / 0.5;
12569 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
12570 f(0);
12571 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
12572 /*
12573 * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
12574 * not understand comments and we don't use the "fallthrough" attribute
12575 * that it's looking for.
12576 */
12577 switch(i){
12578 case 0: j += i;
12579 /* FALLTHROUGH */
12580 default: j += k;
12581 }
12582 exit(0);
12583 }
12584
12585 _ACEOF
12586 if ac_fn_c_try_compile "$LINENO"
12587 then :
12588
12589 if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
12590 then
12591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12592 printf "%s\n" "no" >&6; }
12593 CFLAGS="$saved_CFLAGS"
12594 else
12595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12596 printf "%s\n" "yes" >&6; }
12597 CFLAGS="$saved_CFLAGS $_define_flag"
12598 fi
12599 else case e in #(
12600 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12601 printf "%s\n" "no" >&6; }
12602 CFLAGS="$saved_CFLAGS"
12603 ;;
12604 esac
12605 fi
12606 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12607 }
12608 {
12609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -pie" >&5
12610 printf %s "checking if $LD supports link flag -pie... " >&6; }
12611 saved_LDFLAGS="$LDFLAGS"
12612 LDFLAGS="$LDFLAGS $WERROR -pie"
12613 _define_flag=""
12614 test "x$_define_flag" = "x" && _define_flag="-pie"
12615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12616 /* end confdefs.h. */
12617
12618 #include <stdlib.h>
12619 #include <stdio.h>
12620 int main(int argc, char **argv) {
12621 (void)argv;
12622 /* Some math to catch -ftrapv problems in the toolchain */
12623 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
12624 float l = i * 2.1;
12625 double m = l / 0.5;
12626 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
12627 long long p = n * o;
12628 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
12629 exit(0);
12630 }
12631
12632 _ACEOF
12633 if ac_fn_c_try_link "$LINENO"
12634 then :
12635
12636 if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
12637 then
12638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12639 printf "%s\n" "no" >&6; }
12640 LDFLAGS="$saved_LDFLAGS"
12641 else
12642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12643 printf "%s\n" "yes" >&6; }
12644 LDFLAGS="$saved_LDFLAGS $_define_flag"
12645 fi
12646 else case e in #(
12647 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12648 printf "%s\n" "no" >&6; }
12649 LDFLAGS="$saved_LDFLAGS"
12650 ;;
12651 esac
12652 fi
12653 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12654 conftest$ac_exeext conftest.$ac_ext
12655 }
12656 # We use both -fPIE and -pie or neither.
12657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether both -fPIE and -pie are supported" >&5
12658 printf %s "checking whether both -fPIE and -pie are supported... " >&6; }
12659 if echo "x $CFLAGS" | grep ' -fPIE' >/dev/null 2>&1 && \
12660 echo "x $LDFLAGS" | grep ' -pie' >/dev/null 2>&1 ; then
12661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12662 printf "%s\n" "yes" >&6; }
12663 else
12664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12665 printf "%s\n" "no" >&6; }
12666 CFLAGS="$SAVED_CFLAGS"
12667 LDFLAGS="$SAVED_LDFLAGS"
12668 fi
12669 fi
12670
12671 # Man pages defaults to mandoc
12672 MANTYPE=doc
12673
12674 # Check whether --with-mantype was given.
12675 if test ${with_mantype+y}
12676 then :
12677 withval=$with_mantype;
12678 case "$withval" in
12679 man|cat|doc)
12680 MANTYPE=$withval
12681 ;;
12682 *)
12683 as_fn_error $? "invalid man type: $withval" "$LINENO" 5
12684 ;;
12685 esac
12686
12687
12688 fi
12689
12690
12691 if test "$MANTYPE" = "doc"; then
12692 mansubdir=man;
12693 else
12694 mansubdir=$MANTYPE;
12695 fi
12696
12697
12698 # Whether to enable BSD auth support
12699
12700 # Check whether --with-auth-bsdauth was given.
12701 if test ${with_auth_bsdauth+y}
12702 then :
12703 withval=$with_auth_bsdauth;
12704 if test "x$withval" != "xno"; then
12705
12706 printf "%s\n" "#define BSD_AUTH 1" >>confdefs.h
12707
12708 BSD_AUTH_MSG=yes
12709 fi
12710
12711
12712 fi
12713
12714
12715 PAM_MSG="no"
12716 USE_PAM_SERVICE=smtpd
12717
12718 # Check whether --with-auth-pam was given.
12719 if test ${with_auth_pam+y}
12720 then :
12721 withval=$with_auth_pam;
12722 if test "x$withval" != "xno"; then
12723 if test -n "$withval" -a "x${withval}" != "xyes"; then
12724 USE_PAM_SERVICE=$withval
12725 fi
12726
12727 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
12728 test "x$ac_cv_header_pam_pam_appl_h" != "xyes"; then
12729 as_fn_error $? "PAM headers not found" "$LINENO" 5
12730 fi
12731
12732 saved_LIBS="$LIBS"
12733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12734 printf %s "checking for dlopen in -ldl... " >&6; }
12735 if test ${ac_cv_lib_dl_dlopen+y}
12736 then :
12737 printf %s "(cached) " >&6
12738 else case e in #(
12739 e) ac_check_lib_save_LIBS=$LIBS
12740 LIBS="-ldl $LIBS"
12741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12742 /* end confdefs.h. */
12743
12744 /* Override any GCC internal prototype to avoid an error.
12745 Use char because int might match the return type of a GCC
12746 builtin and then its argument prototype would still apply.
12747 The 'extern "C"' is for builds by C++ compilers;
12748 although this is not generally supported in C code supporting it here
12749 has little cost and some practical benefit (sr 110532). */
12750 #ifdef __cplusplus
12751 extern "C"
12752 #endif
12753 char dlopen (void);
12754 int
12755 main (void)
12756 {
12757 return dlopen ();
12758 ;
12759 return 0;
12760 }
12761 _ACEOF
12762 if ac_fn_c_try_link "$LINENO"
12763 then :
12764 ac_cv_lib_dl_dlopen=yes
12765 else case e in #(
12766 e) ac_cv_lib_dl_dlopen=no ;;
12767 esac
12768 fi
12769 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12770 conftest$ac_exeext conftest.$ac_ext
12771 LIBS=$ac_check_lib_save_LIBS ;;
12772 esac
12773 fi
12774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12775 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12776 if test "x$ac_cv_lib_dl_dlopen" = xyes
12777 then :
12778 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
12779
12780 LIBS="-ldl $LIBS"
12781
12782 fi
12783
12784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
12785 printf %s "checking for pam_set_item in -lpam... " >&6; }
12786 if test ${ac_cv_lib_pam_pam_set_item+y}
12787 then :
12788 printf %s "(cached) " >&6
12789 else case e in #(
12790 e) ac_check_lib_save_LIBS=$LIBS
12791 LIBS="-lpam $LIBS"
12792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12793 /* end confdefs.h. */
12794
12795 /* Override any GCC internal prototype to avoid an error.
12796 Use char because int might match the return type of a GCC
12797 builtin and then its argument prototype would still apply.
12798 The 'extern "C"' is for builds by C++ compilers;
12799 although this is not generally supported in C code supporting it here
12800 has little cost and some practical benefit (sr 110532). */
12801 #ifdef __cplusplus
12802 extern "C"
12803 #endif
12804 char pam_set_item (void);
12805 int
12806 main (void)
12807 {
12808 return pam_set_item ();
12809 ;
12810 return 0;
12811 }
12812 _ACEOF
12813 if ac_fn_c_try_link "$LINENO"
12814 then :
12815 ac_cv_lib_pam_pam_set_item=yes
12816 else case e in #(
12817 e) ac_cv_lib_pam_pam_set_item=no ;;
12818 esac
12819 fi
12820 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12821 conftest$ac_exeext conftest.$ac_ext
12822 LIBS=$ac_check_lib_save_LIBS ;;
12823 esac
12824 fi
12825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
12826 printf "%s\n" "$ac_cv_lib_pam_pam_set_item" >&6; }
12827 if test "x$ac_cv_lib_pam_pam_set_item" = xyes
12828 then :
12829 printf "%s\n" "#define HAVE_LIBPAM 1" >>confdefs.h
12830
12831 LIBS="-lpam $LIBS"
12832
12833 else case e in #(
12834 e) as_fn_error $? "*** libpam missing" "$LINENO" 5 ;;
12835 esac
12836 fi
12837
12838 ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
12839 if test "x$ac_cv_func_pam_getenvlist" = xyes
12840 then :
12841 printf "%s\n" "#define HAVE_PAM_GETENVLIST 1" >>confdefs.h
12842
12843 fi
12844
12845 ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv"
12846 if test "x$ac_cv_func_pam_putenv" = xyes
12847 then :
12848 printf "%s\n" "#define HAVE_PAM_PUTENV 1" >>confdefs.h
12849
12850 fi
12851
12852 LIBS="$saved_LIBS"
12853
12854 PAM_MSG="yes"
12855
12856 SMTPDLIBS="$SMTPDLIBS -lpam"
12857
12858 printf "%s\n" "#define USE_PAM 1" >>confdefs.h
12859
12860
12861 if test "x$ac_cv_lib_dl_dlopen" = "xyes"; then
12862 case "$LIBS" in
12863 *-ldl*)
12864 # libdl already in LIBS
12865 ;;
12866 *)
12867 SMTPDLIBS="$SMTPDLIBS -ldl"
12868 ;;
12869 esac
12870 fi
12871 fi
12872
12873
12874 fi
12875
12876
12877 printf "%s\n" "#define USE_PAM_SERVICE \"$USE_PAM_SERVICE\"" >>confdefs.h
12878
12879
12880
12881
12882 # Check for older PAM
12883 if test "x$PAM_MSG" = "xyes"; then
12884 # Check PAM strerror arguments (old PAM)
12885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5
12886 printf %s "checking whether pam_strerror takes only one argument... " >&6; }
12887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12888 /* end confdefs.h. */
12889
12890 #include <stdlib.h>
12891 #if defined(HAVE_SECURITY_PAM_APPL_H)
12892 #include <security/pam_appl.h>
12893 #elif defined (HAVE_PAM_PAM_APPL_H)
12894 #include <pam/pam_appl.h>
12895 #endif
12896
12897 int
12898 main (void)
12899 {
12900
12901 (void)pam_strerror((pam_handle_t *)NULL, -1);
12902
12903 ;
12904 return 0;
12905 }
12906 _ACEOF
12907 if ac_fn_c_try_compile "$LINENO"
12908 then :
12909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12910 printf "%s\n" "no" >&6; }
12911 else case e in #(
12912 e)
12913
12914 printf "%s\n" "#define HAVE_OLD_PAM 1" >>confdefs.h
12915
12916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12917 printf "%s\n" "yes" >&6; }
12918 PAM_MSG="yes (old library)"
12919 ;;
12920 esac
12921 fi
12922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12923 fi
12924
12925 SMTPD_USER=_smtpd
12926
12927 # Check whether --with-user-smtpd was given.
12928 if test ${with_user_smtpd+y}
12929 then :
12930 withval=$with_user_smtpd;
12931 if test -n "$withval" -a "$withval" != "no" -a "${withval}" != "yes"; then
12932 SMTPD_USER=$withval
12933 fi
12934
12935
12936 fi
12937
12938
12939 printf "%s\n" "#define SMTPD_USER \"$SMTPD_USER\"" >>confdefs.h
12940
12941
12942
12943 SMTPD_QUEUE_USER=_smtpq
12944
12945 # Check whether --with-user-queue was given.
12946 if test ${with_user_queue+y}
12947 then :
12948 withval=$with_user_queue;
12949 if test -n "$withval" -a "$withval" != "no" -a "${withval}" != "yes"; then
12950 SMTPD_QUEUE_USER=$withval
12951 fi
12952
12953
12954 fi
12955
12956
12957 printf "%s\n" "#define SMTPD_QUEUE_USER \"$SMTPD_QUEUE_USER\"" >>confdefs.h
12958
12959
12960
12961 SMTPD_QUEUE_GROUP=_smtpq
12962
12963 # Check whether --with-group-queue was given.
12964 if test ${with_group_queue+y}
12965 then :
12966 withval=$with_group_queue;
12967 if test -n "$withval" -a "$withval" != "no" -a "${withval}" != "yes"; then
12968 SMTPD_QUEUE_GROUP=$withval
12969 fi
12970
12971
12972 fi
12973
12974
12975 printf "%s\n" "#define SMTPD_QUEUE_GROUP \"$SMTPD_QUEUE_GROUP\"" >>confdefs.h
12976
12977
12978
12979 # Where to place spooler
12980 spooldir=/var/spool/smtpd
12981
12982 # Check whether --with-path-queue was given.
12983 if test ${with_path_queue+y}
12984 then :
12985 withval=$with_path_queue;
12986 if test -n "$withval" -a "$withval" != "no" -a "${withval}" != "yes"; then
12987 spooldir=$withval
12988 if test ! -d $spooldir; then
12989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ** no $spooldir directory on this system **" >&5
12990 printf "%s\n" "$as_me: WARNING: ** no $spooldir directory on this system **" >&2;}
12991 fi
12992 fi
12993
12994
12995 fi
12996
12997
12998
12999 printf "%s\n" "#define PATH_SPOOL \"$spooldir\"" >>confdefs.h
13000
13001
13002
13003
13004 PRIVSEP_PATH=/var/empty
13005
13006 # Check whether --with-path-empty was given.
13007 if test ${with_path_empty+y}
13008 then :
13009 withval=$with_path_empty;
13010 if test -n "$withval" -a "$withval" != "no" -a "${withval}" != "yes"; then
13011 PRIVSEP_PATH=$withval
13012 fi
13013
13014
13015 fi
13016
13017
13018
13019 # Check for mail directory
13020
13021 # Check whether --with-path-mbox was given.
13022 if test ${with_path_mbox+y}
13023 then :
13024 withval=$with_path_mbox;
13025 if test -n "$withval" -a "$withval" != "no" -a "${withval}" != "yes"; then
13026
13027 printf "%s\n" "#define MAIL_DIRECTORY \"$withval\"" >>confdefs.h
13028
13029 fi
13030
13031 else case e in #(
13032 e)
13033 if test -n "$maildir"; then
13034 printf "%s\n" "#define MAIL_DIRECTORY \"$maildir\"" >>confdefs.h
13035
13036 else
13037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system mail directory" >&5
13038 printf %s "checking system mail directory... " >&6; }
13039 if test "$cross_compiling" = yes
13040 then :
13041
13042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5
13043 printf "%s\n" "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;}
13044
13045
13046 else case e in #(
13047 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13048 /* end confdefs.h. */
13049
13050 #include <stdio.h>
13051 #include <string.h>
13052 #include <stdlib.h>
13053 #ifdef HAVE_PATHS_H
13054 #include <paths.h>
13055 #endif
13056 #ifdef HAVE_MAILLOCK_H
13057 #include <maillock.h>
13058 #endif
13059 #define DATA "conftest.maildir"
13060
13061 int
13062 main (void)
13063 {
13064
13065 FILE *fd;
13066 int rc;
13067
13068 fd = fopen(DATA,"w");
13069 if(fd == NULL)
13070 exit(1);
13071
13072 #if defined (_PATH_MAILDIR)
13073 if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0)
13074 exit(1);
13075 #elif defined (MAILDIR)
13076 if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0)
13077 exit(1);
13078 #elif defined (_PATH_MAIL)
13079 if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0)
13080 exit(1);
13081 #else
13082 exit (2);
13083 #endif
13084
13085 exit(0);
13086
13087 ;
13088 return 0;
13089 }
13090 _ACEOF
13091 if ac_fn_c_try_run "$LINENO"
13092 then :
13093
13094 maildir_what=`awk -F: '{print $1}' conftest.maildir`
13095 maildir=`awk -F: '{print $2}' conftest.maildir \
13096 | sed 's|/$||'`
13097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $maildir from $maildir_what" >&5
13098 printf "%s\n" "$maildir from $maildir_what" >&6; }
13099 if test "x$maildir_what" != "x_PATH_MAILDIR"; then
13100 printf "%s\n" "#define MAIL_DIRECTORY \"$maildir\"" >>confdefs.h
13101
13102 fi
13103
13104 else case e in #(
13105 e)
13106 if test "X$ac_status" = "X2"; then
13107 # our test program didn't find it. Default to /var/spool/mail
13108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: /var/spool/mail" >&5
13109 printf "%s\n" "/var/spool/mail" >&6; }
13110 printf "%s\n" "#define MAIL_DIRECTORY \"/var/spool/mail\"" >>confdefs.h
13111
13112 else
13113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: *** not found ***" >&5
13114 printf "%s\n" "*** not found ***" >&6; }
13115 fi
13116 ;;
13117 esac
13118 fi
13119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13120 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13121 esac
13122 fi
13123
13124 fi
13125
13126 ;;
13127 esac
13128 fi
13129 # maildir
13130
13131 # Where to place smtpd.sock
13132 sockdir=/var/run
13133 # make sure the directory exists
13134 if test ! -d $sockdir; then
13135 sockdir=`eval echo ${sysconfdir}`
13136 case $sockdir in
13137 NONE/*) sockdir=`echo $sockdir | sed "s~NONE~$ac_default_prefix~"` ;;
13138 esac
13139 fi
13140
13141
13142 # Check whether --with-path-socket was given.
13143 if test ${with_path_socket+y}
13144 then :
13145 withval=$with_path_socket;
13146 if test -n "$withval" -a "$withval" != "no" -a "${withval}" != "yes"; then
13147 sockdir=$withval
13148 if test ! -d $sockdir; then
13149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ** no $sockdir directory on this system **" >&5
13150 printf "%s\n" "$as_me: WARNING: ** no $sockdir directory on this system **" >&2;}
13151 fi
13152 fi
13153
13154
13155 fi
13156
13157
13158
13159 printf "%s\n" "#define SMTPD_SOCKDIR \"$sockdir\"" >>confdefs.h
13160
13161
13162 #l4470
13163
13164 # Where to place smtpd.pid
13165 piddir=/var/run
13166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system pid directory" >&5
13167 printf %s "checking system pid directory... " >&6; }
13168 if test "$cross_compiling" = yes
13169 then :
13170
13171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $piddir from default value" >&5
13172 printf "%s\n" "$piddir from default value" >&6; }
13173
13174
13175 else case e in #(
13176 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13177 /* end confdefs.h. */
13178
13179
13180 #include <stdio.h>
13181 #include <stdlib.h>
13182 #ifdef HAVE_PATHS_H
13183 #include <paths.h>
13184 #endif
13185 #define DATA "conftest.piddir"
13186
13187 int
13188 main (void)
13189 {
13190
13191 #ifdef _PATH_VARRUN
13192 FILE *fd;
13193 int rc;
13194
13195 if ((fd = fopen(DATA,"w")) == NULL) { exit(1); }
13196 if ((rc = fprintf(fd ,"%s\n", _PATH_VARRUN)) < 0) { exit(2); }
13197 exit(0);
13198 #else
13199 exit(-1);
13200 #endif
13201
13202 ;
13203 return 0;
13204 }
13205
13206 _ACEOF
13207 if ac_fn_c_try_run "$LINENO"
13208 then :
13209
13210 piddir=`cat conftest.piddir`
13211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $piddir from paths.h" >&5
13212 printf "%s\n" "$piddir from paths.h" >&6; }
13213
13214 else case e in #(
13215 e)
13216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $piddir from default value" >&5
13217 printf "%s\n" "$piddir from default value" >&6; }
13218 ;;
13219 esac
13220 fi
13221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13222 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13223 esac
13224 fi
13225
13226
13227
13228 # Check whether --with-path-pidfile was given.
13229 if test ${with_path_pidfile+y}
13230 then :
13231 withval=$with_path_pidfile;
13232 if test -n "$withval" -a "$withval" != "no" -a "${withval}" != "yes"; then
13233 piddir=$withval
13234 fi
13235
13236
13237 fi
13238
13239
13240
13241 printf "%s\n" "#define SMTPD_PIDDIR \"$piddir\"" >>confdefs.h
13242
13243
13244
13245
13246 # Check whether --with-path-CAfile was given.
13247 if test ${with_path_CAfile+y}
13248 then :
13249 withval=$with_path_CAfile;
13250 fi
13251
13252 if test -n "$with_path_CAfile" -a "$with_path_CAfile" != no -a \
13253 "$with_path_CAfile" != yes
13254 then :
13255
13256
13257 printf "%s\n" "#define OPENSMTPD_CA_FILE \"$with_path_CAfile\"" >>confdefs.h
13258
13259
13260 fi
13261
13262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5
13263 printf %s "checking for msg_accrights field in struct msghdr... " >&6; }
13264 if test ${ac_cv_have_accrights_in_msghdr+y}
13265 then :
13266 printf %s "(cached) " >&6
13267 else case e in #(
13268 e)
13269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13270 /* end confdefs.h. */
13271
13272 #include <sys/types.h>
13273 #include <sys/socket.h>
13274 #include <sys/uio.h>
13275 #include <stdlib.h>
13276
13277 int
13278 main (void)
13279 {
13280
13281 #ifdef msg_accrights
13282 #error "msg_accrights is a macro"
13283 exit(1);
13284 #endif
13285 struct msghdr m;
13286 m.msg_accrights = 0;
13287 exit(0);
13288
13289 ;
13290 return 0;
13291 }
13292 _ACEOF
13293 if ac_fn_c_try_compile "$LINENO"
13294 then :
13295 ac_cv_have_accrights_in_msghdr="yes"
13296 else case e in #(
13297 e) ac_cv_have_accrights_in_msghdr="no"
13298 ;;
13299 esac
13300 fi
13301 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13302 ;;
13303 esac
13304 fi
13305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5
13306 printf "%s\n" "$ac_cv_have_accrights_in_msghdr" >&6; }
13307 if test "x$ac_cv_have_accrights_in_msghdr" = "xyes"; then
13308
13309 printf "%s\n" "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h
13310
13311 fi
13312
13313
13314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5
13315 printf %s "checking for msg_control field in struct msghdr... " >&6; }
13316 if test ${ac_cv_have_control_in_msghdr+y}
13317 then :
13318 printf %s "(cached) " >&6
13319 else case e in #(
13320 e)
13321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13322 /* end confdefs.h. */
13323
13324 #include <sys/types.h>
13325 #include <sys/socket.h>
13326 #include <sys/uio.h>
13327 #include <stdlib.h>
13328
13329 int
13330 main (void)
13331 {
13332
13333 #ifdef msg_control
13334 #error "msg_control is a macro"
13335 exit(1);
13336 #endif
13337 struct msghdr m;
13338 m.msg_control = 0;
13339 exit(0);
13340
13341 ;
13342 return 0;
13343 }
13344 _ACEOF
13345 if ac_fn_c_try_compile "$LINENO"
13346 then :
13347 ac_cv_have_control_in_msghdr="yes"
13348 else case e in #(
13349 e) ac_cv_have_control_in_msghdr="no"
13350 ;;
13351 esac
13352 fi
13353 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13354 ;;
13355 esac
13356 fi
13357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5
13358 printf "%s\n" "$ac_cv_have_control_in_msghdr" >&6; }
13359 if test "x$ac_cv_have_control_in_msghdr" = "xyes"; then
13360
13361 printf "%s\n" "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h
13362
13363 fi
13364
13365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5
13366 printf %s "checking if libc defines __progname... " >&6; }
13367 if test ${ac_cv_libc_defines___progname+y}
13368 then :
13369 printf %s "(cached) " >&6
13370 else case e in #(
13371 e)
13372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13373 /* end confdefs.h. */
13374 #include <stdio.h>
13375 int
13376 main (void)
13377 {
13378 extern char *__progname; printf("%s", __progname);
13379 ;
13380 return 0;
13381 }
13382 _ACEOF
13383 if ac_fn_c_try_link "$LINENO"
13384 then :
13385 ac_cv_libc_defines___progname="yes"
13386 else case e in #(
13387 e) ac_cv_libc_defines___progname="no"
13388 ;;
13389 esac
13390 fi
13391 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13392 conftest$ac_exeext conftest.$ac_ext
13393 ;;
13394 esac
13395 fi
13396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5
13397 printf "%s\n" "$ac_cv_libc_defines___progname" >&6; }
13398 if test "x$ac_cv_libc_defines___progname" = "xyes"; then
13399
13400 printf "%s\n" "#define HAVE___PROGNAME 1" >>confdefs.h
13401
13402 fi
13403
13404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5
13405 printf %s "checking whether $CC implements __FUNCTION__... " >&6; }
13406 if test ${ac_cv_cc_implements___FUNCTION__+y}
13407 then :
13408 printf %s "(cached) " >&6
13409 else case e in #(
13410 e)
13411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13412 /* end confdefs.h. */
13413 #include <stdio.h>
13414 int
13415 main (void)
13416 {
13417 printf("%s", __FUNCTION__);
13418 ;
13419 return 0;
13420 }
13421 _ACEOF
13422 if ac_fn_c_try_link "$LINENO"
13423 then :
13424 ac_cv_cc_implements___FUNCTION__="yes"
13425 else case e in #(
13426 e) ac_cv_cc_implements___FUNCTION__="no"
13427 ;;
13428 esac
13429 fi
13430 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13431 conftest$ac_exeext conftest.$ac_ext
13432 ;;
13433 esac
13434 fi
13435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5
13436 printf "%s\n" "$ac_cv_cc_implements___FUNCTION__" >&6; }
13437 if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes"; then
13438
13439 printf "%s\n" "#define HAVE___FUNCTION__ 1" >>confdefs.h
13440
13441 fi
13442
13443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5
13444 printf %s "checking whether $CC implements __func__... " >&6; }
13445 if test ${ac_cv_cc_implements___func__+y}
13446 then :
13447 printf %s "(cached) " >&6
13448 else case e in #(
13449 e)
13450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13451 /* end confdefs.h. */
13452 #include <stdio.h>
13453 int
13454 main (void)
13455 {
13456 printf("%s", __func__);
13457 ;
13458 return 0;
13459 }
13460 _ACEOF
13461 if ac_fn_c_try_link "$LINENO"
13462 then :
13463 ac_cv_cc_implements___func__="yes"
13464 else case e in #(
13465 e) ac_cv_cc_implements___func__="no"
13466 ;;
13467 esac
13468 fi
13469 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13470 conftest$ac_exeext conftest.$ac_ext
13471 ;;
13472 esac
13473 fi
13474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5
13475 printf "%s\n" "$ac_cv_cc_implements___func__" >&6; }
13476 if test "x$ac_cv_cc_implements___func__" = "xyes"; then
13477
13478 printf "%s\n" "#define HAVE___func__ 1" >>confdefs.h
13479
13480 fi
13481
13482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5
13483 printf %s "checking whether va_copy exists... " >&6; }
13484 if test ${ac_cv_have_va_copy+y}
13485 then :
13486 printf %s "(cached) " >&6
13487 else case e in #(
13488 e)
13489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490 /* end confdefs.h. */
13491
13492 #include <stdarg.h>
13493 va_list x,y;
13494
13495 int
13496 main (void)
13497 {
13498 va_copy(x,y);
13499 ;
13500 return 0;
13501 }
13502 _ACEOF
13503 if ac_fn_c_try_link "$LINENO"
13504 then :
13505 ac_cv_have_va_copy="yes"
13506 else case e in #(
13507 e) ac_cv_have_va_copy="no"
13508 ;;
13509 esac
13510 fi
13511 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13512 conftest$ac_exeext conftest.$ac_ext
13513 ;;
13514 esac
13515 fi
13516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5
13517 printf "%s\n" "$ac_cv_have_va_copy" >&6; }
13518 if test "x$ac_cv_have_va_copy" = "xyes"; then
13519
13520 printf "%s\n" "#define HAVE_VA_COPY 1" >>confdefs.h
13521
13522 fi
13523
13524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5
13525 printf %s "checking whether __va_copy exists... " >&6; }
13526 if test ${ac_cv_have___va_copy+y}
13527 then :
13528 printf %s "(cached) " >&6
13529 else case e in #(
13530 e)
13531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13532 /* end confdefs.h. */
13533
13534 #include <stdarg.h>
13535 va_list x,y;
13536
13537 int
13538 main (void)
13539 {
13540 __va_copy(x,y);
13541 ;
13542 return 0;
13543 }
13544 _ACEOF
13545 if ac_fn_c_try_link "$LINENO"
13546 then :
13547 ac_cv_have___va_copy="yes"
13548 else case e in #(
13549 e) ac_cv_have___va_copy="no"
13550 ;;
13551 esac
13552 fi
13553 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13554 conftest$ac_exeext conftest.$ac_ext
13555 ;;
13556 esac
13557 fi
13558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5
13559 printf "%s\n" "$ac_cv_have___va_copy" >&6; }
13560 if test "x$ac_cv_have___va_copy" = "xyes"; then
13561
13562 printf "%s\n" "#define HAVE___VA_COPY 1" >>confdefs.h
13563
13564 fi
13565
13566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5
13567 printf %s "checking whether getopt has optreset support... " >&6; }
13568 if test ${ac_cv_have_getopt_optreset+y}
13569 then :
13570 printf %s "(cached) " >&6
13571 else case e in #(
13572 e)
13573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13574 /* end confdefs.h. */
13575 #include <getopt.h>
13576 int
13577 main (void)
13578 {
13579 extern int optreset; optreset = 0;
13580 ;
13581 return 0;
13582 }
13583 _ACEOF
13584 if ac_fn_c_try_link "$LINENO"
13585 then :
13586 ac_cv_have_getopt_optreset="yes"
13587 else case e in #(
13588 e) ac_cv_have_getopt_optreset="no"
13589 ;;
13590 esac
13591 fi
13592 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13593 conftest$ac_exeext conftest.$ac_ext
13594 ;;
13595 esac
13596 fi
13597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5
13598 printf "%s\n" "$ac_cv_have_getopt_optreset" >&6; }
13599 if test "x$ac_cv_have_getopt_optreset" = "xyes"; then
13600
13601 printf "%s\n" "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h
13602
13603 fi
13604
13605 ac_fn_check_decl "$LINENO" "suboptarg" "ac_cv_have_decl_suboptarg" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13606 if test "x$ac_cv_have_decl_suboptarg" = xyes
13607 then :
13608
13609
13610 printf "%s\n" "#define HAVE_SUBOPTARG 1" >>confdefs.h
13611
13612
13613 else case e in #(
13614 e)
13615 case " $LIBOBJS " in
13616 *" getsubopt.$ac_objext "* ) ;;
13617 *) LIBOBJS="$LIBOBJS getsubopt.$ac_objext"
13618 ;;
13619 esac
13620
13621 ;;
13622 esac
13623 fi
13624
13625 # Search for fts
13626
13627 # Check whether --with-libfts was given.
13628 if test ${with_libfts+y}
13629 then :
13630 withval=$with_libfts; if test "x$withval" = "xno"; then
13631 as_fn_error $? "*** fts is required ***" "$LINENO" 5
13632 elif test "x$withval" != "xyes"; then
13633 if test -d "$withval/lib"; then
13634 if test -n "${need_dash_r}"; then
13635 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
13636 else
13637 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
13638 fi
13639 else
13640 if test -n "${need_dash_r}"; then
13641 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
13642 else
13643 LDFLAGS="-L${withval} ${LDFLAGS}"
13644 fi
13645 fi
13646 if test -d "$withval/include"; then
13647 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
13648 else
13649 CPPFLAGS="-I${withval} ${CPPFLAGS}"
13650 fi
13651 LIBS="$LIBS -lfts"
13652 fi
13653
13654
13655 fi
13656
13657
13658 # Search for libevent
13659 saved_CPPFLAGS="$CPPFLAGS"
13660 saved_LDFLAGS="$LDFLAGS"
13661
13662 # Check whether --with-libevent was given.
13663 if test ${with_libevent+y}
13664 then :
13665 withval=$with_libevent;
13666 if test "x$withval" != "xno"; then
13667 case "$withval" in
13668 # Relative paths
13669 ./*|../*) withval="`pwd`/$withval"
13670 esac
13671 if test -d "$withval/lib"; then
13672 if test -n "${need_dash_r}"; then
13673 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
13674 else
13675 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
13676 fi
13677 elif test -d "$withval/lib64"; then
13678 if test -n "${need_dash_r}"; then
13679 LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}"
13680 else
13681 LDFLAGS="-L${withval}/lib64 ${LDFLAGS}"
13682 fi
13683 else
13684 if test -n "${need_dash_r}"; then
13685 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
13686 else
13687 LDFLAGS="-L${withval} ${LDFLAGS}"
13688 fi
13689 fi
13690 if test -d "$withval/include"; then
13691 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
13692 else
13693 CPPFLAGS="-I${withval} ${CPPFLAGS}"
13694 fi
13695 fi
13696
13697
13698 fi
13699
13700
13701 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "#include <sys/types.h>
13702 "
13703 if test "x$ac_cv_header_event_h" = xyes
13704 then :
13705
13706 else case e in #(
13707 e) as_fn_error $? "*** event.h missing - please install libevent ***" "$LINENO" 5 ;;
13708 esac
13709 fi
13710
13711 LIBS="$LIBS -levent"
13712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if programs using libevent functions will link" >&5
13713 printf %s "checking if programs using libevent functions will link... " >&6; }
13714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13715 /* end confdefs.h. */
13716
13717 #include <event.h>
13718
13719 int
13720 main (void)
13721 {
13722
13723 event_base_new();
13724
13725 ;
13726 return 0;
13727 }
13728 _ACEOF
13729 if ac_fn_c_try_link "$LINENO"
13730 then :
13731
13732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13733 printf "%s\n" "yes" >&6; }
13734
13735 else case e in #(
13736 e)
13737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13738 printf "%s\n" "no" >&6; }
13739
13740 ;;
13741 esac
13742 fi
13743 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13744 conftest$ac_exeext conftest.$ac_ext
13745
13746 # Search for OpenSSL
13747 saved_CPPFLAGS="$CPPFLAGS"
13748 saved_LDFLAGS="$LDFLAGS"
13749
13750 # Check whether --with-libssl was given.
13751 if test ${with_libssl+y}
13752 then :
13753 withval=$with_libssl;
13754 if test "x$withval" != "xno"; then
13755 case "$withval" in
13756 # Relative paths
13757 ./*|../*) withval="`pwd`/$withval"
13758 esac
13759 if test -d "$withval/lib"; then
13760 if test -n "${need_dash_r}"; then
13761 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
13762 else
13763 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
13764 fi
13765 elif test -d "$withval/lib64"; then
13766 if test -n "${need_dash_r}"; then
13767 LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}"
13768 else
13769 LDFLAGS="-L${withval}/lib64 ${LDFLAGS}"
13770 fi
13771 else
13772 if test -n "${need_dash_r}"; then
13773 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
13774 else
13775 LDFLAGS="-L${withval} ${LDFLAGS}"
13776 fi
13777 fi
13778 if test -d "$withval/include"; then
13779 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
13780 else
13781 CPPFLAGS="-I${withval} ${CPPFLAGS}"
13782 fi
13783 fi
13784
13785
13786 fi
13787
13788
13789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing RAND_add" >&5
13790 printf %s "checking for library containing RAND_add... " >&6; }
13791 if test ${ac_cv_search_RAND_add+y}
13792 then :
13793 printf %s "(cached) " >&6
13794 else case e in #(
13795 e) ac_func_search_save_LIBS=$LIBS
13796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13797 /* end confdefs.h. */
13798
13799 /* Override any GCC internal prototype to avoid an error.
13800 Use char because int might match the return type of a GCC
13801 builtin and then its argument prototype would still apply.
13802 The 'extern "C"' is for builds by C++ compilers;
13803 although this is not generally supported in C code supporting it here
13804 has little cost and some practical benefit (sr 110532). */
13805 #ifdef __cplusplus
13806 extern "C"
13807 #endif
13808 char RAND_add (void);
13809 int
13810 main (void)
13811 {
13812 return RAND_add ();
13813 ;
13814 return 0;
13815 }
13816 _ACEOF
13817 for ac_lib in '' crypto
13818 do
13819 if test -z "$ac_lib"; then
13820 ac_res="none required"
13821 else
13822 ac_res=-l$ac_lib
13823 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13824 fi
13825 if ac_fn_c_try_link "$LINENO"
13826 then :
13827 ac_cv_search_RAND_add=$ac_res
13828 fi
13829 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13830 conftest$ac_exeext
13831 if test ${ac_cv_search_RAND_add+y}
13832 then :
13833 break
13834 fi
13835 done
13836 if test ${ac_cv_search_RAND_add+y}
13837 then :
13838
13839 else case e in #(
13840 e) ac_cv_search_RAND_add=no ;;
13841 esac
13842 fi
13843 rm conftest.$ac_ext
13844 LIBS=$ac_func_search_save_LIBS ;;
13845 esac
13846 fi
13847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RAND_add" >&5
13848 printf "%s\n" "$ac_cv_search_RAND_add" >&6; }
13849 ac_res=$ac_cv_search_RAND_add
13850 if test "$ac_res" != no
13851 then :
13852 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13853 :
13854 else case e in #(
13855 e)
13856 as_fn_error $? "can't find libcrypto" "$LINENO" 5
13857 ;;
13858 esac
13859 fi
13860
13861
13862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_CTX_new" >&5
13863 printf %s "checking for library containing SSL_CTX_new... " >&6; }
13864 if test ${ac_cv_search_SSL_CTX_new+y}
13865 then :
13866 printf %s "(cached) " >&6
13867 else case e in #(
13868 e) ac_func_search_save_LIBS=$LIBS
13869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13870 /* end confdefs.h. */
13871
13872 /* Override any GCC internal prototype to avoid an error.
13873 Use char because int might match the return type of a GCC
13874 builtin and then its argument prototype would still apply.
13875 The 'extern "C"' is for builds by C++ compilers;
13876 although this is not generally supported in C code supporting it here
13877 has little cost and some practical benefit (sr 110532). */
13878 #ifdef __cplusplus
13879 extern "C"
13880 #endif
13881 char SSL_CTX_new (void);
13882 int
13883 main (void)
13884 {
13885 return SSL_CTX_new ();
13886 ;
13887 return 0;
13888 }
13889 _ACEOF
13890 for ac_lib in '' ssl
13891 do
13892 if test -z "$ac_lib"; then
13893 ac_res="none required"
13894 else
13895 ac_res=-l$ac_lib
13896 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13897 fi
13898 if ac_fn_c_try_link "$LINENO"
13899 then :
13900 ac_cv_search_SSL_CTX_new=$ac_res
13901 fi
13902 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13903 conftest$ac_exeext
13904 if test ${ac_cv_search_SSL_CTX_new+y}
13905 then :
13906 break
13907 fi
13908 done
13909 if test ${ac_cv_search_SSL_CTX_new+y}
13910 then :
13911
13912 else case e in #(
13913 e) ac_cv_search_SSL_CTX_new=no ;;
13914 esac
13915 fi
13916 rm conftest.$ac_ext
13917 LIBS=$ac_func_search_save_LIBS ;;
13918 esac
13919 fi
13920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_CTX_new" >&5
13921 printf "%s\n" "$ac_cv_search_SSL_CTX_new" >&6; }
13922 ac_res=$ac_cv_search_SSL_CTX_new
13923 if test "$ac_res" != no
13924 then :
13925 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13926 :
13927 else case e in #(
13928 e)
13929 as_fn_error $? "can't find libssl" "$LINENO" 5
13930 ;;
13931 esac
13932 fi
13933
13934
13935 # Check arc4random only after libcrypto to avoid issues with old
13936 # (pre 3.8) versions of LibreSSL.
13937 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
13938 if test "x$ac_cv_func_arc4random" = xyes
13939 then :
13940 printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h
13941
13942 else case e in #(
13943 e) case " $LIBOBJS " in
13944 *" arc4random.$ac_objext "* ) ;;
13945 *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
13946 ;;
13947 esac
13948 ;;
13949 esac
13950 fi
13951
13952
13953 ac_fn_c_check_func "$LINENO" "SSL_CTX_use_certificate_chain_mem" "ac_cv_func_SSL_CTX_use_certificate_chain_mem"
13954 if test "x$ac_cv_func_SSL_CTX_use_certificate_chain_mem" = xyes
13955 then :
13956 printf "%s\n" "#define HAVE_SSL_CTX_USE_CERTIFICATE_CHAIN_MEM 1" >>confdefs.h
13957
13958 fi
13959 ac_fn_c_check_func "$LINENO" "SSL_CTX_load_verify_mem" "ac_cv_func_SSL_CTX_load_verify_mem"
13960 if test "x$ac_cv_func_SSL_CTX_load_verify_mem" = xyes
13961 then :
13962 printf "%s\n" "#define HAVE_SSL_CTX_LOAD_VERIFY_MEM 1" >>confdefs.h
13963
13964 fi
13965 ac_fn_c_check_func "$LINENO" "X509_LOOKUP_mem" "ac_cv_func_X509_LOOKUP_mem"
13966 if test "x$ac_cv_func_X509_LOOKUP_mem" = xyes
13967 then :
13968 printf "%s\n" "#define HAVE_X509_LOOKUP_MEM 1" >>confdefs.h
13969
13970 fi
13971 ac_fn_c_check_func "$LINENO" "OPENSSL_posix_to_tm" "ac_cv_func_OPENSSL_posix_to_tm"
13972 if test "x$ac_cv_func_OPENSSL_posix_to_tm" = xyes
13973 then :
13974 printf "%s\n" "#define HAVE_OPENSSL_POSIX_TO_TM 1" >>confdefs.h
13975
13976 fi
13977 ac_fn_c_check_func "$LINENO" "OPENSSL_gmtime" "ac_cv_func_OPENSSL_gmtime"
13978 if test "x$ac_cv_func_OPENSSL_gmtime" = xyes
13979 then :
13980 printf "%s\n" "#define HAVE_OPENSSL_GMTIME 1" >>confdefs.h
13981
13982 fi
13983
13984
13985 if test "x$ac_cv_func_OPENSSL_posix_to_tm" = xno
13986 then :
13987
13988 AM_CFLAGS="${AM_CFLAGS} -I\${top_srcdir}/openbsd-compat/openssl/"
13989
13990 fi
13991
13992 # Sanity check OpenSSL headers
13993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether LibreSSL's headers match the library" >&5
13994 printf %s "checking whether LibreSSL's headers match the library... " >&6; }
13995 if test "$cross_compiling" = yes
13996 then :
13997
13998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
13999 printf "%s\n" "$as_me: WARNING: cross compiling: not checking" >&2;}
14000
14001
14002 else case e in #(
14003 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14004 /* end confdefs.h. */
14005
14006 #include <stdlib.h>
14007 #include <string.h>
14008 #include <openssl/opensslv.h>
14009 #include <openssl/crypto.h>
14010
14011 int
14012 main (void)
14013 {
14014
14015 exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1);
14016
14017 ;
14018 return 0;
14019 }
14020 _ACEOF
14021 if ac_fn_c_try_run "$LINENO"
14022 then :
14023
14024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14025 printf "%s\n" "yes" >&6; }
14026
14027 else case e in #(
14028 e)
14029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14030 printf "%s\n" "no" >&6; }
14031 as_fn_error $? "Your LibreSSL headers do not match your library." "$LINENO" 5
14032 ;;
14033 esac
14034 fi
14035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14036 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14037 esac
14038 fi
14039
14040
14041 ac_fn_check_decl "$LINENO" "LIBRESSL_VERSION_NUMBER" "ac_cv_have_decl_LIBRESSL_VERSION_NUMBER" "#include <openssl/ssl.h>
14042 " "$ac_c_undeclared_builtin_options" "CFLAGS"
14043 if test "x$ac_cv_have_decl_LIBRESSL_VERSION_NUMBER" = xyes
14044 then :
14045
14046 fi
14047
14048
14049 # Check whether --with-libz was given.
14050 if test ${with_libz+y}
14051 then :
14052 withval=$with_libz; if test "x$withval" = "xno"; then
14053 as_fn_error $? "*** zlib is required ***" "$LINENO" 5
14054 elif test "x$withval" != "xyes"; then
14055 if test -d "$withval/lib"; then
14056 if test -n "${need_dash_r}"; then
14057 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
14058 else
14059 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
14060 fi
14061 else
14062 if test -n "${need_dash_r}"; then
14063 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
14064 else
14065 LDFLAGS="-L${withval} ${LDFLAGS}"
14066 fi
14067 fi
14068 if test -d "$withval/include"; then
14069 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
14070 else
14071 CPPFLAGS="-I${withval} ${CPPFLAGS}"
14072 fi
14073 fi
14074
14075 fi
14076
14077
14078 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
14079 if test "x$ac_cv_header_zlib_h" = xyes
14080 then :
14081
14082 else case e in #(
14083 e) as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5 ;;
14084 esac
14085 fi
14086
14087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
14088 printf %s "checking for library containing deflate... " >&6; }
14089 if test ${ac_cv_search_deflate+y}
14090 then :
14091 printf %s "(cached) " >&6
14092 else case e in #(
14093 e) ac_func_search_save_LIBS=$LIBS
14094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14095 /* end confdefs.h. */
14096
14097 /* Override any GCC internal prototype to avoid an error.
14098 Use char because int might match the return type of a GCC
14099 builtin and then its argument prototype would still apply.
14100 The 'extern "C"' is for builds by C++ compilers;
14101 although this is not generally supported in C code supporting it here
14102 has little cost and some practical benefit (sr 110532). */
14103 #ifdef __cplusplus
14104 extern "C"
14105 #endif
14106 char deflate (void);
14107 int
14108 main (void)
14109 {
14110 return deflate ();
14111 ;
14112 return 0;
14113 }
14114 _ACEOF
14115 for ac_lib in '' z
14116 do
14117 if test -z "$ac_lib"; then
14118 ac_res="none required"
14119 else
14120 ac_res=-l$ac_lib
14121 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14122 fi
14123 if ac_fn_c_try_link "$LINENO"
14124 then :
14125 ac_cv_search_deflate=$ac_res
14126 fi
14127 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14128 conftest$ac_exeext
14129 if test ${ac_cv_search_deflate+y}
14130 then :
14131 break
14132 fi
14133 done
14134 if test ${ac_cv_search_deflate+y}
14135 then :
14136
14137 else case e in #(
14138 e) ac_cv_search_deflate=no ;;
14139 esac
14140 fi
14141 rm conftest.$ac_ext
14142 LIBS=$ac_func_search_save_LIBS ;;
14143 esac
14144 fi
14145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
14146 printf "%s\n" "$ac_cv_search_deflate" >&6; }
14147 ac_res=$ac_cv_search_deflate
14148 if test "$ac_res" != no
14149 then :
14150 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14151 :
14152 else case e in #(
14153 e)
14154 as_fn_error $? "can't find zlib" "$LINENO" 5
14155 ;;
14156 esac
14157 fi
14158
14159
14160
14161 # Check whether --with-table-db was given.
14162 if test ${with_table_db+y}
14163 then :
14164 withval=$with_table_db;
14165 if test "x$withval" = "xyes"; then
14166 use_db_api=1
14167 else
14168 use_db_api=0
14169 fi
14170
14171
14172 fi
14173
14174
14175 if test "x$use_db_api" = "x1"; then
14176 # Search for libdb
14177 ac_fn_c_check_header_compile "$LINENO" "db_185.h" "ac_cv_header_db_185_h" "$ac_includes_default"
14178 if test "x$ac_cv_header_db_185_h" = xyes
14179 then :
14180
14181 printf "%s\n" "#define HAVE_DB_185_H /**/" >>confdefs.h
14182
14183 else case e in #(
14184 e)
14185 ac_fn_c_check_header_compile "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
14186 if test "x$ac_cv_header_db_h" = xyes
14187 then :
14188
14189 printf "%s\n" "#define HAVE_DB_H /**/" >>confdefs.h
14190
14191 else case e in #(
14192 e)
14193 ac_fn_c_check_header_compile "$LINENO" "db1/db.h" "ac_cv_header_db1_db_h" "$ac_includes_default"
14194 if test "x$ac_cv_header_db1_db_h" = xyes
14195 then :
14196
14197 printf "%s\n" "#define HAVE_DB1_DB_H /**/" >>confdefs.h
14198
14199 else case e in #(
14200 e)
14201 as_fn_error $? "*** Can't find Berkeley DB headers (see config.log for details) ***" "$LINENO" 5
14202 ;;
14203 esac
14204 fi
14205 ;;
14206 esac
14207 fi
14208 ;;
14209 esac
14210 fi
14211
14212 fi
14213
14214 save_LIBS="$LIBS"
14215
14216 if test "x$use_db_api" = "x1"; then
14217 DB_LIB=
14218
14219 for libdb in db db1 c; do
14220 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$libdb""_dbopen" | sed "$as_sed_sh"`
14221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$libdb" >&5
14222 printf %s "checking for dbopen in -l$libdb... " >&6; }
14223 if eval test \${$as_ac_Lib+y}
14224 then :
14225 printf %s "(cached) " >&6
14226 else case e in #(
14227 e) ac_check_lib_save_LIBS=$LIBS
14228 LIBS="-l$libdb $LIBS"
14229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14230 /* end confdefs.h. */
14231
14232 /* Override any GCC internal prototype to avoid an error.
14233 Use char because int might match the return type of a GCC
14234 builtin and then its argument prototype would still apply.
14235 The 'extern "C"' is for builds by C++ compilers;
14236 although this is not generally supported in C code supporting it here
14237 has little cost and some practical benefit (sr 110532). */
14238 #ifdef __cplusplus
14239 extern "C"
14240 #endif
14241 char dbopen (void);
14242 int
14243 main (void)
14244 {
14245 return dbopen ();
14246 ;
14247 return 0;
14248 }
14249 _ACEOF
14250 if ac_fn_c_try_link "$LINENO"
14251 then :
14252 eval "$as_ac_Lib=yes"
14253 else case e in #(
14254 e) eval "$as_ac_Lib=no" ;;
14255 esac
14256 fi
14257 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14258 conftest$ac_exeext conftest.$ac_ext
14259 LIBS=$ac_check_lib_save_LIBS ;;
14260 esac
14261 fi
14262 eval ac_res=\$$as_ac_Lib
14263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14264 printf "%s\n" "$ac_res" >&6; }
14265 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
14266 then :
14267 DB_LIB="$libdb"; break;
14268 else case e in #(
14269 e) as_ac_Lib=`printf "%s\n" "ac_cv_lib_$libdb""___db185_open" | sed "$as_sed_sh"`
14270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __db185_open in -l$libdb" >&5
14271 printf %s "checking for __db185_open in -l$libdb... " >&6; }
14272 if eval test \${$as_ac_Lib+y}
14273 then :
14274 printf %s "(cached) " >&6
14275 else case e in #(
14276 e) ac_check_lib_save_LIBS=$LIBS
14277 LIBS="-l$libdb $LIBS"
14278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14279 /* end confdefs.h. */
14280
14281 /* Override any GCC internal prototype to avoid an error.
14282 Use char because int might match the return type of a GCC
14283 builtin and then its argument prototype would still apply.
14284 The 'extern "C"' is for builds by C++ compilers;
14285 although this is not generally supported in C code supporting it here
14286 has little cost and some practical benefit (sr 110532). */
14287 #ifdef __cplusplus
14288 extern "C"
14289 #endif
14290 char __db185_open (void);
14291 int
14292 main (void)
14293 {
14294 return __db185_open ();
14295 ;
14296 return 0;
14297 }
14298 _ACEOF
14299 if ac_fn_c_try_link "$LINENO"
14300 then :
14301 eval "$as_ac_Lib=yes"
14302 else case e in #(
14303 e) eval "$as_ac_Lib=no" ;;
14304 esac
14305 fi
14306 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14307 conftest$ac_exeext conftest.$ac_ext
14308 LIBS=$ac_check_lib_save_LIBS ;;
14309 esac
14310 fi
14311 eval ac_res=\$$as_ac_Lib
14312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14313 printf "%s\n" "$ac_res" >&6; }
14314 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
14315 then :
14316 DB_LIB="$libdb"; break;
14317 fi
14318 ;;
14319 esac
14320 fi
14321
14322 done
14323
14324 if test -z "$DB_LIB"; then
14325 as_fn_error $? "Berkeley DB not found or not built with --enable-185" "$LINENO" 5
14326 fi
14327
14328 DB_LIB="-l$DB_LIB"
14329
14330 fi
14331
14332 LIBS="$save_LIBS"
14333
14334 if test "x$use_db_api" = "x1"; then
14335 HAVE_DB_API_TRUE=
14336 HAVE_DB_API_FALSE='#'
14337 else
14338 HAVE_DB_API_TRUE='#'
14339 HAVE_DB_API_FALSE=
14340 fi
14341
14342 if test -z "$HAVE_DB_API_TRUE"; then :
14343
14344 printf "%s\n" "#define HAVE_DB_API 1" >>confdefs.h
14345
14346 fi
14347
14348 LIBS="$LIBS ${SMTPDLIBS}"
14349
14350 AM_CFLAGS="$AM_CFLAGS $werror_flags"
14351
14352
14353
14354 ac_config_headers="$ac_config_headers config.h"
14355
14356 ac_config_files="$ac_config_files Makefile mk/Makefile mk/mail/Makefile mk/mail/mail.lmtp/Makefile mk/mail/mail.maildir/Makefile mk/mail/mail.mboxfile/Makefile mk/mail/mail.mda/Makefile mk/smtpd/Makefile mk/smtpctl/Makefile mk/smtp/Makefile contrib/Makefile contrib/libexec/Makefile contrib/libexec/mail.local/Makefile contrib/libexec/lockspool/Makefile contrib/libexec/encrypt/Makefile openbsd-compat/Makefile"
14357
14358
14359 cat >confcache <<\_ACEOF
14360 # This file is a shell script that caches the results of configure
14361 # tests run on this system so they can be shared between configure
14362 # scripts and configure runs, see configure's option --config-cache.
14363 # It is not useful on other systems. If it contains results you don't
14364 # want to keep, you may remove or edit it.
14365 #
14366 # config.status only pays attention to the cache file if you give it
14367 # the --recheck option to rerun configure.
14368 #
14369 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
14370 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
14371 # following values.
14372
14373 _ACEOF
14374
14375 # The following way of writing the cache mishandles newlines in values,
14376 # but we know of no workaround that is simple, portable, and efficient.
14377 # So, we kill variables containing newlines.
14378 # Ultrix sh set writes to stderr and can't be redirected directly,
14379 # and sets the high bit in the cache file unless we assign to the vars.
14380 (
14381 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14382 eval ac_val=\$$ac_var
14383 case $ac_val in #(
14384 *${as_nl}*)
14385 case $ac_var in #(
14386 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14387 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14388 esac
14389 case $ac_var in #(
14390 _ | IFS | as_nl) ;; #(
14391 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14392 *) { eval $ac_var=; unset $ac_var;} ;;
14393 esac ;;
14394 esac
14395 done
14396
14397 (set) 2>&1 |
14398 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14399 *${as_nl}ac_space=\ *)
14400 # 'set' does not quote correctly, so add quotes: double-quote
14401 # substitution turns \\\\ into \\, and sed turns \\ into \.
14402 sed -n \
14403 "s/'/'\\\\''/g;
14404 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14405 ;; #(
14406 *)
14407 # 'set' quotes correctly as required by POSIX, so do not add quotes.
14408 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14409 ;;
14410 esac |
14411 sort
14412 ) |
14413 sed '
14414 /^ac_cv_env_/b end
14415 t clear
14416 :clear
14417 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
14418 t end
14419 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14420 :end' >>confcache
14421 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14422 if test -w "$cache_file"; then
14423 if test "x$cache_file" != "x/dev/null"; then
14424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14425 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
14426 if test ! -f "$cache_file" || test -h "$cache_file"; then
14427 cat confcache >"$cache_file"
14428 else
14429 case $cache_file in #(
14430 */* | ?:*)
14431 mv -f confcache "$cache_file"$$ &&
14432 mv -f "$cache_file"$$ "$cache_file" ;; #(
14433 *)
14434 mv -f confcache "$cache_file" ;;
14435 esac
14436 fi
14437 fi
14438 else
14439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14440 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
14441 fi
14442 fi
14443 rm -f confcache
14444
14445 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14446 # Let make expand exec_prefix.
14447 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14448
14449 DEFS=-DHAVE_CONFIG_H
14450
14451 ac_libobjs=
14452 ac_ltlibobjs=
14453 U=
14454 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14455 # 1. Remove the extension, and $U if already installed.
14456 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14457 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
14458 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14459 # will be set to the directory where LIBOBJS objects are built.
14460 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14461 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14462 done
14463 LIBOBJS=$ac_libobjs
14464
14465 LTLIBOBJS=$ac_ltlibobjs
14466
14467
14468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14469 printf %s "checking that generated files are newer than configure... " >&6; }
14470 if test -n "$am_sleep_pid"; then
14471 # Hide warnings about reused PIDs.
14472 wait $am_sleep_pid 2>/dev/null
14473 fi
14474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
14475 printf "%s\n" "done" >&6; }
14476 case $enable_silent_rules in # (((
14477 yes) AM_DEFAULT_VERBOSITY=0;;
14478 no) AM_DEFAULT_VERBOSITY=1;;
14479 esac
14480 if test $am_cv_make_support_nested_variables = yes; then
14481 AM_V='$(V)'
14482 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
14483 else
14484 AM_V=$AM_DEFAULT_VERBOSITY
14485 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
14486 fi
14487
14488 if test -n "$EXEEXT"; then
14489 am__EXEEXT_TRUE=
14490 am__EXEEXT_FALSE='#'
14491 else
14492 am__EXEEXT_TRUE='#'
14493 am__EXEEXT_FALSE=
14494 fi
14495
14496 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14497 as_fn_error $? "conditional \"AMDEP\" was never defined.
14498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14499 fi
14500 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14501 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14503 fi
14504 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14505 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14507 fi
14508 if test -z "${NEED_LIBASR_TRUE}" && test -z "${NEED_LIBASR_FALSE}"; then
14509 as_fn_error $? "conditional \"NEED_LIBASR\" was never defined.
14510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14511 fi
14512 if test -z "${HAVE_DB_API_TRUE}" && test -z "${HAVE_DB_API_FALSE}"; then
14513 as_fn_error $? "conditional \"HAVE_DB_API\" was never defined.
14514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14515 fi
14516
14517 : "${CONFIG_STATUS=./config.status}"
14518 ac_write_fail=0
14519 ac_clean_files_save=$ac_clean_files
14520 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14522 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
14523 as_write_fail=0
14524 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14525 #! $SHELL
14526 # Generated by $as_me.
14527 # Run this file to recreate the current configuration.
14528 # Compiler output produced by configure, useful for debugging
14529 # configure, is in config.log if it exists.
14530
14531 debug=false
14532 ac_cs_recheck=false
14533 ac_cs_silent=false
14534
14535 SHELL=\${CONFIG_SHELL-$SHELL}
14536 export SHELL
14537 _ASEOF
14538 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14539 ## -------------------- ##
14540 ## M4sh Initialization. ##
14541 ## -------------------- ##
14542
14543 # Be more Bourne compatible
14544 DUALCASE=1; export DUALCASE # for MKS sh
14545 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
14546 then :
14547 emulate sh
14548 NULLCMD=:
14549 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14550 # is contrary to our usage. Disable this feature.
14551 alias -g '${1+"$@"}'='"$@"'
14552 setopt NO_GLOB_SUBST
14553 else case e in #(
14554 e) case `(set -o) 2>/dev/null` in #(
14555 *posix*) :
14556 set -o posix ;; #(
14557 *) :
14558 ;;
14559 esac ;;
14560 esac
14561 fi
14562
14563
14564
14565 # Reset variables that may have inherited troublesome values from
14566 # the environment.
14567
14568 # IFS needs to be set, to space, tab, and newline, in precisely that order.
14569 # (If _AS_PATH_WALK were called with IFS unset, it would have the
14570 # side effect of setting IFS to empty, thus disabling word splitting.)
14571 # Quoting is to prevent editors from complaining about space-tab.
14572 as_nl='
14573 '
14574 export as_nl
14575 IFS=" "" $as_nl"
14576
14577 PS1='$ '
14578 PS2='> '
14579 PS4='+ '
14580
14581 # Ensure predictable behavior from utilities with locale-dependent output.
14582 LC_ALL=C
14583 export LC_ALL
14584 LANGUAGE=C
14585 export LANGUAGE
14586
14587 # We cannot yet rely on "unset" to work, but we need these variables
14588 # to be unset--not just set to an empty or harmless value--now, to
14589 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
14590 # also avoids known problems related to "unset" and subshell syntax
14591 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
14592 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
14593 do eval test \${$as_var+y} \
14594 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14595 done
14596
14597 # Ensure that fds 0, 1, and 2 are open.
14598 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
14599 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
14600 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
14601
14602 # The user is always right.
14603 if ${PATH_SEPARATOR+false} :; then
14604 PATH_SEPARATOR=:
14605 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14606 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14607 PATH_SEPARATOR=';'
14608 }
14609 fi
14610
14611
14612 # Find who we are. Look in the path if we contain no directory separator.
14613 as_myself=
14614 case $0 in #((
14615 *[\\/]* ) as_myself=$0 ;;
14616 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14617 for as_dir in $PATH
14618 do
14619 IFS=$as_save_IFS
14620 case $as_dir in #(((
14621 '') as_dir=./ ;;
14622 */) ;;
14623 *) as_dir=$as_dir/ ;;
14624 esac
14625 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
14626 done
14627 IFS=$as_save_IFS
14628
14629 ;;
14630 esac
14631 # We did not find ourselves, most probably we were run as 'sh COMMAND'
14632 # in which case we are not to be found in the path.
14633 if test "x$as_myself" = x; then
14634 as_myself=$0
14635 fi
14636 if test ! -f "$as_myself"; then
14637 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14638 exit 1
14639 fi
14640
14641
14642
14643 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14644 # ----------------------------------------
14645 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14646 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14647 # script with STATUS, using 1 if that was 0.
14648 as_fn_error ()
14649 {
14650 as_status=$1; test $as_status -eq 0 && as_status=1
14651 if test "$4"; then
14652 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14654 fi
14655 printf "%s\n" "$as_me: error: $2" >&2
14656 as_fn_exit $as_status
14657 } # as_fn_error
14658
14659
14660 # as_fn_set_status STATUS
14661 # -----------------------
14662 # Set $? to STATUS, without forking.
14663 as_fn_set_status ()
14664 {
14665 return $1
14666 } # as_fn_set_status
14667
14668 # as_fn_exit STATUS
14669 # -----------------
14670 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14671 as_fn_exit ()
14672 {
14673 set +e
14674 as_fn_set_status $1
14675 exit $1
14676 } # as_fn_exit
14677
14678 # as_fn_unset VAR
14679 # ---------------
14680 # Portably unset VAR.
14681 as_fn_unset ()
14682 {
14683 { eval $1=; unset $1;}
14684 }
14685 as_unset=as_fn_unset
14686
14687 # as_fn_append VAR VALUE
14688 # ----------------------
14689 # Append the text in VALUE to the end of the definition contained in VAR. Take
14690 # advantage of any shell optimizations that allow amortized linear growth over
14691 # repeated appends, instead of the typical quadratic growth present in naive
14692 # implementations.
14693 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
14694 then :
14695 eval 'as_fn_append ()
14696 {
14697 eval $1+=\$2
14698 }'
14699 else case e in #(
14700 e) as_fn_append ()
14701 {
14702 eval $1=\$$1\$2
14703 } ;;
14704 esac
14705 fi # as_fn_append
14706
14707 # as_fn_arith ARG...
14708 # ------------------
14709 # Perform arithmetic evaluation on the ARGs, and store the result in the
14710 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14711 # must be portable across $(()) and expr.
14712 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
14713 then :
14714 eval 'as_fn_arith ()
14715 {
14716 as_val=$(( $* ))
14717 }'
14718 else case e in #(
14719 e) as_fn_arith ()
14720 {
14721 as_val=`expr "$@" || test $? -eq 1`
14722 } ;;
14723 esac
14724 fi # as_fn_arith
14725
14726
14727 if expr a : '\(a\)' >/dev/null 2>&1 &&
14728 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14729 as_expr=expr
14730 else
14731 as_expr=false
14732 fi
14733
14734 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14735 as_basename=basename
14736 else
14737 as_basename=false
14738 fi
14739
14740 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14741 as_dirname=dirname
14742 else
14743 as_dirname=false
14744 fi
14745
14746 as_me=`$as_basename -- "$0" ||
14747 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14748 X"$0" : 'X\(//\)$' \| \
14749 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14750 printf "%s\n" X/"$0" |
14751 sed '/^.*\/\([^/][^/]*\)\/*$/{
14752 s//\1/
14753 q
14754 }
14755 /^X\/\(\/\/\)$/{
14756 s//\1/
14757 q
14758 }
14759 /^X\/\(\/\).*/{
14760 s//\1/
14761 q
14762 }
14763 s/.*/./; q'`
14764
14765 # Avoid depending upon Character Ranges.
14766 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14767 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14768 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14769 as_cr_digits='0123456789'
14770 as_cr_alnum=$as_cr_Letters$as_cr_digits
14771
14772
14773 # Determine whether it's possible to make 'echo' print without a newline.
14774 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
14775 # for compatibility with existing Makefiles.
14776 ECHO_C= ECHO_N= ECHO_T=
14777 case `echo -n x` in #(((((
14778 -n*)
14779 case `echo 'xy\c'` in
14780 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14781 xy) ECHO_C='\c';;
14782 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14783 ECHO_T=' ';;
14784 esac;;
14785 *)
14786 ECHO_N='-n';;
14787 esac
14788
14789 # For backward compatibility with old third-party macros, we provide
14790 # the shell variables $as_echo and $as_echo_n. New code should use
14791 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
14792 as_echo='printf %s\n'
14793 as_echo_n='printf %s'
14794
14795 rm -f conf$$ conf$$.exe conf$$.file
14796 if test -d conf$$.dir; then
14797 rm -f conf$$.dir/conf$$.file
14798 else
14799 rm -f conf$$.dir
14800 mkdir conf$$.dir 2>/dev/null
14801 fi
14802 if (echo >conf$$.file) 2>/dev/null; then
14803 if ln -s conf$$.file conf$$ 2>/dev/null; then
14804 as_ln_s='ln -s'
14805 # ... but there are two gotchas:
14806 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
14807 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
14808 # In both cases, we have to default to 'cp -pR'.
14809 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14810 as_ln_s='cp -pR'
14811 elif ln conf$$.file conf$$ 2>/dev/null; then
14812 as_ln_s=ln
14813 else
14814 as_ln_s='cp -pR'
14815 fi
14816 else
14817 as_ln_s='cp -pR'
14818 fi
14819 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14820 rmdir conf$$.dir 2>/dev/null
14821
14822
14823 # as_fn_mkdir_p
14824 # -------------
14825 # Create "$as_dir" as a directory, including parents if necessary.
14826 as_fn_mkdir_p ()
14827 {
14828
14829 case $as_dir in #(
14830 -*) as_dir=./$as_dir;;
14831 esac
14832 test -d "$as_dir" || eval $as_mkdir_p || {
14833 as_dirs=
14834 while :; do
14835 case $as_dir in #(
14836 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14837 *) as_qdir=$as_dir;;
14838 esac
14839 as_dirs="'$as_qdir' $as_dirs"
14840 as_dir=`$as_dirname -- "$as_dir" ||
14841 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14842 X"$as_dir" : 'X\(//\)[^/]' \| \
14843 X"$as_dir" : 'X\(//\)$' \| \
14844 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14845 printf "%s\n" X"$as_dir" |
14846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14847 s//\1/
14848 q
14849 }
14850 /^X\(\/\/\)[^/].*/{
14851 s//\1/
14852 q
14853 }
14854 /^X\(\/\/\)$/{
14855 s//\1/
14856 q
14857 }
14858 /^X\(\/\).*/{
14859 s//\1/
14860 q
14861 }
14862 s/.*/./; q'`
14863 test -d "$as_dir" && break
14864 done
14865 test -z "$as_dirs" || eval "mkdir $as_dirs"
14866 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14867
14868
14869 } # as_fn_mkdir_p
14870 if mkdir -p . 2>/dev/null; then
14871 as_mkdir_p='mkdir -p "$as_dir"'
14872 else
14873 test -d ./-p && rmdir ./-p
14874 as_mkdir_p=false
14875 fi
14876
14877
14878 # as_fn_executable_p FILE
14879 # -----------------------
14880 # Test if FILE is an executable regular file.
14881 as_fn_executable_p ()
14882 {
14883 test -f "$1" && test -x "$1"
14884 } # as_fn_executable_p
14885 as_test_x='test -x'
14886 as_executable_p=as_fn_executable_p
14887
14888 # Sed expression to map a string onto a valid CPP name.
14889 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
14890 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
14891
14892 # Sed expression to map a string onto a valid variable name.
14893 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
14894 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
14895
14896
14897 exec 6>&1
14898 ## ----------------------------------- ##
14899 ## Main body of $CONFIG_STATUS script. ##
14900 ## ----------------------------------- ##
14901 _ASEOF
14902 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14903
14904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14905 # Save the log message, to keep $0 and so on meaningful, and to
14906 # report actual input values of CONFIG_FILES etc. instead of their
14907 # values after options handling.
14908 ac_log="
14909 This file was extended by OpenSMTPD-portable $as_me 7.8.0p0, which was
14910 generated by GNU Autoconf 2.72. Invocation command line was
14911
14912 CONFIG_FILES = $CONFIG_FILES
14913 CONFIG_HEADERS = $CONFIG_HEADERS
14914 CONFIG_LINKS = $CONFIG_LINKS
14915 CONFIG_COMMANDS = $CONFIG_COMMANDS
14916 $ $0 $@
14917
14918 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14919 "
14920
14921 _ACEOF
14922
14923 case $ac_config_files in *"
14924 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14925 esac
14926
14927 case $ac_config_headers in *"
14928 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14929 esac
14930
14931
14932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14933 # Files that config.status was made for.
14934 config_files="$ac_config_files"
14935 config_headers="$ac_config_headers"
14936 config_commands="$ac_config_commands"
14937
14938 _ACEOF
14939
14940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14941 ac_cs_usage="\
14942 '$as_me' instantiates files and other configuration actions
14943 from templates according to the current configuration. Unless the files
14944 and actions are specified as TAGs, all are instantiated by default.
14945
14946 Usage: $0 [OPTION]... [TAG]...
14947
14948 -h, --help print this help, then exit
14949 -V, --version print version number and configuration settings, then exit
14950 --config print configuration, then exit
14951 -q, --quiet, --silent
14952 do not print progress messages
14953 -d, --debug don't remove temporary files
14954 --recheck update $as_me by reconfiguring in the same conditions
14955 --file=FILE[:TEMPLATE]
14956 instantiate the configuration file FILE
14957 --header=FILE[:TEMPLATE]
14958 instantiate the configuration header FILE
14959
14960 Configuration files:
14961 $config_files
14962
14963 Configuration headers:
14964 $config_headers
14965
14966 Configuration commands:
14967 $config_commands
14968
14969 Report bugs to <[email protected]>.
14970 OpenSMTPD-portable home page: <https://www.opensmtpd.org>."
14971
14972 _ACEOF
14973 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
14974 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
14975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14976 ac_cs_config='$ac_cs_config_escaped'
14977 ac_cs_version="\\
14978 OpenSMTPD-portable config.status 7.8.0p0
14979 configured by $0, generated by GNU Autoconf 2.72,
14980 with options \\"\$ac_cs_config\\"
14981
14982 Copyright (C) 2023 Free Software Foundation, Inc.
14983 This config.status script is free software; the Free Software Foundation
14984 gives unlimited permission to copy, distribute and modify it."
14985
14986 ac_pwd='$ac_pwd'
14987 srcdir='$srcdir'
14988 INSTALL='$INSTALL'
14989 MKDIR_P='$MKDIR_P'
14990 AWK='$AWK'
14991 test -n "\$AWK" || AWK=awk
14992 _ACEOF
14993
14994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14995 # The default lists apply if the user does not specify any file.
14996 ac_need_defaults=:
14997 while test $# != 0
14998 do
14999 case $1 in
15000 --*=?*)
15001 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15002 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15003 ac_shift=:
15004 ;;
15005 --*=)
15006 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15007 ac_optarg=
15008 ac_shift=:
15009 ;;
15010 *)
15011 ac_option=$1
15012 ac_optarg=$2
15013 ac_shift=shift
15014 ;;
15015 esac
15016
15017 case $ac_option in
15018 # Handling of the options.
15019 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15020 ac_cs_recheck=: ;;
15021 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15022 printf "%s\n" "$ac_cs_version"; exit ;;
15023 --config | --confi | --conf | --con | --co | --c )
15024 printf "%s\n" "$ac_cs_config"; exit ;;
15025 --debug | --debu | --deb | --de | --d | -d )
15026 debug=: ;;
15027 --file | --fil | --fi | --f )
15028 $ac_shift
15029 case $ac_optarg in
15030 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15031 '') as_fn_error $? "missing file argument" ;;
15032 esac
15033 as_fn_append CONFIG_FILES " '$ac_optarg'"
15034 ac_need_defaults=false;;
15035 --header | --heade | --head | --hea )
15036 $ac_shift
15037 case $ac_optarg in
15038 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15039 esac
15040 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15041 ac_need_defaults=false;;
15042 --he | --h)
15043 # Conflict between --help and --header
15044 as_fn_error $? "ambiguous option: '$1'
15045 Try '$0 --help' for more information.";;
15046 --help | --hel | -h )
15047 printf "%s\n" "$ac_cs_usage"; exit ;;
15048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15049 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15050 ac_cs_silent=: ;;
15051
15052 # This is an error.
15053 -*) as_fn_error $? "unrecognized option: '$1'
15054 Try '$0 --help' for more information." ;;
15055
15056 *) as_fn_append ac_config_targets " $1"
15057 ac_need_defaults=false ;;
15058
15059 esac
15060 shift
15061 done
15062
15063 ac_configure_extra_args=
15064
15065 if $ac_cs_silent; then
15066 exec 6>/dev/null
15067 ac_configure_extra_args="$ac_configure_extra_args --silent"
15068 fi
15069
15070 _ACEOF
15071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15072 if \$ac_cs_recheck; then
15073 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15074 shift
15075 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15076 CONFIG_SHELL='$SHELL'
15077 export CONFIG_SHELL
15078 exec "\$@"
15079 fi
15080
15081 _ACEOF
15082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15083 exec 5>>config.log
15084 {
15085 echo
15086 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15087 ## Running $as_me. ##
15088 _ASBOX
15089 printf "%s\n" "$ac_log"
15090 } >&5
15091
15092 _ACEOF
15093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15094 #
15095 # INIT-COMMANDS
15096 #
15097 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15098
15099 _ACEOF
15100
15101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15102
15103 # Handling of arguments.
15104 for ac_config_target in $ac_config_targets
15105 do
15106 case $ac_config_target in
15107 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15108 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15109 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15110 "mk/Makefile") CONFIG_FILES="$CONFIG_FILES mk/Makefile" ;;
15111 "mk/mail/Makefile") CONFIG_FILES="$CONFIG_FILES mk/mail/Makefile" ;;
15112 "mk/mail/mail.lmtp/Makefile") CONFIG_FILES="$CONFIG_FILES mk/mail/mail.lmtp/Makefile" ;;
15113 "mk/mail/mail.maildir/Makefile") CONFIG_FILES="$CONFIG_FILES mk/mail/mail.maildir/Makefile" ;;
15114 "mk/mail/mail.mboxfile/Makefile") CONFIG_FILES="$CONFIG_FILES mk/mail/mail.mboxfile/Makefile" ;;
15115 "mk/mail/mail.mda/Makefile") CONFIG_FILES="$CONFIG_FILES mk/mail/mail.mda/Makefile" ;;
15116 "mk/smtpd/Makefile") CONFIG_FILES="$CONFIG_FILES mk/smtpd/Makefile" ;;
15117 "mk/smtpctl/Makefile") CONFIG_FILES="$CONFIG_FILES mk/smtpctl/Makefile" ;;
15118 "mk/smtp/Makefile") CONFIG_FILES="$CONFIG_FILES mk/smtp/Makefile" ;;
15119 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
15120 "contrib/libexec/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/libexec/Makefile" ;;
15121 "contrib/libexec/mail.local/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/libexec/mail.local/Makefile" ;;
15122 "contrib/libexec/lockspool/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/libexec/lockspool/Makefile" ;;
15123 "contrib/libexec/encrypt/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/libexec/encrypt/Makefile" ;;
15124 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
15125
15126 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
15127 esac
15128 done
15129
15130
15131 # If the user did not use the arguments to specify the items to instantiate,
15132 # then the envvar interface is used. Set only those that are not.
15133 # We use the long form for the default assignment because of an extremely
15134 # bizarre bug on SunOS 4.1.3.
15135 if $ac_need_defaults; then
15136 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
15137 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
15138 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
15139 fi
15140
15141 # Have a temporary directory for convenience. Make it in the build tree
15142 # simply because there is no reason against having it here, and in addition,
15143 # creating and moving files from /tmp can sometimes cause problems.
15144 # Hook for its removal unless debugging.
15145 # Note that there is a small window in which the directory will not be cleaned:
15146 # after its creation but before its name has been assigned to '$tmp'.
15147 $debug ||
15148 {
15149 tmp= ac_tmp=
15150 trap 'exit_status=$?
15151 : "${ac_tmp:=$tmp}"
15152 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15153 ' 0
15154 trap 'as_fn_exit 1' 1 2 13 15
15155 }
15156 # Create a (secure) tmp directory for tmp files.
15157
15158 {
15159 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15160 test -d "$tmp"
15161 } ||
15162 {
15163 tmp=./conf$$-$RANDOM
15164 (umask 077 && mkdir "$tmp")
15165 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15166 ac_tmp=$tmp
15167
15168 # Set up the scripts for CONFIG_FILES section.
15169 # No need to generate them if there are no CONFIG_FILES.
15170 # This happens for instance with './config.status config.h'.
15171 if test -n "$CONFIG_FILES"; then
15172
15173
15174 ac_cr=`echo X | tr X '\015'`
15175 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15176 # But we know of no other shell where ac_cr would be empty at this
15177 # point, so we can use a bashism as a fallback.
15178 if test "x$ac_cr" = x; then
15179 eval ac_cr=\$\'\\r\'
15180 fi
15181 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15182 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15183 ac_cs_awk_cr='\\r'
15184 else
15185 ac_cs_awk_cr=$ac_cr
15186 fi
15187
15188 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15189 _ACEOF
15190
15191
15192 {
15193 echo "cat >conf$$subs.awk <<_ACEOF" &&
15194 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15195 echo "_ACEOF"
15196 } >conf$$subs.sh ||
15197 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15198 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15199 ac_delim='%!_!# '
15200 for ac_last_try in false false false false false :; do
15201 . ./conf$$subs.sh ||
15202 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15203
15204 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15205 if test $ac_delim_n = $ac_delim_num; then
15206 break
15207 elif $ac_last_try; then
15208 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15209 else
15210 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15211 fi
15212 done
15213 rm -f conf$$subs.sh
15214
15215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15216 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15217 _ACEOF
15218 sed -n '
15219 h
15220 s/^/S["/; s/!.*/"]=/
15221 p
15222 g
15223 s/^[^!]*!//
15224 :repl
15225 t repl
15226 s/'"$ac_delim"'$//
15227 t delim
15228 :nl
15229 h
15230 s/\(.\{148\}\)..*/\1/
15231 t more1
15232 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15233 p
15234 n
15235 b repl
15236 :more1
15237 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15238 p
15239 g
15240 s/.\{148\}//
15241 t nl
15242 :delim
15243 h
15244 s/\(.\{148\}\)..*/\1/
15245 t more2
15246 s/["\\]/\\&/g; s/^/"/; s/$/"/
15247 p
15248 b
15249 :more2
15250 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15251 p
15252 g
15253 s/.\{148\}//
15254 t delim
15255 ' <conf$$subs.awk | sed '
15256 /^[^""]/{
15257 N
15258 s/\n//
15259 }
15260 ' >>$CONFIG_STATUS || ac_write_fail=1
15261 rm -f conf$$subs.awk
15262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15263 _ACAWK
15264 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15265 for (key in S) S_is_set[key] = 1
15266 FS = ""
15267
15268 }
15269 {
15270 line = $ 0
15271 nfields = split(line, field, "@")
15272 substed = 0
15273 len = length(field[1])
15274 for (i = 2; i < nfields; i++) {
15275 key = field[i]
15276 keylen = length(key)
15277 if (S_is_set[key]) {
15278 value = S[key]
15279 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15280 len += length(value) + length(field[++i])
15281 substed = 1
15282 } else
15283 len += 1 + keylen
15284 }
15285
15286 print line
15287 }
15288
15289 _ACAWK
15290 _ACEOF
15291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15292 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15293 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15294 else
15295 cat
15296 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15297 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15298 _ACEOF
15299
15300 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15301 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15302 # trailing colons and then remove the whole line if VPATH becomes empty
15303 # (actually we leave an empty line to preserve line numbers).
15304 if test "x$srcdir" = x.; then
15305 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15306 h
15307 s///
15308 s/^/:/
15309 s/[ ]*$/:/
15310 s/:\$(srcdir):/:/g
15311 s/:\${srcdir}:/:/g
15312 s/:@srcdir@:/:/g
15313 s/^:*//
15314 s/:*$//
15315 x
15316 s/\(=[ ]*\).*/\1/
15317 G
15318 s/\n//
15319 s/^[^=]*=[ ]*$//
15320 }'
15321 fi
15322
15323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15324 fi # test -n "$CONFIG_FILES"
15325
15326 # Set up the scripts for CONFIG_HEADERS section.
15327 # No need to generate them if there are no CONFIG_HEADERS.
15328 # This happens for instance with './config.status Makefile'.
15329 if test -n "$CONFIG_HEADERS"; then
15330 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15331 BEGIN {
15332 _ACEOF
15333
15334 # Transform confdefs.h into an awk script 'defines.awk', embedded as
15335 # here-document in config.status, that substitutes the proper values into
15336 # config.h.in to produce config.h.
15337
15338 # Create a delimiter string that does not exist in confdefs.h, to ease
15339 # handling of long lines.
15340 ac_delim='%!_!# '
15341 for ac_last_try in false false :; do
15342 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15343 if test -z "$ac_tt"; then
15344 break
15345 elif $ac_last_try; then
15346 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15347 else
15348 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15349 fi
15350 done
15351
15352 # For the awk script, D is an array of macro values keyed by name,
15353 # likewise P contains macro parameters if any. Preserve backslash
15354 # newline sequences.
15355
15356 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15357 sed -n '
15358 s/.\{148\}/&'"$ac_delim"'/g
15359 t rset
15360 :rset
15361 s/^[ ]*#[ ]*define[ ][ ]*/ /
15362 t def
15363 d
15364 :def
15365 s/\\$//
15366 t bsnl
15367 s/["\\]/\\&/g
15368 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15369 D["\1"]=" \3"/p
15370 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15371 d
15372 :bsnl
15373 s/["\\]/\\&/g
15374 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15375 D["\1"]=" \3\\\\\\n"\\/p
15376 t cont
15377 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15378 t cont
15379 d
15380 :cont
15381 n
15382 s/.\{148\}/&'"$ac_delim"'/g
15383 t clear
15384 :clear
15385 s/\\$//
15386 t bsnlc
15387 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15388 d
15389 :bsnlc
15390 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15391 b cont
15392 ' <confdefs.h | sed '
15393 s/'"$ac_delim"'/"\\\
15394 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15395
15396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15397 for (key in D) D_is_set[key] = 1
15398 FS = ""
15399 }
15400 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15401 line = \$ 0
15402 split(line, arg, " ")
15403 if (arg[1] == "#") {
15404 defundef = arg[2]
15405 mac1 = arg[3]
15406 } else {
15407 defundef = substr(arg[1], 2)
15408 mac1 = arg[2]
15409 }
15410 split(mac1, mac2, "(") #)
15411 macro = mac2[1]
15412 prefix = substr(line, 1, index(line, defundef) - 1)
15413 if (D_is_set[macro]) {
15414 # Preserve the white space surrounding the "#".
15415 print prefix "define", macro P[macro] D[macro]
15416 next
15417 } else {
15418 # Replace #undef with comments. This is necessary, for example,
15419 # in the case of _POSIX_SOURCE, which is predefined and required
15420 # on some systems where configure will not decide to define it.
15421 if (defundef == "undef") {
15422 print "/*", prefix defundef, macro, "*/"
15423 next
15424 }
15425 }
15426 }
15427 { print }
15428 _ACAWK
15429 _ACEOF
15430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15431 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15432 fi # test -n "$CONFIG_HEADERS"
15433
15434
15435 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15436 shift
15437 for ac_tag
15438 do
15439 case $ac_tag in
15440 :[FHLC]) ac_mode=$ac_tag; continue;;
15441 esac
15442 case $ac_mode$ac_tag in
15443 :[FHL]*:*);;
15444 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
15445 :[FH]-) ac_tag=-:-;;
15446 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15447 esac
15448 ac_save_IFS=$IFS
15449 IFS=:
15450 set x $ac_tag
15451 IFS=$ac_save_IFS
15452 shift
15453 ac_file=$1
15454 shift
15455
15456 case $ac_mode in
15457 :L) ac_source=$1;;
15458 :[FH])
15459 ac_file_inputs=
15460 for ac_f
15461 do
15462 case $ac_f in
15463 -) ac_f="$ac_tmp/stdin";;
15464 *) # Look for the file first in the build tree, then in the source tree
15465 # (if the path is not absolute). The absolute path cannot be DOS-style,
15466 # because $ac_f cannot contain ':'.
15467 test -f "$ac_f" ||
15468 case $ac_f in
15469 [\\/$]*) false;;
15470 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15471 esac ||
15472 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
15473 esac
15474 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15475 as_fn_append ac_file_inputs " '$ac_f'"
15476 done
15477
15478 # Let's still pretend it is 'configure' which instantiates (i.e., don't
15479 # use $as_me), people would be surprised to read:
15480 # /* config.h. Generated by config.status. */
15481 configure_input='Generated from '`
15482 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15483 `' by configure.'
15484 if test x"$ac_file" != x-; then
15485 configure_input="$ac_file. $configure_input"
15486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15487 printf "%s\n" "$as_me: creating $ac_file" >&6;}
15488 fi
15489 # Neutralize special characters interpreted by sed in replacement strings.
15490 case $configure_input in #(
15491 *\&* | *\|* | *\\* )
15492 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
15493 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15494 *) ac_sed_conf_input=$configure_input;;
15495 esac
15496
15497 case $ac_tag in
15498 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15499 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15500 esac
15501 ;;
15502 esac
15503
15504 ac_dir=`$as_dirname -- "$ac_file" ||
15505 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15506 X"$ac_file" : 'X\(//\)[^/]' \| \
15507 X"$ac_file" : 'X\(//\)$' \| \
15508 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15509 printf "%s\n" X"$ac_file" |
15510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15511 s//\1/
15512 q
15513 }
15514 /^X\(\/\/\)[^/].*/{
15515 s//\1/
15516 q
15517 }
15518 /^X\(\/\/\)$/{
15519 s//\1/
15520 q
15521 }
15522 /^X\(\/\).*/{
15523 s//\1/
15524 q
15525 }
15526 s/.*/./; q'`
15527 as_dir="$ac_dir"; as_fn_mkdir_p
15528 ac_builddir=.
15529
15530 case "$ac_dir" in
15531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15532 *)
15533 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
15534 # A ".." for each directory in $ac_dir_suffix.
15535 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15536 case $ac_top_builddir_sub in
15537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15539 esac ;;
15540 esac
15541 ac_abs_top_builddir=$ac_pwd
15542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15543 # for backward compatibility:
15544 ac_top_builddir=$ac_top_build_prefix
15545
15546 case $srcdir in
15547 .) # We are building in place.
15548 ac_srcdir=.
15549 ac_top_srcdir=$ac_top_builddir_sub
15550 ac_abs_top_srcdir=$ac_pwd ;;
15551 [\\/]* | ?:[\\/]* ) # Absolute name.
15552 ac_srcdir=$srcdir$ac_dir_suffix;
15553 ac_top_srcdir=$srcdir
15554 ac_abs_top_srcdir=$srcdir ;;
15555 *) # Relative name.
15556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15557 ac_top_srcdir=$ac_top_build_prefix$srcdir
15558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15559 esac
15560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15561
15562
15563 case $ac_mode in
15564 :F)
15565 #
15566 # CONFIG_FILE
15567 #
15568
15569 case $INSTALL in
15570 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15571 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15572 esac
15573 ac_MKDIR_P=$MKDIR_P
15574 case $MKDIR_P in
15575 [\\/$]* | ?:[\\/]* ) ;;
15576 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15577 esac
15578 _ACEOF
15579
15580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15581 # If the template does not know about datarootdir, expand it.
15582 # FIXME: This hack should be removed a few years after 2.60.
15583 ac_datarootdir_hack=; ac_datarootdir_seen=
15584 ac_sed_dataroot='
15585 /datarootdir/ {
15586 p
15587 q
15588 }
15589 /@datadir@/p
15590 /@docdir@/p
15591 /@infodir@/p
15592 /@localedir@/p
15593 /@mandir@/p'
15594 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15595 *datarootdir*) ac_datarootdir_seen=yes;;
15596 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15598 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15599 _ACEOF
15600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15601 ac_datarootdir_hack='
15602 s&@datadir@&$datadir&g
15603 s&@docdir@&$docdir&g
15604 s&@infodir@&$infodir&g
15605 s&@localedir@&$localedir&g
15606 s&@mandir@&$mandir&g
15607 s&\\\${datarootdir}&$datarootdir&g' ;;
15608 esac
15609 _ACEOF
15610
15611 # Neutralize VPATH when '$srcdir' = '.'.
15612 # Shell code in configure.ac might set extrasub.
15613 # FIXME: do we really want to maintain this feature?
15614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15615 ac_sed_extra="$ac_vpsub
15616 $extrasub
15617 _ACEOF
15618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15619 :t
15620 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15621 s|@configure_input@|$ac_sed_conf_input|;t t
15622 s&@top_builddir@&$ac_top_builddir_sub&;t t
15623 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15624 s&@srcdir@&$ac_srcdir&;t t
15625 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15626 s&@top_srcdir@&$ac_top_srcdir&;t t
15627 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15628 s&@builddir@&$ac_builddir&;t t
15629 s&@abs_builddir@&$ac_abs_builddir&;t t
15630 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15631 s&@INSTALL@&$ac_INSTALL&;t t
15632 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15633 $ac_datarootdir_hack
15634 "
15635 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15636 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15637
15638 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15639 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15640 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15641 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
15643 which seems to be undefined. Please make sure it is defined" >&5
15644 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
15645 which seems to be undefined. Please make sure it is defined" >&2;}
15646
15647 rm -f "$ac_tmp/stdin"
15648 case $ac_file in
15649 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15650 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15651 esac \
15652 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15653 ;;
15654 :H)
15655 #
15656 # CONFIG_HEADER
15657 #
15658 if test x"$ac_file" != x-; then
15659 {
15660 printf "%s\n" "/* $configure_input */" >&1 \
15661 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15662 } >"$ac_tmp/config.h" \
15663 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15664 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15666 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
15667 else
15668 rm -f "$ac_file"
15669 mv "$ac_tmp/config.h" "$ac_file" \
15670 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15671 fi
15672 else
15673 printf "%s\n" "/* $configure_input */" >&1 \
15674 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15675 || as_fn_error $? "could not create -" "$LINENO" 5
15676 fi
15677 # Compute "$ac_file"'s index in $config_headers.
15678 _am_arg="$ac_file"
15679 _am_stamp_count=1
15680 for _am_header in $config_headers :; do
15681 case $_am_header in
15682 $_am_arg | $_am_arg:* )
15683 break ;;
15684 * )
15685 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15686 esac
15687 done
15688 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15689 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15690 X"$_am_arg" : 'X\(//\)[^/]' \| \
15691 X"$_am_arg" : 'X\(//\)$' \| \
15692 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15693 printf "%s\n" X"$_am_arg" |
15694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15695 s//\1/
15696 q
15697 }
15698 /^X\(\/\/\)[^/].*/{
15699 s//\1/
15700 q
15701 }
15702 /^X\(\/\/\)$/{
15703 s//\1/
15704 q
15705 }
15706 /^X\(\/\).*/{
15707 s//\1/
15708 q
15709 }
15710 s/.*/./; q'`/stamp-h$_am_stamp_count
15711 ;;
15712
15713 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15714 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
15715 ;;
15716 esac
15717
15718
15719 case $ac_file$ac_mode in
15720 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15721 # Older Autoconf quotes --file arguments for eval, but not when files
15722 # are listed without --file. Let's play safe and only enable the eval
15723 # if we detect the quoting.
15724 # TODO: see whether this extra hack can be removed once we start
15725 # requiring Autoconf 2.70 or later.
15726 case $CONFIG_FILES in #(
15727 *\'*) :
15728 eval set x "$CONFIG_FILES" ;; #(
15729 *) :
15730 set x $CONFIG_FILES ;; #(
15731 *) :
15732 ;;
15733 esac
15734 shift
15735 # Used to flag and report bootstrapping failures.
15736 am_rc=0
15737 for am_mf
15738 do
15739 # Strip MF so we end up with the name of the file.
15740 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
15741 # Check whether this is an Automake generated Makefile which includes
15742 # dependency-tracking related rules and includes.
15743 # Grep'ing the whole file directly is not great: AIX grep has a line
15744 # limit of 2048, but all sed's we know have understand at least 4000.
15745 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15746 || continue
15747 am_dirpart=`$as_dirname -- "$am_mf" ||
15748 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15749 X"$am_mf" : 'X\(//\)[^/]' \| \
15750 X"$am_mf" : 'X\(//\)$' \| \
15751 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15752 printf "%s\n" X"$am_mf" |
15753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15754 s//\1/
15755 q
15756 }
15757 /^X\(\/\/\)[^/].*/{
15758 s//\1/
15759 q
15760 }
15761 /^X\(\/\/\)$/{
15762 s//\1/
15763 q
15764 }
15765 /^X\(\/\).*/{
15766 s//\1/
15767 q
15768 }
15769 s/.*/./; q'`
15770 am_filepart=`$as_basename -- "$am_mf" ||
15771 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15772 X"$am_mf" : 'X\(//\)$' \| \
15773 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15774 printf "%s\n" X/"$am_mf" |
15775 sed '/^.*\/\([^/][^/]*\)\/*$/{
15776 s//\1/
15777 q
15778 }
15779 /^X\/\(\/\/\)$/{
15780 s//\1/
15781 q
15782 }
15783 /^X\/\(\/\).*/{
15784 s//\1/
15785 q
15786 }
15787 s/.*/./; q'`
15788 { echo "$as_me:$LINENO: cd "$am_dirpart" \
15789 && sed -e '/# am--include-marker/d' "$am_filepart" \
15790 | $MAKE -f - am--depfiles" >&5
15791 (cd "$am_dirpart" \
15792 && sed -e '/# am--include-marker/d' "$am_filepart" \
15793 | $MAKE -f - am--depfiles) >&5 2>&5
15794 ac_status=$?
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); } || am_rc=$?
15797 done
15798 if test $am_rc -ne 0; then
15799 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15800 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15801 as_fn_error $? "Something went wrong bootstrapping makefile fragments
15802 for automatic dependency tracking. If GNU make was not used, consider
15803 re-running the configure script with MAKE=\"gmake\" (or whatever is
15804 necessary). You can also try re-running configure with the
15805 '--disable-dependency-tracking' option to at least be able to build
15806 the package (albeit without support for automatic dependency tracking).
15807 See 'config.log' for more details" "$LINENO" 5; }
15808 fi
15809 { am_dirpart=; unset am_dirpart;}
15810 { am_filepart=; unset am_filepart;}
15811 { am_mf=; unset am_mf;}
15812 { am_rc=; unset am_rc;}
15813 rm -f conftest-deps.mk
15814 }
15815 ;;
15816
15817 esac
15818 done # for ac_tag
15819
15820
15821 as_fn_exit 0
15822 _ACEOF
15823 ac_clean_files=$ac_clean_files_save
15824
15825 test $ac_write_fail = 0 ||
15826 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15827
15828
15829 # configure is writing to config.log, and then calls config.status.
15830 # config.status does its own redirection, appending to config.log.
15831 # Unfortunately, on DOS this fails, as config.log is still kept open
15832 # by configure, so config.status won't be able to write to it; its
15833 # output is simply discarded. So we exec the FD to /dev/null,
15834 # effectively closing config.log, so it can be properly (re)opened and
15835 # appended to by config.status. When coming back to configure, we
15836 # need to make the FD available again.
15837 if test "$no_create" != yes; then
15838 ac_cs_success=:
15839 ac_config_status_args=
15840 test "$silent" = yes &&
15841 ac_config_status_args="$ac_config_status_args --quiet"
15842 exec 5>/dev/null
15843 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15844 exec 5>>config.log
15845 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15846 # would make configure fail if this is the last instruction.
15847 $ac_cs_success || as_fn_exit 1
15848 fi
15849 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15851 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15852 fi
15853