Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.73 for msmtp 1.8.33.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2026 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 # contradicts POSIX and common usage. Disable this.
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 case $# in # ((
135 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;;
136 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;;
137 esac
138 # Admittedly, this is quite paranoid, since all the known shells bail
139 # out after a failed 'exec'.
140 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2
141 exit 255
142 fi
143 # We don't want this to propagate to other subprocesses.
144 { _as_can_reexec=; unset _as_can_reexec;}
145 if test "x$CONFIG_SHELL" = x; then
146 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
147 then :
148 emulate sh
149 NULLCMD=:
150 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
151 # contradicts POSIX and common usage. Disable this.
152 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 setopt NO_GLOB_SUBST
154 else case e in #(
155 e) case \`(set -o) 2>/dev/null\` in #(
156 *posix*) :
157 set -o posix ;; #(
158 *) :
159 ;;
160 esac ;;
161 esac
162 fi
163 "
164 as_required="as_fn_return () { (exit \$1); }
165 as_fn_success () { as_fn_return 0; }
166 as_fn_failure () { as_fn_return 1; }
167 as_fn_ret_success () { return 0; }
168 as_fn_ret_failure () { return 1; }
169
170 exitcode=0
171 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
172 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
173 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
174 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
175 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 then :
177
178 else case e in #(
179 e) exitcode=1; echo positional parameters were not saved. ;;
180 esac
181 fi
182 test x\$exitcode = x0 || exit 1
183 blah=\$(echo \$(echo blah))
184 test x\"\$blah\" = xblah || exit 1
185 test -x / || exit 1"
186 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
187 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
188 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
189 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
190 test \$(( 1 + 1 )) = 2 || exit 1"
191 if (eval "$as_required") 2>/dev/null
192 then :
193 as_have_required=yes
194 else case e in #(
195 e) as_have_required=no ;;
196 esac
197 fi
198 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
199 then :
200
201 else case e in #(
202 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
203 as_found=false
204 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
205 do
206 IFS=$as_save_IFS
207 case $as_dir in #(((
208 '') as_dir=./ ;;
209 */) ;;
210 *) as_dir=$as_dir/ ;;
211 esac
212 as_found=:
213 case $as_dir in #(
214 /*)
215 for as_base in sh bash ksh sh5; do
216 # Try only shells that exist, to save several forks.
217 as_shell=$as_dir$as_base
218 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
219 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
220 then :
221 CONFIG_SHELL=$as_shell as_have_required=yes
222 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
223 then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 IFS=$as_save_IFS
232 if $as_found
233 then :
234
235 else case e in #(
236 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
237 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
238 then :
239 CONFIG_SHELL=$SHELL as_have_required=yes
240 fi ;;
241 esac
242 fi
243
244
245 if test "x$CONFIG_SHELL" != x
246 then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 case $# in # ((
262 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;;
263 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;;
264 esac
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed 'exec'.
267 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno
272 then :
273 printf '%s\n' "$0: This script requires a shell more modern than all"
274 printf '%s\n' "$0: the shells that I found on your system."
275 if test ${ZSH_VERSION+y} ; then
276 printf '%s\n' "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 printf '%s\n' "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 printf '%s\n' "$0: Please tell [email protected] and [email protected]
280 $0: about your system, including any error possibly output
281 $0: before this message. Then install a modern shell, or
282 $0: manually run the script under such a shell if you do
283 $0: have one."
284 fi
285 exit 1
286 fi ;;
287 esac
288 fi
289 fi
290 SHELL=${CONFIG_SHELL-/bin/sh}
291 export SHELL
292 # Unset more variables known to interfere with behavior of common tools.
293 CLICOLOR_FORCE= GREP_OPTIONS=
294 unset CLICOLOR_FORCE GREP_OPTIONS
295
296 ## --------------------- ##
297 ## M4sh Shell Functions. ##
298 ## --------------------- ##
299 # as_fn_unset VAR
300 # ---------------
301 # Portably unset VAR.
302 as_fn_unset ()
303 {
304 { eval $1=; unset $1;}
305 }
306 as_unset=as_fn_unset
307
308
309 # as_fn_set_status STATUS
310 # -----------------------
311 # Set $? to STATUS, without forking.
312 as_fn_set_status ()
313 {
314 return $1
315 } # as_fn_set_status
316
317 # as_fn_exit STATUS
318 # -----------------
319 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
320 as_fn_exit ()
321 {
322 set +e
323 as_fn_set_status $1
324 exit $1
325 } # as_fn_exit
326
327 # as_fn_mkdir_p
328 # -------------
329 # Create "$as_dir" as a directory, including parents if necessary.
330 as_fn_mkdir_p ()
331 {
332
333 case $as_dir in #(
334 -*) as_dir=./$as_dir;;
335 esac
336 test -d "$as_dir" || eval $as_mkdir_p || {
337 as_dirs=
338 while :; do
339 case $as_dir in #(
340 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
341 *) as_qdir=$as_dir;;
342 esac
343 as_dirs="'$as_qdir' $as_dirs"
344 as_dir=`$as_dirname -- "$as_dir" ||
345 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
346 X"$as_dir" : 'X\(//\)[^/]' \| \
347 X"$as_dir" : 'X\(//\)$' \| \
348 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
349 printf '%s\n' X"$as_dir" |
350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)[^/].*/{
355 s//\1/
356 q
357 }
358 /^X\(\/\/\)$/{
359 s//\1/
360 q
361 }
362 /^X\(\/\).*/{
363 s//\1/
364 q
365 }
366 s/.*/./; q'`
367 test -d "$as_dir" && break
368 done
369 test -z "$as_dirs" || eval "mkdir $as_dirs"
370 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371
372
373 } # as_fn_mkdir_p
374
375 # as_fn_executable_p FILE
376 # -----------------------
377 # Test if FILE is an executable regular file.
378 as_fn_executable_p ()
379 {
380 test -f "$1" && test -x "$1"
381 } # as_fn_executable_p
382 # as_fn_append VAR VALUE
383 # ----------------------
384 # Append the text in VALUE to the end of the definition contained in VAR. Take
385 # advantage of any shell optimizations that allow amortized linear growth over
386 # repeated appends, instead of the typical quadratic growth present in naive
387 # implementations.
388 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
389 then :
390 eval 'as_fn_append ()
391 {
392 eval $1+=\$2
393 }'
394 else case e in #(
395 e) as_fn_append ()
396 {
397 eval $1=\$$1\$2
398 } ;;
399 esac
400 fi # as_fn_append
401
402 # as_fn_arith ARG...
403 # ------------------
404 # Perform arithmetic evaluation on the ARGs, and store the result in the
405 # global $as_val. Take advantage of shells that can avoid forks. The arguments
406 # must be portable across $(()) and expr.
407 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
408 then :
409 eval 'as_fn_arith ()
410 {
411 as_val=$(( $* ))
412 }'
413 else case e in #(
414 e) as_fn_arith ()
415 {
416 as_val=`expr "$@" || test $? -eq 1`
417 } ;;
418 esac
419 fi # as_fn_arith
420
421
422 # as_fn_error STATUS ERROR [LINENO LOG_FD]
423 # ----------------------------------------
424 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
425 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
426 # script with STATUS, using 1 if that was 0.
427 as_fn_error ()
428 {
429 as_status=$1; test $as_status -eq 0 && as_status=1
430 if test "$4"; then
431 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
432 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
433 fi
434 printf '%s\n' "$as_me: error: $2" >&2
435 as_fn_exit $as_status
436 } # as_fn_error
437
438 if expr a : '\(a\)' >/dev/null 2>&1 &&
439 test "X`expr 00001 : '.*\(...\)'`" = X001; then
440 as_expr=expr
441 else
442 as_expr=false
443 fi
444
445 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
446 as_basename=basename
447 else
448 as_basename=false
449 fi
450
451 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
452 as_dirname=dirname
453 else
454 as_dirname=false
455 fi
456
457 as_me=`$as_basename -- "$0" ||
458 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
459 X"$0" : 'X\(//\)$' \| \
460 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
461 printf '%s\n' X/"$0" |
462 sed '/^.*\/\([^/][^/]*\)\/*$/{
463 s//\1/
464 q
465 }
466 /^X\/\(\/\/\)$/{
467 s//\1/
468 q
469 }
470 /^X\/\(\/\).*/{
471 s//\1/
472 q
473 }
474 s/.*/./; q'`
475
476 # Avoid depending upon Character Ranges.
477 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
478 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
479 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
480 as_cr_digits='0123456789'
481 as_cr_alnum=$as_cr_Letters$as_cr_digits
482
483
484 as_lineno_1=$LINENO as_lineno_1a=$LINENO
485 as_lineno_2=$LINENO as_lineno_2a=$LINENO
486 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
487 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
488 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 sed -n '
490 p
491 /[$]LINENO/=
492 ' <$as_myself |
493 sed '
494 t clear
495 :clear
496 s/[$]LINENO.*/&-/
497 t lineno
498 b
499 :lineno
500 N
501 :loop
502 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
503 t loop
504 s/-\n.*//
505 ' >$as_me.lineno &&
506 chmod +x "$as_me.lineno" ||
507 { printf '%s\n' "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
508
509 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
510 # already done that, so ensure we don't try to do so again and fall
511 # in an infinite loop. This has already happened in practice.
512 _as_can_reexec=no; export _as_can_reexec
513 # Don't try to exec as it changes $[0], causing all sort of problems
514 # (the dirname of $[0] is not the place where we might find the
515 # original and so on. Autoconf is especially sensitive to this).
516 . "./$as_me.lineno"
517 # Exit status is that of the last command.
518 exit
519 }
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
534 # In both cases, we have to default to 'cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
560 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
561
562 # Sed expression to map a string onto a valid variable name.
563 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
564 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_CONFIG_STATUS=
580 ac_clean_files=
581 ac_config_libobj_dir=.
582 LIBOBJS=
583 cross_compiling=no
584 subdirs=
585 MFLAGS=
586 MAKEFLAGS=
587
588 # Identity of this package.
589 PACKAGE_NAME='msmtp'
590 PACKAGE_TARNAME='msmtp'
591 PACKAGE_VERSION='1.8.33'
592 PACKAGE_STRING='msmtp 1.8.33'
593 PACKAGE_BUGREPORT='[email protected]'
594 PACKAGE_URL='https://marlam.de/msmtp'
595
596 ac_unique_file="src/msmtp.c"
597 # Factoring default headers for most tests.
598 ac_includes_default="\
599 #include <stddef.h>
600 #ifdef HAVE_STDIO_H
601 # include <stdio.h>
602 #endif
603 #ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 #endif
606 #ifdef HAVE_STRING_H
607 # include <string.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_STRINGS_H
616 # include <strings.h>
617 #endif
618 #ifdef HAVE_SYS_TYPES_H
619 # include <sys/types.h>
620 #endif
621 #ifdef HAVE_SYS_STAT_H
622 # include <sys/stat.h>
623 #endif
624 #ifdef HAVE_UNISTD_H
625 # include <unistd.h>
626 #endif"
627
628 ac_header_c_list=
629 gt_needs=
630 : ${enable_year2038:=no}
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 BUILD_MSMTPD_FALSE
636 BUILD_MSMTPD_TRUE
637 libsecret_LIBS
638 libsecret_CFLAGS
639 libidn2_LIBS
640 libidn2_CFLAGS
641 HAVE_LIBGSASL_FALSE
642 HAVE_LIBGSASL_TRUE
643 libgsasl_LIBS
644 libgsasl_CFLAGS
645 tls_LIBS
646 tls_CFLAGS
647 HAVE_LIBTLS_FALSE
648 HAVE_LIBTLS_TRUE
649 HAVE_OPENSSL_FALSE
650 HAVE_OPENSSL_TRUE
651 HAVE_GNUTLS_FALSE
652 HAVE_GNUTLS_TRUE
653 HAVE_TLS_FALSE
654 HAVE_TLS_TRUE
655 libtls_LIBS
656 libtls_CFLAGS
657 libssl_LIBS
658 libssl_CFLAGS
659 libgnutls_LIBS
660 libgnutls_CFLAGS
661 PKG_CONFIG_LIBDIR
662 PKG_CONFIG_PATH
663 PKG_CONFIG
664 localedir_c_make
665 localedir_c
666 POSUB
667 LTLIBINTL
668 LIBINTL
669 INTLLIBS
670 LTLIBICONV
671 LIBICONV
672 INTL_MACOSX_LIBS
673 CPP
674 DESIRED_LINGUAS
675 XGETTEXT_EXTRA_OPTIONS
676 MSGMERGE_FOR_MSGFMT_OPTION
677 MSGMERGE
678 XGETTEXT_015
679 XGETTEXT
680 GMSGFMT_015
681 GMSGFMT
682 MSGFMT
683 GETTEXT_MACRO_VERSION
684 USE_NLS
685 SED
686 am__xargs_n
687 am__rm_f_notfound
688 AM_BACKSLASH
689 AM_DEFAULT_VERBOSITY
690 AM_DEFAULT_V
691 AM_V
692 CSCOPE
693 ETAGS
694 CTAGS
695 am__fastdepCC_FALSE
696 am__fastdepCC_TRUE
697 CCDEPMODE
698 am__nodep
699 AMDEPBACKSLASH
700 AMDEP_FALSE
701 AMDEP_TRUE
702 am__include
703 DEPDIR
704 am__untar
705 am__tar
706 AMTAR
707 am__leading_dot
708 SET_MAKE
709 AWK
710 mkdir_p
711 MKDIR_P
712 INSTALL_STRIP_PROGRAM
713 STRIP
714 install_sh
715 MAKEINFO
716 AUTOHEADER
717 AUTOMAKE
718 AUTOCONF
719 ACLOCAL
720 VERSION
721 PACKAGE
722 CYGPATH_W
723 am__isrc
724 INSTALL_DATA
725 INSTALL_SCRIPT
726 INSTALL_PROGRAM
727 OBJEXT
728 EXEEXT
729 ac_ct_CC
730 CPPFLAGS
731 LDFLAGS
732 CFLAGS
733 CC
734 target_os
735 target_vendor
736 target_cpu
737 target
738 host_os
739 host_vendor
740 host_cpu
741 host
742 build_os
743 build_vendor
744 build_cpu
745 build
746 ECHO_T
747 ECHO_N
748 ECHO_C
749 target_alias
750 host_alias
751 build_alias
752 LIBS
753 DEFS
754 mandir
755 localedir
756 libdir
757 psdir
758 pdfdir
759 dvidir
760 htmldir
761 infodir
762 docdir
763 oldincludedir
764 includedir
765 runstatedir
766 localstatedir
767 sharedstatedir
768 sysconfdir
769 datadir
770 datarootdir
771 libexecdir
772 sbindir
773 bindir
774 program_transform_name
775 prefix
776 exec_prefix
777 PACKAGE_URL
778 PACKAGE_BUGREPORT
779 PACKAGE_STRING
780 PACKAGE_VERSION
781 PACKAGE_TARNAME
782 PACKAGE_NAME
783 PATH_SEPARATOR
784 SHELL
785 am__quote'
786 ac_subst_files=''
787 ac_user_opts='
788 enable_option_checking
789 enable_largefile
790 enable_dependency_tracking
791 enable_silent_rules
792 enable_nls
793 with_gnu_ld
794 enable_rpath
795 with_libiconv_prefix
796 with_libintl_prefix
797 with_tls
798 with_libgsasl
799 enable_gai_idn
800 with_libidn
801 with_libsecret
802 with_macosx_keyring
803 with_msmtpd
804 enable_year2038
805 '
806 ac_precious_vars='build_alias
807 host_alias
808 target_alias
809 CC
810 CFLAGS
811 LDFLAGS
812 LIBS
813 CPPFLAGS
814 CPP
815 PKG_CONFIG
816 PKG_CONFIG_PATH
817 PKG_CONFIG_LIBDIR
818 libgnutls_CFLAGS
819 libgnutls_LIBS
820 libssl_CFLAGS
821 libssl_LIBS
822 libtls_CFLAGS
823 libtls_LIBS
824 libgsasl_CFLAGS
825 libgsasl_LIBS
826 libidn2_CFLAGS
827 libidn2_LIBS
828 libsecret_CFLAGS
829 libsecret_LIBS'
830
831
832 # Initialize some variables set by options.
833 ac_init_help=
834 ac_init_version=false
835 ac_unrecognized_opts=
836 ac_unrecognized_sep=
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
839 cache_file=/dev/null
840 exec_prefix=NONE
841 no_create=
842 no_recursion=
843 prefix=NONE
844 program_prefix=NONE
845 program_suffix=NONE
846 program_transform_name=s,x,x,
847 silent=
848 site=
849 srcdir=
850 verbose=
851 x_includes=NONE
852 x_libraries=NONE
853
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 runstatedir='${localstatedir}/run'
869 includedir='${prefix}/include'
870 oldincludedir='/usr/include'
871 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
872 infodir='${datarootdir}/info'
873 htmldir='${docdir}'
874 dvidir='${docdir}'
875 pdfdir='${docdir}'
876 psdir='${docdir}'
877 libdir='${exec_prefix}/lib'
878 localedir='${datarootdir}/locale'
879 mandir='${datarootdir}/man'
880
881 ac_prev=
882 ac_dashdash=
883 for ac_option
884 do
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
887 eval $ac_prev=\$ac_option
888 ac_prev=
889 continue
890 fi
891
892 case $ac_option in
893 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 *=) ac_optarg= ;;
895 *) ac_optarg=yes ;;
896 esac
897
898 case $ac_dashdash$ac_option in
899 --)
900 ac_dashdash=yes ;;
901
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 ac_prev=bindir ;;
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905 bindir=$ac_optarg ;;
906
907 -build | --build | --buil | --bui | --bu)
908 ac_prev=build_alias ;;
909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910 build_alias=$ac_optarg ;;
911
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917 cache_file=$ac_optarg ;;
918
919 --config-cache | -C)
920 cache_file=config.cache ;;
921
922 -datadir | --datadir | --datadi | --datad)
923 ac_prev=datadir ;;
924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
925 datadir=$ac_optarg ;;
926
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
933
934 -disable-* | --disable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: '$ac_useropt'"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943 "enable_$ac_useropt"
944 "*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=no ;;
949
950 -docdir | --docdir | --docdi | --doc | --do)
951 ac_prev=docdir ;;
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953 docdir=$ac_optarg ;;
954
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956 ac_prev=dvidir ;;
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958 dvidir=$ac_optarg ;;
959
960 -enable-* | --enable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error $? "invalid feature name: '$ac_useropt'"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
968 *"
969 "enable_$ac_useropt"
970 "*) ;;
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
973 esac
974 eval enable_$ac_useropt=\$ac_optarg ;;
975
976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978 | --exec | --exe | --ex)
979 ac_prev=exec_prefix ;;
980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982 | --exec=* | --exe=* | --ex=*)
983 exec_prefix=$ac_optarg ;;
984
985 -gas | --gas | --ga | --g)
986 # Obsolete; use --with-gas.
987 with_gas=yes ;;
988
989 -help | --help | --hel | --he | -h)
990 ac_init_help=long ;;
991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992 ac_init_help=recursive ;;
993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994 ac_init_help=short ;;
995
996 -host | --host | --hos | --ho)
997 ac_prev=host_alias ;;
998 -host=* | --host=* | --hos=* | --ho=*)
999 host_alias=$ac_optarg ;;
1000
1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002 ac_prev=htmldir ;;
1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004 | --ht=*)
1005 htmldir=$ac_optarg ;;
1006
1007 -includedir | --includedir | --includedi | --included | --include \
1008 | --includ | --inclu | --incl | --inc)
1009 ac_prev=includedir ;;
1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011 | --includ=* | --inclu=* | --incl=* | --inc=*)
1012 includedir=$ac_optarg ;;
1013
1014 -infodir | --infodir | --infodi | --infod | --info | --inf)
1015 ac_prev=infodir ;;
1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017 infodir=$ac_optarg ;;
1018
1019 -libdir | --libdir | --libdi | --libd)
1020 ac_prev=libdir ;;
1021 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022 libdir=$ac_optarg ;;
1023
1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025 | --libexe | --libex | --libe)
1026 ac_prev=libexecdir ;;
1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028 | --libexe=* | --libex=* | --libe=*)
1029 libexecdir=$ac_optarg ;;
1030
1031 -localedir | --localedir | --localedi | --localed | --locale)
1032 ac_prev=localedir ;;
1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034 localedir=$ac_optarg ;;
1035
1036 -localstatedir | --localstatedir | --localstatedi | --localstated \
1037 | --localstate | --localstat | --localsta | --localst | --locals)
1038 ac_prev=localstatedir ;;
1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041 localstatedir=$ac_optarg ;;
1042
1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044 ac_prev=mandir ;;
1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046 mandir=$ac_optarg ;;
1047
1048 -nfp | --nfp | --nf)
1049 # Obsolete; use --without-fp.
1050 with_fp=no ;;
1051
1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053 | --no-cr | --no-c | -n)
1054 no_create=yes ;;
1055
1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058 no_recursion=yes ;;
1059
1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062 | --oldin | --oldi | --old | --ol | --o)
1063 ac_prev=oldincludedir ;;
1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067 oldincludedir=$ac_optarg ;;
1068
1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070 ac_prev=prefix ;;
1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072 prefix=$ac_optarg ;;
1073
1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075 | --program-pre | --program-pr | --program-p)
1076 ac_prev=program_prefix ;;
1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079 program_prefix=$ac_optarg ;;
1080
1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082 | --program-suf | --program-su | --program-s)
1083 ac_prev=program_suffix ;;
1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086 program_suffix=$ac_optarg ;;
1087
1088 -program-transform-name | --program-transform-name \
1089 | --program-transform-nam | --program-transform-na \
1090 | --program-transform-n | --program-transform- \
1091 | --program-transform | --program-transfor \
1092 | --program-transfo | --program-transf \
1093 | --program-trans | --program-tran \
1094 | --progr-tra | --program-tr | --program-t)
1095 ac_prev=program_transform_name ;;
1096 -program-transform-name=* | --program-transform-name=* \
1097 | --program-transform-nam=* | --program-transform-na=* \
1098 | --program-transform-n=* | --program-transform-=* \
1099 | --program-transform=* | --program-transfor=* \
1100 | --program-transfo=* | --program-transf=* \
1101 | --program-trans=* | --program-tran=* \
1102 | --progr-tra=* | --program-tr=* | --program-t=*)
1103 program_transform_name=$ac_optarg ;;
1104
1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106 ac_prev=pdfdir ;;
1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108 pdfdir=$ac_optarg ;;
1109
1110 -psdir | --psdir | --psdi | --psd | --ps)
1111 ac_prev=psdir ;;
1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113 psdir=$ac_optarg ;;
1114
1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil)
1117 silent=yes ;;
1118
1119 -runstatedir | --runstatedir | --runstatedi | --runstated \
1120 | --runstate | --runstat | --runsta | --runst | --runs \
1121 | --run | --ru | --r)
1122 ac_prev=runstatedir ;;
1123 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1124 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1125 | --run=* | --ru=* | --r=*)
1126 runstatedir=$ac_optarg ;;
1127
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129 ac_prev=sbindir ;;
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131 | --sbi=* | --sb=*)
1132 sbindir=$ac_optarg ;;
1133
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1137 | --sha | --sh)
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142 | --sha=* | --sh=*)
1143 sharedstatedir=$ac_optarg ;;
1144
1145 -site | --site | --sit)
1146 ac_prev=site ;;
1147 -site=* | --site=* | --sit=*)
1148 site=$ac_optarg ;;
1149
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151 ac_prev=srcdir ;;
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153 srcdir=$ac_optarg ;;
1154
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160 sysconfdir=$ac_optarg ;;
1161
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
1163 ac_prev=target_alias ;;
1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165 target_alias=$ac_optarg ;;
1166
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168 verbose=yes ;;
1169
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
1172
1173 -with-* | --with-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error $? "invalid package name: '$ac_useropt'"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1181 *"
1182 "with_$ac_useropt"
1183 "*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval with_$ac_useropt=\$ac_optarg ;;
1188
1189 -without-* | --without-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error $? "invalid package name: '$ac_useropt'"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1197 *"
1198 "with_$ac_useropt"
1199 "*) ;;
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1202 esac
1203 eval with_$ac_useropt=no ;;
1204
1205 --x)
1206 # Obsolete; use --with-x.
1207 with_x=yes ;;
1208
1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210 | --x-incl | --x-inc | --x-in | --x-i)
1211 ac_prev=x_includes ;;
1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214 x_includes=$ac_optarg ;;
1215
1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218 ac_prev=x_libraries ;;
1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221 x_libraries=$ac_optarg ;;
1222
1223 -*) as_fn_error $? "unrecognized option: '$ac_option'
1224 Try '$0 --help' for more information"
1225 ;;
1226
1227 *=*)
1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1230 case $ac_envvar in #(
1231 '' | [0-9]* | *[!_$as_cr_alnum]* )
1232 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1233 esac
1234 eval $ac_envvar=\$ac_optarg
1235 export $ac_envvar ;;
1236
1237 *)
1238 # FIXME: should be removed in autoconf 3.0.
1239 printf '%s\n' "$as_me: WARNING: you should use --build, --host, --target" >&2
1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 printf '%s\n' "$as_me: WARNING: invalid host type: $ac_option" >&2
1242 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1243 ;;
1244
1245 esac
1246 done
1247
1248 if test -n "$ac_prev"; then
1249 ac_option=--`printf '%s\n' $ac_prev | sed 's/_/-/g'`
1250 as_fn_error $? "missing argument to $ac_option"
1251 fi
1252
1253 if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1255 no) ;;
1256 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1257 *) printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1258 esac
1259 fi
1260
1261 # Check all directory arguments for consistency.
1262 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir runstatedir
1266 do
1267 eval ac_val=\$$ac_var
1268 # Remove trailing slashes.
1269 case $ac_val in
1270 */ )
1271 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272 eval $ac_var=\$ac_val;;
1273 esac
1274 # Be sure to have absolute directory names.
1275 case $ac_val in
1276 [\\/$]* | ?:[\\/]* ) continue;;
1277 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278 esac
1279 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1280 done
1281
1282 # There might be people who depend on the old broken behavior: '$host'
1283 # used to hold the argument of --host etc.
1284 # FIXME: To remove some day.
1285 build=$build_alias
1286 host=$host_alias
1287 target=$target_alias
1288
1289 # FIXME: To remove some day.
1290 if test "x$host_alias" != x; then
1291 if test "x$build_alias" = x; then
1292 cross_compiling=maybe
1293 elif test "x$build_alias" != "x$host_alias"; then
1294 cross_compiling=yes
1295 fi
1296 fi
1297
1298 ac_tool_prefix=
1299 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300
1301 test "$silent" = yes && exec 6>/dev/null
1302
1303
1304 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305 ac_ls_di=`ls -di .` &&
1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307 as_fn_error $? "working directory cannot be determined"
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309 as_fn_error $? "pwd does not report name of working directory"
1310
1311
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314 ac_srcdir_defaulted=yes
1315 # Try the directory containing this script, then the parent directory.
1316 ac_confdir=`$as_dirname -- "$as_myself" ||
1317 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318 X"$as_myself" : 'X\(//\)[^/]' \| \
1319 X"$as_myself" : 'X\(//\)$' \| \
1320 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321 printf '%s\n' X"$as_myself" |
1322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\/\)[^/].*/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\/\)$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\).*/{
1335 s//\1/
1336 q
1337 }
1338 s/.*/./; q'`
1339 srcdir=$ac_confdir
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 srcdir=..
1342 fi
1343 else
1344 ac_srcdir_defaulted=no
1345 fi
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1349 fi
1350 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1351 ac_abs_confdir=`(
1352 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1353 pwd)`
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356 srcdir=.
1357 fi
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1361 case $srcdir in
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 esac
1364 for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 done
1370
1371 #
1372 # Report the --help message.
1373 #
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1377 cat <<_ACEOF
1378 'configure' configures msmtp 1.8.33 to adapt to many kinds of systems.
1379
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1384
1385 Defaults for the options are specified in brackets.
1386
1387 Configuration:
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print 'checking ...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for '--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or '..']
1397
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1402 [PREFIX]
1403
1404 By default, 'make install' will install all the files in
1405 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than '$ac_default_prefix' using '--prefix',
1407 for instance '--prefix=\$HOME'.
1408
1409 For better control, use the options below.
1410
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root [DATAROOTDIR/doc/msmtp]
1428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
1432 _ACEOF
1433
1434 cat <<\_ACEOF
1435
1436 Program names:
1437 --program-prefix=PREFIX prepend PREFIX to installed program names
1438 --program-suffix=SUFFIX append SUFFIX to installed program names
1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1440
1441 System types:
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1444 --target=TARGET configure for building compilers for TARGET [HOST]
1445 _ACEOF
1446 fi
1447
1448 if test -n "$ac_init_help"; then
1449 case $ac_init_help in
1450 short | recursive ) echo "Configuration of msmtp 1.8.33:";;
1451 esac
1452 cat <<\_ACEOF
1453
1454 Optional Features:
1455 --disable-option-checking ignore unrecognized --enable/--with options
1456 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1457 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1458 --disable-largefile omit support for large files
1459 --enable-dependency-tracking
1460 do not reject slow dependency extractors
1461 --disable-dependency-tracking
1462 speeds up one-time build
1463 --enable-silent-rules less verbose build output (undo: "make V=1")
1464 --disable-silent-rules verbose build output (undo: "make V=0")
1465 --disable-nls do not use Native Language Support
1466 --disable-rpath do not hardcode runtime library paths
1467 --enable-gai-idn Use IDN support from getaddrinfo if available.
1468 Enabled by default.
1469 --enable-year2038 support timestamps after 2038
1470
1471 Optional Packages:
1472 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1473 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1474 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1475 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1476 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1477 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1478 --without-libintl-prefix don't search for libintl in includedir and libdir
1479 --with-tls=gnutls|openssl|libtls|no
1480 TLS support: GnuTLS (default), OpenSSL
1481 (discouraged), libtls, or none.
1482 --with-libgsasl Use GNU SASL authentication library.
1483 --with-libidn Support IDN (needs GNU Libidn)
1484 --with-libsecret Support libsecret (GNOME password management)
1485 --with-macosx-keyring Support Mac OS X Keyring
1486 --with-msmtpd Build msmtpd. Enabled by default.
1487
1488 Some influential environment variables:
1489 CC C compiler command
1490 CFLAGS C compiler flags
1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1492 nonstandard directory <lib dir>
1493 LIBS libraries to pass to the linker, e.g. -l<library>
1494 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1495 you have headers in a nonstandard directory <include dir>
1496 CPP C preprocessor
1497 PKG_CONFIG path to pkg-config utility
1498 PKG_CONFIG_PATH
1499 directories to add to pkg-config's search path
1500 PKG_CONFIG_LIBDIR
1501 path overriding pkg-config's built-in search path
1502 libgnutls_CFLAGS
1503 C compiler flags for libgnutls, overriding pkg-config
1504 libgnutls_LIBS
1505 linker flags for libgnutls, overriding pkg-config
1506 libssl_CFLAGS
1507 C compiler flags for libssl, overriding pkg-config
1508 libssl_LIBS linker flags for libssl, overriding pkg-config
1509 libtls_CFLAGS
1510 C compiler flags for libtls, overriding pkg-config
1511 libtls_LIBS linker flags for libtls, overriding pkg-config
1512 libgsasl_CFLAGS
1513 C compiler flags for libgsasl, overriding pkg-config
1514 libgsasl_LIBS
1515 linker flags for libgsasl, overriding pkg-config
1516 libidn2_CFLAGS
1517 C compiler flags for libidn2, overriding pkg-config
1518 libidn2_LIBS
1519 linker flags for libidn2, overriding pkg-config
1520 libsecret_CFLAGS
1521 C compiler flags for libsecret, overriding pkg-config
1522 libsecret_LIBS
1523 linker flags for libsecret, overriding pkg-config
1524
1525 Use these variables to override the choices made by 'configure' or to help
1526 it to find libraries and programs with nonstandard names/locations.
1527
1528 Report bugs to <[email protected]>.
1529 msmtp home page: <https://marlam.de/msmtp>.
1530 _ACEOF
1531 ac_status=$?
1532 fi
1533
1534 if test "$ac_init_help" = "recursive"; then
1535 # If there are subdirs, report their specific --help.
1536 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1537 test -d "$ac_dir" ||
1538 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1539 continue
1540 ac_builddir=.
1541
1542 case "$ac_dir" in
1543 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 *)
1545 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`
1546 # A ".." for each directory in $ac_dir_suffix.
1547 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1548 case $ac_top_builddir_sub in
1549 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1551 esac ;;
1552 esac
1553 ac_abs_top_builddir=$ac_pwd
1554 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1555 # for backward compatibility:
1556 ac_top_builddir=$ac_top_build_prefix
1557
1558 case $srcdir in
1559 .) # We are building in place.
1560 ac_srcdir=.
1561 ac_top_srcdir=$ac_top_builddir_sub
1562 ac_abs_top_srcdir=$ac_pwd ;;
1563 [\\/]* | ?:[\\/]* ) # Absolute name.
1564 ac_srcdir=$srcdir$ac_dir_suffix;
1565 ac_top_srcdir=$srcdir
1566 ac_abs_top_srcdir=$srcdir ;;
1567 *) # Relative name.
1568 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1569 ac_top_srcdir=$ac_top_build_prefix$srcdir
1570 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1571 esac
1572 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1573
1574 cd "$ac_dir" || { ac_status=$?; continue; }
1575 # Check for configure.gnu first; this name is used for a wrapper for
1576 # Metaconfig's "Configure" on case-insensitive file systems.
1577 if test -f "$ac_srcdir/configure.gnu"; then
1578 echo &&
1579 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1580 elif test -f "$ac_srcdir/configure"; then
1581 echo &&
1582 $SHELL "$ac_srcdir/configure" --help=recursive
1583 else
1584 printf '%s\n' "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1585 fi || ac_status=$?
1586 cd "$ac_pwd" || { ac_status=$?; break; }
1587 done
1588 fi
1589
1590 test -n "$ac_init_help" && exit $ac_status
1591 if $ac_init_version; then
1592 cat <<\_ACEOF
1593 msmtp configure 1.8.33
1594 generated by GNU Autoconf 2.73
1595
1596 Copyright (C) 2026 Free Software Foundation, Inc.
1597 This configure script is free software; the Free Software Foundation
1598 gives unlimited permission to copy, distribute and modify it.
1599 _ACEOF
1600 exit
1601 fi
1602
1603 ## ------------------------ ##
1604 ## Autoconf initialization. ##
1605 ## ------------------------ ##
1606
1607 # ac_fn_c_try_compile LINENO
1608 # --------------------------
1609 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_compile ()
1611 {
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 rm -f conftest.$ac_objext conftest.beam
1614 if { { ac_try="$ac_compile"
1615 case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 printf '%s\n' "$ac_try_echo"; } >&5
1621 (eval "$ac_compile") 2>conftest.err
1622 ac_status=$?
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1627 fi
1628 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } && {
1630 test -z "$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1632 } && test -s conftest.$ac_objext
1633 then :
1634 ac_retval=0
1635 else case e in #(
1636 e) printf '%s\n' "$as_me: failed program was:" >&5
1637 sed 's/^/| /' conftest.$ac_ext >&5
1638
1639 ac_retval=1 ;;
1640 esac
1641 fi
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643 as_fn_set_status $ac_retval
1644
1645 } # ac_fn_c_try_compile
1646
1647 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1648 # -------------------------------------------------------
1649 # Tests whether HEADER exists and can be compiled using the include files in
1650 # INCLUDES, setting the cache variable VAR accordingly.
1651 ac_fn_c_check_header_compile ()
1652 {
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655 printf %s "checking for $2... " >&6; }
1656 if eval test \${$3+y}
1657 then :
1658 printf %s "(cached) " >&6
1659 else case e in #(
1660 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h. */
1662 $4
1663 #include <$2>
1664 _ACEOF
1665 if ac_fn_c_try_compile "$LINENO"
1666 then :
1667 eval "$3=yes"
1668 else case e in #(
1669 e) eval "$3=no" ;;
1670 esac
1671 fi
1672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1673 esac
1674 fi
1675 eval ac_res=\$$3
1676 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677 printf '%s\n' "$ac_res" >&6; }
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679
1680 } # ac_fn_c_check_header_compile
1681
1682 # ac_fn_c_try_cpp LINENO
1683 # ----------------------
1684 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1685 ac_fn_c_try_cpp ()
1686 {
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 if { { ac_try="$ac_cpp conftest.$ac_ext"
1689 case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692 esac
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 printf '%s\n' "$ac_try_echo"; } >&5
1695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1696 ac_status=$?
1697 if test -s conftest.err; then
1698 grep -v '^ *+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1701 fi
1702 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } > conftest.i && {
1704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1706 }
1707 then :
1708 ac_retval=0
1709 else case e in #(
1710 e) printf '%s\n' "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1712
1713 ac_retval=1 ;;
1714 esac
1715 fi
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717 as_fn_set_status $ac_retval
1718
1719 } # ac_fn_c_try_cpp
1720
1721 # ac_fn_c_try_link LINENO
1722 # -----------------------
1723 # Try to link conftest.$ac_ext, and return whether this succeeded.
1724 ac_fn_c_try_link ()
1725 {
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1728 if { { ac_try="$ac_link"
1729 case "(($ac_try" in
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1732 esac
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 printf '%s\n' "$ac_try_echo"; } >&5
1735 (eval "$ac_link") 2>conftest.err
1736 ac_status=$?
1737 if test -s conftest.err; then
1738 grep -v '^ *+' conftest.err >conftest.er1
1739 cat conftest.er1 >&5
1740 mv -f conftest.er1 conftest.err
1741 fi
1742 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && {
1744 test -z "$ac_c_werror_flag" ||
1745 test ! -s conftest.err
1746 } && test -s conftest$ac_exeext && {
1747 test "$cross_compiling" = yes ||
1748 test -x conftest$ac_exeext
1749 }
1750 then :
1751 ac_retval=0
1752 else case e in #(
1753 e) printf '%s\n' "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1755
1756 ac_retval=1 ;;
1757 esac
1758 fi
1759 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1760 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1761 # interfere with the next link command; also delete a directory that is
1762 # left behind by Apple's compiler. We do this before executing the actions.
1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 as_fn_set_status $ac_retval
1766
1767 } # ac_fn_c_try_link
1768
1769 # ac_fn_c_try_run LINENO
1770 # ----------------------
1771 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1772 # executables *can* be run.
1773 ac_fn_c_try_run ()
1774 {
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 if { { ac_try="$ac_link"
1777 case "(($ac_try" in
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1780 esac
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 printf '%s\n' "$ac_try_echo"; } >&5
1783 (eval "$ac_link") 2>&5
1784 ac_status=$?
1785 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1787 { { case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 printf '%s\n' "$ac_try_echo"; } >&5
1793 (eval "$ac_try") 2>&5
1794 ac_status=$?
1795 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; }; }
1797 then :
1798 ac_retval=0
1799 else case e in #(
1800 e) printf '%s\n' "$as_me: program exited with status $ac_status" >&5
1801 printf '%s\n' "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.$ac_ext >&5
1803
1804 ac_retval=$ac_status ;;
1805 esac
1806 fi
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 as_fn_set_status $ac_retval
1810
1811 } # ac_fn_c_try_run
1812
1813 # ac_fn_c_check_func LINENO FUNC VAR
1814 # ----------------------------------
1815 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1816 ac_fn_c_check_func ()
1817 {
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 printf %s "checking for $2... " >&6; }
1821 if eval test \${$3+y}
1822 then :
1823 printf %s "(cached) " >&6
1824 else case e in #(
1825 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1827 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1829 #define $2 innocuous_$2
1830
1831 /* System header to define __stub macros and hopefully few prototypes,
1832 which can conflict with char $2 (void); below. */
1833
1834 #include <limits.h>
1835 #undef $2
1836
1837 /* Override any GCC internal prototype to avoid an error.
1838 Use char because int might match the return type of a GCC
1839 builtin and then its argument prototype would still apply. */
1840 #ifdef __cplusplus
1841 extern "C"
1842 #endif
1843 char $2 (void);
1844 /* The GNU C library defines this for functions which it implements
1845 to always fail with ENOSYS. Some functions are actually named
1846 something starting with __ and the normal name is an alias. */
1847 #if defined __stub_$2 || defined __stub___$2
1848 choke me
1849 #endif
1850
1851 int
1852 main (void)
1853 {
1854 return $2 ();
1855 ;
1856 return 0;
1857 }
1858 _ACEOF
1859 if ac_fn_c_try_link "$LINENO"
1860 then :
1861 eval "$3=yes"
1862 else case e in #(
1863 e) eval "$3=no" ;;
1864 esac
1865 fi
1866 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1867 conftest$ac_exeext conftest.$ac_ext ;;
1868 esac
1869 fi
1870 eval ac_res=\$$3
1871 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 printf '%s\n' "$ac_res" >&6; }
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874
1875 } # ac_fn_c_check_func
1876
1877 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1878 # ------------------------------------------------------------------
1879 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1880 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1881 ac_fn_check_decl ()
1882 {
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 as_decl_name=`echo $2|sed 's/ *(.*//'`
1885 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1886 printf %s "checking whether $as_decl_name is declared... " >&6; }
1887 if eval test \${$3+y}
1888 then :
1889 printf %s "(cached) " >&6
1890 else case e in #(
1891 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1892 eval ac_save_FLAGS=\$$6
1893 as_fn_append $6 " $5"
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1896 $4
1897 int
1898 main (void)
1899 {
1900 #ifndef $as_decl_name
1901 #ifdef __cplusplus
1902 (void) $as_decl_use;
1903 #else
1904 (void) $as_decl_name;
1905 #endif
1906 #endif
1907
1908 ;
1909 return 0;
1910 }
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"
1913 then :
1914 eval "$3=yes"
1915 else case e in #(
1916 e) eval "$3=no" ;;
1917 esac
1918 fi
1919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1920 eval $6=\$ac_save_FLAGS
1921 ;;
1922 esac
1923 fi
1924 eval ac_res=\$$3
1925 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1926 printf '%s\n' "$ac_res" >&6; }
1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928
1929 } # ac_fn_check_decl
1930 ac_configure_args_raw=
1931 for ac_arg
1932 do
1933 case $ac_arg in
1934 *\'*)
1935 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1936 esac
1937 as_fn_append ac_configure_args_raw " '$ac_arg'"
1938 done
1939
1940 case $ac_configure_args_raw in
1941 *$as_nl*)
1942 ac_safe_unquote= ;;
1943 *)
1944 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1945 ac_unsafe_a="$ac_unsafe_z#~"
1946 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1947 ac_configure_args_raw=` printf '%s\n' "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1948 esac
1949
1950 cat >config.log <<_ACEOF
1951 This file contains any messages produced by compilers while
1952 running configure, to aid debugging if configure makes a mistake.
1953
1954 It was created by msmtp $as_me 1.8.33, which was
1955 generated by GNU Autoconf 2.73. Invocation command line was
1956
1957 $ $0$ac_configure_args_raw
1958
1959 _ACEOF
1960 exec 5>>config.log
1961 {
1962 cat <<_ASUNAME
1963 ## --------- ##
1964 ## Platform. ##
1965 ## --------- ##
1966
1967 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1968 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1969 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1970 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1971 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1972
1973 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1974 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1975
1976 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1977 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1978 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1979 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1980 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1981 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1982 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1983
1984 _ASUNAME
1985
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 for as_dir in $PATH
1988 do
1989 IFS=$as_save_IFS
1990 case $as_dir in #(((
1991 '') as_dir=./ ;;
1992 */) ;;
1993 *) as_dir=$as_dir/ ;;
1994 esac
1995 printf '%s\n' "PATH: $as_dir"
1996 done
1997 IFS=$as_save_IFS
1998
1999 } >&5
2000
2001 cat >&5 <<_ACEOF
2002
2003
2004 ## ----------- ##
2005 ## Core tests. ##
2006 ## ----------- ##
2007
2008 _ACEOF
2009
2010
2011 # Keep a trace of the command line.
2012 # Strip out --no-create and --no-recursion so they do not pile up.
2013 # Strip out --silent because we don't want to record it for future runs.
2014 # Also quote any args containing shell meta-characters.
2015 # Make two passes to allow for proper duplicate-argument suppression.
2016 ac_configure_args=
2017 ac_configure_args0=
2018 ac_configure_args1=
2019 ac_must_keep_next=false
2020 for ac_pass in 1 2
2021 do
2022 for ac_arg
2023 do
2024 case $ac_arg in
2025 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2027 | -silent | --silent | --silen | --sile | --sil)
2028 continue ;;
2029 *\'*)
2030 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2031 esac
2032 case $ac_pass in
2033 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2034 2)
2035 as_fn_append ac_configure_args1 " '$ac_arg'"
2036 if test $ac_must_keep_next = true; then
2037 ac_must_keep_next=false # Got value, back to normal.
2038 else
2039 case $ac_arg in
2040 *=* | --config-cache | -C | -disable-* | --disable-* \
2041 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2042 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2043 | -with-* | --with-* | -without-* | --without-* | --x)
2044 case "$ac_configure_args0 " in
2045 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2046 esac
2047 ;;
2048 -* ) ac_must_keep_next=true ;;
2049 esac
2050 fi
2051 as_fn_append ac_configure_args " '$ac_arg'"
2052 ;;
2053 esac
2054 done
2055 done
2056 { ac_configure_args0=; unset ac_configure_args0;}
2057 { ac_configure_args1=; unset ac_configure_args1;}
2058
2059 # Dump the cache to stdout. It can be in a pipe (this is a requirement).
2060 ac_cache_dump ()
2061 {
2062 # The following way of writing the cache mishandles newlines in values,
2063 # but we know of no workaround that is simple, portable, and efficient.
2064 # So, we kill variables containing newlines.
2065 # Ultrix sh set writes to stderr and can't be redirected directly,
2066 # and sets the high bit in the cache file unless we assign to the vars.
2067 (
2068 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2069 eval ac_val=\$$ac_var
2070 case $ac_val in #(
2071 *${as_nl}*)
2072 case $ac_var in #(
2073 *_cv_*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2074 printf '%s\n' "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2075 esac
2076 case $ac_var in #(
2077 _ | IFS | as_nl) ;; #(
2078 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2079 *) { eval $ac_var=; unset $ac_var;} ;;
2080 esac ;;
2081 esac
2082 done
2083
2084 (set) 2>&1 |
2085 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2086 *${as_nl}ac_space=\ *)
2087 # 'set' does not quote correctly, so add quotes: double-quote
2088 # substitution turns \\\\ into \\, and sed turns \\ into \.
2089 sed -n \
2090 "s/'/'\\\\''/g;
2091 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2092 ;; #(
2093 *)
2094 # 'set' quotes correctly as required by POSIX, so do not add quotes.
2095 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2096 ;;
2097 esac |
2098 sort
2099 )
2100 }
2101
2102 # Print debugging info to stdout.
2103 ac_dump_debugging_info ()
2104 {
2105 echo
2106
2107 printf '%s\n' "## ---------------- ##
2108 ## Cache variables. ##
2109 ## ---------------- ##"
2110 echo
2111 ac_cache_dump
2112 echo
2113
2114 printf '%s\n' "## ----------------- ##
2115 ## Output variables. ##
2116 ## ----------------- ##"
2117 echo
2118 for ac_var in $ac_subst_vars
2119 do
2120 eval ac_val=\$$ac_var
2121 case $ac_val in
2122 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;
2123 esac
2124 printf '%s\n' "$ac_var='$ac_val'"
2125 done | sort
2126 echo
2127
2128 if test -n "$ac_subst_files"; then
2129 printf '%s\n' "## ------------------- ##
2130 ## File substitutions. ##
2131 ## ------------------- ##"
2132 echo
2133 for ac_var in $ac_subst_files
2134 do
2135 eval ac_val=\$$ac_var
2136 case $ac_val in
2137 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;
2138 esac
2139 printf '%s\n' "$ac_var='$ac_val'"
2140 done | sort
2141 echo
2142 fi
2143
2144 if test -s confdefs.h; then
2145 printf '%s\n' "## ----------- ##
2146 ## confdefs.h. ##
2147 ## ----------- ##"
2148 echo
2149 cat confdefs.h
2150 echo
2151 fi
2152 test "$ac_signal" != 0 &&
2153 printf '%s\n' "$as_me: caught signal $ac_signal"
2154 printf '%s\n' "$as_me: exit $exit_status"
2155 }
2156
2157 # When interrupted or exit'd, cleanup temporary files, and complete
2158 # config.log.
2159 ac_exit_trap ()
2160 {
2161 exit_status=
2162 # Sanitize IFS.
2163 IFS=" "" $as_nl"
2164 # Save into config.log some information that might help in debugging.
2165 ac_dump_debugging_info >&5
2166 eval "rm -f $ac_clean_CONFIG_STATUS core *.core core.conftest.*" &&
2167 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2168 exit $exit_status
2169 }
2170
2171 trap 'ac_exit_trap $?' 0
2172 for ac_signal in 1 2 13 15; do
2173 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2174 done
2175 ac_signal=0
2176
2177 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2178 rm -f -r conftest* confdefs.h
2179
2180 printf '%s\n' "/* confdefs.h */" > confdefs.h
2181
2182 # Predefined preprocessor variables.
2183
2184 printf '%s\n' "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2185
2186 printf '%s\n' "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2187
2188 printf '%s\n' "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2189
2190 printf '%s\n' "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2191
2192 printf '%s\n' "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2193
2194 printf '%s\n' "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2195
2196
2197 # Let the site file select an alternate cache file if it wants to.
2198 # Prefer an explicitly selected file to automatically selected ones.
2199 if test -n "$CONFIG_SITE"; then
2200 ac_site_files="$CONFIG_SITE"
2201 elif test "x$prefix" != xNONE; then
2202 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2203 else
2204 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2205 fi
2206
2207 for ac_site_file in $ac_site_files
2208 do
2209 case $ac_site_file in #(
2210 */*) :
2211 ;; #(
2212 *) :
2213 ac_site_file=./$ac_site_file ;;
2214 esac
2215 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2216 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2217 printf '%s\n' "$as_me: loading site script $ac_site_file" >&6;}
2218 sed 's/^/| /' "$ac_site_file" >&5
2219 . "$ac_site_file" \
2220 || { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2221 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
2222 as_fn_error $? "failed to load site script $ac_site_file
2223 See 'config.log' for more details" "$LINENO" 5; }
2224 fi
2225 done
2226
2227 if test -r "$cache_file"; then
2228 # Some versions of bash will fail to source /dev/null (special files
2229 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2230 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2231 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2232 printf '%s\n' "$as_me: loading cache $cache_file" >&6;}
2233 case $cache_file in
2234 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2235 *) . "./$cache_file";;
2236 esac
2237 fi
2238 else
2239 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2240 printf '%s\n' "$as_me: creating cache $cache_file" >&6;}
2241 >$cache_file
2242 fi
2243
2244 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2245 # Test code for whether the C compiler supports C23 (global declarations)
2246 ac_c_conftest_c23_globals='
2247 /* Does the compiler advertise conformance to C17 or earlier?
2248 Although GCC 14 does not do that, even with -std=gnu23,
2249 it is close enough, and defines __STDC_VERSION == 202000L. */
2250 #if !defined __STDC_VERSION__ || __STDC_VERSION__ <= 201710L
2251 # error "Compiler advertises conformance to C17 or earlier"
2252 #endif
2253
2254 // Check alignas.
2255 char alignas (double) c23_aligned_as_double;
2256 char alignas (0) c23_no_special_alignment;
2257 extern char c23_aligned_as_int;
2258 char alignas (0) alignas (int) c23_aligned_as_int;
2259
2260 // Check alignof.
2261 enum
2262 {
2263 c23_int_alignment = alignof (int),
2264 c23_int_array_alignment = alignof (int[100]),
2265 c23_char_alignment = alignof (char)
2266 };
2267 static_assert (0 < -alignof (int), "alignof is signed");
2268
2269 int function_with_unnamed_parameter (int) { return 0; }
2270
2271 void c23_noreturn ();
2272
2273 /* Test parsing of string and char UTF-8 literals (including hex escapes).
2274 The parens pacify GCC 15. */
2275 bool use_u8 = (!sizeof u8"\xFF") == (!u8'\''x'\'');
2276
2277 bool check_that_bool_works = true | false | !nullptr;
2278 #if !true
2279 # error "true does not work in #if"
2280 #endif
2281 #if false
2282 #elifdef __STDC_VERSION__
2283 #else
2284 # error "#elifdef does not work"
2285 #endif
2286
2287 #ifndef __has_c_attribute
2288 # error "__has_c_attribute not defined"
2289 #endif
2290
2291 #ifndef __has_include
2292 # error "__has_include not defined"
2293 #endif
2294
2295 #define LPAREN() (
2296 #define FORTY_TWO(x) 42
2297 #define VA_OPT_TEST(r, x, ...) __VA_OPT__ (FORTY_TWO r x))
2298 static_assert (VA_OPT_TEST (LPAREN (), 0, <:-) == 42);
2299
2300 static_assert (0b101010 == 42);
2301 static_assert (0B101010 == 42);
2302 static_assert (0xDEAD'\''BEEF == 3'\''735'\''928'\''559);
2303 static_assert (0.500'\''000'\''000 == 0.5);
2304
2305 enum unsignedish : unsigned int { uione = 1 };
2306 static_assert (0 < -uione);
2307
2308 #include <stddef.h>
2309 constexpr nullptr_t null_pointer = nullptr;
2310
2311 static typeof (1 + 1L) two () { return 2; }
2312 static long int three () { return 3; }
2313 '
2314
2315 # Test code for whether the C compiler supports C23 (body of main).
2316 ac_c_conftest_c23_main='
2317 {
2318 label_before_declaration:
2319 int arr[10] = {};
2320 if (arr[0])
2321 goto label_before_declaration;
2322 if (!arr[0])
2323 goto label_at_end_of_block;
2324 label_at_end_of_block:
2325 }
2326 ok |= !null_pointer;
2327 ok |= two != three;
2328 '
2329
2330 # Test code for whether the C compiler supports C23 (complete).
2331 ac_c_conftest_c23_program="${ac_c_conftest_c23_globals}
2332
2333 int
2334 main (int, char **)
2335 {
2336 int ok = 0;
2337 ${ac_c_conftest_c23_main}
2338 return ok;
2339 }
2340 "
2341
2342 # Test code for whether the C compiler supports C89 (global declarations)
2343 ac_c_conftest_c89_globals='
2344 /* Do not test the value of __STDC__, because some compilers define it to 0
2345 or do not define it, while otherwise adequately conforming. */
2346
2347 #include <stddef.h>
2348 #include <stdarg.h>
2349 struct stat;
2350 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2351 struct buf { int x; };
2352 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2353 static char *e (char **p, int i)
2354 {
2355 return p[i];
2356 }
2357 static char *f (char * (*g) (char **, int), char **p, ...)
2358 {
2359 char *s;
2360 va_list v;
2361 va_start (v,p);
2362 s = g (p, va_arg (v,int));
2363 va_end (v);
2364 return s;
2365 }
2366
2367 /* C89 style stringification. */
2368 #define noexpand_stringify(a) #a
2369 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2370
2371 /* C89 style token pasting. Exercises some of the corner cases that
2372 e.g. old MSVC gets wrong, but not very hard. */
2373 #define noexpand_concat(a,b) a##b
2374 #define expand_concat(a,b) noexpand_concat(a,b)
2375 extern int vA;
2376 extern int vbee;
2377 #define aye A
2378 #define bee B
2379 int *pvA = &expand_concat(v,aye);
2380 int *pvbee = &noexpand_concat(v,bee);
2381
2382 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2383 function prototypes and stuff, but not \xHH hex character constants.
2384 These do not provoke an error unfortunately, instead are silently treated
2385 as an "x". The following induces an error, until -std is added to get
2386 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2387 array size at least. It is necessary to write \x00 == 0 to get something
2388 that is true only with -std. */
2389 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2390
2391 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2392 inside strings and character constants. */
2393 #define FOO(x) '\''x'\''
2394 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2395
2396 int test (int i, double x);
2397 struct s1 {int (*f) (int a);};
2398 struct s2 {int (*f) (double a);};
2399 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2400 int, int);'
2401
2402 # Test code for whether the C compiler supports C89 (body of main).
2403 ac_c_conftest_c89_main='
2404 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2405 '
2406
2407 # Test code for whether the C compiler supports C99 (global declarations)
2408 ac_c_conftest_c99_globals='
2409 /* Does the compiler advertise C99 conformance? */
2410 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2411 # error "Compiler does not advertise C99 conformance"
2412 #endif
2413
2414 // See if C++-style comments work.
2415
2416 #include <stdbool.h>
2417 extern int puts (const char *);
2418 extern int printf (const char *, ...);
2419 extern int dprintf (int, const char *, ...);
2420 extern void *malloc (size_t);
2421 extern void free (void *);
2422
2423 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2424 // dprintf is used instead of fprintf to avoid needing to declare
2425 // FILE and stderr, and "aND" is used instead of "and" to work around
2426 // GCC bug 40564 which is irrelevant here.
2427 #define debug(...) dprintf (2, __VA_ARGS__)
2428 #define showlist(...) puts (#__VA_ARGS__)
2429 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2430 static void
2431 test_varargs_macros (void)
2432 {
2433 int x = 1234;
2434 int y = 5678;
2435 debug ("Flag");
2436 debug ("X = %d\n", x);
2437 showlist (The first, second, aND third items.);
2438 report (x>y, "x is %d but y is %d", x, y);
2439 }
2440
2441 // Check long long types.
2442 #define BIG64 18446744073709551615ull
2443 #define BIG32 4294967295ul
2444 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2445 #if !BIG_OK
2446 #error "your preprocessor is broken"
2447 #endif
2448 #if BIG_OK
2449 #else
2450 #error "your preprocessor is broken"
2451 #endif
2452 static long long int bignum = -9223372036854775807LL;
2453 static unsigned long long int ubignum = BIG64;
2454
2455 struct incomplete_array
2456 {
2457 int datasize;
2458 double data[];
2459 };
2460
2461 struct named_init {
2462 int number;
2463 const wchar_t *name;
2464 double average;
2465 };
2466
2467 typedef const char *ccp;
2468
2469 static inline int
2470 test_restrict (ccp restrict text)
2471 {
2472 // Iterate through items via the restricted pointer.
2473 // Also check for declarations in for loops.
2474 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2475 continue;
2476 return 0;
2477 }
2478
2479 // Check varargs and va_copy.
2480 static bool
2481 test_varargs (const char *format, ...)
2482 {
2483 va_list args;
2484 va_start (args, format);
2485 va_list args_copy;
2486 va_copy (args_copy, args);
2487
2488 const char *str = "";
2489 int number = 0;
2490 float fnumber = 0;
2491
2492 while (*format)
2493 {
2494 switch (*format++)
2495 {
2496 case '\''s'\'': // string
2497 str = va_arg (args_copy, const char *);
2498 break;
2499 case '\''d'\'': // int
2500 number = va_arg (args_copy, int);
2501 break;
2502 case '\''f'\'': // float
2503 fnumber = va_arg (args_copy, double);
2504 break;
2505 default:
2506 break;
2507 }
2508 }
2509 va_end (args_copy);
2510 va_end (args);
2511
2512 return *str && number && fnumber;
2513 }
2514 '
2515
2516 # Test code for whether the C compiler supports C99 (body of main).
2517 ac_c_conftest_c99_main='
2518 // Check bool.
2519 _Bool success = false;
2520 success |= (argc != 0);
2521
2522 // Check restrict.
2523 if (test_restrict ("String literal") == 0)
2524 success = true;
2525 const char *restrict newvar = "Another string";
2526
2527 // Check varargs.
2528 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2529 test_varargs_macros ();
2530
2531 // Check flexible array members.
2532 static struct incomplete_array *volatile incomplete_array_pointer;
2533 struct incomplete_array *ia = incomplete_array_pointer;
2534 ia->datasize = 10;
2535 for (int i = 0; i < ia->datasize; ++i)
2536 ia->data[i] = i * 1.234;
2537 // Work around memory leak warnings.
2538 free (ia);
2539
2540 // Check named initializers.
2541 struct named_init ni = {
2542 .number = 34,
2543 .name = L"Test wide string",
2544 .average = 543.34343,
2545 };
2546
2547 ni.number = 58;
2548
2549 // Do not test for VLAs, as some otherwise-conforming compilers lack them.
2550 // C code should instead use __STDC_NO_VLA__; see Autoconf manual.
2551
2552 // work around unused variable warnings
2553 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2554 || ni.number != 58);
2555 '
2556
2557 # Test code for whether the C compiler supports C11 (global declarations)
2558 ac_c_conftest_c11_globals='
2559 /* Does the compiler advertise C11 conformance? */
2560 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2561 # error "Compiler does not advertise C11 conformance"
2562 #endif
2563
2564 // Check _Alignas.
2565 char _Alignas (double) aligned_as_double;
2566 char _Alignas (0) no_special_alignment;
2567 extern char aligned_as_int;
2568 char _Alignas (0) _Alignas (int) aligned_as_int;
2569
2570 // Check _Alignof.
2571 enum
2572 {
2573 int_alignment = _Alignof (int),
2574 int_array_alignment = _Alignof (int[100]),
2575 char_alignment = _Alignof (char)
2576 };
2577 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2578
2579 // Check _Noreturn.
2580 int _Noreturn does_not_return (void) { for (;;) continue; }
2581
2582 // Check _Static_assert.
2583 struct test_static_assert
2584 {
2585 int x;
2586 _Static_assert (sizeof (int) <= sizeof (long int),
2587 "_Static_assert does not work in struct");
2588 long int y;
2589 };
2590
2591 // Check UTF-8 literals.
2592 #define u8 syntax error!
2593 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2594
2595 // Check duplicate typedefs.
2596 typedef long *long_ptr;
2597 typedef long int *long_ptr;
2598 typedef long_ptr long_ptr;
2599
2600 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2601 struct anonymous
2602 {
2603 union {
2604 struct { int i; int j; };
2605 struct { int k; long int l; } w;
2606 };
2607 int m;
2608 } v1;
2609 '
2610
2611 # Test code for whether the C compiler supports C11 (body of main).
2612 ac_c_conftest_c11_main='
2613 _Static_assert ((offsetof (struct anonymous, i)
2614 == offsetof (struct anonymous, w.k)),
2615 "Anonymous union alignment botch");
2616 v1.i = 2;
2617 v1.w.k = 5;
2618 ok |= v1.i != 5;
2619 '
2620
2621 # Test code for whether the C compiler supports C11 (complete).
2622 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2623 ${ac_c_conftest_c99_globals}
2624 ${ac_c_conftest_c11_globals}
2625
2626 int
2627 main (int argc, char **argv)
2628 {
2629 int ok = 0;
2630 ${ac_c_conftest_c89_main}
2631 ${ac_c_conftest_c99_main}
2632 ${ac_c_conftest_c11_main}
2633 return ok;
2634 }
2635 "
2636
2637 # Test code for whether the C compiler supports C99 (complete).
2638 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2639 ${ac_c_conftest_c99_globals}
2640
2641 int
2642 main (int argc, char **argv)
2643 {
2644 int ok = 0;
2645 ${ac_c_conftest_c89_main}
2646 ${ac_c_conftest_c99_main}
2647 return ok;
2648 }
2649 "
2650
2651 # Test code for whether the C compiler supports C89 (complete).
2652 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2653
2654 int
2655 main (int argc, char **argv)
2656 {
2657 int ok = 0;
2658 ${ac_c_conftest_c89_main}
2659 return ok;
2660 }
2661 "
2662
2663 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2664 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2665 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2666 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2667 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2668 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2669 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2670 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2671 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2672 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2673 gt_needs="$gt_needs "
2674
2675 # Auxiliary files required by this configure script.
2676 ac_aux_files="config.rpath missing install-sh compile config.guess config.sub"
2677
2678 # Locations in which to look for auxiliary files.
2679 ac_aux_dir_candidates="${srcdir}/build-aux"
2680
2681 # Search for a directory containing all of the required auxiliary files,
2682 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2683 # If we don't find one directory that contains all the files we need,
2684 # we report the set of missing files from the *first* directory in
2685 # $ac_aux_dir_candidates and give up.
2686 ac_missing_aux_files=""
2687 ac_first_candidate=:
2688 printf '%s\n' "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 as_found=false
2691 for as_dir in $ac_aux_dir_candidates
2692 do
2693 IFS=$as_save_IFS
2694 case $as_dir in #(((
2695 '') as_dir=./ ;;
2696 */) ;;
2697 *) as_dir=$as_dir/ ;;
2698 esac
2699 as_found=:
2700
2701 printf '%s\n' "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2702 ac_aux_dir_found=yes
2703 ac_install_sh=
2704 for ac_aux in $ac_aux_files
2705 do
2706 # As a special case, if "install-sh" is required, that requirement
2707 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2708 # and $ac_install_sh is set appropriately for whichever one is found.
2709 if test x"$ac_aux" = x"install-sh"
2710 then
2711 if test -f "${as_dir}install-sh"; then
2712 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2713 ac_install_sh="${as_dir}install-sh -c"
2714 elif test -f "${as_dir}install.sh"; then
2715 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2716 ac_install_sh="${as_dir}install.sh -c"
2717 elif test -f "${as_dir}shtool"; then
2718 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2719 ac_install_sh="${as_dir}shtool install -c"
2720 else
2721 ac_aux_dir_found=no
2722 if $ac_first_candidate; then
2723 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2724 else
2725 break
2726 fi
2727 fi
2728 else
2729 if test -f "${as_dir}${ac_aux}"; then
2730 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2731 else
2732 ac_aux_dir_found=no
2733 if $ac_first_candidate; then
2734 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2735 else
2736 break
2737 fi
2738 fi
2739 fi
2740 done
2741 if test "$ac_aux_dir_found" = yes; then
2742 ac_aux_dir="$as_dir"
2743 break
2744 fi
2745 ac_first_candidate=false
2746
2747 as_found=false
2748 done
2749 IFS=$as_save_IFS
2750 if $as_found
2751 then :
2752
2753 else case e in #(
2754 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2755 esac
2756 fi
2757
2758
2759 # These three variables are undocumented and unsupported,
2760 # and are intended to be withdrawn in a future Autoconf release.
2761 # They can cause serious problems if a builder's source tree is in a directory
2762 # whose full name contains unusual characters.
2763 if test -f "${ac_aux_dir}config.guess"; then
2764 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2765 fi
2766 if test -f "${ac_aux_dir}config.sub"; then
2767 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2768 fi
2769 if test -f "$ac_aux_dir/configure"; then
2770 ac_configure="$SHELL ${ac_aux_dir}configure"
2771 fi
2772
2773 # Check that the precious variables saved in the cache have kept the same
2774 # value.
2775 ac_cache_corrupted=false
2776 for ac_var in $ac_precious_vars; do
2777 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2778 eval ac_new_set=\$ac_env_${ac_var}_set
2779 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2780 eval ac_new_val=\$ac_env_${ac_var}_value
2781 case $ac_old_set,$ac_new_set in
2782 set,)
2783 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2784 printf '%s\n' "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2785 ac_cache_corrupted=: ;;
2786 ,set)
2787 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2788 printf '%s\n' "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2789 ac_cache_corrupted=: ;;
2790 ,);;
2791 *)
2792 if test "x$ac_old_val" != "x$ac_new_val"; then
2793 # differences in whitespace do not lead to failure.
2794 ac_old_val_w=
2795 for ac_val in x $ac_old_val; do
2796 ac_old_val_w="$ac_old_val_w $ac_val"
2797 done
2798 ac_new_val_w=
2799 for ac_val in x $ac_new_val; do
2800 ac_new_val_w="$ac_new_val_w $ac_val"
2801 done
2802 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2803 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2804 printf '%s\n' "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2805 ac_cache_corrupted=:
2806 else
2807 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2808 printf '%s\n' "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2809 eval $ac_var=\$ac_old_val
2810 fi
2811 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2812 printf '%s\n' "$as_me: former value: '$ac_old_val'" >&2;}
2813 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2814 printf '%s\n' "$as_me: current value: '$ac_new_val'" >&2;}
2815 fi;;
2816 esac
2817 # Pass precious variables to config.status.
2818 if test "$ac_new_set" = set; then
2819 case $ac_new_val in
2820 *\'*) ac_arg=$ac_var=`printf '%s\n' "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2821 *) ac_arg=$ac_var=$ac_new_val ;;
2822 esac
2823 case " $ac_configure_args " in
2824 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2825 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2826 esac
2827 fi
2828 done
2829 if $ac_cache_corrupted; then
2830 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2831 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
2832 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2833 printf '%s\n' "$as_me: error: changes in the environment can compromise the build" >&2;}
2834 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2835 and start over" "$LINENO" 5
2836 fi
2837 ## -------------------- ##
2838 ## Main body of script. ##
2839 ## -------------------- ##
2840
2841
2842 # Determine whether it's possible to make 'echo' print without a newline.
2843 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
2844 # for compatibility with existing Makefiles.
2845 ECHO_C= ECHO_N= ECHO_T=
2846 case `echo -n x` in #(((((
2847 -n*)
2848 case `echo 'xy\c'` in
2849 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
2850 xy) ECHO_C='\c';;
2851 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
2852 ECHO_T=' ';;
2853 esac;;
2854 *)
2855 ECHO_N='-n';;
2856 esac
2857
2858 ac_ext=c
2859 ac_cpp='$CPP $CPPFLAGS'
2860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2863
2864
2865
2866
2867 ac_config_headers="$ac_config_headers config.h"
2868
2869
2870
2871
2872 # Make sure we can run config.sub.
2873 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2874 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2875
2876 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2877 printf %s "checking build system type... " >&6; }
2878 if test ${ac_cv_build+y}
2879 then :
2880 printf %s "(cached) " >&6
2881 else case e in #(
2882 e) ac_build_alias=$build_alias
2883 test "x$ac_build_alias" = x &&
2884 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2885 test "x$ac_build_alias" = x &&
2886 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2887 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2888 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2889 ;;
2890 esac
2891 fi
2892 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2893 printf '%s\n' "$ac_cv_build" >&6; }
2894 case $ac_cv_build in
2895 *-*-*) ;;
2896 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2897 esac
2898 build=$ac_cv_build
2899 ac_save_IFS=$IFS; IFS='-'
2900 set x $ac_cv_build
2901 shift
2902 build_cpu=$1
2903 build_vendor=$2
2904 shift; shift
2905 # Remember, the first character of IFS is used to create $*,
2906 # except with old shells:
2907 build_os=$*
2908 IFS=$ac_save_IFS
2909 case $build_os in *\ *) build_os=`printf '%s\n' "$build_os" | sed 's/ /-/g'`;; esac
2910
2911
2912 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2913 printf %s "checking host system type... " >&6; }
2914 if test ${ac_cv_host+y}
2915 then :
2916 printf %s "(cached) " >&6
2917 else case e in #(
2918 e) if test "x$host_alias" = x; then
2919 ac_cv_host=$ac_cv_build
2920 else
2921 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2922 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2923 fi
2924 ;;
2925 esac
2926 fi
2927 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2928 printf '%s\n' "$ac_cv_host" >&6; }
2929 case $ac_cv_host in
2930 *-*-*) ;;
2931 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2932 esac
2933 host=$ac_cv_host
2934 ac_save_IFS=$IFS; IFS='-'
2935 set x $ac_cv_host
2936 shift
2937 host_cpu=$1
2938 host_vendor=$2
2939 shift; shift
2940 # Remember, the first character of IFS is used to create $*,
2941 # except with old shells:
2942 host_os=$*
2943 IFS=$ac_save_IFS
2944 case $host_os in *\ *) host_os=`printf '%s\n' "$host_os" | sed 's/ /-/g'`;; esac
2945
2946
2947 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2948 printf %s "checking target system type... " >&6; }
2949 if test ${ac_cv_target+y}
2950 then :
2951 printf %s "(cached) " >&6
2952 else case e in #(
2953 e) if test "x$target_alias" = x; then
2954 ac_cv_target=$ac_cv_host
2955 else
2956 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
2957 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
2958 fi
2959 ;;
2960 esac
2961 fi
2962 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2963 printf '%s\n' "$ac_cv_target" >&6; }
2964 case $ac_cv_target in
2965 *-*-*) ;;
2966 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2967 esac
2968 target=$ac_cv_target
2969 ac_save_IFS=$IFS; IFS='-'
2970 set x $ac_cv_target
2971 shift
2972 target_cpu=$1
2973 target_vendor=$2
2974 shift; shift
2975 # Remember, the first character of IFS is used to create $*,
2976 # except with old shells:
2977 target_os=$*
2978 IFS=$ac_save_IFS
2979 case $target_os in *\ *) target_os=`printf '%s\n' "$target_os" | sed 's/ /-/g'`;; esac
2980
2981
2982 # The aliases save the names the user supplied, while $host etc.
2983 # will get canonicalized.
2984 test -n "$target_alias" &&
2985 test "$program_prefix$program_suffix$program_transform_name" = \
2986 NONENONEs,x,x, &&
2987 program_prefix=${target_alias}-
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001 # Expand $ac_aux_dir to an absolute path.
3002 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3003
3004 ac_ext=c
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009 if test -n "$ac_tool_prefix"; then
3010 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3011 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3012 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3013 printf %s "checking for $ac_word... " >&6; }
3014 if test ${ac_cv_prog_CC+y}
3015 then :
3016 printf %s "(cached) " >&6
3017 else case e in #(
3018 e) if test -n "$CC"; then
3019 ac_cv_prog_CC="$CC" # Let the user override the test.
3020 else
3021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022 for as_dir in $PATH
3023 do
3024 IFS=$as_save_IFS
3025 case $as_dir in #(((
3026 '') as_dir=./ ;;
3027 */) ;;
3028 *) as_dir=$as_dir/ ;;
3029 esac
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3032 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3033 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3034 break 2
3035 fi
3036 done
3037 done
3038 IFS=$as_save_IFS
3039
3040 fi ;;
3041 esac
3042 fi
3043 CC=$ac_cv_prog_CC
3044 if test -n "$CC"; then
3045 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3046 printf '%s\n' "$CC" >&6; }
3047 else
3048 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049 printf '%s\n' "no" >&6; }
3050 fi
3051
3052
3053 fi
3054 if test -z "$ac_cv_prog_CC"; then
3055 ac_ct_CC=$CC
3056 # Extract the first word of "gcc", so it can be a program name with args.
3057 set dummy gcc; ac_word=$2
3058 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059 printf %s "checking for $ac_word... " >&6; }
3060 if test ${ac_cv_prog_ac_ct_CC+y}
3061 then :
3062 printf %s "(cached) " >&6
3063 else case e in #(
3064 e) if test -n "$ac_ct_CC"; then
3065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3066 else
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH
3069 do
3070 IFS=$as_save_IFS
3071 case $as_dir in #(((
3072 '') as_dir=./ ;;
3073 */) ;;
3074 *) as_dir=$as_dir/ ;;
3075 esac
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_ac_ct_CC="gcc"
3079 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3080 break 2
3081 fi
3082 done
3083 done
3084 IFS=$as_save_IFS
3085
3086 fi ;;
3087 esac
3088 fi
3089 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3090 if test -n "$ac_ct_CC"; then
3091 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3092 printf '%s\n' "$ac_ct_CC" >&6; }
3093 else
3094 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095 printf '%s\n' "no" >&6; }
3096 fi
3097
3098 if test "x$ac_ct_CC" = x; then
3099 CC=""
3100 else
3101 case $cross_compiling:$ac_tool_warned in
3102 yes:)
3103 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3104 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3105 ac_tool_warned=yes ;;
3106 esac
3107 CC=$ac_ct_CC
3108 fi
3109 else
3110 CC="$ac_cv_prog_CC"
3111 fi
3112
3113 if test -z "$CC"; then
3114 if test -n "$ac_tool_prefix"; then
3115 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3116 set dummy ${ac_tool_prefix}cc; ac_word=$2
3117 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118 printf %s "checking for $ac_word... " >&6; }
3119 if test ${ac_cv_prog_CC+y}
3120 then :
3121 printf %s "(cached) " >&6
3122 else case e in #(
3123 e) if test -n "$CC"; then
3124 ac_cv_prog_CC="$CC" # Let the user override the test.
3125 else
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3128 do
3129 IFS=$as_save_IFS
3130 case $as_dir in #(((
3131 '') as_dir=./ ;;
3132 */) ;;
3133 *) as_dir=$as_dir/ ;;
3134 esac
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3137 ac_cv_prog_CC="${ac_tool_prefix}cc"
3138 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3139 break 2
3140 fi
3141 done
3142 done
3143 IFS=$as_save_IFS
3144
3145 fi ;;
3146 esac
3147 fi
3148 CC=$ac_cv_prog_CC
3149 if test -n "$CC"; then
3150 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3151 printf '%s\n' "$CC" >&6; }
3152 else
3153 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 printf '%s\n' "no" >&6; }
3155 fi
3156
3157
3158 fi
3159 fi
3160 if test -z "$CC"; then
3161 # Extract the first word of "cc", so it can be a program name with args.
3162 set dummy cc; ac_word=$2
3163 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164 printf %s "checking for $ac_word... " >&6; }
3165 if test ${ac_cv_prog_CC+y}
3166 then :
3167 printf %s "(cached) " >&6
3168 else case e in #(
3169 e) if test -n "$CC"; then
3170 ac_cv_prog_CC="$CC" # Let the user override the test.
3171 else
3172 ac_prog_rejected=no
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3175 do
3176 IFS=$as_save_IFS
3177 case $as_dir in #(((
3178 '') as_dir=./ ;;
3179 */) ;;
3180 *) as_dir=$as_dir/ ;;
3181 esac
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3184 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3185 ac_prog_rejected=yes
3186 continue
3187 fi
3188 ac_cv_prog_CC="cc"
3189 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3190 break 2
3191 fi
3192 done
3193 done
3194 IFS=$as_save_IFS
3195
3196 if test $ac_prog_rejected = yes; then
3197 # We found a bogon in the path, so make sure we never use it.
3198 set dummy $ac_cv_prog_CC
3199 shift
3200 if test $# != 0; then
3201 # We chose a different compiler from the bogus one.
3202 # However, it has the same basename, so the bogon will be chosen
3203 # first if we set CC to just the basename; use the full file name.
3204 shift
3205 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3206 fi
3207 fi
3208 fi ;;
3209 esac
3210 fi
3211 CC=$ac_cv_prog_CC
3212 if test -n "$CC"; then
3213 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3214 printf '%s\n' "$CC" >&6; }
3215 else
3216 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 printf '%s\n' "no" >&6; }
3218 fi
3219
3220
3221 fi
3222 if test -z "$CC"; then
3223 if test -n "$ac_tool_prefix"; then
3224 for ac_prog in cl.exe
3225 do
3226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3228 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 printf %s "checking for $ac_word... " >&6; }
3230 if test ${ac_cv_prog_CC+y}
3231 then :
3232 printf %s "(cached) " >&6
3233 else case e in #(
3234 e) if test -n "$CC"; then
3235 ac_cv_prog_CC="$CC" # Let the user override the test.
3236 else
3237 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 for ac_exec_ext in '' $ac_executable_extensions; do
3247 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3248 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3249 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3250 break 2
3251 fi
3252 done
3253 done
3254 IFS=$as_save_IFS
3255
3256 fi ;;
3257 esac
3258 fi
3259 CC=$ac_cv_prog_CC
3260 if test -n "$CC"; then
3261 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3262 printf '%s\n' "$CC" >&6; }
3263 else
3264 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 printf '%s\n' "no" >&6; }
3266 fi
3267
3268
3269 test -n "$CC" && break
3270 done
3271 fi
3272 if test -z "$CC"; then
3273 ac_ct_CC=$CC
3274 for ac_prog in cl.exe
3275 do
3276 # Extract the first word of "$ac_prog", so it can be a program name with args.
3277 set dummy $ac_prog; ac_word=$2
3278 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3279 printf %s "checking for $ac_word... " >&6; }
3280 if test ${ac_cv_prog_ac_ct_CC+y}
3281 then :
3282 printf %s "(cached) " >&6
3283 else case e in #(
3284 e) if test -n "$ac_ct_CC"; then
3285 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3286 else
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH
3289 do
3290 IFS=$as_save_IFS
3291 case $as_dir in #(((
3292 '') as_dir=./ ;;
3293 */) ;;
3294 *) as_dir=$as_dir/ ;;
3295 esac
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3298 ac_cv_prog_ac_ct_CC="$ac_prog"
3299 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3300 break 2
3301 fi
3302 done
3303 done
3304 IFS=$as_save_IFS
3305
3306 fi ;;
3307 esac
3308 fi
3309 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3310 if test -n "$ac_ct_CC"; then
3311 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3312 printf '%s\n' "$ac_ct_CC" >&6; }
3313 else
3314 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315 printf '%s\n' "no" >&6; }
3316 fi
3317
3318
3319 test -n "$ac_ct_CC" && break
3320 done
3321
3322 if test "x$ac_ct_CC" = x; then
3323 CC=""
3324 else
3325 case $cross_compiling:$ac_tool_warned in
3326 yes:)
3327 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3328 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3329 ac_tool_warned=yes ;;
3330 esac
3331 CC=$ac_ct_CC
3332 fi
3333 fi
3334
3335 fi
3336 if test -z "$CC"; then
3337 if test -n "$ac_tool_prefix"; then
3338 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3339 set dummy ${ac_tool_prefix}clang; ac_word=$2
3340 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341 printf %s "checking for $ac_word... " >&6; }
3342 if test ${ac_cv_prog_CC+y}
3343 then :
3344 printf %s "(cached) " >&6
3345 else case e in #(
3346 e) if test -n "$CC"; then
3347 ac_cv_prog_CC="$CC" # Let the user override the test.
3348 else
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3351 do
3352 IFS=$as_save_IFS
3353 case $as_dir in #(((
3354 '') as_dir=./ ;;
3355 */) ;;
3356 *) as_dir=$as_dir/ ;;
3357 esac
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3360 ac_cv_prog_CC="${ac_tool_prefix}clang"
3361 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3362 break 2
3363 fi
3364 done
3365 done
3366 IFS=$as_save_IFS
3367
3368 fi ;;
3369 esac
3370 fi
3371 CC=$ac_cv_prog_CC
3372 if test -n "$CC"; then
3373 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3374 printf '%s\n' "$CC" >&6; }
3375 else
3376 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 printf '%s\n' "no" >&6; }
3378 fi
3379
3380
3381 fi
3382 if test -z "$ac_cv_prog_CC"; then
3383 ac_ct_CC=$CC
3384 # Extract the first word of "clang", so it can be a program name with args.
3385 set dummy clang; ac_word=$2
3386 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387 printf %s "checking for $ac_word... " >&6; }
3388 if test ${ac_cv_prog_ac_ct_CC+y}
3389 then :
3390 printf %s "(cached) " >&6
3391 else case e in #(
3392 e) if test -n "$ac_ct_CC"; then
3393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3394 else
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH
3397 do
3398 IFS=$as_save_IFS
3399 case $as_dir in #(((
3400 '') as_dir=./ ;;
3401 */) ;;
3402 *) as_dir=$as_dir/ ;;
3403 esac
3404 for ac_exec_ext in '' $ac_executable_extensions; do
3405 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3406 ac_cv_prog_ac_ct_CC="clang"
3407 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3408 break 2
3409 fi
3410 done
3411 done
3412 IFS=$as_save_IFS
3413
3414 fi ;;
3415 esac
3416 fi
3417 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3418 if test -n "$ac_ct_CC"; then
3419 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3420 printf '%s\n' "$ac_ct_CC" >&6; }
3421 else
3422 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423 printf '%s\n' "no" >&6; }
3424 fi
3425
3426 if test "x$ac_ct_CC" = x; then
3427 CC=""
3428 else
3429 case $cross_compiling:$ac_tool_warned in
3430 yes:)
3431 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3432 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3433 ac_tool_warned=yes ;;
3434 esac
3435 CC=$ac_ct_CC
3436 fi
3437 else
3438 CC="$ac_cv_prog_CC"
3439 fi
3440
3441 fi
3442
3443
3444 test -z "$CC" && { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3445 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3446 as_fn_error $? "no acceptable C compiler found in \$PATH
3447 See 'config.log' for more details" "$LINENO" 5; }
3448
3449 # Provide some information about the compiler.
3450 printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3451 set X $ac_compile
3452 ac_compiler=$2
3453 for ac_option in --version -v -V -qversion -version; do
3454 { { ac_try="$ac_compiler $ac_option >&5"
3455 case "(($ac_try" in
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3458 esac
3459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460 printf '%s\n' "$ac_try_echo"; } >&5
3461 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3462 ac_status=$?
3463 if test -s conftest.err; then
3464 sed '10a\
3465 ... rest of stderr output deleted ...
3466 10q' conftest.err >conftest.er1
3467 cat conftest.er1 >&5
3468 fi
3469 rm -f conftest.er1 conftest.err
3470 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471 test $ac_status = 0; }
3472 done
3473
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3476
3477 int
3478 main (void)
3479 {
3480
3481 ;
3482 return 0;
3483 }
3484 _ACEOF
3485 ac_clean_files_save=$ac_clean_files
3486 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3487 # Try to create an executable without -o first, disregard a.out.
3488 # It will help us diagnose broken compilers, and finding out an intuition
3489 # of exeext.
3490 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3491 printf %s "checking whether the C compiler works... " >&6; }
3492 ac_link_default=`printf '%s\n' "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3493
3494 # The possible output files:
3495 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3496
3497 ac_rmfiles=
3498 for ac_file in $ac_files
3499 do
3500 case $ac_file in
3501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3502 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3503 esac
3504 done
3505 rm -f $ac_rmfiles
3506
3507 if { { ac_try="$ac_link_default"
3508 case "(($ac_try" in
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3511 esac
3512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513 printf '%s\n' "$ac_try_echo"; } >&5
3514 (eval "$ac_link_default") 2>&5
3515 ac_status=$?
3516 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517 test $ac_status = 0; }
3518 then :
3519 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3520 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3521 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3522 # so that the user can short-circuit this test for compilers unknown to
3523 # Autoconf.
3524 for ac_file in $ac_files ''
3525 do
3526 test -f "$ac_file" || continue
3527 case $ac_file in
3528 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3529 ;;
3530 [ab].out )
3531 # We found the default executable, but exeext='' is most
3532 # certainly right.
3533 break;;
3534 *.* )
3535 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3536 then :; else
3537 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3538 fi
3539 # We set ac_cv_exeext here because the later test for it is not
3540 # safe: cross compilers may not add the suffix if given an '-o'
3541 # argument, so we may need to know it at that point already.
3542 # Even if this section looks crufty: it has the advantage of
3543 # actually working.
3544 break;;
3545 * )
3546 break;;
3547 esac
3548 done
3549 test "$ac_cv_exeext" = no && ac_cv_exeext=
3550
3551 else case e in #(
3552 e) ac_file='' ;;
3553 esac
3554 fi
3555 if test -z "$ac_file"
3556 then :
3557 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558 printf '%s\n' "no" >&6; }
3559 printf '%s\n' "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3561
3562 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3563 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3564 as_fn_error 77 "C compiler cannot create executables
3565 See 'config.log' for more details" "$LINENO" 5; }
3566 else case e in #(
3567 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3568 printf '%s\n' "yes" >&6; } ;;
3569 esac
3570 fi
3571 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3572 printf %s "checking for C compiler default output file name... " >&6; }
3573 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3574 printf '%s\n' "$ac_file" >&6; }
3575 ac_exeext=$ac_cv_exeext
3576
3577 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3578 ac_clean_files=$ac_clean_files_save
3579 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3580 printf %s "checking for suffix of executables... " >&6; }
3581 if { { ac_try="$ac_link"
3582 case "(($ac_try" in
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3585 esac
3586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3587 printf '%s\n' "$ac_try_echo"; } >&5
3588 (eval "$ac_link") 2>&5
3589 ac_status=$?
3590 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3591 test $ac_status = 0; }
3592 then :
3593 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3594 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3595 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3596 # 'rm'.
3597 for ac_file in conftest.exe conftest conftest.*; do
3598 test -f "$ac_file" || continue
3599 case $ac_file in
3600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3601 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3602 break;;
3603 * ) break;;
3604 esac
3605 done
3606 else case e in #(
3607 e) { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3608 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3609 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3610 See 'config.log' for more details" "$LINENO" 5; } ;;
3611 esac
3612 fi
3613 rm -f conftest conftest$ac_cv_exeext
3614 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3615 printf '%s\n' "$ac_cv_exeext" >&6; }
3616
3617 rm -f conftest.$ac_ext
3618 EXEEXT=$ac_cv_exeext
3619 ac_exeext=$EXEEXT
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3622 #include <stdio.h>
3623 int
3624 main (void)
3625 {
3626 FILE *f = fopen ("conftest.out", "w");
3627 if (!f)
3628 return 1;
3629 return ferror (f) || fclose (f) != 0;
3630
3631 ;
3632 return 0;
3633 }
3634 _ACEOF
3635 ac_clean_files="$ac_clean_files conftest.out"
3636 # Check that the compiler produces executables we can run. If not, either
3637 # the compiler is broken, or we cross compile.
3638 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3639 printf %s "checking whether we are cross compiling... " >&6; }
3640 if test "$cross_compiling" != yes; then
3641 { { ac_try="$ac_link"
3642 case "(($ac_try" in
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3645 esac
3646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3647 printf '%s\n' "$ac_try_echo"; } >&5
3648 (eval "$ac_link") 2>&5
3649 ac_status=$?
3650 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651 test $ac_status = 0; }
3652 if { ac_try='./conftest$ac_cv_exeext'
3653 { { case "(($ac_try" in
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3656 esac
3657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3658 printf '%s\n' "$ac_try_echo"; } >&5
3659 (eval "$ac_try") 2>&5
3660 ac_status=$?
3661 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3662 test $ac_status = 0; }; }; then
3663 cross_compiling=no
3664 else
3665 if test "$cross_compiling" = maybe; then
3666 cross_compiling=yes
3667 else
3668 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3669 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3670 as_fn_error 77 "cannot run C compiled programs.
3671 If you meant to cross compile, use '--host'.
3672 See 'config.log' for more details" "$LINENO" 5; }
3673 fi
3674 fi
3675 fi
3676 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3677 printf '%s\n' "$cross_compiling" >&6; }
3678
3679 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3680 conftest.o conftest.obj conftest.out
3681 ac_clean_files=$ac_clean_files_save
3682 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3683 printf %s "checking for suffix of object files... " >&6; }
3684 if test ${ac_cv_objext+y}
3685 then :
3686 printf %s "(cached) " >&6
3687 else case e in #(
3688 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689 /* end confdefs.h. */
3690
3691 int
3692 main (void)
3693 {
3694
3695 ;
3696 return 0;
3697 }
3698 _ACEOF
3699 rm -f conftest.o conftest.obj
3700 if { { ac_try="$ac_compile"
3701 case "(($ac_try" in
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3704 esac
3705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3706 printf '%s\n' "$ac_try_echo"; } >&5
3707 (eval "$ac_compile") 2>&5
3708 ac_status=$?
3709 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3710 test $ac_status = 0; }
3711 then :
3712 for ac_file in conftest.o conftest.obj conftest.*; do
3713 test -f "$ac_file" || continue;
3714 case $ac_file in
3715 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3716 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3717 break;;
3718 esac
3719 done
3720 else case e in #(
3721 e) printf '%s\n' "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3723
3724 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3725 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3726 as_fn_error $? "cannot compute suffix of object files: cannot compile
3727 See 'config.log' for more details" "$LINENO" 5; } ;;
3728 esac
3729 fi
3730 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3731 esac
3732 fi
3733 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3734 printf '%s\n' "$ac_cv_objext" >&6; }
3735 OBJEXT=$ac_cv_objext
3736 ac_objext=$OBJEXT
3737 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3738 printf %s "checking whether the compiler supports GNU C... " >&6; }
3739 if test ${ac_cv_c_compiler_gnu+y}
3740 then :
3741 printf %s "(cached) " >&6
3742 else case e in #(
3743 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3745
3746 int
3747 main (void)
3748 {
3749 #ifndef __GNUC__
3750 choke me
3751 #endif
3752
3753 ;
3754 return 0;
3755 }
3756 _ACEOF
3757 if ac_fn_c_try_compile "$LINENO"
3758 then :
3759 ac_compiler_gnu=yes
3760 else case e in #(
3761 e) ac_compiler_gnu=no ;;
3762 esac
3763 fi
3764 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3765 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3766 ;;
3767 esac
3768 fi
3769 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3770 printf '%s\n' "$ac_cv_c_compiler_gnu" >&6; }
3771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3772
3773 if test $ac_compiler_gnu = yes; then
3774 GCC=yes
3775 else
3776 GCC=
3777 fi
3778 ac_test_CFLAGS=${CFLAGS+y}
3779 ac_save_CFLAGS=$CFLAGS
3780 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3781 printf %s "checking whether $CC accepts -g... " >&6; }
3782 if test ${ac_cv_prog_cc_g+y}
3783 then :
3784 printf %s "(cached) " >&6
3785 else case e in #(
3786 e) ac_save_c_werror_flag=$ac_c_werror_flag
3787 ac_c_werror_flag=yes
3788 ac_cv_prog_cc_g=no
3789 CFLAGS="-g"
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h. */
3792
3793 int
3794 main (void)
3795 {
3796
3797 ;
3798 return 0;
3799 }
3800 _ACEOF
3801 if ac_fn_c_try_compile "$LINENO"
3802 then :
3803 ac_cv_prog_cc_g=yes
3804 else case e in #(
3805 e) CFLAGS=""
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h. */
3808
3809 int
3810 main (void)
3811 {
3812
3813 ;
3814 return 0;
3815 }
3816 _ACEOF
3817 if ac_fn_c_try_compile "$LINENO"
3818 then :
3819
3820 else case e in #(
3821 e) ac_c_werror_flag=$ac_save_c_werror_flag
3822 CFLAGS="-g"
3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h. */
3825
3826 int
3827 main (void)
3828 {
3829
3830 ;
3831 return 0;
3832 }
3833 _ACEOF
3834 if ac_fn_c_try_compile "$LINENO"
3835 then :
3836 ac_cv_prog_cc_g=yes
3837 fi
3838 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3839 esac
3840 fi
3841 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3842 esac
3843 fi
3844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3845 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3846 esac
3847 fi
3848 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3849 printf '%s\n' "$ac_cv_prog_cc_g" >&6; }
3850 if test $ac_test_CFLAGS; then
3851 CFLAGS=$ac_save_CFLAGS
3852 elif test $ac_cv_prog_cc_g = yes; then
3853 if test "$GCC" = yes; then
3854 CFLAGS="-g -O2"
3855 else
3856 CFLAGS="-g"
3857 fi
3858 else
3859 if test "$GCC" = yes; then
3860 CFLAGS="-O2"
3861 else
3862 CFLAGS=
3863 fi
3864 fi
3865 ac_prog_cc_stdc=no
3866 if test x$ac_prog_cc_stdc = xno
3867 then :
3868 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C23 features" >&5
3869 printf %s "checking for $CC option to enable C23 features... " >&6; }
3870 if test ${ac_cv_prog_cc_c23+y}
3871 then :
3872 printf %s "(cached) " >&6
3873 else case e in #(
3874 e) ac_cv_prog_cc_c23=no
3875 ac_save_CC=$CC
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3878 $ac_c_conftest_c23_program
3879 _ACEOF
3880 for ac_arg in '' -std=gnu23
3881 do
3882 CC="$ac_save_CC $ac_arg"
3883 if ac_fn_c_try_compile "$LINENO"
3884 then :
3885 ac_cv_prog_cc_c23=$ac_arg
3886 fi
3887 rm -f core conftest.err conftest.$ac_objext conftest.beam
3888 test "x$ac_cv_prog_cc_c23" != "xno" && break
3889 done
3890 rm -f conftest.$ac_ext
3891 CC=$ac_save_CC ;;
3892 esac
3893 fi
3894
3895 if test "x$ac_cv_prog_cc_c23" = xno
3896 then :
3897 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3898 printf '%s\n' "unsupported" >&6; }
3899 else case e in #(
3900 e) if test "x$ac_cv_prog_cc_c23" = x
3901 then :
3902 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3903 printf '%s\n' "none needed" >&6; }
3904 else case e in #(
3905 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c23" >&5
3906 printf '%s\n' "$ac_cv_prog_cc_c23" >&6; }
3907 CC="$CC $ac_cv_prog_cc_c23" ;;
3908 esac
3909 fi
3910 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c23
3911 ac_prog_cc_stdc=c23 ;;
3912 esac
3913 fi
3914 fi
3915 if test x$ac_prog_cc_stdc = xno
3916 then :
3917 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3918 printf %s "checking for $CC option to enable C11 features... " >&6; }
3919 if test ${ac_cv_prog_cc_c11+y}
3920 then :
3921 printf %s "(cached) " >&6
3922 else case e in #(
3923 e) ac_cv_prog_cc_c11=no
3924 ac_save_CC=$CC
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3927 $ac_c_conftest_c11_program
3928 _ACEOF
3929 for ac_arg in '' -std=gnu11 -std:c11
3930 do
3931 CC="$ac_save_CC $ac_arg"
3932 if ac_fn_c_try_compile "$LINENO"
3933 then :
3934 ac_cv_prog_cc_c11=$ac_arg
3935 fi
3936 rm -f core conftest.err conftest.$ac_objext conftest.beam
3937 test "x$ac_cv_prog_cc_c11" != "xno" && break
3938 done
3939 rm -f conftest.$ac_ext
3940 CC=$ac_save_CC ;;
3941 esac
3942 fi
3943
3944 if test "x$ac_cv_prog_cc_c11" = xno
3945 then :
3946 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3947 printf '%s\n' "unsupported" >&6; }
3948 else case e in #(
3949 e) if test "x$ac_cv_prog_cc_c11" = x
3950 then :
3951 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3952 printf '%s\n' "none needed" >&6; }
3953 else case e in #(
3954 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3955 printf '%s\n' "$ac_cv_prog_cc_c11" >&6; }
3956 CC="$CC $ac_cv_prog_cc_c11" ;;
3957 esac
3958 fi
3959 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3960 ac_prog_cc_stdc=c11 ;;
3961 esac
3962 fi
3963 fi
3964 if test x$ac_prog_cc_stdc = xno
3965 then :
3966 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3967 printf %s "checking for $CC option to enable C99 features... " >&6; }
3968 if test ${ac_cv_prog_cc_c99+y}
3969 then :
3970 printf %s "(cached) " >&6
3971 else case e in #(
3972 e) ac_cv_prog_cc_c99=no
3973 ac_save_CC=$CC
3974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h. */
3976 $ac_c_conftest_c99_program
3977 _ACEOF
3978 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3979 do
3980 CC="$ac_save_CC $ac_arg"
3981 if ac_fn_c_try_compile "$LINENO"
3982 then :
3983 ac_cv_prog_cc_c99=$ac_arg
3984 fi
3985 rm -f core conftest.err conftest.$ac_objext conftest.beam
3986 test "x$ac_cv_prog_cc_c99" != "xno" && break
3987 done
3988 rm -f conftest.$ac_ext
3989 CC=$ac_save_CC ;;
3990 esac
3991 fi
3992
3993 if test "x$ac_cv_prog_cc_c99" = xno
3994 then :
3995 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3996 printf '%s\n' "unsupported" >&6; }
3997 else case e in #(
3998 e) if test "x$ac_cv_prog_cc_c99" = x
3999 then :
4000 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4001 printf '%s\n' "none needed" >&6; }
4002 else case e in #(
4003 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4004 printf '%s\n' "$ac_cv_prog_cc_c99" >&6; }
4005 CC="$CC $ac_cv_prog_cc_c99" ;;
4006 esac
4007 fi
4008 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4009 ac_prog_cc_stdc=c99 ;;
4010 esac
4011 fi
4012 fi
4013 if test x$ac_prog_cc_stdc = xno
4014 then :
4015 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4016 printf %s "checking for $CC option to enable C89 features... " >&6; }
4017 if test ${ac_cv_prog_cc_c89+y}
4018 then :
4019 printf %s "(cached) " >&6
4020 else case e in #(
4021 e) ac_cv_prog_cc_c89=no
4022 ac_save_CC=$CC
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4025 $ac_c_conftest_c89_program
4026 _ACEOF
4027 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4028 do
4029 CC="$ac_save_CC $ac_arg"
4030 if ac_fn_c_try_compile "$LINENO"
4031 then :
4032 ac_cv_prog_cc_c89=$ac_arg
4033 fi
4034 rm -f core conftest.err conftest.$ac_objext conftest.beam
4035 test "x$ac_cv_prog_cc_c89" != "xno" && break
4036 done
4037 rm -f conftest.$ac_ext
4038 CC=$ac_save_CC ;;
4039 esac
4040 fi
4041
4042 if test "x$ac_cv_prog_cc_c89" = xno
4043 then :
4044 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4045 printf '%s\n' "unsupported" >&6; }
4046 else case e in #(
4047 e) if test "x$ac_cv_prog_cc_c89" = x
4048 then :
4049 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4050 printf '%s\n' "none needed" >&6; }
4051 else case e in #(
4052 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4053 printf '%s\n' "$ac_cv_prog_cc_c89" >&6; }
4054 CC="$CC $ac_cv_prog_cc_c89" ;;
4055 esac
4056 fi
4057 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4058 ac_prog_cc_stdc=c89 ;;
4059 esac
4060 fi
4061 fi
4062
4063 ac_ext=c
4064 ac_cpp='$CPP $CPPFLAGS'
4065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4068
4069
4070 ac_ext=c
4071 ac_cpp='$CPP $CPPFLAGS'
4072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4075 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4076 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4077 if test ${am_cv_prog_cc_c_o+y}
4078 then :
4079 printf %s "(cached) " >&6
4080 else case e in #(
4081 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h. */
4083
4084 int
4085 main (void)
4086 {
4087
4088 ;
4089 return 0;
4090 }
4091 _ACEOF
4092 # Make sure it works both with $CC and with simple cc.
4093 # Following AC_PROG_CC_C_O, we do the test twice because some
4094 # compilers refuse to overwrite an existing .o file with -o,
4095 # though they will create one.
4096 am_cv_prog_cc_c_o=yes
4097 for am_i in 1 2; do
4098 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4099 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4100 ac_status=$?
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); } \
4103 && test -f conftest2.$ac_objext; then
4104 : OK
4105 else
4106 am_cv_prog_cc_c_o=no
4107 break
4108 fi
4109 done
4110 # aligned with autoconf, so not including core; see bug#72225.
4111 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4112 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4113 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4114 unset am_i ;;
4115 esac
4116 fi
4117 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4118 printf '%s\n' "$am_cv_prog_cc_c_o" >&6; }
4119 if test "$am_cv_prog_cc_c_o" != yes; then
4120 # Losing compiler, so override with the script.
4121 # FIXME: It is wrong to rewrite CC.
4122 # But if we don't then we get into trouble of one sort or another.
4123 # A longer-term fix would be to have automake use am__CC in this case,
4124 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4125 CC="$am_aux_dir/compile $CC"
4126 fi
4127 ac_ext=c
4128 ac_cpp='$CPP $CPPFLAGS'
4129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4132
4133
4134
4135 ac_header= ac_cache=
4136 for ac_item in $ac_header_c_list
4137 do
4138 if test $ac_cache; then
4139 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4140 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4141 printf '%s\n' "#define $ac_item 1" >> confdefs.h
4142 fi
4143 ac_header= ac_cache=
4144 elif test $ac_header; then
4145 ac_cache=$ac_item
4146 else
4147 ac_header=$ac_item
4148 fi
4149 done
4150
4151
4152
4153
4154
4155
4156
4157
4158 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4159 then :
4160
4161 printf '%s\n' "#define STDC_HEADERS 1" >>confdefs.h
4162
4163 fi
4164
4165
4166
4167
4168
4169
4170 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4171 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4172 if test ${ac_cv_safe_to_define___extensions__+y}
4173 then :
4174 printf %s "(cached) " >&6
4175 else case e in #(
4176 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177 /* end confdefs.h. */
4178
4179 # define __EXTENSIONS__ 1
4180 $ac_includes_default
4181 int
4182 main (void)
4183 {
4184
4185 ;
4186 return 0;
4187 }
4188 _ACEOF
4189 if ac_fn_c_try_compile "$LINENO"
4190 then :
4191 ac_cv_safe_to_define___extensions__=yes
4192 else case e in #(
4193 e) ac_cv_safe_to_define___extensions__=no ;;
4194 esac
4195 fi
4196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4197 esac
4198 fi
4199 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4200 printf '%s\n' "$ac_cv_safe_to_define___extensions__" >&6; }
4201
4202 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4203 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4204 if test ${ac_cv_should_define__xopen_source+y}
4205 then :
4206 printf %s "(cached) " >&6
4207 else case e in #(
4208 e) ac_cv_should_define__xopen_source=no
4209 if test $ac_cv_header_wchar_h = yes
4210 then :
4211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212 /* end confdefs.h. */
4213
4214 #include <wchar.h>
4215 mbstate_t x;
4216 int
4217 main (void)
4218 {
4219
4220 ;
4221 return 0;
4222 }
4223 _ACEOF
4224 if ac_fn_c_try_compile "$LINENO"
4225 then :
4226
4227 else case e in #(
4228 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h. */
4230
4231 #define _XOPEN_SOURCE 500
4232 #include <wchar.h>
4233 mbstate_t x;
4234 int
4235 main (void)
4236 {
4237
4238 ;
4239 return 0;
4240 }
4241 _ACEOF
4242 if ac_fn_c_try_compile "$LINENO"
4243 then :
4244 ac_cv_should_define__xopen_source=yes
4245 fi
4246 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4247 esac
4248 fi
4249 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4250 fi ;;
4251 esac
4252 fi
4253 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4254 printf '%s\n' "$ac_cv_should_define__xopen_source" >&6; }
4255
4256 printf '%s\n' "#define _ALL_SOURCE 1" >>confdefs.h
4257
4258 printf '%s\n' "#define _COSMO_SOURCE 1" >>confdefs.h
4259
4260 printf '%s\n' "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4261
4262 printf '%s\n' "#define _GNU_SOURCE 1" >>confdefs.h
4263
4264 printf '%s\n' "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4265
4266 printf '%s\n' "#define _NETBSD_SOURCE 1" >>confdefs.h
4267
4268 printf '%s\n' "#define _OPENBSD_SOURCE 1" >>confdefs.h
4269
4270 printf '%s\n' "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4271
4272 printf '%s\n' "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4273
4274 printf '%s\n' "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4275
4276 printf '%s\n' "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4277
4278 printf '%s\n' "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4279
4280 printf '%s\n' "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4281
4282 printf '%s\n' "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4283
4284 printf '%s\n' "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4285
4286 printf '%s\n' "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4287
4288 printf '%s\n' "#define _TANDEM_SOURCE 1" >>confdefs.h
4289
4290 if test $ac_cv_header_minix_config_h = yes
4291 then :
4292 MINIX=yes
4293 printf '%s\n' "#define _MINIX 1" >>confdefs.h
4294
4295 printf '%s\n' "#define _POSIX_SOURCE 1" >>confdefs.h
4296
4297 printf '%s\n' "#define _POSIX_1_SOURCE 2" >>confdefs.h
4298
4299 else case e in #(
4300 e) MINIX= ;;
4301 esac
4302 fi
4303 if test $ac_cv_safe_to_define___extensions__ = yes
4304 then :
4305 printf '%s\n' "#define __EXTENSIONS__ 1" >>confdefs.h
4306
4307 fi
4308 if test $ac_cv_should_define__xopen_source = yes
4309 then :
4310 printf '%s\n' "#define _XOPEN_SOURCE 500" >>confdefs.h
4311
4312 fi
4313
4314 # Check whether --enable-largefile was given.
4315 if test ${enable_largefile+y}
4316 then :
4317 enableval=$enable_largefile;
4318 fi
4319 if test "$enable_largefile,$enable_year2038" != no,no
4320 then :
4321 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to support large files" >&5
4322 printf %s "checking for $CC option to support large files... " >&6; }
4323 if test ${ac_cv_sys_largefile_opts+y}
4324 then :
4325 printf %s "(cached) " >&6
4326 else case e in #(
4327 e) ac_save_CPPFLAGS=$CPPFLAGS
4328 ac_opt_found=no
4329 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1"; do
4330 if test x"$ac_opt" != x"none needed"
4331 then :
4332 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
4333 fi
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4336 #include <sys/types.h>
4337 #ifndef FTYPE
4338 # define FTYPE off_t
4339 #endif
4340 /* Check that FTYPE can represent 2**63 - 1 correctly.
4341 We can't simply define LARGE_FTYPE to be 9223372036854775807,
4342 since some C++ compilers masquerading as C compilers
4343 incorrectly reject 9223372036854775807. */
4344 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
4345 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
4346 && LARGE_FTYPE % 2147483647 == 1)
4347 ? 1 : -1];
4348 int
4349 main (void)
4350 {
4351
4352 ;
4353 return 0;
4354 }
4355 _ACEOF
4356 if ac_fn_c_try_compile "$LINENO"
4357 then :
4358 if test x"$ac_opt" = x"none needed"
4359 then :
4360 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
4361 CPPFLAGS="$CPPFLAGS -DFTYPE=ino_t"
4362 if ac_fn_c_try_compile "$LINENO"
4363 then :
4364
4365 else case e in #(
4366 e) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
4367 if ac_fn_c_try_compile "$LINENO"
4368 then :
4369 ac_opt='-D_FILE_OFFSET_BITS=64'
4370 fi
4371 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
4372 esac
4373 fi
4374 rm -f core conftest.err conftest.$ac_objext conftest.beam
4375 fi
4376 ac_cv_sys_largefile_opts=$ac_opt
4377 ac_opt_found=yes
4378 fi
4379 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4380 test $ac_opt_found = no || break
4381 done
4382 CPPFLAGS=$ac_save_CPPFLAGS
4383
4384 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
4385 esac
4386 fi
4387 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
4388 printf '%s\n' "$ac_cv_sys_largefile_opts" >&6; }
4389
4390 ac_have_largefile=yes
4391 case $ac_cv_sys_largefile_opts in #(
4392 "none needed") :
4393 ;; #(
4394 "supported through gnulib") :
4395 ;; #(
4396 "support not detected") :
4397 ac_have_largefile=no ;; #(
4398 "-D_FILE_OFFSET_BITS=64") :
4399
4400 printf '%s\n' "#define _FILE_OFFSET_BITS 64" >>confdefs.h
4401 ;; #(
4402 "-D_LARGE_FILES=1") :
4403
4404 printf '%s\n' "#define _LARGE_FILES 1" >>confdefs.h
4405 ;; #(
4406 *) :
4407 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
4408 esac
4409
4410 if test "$enable_year2038" != no
4411 then :
4412 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to support timestamps after 2038" >&5
4413 printf %s "checking for $CC option to support timestamps after 2038... " >&6; }
4414 if test ${ac_cv_sys_year2038_opts+y}
4415 then :
4416 printf %s "(cached) " >&6
4417 else case e in #(
4418 e) ac_save_CPPFLAGS="$CPPFLAGS"
4419 ac_opt_found=no
4420 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
4421 if test x"$ac_opt" != x"none needed"
4422 then :
4423 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
4424 fi
4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h. */
4427
4428 #include <time.h>
4429 /* Check that time_t can represent 2**32 - 1 correctly. */
4430 #define LARGE_TIME_T \\
4431 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
4432 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
4433 && LARGE_TIME_T % 65537 == 0)
4434 ? 1 : -1];
4435
4436 int
4437 main (void)
4438 {
4439
4440 ;
4441 return 0;
4442 }
4443 _ACEOF
4444 if ac_fn_c_try_compile "$LINENO"
4445 then :
4446 ac_cv_sys_year2038_opts="$ac_opt"
4447 ac_opt_found=yes
4448 fi
4449 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4450 test $ac_opt_found = no || break
4451 done
4452 CPPFLAGS="$ac_save_CPPFLAGS"
4453 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
4454 esac
4455 fi
4456 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
4457 printf '%s\n' "$ac_cv_sys_year2038_opts" >&6; }
4458
4459 ac_have_year2038=yes
4460 case $ac_cv_sys_year2038_opts in #(
4461 "none needed") :
4462 ;; #(
4463 "support not detected") :
4464 ac_have_year2038=no ;; #(
4465 "-D_TIME_BITS=64") :
4466
4467 printf '%s\n' "#define _TIME_BITS 64" >>confdefs.h
4468 ;; #(
4469 "-D__MINGW_USE_VC2005_COMPAT") :
4470
4471 printf '%s\n' "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
4472 ;; #(
4473 "-U_USE_32_BIT_TIME_T"*) :
4474 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4475 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4476 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
4477 will stop working after mid-January 2038. Remove
4478 _USE_32BIT_TIME_T from the compiler flags.
4479 See 'config.log' for more details" "$LINENO" 5; } ;; #(
4480 *) :
4481 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
4482 esac
4483
4484 fi
4485
4486 fi
4487 am__api_version='1.18'
4488
4489
4490 # Find a good install program. We prefer a C program (faster),
4491 # so one script is as good as another. But avoid the broken or
4492 # incompatible versions:
4493 # SysV /etc/install, /usr/sbin/install
4494 # SunOS /usr/etc/install
4495 # IRIX /sbin/install
4496 # AIX /bin/install
4497 # AmigaOS /C/install, which installs bootblocks on floppy discs
4498 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4499 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4500 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4501 # OS/2's system install, which has a completely different semantic
4502 # ./install, which can be erroneously created by make from ./install.sh.
4503 # Reject install programs that cannot install multiple files.
4504 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4505 printf %s "checking for a BSD-compatible install... " >&6; }
4506 if test -z "$INSTALL"; then
4507 if test ${ac_cv_path_install+y}
4508 then :
4509 printf %s "(cached) " >&6
4510 else case e in #(
4511 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH
4513 do
4514 IFS=$as_save_IFS
4515 case $as_dir in #(((
4516 '') as_dir=./ ;;
4517 */) ;;
4518 *) as_dir=$as_dir/ ;;
4519 esac
4520 # Account for fact that we put trailing slashes in our PATH walk.
4521 case $as_dir in #((
4522 ./ | /[cC]/* | \
4523 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4524 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4525 /usr/ucb/* ) ;;
4526 *)
4527 # OSF/1 and SCO ODT 3.0 have their own names for install.
4528 # Don't use installbsd from OSF/1 since it installs stuff as root
4529 # by default.
4530 for ac_prog in ginstall scoinst install; do
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4533 if test $ac_prog = install &&
4534 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4535 # AIX install. It has an incompatible calling convention.
4536 :
4537 elif test $ac_prog = install &&
4538 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4539 # program-specific install script used by HP pwplus--don't use.
4540 :
4541 else
4542 rm -rf conftest.one conftest.two conftest.dir
4543 echo one > conftest.one
4544 echo two > conftest.two
4545 mkdir conftest.dir
4546 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4547 test -s conftest.one && test -s conftest.two &&
4548 test -s conftest.dir/conftest.one &&
4549 test -s conftest.dir/conftest.two
4550 then
4551 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4552 break 3
4553 fi
4554 fi
4555 fi
4556 done
4557 done
4558 ;;
4559 esac
4560
4561 done
4562 IFS=$as_save_IFS
4563
4564 rm -rf conftest.one conftest.two conftest.dir
4565 ;;
4566 esac
4567 fi
4568 if test ${ac_cv_path_install+y}; then
4569 INSTALL=$ac_cv_path_install
4570 else
4571 # As a last resort, use the slow shell script. Don't cache a
4572 # value for INSTALL within a source directory, because that will
4573 # break other packages using the cache if that directory is
4574 # removed, or if the value is a relative name.
4575 INSTALL=$ac_install_sh
4576 fi
4577 fi
4578 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4579 printf '%s\n' "$INSTALL" >&6; }
4580
4581 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4582 # It thinks the first close brace ends the variable substitution.
4583 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4584
4585 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4586
4587 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4588
4589 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
4590 printf %s "checking whether sleep supports fractional seconds... " >&6; }
4591 if test ${am_cv_sleep_fractional_seconds+y}
4592 then :
4593 printf %s "(cached) " >&6
4594 else case e in #(
4595 e) if sleep 0.001 2>/dev/null
4596 then :
4597 am_cv_sleep_fractional_seconds=yes
4598 else case e in #(
4599 e) am_cv_sleep_fractional_seconds=no ;;
4600 esac
4601 fi
4602 ;;
4603 esac
4604 fi
4605 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
4606 printf '%s\n' "$am_cv_sleep_fractional_seconds" >&6; }
4607
4608 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
4609 printf %s "checking filesystem timestamp resolution... " >&6; }
4610 if test ${am_cv_filesystem_timestamp_resolution+y}
4611 then :
4612 printf %s "(cached) " >&6
4613 else case e in #(
4614 e) # Default to the worst case.
4615 am_cv_filesystem_timestamp_resolution=2
4616
4617 # Only try to go finer than 1 sec if sleep can do it.
4618 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
4619 # - 1 sec is not much of a win compared to 2 sec, and
4620 # - it takes 2 seconds to perform the test whether 1 sec works.
4621 #
4622 # Instead, just use the default 2s on platforms that have 1s resolution,
4623 # accept the extra 1s delay when using $sleep in the Automake tests, in
4624 # exchange for not incurring the 2s delay for running the test for all
4625 # packages.
4626 #
4627 am_try_resolutions=
4628 if test "$am_cv_sleep_fractional_seconds" = yes; then
4629 # Even a millisecond often causes a bunch of false positives,
4630 # so just try a hundredth of a second. The time saved between .001 and
4631 # .01 is not terribly consequential.
4632 am_try_resolutions="0.01 0.1 $am_try_resolutions"
4633 fi
4634
4635 # In order to catch current-generation FAT out, we must *modify* files
4636 # that already exist; the *creation* timestamp is finer. Use names
4637 # that make ls -t sort them differently when they have equal
4638 # timestamps than when they have distinct timestamps, keeping
4639 # in mind that ls -t prints the *newest* file first.
4640 rm -f conftest.ts?
4641 : > conftest.ts1
4642 : > conftest.ts2
4643 : > conftest.ts3
4644
4645 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
4646 # clobber the current shell's arguments. (Outer-level square brackets
4647 # are removed by m4; they're present so that m4 does not expand
4648 # <dollar><star>; be careful, easy to get confused.)
4649 if (
4650 set X `ls -t conftest.ts[12]` &&
4651 {
4652 test "$*" != "X conftest.ts1 conftest.ts2" ||
4653 test "$*" != "X conftest.ts2 conftest.ts1";
4654 }
4655 ); then :; else
4656 # If neither matched, then we have a broken ls. This can happen
4657 # if, for instance, CONFIG_SHELL is bash and it inherits a
4658 # broken ls alias from the environment. This has actually
4659 # happened. Such a system could not be considered "sane".
4660 printf '%s\n' ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4661 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4662 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4663 as_fn_error $? "ls -t produces unexpected output.
4664 Make sure there is not a broken ls alias in your environment.
4665 See 'config.log' for more details" "$LINENO" 5; }
4666 fi
4667
4668 for am_try_res in $am_try_resolutions; do
4669 # Any one fine-grained sleep might happen to cross the boundary
4670 # between two values of a coarser actual resolution, but if we do
4671 # two fine-grained sleeps in a row, at least one of them will fall
4672 # entirely within a coarse interval.
4673 echo alpha > conftest.ts1
4674 sleep $am_try_res
4675 echo beta > conftest.ts2
4676 sleep $am_try_res
4677 echo gamma > conftest.ts3
4678
4679 # We assume that 'ls -t' will make use of high-resolution
4680 # timestamps if the operating system supports them at all.
4681 if (set X `ls -t conftest.ts?` &&
4682 test "$2" = conftest.ts3 &&
4683 test "$3" = conftest.ts2 &&
4684 test "$4" = conftest.ts1); then
4685 #
4686 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4687 # because we don't need to test make.
4688 make_ok=true
4689 if test $am_try_res != 1; then
4690 # But if we've succeeded so far with a subsecond resolution, we
4691 # have one more thing to check: make. It can happen that
4692 # everything else supports the subsecond mtimes, but make doesn't;
4693 # notably on macOS, which ships make 3.81 from 2006 (the last one
4694 # released under GPLv2). https://bugs.gnu.org/68808
4695 #
4696 # We test $MAKE if it is defined in the environment, else "make".
4697 # It might get overridden later, but our hope is that in practice
4698 # it does not matter: it is the system "make" which is (by far)
4699 # the most likely to be broken, whereas if the user overrides it,
4700 # probably they did so with a better, or at least not worse, make.
4701 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4702 #
4703 # Create a Makefile (real tab character here):
4704 rm -f conftest.mk
4705 echo 'conftest.ts1: conftest.ts2' >conftest.mk
4706 echo ' touch conftest.ts2' >>conftest.mk
4707 #
4708 # Now, running
4709 # touch conftest.ts1; touch conftest.ts2; make
4710 # should touch ts1 because ts2 is newer. This could happen by luck,
4711 # but most often, it will fail if make's support is insufficient. So
4712 # test for several consecutive successes.
4713 #
4714 # (We reuse conftest.ts[12] because we still want to modify existing
4715 # files, not create new ones, per above.)
4716 n=0
4717 make=${MAKE-make}
4718 until test $n -eq 3; do
4719 echo one > conftest.ts1
4720 sleep $am_try_res
4721 echo two > conftest.ts2 # ts2 should now be newer than ts1
4722 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4723 make_ok=false
4724 break # out of $n loop
4725 fi
4726 n=`expr $n + 1`
4727 done
4728 fi
4729 #
4730 if $make_ok; then
4731 # Everything we know to check worked out, so call this resolution good.
4732 am_cv_filesystem_timestamp_resolution=$am_try_res
4733 break # out of $am_try_res loop
4734 fi
4735 # Otherwise, we'll go on to check the next resolution.
4736 fi
4737 done
4738 rm -f conftest.ts?
4739 # (end _am_filesystem_timestamp_resolution)
4740 ;;
4741 esac
4742 fi
4743 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4744 printf '%s\n' "$am_cv_filesystem_timestamp_resolution" >&6; }
4745
4746 # This check should not be cached, as it may vary across builds of
4747 # different projects.
4748 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4749 printf %s "checking whether build environment is sane... " >&6; }
4750 # Reject unsafe characters in $srcdir or the absolute working directory
4751 # name. Accept space and tab only in the latter.
4752 am_lf='
4753 '
4754 case `pwd` in
4755 *[\\\"\#\$\&\'\`$am_lf]*)
4756 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 printf '%s\n' "no" >&6; }
4758 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4759 esac
4760 case $srcdir in
4761 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4762 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763 printf '%s\n' "no" >&6; }
4764 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4765 esac
4766
4767 # Do 'set' in a subshell so we don't clobber the current shell's
4768 # arguments. Must try -L first in case configure is actually a
4769 # symlink; some systems play weird games with the mod time of symlinks
4770 # (eg FreeBSD returns the mod time of the symlink's containing
4771 # directory).
4772 am_build_env_is_sane=no
4773 am_has_slept=no
4774 rm -f conftest.file
4775 for am_try in 1 2; do
4776 echo "timestamp, slept: $am_has_slept" > conftest.file
4777 if (
4778 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4779 if test "$*" = "X"; then
4780 # -L didn't work.
4781 set X `ls -t "$srcdir/configure" conftest.file`
4782 fi
4783 test "$2" = conftest.file
4784 ); then
4785 am_build_env_is_sane=yes
4786 break
4787 fi
4788 # Just in case.
4789 sleep "$am_cv_filesystem_timestamp_resolution"
4790 am_has_slept=yes
4791 done
4792
4793 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4794 printf '%s\n' "$am_build_env_is_sane" >&6; }
4795 if test "$am_build_env_is_sane" = no; then
4796 as_fn_error $? "newly created file is older than distributed files!
4797 Check your system clock" "$LINENO" 5
4798 fi
4799
4800 # If we didn't sleep, we still need to ensure time stamps of config.status and
4801 # generated files are strictly newer.
4802 am_sleep_pid=
4803 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4804 then :
4805
4806 else case e in #(
4807 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4808 am_sleep_pid=$!
4809 ;;
4810 esac
4811 fi
4812
4813 rm -f conftest.file
4814
4815 test "$program_prefix" != NONE &&
4816 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4817 # Use a double $ so make ignores it.
4818 test "$program_suffix" != NONE &&
4819 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4820 # Double any \ or $.
4821 # By default was 's,x,x', remove it if useless.
4822 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4823 program_transform_name=`printf '%s\n' "$program_transform_name" | sed "$ac_script"`
4824
4825
4826 if test x"${MISSING+set}" != xset; then
4827 MISSING="\${SHELL} '$am_aux_dir/missing'"
4828 fi
4829 # Use eval to expand $SHELL
4830 if eval "$MISSING --is-lightweight"; then
4831 am_missing_run="$MISSING "
4832 else
4833 am_missing_run=
4834 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4835 printf '%s\n' "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4836 fi
4837
4838 if test x"${install_sh+set}" != xset; then
4839 case $am_aux_dir in
4840 *\ * | *\ *)
4841 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4842 *)
4843 install_sh="\${SHELL} $am_aux_dir/install-sh"
4844 esac
4845 fi
4846
4847 # Installed binaries are usually stripped using 'strip' when the user
4848 # run "make install-strip". However 'strip' might not be the right
4849 # tool to use in cross-compilation environments, therefore Automake
4850 # will honor the 'STRIP' environment variable to overrule this program.
4851 if test "$cross_compiling" != no; then
4852 if test -n "$ac_tool_prefix"; then
4853 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4854 set dummy ${ac_tool_prefix}strip; ac_word=$2
4855 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856 printf %s "checking for $ac_word... " >&6; }
4857 if test ${ac_cv_prog_STRIP+y}
4858 then :
4859 printf %s "(cached) " >&6
4860 else case e in #(
4861 e) if test -n "$STRIP"; then
4862 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4863 else
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4866 do
4867 IFS=$as_save_IFS
4868 case $as_dir in #(((
4869 '') as_dir=./ ;;
4870 */) ;;
4871 *) as_dir=$as_dir/ ;;
4872 esac
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4875 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4876 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4877 break 2
4878 fi
4879 done
4880 done
4881 IFS=$as_save_IFS
4882
4883 fi ;;
4884 esac
4885 fi
4886 STRIP=$ac_cv_prog_STRIP
4887 if test -n "$STRIP"; then
4888 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4889 printf '%s\n' "$STRIP" >&6; }
4890 else
4891 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 printf '%s\n' "no" >&6; }
4893 fi
4894
4895
4896 fi
4897 if test -z "$ac_cv_prog_STRIP"; then
4898 ac_ct_STRIP=$STRIP
4899 # Extract the first word of "strip", so it can be a program name with args.
4900 set dummy strip; ac_word=$2
4901 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4902 printf %s "checking for $ac_word... " >&6; }
4903 if test ${ac_cv_prog_ac_ct_STRIP+y}
4904 then :
4905 printf %s "(cached) " >&6
4906 else case e in #(
4907 e) if test -n "$ac_ct_STRIP"; then
4908 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4909 else
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4912 do
4913 IFS=$as_save_IFS
4914 case $as_dir in #(((
4915 '') as_dir=./ ;;
4916 */) ;;
4917 *) as_dir=$as_dir/ ;;
4918 esac
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4921 ac_cv_prog_ac_ct_STRIP="strip"
4922 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4923 break 2
4924 fi
4925 done
4926 done
4927 IFS=$as_save_IFS
4928
4929 fi ;;
4930 esac
4931 fi
4932 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4933 if test -n "$ac_ct_STRIP"; then
4934 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4935 printf '%s\n' "$ac_ct_STRIP" >&6; }
4936 else
4937 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938 printf '%s\n' "no" >&6; }
4939 fi
4940
4941 if test "x$ac_ct_STRIP" = x; then
4942 STRIP=":"
4943 else
4944 case $cross_compiling:$ac_tool_warned in
4945 yes:)
4946 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4947 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4948 ac_tool_warned=yes ;;
4949 esac
4950 STRIP=$ac_ct_STRIP
4951 fi
4952 else
4953 STRIP="$ac_cv_prog_STRIP"
4954 fi
4955
4956 fi
4957 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4958
4959
4960 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4961 printf %s "checking for a race-free mkdir -p... " >&6; }
4962 if test -z "$MKDIR_P"; then
4963 if test ${ac_cv_path_mkdir+y}
4964 then :
4965 printf %s "(cached) " >&6
4966 else case e in #(
4967 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4969 do
4970 IFS=$as_save_IFS
4971 case $as_dir in #(((
4972 '') as_dir=./ ;;
4973 */) ;;
4974 *) as_dir=$as_dir/ ;;
4975 esac
4976 for ac_prog in mkdir gmkdir; do
4977 for ac_exec_ext in '' $ac_executable_extensions; do
4978 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4979 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4980 'mkdir ('*'coreutils) '* | \
4981 *'BusyBox '* | \
4982 'mkdir (fileutils) '4.1*)
4983 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4984 break 3;;
4985 esac
4986 done
4987 done
4988 done
4989 IFS=$as_save_IFS
4990 ;;
4991 esac
4992 fi
4993
4994 test -d ./--version && rmdir ./--version
4995 if test ${ac_cv_path_mkdir+y}; then
4996 MKDIR_P="$ac_cv_path_mkdir -p"
4997 else
4998 # As a last resort, use plain mkdir -p,
4999 # in the hope it doesn't have the bugs of ancient mkdir.
5000 MKDIR_P='mkdir -p'
5001 fi
5002 fi
5003 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5004 printf '%s\n' "$MKDIR_P" >&6; }
5005
5006 for ac_prog in gawk mawk nawk awk 'busybox awk'
5007 do
5008 # Extract the first word of "$ac_prog", so it can be a program name with args.
5009 set dummy $ac_prog; ac_word=$2
5010 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5011 printf %s "checking for $ac_word... " >&6; }
5012 if test ${ac_cv_prog_AWK+y}
5013 then :
5014 printf %s "(cached) " >&6
5015 else case e in #(
5016 e) if test -n "$AWK"; then
5017 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5018 else
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5021 do
5022 IFS=$as_save_IFS
5023 case $as_dir in #(((
5024 '') as_dir=./ ;;
5025 */) ;;
5026 *) as_dir=$as_dir/ ;;
5027 esac
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5030 ac_cv_prog_AWK="$ac_prog"
5031 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5032 break 2
5033 fi
5034 done
5035 done
5036 IFS=$as_save_IFS
5037
5038 fi ;;
5039 esac
5040 fi
5041 AWK=$ac_cv_prog_AWK
5042 if test -n "$AWK"; then
5043 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5044 printf '%s\n' "$AWK" >&6; }
5045 else
5046 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5047 printf '%s\n' "no" >&6; }
5048 fi
5049
5050
5051 test -n "$AWK" && break
5052 done
5053
5054 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5055 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5056 set x ${MAKE-make}
5057 ac_make=`printf '%s\n' "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5058 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5059 then :
5060 printf %s "(cached) " >&6
5061 else case e in #(
5062 e) cat >conftest.make <<\_ACEOF
5063 SHELL = /bin/sh
5064 all:
5065 @printf '%s\n' '@@@%%%=$(MAKE)=@@@%%%'
5066 _ACEOF
5067 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5068 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5069 *@@@%%%=?*=@@@%%%*)
5070 eval ac_cv_prog_make_${ac_make}_set=yes;;
5071 *)
5072 eval ac_cv_prog_make_${ac_make}_set=no;;
5073 esac
5074 rm -f conftest.make ;;
5075 esac
5076 fi
5077 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5078 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5079 printf '%s\n' "yes" >&6; }
5080 SET_MAKE=
5081 else
5082 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 printf '%s\n' "no" >&6; }
5084 SET_MAKE="MAKE=${MAKE-make}"
5085 fi
5086
5087 rm -rf .tst 2>/dev/null
5088 mkdir .tst 2>/dev/null
5089 if test -d .tst; then
5090 am__leading_dot=.
5091 else
5092 am__leading_dot=_
5093 fi
5094 rmdir .tst 2>/dev/null
5095
5096 DEPDIR="${am__leading_dot}deps"
5097
5098 ac_config_commands="$ac_config_commands depfiles"
5099
5100 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5101 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5102 cat > confinc.mk << 'END'
5103 am__doit:
5104 @echo this is the am__doit target >confinc.out
5105 .PHONY: am__doit
5106 END
5107 am__include="#"
5108 am__quote=
5109 # BSD make does it like this.
5110 echo '.include "confinc.mk" # ignored' > confmf.BSD
5111 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5112 echo 'include confinc.mk # ignored' > confmf.GNU
5113 _am_result=no
5114 for s in GNU BSD; do
5115 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5116 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5117 ac_status=$?
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); }
5120 case $?:`cat confinc.out 2>/dev/null` in #(
5121 '0:this is the am__doit target') :
5122 case $s in #(
5123 BSD) :
5124 am__include='.include' am__quote='"' ;; #(
5125 *) :
5126 am__include='include' am__quote='' ;;
5127 esac ;; #(
5128 *) :
5129 ;;
5130 esac
5131 if test "$am__include" != "#"; then
5132 _am_result="yes ($s style)"
5133 break
5134 fi
5135 done
5136 rm -f confinc.* confmf.*
5137 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5138 printf '%s\n' "${_am_result}" >&6; }
5139
5140 # Check whether --enable-dependency-tracking was given.
5141 if test ${enable_dependency_tracking+y}
5142 then :
5143 enableval=$enable_dependency_tracking;
5144 fi
5145
5146 if test "x$enable_dependency_tracking" != xno; then
5147 am_depcomp="$ac_aux_dir/depcomp"
5148 AMDEPBACKSLASH='\'
5149 am__nodep='_no'
5150 fi
5151 if test "x$enable_dependency_tracking" != xno; then
5152 AMDEP_TRUE=
5153 AMDEP_FALSE='#'
5154 else
5155 AMDEP_TRUE='#'
5156 AMDEP_FALSE=
5157 fi
5158
5159
5160 AM_DEFAULT_VERBOSITY=1
5161 # Check whether --enable-silent-rules was given.
5162 if test ${enable_silent_rules+y}
5163 then :
5164 enableval=$enable_silent_rules;
5165 fi
5166
5167 am_make=${MAKE-make}
5168 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5169 printf %s "checking whether $am_make supports nested variables... " >&6; }
5170 if test ${am_cv_make_support_nested_variables+y}
5171 then :
5172 printf %s "(cached) " >&6
5173 else case e in #(
5174 e) if printf '%s\n' 'TRUE=$(BAR$(V))
5175 BAR0=false
5176 BAR1=true
5177 V=1
5178 am__doit:
5179 @$(TRUE)
5180 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5181 am_cv_make_support_nested_variables=yes
5182 else
5183 am_cv_make_support_nested_variables=no
5184 fi ;;
5185 esac
5186 fi
5187 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5188 printf '%s\n' "$am_cv_make_support_nested_variables" >&6; }
5189 AM_BACKSLASH='\'
5190
5191 am__rm_f_notfound=
5192 if (rm -f && rm -fr && rm -rf) 2>/dev/null
5193 then :
5194
5195 else case e in #(
5196 e) am__rm_f_notfound='""' ;;
5197 esac
5198 fi
5199
5200
5201 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
5202 printf %s "checking xargs -n works... " >&6; }
5203 if test ${am_cv_xargs_n_works+y}
5204 then :
5205 printf %s "(cached) " >&6
5206 else case e in #(
5207 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
5208 3"
5209 then :
5210 am_cv_xargs_n_works=yes
5211 else case e in #(
5212 e) am_cv_xargs_n_works=no ;;
5213 esac
5214 fi ;;
5215 esac
5216 fi
5217 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
5218 printf '%s\n' "$am_cv_xargs_n_works" >&6; }
5219 if test "$am_cv_xargs_n_works" = yes
5220 then :
5221 am__xargs_n='xargs -n'
5222 else case e in #(
5223 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
5224 ;;
5225 esac
5226 fi
5227
5228 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5229 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5230 # is not polluted with repeated "-I."
5231 am__isrc=' -I$(srcdir)'
5232 # test to see if srcdir already configured
5233 if test -f $srcdir/config.status; then
5234 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5235 fi
5236 fi
5237
5238 # test whether we have cygpath
5239 if test -z "$CYGPATH_W"; then
5240 if (cygpath --version) >/dev/null 2>/dev/null; then
5241 CYGPATH_W='cygpath -w'
5242 else
5243 CYGPATH_W=echo
5244 fi
5245 fi
5246
5247
5248 # Define the identity of the package.
5249 PACKAGE='msmtp'
5250 VERSION='1.8.33'
5251
5252
5253 printf '%s\n' "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
5254
5255
5256 printf '%s\n' "#define VERSION \"$VERSION\"" >>confdefs.h
5257
5258 # Some tools Automake needs.
5259
5260 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5261
5262
5263 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5264
5265
5266 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5267
5268
5269 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5270
5271
5272 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5273
5274 # For better backward compatibility. To be removed once Automake 1.9.x
5275 # dies out for good. For more background, see:
5276 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5277 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5278 mkdir_p='$(MKDIR_P)'
5279
5280 # We need awk for the "check" target (and possibly the TAP driver). The
5281 # system "awk" is bad on some platforms.
5282 # Always define AMTAR for backward compatibility. Yes, it's still used
5283 # in the wild :-( We should find a proper way to deprecate it ...
5284 AMTAR='$${TAR-tar}'
5285
5286
5287 # We'll loop over all known methods to create a tar archive until one works.
5288 _am_tools='gnutar plaintar pax cpio none'
5289
5290 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
5291 # There is notably a 21 bits limit for the UID and the GID. In fact,
5292 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
5293 # and bug#13588).
5294 am_max_uid=2097151 # 2^21 - 1
5295 am_max_gid=$am_max_uid
5296 # The $UID and $GID variables are not portable, so we need to resort
5297 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
5298 # below are definitely unexpected, so allow the users to see them
5299 # (that is, avoid stderr redirection).
5300 am_uid=`id -u || echo unknown`
5301 am_gid=`id -g || echo unknown`
5302 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
5303 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
5304 if test x$am_uid = xunknown; then
5305 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
5306 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
5307 elif test $am_uid -le $am_max_uid; then
5308 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5309 printf '%s\n' "yes" >&6; }
5310 else
5311 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312 printf '%s\n' "no" >&6; }
5313 _am_tools=none
5314 fi
5315 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
5316 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
5317 if test x$gm_gid = xunknown; then
5318 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
5319 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
5320 elif test $am_gid -le $am_max_gid; then
5321 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5322 printf '%s\n' "yes" >&6; }
5323 else
5324 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325 printf '%s\n' "no" >&6; }
5326 _am_tools=none
5327 fi
5328
5329 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
5330 printf %s "checking how to create a ustar tar archive... " >&6; }
5331
5332 # Go ahead even if we have the value already cached. We do so because we
5333 # need to set the values for the 'am__tar' and 'am__untar' variables.
5334 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
5335
5336 for _am_tool in $_am_tools; do
5337 case $_am_tool in
5338 gnutar)
5339 for _am_tar in tar gnutar gtar; do
5340 { echo "$as_me:$LINENO: $_am_tar --version" >&5
5341 ($_am_tar --version) >&5 2>&5
5342 ac_status=$?
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } && break
5345 done
5346 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
5347 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
5348 am__untar="$_am_tar -xf -"
5349 ;;
5350 plaintar)
5351 # Must skip GNU tar: if it does not support --format= it doesn't create
5352 # ustar tarball either.
5353 (tar --version) >/dev/null 2>&1 && continue
5354 am__tar='tar chf - "$$tardir"'
5355 am__tar_='tar chf - "$tardir"'
5356 am__untar='tar xf -'
5357 ;;
5358 pax)
5359 am__tar='pax -L -x ustar -w "$$tardir"'
5360 am__tar_='pax -L -x ustar -w "$tardir"'
5361 am__untar='pax -r'
5362 ;;
5363 cpio)
5364 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
5365 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
5366 am__untar='cpio -i -H ustar -d'
5367 ;;
5368 none)
5369 am__tar=false
5370 am__tar_=false
5371 am__untar=false
5372 ;;
5373 esac
5374
5375 # If the value was cached, stop now. We just wanted to have am__tar
5376 # and am__untar set.
5377 test -n "${am_cv_prog_tar_ustar}" && break
5378
5379 # tar/untar a dummy directory, and stop if the command works.
5380 rm -rf conftest.dir
5381 mkdir conftest.dir
5382 echo GrepMe > conftest.dir/file
5383 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
5384 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
5385 ac_status=$?
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }
5388 rm -rf conftest.dir
5389 if test -s conftest.tar; then
5390 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
5391 ($am__untar <conftest.tar) >&5 2>&5
5392 ac_status=$?
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }
5395 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
5396 (cat conftest.dir/file) >&5 2>&5
5397 ac_status=$?
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }
5400 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
5401 fi
5402 done
5403 rm -rf conftest.dir
5404
5405 if test ${am_cv_prog_tar_ustar+y}
5406 then :
5407 printf %s "(cached) " >&6
5408 else case e in #(
5409 e) am_cv_prog_tar_ustar=$_am_tool ;;
5410 esac
5411 fi
5412
5413 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
5414 printf '%s\n' "$am_cv_prog_tar_ustar" >&6; }
5415
5416
5417
5418
5419
5420 depcc="$CC" am_compiler_list=
5421
5422 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5423 printf %s "checking dependency style of $depcc... " >&6; }
5424 if test ${am_cv_CC_dependencies_compiler_type+y}
5425 then :
5426 printf %s "(cached) " >&6
5427 else case e in #(
5428 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5429 # We make a subdir and do the tests there. Otherwise we can end up
5430 # making bogus files that we don't know about and never remove. For
5431 # instance it was reported that on HP-UX the gcc test will end up
5432 # making a dummy file named 'D' -- because '-MD' means "put the output
5433 # in D".
5434 rm -rf conftest.dir
5435 mkdir conftest.dir
5436 # Copy depcomp to subdir because otherwise we won't find it if we're
5437 # using a relative directory.
5438 cp "$am_depcomp" conftest.dir
5439 cd conftest.dir
5440 # We will build objects and dependencies in a subdirectory because
5441 # it helps to detect inapplicable dependency modes. For instance
5442 # both Tru64's cc and ICC support -MD to output dependencies as a
5443 # side effect of compilation, but ICC will put the dependencies in
5444 # the current directory while Tru64 will put them in the object
5445 # directory.
5446 mkdir sub
5447
5448 am_cv_CC_dependencies_compiler_type=none
5449 if test "$am_compiler_list" = ""; then
5450 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5451 fi
5452 am__universal=false
5453 case " $depcc " in #(
5454 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5455 esac
5456
5457 for depmode in $am_compiler_list; do
5458 # Setup a source with many dependencies, because some compilers
5459 # like to wrap large dependency lists on column 80 (with \), and
5460 # we should not choose a depcomp mode which is confused by this.
5461 #
5462 # We need to recreate these files for each test, as the compiler may
5463 # overwrite some of them when testing with obscure command lines.
5464 # This happens at least with the AIX C compiler.
5465 : > sub/conftest.c
5466 for i in 1 2 3 4 5 6; do
5467 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5468 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5469 # Solaris 10 /bin/sh.
5470 echo '/* dummy */' > sub/conftst$i.h
5471 done
5472 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5473
5474 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5475 # mode. It turns out that the SunPro C++ compiler does not properly
5476 # handle '-M -o', and we need to detect this. Also, some Intel
5477 # versions had trouble with output in subdirs.
5478 am__obj=sub/conftest.${OBJEXT-o}
5479 am__minus_obj="-o $am__obj"
5480 case $depmode in
5481 gcc)
5482 # This depmode causes a compiler race in universal mode.
5483 test "$am__universal" = false || continue
5484 ;;
5485 nosideeffect)
5486 # After this tag, mechanisms are not by side-effect, so they'll
5487 # only be used when explicitly requested.
5488 if test "x$enable_dependency_tracking" = xyes; then
5489 continue
5490 else
5491 break
5492 fi
5493 ;;
5494 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5495 # This compiler won't grok '-c -o', but also, the minuso test has
5496 # not run yet. These depmodes are late enough in the game, and
5497 # so weak that their functioning should not be impacted.
5498 am__obj=conftest.${OBJEXT-o}
5499 am__minus_obj=
5500 ;;
5501 none) break ;;
5502 esac
5503 if depmode=$depmode \
5504 source=sub/conftest.c object=$am__obj \
5505 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5506 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5507 >/dev/null 2>conftest.err &&
5508 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5509 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5510 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5511 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5512 # icc doesn't choke on unknown options, it will just issue warnings
5513 # or remarks (even with -Werror). So we grep stderr for any message
5514 # that says an option was ignored or not supported.
5515 # When given -MP, icc 7.0 and 7.1 complain thus:
5516 # icc: Command line warning: ignoring option '-M'; no argument required
5517 # The diagnosis changed in icc 8.0:
5518 # icc: Command line remark: option '-MP' not supported
5519 if (grep 'ignoring option' conftest.err ||
5520 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5521 am_cv_CC_dependencies_compiler_type=$depmode
5522 break
5523 fi
5524 fi
5525 done
5526
5527 cd ..
5528 rm -rf conftest.dir
5529 else
5530 am_cv_CC_dependencies_compiler_type=none
5531 fi
5532 ;;
5533 esac
5534 fi
5535 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5536 printf '%s\n' "$am_cv_CC_dependencies_compiler_type" >&6; }
5537 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5538
5539 if
5540 test "x$enable_dependency_tracking" != xno \
5541 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5542 am__fastdepCC_TRUE=
5543 am__fastdepCC_FALSE='#'
5544 else
5545 am__fastdepCC_TRUE='#'
5546 am__fastdepCC_FALSE=
5547 fi
5548
5549
5550 # Variables for tags utilities; see am/tags.am
5551 if test -z "$CTAGS"; then
5552 CTAGS=ctags
5553 fi
5554
5555 if test -z "$ETAGS"; then
5556 ETAGS=etags
5557 fi
5558
5559 if test -z "$CSCOPE"; then
5560 CSCOPE=cscope
5561 fi
5562
5563
5564
5565
5566
5567
5568
5569
5570 AM_DEFAULT_VERBOSITY=0
5571
5572
5573 ac_ext=c
5574 ac_cpp='$CPP $CPPFLAGS'
5575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5578 if test -n "$ac_tool_prefix"; then
5579 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5580 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5581 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582 printf %s "checking for $ac_word... " >&6; }
5583 if test ${ac_cv_prog_CC+y}
5584 then :
5585 printf %s "(cached) " >&6
5586 else case e in #(
5587 e) if test -n "$CC"; then
5588 ac_cv_prog_CC="$CC" # Let the user override the test.
5589 else
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in $PATH
5592 do
5593 IFS=$as_save_IFS
5594 case $as_dir in #(((
5595 '') as_dir=./ ;;
5596 */) ;;
5597 *) as_dir=$as_dir/ ;;
5598 esac
5599 for ac_exec_ext in '' $ac_executable_extensions; do
5600 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5601 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5602 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5603 break 2
5604 fi
5605 done
5606 done
5607 IFS=$as_save_IFS
5608
5609 fi ;;
5610 esac
5611 fi
5612 CC=$ac_cv_prog_CC
5613 if test -n "$CC"; then
5614 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5615 printf '%s\n' "$CC" >&6; }
5616 else
5617 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618 printf '%s\n' "no" >&6; }
5619 fi
5620
5621
5622 fi
5623 if test -z "$ac_cv_prog_CC"; then
5624 ac_ct_CC=$CC
5625 # Extract the first word of "gcc", so it can be a program name with args.
5626 set dummy gcc; ac_word=$2
5627 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5628 printf %s "checking for $ac_word... " >&6; }
5629 if test ${ac_cv_prog_ac_ct_CC+y}
5630 then :
5631 printf %s "(cached) " >&6
5632 else case e in #(
5633 e) if test -n "$ac_ct_CC"; then
5634 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5635 else
5636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637 for as_dir in $PATH
5638 do
5639 IFS=$as_save_IFS
5640 case $as_dir in #(((
5641 '') as_dir=./ ;;
5642 */) ;;
5643 *) as_dir=$as_dir/ ;;
5644 esac
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5647 ac_cv_prog_ac_ct_CC="gcc"
5648 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5649 break 2
5650 fi
5651 done
5652 done
5653 IFS=$as_save_IFS
5654
5655 fi ;;
5656 esac
5657 fi
5658 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5659 if test -n "$ac_ct_CC"; then
5660 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5661 printf '%s\n' "$ac_ct_CC" >&6; }
5662 else
5663 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664 printf '%s\n' "no" >&6; }
5665 fi
5666
5667 if test "x$ac_ct_CC" = x; then
5668 CC=""
5669 else
5670 case $cross_compiling:$ac_tool_warned in
5671 yes:)
5672 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5673 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5674 ac_tool_warned=yes ;;
5675 esac
5676 CC=$ac_ct_CC
5677 fi
5678 else
5679 CC="$ac_cv_prog_CC"
5680 fi
5681
5682 if test -z "$CC"; then
5683 if test -n "$ac_tool_prefix"; then
5684 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5685 set dummy ${ac_tool_prefix}cc; ac_word=$2
5686 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5687 printf %s "checking for $ac_word... " >&6; }
5688 if test ${ac_cv_prog_CC+y}
5689 then :
5690 printf %s "(cached) " >&6
5691 else case e in #(
5692 e) if test -n "$CC"; then
5693 ac_cv_prog_CC="$CC" # Let the user override the test.
5694 else
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 for as_dir in $PATH
5697 do
5698 IFS=$as_save_IFS
5699 case $as_dir in #(((
5700 '') as_dir=./ ;;
5701 */) ;;
5702 *) as_dir=$as_dir/ ;;
5703 esac
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5706 ac_cv_prog_CC="${ac_tool_prefix}cc"
5707 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5708 break 2
5709 fi
5710 done
5711 done
5712 IFS=$as_save_IFS
5713
5714 fi ;;
5715 esac
5716 fi
5717 CC=$ac_cv_prog_CC
5718 if test -n "$CC"; then
5719 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5720 printf '%s\n' "$CC" >&6; }
5721 else
5722 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5723 printf '%s\n' "no" >&6; }
5724 fi
5725
5726
5727 fi
5728 fi
5729 if test -z "$CC"; then
5730 # Extract the first word of "cc", so it can be a program name with args.
5731 set dummy cc; ac_word=$2
5732 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 printf %s "checking for $ac_word... " >&6; }
5734 if test ${ac_cv_prog_CC+y}
5735 then :
5736 printf %s "(cached) " >&6
5737 else case e in #(
5738 e) if test -n "$CC"; then
5739 ac_cv_prog_CC="$CC" # Let the user override the test.
5740 else
5741 ac_prog_rejected=no
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 for as_dir in $PATH
5744 do
5745 IFS=$as_save_IFS
5746 case $as_dir in #(((
5747 '') as_dir=./ ;;
5748 */) ;;
5749 *) as_dir=$as_dir/ ;;
5750 esac
5751 for ac_exec_ext in '' $ac_executable_extensions; do
5752 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5753 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5754 ac_prog_rejected=yes
5755 continue
5756 fi
5757 ac_cv_prog_CC="cc"
5758 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5759 break 2
5760 fi
5761 done
5762 done
5763 IFS=$as_save_IFS
5764
5765 if test $ac_prog_rejected = yes; then
5766 # We found a bogon in the path, so make sure we never use it.
5767 set dummy $ac_cv_prog_CC
5768 shift
5769 if test $# != 0; then
5770 # We chose a different compiler from the bogus one.
5771 # However, it has the same basename, so the bogon will be chosen
5772 # first if we set CC to just the basename; use the full file name.
5773 shift
5774 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5775 fi
5776 fi
5777 fi ;;
5778 esac
5779 fi
5780 CC=$ac_cv_prog_CC
5781 if test -n "$CC"; then
5782 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5783 printf '%s\n' "$CC" >&6; }
5784 else
5785 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 printf '%s\n' "no" >&6; }
5787 fi
5788
5789
5790 fi
5791 if test -z "$CC"; then
5792 if test -n "$ac_tool_prefix"; then
5793 for ac_prog in cl.exe
5794 do
5795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5797 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5798 printf %s "checking for $ac_word... " >&6; }
5799 if test ${ac_cv_prog_CC+y}
5800 then :
5801 printf %s "(cached) " >&6
5802 else case e in #(
5803 e) if test -n "$CC"; then
5804 ac_cv_prog_CC="$CC" # Let the user override the test.
5805 else
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 for as_dir in $PATH
5808 do
5809 IFS=$as_save_IFS
5810 case $as_dir in #(((
5811 '') as_dir=./ ;;
5812 */) ;;
5813 *) as_dir=$as_dir/ ;;
5814 esac
5815 for ac_exec_ext in '' $ac_executable_extensions; do
5816 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5817 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5818 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5819 break 2
5820 fi
5821 done
5822 done
5823 IFS=$as_save_IFS
5824
5825 fi ;;
5826 esac
5827 fi
5828 CC=$ac_cv_prog_CC
5829 if test -n "$CC"; then
5830 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5831 printf '%s\n' "$CC" >&6; }
5832 else
5833 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834 printf '%s\n' "no" >&6; }
5835 fi
5836
5837
5838 test -n "$CC" && break
5839 done
5840 fi
5841 if test -z "$CC"; then
5842 ac_ct_CC=$CC
5843 for ac_prog in cl.exe
5844 do
5845 # Extract the first word of "$ac_prog", so it can be a program name with args.
5846 set dummy $ac_prog; ac_word=$2
5847 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848 printf %s "checking for $ac_word... " >&6; }
5849 if test ${ac_cv_prog_ac_ct_CC+y}
5850 then :
5851 printf %s "(cached) " >&6
5852 else case e in #(
5853 e) if test -n "$ac_ct_CC"; then
5854 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5855 else
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5858 do
5859 IFS=$as_save_IFS
5860 case $as_dir in #(((
5861 '') as_dir=./ ;;
5862 */) ;;
5863 *) as_dir=$as_dir/ ;;
5864 esac
5865 for ac_exec_ext in '' $ac_executable_extensions; do
5866 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5867 ac_cv_prog_ac_ct_CC="$ac_prog"
5868 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5869 break 2
5870 fi
5871 done
5872 done
5873 IFS=$as_save_IFS
5874
5875 fi ;;
5876 esac
5877 fi
5878 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5879 if test -n "$ac_ct_CC"; then
5880 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5881 printf '%s\n' "$ac_ct_CC" >&6; }
5882 else
5883 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 printf '%s\n' "no" >&6; }
5885 fi
5886
5887
5888 test -n "$ac_ct_CC" && break
5889 done
5890
5891 if test "x$ac_ct_CC" = x; then
5892 CC=""
5893 else
5894 case $cross_compiling:$ac_tool_warned in
5895 yes:)
5896 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5897 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5898 ac_tool_warned=yes ;;
5899 esac
5900 CC=$ac_ct_CC
5901 fi
5902 fi
5903
5904 fi
5905 if test -z "$CC"; then
5906 if test -n "$ac_tool_prefix"; then
5907 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5908 set dummy ${ac_tool_prefix}clang; ac_word=$2
5909 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5910 printf %s "checking for $ac_word... " >&6; }
5911 if test ${ac_cv_prog_CC+y}
5912 then :
5913 printf %s "(cached) " >&6
5914 else case e in #(
5915 e) if test -n "$CC"; then
5916 ac_cv_prog_CC="$CC" # Let the user override the test.
5917 else
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 for as_dir in $PATH
5920 do
5921 IFS=$as_save_IFS
5922 case $as_dir in #(((
5923 '') as_dir=./ ;;
5924 */) ;;
5925 *) as_dir=$as_dir/ ;;
5926 esac
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5929 ac_cv_prog_CC="${ac_tool_prefix}clang"
5930 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5931 break 2
5932 fi
5933 done
5934 done
5935 IFS=$as_save_IFS
5936
5937 fi ;;
5938 esac
5939 fi
5940 CC=$ac_cv_prog_CC
5941 if test -n "$CC"; then
5942 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5943 printf '%s\n' "$CC" >&6; }
5944 else
5945 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946 printf '%s\n' "no" >&6; }
5947 fi
5948
5949
5950 fi
5951 if test -z "$ac_cv_prog_CC"; then
5952 ac_ct_CC=$CC
5953 # Extract the first word of "clang", so it can be a program name with args.
5954 set dummy clang; ac_word=$2
5955 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5956 printf %s "checking for $ac_word... " >&6; }
5957 if test ${ac_cv_prog_ac_ct_CC+y}
5958 then :
5959 printf %s "(cached) " >&6
5960 else case e in #(
5961 e) if test -n "$ac_ct_CC"; then
5962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5963 else
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH
5966 do
5967 IFS=$as_save_IFS
5968 case $as_dir in #(((
5969 '') as_dir=./ ;;
5970 */) ;;
5971 *) as_dir=$as_dir/ ;;
5972 esac
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5975 ac_cv_prog_ac_ct_CC="clang"
5976 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5977 break 2
5978 fi
5979 done
5980 done
5981 IFS=$as_save_IFS
5982
5983 fi ;;
5984 esac
5985 fi
5986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5987 if test -n "$ac_ct_CC"; then
5988 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5989 printf '%s\n' "$ac_ct_CC" >&6; }
5990 else
5991 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992 printf '%s\n' "no" >&6; }
5993 fi
5994
5995 if test "x$ac_ct_CC" = x; then
5996 CC=""
5997 else
5998 case $cross_compiling:$ac_tool_warned in
5999 yes:)
6000 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6001 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6002 ac_tool_warned=yes ;;
6003 esac
6004 CC=$ac_ct_CC
6005 fi
6006 else
6007 CC="$ac_cv_prog_CC"
6008 fi
6009
6010 fi
6011
6012
6013 test -z "$CC" && { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6014 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
6015 as_fn_error $? "no acceptable C compiler found in \$PATH
6016 See 'config.log' for more details" "$LINENO" 5; }
6017
6018 # Provide some information about the compiler.
6019 printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6020 set X $ac_compile
6021 ac_compiler=$2
6022 for ac_option in --version -v -V -qversion -version; do
6023 { { ac_try="$ac_compiler $ac_option >&5"
6024 case "(($ac_try" in
6025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026 *) ac_try_echo=$ac_try;;
6027 esac
6028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6029 printf '%s\n' "$ac_try_echo"; } >&5
6030 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6031 ac_status=$?
6032 if test -s conftest.err; then
6033 sed '10a\
6034 ... rest of stderr output deleted ...
6035 10q' conftest.err >conftest.er1
6036 cat conftest.er1 >&5
6037 fi
6038 rm -f conftest.er1 conftest.err
6039 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6040 test $ac_status = 0; }
6041 done
6042
6043 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
6044 printf %s "checking whether the compiler supports GNU C... " >&6; }
6045 if test ${ac_cv_c_compiler_gnu+y}
6046 then :
6047 printf %s "(cached) " >&6
6048 else case e in #(
6049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6051
6052 int
6053 main (void)
6054 {
6055 #ifndef __GNUC__
6056 choke me
6057 #endif
6058
6059 ;
6060 return 0;
6061 }
6062 _ACEOF
6063 if ac_fn_c_try_compile "$LINENO"
6064 then :
6065 ac_compiler_gnu=yes
6066 else case e in #(
6067 e) ac_compiler_gnu=no ;;
6068 esac
6069 fi
6070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6071 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6072 ;;
6073 esac
6074 fi
6075 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6076 printf '%s\n' "$ac_cv_c_compiler_gnu" >&6; }
6077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6078
6079 if test $ac_compiler_gnu = yes; then
6080 GCC=yes
6081 else
6082 GCC=
6083 fi
6084 ac_test_CFLAGS=${CFLAGS+y}
6085 ac_save_CFLAGS=$CFLAGS
6086 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6087 printf %s "checking whether $CC accepts -g... " >&6; }
6088 if test ${ac_cv_prog_cc_g+y}
6089 then :
6090 printf %s "(cached) " >&6
6091 else case e in #(
6092 e) ac_save_c_werror_flag=$ac_c_werror_flag
6093 ac_c_werror_flag=yes
6094 ac_cv_prog_cc_g=no
6095 CFLAGS="-g"
6096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6097 /* end confdefs.h. */
6098
6099 int
6100 main (void)
6101 {
6102
6103 ;
6104 return 0;
6105 }
6106 _ACEOF
6107 if ac_fn_c_try_compile "$LINENO"
6108 then :
6109 ac_cv_prog_cc_g=yes
6110 else case e in #(
6111 e) CFLAGS=""
6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113 /* end confdefs.h. */
6114
6115 int
6116 main (void)
6117 {
6118
6119 ;
6120 return 0;
6121 }
6122 _ACEOF
6123 if ac_fn_c_try_compile "$LINENO"
6124 then :
6125
6126 else case e in #(
6127 e) ac_c_werror_flag=$ac_save_c_werror_flag
6128 CFLAGS="-g"
6129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h. */
6131
6132 int
6133 main (void)
6134 {
6135
6136 ;
6137 return 0;
6138 }
6139 _ACEOF
6140 if ac_fn_c_try_compile "$LINENO"
6141 then :
6142 ac_cv_prog_cc_g=yes
6143 fi
6144 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6145 esac
6146 fi
6147 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6148 esac
6149 fi
6150 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6151 ac_c_werror_flag=$ac_save_c_werror_flag ;;
6152 esac
6153 fi
6154 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6155 printf '%s\n' "$ac_cv_prog_cc_g" >&6; }
6156 if test $ac_test_CFLAGS; then
6157 CFLAGS=$ac_save_CFLAGS
6158 elif test $ac_cv_prog_cc_g = yes; then
6159 if test "$GCC" = yes; then
6160 CFLAGS="-g -O2"
6161 else
6162 CFLAGS="-g"
6163 fi
6164 else
6165 if test "$GCC" = yes; then
6166 CFLAGS="-O2"
6167 else
6168 CFLAGS=
6169 fi
6170 fi
6171 ac_prog_cc_stdc=no
6172 if test x$ac_prog_cc_stdc = xno
6173 then :
6174 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C23 features" >&5
6175 printf %s "checking for $CC option to enable C23 features... " >&6; }
6176 if test ${ac_cv_prog_cc_c23+y}
6177 then :
6178 printf %s "(cached) " >&6
6179 else case e in #(
6180 e) ac_cv_prog_cc_c23=no
6181 ac_save_CC=$CC
6182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183 /* end confdefs.h. */
6184 $ac_c_conftest_c23_program
6185 _ACEOF
6186 for ac_arg in '' -std=gnu23
6187 do
6188 CC="$ac_save_CC $ac_arg"
6189 if ac_fn_c_try_compile "$LINENO"
6190 then :
6191 ac_cv_prog_cc_c23=$ac_arg
6192 fi
6193 rm -f core conftest.err conftest.$ac_objext conftest.beam
6194 test "x$ac_cv_prog_cc_c23" != "xno" && break
6195 done
6196 rm -f conftest.$ac_ext
6197 CC=$ac_save_CC ;;
6198 esac
6199 fi
6200
6201 if test "x$ac_cv_prog_cc_c23" = xno
6202 then :
6203 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6204 printf '%s\n' "unsupported" >&6; }
6205 else case e in #(
6206 e) if test "x$ac_cv_prog_cc_c23" = x
6207 then :
6208 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6209 printf '%s\n' "none needed" >&6; }
6210 else case e in #(
6211 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c23" >&5
6212 printf '%s\n' "$ac_cv_prog_cc_c23" >&6; }
6213 CC="$CC $ac_cv_prog_cc_c23" ;;
6214 esac
6215 fi
6216 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c23
6217 ac_prog_cc_stdc=c23 ;;
6218 esac
6219 fi
6220 fi
6221 if test x$ac_prog_cc_stdc = xno
6222 then :
6223 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
6224 printf %s "checking for $CC option to enable C11 features... " >&6; }
6225 if test ${ac_cv_prog_cc_c11+y}
6226 then :
6227 printf %s "(cached) " >&6
6228 else case e in #(
6229 e) ac_cv_prog_cc_c11=no
6230 ac_save_CC=$CC
6231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232 /* end confdefs.h. */
6233 $ac_c_conftest_c11_program
6234 _ACEOF
6235 for ac_arg in '' -std=gnu11 -std:c11
6236 do
6237 CC="$ac_save_CC $ac_arg"
6238 if ac_fn_c_try_compile "$LINENO"
6239 then :
6240 ac_cv_prog_cc_c11=$ac_arg
6241 fi
6242 rm -f core conftest.err conftest.$ac_objext conftest.beam
6243 test "x$ac_cv_prog_cc_c11" != "xno" && break
6244 done
6245 rm -f conftest.$ac_ext
6246 CC=$ac_save_CC ;;
6247 esac
6248 fi
6249
6250 if test "x$ac_cv_prog_cc_c11" = xno
6251 then :
6252 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6253 printf '%s\n' "unsupported" >&6; }
6254 else case e in #(
6255 e) if test "x$ac_cv_prog_cc_c11" = x
6256 then :
6257 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6258 printf '%s\n' "none needed" >&6; }
6259 else case e in #(
6260 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
6261 printf '%s\n' "$ac_cv_prog_cc_c11" >&6; }
6262 CC="$CC $ac_cv_prog_cc_c11" ;;
6263 esac
6264 fi
6265 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
6266 ac_prog_cc_stdc=c11 ;;
6267 esac
6268 fi
6269 fi
6270 if test x$ac_prog_cc_stdc = xno
6271 then :
6272 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
6273 printf %s "checking for $CC option to enable C99 features... " >&6; }
6274 if test ${ac_cv_prog_cc_c99+y}
6275 then :
6276 printf %s "(cached) " >&6
6277 else case e in #(
6278 e) ac_cv_prog_cc_c99=no
6279 ac_save_CC=$CC
6280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h. */
6282 $ac_c_conftest_c99_program
6283 _ACEOF
6284 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
6285 do
6286 CC="$ac_save_CC $ac_arg"
6287 if ac_fn_c_try_compile "$LINENO"
6288 then :
6289 ac_cv_prog_cc_c99=$ac_arg
6290 fi
6291 rm -f core conftest.err conftest.$ac_objext conftest.beam
6292 test "x$ac_cv_prog_cc_c99" != "xno" && break
6293 done
6294 rm -f conftest.$ac_ext
6295 CC=$ac_save_CC ;;
6296 esac
6297 fi
6298
6299 if test "x$ac_cv_prog_cc_c99" = xno
6300 then :
6301 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6302 printf '%s\n' "unsupported" >&6; }
6303 else case e in #(
6304 e) if test "x$ac_cv_prog_cc_c99" = x
6305 then :
6306 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6307 printf '%s\n' "none needed" >&6; }
6308 else case e in #(
6309 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6310 printf '%s\n' "$ac_cv_prog_cc_c99" >&6; }
6311 CC="$CC $ac_cv_prog_cc_c99" ;;
6312 esac
6313 fi
6314 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6315 ac_prog_cc_stdc=c99 ;;
6316 esac
6317 fi
6318 fi
6319 if test x$ac_prog_cc_stdc = xno
6320 then :
6321 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6322 printf %s "checking for $CC option to enable C89 features... " >&6; }
6323 if test ${ac_cv_prog_cc_c89+y}
6324 then :
6325 printf %s "(cached) " >&6
6326 else case e in #(
6327 e) ac_cv_prog_cc_c89=no
6328 ac_save_CC=$CC
6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6330 /* end confdefs.h. */
6331 $ac_c_conftest_c89_program
6332 _ACEOF
6333 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6334 do
6335 CC="$ac_save_CC $ac_arg"
6336 if ac_fn_c_try_compile "$LINENO"
6337 then :
6338 ac_cv_prog_cc_c89=$ac_arg
6339 fi
6340 rm -f core conftest.err conftest.$ac_objext conftest.beam
6341 test "x$ac_cv_prog_cc_c89" != "xno" && break
6342 done
6343 rm -f conftest.$ac_ext
6344 CC=$ac_save_CC ;;
6345 esac
6346 fi
6347
6348 if test "x$ac_cv_prog_cc_c89" = xno
6349 then :
6350 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6351 printf '%s\n' "unsupported" >&6; }
6352 else case e in #(
6353 e) if test "x$ac_cv_prog_cc_c89" = x
6354 then :
6355 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6356 printf '%s\n' "none needed" >&6; }
6357 else case e in #(
6358 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6359 printf '%s\n' "$ac_cv_prog_cc_c89" >&6; }
6360 CC="$CC $ac_cv_prog_cc_c89" ;;
6361 esac
6362 fi
6363 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6364 ac_prog_cc_stdc=c89 ;;
6365 esac
6366 fi
6367 fi
6368
6369 ac_ext=c
6370 ac_cpp='$CPP $CPPFLAGS'
6371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6374
6375
6376 ac_ext=c
6377 ac_cpp='$CPP $CPPFLAGS'
6378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6381 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6382 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6383 if test ${am_cv_prog_cc_c_o+y}
6384 then :
6385 printf %s "(cached) " >&6
6386 else case e in #(
6387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6388 /* end confdefs.h. */
6389
6390 int
6391 main (void)
6392 {
6393
6394 ;
6395 return 0;
6396 }
6397 _ACEOF
6398 # Make sure it works both with $CC and with simple cc.
6399 # Following AC_PROG_CC_C_O, we do the test twice because some
6400 # compilers refuse to overwrite an existing .o file with -o,
6401 # though they will create one.
6402 am_cv_prog_cc_c_o=yes
6403 for am_i in 1 2; do
6404 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6405 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6406 ac_status=$?
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } \
6409 && test -f conftest2.$ac_objext; then
6410 : OK
6411 else
6412 am_cv_prog_cc_c_o=no
6413 break
6414 fi
6415 done
6416 # aligned with autoconf, so not including core; see bug#72225.
6417 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
6418 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
6419 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
6420 unset am_i ;;
6421 esac
6422 fi
6423 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6424 printf '%s\n' "$am_cv_prog_cc_c_o" >&6; }
6425 if test "$am_cv_prog_cc_c_o" != yes; then
6426 # Losing compiler, so override with the script.
6427 # FIXME: It is wrong to rewrite CC.
6428 # But if we don't then we get into trouble of one sort or another.
6429 # A longer-term fix would be to have automake use am__CC in this case,
6430 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6431 CC="$am_aux_dir/compile $CC"
6432 fi
6433 ac_ext=c
6434 ac_cpp='$CPP $CPPFLAGS'
6435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6438
6439
6440
6441 ac_ext=c
6442 ac_cpp='$CPP $CPPFLAGS'
6443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6446
6447
6448 build_msmtpd_default="yes"
6449
6450 cat >>confdefs.h <<_ACEOF
6451 #define PLATFORM "${target}"
6452 _ACEOF
6453
6454 case "${target}" in *-*-mingw*) LIBS="$LIBS -lpthread -lws2_32"; build_msmtpd_default="no" ;; esac
6455
6456 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6457 printf %s "checking for a sed that does not truncate output... " >&6; }
6458 if test ${ac_cv_path_SED+y}
6459 then :
6460 printf %s "(cached) " >&6
6461 else case e in #(
6462 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6463 for ac_i in 1 2 3 4 5 6 7; do
6464 ac_script="$ac_script$as_nl$ac_script"
6465 done
6466 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6467 { ac_script=; unset ac_script;}
6468 if test -z "$SED"; then
6469 ac_path_SED_found=false
6470 # Loop through the user's path and test for each of PROGNAME-LIST
6471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472 for as_dir in $PATH
6473 do
6474 IFS=$as_save_IFS
6475 case $as_dir in #(((
6476 '') as_dir=./ ;;
6477 */) ;;
6478 *) as_dir=$as_dir/ ;;
6479 esac
6480 for ac_prog in sed gsed
6481 do
6482 for ac_exec_ext in '' $ac_executable_extensions; do
6483 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6484 as_fn_executable_p "$ac_path_SED" || continue
6485 # Check for GNU ac_path_SED and select it if it is found.
6486 # Check for GNU $ac_path_SED
6487 case `"$ac_path_SED" --version 2>&1` in #(
6488 *GNU*)
6489 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6490 #(
6491 *)
6492 ac_count=0
6493 printf %s 0123456789 >"conftest.in"
6494 while :
6495 do
6496 cat "conftest.in" "conftest.in" >"conftest.tmp"
6497 mv "conftest.tmp" "conftest.in"
6498 cp "conftest.in" "conftest.nl"
6499 printf '%s\n' '' >> "conftest.nl"
6500 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6501 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6502 as_fn_arith $ac_count + 1 && ac_count=$as_val
6503 if test $ac_count -gt ${ac_path_SED_max-0}; then
6504 # Best one so far, save it but keep looking for a better one
6505 ac_cv_path_SED="$ac_path_SED"
6506 ac_path_SED_max=$ac_count
6507 fi
6508 # 10*(2^10) chars as input seems more than enough
6509 test $ac_count -gt 10 && break
6510 done
6511 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6512 esac
6513
6514 $ac_path_SED_found && break 3
6515 done
6516 done
6517 done
6518 IFS=$as_save_IFS
6519 if test -z "$ac_cv_path_SED"; then
6520 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6521 fi
6522 else
6523 ac_cv_path_SED=$SED
6524 fi
6525 ;;
6526 esac
6527 fi
6528 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6529 printf '%s\n' "$ac_cv_path_SED" >&6; }
6530 SED="$ac_cv_path_SED"
6531 rm -f conftest.sed
6532
6533
6534 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6535 printf %s "checking whether NLS is requested... " >&6; }
6536 # Check whether --enable-nls was given.
6537 if test ${enable_nls+y}
6538 then :
6539 enableval=$enable_nls; USE_NLS=$enableval
6540 else case e in #(
6541 e) USE_NLS=yes ;;
6542 esac
6543 fi
6544
6545 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6546 printf '%s\n' "$USE_NLS" >&6; }
6547
6548
6549
6550
6551 GETTEXT_MACRO_VERSION=0.24
6552
6553
6554
6555
6556 # Prepare PATH_SEPARATOR.
6557 # The user is always right.
6558 if test "${PATH_SEPARATOR+set}" != set; then
6559 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6560 # contains only /bin. Note that ksh looks also at the FPATH variable,
6561 # so we have to set that as well for the test.
6562 PATH_SEPARATOR=:
6563 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6564 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6565 || PATH_SEPARATOR=';'
6566 }
6567 fi
6568
6569 # Find out how to test for executable files. Don't use a zero-byte file,
6570 # as systems may use methods other than mode bits to determine executability.
6571 cat >conf$$.file <<_ASEOF
6572 #! /bin/sh
6573 exit 0
6574 _ASEOF
6575 chmod +x conf$$.file
6576 if test -x conf$$.file >/dev/null 2>&1; then
6577 ac_executable_p="test -x"
6578 else
6579 ac_executable_p="test -f"
6580 fi
6581 rm -f conf$$.file
6582
6583 # Extract the first word of "msgfmt", so it can be a program name with args.
6584 set dummy msgfmt; ac_word=$2
6585 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6586 printf %s "checking for $ac_word... " >&6; }
6587 if test ${ac_cv_path_MSGFMT+y}
6588 then :
6589 printf %s "(cached) " >&6
6590 else case e in #(
6591 e) case "$MSGFMT" in
6592 [\\/]* | ?:[\\/]*)
6593 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6594 ;;
6595 *)
6596 gt_saved_IFS="$IFS"; IFS=$PATH_SEPARATOR
6597 for ac_dir in $PATH; do
6598 IFS="$gt_saved_IFS"
6599 test -z "$ac_dir" && ac_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6602 echo "$as_me:${as_lineno-$LINENO}: trying $ac_dir/$ac_word..." >&5
6603 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6604 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6605 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6606 break 2
6607 fi
6608 fi
6609 done
6610 done
6611 IFS="$gt_saved_IFS"
6612 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6613 ;;
6614 esac ;;
6615 esac
6616 fi
6617 MSGFMT="$ac_cv_path_MSGFMT"
6618 if test "$MSGFMT" != ":"; then
6619 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6620 printf '%s\n' "$MSGFMT" >&6; }
6621 else
6622 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623 printf '%s\n' "no" >&6; }
6624 fi
6625
6626 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6627 set dummy gmsgfmt; ac_word=$2
6628 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6629 printf %s "checking for $ac_word... " >&6; }
6630 if test ${ac_cv_path_GMSGFMT+y}
6631 then :
6632 printf %s "(cached) " >&6
6633 else case e in #(
6634 e) case $GMSGFMT in
6635 [\\/]* | ?:[\\/]*)
6636 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6637 ;;
6638 *)
6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 for as_dir in $PATH
6641 do
6642 IFS=$as_save_IFS
6643 case $as_dir in #(((
6644 '') as_dir=./ ;;
6645 */) ;;
6646 *) as_dir=$as_dir/ ;;
6647 esac
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6650 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
6651 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6652 break 2
6653 fi
6654 done
6655 done
6656 IFS=$as_save_IFS
6657
6658 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6659 ;;
6660 esac ;;
6661 esac
6662 fi
6663 GMSGFMT=$ac_cv_path_GMSGFMT
6664 if test -n "$GMSGFMT"; then
6665 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6666 printf '%s\n' "$GMSGFMT" >&6; }
6667 else
6668 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669 printf '%s\n' "no" >&6; }
6670 fi
6671
6672
6673
6674 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6675 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6676 *) GMSGFMT_015=$GMSGFMT ;;
6677 esac
6678
6679
6680
6681 # Prepare PATH_SEPARATOR.
6682 # The user is always right.
6683 if test "${PATH_SEPARATOR+set}" != set; then
6684 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6685 # contains only /bin. Note that ksh looks also at the FPATH variable,
6686 # so we have to set that as well for the test.
6687 PATH_SEPARATOR=:
6688 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6689 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6690 || PATH_SEPARATOR=';'
6691 }
6692 fi
6693
6694 # Find out how to test for executable files. Don't use a zero-byte file,
6695 # as systems may use methods other than mode bits to determine executability.
6696 cat >conf$$.file <<_ASEOF
6697 #! /bin/sh
6698 exit 0
6699 _ASEOF
6700 chmod +x conf$$.file
6701 if test -x conf$$.file >/dev/null 2>&1; then
6702 ac_executable_p="test -x"
6703 else
6704 ac_executable_p="test -f"
6705 fi
6706 rm -f conf$$.file
6707
6708 # Extract the first word of "xgettext", so it can be a program name with args.
6709 set dummy xgettext; ac_word=$2
6710 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711 printf %s "checking for $ac_word... " >&6; }
6712 if test ${ac_cv_path_XGETTEXT+y}
6713 then :
6714 printf %s "(cached) " >&6
6715 else case e in #(
6716 e) case "$XGETTEXT" in
6717 [\\/]* | ?:[\\/]*)
6718 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6719 ;;
6720 *)
6721 gt_saved_IFS="$IFS"; IFS=$PATH_SEPARATOR
6722 for ac_dir in $PATH; do
6723 IFS="$gt_saved_IFS"
6724 test -z "$ac_dir" && ac_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6727 echo "$as_me:${as_lineno-$LINENO}: trying $ac_dir/$ac_word..." >&5
6728 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6729 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6730 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6731 break 2
6732 fi
6733 fi
6734 done
6735 done
6736 IFS="$gt_saved_IFS"
6737 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6738 ;;
6739 esac ;;
6740 esac
6741 fi
6742 XGETTEXT="$ac_cv_path_XGETTEXT"
6743 if test "$XGETTEXT" != ":"; then
6744 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6745 printf '%s\n' "$XGETTEXT" >&6; }
6746 else
6747 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
6748 printf '%s\n' "no" >&6; }
6749 fi
6750
6751 rm -f messages.po
6752
6753 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6754 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6755 *) XGETTEXT_015=$XGETTEXT ;;
6756 esac
6757
6758
6759
6760 # Prepare PATH_SEPARATOR.
6761 # The user is always right.
6762 if test "${PATH_SEPARATOR+set}" != set; then
6763 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6764 # contains only /bin. Note that ksh looks also at the FPATH variable,
6765 # so we have to set that as well for the test.
6766 PATH_SEPARATOR=:
6767 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6768 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6769 || PATH_SEPARATOR=';'
6770 }
6771 fi
6772
6773 # Find out how to test for executable files. Don't use a zero-byte file,
6774 # as systems may use methods other than mode bits to determine executability.
6775 cat >conf$$.file <<_ASEOF
6776 #! /bin/sh
6777 exit 0
6778 _ASEOF
6779 chmod +x conf$$.file
6780 if test -x conf$$.file >/dev/null 2>&1; then
6781 ac_executable_p="test -x"
6782 else
6783 ac_executable_p="test -f"
6784 fi
6785 rm -f conf$$.file
6786
6787 # Extract the first word of "msgmerge", so it can be a program name with args.
6788 set dummy msgmerge; ac_word=$2
6789 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6790 printf %s "checking for $ac_word... " >&6; }
6791 if test ${ac_cv_path_MSGMERGE+y}
6792 then :
6793 printf %s "(cached) " >&6
6794 else case e in #(
6795 e) case "$MSGMERGE" in
6796 [\\/]* | ?:[\\/]*)
6797 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6798 ;;
6799 *)
6800 gt_saved_IFS="$IFS"; IFS=$PATH_SEPARATOR
6801 for ac_dir in $PATH; do
6802 IFS="$gt_saved_IFS"
6803 test -z "$ac_dir" && ac_dir=.
6804 for ac_exec_ext in '' $ac_executable_extensions; do
6805 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6806 echo "$as_me:${as_lineno-$LINENO}: trying $ac_dir/$ac_word..." >&5
6807 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6808 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6809 break 2
6810 fi
6811 fi
6812 done
6813 done
6814 IFS="$gt_saved_IFS"
6815 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6816 ;;
6817 esac ;;
6818 esac
6819 fi
6820 MSGMERGE="$ac_cv_path_MSGMERGE"
6821 if test "$MSGMERGE" != ":"; then
6822 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6823 printf '%s\n' "$MSGMERGE" >&6; }
6824 else
6825 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826 printf '%s\n' "no" >&6; }
6827 fi
6828
6829
6830 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
6831 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
6832 else
6833 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
6834 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
6835 else
6836 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
6837 fi
6838 fi
6839
6840
6841 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6842
6843
6844 if test -n "$ALL_LINGUAS"; then
6845 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
6846 fi
6847
6848 DESIRED_LINGUAS="${LINGUAS-\$(ALL_LINGUAS)}"
6849
6850
6851 ac_config_commands="$ac_config_commands po-directories"
6852
6853
6854
6855 if test "X$prefix" = "XNONE"; then
6856 acl_final_prefix="$ac_default_prefix"
6857 else
6858 acl_final_prefix="$prefix"
6859 fi
6860 if test "X$exec_prefix" = "XNONE"; then
6861 acl_final_exec_prefix='${prefix}'
6862 else
6863 acl_final_exec_prefix="$exec_prefix"
6864 fi
6865 acl_saved_prefix="$prefix"
6866 prefix="$acl_final_prefix"
6867 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6868 prefix="$acl_saved_prefix"
6869
6870
6871
6872 # Check whether --with-gnu-ld was given.
6873 if test ${with_gnu_ld+y}
6874 then :
6875 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6876 else case e in #(
6877 e) with_gnu_ld=no ;;
6878 esac
6879 fi
6880
6881 # Prepare PATH_SEPARATOR.
6882 # The user is always right.
6883 if test "${PATH_SEPARATOR+set}" != set; then
6884 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6885 # contains only /bin. Note that ksh looks also at the FPATH variable,
6886 # so we have to set that as well for the test.
6887 PATH_SEPARATOR=:
6888 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6889 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6890 || PATH_SEPARATOR=';'
6891 }
6892 fi
6893
6894 if test -n "$LD"; then
6895 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
6896 printf %s "checking for ld... " >&6; }
6897 elif test "$GCC" = yes; then
6898 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6899 printf %s "checking for ld used by $CC... " >&6; }
6900 elif test "$with_gnu_ld" = yes; then
6901 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6902 printf %s "checking for GNU ld... " >&6; }
6903 else
6904 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6905 printf %s "checking for non-GNU ld... " >&6; }
6906 fi
6907 if test -n "$LD"; then
6908 # Let the user override the test with a path.
6909 :
6910 else
6911 if test ${acl_cv_path_LD+y}
6912 then :
6913 printf %s "(cached) " >&6
6914 else case e in #(
6915 e)
6916 acl_cv_path_LD= # Final result of this test
6917 ac_prog=ld # Program to search in $PATH
6918 if test "$GCC" = yes; then
6919 # Check if gcc -print-prog-name=ld gives a path.
6920 case $host in
6921 *-*-mingw* | windows*)
6922 # gcc leaves a trailing carriage return which upsets mingw
6923 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6924 *)
6925 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
6926 esac
6927 case $acl_output in
6928 # Accept absolute paths.
6929 [\\/]* | ?:[\\/]*)
6930 re_direlt='/[^/][^/]*/\.\./'
6931 # Canonicalize the pathname of ld
6932 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
6933 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
6934 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
6935 done
6936 # Got the pathname. No search in PATH is needed.
6937 acl_cv_path_LD="$acl_output"
6938 ac_prog=
6939 ;;
6940 "")
6941 # If it fails, then pretend we aren't using GCC.
6942 ;;
6943 *)
6944 # If it is relative, then search for the first ld in PATH.
6945 with_gnu_ld=unknown
6946 ;;
6947 esac
6948 fi
6949 if test -n "$ac_prog"; then
6950 # Search for $ac_prog in $PATH.
6951 acl_saved_IFS="$IFS"; IFS=$PATH_SEPARATOR
6952 for ac_dir in $PATH; do
6953 IFS="$acl_saved_IFS"
6954 test -z "$ac_dir" && ac_dir=.
6955 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6956 acl_cv_path_LD="$ac_dir/$ac_prog"
6957 # Check to see if the program is GNU ld. I'd rather use --version,
6958 # but apparently some variants of GNU ld only accept -v.
6959 # Break only if it was the GNU/non-GNU ld that we prefer.
6960 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
6961 *GNU* | *'with BFD'*)
6962 test "$with_gnu_ld" != no && break
6963 ;;
6964 *)
6965 test "$with_gnu_ld" != yes && break
6966 ;;
6967 esac
6968 fi
6969 done
6970 IFS="$acl_saved_IFS"
6971 fi
6972 case $host in
6973 *-*-aix*)
6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h. */
6976 #if defined __powerpc64__ || defined __LP64__
6977 int ok;
6978 #else
6979 error fail
6980 #endif
6981
6982 _ACEOF
6983 if ac_fn_c_try_compile "$LINENO"
6984 then :
6985 # The compiler produces 64-bit code. Add option '-b64' so that the
6986 # linker groks 64-bit object files.
6987 case "$acl_cv_path_LD " in
6988 *" -b64 "*) ;;
6989 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
6990 esac
6991
6992 fi
6993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6994 ;;
6995 sparc64-*-netbsd*)
6996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997 /* end confdefs.h. */
6998 #if defined __sparcv9 || defined __arch64__
6999 int ok;
7000 #else
7001 error fail
7002 #endif
7003
7004 _ACEOF
7005 if ac_fn_c_try_compile "$LINENO"
7006 then :
7007
7008 else case e in #(
7009 e) # The compiler produces 32-bit code. Add option '-m elf32_sparc'
7010 # so that the linker groks 32-bit object files.
7011 case "$acl_cv_path_LD " in
7012 *" -m elf32_sparc "*) ;;
7013 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
7014 esac
7015 ;;
7016 esac
7017 fi
7018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7019 ;;
7020 esac
7021 ;;
7022 esac
7023 fi
7024
7025 LD="$acl_cv_path_LD"
7026 fi
7027 if test -n "$LD"; then
7028 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7029 printf '%s\n' "$LD" >&6; }
7030 else
7031 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7032 printf '%s\n' "no" >&6; }
7033 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7034 fi
7035 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7036 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
7037 if test ${acl_cv_prog_gnu_ld+y}
7038 then :
7039 printf %s "(cached) " >&6
7040 else case e in #(
7041 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
7042 case `$LD -v 2>&1 </dev/null` in
7043 *GNU* | *'with BFD'*)
7044 acl_cv_prog_gnu_ld=yes
7045 ;;
7046 *)
7047 acl_cv_prog_gnu_ld=no
7048 ;;
7049 esac ;;
7050 esac
7051 fi
7052 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7053 printf '%s\n' "$acl_cv_prog_gnu_ld" >&6; }
7054 with_gnu_ld=$acl_cv_prog_gnu_ld
7055
7056
7057
7058
7059
7060 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7061 printf %s "checking for shared library run path origin... " >&6; }
7062 if test ${acl_cv_rpath+y}
7063 then :
7064 printf %s "(cached) " >&6
7065 else case e in #(
7066 e)
7067 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7068 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7069 . ./conftest.sh
7070 rm -f ./conftest.sh
7071 acl_cv_rpath=done
7072 ;;
7073 esac
7074 fi
7075 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7076 printf '%s\n' "$acl_cv_rpath" >&6; }
7077 wl="$acl_cv_wl"
7078 acl_libext="$acl_cv_libext"
7079 acl_shlibext="$acl_cv_shlibext"
7080 acl_libname_spec="$acl_cv_libname_spec"
7081 acl_library_names_spec="$acl_cv_library_names_spec"
7082 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7083 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7084 acl_hardcode_direct="$acl_cv_hardcode_direct"
7085 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7086 # Check whether --enable-rpath was given.
7087 if test ${enable_rpath+y}
7088 then :
7089 enableval=$enable_rpath; :
7090 else case e in #(
7091 e) enable_rpath=yes ;;
7092 esac
7093 fi
7094
7095
7096
7097
7098 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
7099 printf %s "checking 32-bit host C ABI... " >&6; }
7100 if test ${gl_cv_host_cpu_c_abi_32bit+y}
7101 then :
7102 printf %s "(cached) " >&6
7103 else case e in #(
7104 e) case "$host_cpu" in
7105
7106 # CPUs that only support a 32-bit ABI.
7107 arc \
7108 | bfin \
7109 | cris* \
7110 | csky \
7111 | epiphany \
7112 | ft32 \
7113 | h8300 \
7114 | m68k \
7115 | microblaze | microblazeel \
7116 | nds32 | nds32le | nds32be \
7117 | nios2 | nios2eb | nios2el \
7118 | or1k* \
7119 | or32 \
7120 | sh | sh1234 | sh1234elb \
7121 | tic6x \
7122 | xtensa* )
7123 gl_cv_host_cpu_c_abi_32bit=yes
7124 ;;
7125
7126 # CPUs that only support a 64-bit ABI.
7127 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
7128 | mmix )
7129 gl_cv_host_cpu_c_abi_32bit=no
7130 ;;
7131
7132 *)
7133 if test -n "$gl_cv_host_cpu_c_abi"; then
7134 case "$gl_cv_host_cpu_c_abi" in
7135 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | loongarch32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
7136 gl_cv_host_cpu_c_abi_32bit=yes ;;
7137 x86_64 | alpha | arm64 | aarch64c | hppa64 | ia64 | loongarch64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
7138 gl_cv_host_cpu_c_abi_32bit=no ;;
7139 *)
7140 gl_cv_host_cpu_c_abi_32bit=unknown ;;
7141 esac
7142 else
7143 gl_cv_host_cpu_c_abi_32bit=unknown
7144 fi
7145 if test $gl_cv_host_cpu_c_abi_32bit = unknown; then
7146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147 /* end confdefs.h. */
7148 int test_pointer_size[sizeof (void *) - 5];
7149
7150 _ACEOF
7151 if ac_fn_c_try_compile "$LINENO"
7152 then :
7153 gl_cv_host_cpu_c_abi_32bit=no
7154 else case e in #(
7155 e) gl_cv_host_cpu_c_abi_32bit=yes ;;
7156 esac
7157 fi
7158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7159 fi
7160 ;;
7161 esac
7162 ;;
7163 esac
7164 fi
7165 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
7166 printf '%s\n' "$gl_cv_host_cpu_c_abi_32bit" >&6; }
7167
7168 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
7169
7170 ac_ext=c
7171 ac_cpp='$CPP $CPPFLAGS'
7172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7175 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7176 printf %s "checking how to run the C preprocessor... " >&6; }
7177 # On Suns, sometimes $CPP names a directory.
7178 if test -n "$CPP" && test -d "$CPP"; then
7179 CPP=
7180 fi
7181 if test -z "$CPP"; then
7182 if test ${ac_cv_prog_CPP+y}
7183 then :
7184 printf %s "(cached) " >&6
7185 else case e in #(
7186 e) # Double quotes because $CC needs to be expanded
7187 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
7188 do
7189 ac_preproc_ok=false
7190 for ac_c_preproc_warn_flag in '' yes
7191 do
7192 # Use a header file that comes with gcc, so configuring glibc
7193 # with a fresh cross-compiler works.
7194 # On the NeXT, cc -E runs the code through the compiler's parser,
7195 # not just through cpp. "Syntax error" is here to catch this case.
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h. */
7198 #include <limits.h>
7199 Syntax error
7200 _ACEOF
7201 if ac_fn_c_try_cpp "$LINENO"
7202 then :
7203
7204 else case e in #(
7205 e) # Broken: fails on valid input.
7206 continue ;;
7207 esac
7208 fi
7209 rm -f conftest.err conftest.i conftest.$ac_ext
7210
7211 # OK, works on sane cases. Now check whether nonexistent headers
7212 # can be detected and how.
7213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7214 /* end confdefs.h. */
7215 #include <ac_nonexistent.h>
7216 _ACEOF
7217 if ac_fn_c_try_cpp "$LINENO"
7218 then :
7219 # Broken: success on invalid input.
7220 continue
7221 else case e in #(
7222 e) # Passes both tests.
7223 ac_preproc_ok=:
7224 break ;;
7225 esac
7226 fi
7227 rm -f conftest.err conftest.i conftest.$ac_ext
7228
7229 done
7230 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7231 rm -f conftest.i conftest.err conftest.$ac_ext
7232 if $ac_preproc_ok
7233 then :
7234 break
7235 fi
7236
7237 done
7238 ac_cv_prog_CPP=$CPP
7239 ;;
7240 esac
7241 fi
7242 CPP=$ac_cv_prog_CPP
7243 else
7244 ac_cv_prog_CPP=$CPP
7245 fi
7246 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7247 printf '%s\n' "$CPP" >&6; }
7248 ac_preproc_ok=false
7249 for ac_c_preproc_warn_flag in '' yes
7250 do
7251 # Use a header file that comes with gcc, so configuring glibc
7252 # with a fresh cross-compiler works.
7253 # On the NeXT, cc -E runs the code through the compiler's parser,
7254 # not just through cpp. "Syntax error" is here to catch this case.
7255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256 /* end confdefs.h. */
7257 #include <limits.h>
7258 Syntax error
7259 _ACEOF
7260 if ac_fn_c_try_cpp "$LINENO"
7261 then :
7262
7263 else case e in #(
7264 e) # Broken: fails on valid input.
7265 continue ;;
7266 esac
7267 fi
7268 rm -f conftest.err conftest.i conftest.$ac_ext
7269
7270 # OK, works on sane cases. Now check whether nonexistent headers
7271 # can be detected and how.
7272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273 /* end confdefs.h. */
7274 #include <ac_nonexistent.h>
7275 _ACEOF
7276 if ac_fn_c_try_cpp "$LINENO"
7277 then :
7278 # Broken: success on invalid input.
7279 continue
7280 else case e in #(
7281 e) # Passes both tests.
7282 ac_preproc_ok=:
7283 break ;;
7284 esac
7285 fi
7286 rm -f conftest.err conftest.i conftest.$ac_ext
7287
7288 done
7289 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7290 rm -f conftest.i conftest.err conftest.$ac_ext
7291 if $ac_preproc_ok
7292 then :
7293
7294 else case e in #(
7295 e) { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7296 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
7297 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7298 See 'config.log' for more details" "$LINENO" 5; } ;;
7299 esac
7300 fi
7301
7302 ac_ext=c
7303 ac_cpp='$CPP $CPPFLAGS'
7304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7307
7308
7309 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
7310 printf %s "checking for egrep -e... " >&6; }
7311 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
7312 then :
7313 printf %s "(cached) " >&6
7314 else case e in #(
7315 e) if test -z "$EGREP_TRADITIONAL"; then
7316 ac_path_EGREP_TRADITIONAL_found=false
7317 # Loop through the user's path and test for each of PROGNAME-LIST
7318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7320 do
7321 IFS=$as_save_IFS
7322 case $as_dir in #(((
7323 '') as_dir=./ ;;
7324 */) ;;
7325 *) as_dir=$as_dir/ ;;
7326 esac
7327 for ac_prog in grep ggrep
7328 do
7329 for ac_exec_ext in '' $ac_executable_extensions; do
7330 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
7331 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
7332 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
7333 # Check for GNU $ac_path_EGREP_TRADITIONAL
7334 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
7335 *GNU*)
7336 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
7337 #(
7338 *)
7339 ac_count=0
7340 printf %s 0123456789 >"conftest.in"
7341 while :
7342 do
7343 cat "conftest.in" "conftest.in" >"conftest.tmp"
7344 mv "conftest.tmp" "conftest.in"
7345 cp "conftest.in" "conftest.nl"
7346 printf '%s\n' 'EGREP_TRADITIONAL' >> "conftest.nl"
7347 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7348 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7349 as_fn_arith $ac_count + 1 && ac_count=$as_val
7350 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
7351 # Best one so far, save it but keep looking for a better one
7352 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
7353 ac_path_EGREP_TRADITIONAL_max=$ac_count
7354 fi
7355 # 10*(2^10) chars as input seems more than enough
7356 test $ac_count -gt 10 && break
7357 done
7358 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7359 esac
7360
7361 $ac_path_EGREP_TRADITIONAL_found && break 3
7362 done
7363 done
7364 done
7365 IFS=$as_save_IFS
7366 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
7367 :
7368 fi
7369 else
7370 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
7371 fi
7372
7373 if test "$ac_cv_path_EGREP_TRADITIONAL"
7374 then :
7375 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
7376 else case e in #(
7377 e) if test -z "$EGREP_TRADITIONAL"; then
7378 ac_path_EGREP_TRADITIONAL_found=false
7379 # Loop through the user's path and test for each of PROGNAME-LIST
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7382 do
7383 IFS=$as_save_IFS
7384 case $as_dir in #(((
7385 '') as_dir=./ ;;
7386 */) ;;
7387 *) as_dir=$as_dir/ ;;
7388 esac
7389 for ac_prog in egrep
7390 do
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
7393 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
7394 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
7395 # Check for GNU $ac_path_EGREP_TRADITIONAL
7396 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
7397 *GNU*)
7398 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
7399 #(
7400 *)
7401 ac_count=0
7402 printf %s 0123456789 >"conftest.in"
7403 while :
7404 do
7405 cat "conftest.in" "conftest.in" >"conftest.tmp"
7406 mv "conftest.tmp" "conftest.in"
7407 cp "conftest.in" "conftest.nl"
7408 printf '%s\n' 'EGREP_TRADITIONAL' >> "conftest.nl"
7409 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7410 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7411 as_fn_arith $ac_count + 1 && ac_count=$as_val
7412 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
7413 # Best one so far, save it but keep looking for a better one
7414 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
7415 ac_path_EGREP_TRADITIONAL_max=$ac_count
7416 fi
7417 # 10*(2^10) chars as input seems more than enough
7418 test $ac_count -gt 10 && break
7419 done
7420 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7421 esac
7422
7423 $ac_path_EGREP_TRADITIONAL_found && break 3
7424 done
7425 done
7426 done
7427 IFS=$as_save_IFS
7428 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
7429 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7430 fi
7431 else
7432 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
7433 fi
7434 ;;
7435 esac
7436 fi ;;
7437 esac
7438 fi
7439 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
7440 printf '%s\n' "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
7441 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
7442
7443
7444
7445
7446
7447 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
7448 printf %s "checking for ELF binary format... " >&6; }
7449 if test ${gl_cv_elf+y}
7450 then :
7451 printf %s "(cached) " >&6
7452 else case e in #(
7453 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454 /* end confdefs.h. */
7455 #if defined __ELF__ || (defined __linux__ && (defined __EDG__ || defined __SUNPRO_C))
7456 Extensible Linking Format
7457 #endif
7458
7459 _ACEOF
7460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7461 $EGREP_TRADITIONAL "Extensible Linking Format" >/dev/null 2>&1
7462 then :
7463 gl_cv_elf=yes
7464 else case e in #(
7465 e) gl_cv_elf=no ;;
7466 esac
7467 fi
7468 rm -rf conftest*
7469
7470 ;;
7471 esac
7472 fi
7473 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
7474 printf '%s\n' "$gl_cv_elf" >&6; }
7475 if test $gl_cv_elf = yes; then
7476 # Extract the ELF class of a file (5th byte) in decimal.
7477 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
7478 if od -A x < /dev/null >/dev/null 2>/dev/null; then
7479 # Use POSIX od.
7480 func_elfclass ()
7481 {
7482 od -A n -t d1 -j 4 -N 1
7483 }
7484 else
7485 # Use BSD hexdump.
7486 func_elfclass ()
7487 {
7488 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
7489 echo
7490 }
7491 fi
7492 # Use 'expr', not 'test', to compare the values of func_elfclass, because on
7493 # Solaris 11 OpenIndiana and Solaris 11 OmniOS, the result is 001 or 002,
7494 # not 1 or 2.
7495 case $HOST_CPU_C_ABI_32BIT in
7496 yes)
7497 # 32-bit ABI.
7498 acl_is_expected_elfclass ()
7499 {
7500 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 1 > /dev/null
7501 }
7502 ;;
7503 no)
7504 # 64-bit ABI.
7505 acl_is_expected_elfclass ()
7506 {
7507 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 2 > /dev/null
7508 }
7509 ;;
7510 *)
7511 # Unknown.
7512 acl_is_expected_elfclass ()
7513 {
7514 :
7515 }
7516 ;;
7517 esac
7518 else
7519 acl_is_expected_elfclass ()
7520 {
7521 :
7522 }
7523 fi
7524
7525 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
7526 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
7527 if test ${acl_cv_libdirstems+y}
7528 then :
7529 printf %s "(cached) " >&6
7530 else case e in #(
7531 e) acl_libdirstem=lib
7532 acl_libdirstem2=
7533 acl_libdirstem3=
7534 case "$host_os" in
7535 solaris*)
7536 if test $HOST_CPU_C_ABI_32BIT = no; then
7537 acl_libdirstem2=lib/64
7538 case "$host_cpu" in
7539 sparc*) acl_libdirstem3=lib/sparcv9 ;;
7540 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
7541 esac
7542 fi
7543 ;;
7544 netbsd*)
7545 if test $HOST_CPU_C_ABI_32BIT != no; then
7546 case "$host_cpu" in
7547 sparc*) acl_libdirstem2=lib/sparc ;;
7548 esac
7549 fi
7550 ;;
7551 *)
7552 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
7553 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7554 if test $HOST_CPU_C_ABI_32BIT != no; then
7555 # 32-bit or unknown ABI.
7556 if test -d /usr/lib32; then
7557 acl_libdirstem2=lib32
7558 fi
7559 fi
7560 if test $HOST_CPU_C_ABI_32BIT != yes; then
7561 # 64-bit or unknown ABI.
7562 if test -d /usr/lib64; then
7563 acl_libdirstem3=lib64
7564 fi
7565 fi
7566 if test -n "$searchpath"; then
7567 acl_saved_IFS="${IFS= }"; IFS=":"
7568 for searchdir in $searchpath; do
7569 if test -d "$searchdir"; then
7570 case "$searchdir" in
7571 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
7572 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
7573 */../ | */.. )
7574 # Better ignore directories of this form. They are misleading.
7575 ;;
7576 *) searchdir=`cd "$searchdir" && pwd`
7577 case "$searchdir" in
7578 */lib32 ) acl_libdirstem2=lib32 ;;
7579 */lib64 ) acl_libdirstem3=lib64 ;;
7580 esac ;;
7581 esac
7582 fi
7583 done
7584 IFS="$acl_saved_IFS"
7585 if test $HOST_CPU_C_ABI_32BIT = yes; then
7586 # 32-bit ABI.
7587 acl_libdirstem3=
7588 fi
7589 if test $HOST_CPU_C_ABI_32BIT = no; then
7590 # 64-bit ABI.
7591 acl_libdirstem2=
7592 fi
7593 fi
7594 ;;
7595 esac
7596 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7597 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
7598 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
7599 ;;
7600 esac
7601 fi
7602 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
7603 printf '%s\n' "$acl_cv_libdirstems" >&6; }
7604 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
7605 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
7606 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618 use_additional=yes
7619
7620 acl_saved_prefix="$prefix"
7621 prefix="$acl_final_prefix"
7622 acl_saved_exec_prefix="$exec_prefix"
7623 exec_prefix="$acl_final_exec_prefix"
7624
7625 eval additional_includedir=\"$includedir\"
7626 eval additional_libdir=\"$libdir\"
7627 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7628 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
7629
7630 exec_prefix="$acl_saved_exec_prefix"
7631 prefix="$acl_saved_prefix"
7632
7633
7634 # Check whether --with-libiconv-prefix was given.
7635 if test ${with_libiconv_prefix+y}
7636 then :
7637 withval=$with_libiconv_prefix;
7638 if test "X$withval" = "Xno"; then
7639 use_additional=no
7640 else
7641 if test "X$withval" = "X"; then
7642
7643 acl_saved_prefix="$prefix"
7644 prefix="$acl_final_prefix"
7645 acl_saved_exec_prefix="$exec_prefix"
7646 exec_prefix="$acl_final_exec_prefix"
7647
7648 eval additional_includedir=\"$includedir\"
7649 eval additional_libdir=\"$libdir\"
7650 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7651 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
7652
7653 exec_prefix="$acl_saved_exec_prefix"
7654 prefix="$acl_saved_prefix"
7655
7656 else
7657 additional_includedir="$withval/include"
7658 additional_libdir="$withval/$acl_libdirstem"
7659 additional_libdir2="$withval/$acl_libdirstem2"
7660 additional_libdir3="$withval/$acl_libdirstem3"
7661 fi
7662 fi
7663
7664 fi
7665
7666 if test "X$additional_libdir2" = "X$additional_libdir"; then
7667 additional_libdir2=
7668 fi
7669 if test "X$additional_libdir3" = "X$additional_libdir"; then
7670 additional_libdir3=
7671 fi
7672 LIBICONV=
7673 LTLIBICONV=
7674 INCICONV=
7675 LIBICONV_PREFIX=
7676 HAVE_LIBICONV=
7677 rpathdirs=
7678 ltrpathdirs=
7679 names_already_handled=
7680 names_next_round='iconv '
7681 while test -n "$names_next_round"; do
7682 names_this_round="$names_next_round"
7683 names_next_round=
7684 for name in $names_this_round; do
7685 already_handled=
7686 for n in $names_already_handled; do
7687 if test "$n" = "$name"; then
7688 already_handled=yes
7689 break
7690 fi
7691 done
7692 if test -z "$already_handled"; then
7693 names_already_handled="$names_already_handled $name"
7694 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
7695 eval value=\"\$HAVE_LIB$uppername\"
7696 if test -n "$value"; then
7697 if test "$value" = yes; then
7698 eval value=\"\$LIB$uppername\"
7699 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7700 eval value=\"\$LTLIB$uppername\"
7701 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7702 else
7703 :
7704 fi
7705 else
7706 found_dir=
7707 found_la=
7708 found_so=
7709 found_a=
7710 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7711 if test -n "$acl_shlibext"; then
7712 shrext=".$acl_shlibext" # typically: shrext=.so
7713 else
7714 shrext=
7715 fi
7716 if test $use_additional = yes; then
7717 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
7718 if test "X$found_dir" = "X"; then
7719 eval dir=\$$additional_libdir_variable
7720 if test -n "$dir"; then
7721 if test -n "$acl_shlibext"; then
7722 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
7723 found_dir="$dir"
7724 found_so="$dir/$libname$shrext"
7725 else
7726 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7727 ver=`(cd "$dir" && \
7728 for f in "$libname$shrext".*; do echo "$f"; done \
7729 | sed -e "s,^$libname$shrext\\\\.,," \
7730 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7731 | sed 1q ) 2>/dev/null`
7732 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
7733 found_dir="$dir"
7734 found_so="$dir/$libname$shrext.$ver"
7735 fi
7736 else
7737 eval library_names=\"$acl_library_names_spec\"
7738 for f in $library_names; do
7739 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
7740 found_dir="$dir"
7741 found_so="$dir/$f"
7742 break
7743 fi
7744 done
7745 fi
7746 fi
7747 fi
7748 if test "X$found_dir" = "X"; then
7749 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
7750 found_dir="$dir"
7751 found_a="$dir/$libname.$acl_libext"
7752 fi
7753 fi
7754 if test "X$found_dir" != "X"; then
7755 if test -f "$dir/$libname.la"; then
7756 found_la="$dir/$libname.la"
7757 fi
7758 fi
7759 fi
7760 fi
7761 done
7762 fi
7763 if test "X$found_dir" = "X"; then
7764 for x in $LDFLAGS $LTLIBICONV; do
7765
7766 acl_saved_prefix="$prefix"
7767 prefix="$acl_final_prefix"
7768 acl_saved_exec_prefix="$exec_prefix"
7769 exec_prefix="$acl_final_exec_prefix"
7770 eval x=\"$x\"
7771 exec_prefix="$acl_saved_exec_prefix"
7772 prefix="$acl_saved_prefix"
7773
7774 case "$x" in
7775 -L*)
7776 dir=`echo "X$x" | sed -e 's/^X-L//'`
7777 if test -n "$acl_shlibext"; then
7778 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
7779 found_dir="$dir"
7780 found_so="$dir/$libname$shrext"
7781 else
7782 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7783 ver=`(cd "$dir" && \
7784 for f in "$libname$shrext".*; do echo "$f"; done \
7785 | sed -e "s,^$libname$shrext\\\\.,," \
7786 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7787 | sed 1q ) 2>/dev/null`
7788 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
7789 found_dir="$dir"
7790 found_so="$dir/$libname$shrext.$ver"
7791 fi
7792 else
7793 eval library_names=\"$acl_library_names_spec\"
7794 for f in $library_names; do
7795 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
7796 found_dir="$dir"
7797 found_so="$dir/$f"
7798 break
7799 fi
7800 done
7801 fi
7802 fi
7803 fi
7804 if test "X$found_dir" = "X"; then
7805 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
7806 found_dir="$dir"
7807 found_a="$dir/$libname.$acl_libext"
7808 fi
7809 fi
7810 if test "X$found_dir" != "X"; then
7811 if test -f "$dir/$libname.la"; then
7812 found_la="$dir/$libname.la"
7813 fi
7814 fi
7815 ;;
7816 esac
7817 if test "X$found_dir" != "X"; then
7818 break
7819 fi
7820 done
7821 fi
7822 if test "X$found_dir" != "X"; then
7823 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7824 if test "X$found_so" != "X"; then
7825 if test "$enable_rpath" = no \
7826 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7827 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
7828 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
7829 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7830 else
7831 haveit=
7832 for x in $ltrpathdirs; do
7833 if test "X$x" = "X$found_dir"; then
7834 haveit=yes
7835 break
7836 fi
7837 done
7838 if test -z "$haveit"; then
7839 ltrpathdirs="$ltrpathdirs $found_dir"
7840 fi
7841 if test "$acl_hardcode_direct" = yes; then
7842 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7843 else
7844 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7845 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7846 haveit=
7847 for x in $rpathdirs; do
7848 if test "X$x" = "X$found_dir"; then
7849 haveit=yes
7850 break
7851 fi
7852 done
7853 if test -z "$haveit"; then
7854 rpathdirs="$rpathdirs $found_dir"
7855 fi
7856 else
7857 haveit=
7858 for x in $LDFLAGS $LIBICONV; do
7859
7860 acl_saved_prefix="$prefix"
7861 prefix="$acl_final_prefix"
7862 acl_saved_exec_prefix="$exec_prefix"
7863 exec_prefix="$acl_final_exec_prefix"
7864 eval x=\"$x\"
7865 exec_prefix="$acl_saved_exec_prefix"
7866 prefix="$acl_saved_prefix"
7867
7868 if test "X$x" = "X-L$found_dir"; then
7869 haveit=yes
7870 break
7871 fi
7872 done
7873 if test -z "$haveit"; then
7874 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7875 fi
7876 if test "$acl_hardcode_minus_L" != no; then
7877 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7878 else
7879 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7880 fi
7881 fi
7882 fi
7883 fi
7884 else
7885 if test "X$found_a" != "X"; then
7886 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7887 else
7888 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7889 fi
7890 fi
7891 additional_includedir=
7892 case "$found_dir" in
7893 */$acl_libdirstem | */$acl_libdirstem/)
7894 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7895 if test "$name" = 'iconv'; then
7896 LIBICONV_PREFIX="$basedir"
7897 fi
7898 additional_includedir="$basedir/include"
7899 ;;
7900 */$acl_libdirstem2 | */$acl_libdirstem2/)
7901 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7902 if test "$name" = 'iconv'; then
7903 LIBICONV_PREFIX="$basedir"
7904 fi
7905 additional_includedir="$basedir/include"
7906 ;;
7907 */$acl_libdirstem3 | */$acl_libdirstem3/)
7908 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
7909 if test "$name" = 'iconv'; then
7910 LIBICONV_PREFIX="$basedir"
7911 fi
7912 additional_includedir="$basedir/include"
7913 ;;
7914 esac
7915 if test "X$additional_includedir" != "X"; then
7916 if test "X$additional_includedir" != "X/usr/include"; then
7917 haveit=
7918 if test "X$additional_includedir" = "X/usr/local/include"; then
7919 if test -n "$GCC"; then
7920 case $host_os in
7921 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7922 esac
7923 fi
7924 fi
7925 if test -z "$haveit"; then
7926 for x in $CPPFLAGS $INCICONV; do
7927
7928 acl_saved_prefix="$prefix"
7929 prefix="$acl_final_prefix"
7930 acl_saved_exec_prefix="$exec_prefix"
7931 exec_prefix="$acl_final_exec_prefix"
7932 eval x=\"$x\"
7933 exec_prefix="$acl_saved_exec_prefix"
7934 prefix="$acl_saved_prefix"
7935
7936 if test "X$x" = "X-I$additional_includedir"; then
7937 haveit=yes
7938 break
7939 fi
7940 done
7941 if test -z "$haveit"; then
7942 if test -d "$additional_includedir"; then
7943 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7944 fi
7945 fi
7946 fi
7947 fi
7948 fi
7949 if test -n "$found_la"; then
7950 saved_libdir="$libdir"
7951 case "$found_la" in
7952 */* | *\\*) . "$found_la" ;;
7953 *) . "./$found_la" ;;
7954 esac
7955 libdir="$saved_libdir"
7956 for dep in $dependency_libs; do
7957 case "$dep" in
7958 -L*)
7959 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7960 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
7961 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
7962 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
7963 haveit=
7964 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
7965 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
7966 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
7967 if test -n "$GCC"; then
7968 case $host_os in
7969 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7970 esac
7971 fi
7972 fi
7973 if test -z "$haveit"; then
7974 haveit=
7975 for x in $LDFLAGS $LIBICONV; do
7976
7977 acl_saved_prefix="$prefix"
7978 prefix="$acl_final_prefix"
7979 acl_saved_exec_prefix="$exec_prefix"
7980 exec_prefix="$acl_final_exec_prefix"
7981 eval x=\"$x\"
7982 exec_prefix="$acl_saved_exec_prefix"
7983 prefix="$acl_saved_prefix"
7984
7985 if test "X$x" = "X-L$dependency_libdir"; then
7986 haveit=yes
7987 break
7988 fi
7989 done
7990 if test -z "$haveit"; then
7991 if test -d "$dependency_libdir"; then
7992 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
7993 fi
7994 fi
7995 haveit=
7996 for x in $LDFLAGS $LTLIBICONV; do
7997
7998 acl_saved_prefix="$prefix"
7999 prefix="$acl_final_prefix"
8000 acl_saved_exec_prefix="$exec_prefix"
8001 exec_prefix="$acl_final_exec_prefix"
8002 eval x=\"$x\"
8003 exec_prefix="$acl_saved_exec_prefix"
8004 prefix="$acl_saved_prefix"
8005
8006 if test "X$x" = "X-L$dependency_libdir"; then
8007 haveit=yes
8008 break
8009 fi
8010 done
8011 if test -z "$haveit"; then
8012 if test -d "$dependency_libdir"; then
8013 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
8014 fi
8015 fi
8016 fi
8017 fi
8018 ;;
8019 -R*)
8020 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8021 if test "$enable_rpath" != no; then
8022 haveit=
8023 for x in $rpathdirs; do
8024 if test "X$x" = "X$dir"; then
8025 haveit=yes
8026 break
8027 fi
8028 done
8029 if test -z "$haveit"; then
8030 rpathdirs="$rpathdirs $dir"
8031 fi
8032 haveit=
8033 for x in $ltrpathdirs; do
8034 if test "X$x" = "X$dir"; then
8035 haveit=yes
8036 break
8037 fi
8038 done
8039 if test -z "$haveit"; then
8040 ltrpathdirs="$ltrpathdirs $dir"
8041 fi
8042 fi
8043 ;;
8044 -l*)
8045 dep=`echo "X$dep" | sed -e 's/^X-l//'`
8046 if test "X$dep" != Xc \
8047 || case $host_os in
8048 linux* | gnu* | k*bsd*-gnu) false ;;
8049 *) true ;;
8050 esac; then
8051 names_next_round="$names_next_round $dep"
8052 fi
8053 ;;
8054 *.la)
8055 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8056 ;;
8057 *)
8058 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8059 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8060 ;;
8061 esac
8062 done
8063 fi
8064 else
8065 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8066 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8067 fi
8068 fi
8069 fi
8070 done
8071 done
8072 if test "X$rpathdirs" != "X"; then
8073 if test -n "$acl_hardcode_libdir_separator"; then
8074 alldirs=
8075 for found_dir in $rpathdirs; do
8076 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8077 done
8078 acl_saved_libdir="$libdir"
8079 libdir="$alldirs"
8080 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8081 libdir="$acl_saved_libdir"
8082 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8083 else
8084 for found_dir in $rpathdirs; do
8085 acl_saved_libdir="$libdir"
8086 libdir="$found_dir"
8087 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8088 libdir="$acl_saved_libdir"
8089 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8090 done
8091 fi
8092 fi
8093 if test "X$ltrpathdirs" != "X"; then
8094 for found_dir in $ltrpathdirs; do
8095 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8096 done
8097 fi
8098
8099
8100
8101
8102
8103
8104
8105 gl_sed_double_backslashes='s/\\/\\\\/g'
8106 gl_sed_escape_doublequotes='s/"/\\"/g'
8107 gl_sed_escape_for_make_1="s,\\([ \"&'();<>\\\\\`|]\\),\\\\\\1,g"
8108 gl_sed_escape_for_make_2='s,\$,\\$$,g'
8109 case `echo r | tr -d '\r'` in
8110 '') gl_tr_cr='\015' ;;
8111 *) gl_tr_cr='\r' ;;
8112 esac
8113
8114
8115 gl_saved_prefix="${prefix}"
8116 gl_saved_datarootdir="${datarootdir}"
8117 gl_saved_localedir="${localedir}"
8118 if test "X$prefix" = "XNONE"; then
8119 prefix="$ac_default_prefix"
8120 fi
8121 eval datarootdir="$datarootdir"
8122 eval localedir="$localedir"
8123
8124
8125
8126
8127
8128 gl_final_localedir="$localedir"
8129 case "$build_os" in
8130 cygwin*)
8131 case "$host_os" in
8132 mingw* | windows*)
8133 gl_final_localedir=`cygpath -w "$gl_final_localedir"` ;;
8134 esac
8135 ;;
8136 esac
8137 localedir_c=`printf '%s\n' "$gl_final_localedir" | sed -e "$gl_sed_double_backslashes" -e "$gl_sed_escape_doublequotes" | tr -d "$gl_tr_cr"`
8138 localedir_c='"'"$localedir_c"'"'
8139
8140
8141 localedir_c_make=`printf '%s\n' "$localedir_c" | sed -e "$gl_sed_escape_for_make_1" -e "$gl_sed_escape_for_make_2" | tr -d "$gl_tr_cr"`
8142 if test "$localedir_c_make" = '\"'"${gl_final_localedir}"'\"'; then
8143 localedir_c_make='\"$(localedir)\"'
8144 fi
8145
8146
8147 localedir="${gl_saved_localedir}"
8148 datarootdir="${gl_saved_datarootdir}"
8149 prefix="${gl_saved_prefix}"
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8174 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
8175 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
8176 then :
8177 printf %s "(cached) " >&6
8178 else case e in #(
8179 e) gt_saved_LIBS="$LIBS"
8180 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8182 /* end confdefs.h. */
8183 #include <CoreFoundation/CFPreferences.h>
8184 int
8185 main (void)
8186 {
8187 CFPreferencesCopyAppValue(NULL, NULL)
8188 ;
8189 return 0;
8190 }
8191 _ACEOF
8192 if ac_fn_c_try_link "$LINENO"
8193 then :
8194 gt_cv_func_CFPreferencesCopyAppValue=yes
8195 else case e in #(
8196 e) gt_cv_func_CFPreferencesCopyAppValue=no ;;
8197 esac
8198 fi
8199 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8200 conftest$ac_exeext conftest.$ac_ext
8201 LIBS="$gt_saved_LIBS" ;;
8202 esac
8203 fi
8204 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8205 printf '%s\n' "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8206 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8207
8208 printf '%s\n' "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8209
8210 fi
8211 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
8212 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
8213 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
8214 then :
8215 printf %s "(cached) " >&6
8216 else case e in #(
8217 e) gt_saved_LIBS="$LIBS"
8218 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220 /* end confdefs.h. */
8221 #include <CoreFoundation/CFLocale.h>
8222 int
8223 main (void)
8224 {
8225 CFLocaleCopyPreferredLanguages();
8226 ;
8227 return 0;
8228 }
8229 _ACEOF
8230 if ac_fn_c_try_link "$LINENO"
8231 then :
8232 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
8233 else case e in #(
8234 e) gt_cv_func_CFLocaleCopyPreferredLanguages=no ;;
8235 esac
8236 fi
8237 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8238 conftest$ac_exeext conftest.$ac_ext
8239 LIBS="$gt_saved_LIBS" ;;
8240 esac
8241 fi
8242 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
8243 printf '%s\n' "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
8244 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
8245
8246 printf '%s\n' "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
8247
8248 fi
8249 INTL_MACOSX_LIBS=
8250 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
8251 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
8252 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
8253 fi
8254
8255
8256
8257
8258 INTL_WINDOWS_LIBS=
8259 case "$host_os" in
8260 mingw* | windows*) INTL_WINDOWS_LIBS='-ladvapi32' ;;
8261 esac
8262
8263
8264
8265
8266 LIBINTL=
8267 LTLIBINTL=
8268 POSUB=
8269
8270 case " $gt_needs " in
8271 *" need-formatstring-macros "*) gt_api_version=3 ;;
8272 *" need-ngettext "*) gt_api_version=2 ;;
8273 *) gt_api_version=1 ;;
8274 esac
8275 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
8276 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
8277
8278 if test "$USE_NLS" = "yes"; then
8279 gt_use_preinstalled_gnugettext=no
8280
8281
8282 if test $gt_api_version -ge 3; then
8283 gt_revision_test_code='
8284 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8285 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
8286 #endif
8287 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
8288 '
8289 else
8290 gt_revision_test_code=
8291 fi
8292 if test $gt_api_version -ge 2; then
8293 gt_expression_test_code=' + * ngettext ("", "", 0)'
8294 else
8295 gt_expression_test_code=
8296 fi
8297
8298
8299 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8300 printf %s "checking for GNU gettext in libc... " >&6; }
8301 if eval test \${$gt_func_gnugettext_libc+y}
8302 then :
8303 printf %s "(cached) " >&6
8304 else case e in #(
8305 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8306 /* end confdefs.h. */
8307
8308 #include <libintl.h>
8309 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8310 #if defined _MSC_VER
8311 #define _nl_msg_cat_cntr 0
8312 #else
8313 extern int _nl_msg_cat_cntr;
8314 #endif
8315 extern int *_nl_domain_bindings;
8316 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
8317 #else
8318 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8319 #endif
8320 $gt_revision_test_code
8321
8322 int
8323 main (void)
8324 {
8325
8326 bindtextdomain ("", "");
8327 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8328
8329 ;
8330 return 0;
8331 }
8332 _ACEOF
8333 if ac_fn_c_try_link "$LINENO"
8334 then :
8335 if test "`uname -sr`" = 'SunOS 5.11'; then
8336 case `uname -v` in
8337 11.4 | 11.4.*) eval "$gt_func_gnugettext_libc=yes" ;;
8338 *) eval "$gt_func_gnugettext_libc=no" ;;
8339 esac
8340 else
8341 eval "$gt_func_gnugettext_libc=yes"
8342 fi
8343
8344 else case e in #(
8345 e) eval "$gt_func_gnugettext_libc=no" ;;
8346 esac
8347 fi
8348 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8349 conftest$ac_exeext conftest.$ac_ext ;;
8350 esac
8351 fi
8352 eval ac_res=\$$gt_func_gnugettext_libc
8353 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8354 printf '%s\n' "$ac_res" >&6; }
8355
8356 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
8357
8358
8359
8360
8361
8362 gl_saved_CPPFLAGS="$CPPFLAGS"
8363
8364 for element in $INCICONV; do
8365 haveit=
8366 for x in $CPPFLAGS; do
8367
8368 acl_saved_prefix="$prefix"
8369 prefix="$acl_final_prefix"
8370 acl_saved_exec_prefix="$exec_prefix"
8371 exec_prefix="$acl_final_exec_prefix"
8372 eval x=\"$x\"
8373 exec_prefix="$acl_saved_exec_prefix"
8374 prefix="$acl_saved_prefix"
8375
8376 if test "X$x" = "X$element"; then
8377 haveit=yes
8378 break
8379 fi
8380 done
8381 if test -z "$haveit"; then
8382 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8383 fi
8384 done
8385
8386
8387 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8388 printf %s "checking for iconv... " >&6; }
8389 if test ${am_cv_func_iconv+y}
8390 then :
8391 printf %s "(cached) " >&6
8392 else case e in #(
8393 e)
8394 am_cv_func_iconv="no, consider installing GNU libiconv"
8395 am_cv_lib_iconv=no
8396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8397 /* end confdefs.h. */
8398
8399 #include <stdlib.h>
8400 #include <iconv.h>
8401
8402 int
8403 main (void)
8404 {
8405 iconv_t cd = iconv_open("","");
8406 iconv(cd,NULL,NULL,NULL,NULL);
8407 iconv_close(cd);
8408 ;
8409 return 0;
8410 }
8411 _ACEOF
8412 if ac_fn_c_try_link "$LINENO"
8413 then :
8414 am_cv_func_iconv=yes
8415 fi
8416 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8417 conftest$ac_exeext conftest.$ac_ext
8418 if test "$am_cv_func_iconv" != yes; then
8419 gl_saved_LIBS="$LIBS"
8420 LIBS="$LIBS $LIBICONV"
8421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8422 /* end confdefs.h. */
8423
8424 #include <stdlib.h>
8425 #include <iconv.h>
8426
8427 int
8428 main (void)
8429 {
8430 iconv_t cd = iconv_open("","");
8431 iconv(cd,NULL,NULL,NULL,NULL);
8432 iconv_close(cd);
8433 ;
8434 return 0;
8435 }
8436 _ACEOF
8437 if ac_fn_c_try_link "$LINENO"
8438 then :
8439 am_cv_lib_iconv=yes
8440 am_cv_func_iconv=yes
8441 fi
8442 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8443 conftest$ac_exeext conftest.$ac_ext
8444 LIBS="$gl_saved_LIBS"
8445 fi
8446 ;;
8447 esac
8448 fi
8449 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8450 printf '%s\n' "$am_cv_func_iconv" >&6; }
8451 if test "$am_cv_func_iconv" = yes; then
8452 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
8453 printf %s "checking for working iconv... " >&6; }
8454 if test ${am_cv_func_iconv_works+y}
8455 then :
8456 printf %s "(cached) " >&6
8457 else case e in #(
8458 e)
8459 gl_saved_LIBS="$LIBS"
8460 if test $am_cv_lib_iconv = yes; then
8461 LIBS="$LIBS $LIBICONV"
8462 fi
8463 am_cv_func_iconv_works=no
8464 for ac_iconv_const in '' 'const'; do
8465 if test "$cross_compiling" = yes
8466 then :
8467 case "$host_os" in
8468 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8469 *) am_cv_func_iconv_works="guessing yes" ;;
8470 esac
8471 else case e in #(
8472 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8473 /* end confdefs.h. */
8474
8475 #include <iconv.h>
8476 #include <string.h>
8477
8478 #ifndef ICONV_CONST
8479 # define ICONV_CONST $ac_iconv_const
8480 #endif
8481
8482 int
8483 main (void)
8484 {
8485 int result = 0;
8486 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
8487 successful returns. This is even documented in
8488 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
8489 {
8490 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8491 if (cd_utf8_to_88591 != (iconv_t)(-1))
8492 {
8493 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
8494 char buf[10];
8495 ICONV_CONST char *inptr = input;
8496 size_t inbytesleft = strlen (input);
8497 char *outptr = buf;
8498 size_t outbytesleft = sizeof (buf);
8499 size_t res = iconv (cd_utf8_to_88591,
8500 &inptr, &inbytesleft,
8501 &outptr, &outbytesleft);
8502 if (res == 0)
8503 result |= 1;
8504 iconv_close (cd_utf8_to_88591);
8505 }
8506 }
8507 /* Test against macOS 14.4 bug: Failures are not distinguishable from
8508 successful returns.
8509 POSIX:2018 says: "The iconv() function shall ... return the number of
8510 non-identical conversions performed."
8511 But here, the conversion always does transliteration (the suffixes
8512 "//TRANSLIT" and "//IGNORE" have no effect, nor does iconvctl()) and
8513 does not report when it does a non-identical conversion. */
8514 {
8515 iconv_t cd_utf8_to_88591 = iconv_open ("ISO-8859-1", "UTF-8");
8516 if (cd_utf8_to_88591 != (iconv_t)(-1))
8517 {
8518 static ICONV_CONST char input[] = "\305\202"; /* LATIN SMALL LETTER L WITH STROKE */
8519 char buf[10];
8520 ICONV_CONST char *inptr = input;
8521 size_t inbytesleft = strlen (input);
8522 char *outptr = buf;
8523 size_t outbytesleft = sizeof (buf);
8524 size_t res = iconv (cd_utf8_to_88591,
8525 &inptr, &inbytesleft,
8526 &outptr, &outbytesleft);
8527 /* Here:
8528 With glibc, GNU libiconv (including macOS up to 13): res == (size_t)-1, errno == EILSEQ.
8529 With musl libc, NetBSD 10, Solaris 11: res == 1.
8530 With macOS 14.4: res == 0, output is "l". */
8531 if (res == 0)
8532 result |= 2;
8533 iconv_close (cd_utf8_to_88591);
8534 }
8535 }
8536 /* Test against Solaris 10 bug: Failures are not distinguishable from
8537 successful returns. */
8538 {
8539 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8540 if (cd_ascii_to_88591 != (iconv_t)(-1))
8541 {
8542 static ICONV_CONST char input[] = "\263";
8543 char buf[10];
8544 ICONV_CONST char *inptr = input;
8545 size_t inbytesleft = strlen (input);
8546 char *outptr = buf;
8547 size_t outbytesleft = sizeof (buf);
8548 size_t res = iconv (cd_ascii_to_88591,
8549 &inptr, &inbytesleft,
8550 &outptr, &outbytesleft);
8551 if (res == 0)
8552 result |= 4;
8553 iconv_close (cd_ascii_to_88591);
8554 }
8555 }
8556 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8557 {
8558 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8559 if (cd_88591_to_utf8 != (iconv_t)(-1))
8560 {
8561 static ICONV_CONST char input[] = "\304";
8562 static char buf[2] = { (char)0xDE, (char)0xAD };
8563 ICONV_CONST char *inptr = input;
8564 size_t inbytesleft = 1;
8565 char *outptr = buf;
8566 size_t outbytesleft = 1;
8567 size_t res = iconv (cd_88591_to_utf8,
8568 &inptr, &inbytesleft,
8569 &outptr, &outbytesleft);
8570 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8571 result |= 8;
8572 iconv_close (cd_88591_to_utf8);
8573 }
8574 }
8575 #if 0 /* This bug could be worked around by the caller. */
8576 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8577 {
8578 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8579 if (cd_88591_to_utf8 != (iconv_t)(-1))
8580 {
8581 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8582 char buf[50];
8583 ICONV_CONST char *inptr = input;
8584 size_t inbytesleft = strlen (input);
8585 char *outptr = buf;
8586 size_t outbytesleft = sizeof (buf);
8587 size_t res = iconv (cd_88591_to_utf8,
8588 &inptr, &inbytesleft,
8589 &outptr, &outbytesleft);
8590 if ((int)res > 0)
8591 result |= 16;
8592 iconv_close (cd_88591_to_utf8);
8593 }
8594 }
8595 #endif
8596 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8597 provided. */
8598 {
8599 /* Try standardized names. */
8600 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
8601 /* Try possible *BSD names. */
8602 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
8603 /* Try AIX names. */
8604 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
8605 /* Try HP-UX names. */
8606 iconv_t cd4 = iconv_open ("utf8", "eucJP");
8607 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
8608 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
8609 result |= 32;
8610 if (cd1 != (iconv_t)(-1))
8611 iconv_close (cd1);
8612 if (cd2 != (iconv_t)(-1))
8613 iconv_close (cd2);
8614 if (cd3 != (iconv_t)(-1))
8615 iconv_close (cd3);
8616 if (cd4 != (iconv_t)(-1))
8617 iconv_close (cd4);
8618 }
8619 return result;
8620
8621 ;
8622 return 0;
8623 }
8624 _ACEOF
8625 if ac_fn_c_try_run "$LINENO"
8626 then :
8627 am_cv_func_iconv_works=yes
8628 fi
8629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8630 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8631 esac
8632 fi
8633
8634 test "$am_cv_func_iconv_works" = no || break
8635 done
8636 LIBS="$gl_saved_LIBS"
8637 ;;
8638 esac
8639 fi
8640 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8641 printf '%s\n' "$am_cv_func_iconv_works" >&6; }
8642 case "$am_cv_func_iconv_works" in
8643 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8644 *) am_func_iconv=yes ;;
8645 esac
8646 else
8647 am_func_iconv=no am_cv_lib_iconv=no
8648 fi
8649 if test "$am_func_iconv" = yes; then
8650
8651 printf '%s\n' "#define HAVE_ICONV 1" >>confdefs.h
8652
8653 fi
8654 if test "$am_cv_lib_iconv" = yes; then
8655 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8656 printf %s "checking how to link with libiconv... " >&6; }
8657 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8658 printf '%s\n' "$LIBICONV" >&6; }
8659 else
8660 CPPFLAGS="$gl_saved_CPPFLAGS"
8661 LIBICONV=
8662 LTLIBICONV=
8663 fi
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674 use_additional=yes
8675
8676 acl_saved_prefix="$prefix"
8677 prefix="$acl_final_prefix"
8678 acl_saved_exec_prefix="$exec_prefix"
8679 exec_prefix="$acl_final_exec_prefix"
8680
8681 eval additional_includedir=\"$includedir\"
8682 eval additional_libdir=\"$libdir\"
8683 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
8684 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
8685
8686 exec_prefix="$acl_saved_exec_prefix"
8687 prefix="$acl_saved_prefix"
8688
8689
8690 # Check whether --with-libintl-prefix was given.
8691 if test ${with_libintl_prefix+y}
8692 then :
8693 withval=$with_libintl_prefix;
8694 if test "X$withval" = "Xno"; then
8695 use_additional=no
8696 else
8697 if test "X$withval" = "X"; then
8698
8699 acl_saved_prefix="$prefix"
8700 prefix="$acl_final_prefix"
8701 acl_saved_exec_prefix="$exec_prefix"
8702 exec_prefix="$acl_final_exec_prefix"
8703
8704 eval additional_includedir=\"$includedir\"
8705 eval additional_libdir=\"$libdir\"
8706 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
8707 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
8708
8709 exec_prefix="$acl_saved_exec_prefix"
8710 prefix="$acl_saved_prefix"
8711
8712 else
8713 additional_includedir="$withval/include"
8714 additional_libdir="$withval/$acl_libdirstem"
8715 additional_libdir2="$withval/$acl_libdirstem2"
8716 additional_libdir3="$withval/$acl_libdirstem3"
8717 fi
8718 fi
8719
8720 fi
8721
8722 if test "X$additional_libdir2" = "X$additional_libdir"; then
8723 additional_libdir2=
8724 fi
8725 if test "X$additional_libdir3" = "X$additional_libdir"; then
8726 additional_libdir3=
8727 fi
8728 LIBINTL=
8729 LTLIBINTL=
8730 INCINTL=
8731 LIBINTL_PREFIX=
8732 HAVE_LIBINTL=
8733 rpathdirs=
8734 ltrpathdirs=
8735 names_already_handled=
8736 names_next_round='intl '
8737 while test -n "$names_next_round"; do
8738 names_this_round="$names_next_round"
8739 names_next_round=
8740 for name in $names_this_round; do
8741 already_handled=
8742 for n in $names_already_handled; do
8743 if test "$n" = "$name"; then
8744 already_handled=yes
8745 break
8746 fi
8747 done
8748 if test -z "$already_handled"; then
8749 names_already_handled="$names_already_handled $name"
8750 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8751 eval value=\"\$HAVE_LIB$uppername\"
8752 if test -n "$value"; then
8753 if test "$value" = yes; then
8754 eval value=\"\$LIB$uppername\"
8755 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8756 eval value=\"\$LTLIB$uppername\"
8757 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8758 else
8759 :
8760 fi
8761 else
8762 found_dir=
8763 found_la=
8764 found_so=
8765 found_a=
8766 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8767 if test -n "$acl_shlibext"; then
8768 shrext=".$acl_shlibext" # typically: shrext=.so
8769 else
8770 shrext=
8771 fi
8772 if test $use_additional = yes; then
8773 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
8774 if test "X$found_dir" = "X"; then
8775 eval dir=\$$additional_libdir_variable
8776 if test -n "$dir"; then
8777 if test -n "$acl_shlibext"; then
8778 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
8779 found_dir="$dir"
8780 found_so="$dir/$libname$shrext"
8781 else
8782 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8783 ver=`(cd "$dir" && \
8784 for f in "$libname$shrext".*; do echo "$f"; done \
8785 | sed -e "s,^$libname$shrext\\\\.,," \
8786 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8787 | sed 1q ) 2>/dev/null`
8788 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
8789 found_dir="$dir"
8790 found_so="$dir/$libname$shrext.$ver"
8791 fi
8792 else
8793 eval library_names=\"$acl_library_names_spec\"
8794 for f in $library_names; do
8795 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
8796 found_dir="$dir"
8797 found_so="$dir/$f"
8798 break
8799 fi
8800 done
8801 fi
8802 fi
8803 fi
8804 if test "X$found_dir" = "X"; then
8805 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
8806 found_dir="$dir"
8807 found_a="$dir/$libname.$acl_libext"
8808 fi
8809 fi
8810 if test "X$found_dir" != "X"; then
8811 if test -f "$dir/$libname.la"; then
8812 found_la="$dir/$libname.la"
8813 fi
8814 fi
8815 fi
8816 fi
8817 done
8818 fi
8819 if test "X$found_dir" = "X"; then
8820 for x in $LDFLAGS $LTLIBINTL; do
8821
8822 acl_saved_prefix="$prefix"
8823 prefix="$acl_final_prefix"
8824 acl_saved_exec_prefix="$exec_prefix"
8825 exec_prefix="$acl_final_exec_prefix"
8826 eval x=\"$x\"
8827 exec_prefix="$acl_saved_exec_prefix"
8828 prefix="$acl_saved_prefix"
8829
8830 case "$x" in
8831 -L*)
8832 dir=`echo "X$x" | sed -e 's/^X-L//'`
8833 if test -n "$acl_shlibext"; then
8834 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
8835 found_dir="$dir"
8836 found_so="$dir/$libname$shrext"
8837 else
8838 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8839 ver=`(cd "$dir" && \
8840 for f in "$libname$shrext".*; do echo "$f"; done \
8841 | sed -e "s,^$libname$shrext\\\\.,," \
8842 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8843 | sed 1q ) 2>/dev/null`
8844 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
8845 found_dir="$dir"
8846 found_so="$dir/$libname$shrext.$ver"
8847 fi
8848 else
8849 eval library_names=\"$acl_library_names_spec\"
8850 for f in $library_names; do
8851 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
8852 found_dir="$dir"
8853 found_so="$dir/$f"
8854 break
8855 fi
8856 done
8857 fi
8858 fi
8859 fi
8860 if test "X$found_dir" = "X"; then
8861 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
8862 found_dir="$dir"
8863 found_a="$dir/$libname.$acl_libext"
8864 fi
8865 fi
8866 if test "X$found_dir" != "X"; then
8867 if test -f "$dir/$libname.la"; then
8868 found_la="$dir/$libname.la"
8869 fi
8870 fi
8871 ;;
8872 esac
8873 if test "X$found_dir" != "X"; then
8874 break
8875 fi
8876 done
8877 fi
8878 if test "X$found_dir" != "X"; then
8879 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8880 if test "X$found_so" != "X"; then
8881 if test "$enable_rpath" = no \
8882 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8883 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
8884 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
8885 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8886 else
8887 haveit=
8888 for x in $ltrpathdirs; do
8889 if test "X$x" = "X$found_dir"; then
8890 haveit=yes
8891 break
8892 fi
8893 done
8894 if test -z "$haveit"; then
8895 ltrpathdirs="$ltrpathdirs $found_dir"
8896 fi
8897 if test "$acl_hardcode_direct" = yes; then
8898 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8899 else
8900 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8901 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8902 haveit=
8903 for x in $rpathdirs; do
8904 if test "X$x" = "X$found_dir"; then
8905 haveit=yes
8906 break
8907 fi
8908 done
8909 if test -z "$haveit"; then
8910 rpathdirs="$rpathdirs $found_dir"
8911 fi
8912 else
8913 haveit=
8914 for x in $LDFLAGS $LIBINTL; do
8915
8916 acl_saved_prefix="$prefix"
8917 prefix="$acl_final_prefix"
8918 acl_saved_exec_prefix="$exec_prefix"
8919 exec_prefix="$acl_final_exec_prefix"
8920 eval x=\"$x\"
8921 exec_prefix="$acl_saved_exec_prefix"
8922 prefix="$acl_saved_prefix"
8923
8924 if test "X$x" = "X-L$found_dir"; then
8925 haveit=yes
8926 break
8927 fi
8928 done
8929 if test -z "$haveit"; then
8930 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8931 fi
8932 if test "$acl_hardcode_minus_L" != no; then
8933 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8934 else
8935 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8936 fi
8937 fi
8938 fi
8939 fi
8940 else
8941 if test "X$found_a" != "X"; then
8942 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8943 else
8944 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8945 fi
8946 fi
8947 additional_includedir=
8948 case "$found_dir" in
8949 */$acl_libdirstem | */$acl_libdirstem/)
8950 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8951 if test "$name" = 'intl'; then
8952 LIBINTL_PREFIX="$basedir"
8953 fi
8954 additional_includedir="$basedir/include"
8955 ;;
8956 */$acl_libdirstem2 | */$acl_libdirstem2/)
8957 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8958 if test "$name" = 'intl'; then
8959 LIBINTL_PREFIX="$basedir"
8960 fi
8961 additional_includedir="$basedir/include"
8962 ;;
8963 */$acl_libdirstem3 | */$acl_libdirstem3/)
8964 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
8965 if test "$name" = 'intl'; then
8966 LIBINTL_PREFIX="$basedir"
8967 fi
8968 additional_includedir="$basedir/include"
8969 ;;
8970 esac
8971 if test "X$additional_includedir" != "X"; then
8972 if test "X$additional_includedir" != "X/usr/include"; then
8973 haveit=
8974 if test "X$additional_includedir" = "X/usr/local/include"; then
8975 if test -n "$GCC"; then
8976 case $host_os in
8977 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8978 esac
8979 fi
8980 fi
8981 if test -z "$haveit"; then
8982 for x in $CPPFLAGS $INCINTL; do
8983
8984 acl_saved_prefix="$prefix"
8985 prefix="$acl_final_prefix"
8986 acl_saved_exec_prefix="$exec_prefix"
8987 exec_prefix="$acl_final_exec_prefix"
8988 eval x=\"$x\"
8989 exec_prefix="$acl_saved_exec_prefix"
8990 prefix="$acl_saved_prefix"
8991
8992 if test "X$x" = "X-I$additional_includedir"; then
8993 haveit=yes
8994 break
8995 fi
8996 done
8997 if test -z "$haveit"; then
8998 if test -d "$additional_includedir"; then
8999 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9000 fi
9001 fi
9002 fi
9003 fi
9004 fi
9005 if test -n "$found_la"; then
9006 saved_libdir="$libdir"
9007 case "$found_la" in
9008 */* | *\\*) . "$found_la" ;;
9009 *) . "./$found_la" ;;
9010 esac
9011 libdir="$saved_libdir"
9012 for dep in $dependency_libs; do
9013 case "$dep" in
9014 -L*)
9015 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9016 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
9017 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
9018 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
9019 haveit=
9020 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
9021 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
9022 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
9023 if test -n "$GCC"; then
9024 case $host_os in
9025 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9026 esac
9027 fi
9028 fi
9029 if test -z "$haveit"; then
9030 haveit=
9031 for x in $LDFLAGS $LIBINTL; do
9032
9033 acl_saved_prefix="$prefix"
9034 prefix="$acl_final_prefix"
9035 acl_saved_exec_prefix="$exec_prefix"
9036 exec_prefix="$acl_final_exec_prefix"
9037 eval x=\"$x\"
9038 exec_prefix="$acl_saved_exec_prefix"
9039 prefix="$acl_saved_prefix"
9040
9041 if test "X$x" = "X-L$dependency_libdir"; then
9042 haveit=yes
9043 break
9044 fi
9045 done
9046 if test -z "$haveit"; then
9047 if test -d "$dependency_libdir"; then
9048 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
9049 fi
9050 fi
9051 haveit=
9052 for x in $LDFLAGS $LTLIBINTL; do
9053
9054 acl_saved_prefix="$prefix"
9055 prefix="$acl_final_prefix"
9056 acl_saved_exec_prefix="$exec_prefix"
9057 exec_prefix="$acl_final_exec_prefix"
9058 eval x=\"$x\"
9059 exec_prefix="$acl_saved_exec_prefix"
9060 prefix="$acl_saved_prefix"
9061
9062 if test "X$x" = "X-L$dependency_libdir"; then
9063 haveit=yes
9064 break
9065 fi
9066 done
9067 if test -z "$haveit"; then
9068 if test -d "$dependency_libdir"; then
9069 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
9070 fi
9071 fi
9072 fi
9073 fi
9074 ;;
9075 -R*)
9076 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9077 if test "$enable_rpath" != no; then
9078 haveit=
9079 for x in $rpathdirs; do
9080 if test "X$x" = "X$dir"; then
9081 haveit=yes
9082 break
9083 fi
9084 done
9085 if test -z "$haveit"; then
9086 rpathdirs="$rpathdirs $dir"
9087 fi
9088 haveit=
9089 for x in $ltrpathdirs; do
9090 if test "X$x" = "X$dir"; then
9091 haveit=yes
9092 break
9093 fi
9094 done
9095 if test -z "$haveit"; then
9096 ltrpathdirs="$ltrpathdirs $dir"
9097 fi
9098 fi
9099 ;;
9100 -l*)
9101 dep=`echo "X$dep" | sed -e 's/^X-l//'`
9102 if test "X$dep" != Xc \
9103 || case $host_os in
9104 linux* | gnu* | k*bsd*-gnu) false ;;
9105 *) true ;;
9106 esac; then
9107 names_next_round="$names_next_round $dep"
9108 fi
9109 ;;
9110 *.la)
9111 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9112 ;;
9113 *)
9114 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9115 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9116 ;;
9117 esac
9118 done
9119 fi
9120 else
9121 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9122 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9123 fi
9124 fi
9125 fi
9126 done
9127 done
9128 if test "X$rpathdirs" != "X"; then
9129 if test -n "$acl_hardcode_libdir_separator"; then
9130 alldirs=
9131 for found_dir in $rpathdirs; do
9132 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9133 done
9134 acl_saved_libdir="$libdir"
9135 libdir="$alldirs"
9136 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9137 libdir="$acl_saved_libdir"
9138 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9139 else
9140 for found_dir in $rpathdirs; do
9141 acl_saved_libdir="$libdir"
9142 libdir="$found_dir"
9143 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9144 libdir="$acl_saved_libdir"
9145 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9146 done
9147 fi
9148 fi
9149 if test "X$ltrpathdirs" != "X"; then
9150 for found_dir in $ltrpathdirs; do
9151 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9152 done
9153 fi
9154
9155
9156
9157
9158
9159 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9160 printf %s "checking for GNU gettext in libintl... " >&6; }
9161 if eval test \${$gt_func_gnugettext_libintl+y}
9162 then :
9163 printf %s "(cached) " >&6
9164 else case e in #(
9165 e) gt_saved_CPPFLAGS="$CPPFLAGS"
9166 CPPFLAGS="$CPPFLAGS $INCINTL"
9167 gt_saved_LIBS="$LIBS"
9168 LIBS="$LIBS $LIBINTL"
9169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9170 /* end confdefs.h. */
9171
9172 #include <libintl.h>
9173 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9174 #if defined _MSC_VER
9175 #define _nl_msg_cat_cntr 0
9176 #else
9177 extern int _nl_msg_cat_cntr;
9178 #endif
9179 extern
9180 #ifdef __cplusplus
9181 "C"
9182 #endif
9183 const char *_nl_expand_alias (const char *);
9184 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
9185 #else
9186 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9187 #endif
9188 $gt_revision_test_code
9189
9190 int
9191 main (void)
9192 {
9193
9194 bindtextdomain ("", "");
9195 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9196
9197 ;
9198 return 0;
9199 }
9200 _ACEOF
9201 if ac_fn_c_try_link "$LINENO"
9202 then :
9203 eval "$gt_func_gnugettext_libintl=yes"
9204 else case e in #(
9205 e) eval "$gt_func_gnugettext_libintl=no" ;;
9206 esac
9207 fi
9208 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9209 conftest$ac_exeext conftest.$ac_ext
9210 gt_LIBINTL_EXTRA=
9211 case "$host_os" in
9212 darwin*) gt_LIBINTL_EXTRA="$INTL_MACOSX_LIBS" ;;
9213 aix*) gt_LIBINTL_EXTRA="-lpthread" ;;
9214 mingw* | windows*) gt_LIBINTL_EXTRA="$INTL_WINDOWS_LIBS" ;;
9215 esac
9216 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } \
9217 && { test -n "$LIBICONV" || test -n "$gt_LIBINTL_EXTRA"; }; then
9218 LIBS="$LIBS $LIBICONV $gt_LIBINTL_EXTRA"
9219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h. */
9221
9222 #include <libintl.h>
9223 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9224 #if defined _MSC_VER
9225 #define _nl_msg_cat_cntr 0
9226 #else
9227 extern int _nl_msg_cat_cntr;
9228 #endif
9229 extern
9230 #ifdef __cplusplus
9231 "C"
9232 #endif
9233 const char *_nl_expand_alias (const char *);
9234 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
9235 #else
9236 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9237 #endif
9238 $gt_revision_test_code
9239
9240 int
9241 main (void)
9242 {
9243
9244 bindtextdomain ("", "");
9245 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9246
9247 ;
9248 return 0;
9249 }
9250 _ACEOF
9251 if ac_fn_c_try_link "$LINENO"
9252 then :
9253 LIBINTL="$LIBINTL $LIBICONV $gt_LIBINTL_EXTRA"
9254 LTLIBINTL="$LTLIBINTL $LTLIBICONV $gt_LIBINTL_EXTRA"
9255 eval "$gt_func_gnugettext_libintl=yes"
9256
9257 fi
9258 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9259 conftest$ac_exeext conftest.$ac_ext
9260 fi
9261 CPPFLAGS="$gt_saved_CPPFLAGS"
9262 LIBS="$gt_saved_LIBS" ;;
9263 esac
9264 fi
9265 eval ac_res=\$$gt_func_gnugettext_libintl
9266 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9267 printf '%s\n' "$ac_res" >&6; }
9268 fi
9269
9270 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
9271 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
9272 && test "$PACKAGE" != gettext-runtime \
9273 && test "$PACKAGE" != gettext-tools \
9274 && test "$PACKAGE" != libintl; }; then
9275 gt_use_preinstalled_gnugettext=yes
9276 else
9277 LIBINTL=
9278 LTLIBINTL=
9279 INCINTL=
9280 fi
9281
9282
9283
9284 if test -n "$INTL_MACOSX_LIBS"; then
9285 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9286 || test "$gt_cv_use_gnu_libintl" = "yes"; then
9287 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
9288 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
9289 fi
9290 fi
9291
9292 if test -n "$INTL_WINDOWS_LIBS"; then
9293 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9294 || test "$gt_cv_use_gnu_libintl" = "yes"; then
9295 LIBINTL="$LIBINTL $INTL_WINDOWS_LIBS"
9296 LTLIBINTL="$LTLIBINTL $INTL_WINDOWS_LIBS"
9297 fi
9298 fi
9299
9300 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9301 || test "$gt_cv_use_gnu_libintl" = "yes"; then
9302
9303 printf '%s\n' "#define ENABLE_NLS 1" >>confdefs.h
9304
9305 else
9306 USE_NLS=no
9307 fi
9308 fi
9309
9310 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9311 printf %s "checking whether to use NLS... " >&6; }
9312 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9313 printf '%s\n' "$USE_NLS" >&6; }
9314 if test "$USE_NLS" = "yes"; then
9315 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9316 printf %s "checking where the gettext function comes from... " >&6; }
9317 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9318 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9319 gt_source="external libintl"
9320 else
9321 gt_source="libc"
9322 fi
9323 else
9324 gt_source="included intl directory"
9325 fi
9326 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9327 printf '%s\n' "$gt_source" >&6; }
9328 fi
9329
9330 if test "$USE_NLS" = "yes"; then
9331
9332 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9333 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9334 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9335 printf %s "checking how to link with libintl... " >&6; }
9336 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9337 printf '%s\n' "$LIBINTL" >&6; }
9338
9339 for element in $INCINTL; do
9340 haveit=
9341 for x in $CPPFLAGS; do
9342
9343 acl_saved_prefix="$prefix"
9344 prefix="$acl_final_prefix"
9345 acl_saved_exec_prefix="$exec_prefix"
9346 exec_prefix="$acl_final_exec_prefix"
9347 eval x=\"$x\"
9348 exec_prefix="$acl_saved_exec_prefix"
9349 prefix="$acl_saved_prefix"
9350
9351 if test "X$x" = "X$element"; then
9352 haveit=yes
9353 break
9354 fi
9355 done
9356 if test -z "$haveit"; then
9357 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9358 fi
9359 done
9360
9361 fi
9362
9363
9364 printf '%s\n' "#define HAVE_GETTEXT 1" >>confdefs.h
9365
9366
9367 printf '%s\n' "#define HAVE_DCGETTEXT 1" >>confdefs.h
9368
9369 fi
9370
9371 POSUB=po
9372 fi
9373
9374
9375
9376
9377 INTLLIBS="$LIBINTL"
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389 ac_fn_c_check_header_compile "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default"
9390 if test "x$ac_cv_header_fnmatch_h" = xyes
9391 then :
9392 printf '%s\n' "#define HAVE_FNMATCH_H 1" >>confdefs.h
9393
9394 fi
9395 ac_fn_c_check_header_compile "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
9396 if test "x$ac_cv_header_sysexits_h" = xyes
9397 then :
9398 printf '%s\n' "#define HAVE_SYSEXITS_H 1" >>confdefs.h
9399
9400 fi
9401 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
9402 if test "x$ac_cv_header_netdb_h" = xyes
9403 then :
9404 printf '%s\n' "#define HAVE_NETDB_H 1" >>confdefs.h
9405
9406 fi
9407 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
9408 if test "x$ac_cv_header_arpa_inet_h" = xyes
9409 then :
9410 printf '%s\n' "#define HAVE_ARPA_INET_H 1" >>confdefs.h
9411
9412 fi
9413 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
9414 if test "x$ac_cv_header_sys_select_h" = xyes
9415 then :
9416 printf '%s\n' "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
9417
9418 fi
9419 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
9420 if test "x$ac_cv_header_sys_socket_h" = xyes
9421 then :
9422 printf '%s\n' "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
9423
9424 fi
9425 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
9426 if test "x$ac_cv_header_sys_wait_h" = xyes
9427 then :
9428 printf '%s\n' "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9429
9430 fi
9431 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
9432 if test "x$ac_cv_header_netinet_in_h" = xyes
9433 then :
9434 printf '%s\n' "#define HAVE_NETINET_IN_H 1" >>confdefs.h
9435
9436 fi
9437 ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
9438 if test "x$ac_cv_header_langinfo_h" = xyes
9439 then :
9440 printf '%s\n' "#define HAVE_LANGINFO_H 1" >>confdefs.h
9441
9442 fi
9443
9444 ac_fn_c_check_func "$LINENO" "fmemopen" "ac_cv_func_fmemopen"
9445 if test "x$ac_cv_func_fmemopen" = xyes
9446 then :
9447 printf '%s\n' "#define HAVE_FMEMOPEN 1" >>confdefs.h
9448
9449 fi
9450 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
9451 if test "x$ac_cv_func_fseeko" = xyes
9452 then :
9453 printf '%s\n' "#define HAVE_FSEEKO 1" >>confdefs.h
9454
9455 fi
9456 ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
9457 if test "x$ac_cv_func_fseeko64" = xyes
9458 then :
9459 printf '%s\n' "#define HAVE_FSEEKO64 1" >>confdefs.h
9460
9461 fi
9462 ac_fn_c_check_func "$LINENO" "getpass" "ac_cv_func_getpass"
9463 if test "x$ac_cv_func_getpass" = xyes
9464 then :
9465 printf '%s\n' "#define HAVE_GETPASS 1" >>confdefs.h
9466
9467 fi
9468 ac_fn_c_check_func "$LINENO" "link" "ac_cv_func_link"
9469 if test "x$ac_cv_func_link" = xyes
9470 then :
9471 printf '%s\n' "#define HAVE_LINK 1" >>confdefs.h
9472
9473 fi
9474 ac_fn_c_check_func "$LINENO" "signal" "ac_cv_func_signal"
9475 if test "x$ac_cv_func_signal" = xyes
9476 then :
9477 printf '%s\n' "#define HAVE_SIGNAL 1" >>confdefs.h
9478
9479 fi
9480 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
9481 if test "x$ac_cv_func_strndup" = xyes
9482 then :
9483 printf '%s\n' "#define HAVE_STRNDUP 1" >>confdefs.h
9484
9485 fi
9486 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
9487 if test "x$ac_cv_func_syslog" = xyes
9488 then :
9489 printf '%s\n' "#define HAVE_SYSLOG 1" >>confdefs.h
9490
9491 fi
9492 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
9493 if test "x$ac_cv_func_vasprintf" = xyes
9494 then :
9495 printf '%s\n' "#define HAVE_VASPRINTF 1" >>confdefs.h
9496
9497 fi
9498
9499 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
9500 printf %s "checking for library containing nanosleep... " >&6; }
9501 if test ${ac_cv_search_nanosleep+y}
9502 then :
9503 printf %s "(cached) " >&6
9504 else case e in #(
9505 e) ac_func_search_save_LIBS=$LIBS
9506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9507 /* end confdefs.h. */
9508
9509 /* Override any GCC internal prototype to avoid an error.
9510 Use char because int might match the return type of a GCC
9511 builtin and then its argument prototype would still apply.
9512 The 'extern "C"' is for builds by C++ compilers;
9513 although this is not generally supported in C code supporting it here
9514 has little cost and some practical benefit (sr 110532). */
9515 #ifdef __cplusplus
9516 extern "C"
9517 #endif
9518 char nanosleep (void);
9519 int
9520 main (void)
9521 {
9522 return nanosleep ();
9523 ;
9524 return 0;
9525 }
9526 _ACEOF
9527 for ac_lib in '' rt posix4
9528 do
9529 if test -z "$ac_lib"; then
9530 ac_res="none required"
9531 else
9532 ac_res=-l$ac_lib
9533 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9534 fi
9535 if ac_fn_c_try_link "$LINENO"
9536 then :
9537 ac_cv_search_nanosleep=$ac_res
9538 fi
9539 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9540 conftest$ac_exeext
9541 if test ${ac_cv_search_nanosleep+y}
9542 then :
9543 break
9544 fi
9545 done
9546 if test ${ac_cv_search_nanosleep+y}
9547 then :
9548
9549 else case e in #(
9550 e) ac_cv_search_nanosleep=no ;;
9551 esac
9552 fi
9553 rm conftest.$ac_ext
9554 LIBS=$ac_func_search_save_LIBS ;;
9555 esac
9556 fi
9557 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
9558 printf '%s\n' "$ac_cv_search_nanosleep" >&6; }
9559 ac_res=$ac_cv_search_nanosleep
9560 if test "$ac_res" != no
9561 then :
9562 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9563
9564 fi
9565
9566 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
9567 printf %s "checking for library containing socket... " >&6; }
9568 if test ${ac_cv_search_socket+y}
9569 then :
9570 printf %s "(cached) " >&6
9571 else case e in #(
9572 e) ac_func_search_save_LIBS=$LIBS
9573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h. */
9575
9576 /* Override any GCC internal prototype to avoid an error.
9577 Use char because int might match the return type of a GCC
9578 builtin and then its argument prototype would still apply.
9579 The 'extern "C"' is for builds by C++ compilers;
9580 although this is not generally supported in C code supporting it here
9581 has little cost and some practical benefit (sr 110532). */
9582 #ifdef __cplusplus
9583 extern "C"
9584 #endif
9585 char socket (void);
9586 int
9587 main (void)
9588 {
9589 return socket ();
9590 ;
9591 return 0;
9592 }
9593 _ACEOF
9594 for ac_lib in '' socket
9595 do
9596 if test -z "$ac_lib"; then
9597 ac_res="none required"
9598 else
9599 ac_res=-l$ac_lib
9600 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9601 fi
9602 if ac_fn_c_try_link "$LINENO"
9603 then :
9604 ac_cv_search_socket=$ac_res
9605 fi
9606 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9607 conftest$ac_exeext
9608 if test ${ac_cv_search_socket+y}
9609 then :
9610 break
9611 fi
9612 done
9613 if test ${ac_cv_search_socket+y}
9614 then :
9615
9616 else case e in #(
9617 e) ac_cv_search_socket=no ;;
9618 esac
9619 fi
9620 rm conftest.$ac_ext
9621 LIBS=$ac_func_search_save_LIBS ;;
9622 esac
9623 fi
9624 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
9625 printf '%s\n' "$ac_cv_search_socket" >&6; }
9626 ac_res=$ac_cv_search_socket
9627 if test "$ac_res" != no
9628 then :
9629 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9630
9631 fi
9632
9633
9634 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
9635 printf %s "checking for library containing res_query... " >&6; }
9636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9637 /* end confdefs.h. */
9638
9639 #include <netinet/in.h>
9640 #include <arpa/nameser.h>
9641 #include <resolv.h>
9642
9643 int
9644 main (void)
9645 {
9646 res_query(0, 0, 0, 0, 0); ns_initparse(0, 0, 0);
9647 ;
9648 return 0;
9649 }
9650 _ACEOF
9651 if ac_fn_c_try_link "$LINENO"
9652 then :
9653 found_res_query=yes
9654 else case e in #(
9655 e) found_res_query=no ;;
9656 esac
9657 fi
9658 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9659 conftest$ac_exeext conftest.$ac_ext
9660 if test "$found_res_query" = "yes"; then
9661 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none required" >&5
9662 printf '%s\n' "none required" >&6; }
9663 else
9664 LIBS_BAK="$LIBS"
9665 LIBS="$LIBS -lresolv"
9666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9667 /* end confdefs.h. */
9668
9669 #include <netinet/in.h>
9670 #include <arpa/nameser.h>
9671 #include <resolv.h>
9672
9673 int
9674 main (void)
9675 {
9676 res_query(0, 0, 0, 0, 0); ns_initparse(0, 0, 0);
9677 ;
9678 return 0;
9679 }
9680 _ACEOF
9681 if ac_fn_c_try_link "$LINENO"
9682 then :
9683 found_res_query=yes
9684 else case e in #(
9685 e) found_res_query=no ;;
9686 esac
9687 fi
9688 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9689 conftest$ac_exeext conftest.$ac_ext
9690 if test "$found_res_query" = "yes"; then
9691 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: -lresolv" >&5
9692 printf '%s\n' "-lresolv" >&6; }
9693 else
9694 LIBS="$LIBS_BAK"
9695 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none" >&5
9696 printf '%s\n' "none" >&6; }
9697 fi
9698 fi
9699 if test "$found_res_query" = "yes"; then
9700
9701 printf '%s\n' "#define HAVE_LIBRESOLV 1" >>confdefs.h
9702
9703 fi
9704
9705
9706
9707
9708
9709
9710
9711
9712 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9713 if test -n "$ac_tool_prefix"; then
9714 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9715 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9716 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9717 printf %s "checking for $ac_word... " >&6; }
9718 if test ${ac_cv_path_PKG_CONFIG+y}
9719 then :
9720 printf %s "(cached) " >&6
9721 else case e in #(
9722 e) case $PKG_CONFIG in
9723 [\\/]* | ?:[\\/]*)
9724 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9725 ;;
9726 *)
9727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9728 for as_dir in $PATH
9729 do
9730 IFS=$as_save_IFS
9731 case $as_dir in #(((
9732 '') as_dir=./ ;;
9733 */) ;;
9734 *) as_dir=$as_dir/ ;;
9735 esac
9736 for ac_exec_ext in '' $ac_executable_extensions; do
9737 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9738 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
9739 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9740 break 2
9741 fi
9742 done
9743 done
9744 IFS=$as_save_IFS
9745
9746 ;;
9747 esac ;;
9748 esac
9749 fi
9750 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9751 if test -n "$PKG_CONFIG"; then
9752 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9753 printf '%s\n' "$PKG_CONFIG" >&6; }
9754 else
9755 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9756 printf '%s\n' "no" >&6; }
9757 fi
9758
9759
9760 fi
9761 if test -z "$ac_cv_path_PKG_CONFIG"; then
9762 ac_pt_PKG_CONFIG=$PKG_CONFIG
9763 # Extract the first word of "pkg-config", so it can be a program name with args.
9764 set dummy pkg-config; ac_word=$2
9765 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9766 printf %s "checking for $ac_word... " >&6; }
9767 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
9768 then :
9769 printf %s "(cached) " >&6
9770 else case e in #(
9771 e) case $ac_pt_PKG_CONFIG in
9772 [\\/]* | ?:[\\/]*)
9773 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9774 ;;
9775 *)
9776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9777 for as_dir in $PATH
9778 do
9779 IFS=$as_save_IFS
9780 case $as_dir in #(((
9781 '') as_dir=./ ;;
9782 */) ;;
9783 *) as_dir=$as_dir/ ;;
9784 esac
9785 for ac_exec_ext in '' $ac_executable_extensions; do
9786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9787 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
9788 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9789 break 2
9790 fi
9791 done
9792 done
9793 IFS=$as_save_IFS
9794
9795 ;;
9796 esac ;;
9797 esac
9798 fi
9799 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9800 if test -n "$ac_pt_PKG_CONFIG"; then
9801 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9802 printf '%s\n' "$ac_pt_PKG_CONFIG" >&6; }
9803 else
9804 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9805 printf '%s\n' "no" >&6; }
9806 fi
9807
9808 if test "x$ac_pt_PKG_CONFIG" = x; then
9809 PKG_CONFIG=""
9810 else
9811 case $cross_compiling:$ac_tool_warned in
9812 yes:)
9813 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9814 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9815 ac_tool_warned=yes ;;
9816 esac
9817 PKG_CONFIG=$ac_pt_PKG_CONFIG
9818 fi
9819 else
9820 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9821 fi
9822
9823 fi
9824 if test -n "$PKG_CONFIG"; then
9825 _pkg_min_version=0.9.0
9826 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9827 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9828 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9829 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9830 printf '%s\n' "yes" >&6; }
9831 else
9832 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9833 printf '%s\n' "no" >&6; }
9834 PKG_CONFIG=""
9835 fi
9836 fi
9837 if test -z "$PKG_CONFIG"; then
9838 as_fn_error $? "pkg-config not found" "$LINENO" 5
9839 fi
9840 if test -z "$PKG_CONFIG"; then
9841 as_fn_error $? "pkg-config not found" "$LINENO" 5
9842 fi
9843
9844 have_tls="no"
9845 tls_lib="none"
9846 want_tls="yes"
9847 want_gnutls="yes"
9848 want_openssl="no"
9849 want_libtls="no"
9850 tls_CFLAGS=""
9851 tls_LIBS=""
9852 with_ssl_was_used=no
9853
9854 # Check whether --with-tls was given.
9855 if test ${with_tls+y}
9856 then :
9857 withval=$with_tls; if test "$withval" = "gnutls"; then
9858 want_tls=yes
9859 want_gnutls=yes
9860 want_openssl=no
9861 want_libtls=no
9862 elif test "$withval" = "openssl"; then
9863 want_tls=yes
9864 want_gnutls=no
9865 want_openssl=yes
9866 want_libtls=no
9867 elif test "$withval" = "libtls"; then
9868 want_tls=yes
9869 want_gnutls=no
9870 want_openssl=no
9871 want_libtls=yes
9872 elif test "$withval" = "no"; then
9873 want_tls=no
9874 want_gnutls=no
9875 want_openssl=no
9876 want_libtls=no
9877 else
9878 as_fn_error $? "Use --with-tls=gnutls or --with-tls=openssl or --with-tls=libtls or --with-tls=no" "$LINENO" 5
9879 fi
9880 fi
9881
9882 if test "$want_gnutls" = "yes"; then
9883
9884 pkg_failed=no
9885 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 3.7.2" >&5
9886 printf %s "checking for gnutls >= 3.7.2... " >&6; }
9887
9888 if test -n "$libgnutls_CFLAGS"; then
9889 pkg_cv_libgnutls_CFLAGS="$libgnutls_CFLAGS"
9890 elif test -n "$PKG_CONFIG"; then
9891 if test -n "$PKG_CONFIG" && \
9892 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 3.7.2\""; } >&5
9893 ($PKG_CONFIG --exists --print-errors "gnutls >= 3.7.2") 2>&5
9894 ac_status=$?
9895 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9896 test $ac_status = 0; }; then
9897 pkg_cv_libgnutls_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 3.7.2" 2>/dev/null`
9898 test "x$?" != "x0" && pkg_failed=yes
9899 else
9900 pkg_failed=yes
9901 fi
9902 else
9903 pkg_failed=untried
9904 fi
9905 if test -n "$libgnutls_LIBS"; then
9906 pkg_cv_libgnutls_LIBS="$libgnutls_LIBS"
9907 elif test -n "$PKG_CONFIG"; then
9908 if test -n "$PKG_CONFIG" && \
9909 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 3.7.2\""; } >&5
9910 ($PKG_CONFIG --exists --print-errors "gnutls >= 3.7.2") 2>&5
9911 ac_status=$?
9912 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9913 test $ac_status = 0; }; then
9914 pkg_cv_libgnutls_LIBS=`$PKG_CONFIG --libs "gnutls >= 3.7.2" 2>/dev/null`
9915 test "x$?" != "x0" && pkg_failed=yes
9916 else
9917 pkg_failed=yes
9918 fi
9919 else
9920 pkg_failed=untried
9921 fi
9922
9923
9924
9925 if test $pkg_failed = yes; then
9926 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9927 printf '%s\n' "no" >&6; }
9928
9929 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9930 _pkg_short_errors_supported=yes
9931 else
9932 _pkg_short_errors_supported=no
9933 fi
9934 if test $_pkg_short_errors_supported = yes; then
9935 libgnutls_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= 3.7.2" 2>&1`
9936 else
9937 libgnutls_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= 3.7.2" 2>&1`
9938 fi
9939 # Put the nasty error message in config.log where it belongs
9940 echo "$libgnutls_PKG_ERRORS" >&5
9941
9942 HAVE_LIBGNUTLS=0
9943 elif test $pkg_failed = untried; then
9944 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9945 printf '%s\n' "no" >&6; }
9946 HAVE_LIBGNUTLS=0
9947 else
9948 libgnutls_CFLAGS=$pkg_cv_libgnutls_CFLAGS
9949 libgnutls_LIBS=$pkg_cv_libgnutls_LIBS
9950 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9951 printf '%s\n' "yes" >&6; }
9952 HAVE_LIBGNUTLS=1
9953 fi
9954 if test "$HAVE_LIBGNUTLS" != "1"; then
9955 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: library libgnutls not found:" >&5
9956 printf '%s\n' "$as_me: WARNING: library libgnutls not found:" >&2;}
9957 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $libgnutls_PKG_ERRORS" >&5
9958 printf '%s\n' "$as_me: WARNING: $libgnutls_PKG_ERRORS" >&2;}
9959 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: libgnutls is provided by GnuTLS" >&5
9960 printf '%s\n' "$as_me: WARNING: libgnutls is provided by GnuTLS" >&2;}
9961 else
9962 have_tls="yes"
9963 tls_lib="GnuTLS"
9964 tls_CFLAGS="$libgnutls_CFLAGS"
9965 tls_LIBS="$libgnutls_LIBS"
9966
9967 printf '%s\n' "#define HAVE_LIBGNUTLS 1" >>confdefs.h
9968
9969 fi
9970 fi
9971 if test "$want_openssl" = "yes" -a "$have_tls" = "no"; then
9972 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: Using OpenSSL is discouraged; consider using GnuTLS instead" >&5
9973 printf '%s\n' "$as_me: WARNING: Using OpenSSL is discouraged; consider using GnuTLS instead" >&2;}
9974
9975 pkg_failed=no
9976 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for openssl >= 0.0" >&5
9977 printf %s "checking for openssl >= 0.0... " >&6; }
9978
9979 if test -n "$libssl_CFLAGS"; then
9980 pkg_cv_libssl_CFLAGS="$libssl_CFLAGS"
9981 elif test -n "$PKG_CONFIG"; then
9982 if test -n "$PKG_CONFIG" && \
9983 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.0\""; } >&5
9984 ($PKG_CONFIG --exists --print-errors "openssl >= 0.0") 2>&5
9985 ac_status=$?
9986 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9987 test $ac_status = 0; }; then
9988 pkg_cv_libssl_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.0" 2>/dev/null`
9989 test "x$?" != "x0" && pkg_failed=yes
9990 else
9991 pkg_failed=yes
9992 fi
9993 else
9994 pkg_failed=untried
9995 fi
9996 if test -n "$libssl_LIBS"; then
9997 pkg_cv_libssl_LIBS="$libssl_LIBS"
9998 elif test -n "$PKG_CONFIG"; then
9999 if test -n "$PKG_CONFIG" && \
10000 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.0\""; } >&5
10001 ($PKG_CONFIG --exists --print-errors "openssl >= 0.0") 2>&5
10002 ac_status=$?
10003 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10004 test $ac_status = 0; }; then
10005 pkg_cv_libssl_LIBS=`$PKG_CONFIG --libs "openssl >= 0.0" 2>/dev/null`
10006 test "x$?" != "x0" && pkg_failed=yes
10007 else
10008 pkg_failed=yes
10009 fi
10010 else
10011 pkg_failed=untried
10012 fi
10013
10014
10015
10016 if test $pkg_failed = yes; then
10017 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10018 printf '%s\n' "no" >&6; }
10019
10020 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10021 _pkg_short_errors_supported=yes
10022 else
10023 _pkg_short_errors_supported=no
10024 fi
10025 if test $_pkg_short_errors_supported = yes; then
10026 libssl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 0.0" 2>&1`
10027 else
10028 libssl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 0.0" 2>&1`
10029 fi
10030 # Put the nasty error message in config.log where it belongs
10031 echo "$libssl_PKG_ERRORS" >&5
10032
10033 HAVE_LIBSSL=0
10034 elif test $pkg_failed = untried; then
10035 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10036 printf '%s\n' "no" >&6; }
10037 HAVE_LIBSSL=0
10038 else
10039 libssl_CFLAGS=$pkg_cv_libssl_CFLAGS
10040 libssl_LIBS=$pkg_cv_libssl_LIBS
10041 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10042 printf '%s\n' "yes" >&6; }
10043 HAVE_LIBSSL=1
10044 fi
10045 if test "$HAVE_LIBSSL" != "1"; then
10046 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: library libssl not found:" >&5
10047 printf '%s\n' "$as_me: WARNING: library libssl not found:" >&2;}
10048 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $libssl_PKG_ERRORS" >&5
10049 printf '%s\n' "$as_me: WARNING: $libssl_PKG_ERRORS" >&2;}
10050 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: libssl is provided by OpenSSL" >&5
10051 printf '%s\n' "$as_me: WARNING: libssl is provided by OpenSSL" >&2;}
10052 else
10053 have_tls="yes"
10054 tls_lib="OpenSSL"
10055 tls_CFLAGS="$libssl_CFLAGS"
10056 tls_LIBS="$libssl_LIBS"
10057
10058 printf '%s\n' "#define HAVE_LIBSSL 1" >>confdefs.h
10059
10060 fi
10061 fi
10062 if test "$want_libtls" = "yes" -a "$have_tls" = "no"; then
10063
10064 pkg_failed=no
10065 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for libtls >= 0.0" >&5
10066 printf %s "checking for libtls >= 0.0... " >&6; }
10067
10068 if test -n "$libtls_CFLAGS"; then
10069 pkg_cv_libtls_CFLAGS="$libtls_CFLAGS"
10070 elif test -n "$PKG_CONFIG"; then
10071 if test -n "$PKG_CONFIG" && \
10072 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtls >= 0.0\""; } >&5
10073 ($PKG_CONFIG --exists --print-errors "libtls >= 0.0") 2>&5
10074 ac_status=$?
10075 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10076 test $ac_status = 0; }; then
10077 pkg_cv_libtls_CFLAGS=`$PKG_CONFIG --cflags "libtls >= 0.0" 2>/dev/null`
10078 test "x$?" != "x0" && pkg_failed=yes
10079 else
10080 pkg_failed=yes
10081 fi
10082 else
10083 pkg_failed=untried
10084 fi
10085 if test -n "$libtls_LIBS"; then
10086 pkg_cv_libtls_LIBS="$libtls_LIBS"
10087 elif test -n "$PKG_CONFIG"; then
10088 if test -n "$PKG_CONFIG" && \
10089 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtls >= 0.0\""; } >&5
10090 ($PKG_CONFIG --exists --print-errors "libtls >= 0.0") 2>&5
10091 ac_status=$?
10092 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10093 test $ac_status = 0; }; then
10094 pkg_cv_libtls_LIBS=`$PKG_CONFIG --libs "libtls >= 0.0" 2>/dev/null`
10095 test "x$?" != "x0" && pkg_failed=yes
10096 else
10097 pkg_failed=yes
10098 fi
10099 else
10100 pkg_failed=untried
10101 fi
10102
10103
10104
10105 if test $pkg_failed = yes; then
10106 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10107 printf '%s\n' "no" >&6; }
10108
10109 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10110 _pkg_short_errors_supported=yes
10111 else
10112 _pkg_short_errors_supported=no
10113 fi
10114 if test $_pkg_short_errors_supported = yes; then
10115 libtls_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtls >= 0.0" 2>&1`
10116 else
10117 libtls_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtls >= 0.0" 2>&1`
10118 fi
10119 # Put the nasty error message in config.log where it belongs
10120 echo "$libtls_PKG_ERRORS" >&5
10121
10122 HAVE_LIBTLS=0
10123 elif test $pkg_failed = untried; then
10124 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10125 printf '%s\n' "no" >&6; }
10126 HAVE_LIBTLS=0
10127 else
10128 libtls_CFLAGS=$pkg_cv_libtls_CFLAGS
10129 libtls_LIBS=$pkg_cv_libtls_LIBS
10130 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10131 printf '%s\n' "yes" >&6; }
10132 HAVE_LIBTLS=1
10133 fi
10134 if test "$HAVE_LIBTLS" != "1"; then
10135 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: library libtls not found:" >&5
10136 printf '%s\n' "$as_me: WARNING: library libtls not found:" >&2;}
10137 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $libtls_PKG_ERRORS" >&5
10138 printf '%s\n' "$as_me: WARNING: $libtls_PKG_ERRORS" >&2;}
10139 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: libtls is provided by LibreSSL" >&5
10140 printf '%s\n' "$as_me: WARNING: libtls is provided by LibreSSL" >&2;}
10141 else
10142 have_tls="yes"
10143 tls_lib="libtls"
10144 tls_CFLAGS="$libtls_CFLAGS"
10145 tls_LIBS="$libtls_LIBS"
10146
10147 printf '%s\n' "#define HAVE_LIBTLS 1" >>confdefs.h
10148
10149 fi
10150 fi
10151 if test "$have_tls" = "yes"; then
10152
10153 printf '%s\n' "#define HAVE_TLS 1" >>confdefs.h
10154
10155 elif test "$want_tls" = "yes"; then
10156 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: Disabling TLS support, which is very bad. Consider using GnuTLS!" >&5
10157 printf '%s\n' "$as_me: WARNING: Disabling TLS support, which is very bad. Consider using GnuTLS!" >&2;}
10158 fi
10159 if test "$have_tls" = "yes"; then
10160 HAVE_TLS_TRUE=
10161 HAVE_TLS_FALSE='#'
10162 else
10163 HAVE_TLS_TRUE='#'
10164 HAVE_TLS_FALSE=
10165 fi
10166
10167 if test "$tls_lib" = "GnuTLS"; then
10168 HAVE_GNUTLS_TRUE=
10169 HAVE_GNUTLS_FALSE='#'
10170 else
10171 HAVE_GNUTLS_TRUE='#'
10172 HAVE_GNUTLS_FALSE=
10173 fi
10174
10175 if test "$tls_lib" = "OpenSSL"; then
10176 HAVE_OPENSSL_TRUE=
10177 HAVE_OPENSSL_FALSE='#'
10178 else
10179 HAVE_OPENSSL_TRUE='#'
10180 HAVE_OPENSSL_FALSE=
10181 fi
10182
10183 if test "$tls_lib" = "libtls"; then
10184 HAVE_LIBTLS_TRUE=
10185 HAVE_LIBTLS_FALSE='#'
10186 else
10187 HAVE_LIBTLS_TRUE='#'
10188 HAVE_LIBTLS_FALSE=
10189 fi
10190
10191
10192
10193
10194
10195 # Check whether --with-libgsasl was given.
10196 if test ${with_libgsasl+y}
10197 then :
10198 withval=$with_libgsasl; libgsasl=$withval
10199 else case e in #(
10200 e) libgsasl=yes ;;
10201 esac
10202 fi
10203
10204 if test "$libgsasl" != "no"; then
10205
10206 pkg_failed=no
10207 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for libgsasl >= 2.1" >&5
10208 printf %s "checking for libgsasl >= 2.1... " >&6; }
10209
10210 if test -n "$libgsasl_CFLAGS"; then
10211 pkg_cv_libgsasl_CFLAGS="$libgsasl_CFLAGS"
10212 elif test -n "$PKG_CONFIG"; then
10213 if test -n "$PKG_CONFIG" && \
10214 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgsasl >= 2.1\""; } >&5
10215 ($PKG_CONFIG --exists --print-errors "libgsasl >= 2.1") 2>&5
10216 ac_status=$?
10217 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10218 test $ac_status = 0; }; then
10219 pkg_cv_libgsasl_CFLAGS=`$PKG_CONFIG --cflags "libgsasl >= 2.1" 2>/dev/null`
10220 test "x$?" != "x0" && pkg_failed=yes
10221 else
10222 pkg_failed=yes
10223 fi
10224 else
10225 pkg_failed=untried
10226 fi
10227 if test -n "$libgsasl_LIBS"; then
10228 pkg_cv_libgsasl_LIBS="$libgsasl_LIBS"
10229 elif test -n "$PKG_CONFIG"; then
10230 if test -n "$PKG_CONFIG" && \
10231 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgsasl >= 2.1\""; } >&5
10232 ($PKG_CONFIG --exists --print-errors "libgsasl >= 2.1") 2>&5
10233 ac_status=$?
10234 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10235 test $ac_status = 0; }; then
10236 pkg_cv_libgsasl_LIBS=`$PKG_CONFIG --libs "libgsasl >= 2.1" 2>/dev/null`
10237 test "x$?" != "x0" && pkg_failed=yes
10238 else
10239 pkg_failed=yes
10240 fi
10241 else
10242 pkg_failed=untried
10243 fi
10244
10245
10246
10247 if test $pkg_failed = yes; then
10248 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10249 printf '%s\n' "no" >&6; }
10250
10251 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10252 _pkg_short_errors_supported=yes
10253 else
10254 _pkg_short_errors_supported=no
10255 fi
10256 if test $_pkg_short_errors_supported = yes; then
10257 libgsasl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgsasl >= 2.1" 2>&1`
10258 else
10259 libgsasl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgsasl >= 2.1" 2>&1`
10260 fi
10261 # Put the nasty error message in config.log where it belongs
10262 echo "$libgsasl_PKG_ERRORS" >&5
10263
10264 HAVE_LIBGSASL=0
10265 elif test $pkg_failed = untried; then
10266 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10267 printf '%s\n' "no" >&6; }
10268 HAVE_LIBGSASL=0
10269 else
10270 libgsasl_CFLAGS=$pkg_cv_libgsasl_CFLAGS
10271 libgsasl_LIBS=$pkg_cv_libgsasl_LIBS
10272 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10273 printf '%s\n' "yes" >&6; }
10274 HAVE_LIBGSASL=1
10275 fi
10276 if test "$HAVE_LIBGSASL" != "1"; then
10277 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: library libgsasl not found:" >&5
10278 printf '%s\n' "$as_me: WARNING: library libgsasl not found:" >&2;}
10279 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $libgsasl_PKG_ERRORS" >&5
10280 printf '%s\n' "$as_me: WARNING: $libgsasl_PKG_ERRORS" >&2;}
10281 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: libgsasl is provided by GNU SASL" >&5
10282 printf '%s\n' "$as_me: WARNING: libgsasl is provided by GNU SASL" >&2;}
10283 libgsasl="no"
10284 else
10285 libgsasl="yes"
10286
10287 printf '%s\n' "#define HAVE_LIBGSASL 1" >>confdefs.h
10288
10289 fi
10290 fi
10291 if test "$libgsasl" = "yes"; then
10292 HAVE_LIBGSASL_TRUE=
10293 HAVE_LIBGSASL_FALSE='#'
10294 else
10295 HAVE_LIBGSASL_TRUE='#'
10296 HAVE_LIBGSASL_FALSE=
10297 fi
10298
10299
10300 # Check whether --enable-gai-idn was given.
10301 if test ${enable_gai_idn+y}
10302 then :
10303 enableval=$enable_gai_idn; if test "$enableval" = "yes"; then want_gai_idn="yes"; else want_gai_idn="no"; fi
10304 else case e in #(
10305 e) want_gai_idn="yes" ;;
10306 esac
10307 fi
10308
10309 have_gai_idn=no
10310 if test "$want_gai_idn" = "yes"; then
10311 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to detect undeclared functions" >&5
10312 printf %s "checking for $CC options to detect undeclared functions... " >&6; }
10313 if test ${ac_cv_c_undeclared_builtin_options+y}
10314 then :
10315 printf %s "(cached) " >&6
10316 else case e in #(
10317 e) ac_save_CFLAGS=$CFLAGS
10318 ac_cv_c_undeclared_builtin_options='cannot detect'
10319 for ac_arg in '' -fno-builtin; do
10320 CFLAGS="$ac_save_CFLAGS $ac_arg"
10321 # This test program should *not* compile successfully.
10322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10323 /* end confdefs.h. */
10324
10325 int
10326 main (void)
10327 {
10328 (void) strchr;
10329 ;
10330 return 0;
10331 }
10332 _ACEOF
10333 if ac_fn_c_try_compile "$LINENO"
10334 then :
10335
10336 else case e in #(
10337 e) # This test program should compile successfully.
10338 # No library function is consistently available on
10339 # freestanding implementations, so test against a dummy
10340 # declaration. Include always-available headers on the
10341 # off chance that they somehow elicit warnings.
10342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10343 /* end confdefs.h. */
10344 #include <float.h>
10345 #include <limits.h>
10346 #include <stdarg.h>
10347 #include <stddef.h>
10348 extern void ac_decl (int, char *);
10349
10350 int
10351 main (void)
10352 {
10353 (void) ac_decl (0, (char *) 0);
10354 (void) ac_decl;
10355
10356 ;
10357 return 0;
10358 }
10359 _ACEOF
10360 if ac_fn_c_try_compile "$LINENO"
10361 then :
10362 if test x"$ac_arg" = x
10363 then :
10364 ac_cv_c_undeclared_builtin_options='none needed'
10365 else case e in #(
10366 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
10367 esac
10368 fi
10369 break
10370 fi
10371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10372 esac
10373 fi
10374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10375 done
10376 CFLAGS=$ac_save_CFLAGS
10377 ;;
10378 esac
10379 fi
10380 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
10381 printf '%s\n' "$ac_cv_c_undeclared_builtin_options" >&6; }
10382 case $ac_cv_c_undeclared_builtin_options in #(
10383 'cannot detect') :
10384 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
10385 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
10386 as_fn_error $? "cannot make $CC report undeclared builtins
10387 See 'config.log' for more details" "$LINENO" 5; } ;; #(
10388 'none needed') :
10389 ac_c_undeclared_builtin_options='' ;; #(
10390 *) :
10391 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
10392 esac
10393
10394 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to ignore future-version functions" >&5
10395 printf %s "checking for $CC options to ignore future-version functions... " >&6; }
10396 if test ${ac_cv_c_future_darwin_options+y}
10397 then :
10398 printf %s "(cached) " >&6
10399 else case e in #(
10400 e) ac_compile_saved="$ac_compile"
10401 ac_compile="$ac_compile -Werror=unguarded-availability-new"
10402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h. */
10404 #if ! (defined __APPLE__ && defined __MACH__)
10405 #error "-Werror=unguarded-availability-new not needed here"
10406 #endif
10407
10408 int
10409 main (void)
10410 {
10411
10412 ;
10413 return 0;
10414 }
10415 _ACEOF
10416 if ac_fn_c_try_compile "$LINENO"
10417 then :
10418 ac_cv_c_future_darwin_options='-Werror=unguarded-availability-new'
10419 else case e in #(
10420 e) ac_cv_c_future_darwin_options='none needed' ;;
10421 esac
10422 fi
10423 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10424 ac_compile="$ac_compile_saved"
10425 ;;
10426 esac
10427 fi
10428 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_future_darwin_options" >&5
10429 printf '%s\n' "$ac_cv_c_future_darwin_options" >&6; }
10430 case $ac_cv_c_future_darwin_options in #(
10431 'none needed') :
10432 ac_c_future_darwin_options='' ;; #(
10433 *) :
10434 ac_c_future_darwin_options=$ac_cv_c_future_darwin_options ;;
10435 esac
10436
10437 ac_fn_check_decl "$LINENO" "AI_IDN" "ac_cv_have_decl_AI_IDN" "
10438 #include <sys/types.h>
10439 #include <sys/socket.h>
10440 #include <netdb.h>
10441
10442 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
10443 if test "x$ac_cv_have_decl_AI_IDN" = xyes
10444 then :
10445
10446 fi
10447 if test "$ac_cv_have_decl_AI_IDN" = "yes"; then
10448 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether getaddrinfo accepts AI_IDN" >&5
10449 printf %s "checking whether getaddrinfo accepts AI_IDN... " >&6; }
10450 if test "$cross_compiling" = yes
10451 then :
10452 have_gai_idn="assuming yes"
10453 else case e in #(
10454 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10455 /* end confdefs.h. */
10456
10457 #include <sys/types.h>
10458 #include <sys/socket.h>
10459 #include <netdb.h>
10460
10461 int
10462 main (void)
10463 {
10464
10465 struct addrinfo hints;
10466 struct addrinfo *res;
10467 int r;
10468 hints.ai_flags = AI_IDN;
10469 hints.ai_family = PF_UNSPEC;
10470 hints.ai_socktype = SOCK_STREAM;
10471 hints.ai_protocol = 0;
10472 hints.ai_addrlen = 0;
10473 hints.ai_addr = 0;
10474 hints.ai_canonname = 0;
10475 hints.ai_next = 0;
10476 r = getaddrinfo("localhost", "1234", &hints, &res);
10477 freeaddrinfo(res);
10478 return (r == EAI_BADFLAGS ? 1 : 0);
10479
10480 ;
10481 return 0;
10482 }
10483 _ACEOF
10484 if ac_fn_c_try_run "$LINENO"
10485 then :
10486 have_gai_idn="yes"
10487 else case e in #(
10488 e) have_gai_idn="no" ;;
10489 esac
10490 fi
10491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10492 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10493 esac
10494 fi
10495
10496 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $have_gai_idn" >&5
10497 printf '%s\n' "$have_gai_idn" >&6; }
10498 if test "$have_gai_idn" = "assuming yes"; then
10499 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: if this assumption is wrong, use --disable-gai-idn" >&5
10500 printf '%s\n' "$as_me: if this assumption is wrong, use --disable-gai-idn" >&6;}
10501 have_gai_idn="yes"
10502 fi
10503 if test "$have_gai_idn" = "yes"; then
10504
10505 printf '%s\n' "#define HAVE_GAI_IDN 1" >>confdefs.h
10506
10507 fi
10508 fi
10509 fi
10510
10511
10512 # Check whether --with-libidn was given.
10513 if test ${with_libidn+y}
10514 then :
10515 withval=$with_libidn; libidn=$withval
10516 else case e in #(
10517 e) libidn=yes ;;
10518 esac
10519 fi
10520
10521 if test "$libidn" != "no"; then
10522
10523 pkg_failed=no
10524 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for libidn2 >= 0.0" >&5
10525 printf %s "checking for libidn2 >= 0.0... " >&6; }
10526
10527 if test -n "$libidn2_CFLAGS"; then
10528 pkg_cv_libidn2_CFLAGS="$libidn2_CFLAGS"
10529 elif test -n "$PKG_CONFIG"; then
10530 if test -n "$PKG_CONFIG" && \
10531 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2 >= 0.0\""; } >&5
10532 ($PKG_CONFIG --exists --print-errors "libidn2 >= 0.0") 2>&5
10533 ac_status=$?
10534 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10535 test $ac_status = 0; }; then
10536 pkg_cv_libidn2_CFLAGS=`$PKG_CONFIG --cflags "libidn2 >= 0.0" 2>/dev/null`
10537 test "x$?" != "x0" && pkg_failed=yes
10538 else
10539 pkg_failed=yes
10540 fi
10541 else
10542 pkg_failed=untried
10543 fi
10544 if test -n "$libidn2_LIBS"; then
10545 pkg_cv_libidn2_LIBS="$libidn2_LIBS"
10546 elif test -n "$PKG_CONFIG"; then
10547 if test -n "$PKG_CONFIG" && \
10548 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2 >= 0.0\""; } >&5
10549 ($PKG_CONFIG --exists --print-errors "libidn2 >= 0.0") 2>&5
10550 ac_status=$?
10551 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10552 test $ac_status = 0; }; then
10553 pkg_cv_libidn2_LIBS=`$PKG_CONFIG --libs "libidn2 >= 0.0" 2>/dev/null`
10554 test "x$?" != "x0" && pkg_failed=yes
10555 else
10556 pkg_failed=yes
10557 fi
10558 else
10559 pkg_failed=untried
10560 fi
10561
10562
10563
10564 if test $pkg_failed = yes; then
10565 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566 printf '%s\n' "no" >&6; }
10567
10568 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10569 _pkg_short_errors_supported=yes
10570 else
10571 _pkg_short_errors_supported=no
10572 fi
10573 if test $_pkg_short_errors_supported = yes; then
10574 libidn2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libidn2 >= 0.0" 2>&1`
10575 else
10576 libidn2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libidn2 >= 0.0" 2>&1`
10577 fi
10578 # Put the nasty error message in config.log where it belongs
10579 echo "$libidn2_PKG_ERRORS" >&5
10580
10581 HAVE_LIBIDN=0
10582 elif test $pkg_failed = untried; then
10583 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584 printf '%s\n' "no" >&6; }
10585 HAVE_LIBIDN=0
10586 else
10587 libidn2_CFLAGS=$pkg_cv_libidn2_CFLAGS
10588 libidn2_LIBS=$pkg_cv_libidn2_LIBS
10589 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10590 printf '%s\n' "yes" >&6; }
10591 HAVE_LIBIDN=1
10592 fi
10593 if test "$HAVE_LIBIDN" != "1"; then
10594 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: library libidn not found:" >&5
10595 printf '%s\n' "$as_me: WARNING: library libidn not found:" >&2;}
10596 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $libidn_PKG_ERRORS" >&5
10597 printf '%s\n' "$as_me: WARNING: $libidn_PKG_ERRORS" >&2;}
10598 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: libidn is provided by GNU Libidn" >&5
10599 printf '%s\n' "$as_me: WARNING: libidn is provided by GNU Libidn" >&2;}
10600 libidn="no"
10601 else
10602 libidn="yes"
10603
10604 printf '%s\n' "#define HAVE_LIBIDN 1" >>confdefs.h
10605
10606 fi
10607 fi
10608
10609
10610 # Check whether --with-libsecret was given.
10611 if test ${with_libsecret+y}
10612 then :
10613 withval=$with_libsecret; libsecret=$withval
10614 else case e in #(
10615 e) libsecret=yes ;;
10616 esac
10617 fi
10618
10619 if test "$libsecret" != "no"; then
10620
10621 pkg_failed=no
10622 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for libsecret-1" >&5
10623 printf %s "checking for libsecret-1... " >&6; }
10624
10625 if test -n "$libsecret_CFLAGS"; then
10626 pkg_cv_libsecret_CFLAGS="$libsecret_CFLAGS"
10627 elif test -n "$PKG_CONFIG"; then
10628 if test -n "$PKG_CONFIG" && \
10629 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsecret-1\""; } >&5
10630 ($PKG_CONFIG --exists --print-errors "libsecret-1") 2>&5
10631 ac_status=$?
10632 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10633 test $ac_status = 0; }; then
10634 pkg_cv_libsecret_CFLAGS=`$PKG_CONFIG --cflags "libsecret-1" 2>/dev/null`
10635 test "x$?" != "x0" && pkg_failed=yes
10636 else
10637 pkg_failed=yes
10638 fi
10639 else
10640 pkg_failed=untried
10641 fi
10642 if test -n "$libsecret_LIBS"; then
10643 pkg_cv_libsecret_LIBS="$libsecret_LIBS"
10644 elif test -n "$PKG_CONFIG"; then
10645 if test -n "$PKG_CONFIG" && \
10646 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsecret-1\""; } >&5
10647 ($PKG_CONFIG --exists --print-errors "libsecret-1") 2>&5
10648 ac_status=$?
10649 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10650 test $ac_status = 0; }; then
10651 pkg_cv_libsecret_LIBS=`$PKG_CONFIG --libs "libsecret-1" 2>/dev/null`
10652 test "x$?" != "x0" && pkg_failed=yes
10653 else
10654 pkg_failed=yes
10655 fi
10656 else
10657 pkg_failed=untried
10658 fi
10659
10660
10661
10662 if test $pkg_failed = yes; then
10663 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10664 printf '%s\n' "no" >&6; }
10665
10666 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10667 _pkg_short_errors_supported=yes
10668 else
10669 _pkg_short_errors_supported=no
10670 fi
10671 if test $_pkg_short_errors_supported = yes; then
10672 libsecret_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsecret-1" 2>&1`
10673 else
10674 libsecret_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsecret-1" 2>&1`
10675 fi
10676 # Put the nasty error message in config.log where it belongs
10677 echo "$libsecret_PKG_ERRORS" >&5
10678
10679 HAVE_LIBSECRET=0
10680 elif test $pkg_failed = untried; then
10681 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10682 printf '%s\n' "no" >&6; }
10683 HAVE_LIBSECRET=0
10684 else
10685 libsecret_CFLAGS=$pkg_cv_libsecret_CFLAGS
10686 libsecret_LIBS=$pkg_cv_libsecret_LIBS
10687 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10688 printf '%s\n' "yes" >&6; }
10689 HAVE_LIBSECRET=1
10690 fi
10691 if test "$HAVE_LIBSECRET" != "1"; then
10692 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: library libsecret not found:" >&5
10693 printf '%s\n' "$as_me: WARNING: library libsecret not found:" >&2;}
10694 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $libsecret_PKG_ERRORS" >&5
10695 printf '%s\n' "$as_me: WARNING: $libsecret_PKG_ERRORS" >&2;}
10696 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: libsecret is provided by Gnome" >&5
10697 printf '%s\n' "$as_me: WARNING: libsecret is provided by Gnome" >&2;}
10698 libsecret="no"
10699 else
10700 libsecret="yes"
10701
10702 printf '%s\n' "#define HAVE_LIBSECRET 1" >>confdefs.h
10703
10704 fi
10705 fi
10706
10707
10708 # Check whether --with-macosx-keyring was given.
10709 if test ${with_macosx_keyring+y}
10710 then :
10711 withval=$with_macosx_keyring; macosx_keyring=$withval
10712 else case e in #(
10713 e) macosx_keyring=yes ;;
10714 esac
10715 fi
10716
10717 if test "$macosx_keyring" != "no"; then
10718 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for SecKeychainGetVersion" >&5
10719 printf %s "checking for SecKeychainGetVersion... " >&6; }
10720 if test ${ac_cv_func_SecKeychainGetVersion+y}
10721 then :
10722 printf %s "(cached) " >&6
10723 else case e in #(
10724 e) ac_save_LIBS="$LIBS"
10725 LIBS="$LIBS -Wl,-framework -Wl,Security"
10726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10727 /* end confdefs.h. */
10728 #include <Security/Security.h>
10729 int
10730 main (void)
10731 {
10732 SecKeychainGetVersion(NULL);
10733 ;
10734 return 0;
10735 }
10736 _ACEOF
10737 if ac_fn_c_try_link "$LINENO"
10738 then :
10739 ac_cv_func_SecKeychainGetVersion=yes
10740 else case e in #(
10741 e) ac_cv_func_SecKeychainGetVersion=no ;;
10742 esac
10743 fi
10744 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10745 conftest$ac_exeext conftest.$ac_ext
10746 LIBS="$ac_save_LIBS" ;;
10747 esac
10748 fi
10749 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_SecKeychainGetVersion" >&5
10750 printf '%s\n' "$ac_cv_func_SecKeychainGetVersion" >&6; }
10751 if test $ac_cv_func_SecKeychainGetVersion = yes; then
10752 macosx_keyring=yes
10753
10754 printf '%s\n' "#define HAVE_MACOSXKEYRING 1" >>confdefs.h
10755
10756 LIBS="$LIBS -Wl,-framework -Wl,Security"
10757 else
10758 macosx_keyring=no
10759 fi
10760 fi
10761
10762
10763 # Check whether --with-msmtpd was given.
10764 if test ${with_msmtpd+y}
10765 then :
10766 withval=$with_msmtpd; if test "$withval" = "yes"; then build_msmtpd="yes"; else build_msmtpd="no"; fi
10767 else case e in #(
10768 e) build_msmtpd="$build_msmtpd_default" ;;
10769 esac
10770 fi
10771
10772 if test "$build_msmtpd" = "yes"; then
10773 BUILD_MSMTPD_TRUE=
10774 BUILD_MSMTPD_FALSE='#'
10775 else
10776 BUILD_MSMTPD_TRUE='#'
10777 BUILD_MSMTPD_FALSE=
10778 fi
10779
10780
10781
10782
10783 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in tests/Makefile doc/Makefile scripts/Makefile"
10784
10785 cat >confcache <<\_ACEOF
10786 # This file is a shell script that caches the results of configure
10787 # tests run on this system so they can be shared between configure
10788 # scripts and configure runs, see configure's option --config-cache.
10789 # It is not useful on other systems. If it contains results you don't
10790 # want to keep, you may remove or edit it.
10791 #
10792 # config.status only pays attention to the cache file if you give it
10793 # the --recheck option to rerun configure.
10794 #
10795 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
10796 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
10797 # following values.
10798
10799 _ACEOF
10800
10801 ac_cache_dump |
10802 sed '
10803 /^ac_cv_env_/b end
10804 t clear
10805 :clear
10806 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
10807 t end
10808 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10809 :end' >>confcache
10810 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10811 if test -w "$cache_file"; then
10812 if test "x$cache_file" != "x/dev/null"; then
10813 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10814 printf '%s\n' "$as_me: updating cache $cache_file" >&6;}
10815 if test ! -f "$cache_file" || test -h "$cache_file"; then
10816 cat confcache >"$cache_file"
10817 else
10818 case $cache_file in #(
10819 */* | ?:*)
10820 mv -f confcache "$cache_file"$$ &&
10821 mv -f "$cache_file"$$ "$cache_file" ;; #(
10822 *)
10823 mv -f confcache "$cache_file" ;;
10824 esac
10825 fi
10826 fi
10827 else
10828 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10829 printf '%s\n' "$as_me: not updating unwritable cache $cache_file" >&6;}
10830 fi
10831 fi
10832 rm -f confcache
10833
10834 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10835 # Let make expand exec_prefix.
10836 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10837
10838 DEFS=-DHAVE_CONFIG_H
10839
10840 ac_libobjs=
10841 ac_ltlibobjs=
10842 U=
10843 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10844 # 1. Remove the extension, and $U if already installed.
10845 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10846 ac_i=`printf '%s\n' "$ac_i" | sed "$ac_script"`
10847 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10848 # will be set to the directory where LIBOBJS objects are built.
10849 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10850 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10851 done
10852 LIBOBJS=$ac_libobjs
10853
10854 LTLIBOBJS=$ac_ltlibobjs
10855
10856
10857 # Check whether --enable-year2038 was given.
10858 if test ${enable_year2038+y}
10859 then :
10860 enableval=$enable_year2038;
10861 fi
10862
10863 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10864 printf %s "checking that generated files are newer than configure... " >&6; }
10865 if test -n "$am_sleep_pid"; then
10866 # Hide warnings about reused PIDs.
10867 wait $am_sleep_pid 2>/dev/null
10868 fi
10869 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: done" >&5
10870 printf '%s\n' "done" >&6; }
10871 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10872 as_fn_error $? "conditional \"AMDEP\" was never defined.
10873 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10874 fi
10875 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10876 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10877 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10878 fi
10879 case $enable_silent_rules in # (((
10880 yes) AM_DEFAULT_VERBOSITY=0;;
10881 no) AM_DEFAULT_VERBOSITY=1;;
10882 esac
10883 if test $am_cv_make_support_nested_variables = yes; then
10884 AM_V='$(V)'
10885 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10886 else
10887 AM_V=$AM_DEFAULT_VERBOSITY
10888 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10889 fi
10890
10891 if test -n "$EXEEXT"; then
10892 am__EXEEXT_TRUE=
10893 am__EXEEXT_FALSE='#'
10894 else
10895 am__EXEEXT_TRUE='#'
10896 am__EXEEXT_FALSE=
10897 fi
10898
10899 if test -z "${HAVE_TLS_TRUE}" && test -z "${HAVE_TLS_FALSE}"; then
10900 as_fn_error $? "conditional \"HAVE_TLS\" was never defined.
10901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10902 fi
10903 if test -z "${HAVE_GNUTLS_TRUE}" && test -z "${HAVE_GNUTLS_FALSE}"; then
10904 as_fn_error $? "conditional \"HAVE_GNUTLS\" was never defined.
10905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10906 fi
10907 if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
10908 as_fn_error $? "conditional \"HAVE_OPENSSL\" was never defined.
10909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10910 fi
10911 if test -z "${HAVE_LIBTLS_TRUE}" && test -z "${HAVE_LIBTLS_FALSE}"; then
10912 as_fn_error $? "conditional \"HAVE_LIBTLS\" was never defined.
10913 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10914 fi
10915 if test -z "${HAVE_LIBGSASL_TRUE}" && test -z "${HAVE_LIBGSASL_FALSE}"; then
10916 as_fn_error $? "conditional \"HAVE_LIBGSASL\" was never defined.
10917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10918 fi
10919 if test -z "${BUILD_MSMTPD_TRUE}" && test -z "${BUILD_MSMTPD_FALSE}"; then
10920 as_fn_error $? "conditional \"BUILD_MSMTPD\" was never defined.
10921 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10922 fi
10923
10924 : "${CONFIG_STATUS=./config.status}"
10925 case $CONFIG_STATUS in #(
10926 -*) :
10927 CONFIG_STATUS=./$CONFIG_STATUS ;; #(
10928 */*) :
10929 ;; #(
10930 *) :
10931 CONFIG_STATUS=./$CONFIG_STATUS ;;
10932 esac
10933
10934 ac_write_fail=0
10935 ac_clean_CONFIG_STATUS='"$CONFIG_STATUS"'
10936 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10937 printf '%s\n' "$as_me: creating $CONFIG_STATUS" >&6;}
10938 as_write_fail=0
10939 cat >"$CONFIG_STATUS" <<_ASEOF || as_write_fail=1
10940 #! $SHELL
10941 # Generated by $as_me.
10942 # Run this file to recreate the current configuration.
10943 # Compiler output produced by configure, useful for debugging
10944 # configure, is in config.log if it exists.
10945
10946 debug=false
10947 ac_cs_recheck=false
10948 ac_cs_silent=false
10949
10950 SHELL=\${CONFIG_SHELL-$SHELL}
10951 export SHELL
10952 _ASEOF
10953 cat >>"$CONFIG_STATUS" <<\_ASEOF || as_write_fail=1
10954 ## -------------------- ##
10955 ## M4sh Initialization. ##
10956 ## -------------------- ##
10957
10958 # Be more Bourne compatible
10959 DUALCASE=1; export DUALCASE # for MKS sh
10960 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
10961 then :
10962 emulate sh
10963 NULLCMD=:
10964 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10965 # contradicts POSIX and common usage. Disable this.
10966 alias -g '${1+"$@"}'='"$@"'
10967 setopt NO_GLOB_SUBST
10968 else case e in #(
10969 e) case `(set -o) 2>/dev/null` in #(
10970 *posix*) :
10971 set -o posix ;; #(
10972 *) :
10973 ;;
10974 esac ;;
10975 esac
10976 fi
10977
10978
10979
10980 # Reset variables that may have inherited troublesome values from
10981 # the environment.
10982
10983 # IFS needs to be set, to space, tab, and newline, in precisely that order.
10984 # (If _AS_PATH_WALK were called with IFS unset, it would have the
10985 # side effect of setting IFS to empty, thus disabling word splitting.)
10986 # Quoting is to prevent editors from complaining about space-tab.
10987 as_nl='
10988 '
10989 export as_nl
10990 IFS=" "" $as_nl"
10991
10992 PS1='$ '
10993 PS2='> '
10994 PS4='+ '
10995
10996 # Ensure predictable behavior from utilities with locale-dependent output.
10997 LC_ALL=C
10998 export LC_ALL
10999 LANGUAGE=C
11000 export LANGUAGE
11001
11002 # We cannot yet rely on "unset" to work, but we need these variables
11003 # to be unset--not just set to an empty or harmless value--now, to
11004 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11005 # also avoids known problems related to "unset" and subshell syntax
11006 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11007 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11008 do eval test \${$as_var+y} \
11009 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11010 done
11011
11012 # Ensure that fds 0, 1, and 2 are open.
11013 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11014 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11015 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11016
11017 # The user is always right.
11018 if ${PATH_SEPARATOR+false} :; then
11019 PATH_SEPARATOR=:
11020 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11021 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11022 PATH_SEPARATOR=';'
11023 }
11024 fi
11025
11026
11027 # Find who we are. Look in the path if we contain no directory separator.
11028 as_myself=
11029 case $0 in #((
11030 *[\\/]* ) as_myself=$0 ;;
11031 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11032 for as_dir in $PATH
11033 do
11034 IFS=$as_save_IFS
11035 case $as_dir in #(((
11036 '') as_dir=./ ;;
11037 */) ;;
11038 *) as_dir=$as_dir/ ;;
11039 esac
11040 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11041 done
11042 IFS=$as_save_IFS
11043
11044 ;;
11045 esac
11046 # We did not find ourselves, most probably we were run as 'sh COMMAND'
11047 # in which case we are not to be found in the path.
11048 if test "x$as_myself" = x; then
11049 as_myself=$0
11050 fi
11051 if test ! -f "$as_myself"; then
11052 printf '%s\n' "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11053 exit 1
11054 fi
11055
11056
11057
11058 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11059 # ----------------------------------------
11060 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11061 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11062 # script with STATUS, using 1 if that was 0.
11063 as_fn_error ()
11064 {
11065 as_status=$1; test $as_status -eq 0 && as_status=1
11066 if test "$4"; then
11067 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11068 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11069 fi
11070 printf '%s\n' "$as_me: error: $2" >&2
11071 as_fn_exit $as_status
11072 } # as_fn_error
11073
11074
11075 # as_fn_set_status STATUS
11076 # -----------------------
11077 # Set $? to STATUS, without forking.
11078 as_fn_set_status ()
11079 {
11080 return $1
11081 } # as_fn_set_status
11082
11083 # as_fn_exit STATUS
11084 # -----------------
11085 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11086 as_fn_exit ()
11087 {
11088 set +e
11089 as_fn_set_status $1
11090 exit $1
11091 } # as_fn_exit
11092
11093 # as_fn_unset VAR
11094 # ---------------
11095 # Portably unset VAR.
11096 as_fn_unset ()
11097 {
11098 { eval $1=; unset $1;}
11099 }
11100 as_unset=as_fn_unset
11101
11102 # as_fn_append VAR VALUE
11103 # ----------------------
11104 # Append the text in VALUE to the end of the definition contained in VAR. Take
11105 # advantage of any shell optimizations that allow amortized linear growth over
11106 # repeated appends, instead of the typical quadratic growth present in naive
11107 # implementations.
11108 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11109 then :
11110 eval 'as_fn_append ()
11111 {
11112 eval $1+=\$2
11113 }'
11114 else case e in #(
11115 e) as_fn_append ()
11116 {
11117 eval $1=\$$1\$2
11118 } ;;
11119 esac
11120 fi # as_fn_append
11121
11122 # as_fn_arith ARG...
11123 # ------------------
11124 # Perform arithmetic evaluation on the ARGs, and store the result in the
11125 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11126 # must be portable across $(()) and expr.
11127 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11128 then :
11129 eval 'as_fn_arith ()
11130 {
11131 as_val=$(( $* ))
11132 }'
11133 else case e in #(
11134 e) as_fn_arith ()
11135 {
11136 as_val=`expr "$@" || test $? -eq 1`
11137 } ;;
11138 esac
11139 fi # as_fn_arith
11140
11141
11142 if expr a : '\(a\)' >/dev/null 2>&1 &&
11143 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11144 as_expr=expr
11145 else
11146 as_expr=false
11147 fi
11148
11149 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11150 as_basename=basename
11151 else
11152 as_basename=false
11153 fi
11154
11155 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11156 as_dirname=dirname
11157 else
11158 as_dirname=false
11159 fi
11160
11161 as_me=`$as_basename -- "$0" ||
11162 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11163 X"$0" : 'X\(//\)$' \| \
11164 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11165 printf '%s\n' X/"$0" |
11166 sed '/^.*\/\([^/][^/]*\)\/*$/{
11167 s//\1/
11168 q
11169 }
11170 /^X\/\(\/\/\)$/{
11171 s//\1/
11172 q
11173 }
11174 /^X\/\(\/\).*/{
11175 s//\1/
11176 q
11177 }
11178 s/.*/./; q'`
11179
11180 # Avoid depending upon Character Ranges.
11181 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11182 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11183 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11184 as_cr_digits='0123456789'
11185 as_cr_alnum=$as_cr_Letters$as_cr_digits
11186
11187 rm -f conf$$ conf$$.exe conf$$.file
11188 if test -d conf$$.dir; then
11189 rm -f conf$$.dir/conf$$.file
11190 else
11191 rm -f conf$$.dir
11192 mkdir conf$$.dir 2>/dev/null
11193 fi
11194 if (echo >conf$$.file) 2>/dev/null; then
11195 if ln -s conf$$.file conf$$ 2>/dev/null; then
11196 as_ln_s='ln -s'
11197 # ... but there are two gotchas:
11198 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
11199 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
11200 # In both cases, we have to default to 'cp -pR'.
11201 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11202 as_ln_s='cp -pR'
11203 elif ln conf$$.file conf$$ 2>/dev/null; then
11204 as_ln_s=ln
11205 else
11206 as_ln_s='cp -pR'
11207 fi
11208 else
11209 as_ln_s='cp -pR'
11210 fi
11211 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11212 rmdir conf$$.dir 2>/dev/null
11213
11214
11215 # as_fn_mkdir_p
11216 # -------------
11217 # Create "$as_dir" as a directory, including parents if necessary.
11218 as_fn_mkdir_p ()
11219 {
11220
11221 case $as_dir in #(
11222 -*) as_dir=./$as_dir;;
11223 esac
11224 test -d "$as_dir" || eval $as_mkdir_p || {
11225 as_dirs=
11226 while :; do
11227 case $as_dir in #(
11228 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11229 *) as_qdir=$as_dir;;
11230 esac
11231 as_dirs="'$as_qdir' $as_dirs"
11232 as_dir=`$as_dirname -- "$as_dir" ||
11233 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11234 X"$as_dir" : 'X\(//\)[^/]' \| \
11235 X"$as_dir" : 'X\(//\)$' \| \
11236 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11237 printf '%s\n' X"$as_dir" |
11238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11239 s//\1/
11240 q
11241 }
11242 /^X\(\/\/\)[^/].*/{
11243 s//\1/
11244 q
11245 }
11246 /^X\(\/\/\)$/{
11247 s//\1/
11248 q
11249 }
11250 /^X\(\/\).*/{
11251 s//\1/
11252 q
11253 }
11254 s/.*/./; q'`
11255 test -d "$as_dir" && break
11256 done
11257 test -z "$as_dirs" || eval "mkdir $as_dirs"
11258 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11259
11260
11261 } # as_fn_mkdir_p
11262 if mkdir -p . 2>/dev/null; then
11263 as_mkdir_p='mkdir -p "$as_dir"'
11264 else
11265 test -d ./-p && rmdir ./-p
11266 as_mkdir_p=false
11267 fi
11268
11269
11270 # as_fn_executable_p FILE
11271 # -----------------------
11272 # Test if FILE is an executable regular file.
11273 as_fn_executable_p ()
11274 {
11275 test -f "$1" && test -x "$1"
11276 } # as_fn_executable_p
11277 as_test_x='test -x'
11278 as_executable_p=as_fn_executable_p
11279
11280 # Sed expression to map a string onto a valid CPP name.
11281 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11282 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
11283
11284 # Sed expression to map a string onto a valid variable name.
11285 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11286 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
11287
11288
11289 exec 6>&1
11290 ## ------------------------------------- ##
11291 ## Main body of "$CONFIG_STATUS" script. ##
11292 ## ------------------------------------- ##
11293 _ASEOF
11294 test $as_write_fail = 0 && chmod +x "$CONFIG_STATUS" || ac_write_fail=1
11295
11296 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
11297 # Save the log message, to keep $0 and so on meaningful, and to
11298 # report actual input values of CONFIG_FILES etc. instead of their
11299 # values after options handling.
11300 ac_log="
11301 This file was extended by msmtp $as_me 1.8.33, which was
11302 generated by GNU Autoconf 2.73. Invocation command line was
11303
11304 CONFIG_FILES = $CONFIG_FILES
11305 CONFIG_HEADERS = $CONFIG_HEADERS
11306 CONFIG_LINKS = $CONFIG_LINKS
11307 CONFIG_COMMANDS = $CONFIG_COMMANDS
11308 $ $0 $@
11309
11310 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11311 "
11312
11313 _ACEOF
11314
11315 case $ac_config_files in *"
11316 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11317 esac
11318
11319 case $ac_config_headers in *"
11320 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11321 esac
11322
11323
11324 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
11325 # Files that config.status was made for.
11326 config_files="$ac_config_files"
11327 config_headers="$ac_config_headers"
11328 config_commands="$ac_config_commands"
11329
11330 _ACEOF
11331
11332 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
11333 ac_cs_usage="\
11334 '$as_me' instantiates files and other configuration actions
11335 from templates according to the current configuration. Unless the files
11336 and actions are specified as TAGs, all are instantiated by default.
11337
11338 Usage: $0 [OPTION]... [TAG]...
11339
11340 -h, --help print this help, then exit
11341 -V, --version print version number and configuration settings, then exit
11342 --config print configuration, then exit
11343 -q, --quiet, --silent
11344 do not print progress messages
11345 -d, --debug don't remove temporary files
11346 --recheck update $as_me by reconfiguring in the same conditions
11347 --file=FILE[:TEMPLATE]
11348 instantiate the configuration file FILE
11349 --header=FILE[:TEMPLATE]
11350 instantiate the configuration header FILE
11351
11352 Configuration files:
11353 $config_files
11354
11355 Configuration headers:
11356 $config_headers
11357
11358 Configuration commands:
11359 $config_commands
11360
11361 Report bugs to <[email protected]>.
11362 msmtp home page: <https://marlam.de/msmtp>."
11363
11364 _ACEOF
11365 ac_cs_config=`printf '%s\n' "$ac_configure_args" | sed "$ac_safe_unquote"`
11366 ac_cs_config_escaped=`printf '%s\n' "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11367 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
11368 ac_cs_config='$ac_cs_config_escaped'
11369 ac_cs_version="\\
11370 msmtp config.status 1.8.33
11371 configured by $0, generated by GNU Autoconf 2.73,
11372 with options \\"\$ac_cs_config\\"
11373
11374 Copyright (C) 2026 Free Software Foundation, Inc.
11375 This config.status script is free software; the Free Software Foundation
11376 gives unlimited permission to copy, distribute and modify it."
11377
11378 ac_pwd='$ac_pwd'
11379 srcdir='$srcdir'
11380 INSTALL='$INSTALL'
11381 MKDIR_P='$MKDIR_P'
11382 AWK='$AWK'
11383 test -n "\$AWK" || {
11384 awk '' </dev/null ||
11385 as_fn_error \$? "try installing gawk"
11386 AWK=awk
11387 }
11388 _ACEOF
11389
11390 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
11391 # The default lists apply if the user does not specify any file.
11392 ac_need_defaults=:
11393 while test $# != 0
11394 do
11395 case $1 in
11396 --*=?*)
11397 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11398 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11399 ac_shift=:
11400 ;;
11401 --*=)
11402 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11403 ac_optarg=
11404 ac_shift=:
11405 ;;
11406 *)
11407 ac_option=$1
11408 ac_optarg=$2
11409 ac_shift=shift
11410 ;;
11411 esac
11412
11413 case $ac_option in
11414 # Handling of the options.
11415 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11416 ac_cs_recheck=: ;;
11417 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11418 printf '%s\n' "$ac_cs_version"; exit ;;
11419 --config | --confi | --conf | --con | --co | --c )
11420 printf '%s\n' "$ac_cs_config"; exit ;;
11421 --debug | --debu | --deb | --de | --d | -d )
11422 debug=: ;;
11423 --file | --fil | --fi | --f )
11424 $ac_shift
11425 case $ac_optarg in
11426 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11427 '') as_fn_error $? "missing file argument" ;;
11428 esac
11429 as_fn_append CONFIG_FILES " '$ac_optarg'"
11430 ac_need_defaults=false;;
11431 --header | --heade | --head | --hea )
11432 $ac_shift
11433 case $ac_optarg in
11434 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11435 esac
11436 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11437 ac_need_defaults=false;;
11438 --he | --h)
11439 # Conflict between --help and --header
11440 as_fn_error $? "ambiguous option: '$1'
11441 Try '$0 --help' for more information.";;
11442 --help | --hel | -h )
11443 printf '%s\n' "$ac_cs_usage"; exit ;;
11444 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11445 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11446 ac_cs_silent=: ;;
11447
11448 # This is an error.
11449 -*) as_fn_error $? "unrecognized option: '$1'
11450 Try '$0 --help' for more information." ;;
11451
11452 *) as_fn_append ac_config_targets " $1"
11453 ac_need_defaults=false ;;
11454
11455 esac
11456 shift
11457 done
11458
11459 ac_configure_extra_args=
11460
11461 if $ac_cs_silent; then
11462 exec 6>/dev/null
11463 ac_configure_extra_args="$ac_configure_extra_args --silent"
11464 fi
11465
11466 _ACEOF
11467 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
11468 if \$ac_cs_recheck; then
11469 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11470 shift
11471 \printf '%s\n' "running CONFIG_SHELL=$SHELL \$*" >&6
11472 CONFIG_SHELL='$SHELL'
11473 export CONFIG_SHELL
11474 exec "\$@"
11475 fi
11476
11477 _ACEOF
11478 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
11479 exec 5>>config.log
11480 {
11481 echo
11482 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11483 ## Running $as_me. ##
11484 _ASBOX
11485 printf '%s\n' "$ac_log"
11486 } >&5
11487
11488 _ACEOF
11489 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
11490 #
11491 # INIT-COMMANDS
11492 #
11493 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
11494
11495 _ACEOF
11496
11497 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
11498
11499 # Handling of arguments.
11500 for ac_config_target in $ac_config_targets
11501 do
11502 case $ac_config_target in
11503 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11504 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11505 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
11506 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11507 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11508 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
11509 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
11510 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11511 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
11512
11513 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
11514 esac
11515 done
11516
11517
11518 # If the user did not use the arguments to specify the items to instantiate,
11519 # then the envvar interface is used. Set only those that are not.
11520 # We use the long form for the default assignment because of an extremely
11521 # bizarre bug on SunOS 4.1.3.
11522 if $ac_need_defaults; then
11523 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
11524 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
11525 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
11526 fi
11527
11528 # Have a temporary directory for convenience. Make it in the build tree
11529 # simply because there is no reason against having it here, and in addition,
11530 # creating and moving files from /tmp can sometimes cause problems.
11531 # Hook for its removal unless debugging.
11532 # Note that there is a small window in which the directory will not be cleaned:
11533 # after its creation but before its name has been assigned to '$tmp'.
11534 $debug ||
11535 {
11536 tmp= ac_tmp=
11537 trap 'exit_status=$?
11538 : "${ac_tmp:=$tmp}"
11539 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11540 ' 0
11541 trap 'as_fn_exit 1' 1 2 13 15
11542 }
11543 # Create a (secure) tmp directory for tmp files.
11544
11545 {
11546 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11547 test -d "$tmp"
11548 } ||
11549 {
11550 tmp=./conf$$-$RANDOM
11551 (umask 077 && mkdir "$tmp")
11552 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11553 ac_tmp=$tmp
11554
11555 # Set up the scripts for CONFIG_FILES section.
11556 # No need to generate them if there are no CONFIG_FILES.
11557 # This happens for instance with './config.status config.h'.
11558 if test -n "$CONFIG_FILES"; then
11559
11560
11561 ac_cr=`echo X | tr X '\015'`
11562 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11563 # But we know of no other shell where ac_cr would be empty at this
11564 # point, so we can use a bashism as a fallback.
11565 if test "x$ac_cr" = x; then
11566 eval ac_cr=\$\'\\r\'
11567 fi
11568 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11569 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11570 ac_cs_awk_cr='\\r'
11571 else
11572 ac_cs_awk_cr=$ac_cr
11573 fi
11574
11575 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11576 _ACEOF
11577
11578
11579 {
11580 echo "cat >conf$$subs.awk <<_ACEOF" &&
11581 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11582 echo "_ACEOF"
11583 } >conf$$subs.sh ||
11584 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11585 ac_delim_num=`echo "$ac_subst_vars" | sed -n '$='`
11586 ac_delim='%!_!# '
11587 for ac_last_try in false false false false false :; do
11588 . ./conf$$subs.sh ||
11589 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11590
11591 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | sed -n '$='`
11592 if test $ac_delim_n = $ac_delim_num; then
11593 break
11594 elif $ac_last_try; then
11595 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11596 else
11597 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11598 fi
11599 done
11600 rm -f conf$$subs.sh
11601
11602 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
11603 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11604 _ACEOF
11605 sed -n '
11606 h
11607 s/^/S["/; s/!.*/"]=/
11608 p
11609 g
11610 s/^[^!]*!//
11611 :repl
11612 t repl
11613 s/'"$ac_delim"'$//
11614 t delim
11615 :nl
11616 h
11617 s/\(.\{148\}\)..*/\1/
11618 t more1
11619 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11620 p
11621 n
11622 b repl
11623 :more1
11624 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11625 p
11626 g
11627 s/.\{148\}//
11628 t nl
11629 :delim
11630 h
11631 s/\(.\{148\}\)..*/\1/
11632 t more2
11633 s/["\\]/\\&/g; s/^/"/; s/$/"/
11634 p
11635 b
11636 :more2
11637 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11638 p
11639 g
11640 s/.\{148\}//
11641 t delim
11642 ' <conf$$subs.awk | sed '
11643 /^[^""]/{
11644 N
11645 s/\n//
11646 }
11647 ' >>"$CONFIG_STATUS" || ac_write_fail=1
11648 rm -f conf$$subs.awk
11649 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
11650 _ACAWK
11651 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11652 for (key in S) S_is_set[key] = 1
11653 FS = ""
11654
11655 }
11656 {
11657 line = $ 0
11658 nfields = split(line, field, "@")
11659 substed = 0
11660 len = length(field[1])
11661 for (i = 2; i < nfields; i++) {
11662 key = field[i]
11663 keylen = length(key)
11664 if (S_is_set[key]) {
11665 value = S[key]
11666 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11667 len += length(value) + length(field[++i])
11668 substed = 1
11669 } else
11670 len += 1 + keylen
11671 }
11672
11673 print line
11674 }
11675
11676 _ACAWK
11677 _ACEOF
11678 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
11679 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11680 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11681 else
11682 cat
11683 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11684 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11685 _ACEOF
11686
11687 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11688 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11689 # trailing colons and then remove the whole line if VPATH becomes empty
11690 # (actually we leave an empty line to preserve line numbers).
11691 if test "x$srcdir" = x.; then
11692 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11693 h
11694 s///
11695 s/^/:/
11696 s/[ ]*$/:/
11697 s/:\$(srcdir):/:/g
11698 s/:\${srcdir}:/:/g
11699 s/:@srcdir@:/:/g
11700 s/^:*//
11701 s/:*$//
11702 x
11703 s/\(=[ ]*\).*/\1/
11704 G
11705 s/\n//
11706 s/^[^=]*=[ ]*$//
11707 }'
11708 fi
11709
11710 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
11711 fi # test -n "$CONFIG_FILES"
11712
11713 # Set up the scripts for CONFIG_HEADERS section.
11714 # No need to generate them if there are no CONFIG_HEADERS.
11715 # This happens for instance with './config.status Makefile'.
11716 if test -n "$CONFIG_HEADERS"; then
11717 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11718 BEGIN {
11719 _ACEOF
11720
11721 # Transform confdefs.h into an awk script 'defines.awk', embedded as
11722 # here-document in config.status, that substitutes the proper values into
11723 # config.h.in to produce config.h.
11724
11725 # Create a delimiter string that does not exist in confdefs.h, to ease
11726 # handling of long lines.
11727 ac_delim='%!_!# '
11728 for ac_last_try in false false :; do
11729 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11730 if test -z "$ac_tt"; then
11731 break
11732 elif $ac_last_try; then
11733 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11734 else
11735 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11736 fi
11737 done
11738
11739 # For the awk script, D is an array of macro values keyed by name,
11740 # likewise P contains macro parameters if any. Preserve backslash
11741 # newline sequences.
11742
11743 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11744 sed -n '
11745 s/.\{148\}/&'"$ac_delim"'/g
11746 t rset
11747 :rset
11748 s/^[ ]*#[ ]*define[ ][ ]*/ /
11749 t def
11750 d
11751 :def
11752 s/\\$//
11753 t bsnl
11754 s/["\\]/\\&/g
11755 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11756 D["\1"]=" \3"/p
11757 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11758 d
11759 :bsnl
11760 s/["\\]/\\&/g
11761 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11762 D["\1"]=" \3\\\\\\n"\\/p
11763 t cont
11764 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11765 t cont
11766 d
11767 :cont
11768 n
11769 s/.\{148\}/&'"$ac_delim"'/g
11770 t clear
11771 :clear
11772 s/\\$//
11773 t bsnlc
11774 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11775 d
11776 :bsnlc
11777 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11778 b cont
11779 ' <confdefs.h | sed '
11780 s/'"$ac_delim"'/"\\\
11781 "/g' >>"$CONFIG_STATUS" || ac_write_fail=1
11782
11783 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
11784 for (key in D) D_is_set[key] = 1
11785 FS = ""
11786 }
11787 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11788 line = \$ 0
11789 split(line, arg, " ")
11790 if (arg[1] == "#") {
11791 defundef = arg[2]
11792 mac1 = arg[3]
11793 } else {
11794 defundef = substr(arg[1], 2)
11795 mac1 = arg[2]
11796 }
11797 split(mac1, mac2, "(") #)
11798 macro = mac2[1]
11799 prefix = substr(line, 1, index(line, defundef) - 1)
11800 if (D_is_set[macro]) {
11801 suffix = P[macro] D[macro]
11802 while (suffix ~ /[\t ]$/) {
11803 suffix = substr(suffix, 1, length(suffix) - 1)
11804 }
11805 # Preserve the white space surrounding the "#".
11806 print prefix "define", macro suffix
11807 next
11808 } else {
11809 # Replace #undef with comments. This is necessary, for example,
11810 # in the case of _POSIX_SOURCE, which is predefined and required
11811 # on some systems where configure will not decide to define it.
11812 if (defundef == "undef") {
11813 print "/*", prefix defundef, macro, "*/"
11814 next
11815 }
11816 }
11817 }
11818 { print }
11819 _ACAWK
11820 _ACEOF
11821 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
11822 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11823 fi # test -n "$CONFIG_HEADERS"
11824
11825
11826 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11827 shift
11828 for ac_tag
11829 do
11830 case $ac_tag in
11831 :[FHLC]) ac_mode=$ac_tag; continue;;
11832 esac
11833 case $ac_mode$ac_tag in
11834 :[FHL]*:*);;
11835 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
11836 :[FH]-) ac_tag=-:-;;
11837 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11838 esac
11839 ac_save_IFS=$IFS
11840 IFS=:
11841 set x $ac_tag
11842 IFS=$ac_save_IFS
11843 shift
11844 ac_file=$1
11845 shift
11846
11847 case $ac_mode in
11848 :L) ac_source=$1;;
11849 :[FH])
11850 ac_file_inputs=
11851 for ac_f
11852 do
11853 case $ac_f in
11854 -) ac_f="$ac_tmp/stdin";;
11855 *) # Look for the file first in the build tree, then in the source tree
11856 # (if the path is not absolute). The absolute path cannot be DOS-style,
11857 # because $ac_f cannot contain ':'.
11858 test -f "$ac_f" ||
11859 case $ac_f in
11860 [\\/$]*) false;;
11861 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11862 esac ||
11863 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
11864 esac
11865 case $ac_f in *\'*) ac_f=`printf '%s\n' "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11866 as_fn_append ac_file_inputs " '$ac_f'"
11867 done
11868
11869 # Let's still pretend it is 'configure' which instantiates (i.e., don't
11870 # use $as_me), people would be surprised to read:
11871 # /* config.h. Generated by config.status. */
11872 configure_input='Generated from '`
11873 printf '%s\n' "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11874 `' by configure.'
11875 if test x"$ac_file" != x-; then
11876 configure_input="$ac_file. $configure_input"
11877 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11878 printf '%s\n' "$as_me: creating $ac_file" >&6;}
11879 fi
11880 # Neutralize special characters interpreted by sed in replacement strings.
11881 case $configure_input in #(
11882 *\&* | *\|* | *\\* )
11883 ac_sed_conf_input=`printf '%s\n' "$configure_input" |
11884 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11885 *) ac_sed_conf_input=$configure_input;;
11886 esac
11887
11888 case $ac_tag in
11889 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11890 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11891 esac
11892 ;;
11893 esac
11894
11895 ac_dir=`$as_dirname -- "$ac_file" ||
11896 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11897 X"$ac_file" : 'X\(//\)[^/]' \| \
11898 X"$ac_file" : 'X\(//\)$' \| \
11899 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11900 printf '%s\n' X"$ac_file" |
11901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11902 s//\1/
11903 q
11904 }
11905 /^X\(\/\/\)[^/].*/{
11906 s//\1/
11907 q
11908 }
11909 /^X\(\/\/\)$/{
11910 s//\1/
11911 q
11912 }
11913 /^X\(\/\).*/{
11914 s//\1/
11915 q
11916 }
11917 s/.*/./; q'`
11918 as_dir="$ac_dir"; as_fn_mkdir_p
11919 ac_builddir=.
11920
11921 case "$ac_dir" in
11922 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11923 *)
11924 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`
11925 # A ".." for each directory in $ac_dir_suffix.
11926 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11927 case $ac_top_builddir_sub in
11928 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11929 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11930 esac ;;
11931 esac
11932 ac_abs_top_builddir=$ac_pwd
11933 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11934 # for backward compatibility:
11935 ac_top_builddir=$ac_top_build_prefix
11936
11937 case $srcdir in
11938 .) # We are building in place.
11939 ac_srcdir=.
11940 ac_top_srcdir=$ac_top_builddir_sub
11941 ac_abs_top_srcdir=$ac_pwd ;;
11942 [\\/]* | ?:[\\/]* ) # Absolute name.
11943 ac_srcdir=$srcdir$ac_dir_suffix;
11944 ac_top_srcdir=$srcdir
11945 ac_abs_top_srcdir=$srcdir ;;
11946 *) # Relative name.
11947 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11948 ac_top_srcdir=$ac_top_build_prefix$srcdir
11949 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11950 esac
11951 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11952
11953
11954 case $ac_mode in
11955 :F)
11956 #
11957 # CONFIG_FILE
11958 #
11959
11960 case $INSTALL in
11961 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11962 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11963 esac
11964 ac_MKDIR_P=$MKDIR_P
11965 case $MKDIR_P in
11966 [\\/$]* | ?:[\\/]* ) ;;
11967 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11968 esac
11969 _ACEOF
11970
11971 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
11972 # If the template does not know about datarootdir, expand it.
11973 # FIXME: This hack should be removed a few years after 2.60.
11974 ac_datarootdir_hack=; ac_datarootdir_seen=
11975 ac_sed_dataroot='
11976 /datarootdir/ {
11977 p
11978 q
11979 }
11980 /@datadir@/p
11981 /@docdir@/p
11982 /@infodir@/p
11983 /@localedir@/p
11984 /@mandir@/p'
11985 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11986 *datarootdir*) ac_datarootdir_seen=yes;;
11987 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11988 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11989 printf '%s\n' "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11990 _ACEOF
11991 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
11992 ac_datarootdir_hack='
11993 s&@datadir@&$datadir&g
11994 s&@docdir@&$docdir&g
11995 s&@infodir@&$infodir&g
11996 s&@localedir@&$localedir&g
11997 s&@mandir@&$mandir&g
11998 s&\\\${datarootdir}&$datarootdir&g' ;;
11999 esac
12000 _ACEOF
12001
12002 # Neutralize VPATH when '$srcdir' = '.'.
12003 # Shell code in configure.ac might set extrasub.
12004 # FIXME: do we really want to maintain this feature?
12005 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12006 ac_sed_extra="$ac_vpsub
12007 $extrasub
12008 _ACEOF
12009 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12010 :t
12011 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12012 s|@configure_input@|$ac_sed_conf_input|;t t
12013 s&@top_builddir@&$ac_top_builddir_sub&;t t
12014 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12015 s&@srcdir@&$ac_srcdir&;t t
12016 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12017 s&@top_srcdir@&$ac_top_srcdir&;t t
12018 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12019 s&@builddir@&$ac_builddir&;t t
12020 s&@abs_builddir@&$ac_abs_builddir&;t t
12021 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12022 s&@INSTALL@&$ac_INSTALL&;t t
12023 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12024 $ac_datarootdir_hack
12025 "
12026 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12027 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12028
12029 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12030 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12031 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12032 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12033 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12034 which seems to be undefined. Please make sure it is defined" >&5
12035 printf '%s\n' "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12036 which seems to be undefined. Please make sure it is defined" >&2;}
12037
12038 rm -f "$ac_tmp/stdin"
12039 case $ac_file in
12040 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12041 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12042 esac \
12043 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12044 ;;
12045 :H)
12046 #
12047 # CONFIG_HEADER
12048 #
12049 if test x"$ac_file" != x-; then
12050 {
12051 printf '%s\n' "/* $configure_input */" >&1 \
12052 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12053 } >"$ac_tmp/config.h" \
12054 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12055 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12056 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12057 printf '%s\n' "$as_me: $ac_file is unchanged" >&6;}
12058 else
12059 rm -f "$ac_file"
12060 mv "$ac_tmp/config.h" "$ac_file" \
12061 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12062 fi
12063 else
12064 printf '%s\n' "/* $configure_input */" >&1 \
12065 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12066 || as_fn_error $? "could not create -" "$LINENO" 5
12067 fi
12068 # Compute "$ac_file"'s index in $config_headers.
12069 _am_arg="$ac_file"
12070 _am_stamp_count=1
12071 for _am_header in $config_headers :; do
12072 case $_am_header in
12073 $_am_arg | $_am_arg:* )
12074 break ;;
12075 * )
12076 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12077 esac
12078 done
12079 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12080 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12081 X"$_am_arg" : 'X\(//\)[^/]' \| \
12082 X"$_am_arg" : 'X\(//\)$' \| \
12083 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12084 printf '%s\n' X"$_am_arg" |
12085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12086 s//\1/
12087 q
12088 }
12089 /^X\(\/\/\)[^/].*/{
12090 s//\1/
12091 q
12092 }
12093 /^X\(\/\/\)$/{
12094 s//\1/
12095 q
12096 }
12097 /^X\(\/\).*/{
12098 s//\1/
12099 q
12100 }
12101 s/.*/./; q'`/stamp-h$_am_stamp_count
12102 ;;
12103
12104 :C) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12105 printf '%s\n' "$as_me: executing $ac_file commands" >&6;}
12106 ;;
12107 esac
12108
12109
12110 case $ac_file$ac_mode in
12111 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12112 # Older Autoconf quotes --file arguments for eval, but not when files
12113 # are listed without --file. Let's play safe and only enable the eval
12114 # if we detect the quoting.
12115 # TODO: see whether this extra hack can be removed once we start
12116 # requiring Autoconf 2.70 or later.
12117 case $CONFIG_FILES in #(
12118 *\'*) :
12119 eval set x "$CONFIG_FILES" ;; #(
12120 *) :
12121 set x $CONFIG_FILES ;; #(
12122 *) :
12123 ;;
12124 esac
12125 shift
12126 # Used to flag and report bootstrapping failures.
12127 am_rc=0
12128 for am_mf
12129 do
12130 # Strip MF so we end up with the name of the file.
12131 am_mf=`printf '%s\n' "$am_mf" | sed -e 's/:.*$//'`
12132 # Check whether this is an Automake generated Makefile which includes
12133 # dependency-tracking related rules and includes.
12134 # Grep'ing the whole file directly is not great: AIX grep has a line
12135 # limit of 2048, but all sed's we know have understand at least 4000.
12136 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12137 || continue
12138 am_dirpart=`$as_dirname -- "$am_mf" ||
12139 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12140 X"$am_mf" : 'X\(//\)[^/]' \| \
12141 X"$am_mf" : 'X\(//\)$' \| \
12142 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12143 printf '%s\n' X"$am_mf" |
12144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12145 s//\1/
12146 q
12147 }
12148 /^X\(\/\/\)[^/].*/{
12149 s//\1/
12150 q
12151 }
12152 /^X\(\/\/\)$/{
12153 s//\1/
12154 q
12155 }
12156 /^X\(\/\).*/{
12157 s//\1/
12158 q
12159 }
12160 s/.*/./; q'`
12161 am_filepart=`$as_basename -- "$am_mf" ||
12162 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12163 X"$am_mf" : 'X\(//\)$' \| \
12164 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12165 printf '%s\n' X/"$am_mf" |
12166 sed '/^.*\/\([^/][^/]*\)\/*$/{
12167 s//\1/
12168 q
12169 }
12170 /^X\/\(\/\/\)$/{
12171 s//\1/
12172 q
12173 }
12174 /^X\/\(\/\).*/{
12175 s//\1/
12176 q
12177 }
12178 s/.*/./; q'`
12179 { echo "$as_me:$LINENO: cd "$am_dirpart" \
12180 && sed -e '/# am--include-marker/d' "$am_filepart" \
12181 | $MAKE -f - am--depfiles" >&5
12182 (cd "$am_dirpart" \
12183 && sed -e '/# am--include-marker/d' "$am_filepart" \
12184 | $MAKE -f - am--depfiles) >&5 2>&5
12185 ac_status=$?
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } || am_rc=$?
12188 done
12189 if test $am_rc -ne 0; then
12190 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12191 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
12192 as_fn_error $? "Something went wrong bootstrapping makefile fragments
12193 for automatic dependency tracking. If GNU make was not used, consider
12194 re-running the configure script with MAKE=\"gmake\" (or whatever is
12195 necessary). You can also try re-running configure with the
12196 '--disable-dependency-tracking' option to at least be able to build
12197 the package (albeit without support for automatic dependency tracking).
12198 See 'config.log' for more details" "$LINENO" 5; }
12199 fi
12200 { am_dirpart=; unset am_dirpart;}
12201 { am_filepart=; unset am_filepart;}
12202 { am_mf=; unset am_mf;}
12203 { am_rc=; unset am_rc;}
12204 rm -f conftest-deps.mk
12205 }
12206 ;;
12207 "po-directories":C)
12208 for ac_file in $CONFIG_FILES; do
12209 # Support "outfile[:infile[:infile...]]"
12210 case "$ac_file" in
12211 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12212 esac
12213 # PO directories have a Makefile.in generated from Makefile.in.in.
12214 case "$ac_file" in */Makefile.in)
12215 # Adjust a relative srcdir.
12216 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12217 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
12218 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12219 # In autoconf-2.13 it is called $ac_given_srcdir.
12220 # In autoconf-2.50 it is called $srcdir.
12221 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12222 # Treat a directory as a PO directory if and only if it has a
12223 # POTFILES.in file. This allows packages to have multiple PO
12224 # directories under different names or in different locations.
12225 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12226 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12227 cat "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
12228 fi
12229 ;;
12230 esac
12231 done ;;
12232
12233 esac
12234 done # for ac_tag
12235
12236
12237 as_fn_exit 0
12238 _ACEOF
12239 ac_clean_CONFIG_STATUS=
12240
12241 test $ac_write_fail = 0 ||
12242 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12243
12244
12245 # configure is writing to config.log, and then calls config.status.
12246 # config.status does its own redirection, appending to config.log.
12247 # Unfortunately, on DOS this fails, as config.log is still kept open
12248 # by configure, so config.status won't be able to write to it; its
12249 # output is simply discarded. So we exec the FD to /dev/null,
12250 # effectively closing config.log, so it can be properly (re)opened and
12251 # appended to by config.status. When coming back to configure, we
12252 # need to make the FD available again.
12253 if test "$no_create" != yes; then
12254 ac_cs_success=:
12255 case $CONFIG_STATUS in #(
12256 -*) :
12257 ac_no_opts=-- ;; #(
12258 *) :
12259 ac_no_opts= ;;
12260 esac
12261 ac_config_status_args=
12262 test "$silent" = yes &&
12263 ac_config_status_args="$ac_config_status_args --quiet"
12264 exec 5>/dev/null
12265 $SHELL $ac_no_opts "$CONFIG_STATUS" $ac_config_status_args ||
12266 ac_cs_success=false
12267 exec 5>>config.log
12268 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12269 # would make configure fail if this is the last instruction.
12270 $ac_cs_success || as_fn_exit 1
12271 fi
12272 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12273 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12274 printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12275 fi
12276
12277
12278 echo
12279 echo "Install prefix ......... : $prefix"
12280 echo "NLS support ............ : $USE_NLS"
12281 echo "TLS support ............ : $have_tls (Library: $tls_lib)"
12282 echo "IDN support ............ : $libidn"
12283 echo "GNU SASL support ....... : $libgsasl"
12284 echo "Libsecret support (GNOME): $libsecret"
12285 echo "MacOS X Keychain support : $macosx_keyring"
12286 echo "Build msmtpd ............: $build_msmtpd"
12287