comparison configure @ 1814:f78e67527731

Add configure script to version control. Set timezone for release tarball
author Matt Johnston <matt@ucc.asn.au>
date Wed, 31 Mar 2021 23:23:14 +0800
parents
children df7bfd2f7d45
comparison
equal deleted inserted replaced
1813:b63f1e803f70 1814:f78e67527731
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else $as_nop
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144 emulate sh
145 NULLCMD=:
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 setopt NO_GLOB_SUBST
150 else \$as_nop
151 case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
155 ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else \$as_nop
174 exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184 test \$(( 1 + 1 )) = 2 || exit 1"
185 if (eval "$as_required") 2>/dev/null
186 then :
187 as_have_required=yes
188 else $as_nop
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
192 then :
193
194 else $as_nop
195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 as_found=false
197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198 do
199 IFS=$as_save_IFS
200 case $as_dir in #(((
201 '') as_dir=./ ;;
202 */) ;;
203 *) as_dir=$as_dir/ ;;
204 esac
205 as_found=:
206 case $as_dir in #(
207 /*)
208 for as_base in sh bash ksh sh5; do
209 # Try only shells that exist, to save several forks.
210 as_shell=$as_dir$as_base
211 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
212 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
213 then :
214 CONFIG_SHELL=$as_shell as_have_required=yes
215 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
216 then :
217 break 2
218 fi
219 fi
220 done;;
221 esac
222 as_found=false
223 done
224 IFS=$as_save_IFS
225 if $as_found
226 then :
227
228 else $as_nop
229 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
230 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
231 then :
232 CONFIG_SHELL=$SHELL as_have_required=yes
233 fi
234 fi
235
236
237 if test "x$CONFIG_SHELL" != x
238 then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno
261 then :
262 printf "%s\n" "$0: This script requires a shell more modern than all"
263 printf "%s\n" "$0: the shells that I found on your system."
264 if test ${ZSH_VERSION+y} ; then
265 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
267 else
268 printf "%s\n" "$0: Please tell [email protected] about your system,
269 $0: including any error possibly output before this
270 $0: message. Then install a modern shell, or manually run
271 $0: the script under such a shell if you do have one."
272 fi
273 exit 1
274 fi
275 fi
276 fi
277 SHELL=${CONFIG_SHELL-/bin/sh}
278 export SHELL
279 # Unset more variables known to interfere with behavior of common tools.
280 CLICOLOR_FORCE= GREP_OPTIONS=
281 unset CLICOLOR_FORCE GREP_OPTIONS
282
283 ## --------------------- ##
284 ## M4sh Shell Functions. ##
285 ## --------------------- ##
286 # as_fn_unset VAR
287 # ---------------
288 # Portably unset VAR.
289 as_fn_unset ()
290 {
291 { eval $1=; unset $1;}
292 }
293 as_unset=as_fn_unset
294
295
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
299 as_fn_set_status ()
300 {
301 return $1
302 } # as_fn_set_status
303
304 # as_fn_exit STATUS
305 # -----------------
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307 as_fn_exit ()
308 {
309 set +e
310 as_fn_set_status $1
311 exit $1
312 } # as_fn_exit
313 # as_fn_nop
314 # ---------
315 # Do nothing but, unlike ":", preserve the value of $?.
316 as_fn_nop ()
317 {
318 return $?
319 }
320 as_nop=as_fn_nop
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 printf "%s\n" X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384 then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else $as_nop
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402 then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else $as_nop
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414 # as_fn_nop
415 # ---------
416 # Do nothing but, unlike ":", preserve the value of $?.
417 as_fn_nop ()
418 {
419 return $?
420 }
421 as_nop=as_fn_nop
422
423 # as_fn_error STATUS ERROR [LINENO LOG_FD]
424 # ----------------------------------------
425 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
426 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
427 # script with STATUS, using 1 if that was 0.
428 as_fn_error ()
429 {
430 as_status=$1; test $as_status -eq 0 && as_status=1
431 if test "$4"; then
432 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
434 fi
435 printf "%s\n" "$as_me: error: $2" >&2
436 as_fn_exit $as_status
437 } # as_fn_error
438
439 if expr a : '\(a\)' >/dev/null 2>&1 &&
440 test "X`expr 00001 : '.*\(...\)'`" = X001; then
441 as_expr=expr
442 else
443 as_expr=false
444 fi
445
446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
447 as_basename=basename
448 else
449 as_basename=false
450 fi
451
452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
453 as_dirname=dirname
454 else
455 as_dirname=false
456 fi
457
458 as_me=`$as_basename -- "$0" ||
459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
460 X"$0" : 'X\(//\)$' \| \
461 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
462 printf "%s\n" X/"$0" |
463 sed '/^.*\/\([^/][^/]*\)\/*$/{
464 s//\1/
465 q
466 }
467 /^X\/\(\/\/\)$/{
468 s//\1/
469 q
470 }
471 /^X\/\(\/\).*/{
472 s//\1/
473 q
474 }
475 s/.*/./; q'`
476
477 # Avoid depending upon Character Ranges.
478 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
481 as_cr_digits='0123456789'
482 as_cr_alnum=$as_cr_Letters$as_cr_digits
483
484
485 as_lineno_1=$LINENO as_lineno_1a=$LINENO
486 as_lineno_2=$LINENO as_lineno_2a=$LINENO
487 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
488 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
489 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
490 sed -n '
491 p
492 /[$]LINENO/=
493 ' <$as_myself |
494 sed '
495 s/[$]LINENO.*/&-/
496 t lineno
497 b
498 :lineno
499 N
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
515 . "./$as_me.lineno"
516 # Exit status is that of the last command.
517 exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 xy) ECHO_C='\c';;
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531 ECHO_T=' ';;
532 esac;;
533 *)
534 ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543
544 rm -f conf$$ conf$$.exe conf$$.file
545 if test -d conf$$.dir; then
546 rm -f conf$$.dir/conf$$.file
547 else
548 rm -f conf$$.dir
549 mkdir conf$$.dir 2>/dev/null
550 fi
551 if (echo >conf$$.file) 2>/dev/null; then
552 if ln -s conf$$.file conf$$ 2>/dev/null; then
553 as_ln_s='ln -s'
554 # ... but there are two gotchas:
555 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
556 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
557 # In both cases, we have to default to `cp -pR'.
558 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
559 as_ln_s='cp -pR'
560 elif ln conf$$.file conf$$ 2>/dev/null; then
561 as_ln_s=ln
562 else
563 as_ln_s='cp -pR'
564 fi
565 else
566 as_ln_s='cp -pR'
567 fi
568 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
569 rmdir conf$$.dir 2>/dev/null
570
571 if mkdir -p . 2>/dev/null; then
572 as_mkdir_p='mkdir -p "$as_dir"'
573 else
574 test -d ./-p && rmdir ./-p
575 as_mkdir_p=false
576 fi
577
578 as_test_x='test -x'
579 as_executable_p=as_fn_executable_p
580
581 # Sed expression to map a string onto a valid CPP name.
582 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
583
584 # Sed expression to map a string onto a valid variable name.
585 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
586
587
588 test -n "$DJDIR" || exec 7<&0 </dev/null
589 exec 6>&1
590
591 # Name of the host.
592 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
593 # so uname gets run too.
594 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
595
596 #
597 # Initializations.
598 #
599 ac_default_prefix=/usr/local
600 ac_clean_files=
601 ac_config_libobj_dir=.
602 LIBOBJS=
603 cross_compiling=no
604 subdirs=
605 MFLAGS=
606 MAKEFLAGS=
607
608 # Identity of this package.
609 PACKAGE_NAME=''
610 PACKAGE_TARNAME=''
611 PACKAGE_VERSION=''
612 PACKAGE_STRING=''
613 PACKAGE_BUGREPORT=''
614 PACKAGE_URL=''
615
616 ac_unique_file="buffer.c"
617 # Factoring default headers for most tests.
618 ac_includes_default="\
619 #include <stddef.h>
620 #ifdef HAVE_STDIO_H
621 # include <stdio.h>
622 #endif
623 #ifdef HAVE_STDLIB_H
624 # include <stdlib.h>
625 #endif
626 #ifdef HAVE_STRING_H
627 # include <string.h>
628 #endif
629 #ifdef HAVE_INTTYPES_H
630 # include <inttypes.h>
631 #endif
632 #ifdef HAVE_STDINT_H
633 # include <stdint.h>
634 #endif
635 #ifdef HAVE_STRINGS_H
636 # include <strings.h>
637 #endif
638 #ifdef HAVE_SYS_TYPES_H
639 # include <sys/types.h>
640 #endif
641 #ifdef HAVE_SYS_STAT_H
642 # include <sys/stat.h>
643 #endif
644 #ifdef HAVE_UNISTD_H
645 # include <unistd.h>
646 #endif"
647
648 ac_header_c_list=
649 ac_subst_vars='LTLIBOBJS
650 LIBOBJS
651 BUNDLED_LIBTOM
652 LIBTOM_LIBS
653 EGREP
654 GREP
655 CPP
656 DROPBEAR_FUZZ
657 ac_ct_CXX
658 CXXFLAGS
659 CXX
660 DROPBEAR_PLUGIN
661 CRYPTLIB
662 INSTALL
663 STRIP
664 RANLIB
665 AR
666 host_os
667 host_vendor
668 host_cpu
669 host
670 build_os
671 build_vendor
672 build_cpu
673 build
674 STATIC
675 LD
676 OBJEXT
677 EXEEXT
678 ac_ct_CC
679 CPPFLAGS
680 LDFLAGS
681 CFLAGS
682 CC
683 target_alias
684 host_alias
685 build_alias
686 LIBS
687 ECHO_T
688 ECHO_N
689 ECHO_C
690 DEFS
691 mandir
692 localedir
693 libdir
694 psdir
695 pdfdir
696 dvidir
697 htmldir
698 infodir
699 docdir
700 oldincludedir
701 includedir
702 runstatedir
703 localstatedir
704 sharedstatedir
705 sysconfdir
706 datadir
707 datarootdir
708 libexecdir
709 sbindir
710 bindir
711 program_transform_name
712 prefix
713 exec_prefix
714 PACKAGE_URL
715 PACKAGE_BUGREPORT
716 PACKAGE_STRING
717 PACKAGE_VERSION
718 PACKAGE_TARNAME
719 PACKAGE_NAME
720 PATH_SEPARATOR
721 SHELL'
722 ac_subst_files=''
723 ac_user_opts='
724 enable_option_checking
725 enable_static
726 enable_harden
727 enable_largefile
728 with_zlib
729 enable_zlib
730 with_pam
731 enable_pam
732 enable_openpty
733 enable_syslog
734 enable_shadow
735 enable_plugin
736 enable_fuzz
737 enable_bundled_libtom
738 enable_lastlog
739 enable_utmp
740 enable_utmpx
741 enable_wtmp
742 enable_wtmpx
743 enable_loginfunc
744 enable_pututline
745 enable_pututxline
746 with_lastlog
747 '
748 ac_precious_vars='build_alias
749 host_alias
750 target_alias
751 CC
752 CFLAGS
753 LDFLAGS
754 LIBS
755 CPPFLAGS
756 CXX
757 CXXFLAGS
758 CCC
759 CPP'
760
761
762 # Initialize some variables set by options.
763 ac_init_help=
764 ac_init_version=false
765 ac_unrecognized_opts=
766 ac_unrecognized_sep=
767 # The variables have the same names as the options, with
768 # dashes changed to underlines.
769 cache_file=/dev/null
770 exec_prefix=NONE
771 no_create=
772 no_recursion=
773 prefix=NONE
774 program_prefix=NONE
775 program_suffix=NONE
776 program_transform_name=s,x,x,
777 silent=
778 site=
779 srcdir=
780 verbose=
781 x_includes=NONE
782 x_libraries=NONE
783
784 # Installation directory options.
785 # These are left unexpanded so users can "make install exec_prefix=/foo"
786 # and all the variables that are supposed to be based on exec_prefix
787 # by default will actually change.
788 # Use braces instead of parens because sh, perl, etc. also accept them.
789 # (The list follows the same order as the GNU Coding Standards.)
790 bindir='${exec_prefix}/bin'
791 sbindir='${exec_prefix}/sbin'
792 libexecdir='${exec_prefix}/libexec'
793 datarootdir='${prefix}/share'
794 datadir='${datarootdir}'
795 sysconfdir='${prefix}/etc'
796 sharedstatedir='${prefix}/com'
797 localstatedir='${prefix}/var'
798 runstatedir='${localstatedir}/run'
799 includedir='${prefix}/include'
800 oldincludedir='/usr/include'
801 docdir='${datarootdir}/doc/${PACKAGE}'
802 infodir='${datarootdir}/info'
803 htmldir='${docdir}'
804 dvidir='${docdir}'
805 pdfdir='${docdir}'
806 psdir='${docdir}'
807 libdir='${exec_prefix}/lib'
808 localedir='${datarootdir}/locale'
809 mandir='${datarootdir}/man'
810
811 ac_prev=
812 ac_dashdash=
813 for ac_option
814 do
815 # If the previous option needs an argument, assign it.
816 if test -n "$ac_prev"; then
817 eval $ac_prev=\$ac_option
818 ac_prev=
819 continue
820 fi
821
822 case $ac_option in
823 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
824 *=) ac_optarg= ;;
825 *) ac_optarg=yes ;;
826 esac
827
828 case $ac_dashdash$ac_option in
829 --)
830 ac_dashdash=yes ;;
831
832 -bindir | --bindir | --bindi | --bind | --bin | --bi)
833 ac_prev=bindir ;;
834 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
835 bindir=$ac_optarg ;;
836
837 -build | --build | --buil | --bui | --bu)
838 ac_prev=build_alias ;;
839 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
840 build_alias=$ac_optarg ;;
841
842 -cache-file | --cache-file | --cache-fil | --cache-fi \
843 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
844 ac_prev=cache_file ;;
845 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
846 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
847 cache_file=$ac_optarg ;;
848
849 --config-cache | -C)
850 cache_file=config.cache ;;
851
852 -datadir | --datadir | --datadi | --datad)
853 ac_prev=datadir ;;
854 -datadir=* | --datadir=* | --datadi=* | --datad=*)
855 datadir=$ac_optarg ;;
856
857 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
858 | --dataroo | --dataro | --datar)
859 ac_prev=datarootdir ;;
860 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
861 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
862 datarootdir=$ac_optarg ;;
863
864 -disable-* | --disable-*)
865 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868 as_fn_error $? "invalid feature name: \`$ac_useropt'"
869 ac_useropt_orig=$ac_useropt
870 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
871 case $ac_user_opts in
872 *"
873 "enable_$ac_useropt"
874 "*) ;;
875 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
876 ac_unrecognized_sep=', ';;
877 esac
878 eval enable_$ac_useropt=no ;;
879
880 -docdir | --docdir | --docdi | --doc | --do)
881 ac_prev=docdir ;;
882 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
883 docdir=$ac_optarg ;;
884
885 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
886 ac_prev=dvidir ;;
887 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
888 dvidir=$ac_optarg ;;
889
890 -enable-* | --enable-*)
891 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894 as_fn_error $? "invalid feature name: \`$ac_useropt'"
895 ac_useropt_orig=$ac_useropt
896 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
897 case $ac_user_opts in
898 *"
899 "enable_$ac_useropt"
900 "*) ;;
901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
902 ac_unrecognized_sep=', ';;
903 esac
904 eval enable_$ac_useropt=\$ac_optarg ;;
905
906 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
907 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
908 | --exec | --exe | --ex)
909 ac_prev=exec_prefix ;;
910 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
911 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
912 | --exec=* | --exe=* | --ex=*)
913 exec_prefix=$ac_optarg ;;
914
915 -gas | --gas | --ga | --g)
916 # Obsolete; use --with-gas.
917 with_gas=yes ;;
918
919 -help | --help | --hel | --he | -h)
920 ac_init_help=long ;;
921 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
922 ac_init_help=recursive ;;
923 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
924 ac_init_help=short ;;
925
926 -host | --host | --hos | --ho)
927 ac_prev=host_alias ;;
928 -host=* | --host=* | --hos=* | --ho=*)
929 host_alias=$ac_optarg ;;
930
931 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
932 ac_prev=htmldir ;;
933 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
934 | --ht=*)
935 htmldir=$ac_optarg ;;
936
937 -includedir | --includedir | --includedi | --included | --include \
938 | --includ | --inclu | --incl | --inc)
939 ac_prev=includedir ;;
940 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
941 | --includ=* | --inclu=* | --incl=* | --inc=*)
942 includedir=$ac_optarg ;;
943
944 -infodir | --infodir | --infodi | --infod | --info | --inf)
945 ac_prev=infodir ;;
946 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
947 infodir=$ac_optarg ;;
948
949 -libdir | --libdir | --libdi | --libd)
950 ac_prev=libdir ;;
951 -libdir=* | --libdir=* | --libdi=* | --libd=*)
952 libdir=$ac_optarg ;;
953
954 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
955 | --libexe | --libex | --libe)
956 ac_prev=libexecdir ;;
957 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
958 | --libexe=* | --libex=* | --libe=*)
959 libexecdir=$ac_optarg ;;
960
961 -localedir | --localedir | --localedi | --localed | --locale)
962 ac_prev=localedir ;;
963 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
964 localedir=$ac_optarg ;;
965
966 -localstatedir | --localstatedir | --localstatedi | --localstated \
967 | --localstate | --localstat | --localsta | --localst | --locals)
968 ac_prev=localstatedir ;;
969 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
970 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
971 localstatedir=$ac_optarg ;;
972
973 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
974 ac_prev=mandir ;;
975 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
976 mandir=$ac_optarg ;;
977
978 -nfp | --nfp | --nf)
979 # Obsolete; use --without-fp.
980 with_fp=no ;;
981
982 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
983 | --no-cr | --no-c | -n)
984 no_create=yes ;;
985
986 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
987 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
988 no_recursion=yes ;;
989
990 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
991 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
992 | --oldin | --oldi | --old | --ol | --o)
993 ac_prev=oldincludedir ;;
994 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
995 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
996 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
997 oldincludedir=$ac_optarg ;;
998
999 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1000 ac_prev=prefix ;;
1001 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1002 prefix=$ac_optarg ;;
1003
1004 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1005 | --program-pre | --program-pr | --program-p)
1006 ac_prev=program_prefix ;;
1007 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1008 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1009 program_prefix=$ac_optarg ;;
1010
1011 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1012 | --program-suf | --program-su | --program-s)
1013 ac_prev=program_suffix ;;
1014 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1015 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1016 program_suffix=$ac_optarg ;;
1017
1018 -program-transform-name | --program-transform-name \
1019 | --program-transform-nam | --program-transform-na \
1020 | --program-transform-n | --program-transform- \
1021 | --program-transform | --program-transfor \
1022 | --program-transfo | --program-transf \
1023 | --program-trans | --program-tran \
1024 | --progr-tra | --program-tr | --program-t)
1025 ac_prev=program_transform_name ;;
1026 -program-transform-name=* | --program-transform-name=* \
1027 | --program-transform-nam=* | --program-transform-na=* \
1028 | --program-transform-n=* | --program-transform-=* \
1029 | --program-transform=* | --program-transfor=* \
1030 | --program-transfo=* | --program-transf=* \
1031 | --program-trans=* | --program-tran=* \
1032 | --progr-tra=* | --program-tr=* | --program-t=*)
1033 program_transform_name=$ac_optarg ;;
1034
1035 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1036 ac_prev=pdfdir ;;
1037 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1038 pdfdir=$ac_optarg ;;
1039
1040 -psdir | --psdir | --psdi | --psd | --ps)
1041 ac_prev=psdir ;;
1042 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1043 psdir=$ac_optarg ;;
1044
1045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1046 | -silent | --silent | --silen | --sile | --sil)
1047 silent=yes ;;
1048
1049 -runstatedir | --runstatedir | --runstatedi | --runstated \
1050 | --runstate | --runstat | --runsta | --runst | --runs \
1051 | --run | --ru | --r)
1052 ac_prev=runstatedir ;;
1053 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1054 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1055 | --run=* | --ru=* | --r=*)
1056 runstatedir=$ac_optarg ;;
1057
1058 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1059 ac_prev=sbindir ;;
1060 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1061 | --sbi=* | --sb=*)
1062 sbindir=$ac_optarg ;;
1063
1064 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1065 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1066 | --sharedst | --shareds | --shared | --share | --shar \
1067 | --sha | --sh)
1068 ac_prev=sharedstatedir ;;
1069 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1070 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1071 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1072 | --sha=* | --sh=*)
1073 sharedstatedir=$ac_optarg ;;
1074
1075 -site | --site | --sit)
1076 ac_prev=site ;;
1077 -site=* | --site=* | --sit=*)
1078 site=$ac_optarg ;;
1079
1080 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1081 ac_prev=srcdir ;;
1082 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1083 srcdir=$ac_optarg ;;
1084
1085 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1086 | --syscon | --sysco | --sysc | --sys | --sy)
1087 ac_prev=sysconfdir ;;
1088 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1089 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1090 sysconfdir=$ac_optarg ;;
1091
1092 -target | --target | --targe | --targ | --tar | --ta | --t)
1093 ac_prev=target_alias ;;
1094 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1095 target_alias=$ac_optarg ;;
1096
1097 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1098 verbose=yes ;;
1099
1100 -version | --version | --versio | --versi | --vers | -V)
1101 ac_init_version=: ;;
1102
1103 -with-* | --with-*)
1104 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107 as_fn_error $? "invalid package name: \`$ac_useropt'"
1108 ac_useropt_orig=$ac_useropt
1109 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1111 *"
1112 "with_$ac_useropt"
1113 "*) ;;
1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1115 ac_unrecognized_sep=', ';;
1116 esac
1117 eval with_$ac_useropt=\$ac_optarg ;;
1118
1119 -without-* | --without-*)
1120 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error $? "invalid package name: \`$ac_useropt'"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1127 *"
1128 "with_$ac_useropt"
1129 "*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1132 esac
1133 eval with_$ac_useropt=no ;;
1134
1135 --x)
1136 # Obsolete; use --with-x.
1137 with_x=yes ;;
1138
1139 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1140 | --x-incl | --x-inc | --x-in | --x-i)
1141 ac_prev=x_includes ;;
1142 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1143 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1144 x_includes=$ac_optarg ;;
1145
1146 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1147 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1148 ac_prev=x_libraries ;;
1149 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1150 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1151 x_libraries=$ac_optarg ;;
1152
1153 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1154 Try \`$0 --help' for more information"
1155 ;;
1156
1157 *=*)
1158 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1159 # Reject names that are not valid shell variable names.
1160 case $ac_envvar in #(
1161 '' | [0-9]* | *[!_$as_cr_alnum]* )
1162 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1163 esac
1164 eval $ac_envvar=\$ac_optarg
1165 export $ac_envvar ;;
1166
1167 *)
1168 # FIXME: should be removed in autoconf 3.0.
1169 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1170 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1172 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1173 ;;
1174
1175 esac
1176 done
1177
1178 if test -n "$ac_prev"; then
1179 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1180 as_fn_error $? "missing argument to $ac_option"
1181 fi
1182
1183 if test -n "$ac_unrecognized_opts"; then
1184 case $enable_option_checking in
1185 no) ;;
1186 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1187 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1188 esac
1189 fi
1190
1191 # Check all directory arguments for consistency.
1192 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1193 datadir sysconfdir sharedstatedir localstatedir includedir \
1194 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1195 libdir localedir mandir runstatedir
1196 do
1197 eval ac_val=\$$ac_var
1198 # Remove trailing slashes.
1199 case $ac_val in
1200 */ )
1201 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1202 eval $ac_var=\$ac_val;;
1203 esac
1204 # Be sure to have absolute directory names.
1205 case $ac_val in
1206 [\\/$]* | ?:[\\/]* ) continue;;
1207 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1208 esac
1209 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1210 done
1211
1212 # There might be people who depend on the old broken behavior: `$host'
1213 # used to hold the argument of --host etc.
1214 # FIXME: To remove some day.
1215 build=$build_alias
1216 host=$host_alias
1217 target=$target_alias
1218
1219 # FIXME: To remove some day.
1220 if test "x$host_alias" != x; then
1221 if test "x$build_alias" = x; then
1222 cross_compiling=maybe
1223 elif test "x$build_alias" != "x$host_alias"; then
1224 cross_compiling=yes
1225 fi
1226 fi
1227
1228 ac_tool_prefix=
1229 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1230
1231 test "$silent" = yes && exec 6>/dev/null
1232
1233
1234 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1235 ac_ls_di=`ls -di .` &&
1236 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1237 as_fn_error $? "working directory cannot be determined"
1238 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1239 as_fn_error $? "pwd does not report name of working directory"
1240
1241
1242 # Find the source files, if location was not specified.
1243 if test -z "$srcdir"; then
1244 ac_srcdir_defaulted=yes
1245 # Try the directory containing this script, then the parent directory.
1246 ac_confdir=`$as_dirname -- "$as_myself" ||
1247 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1248 X"$as_myself" : 'X\(//\)[^/]' \| \
1249 X"$as_myself" : 'X\(//\)$' \| \
1250 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1251 printf "%s\n" X"$as_myself" |
1252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1253 s//\1/
1254 q
1255 }
1256 /^X\(\/\/\)[^/].*/{
1257 s//\1/
1258 q
1259 }
1260 /^X\(\/\/\)$/{
1261 s//\1/
1262 q
1263 }
1264 /^X\(\/\).*/{
1265 s//\1/
1266 q
1267 }
1268 s/.*/./; q'`
1269 srcdir=$ac_confdir
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 srcdir=..
1272 fi
1273 else
1274 ac_srcdir_defaulted=no
1275 fi
1276 if test ! -r "$srcdir/$ac_unique_file"; then
1277 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1278 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1279 fi
1280 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1281 ac_abs_confdir=`(
1282 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1283 pwd)`
1284 # When building in place, set srcdir=.
1285 if test "$ac_abs_confdir" = "$ac_pwd"; then
1286 srcdir=.
1287 fi
1288 # Remove unnecessary trailing slashes from srcdir.
1289 # Double slashes in file names in object file debugging info
1290 # mess up M-x gdb in Emacs.
1291 case $srcdir in
1292 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1293 esac
1294 for ac_var in $ac_precious_vars; do
1295 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_env_${ac_var}_value=\$${ac_var}
1297 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1298 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1299 done
1300
1301 #
1302 # Report the --help message.
1303 #
1304 if test "$ac_init_help" = "long"; then
1305 # Omit some internal or obsolete options to make the list less imposing.
1306 # This message is too long to be a string in the A/UX 3.1 sh.
1307 cat <<_ACEOF
1308 \`configure' configures this package to adapt to many kinds of systems.
1309
1310 Usage: $0 [OPTION]... [VAR=VALUE]...
1311
1312 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1313 VAR=VALUE. See below for descriptions of some of the useful variables.
1314
1315 Defaults for the options are specified in brackets.
1316
1317 Configuration:
1318 -h, --help display this help and exit
1319 --help=short display options specific to this package
1320 --help=recursive display the short help of all the included packages
1321 -V, --version display version information and exit
1322 -q, --quiet, --silent do not print \`checking ...' messages
1323 --cache-file=FILE cache test results in FILE [disabled]
1324 -C, --config-cache alias for \`--cache-file=config.cache'
1325 -n, --no-create do not create output files
1326 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1327
1328 Installation directories:
1329 --prefix=PREFIX install architecture-independent files in PREFIX
1330 [$ac_default_prefix]
1331 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1332 [PREFIX]
1333
1334 By default, \`make install' will install all the files in
1335 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1336 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1337 for instance \`--prefix=\$HOME'.
1338
1339 For better control, use the options below.
1340
1341 Fine tuning of the installation directories:
1342 --bindir=DIR user executables [EPREFIX/bin]
1343 --sbindir=DIR system admin executables [EPREFIX/sbin]
1344 --libexecdir=DIR program executables [EPREFIX/libexec]
1345 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1346 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1347 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1348 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1349 --libdir=DIR object code libraries [EPREFIX/lib]
1350 --includedir=DIR C header files [PREFIX/include]
1351 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1352 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1353 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1354 --infodir=DIR info documentation [DATAROOTDIR/info]
1355 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1356 --mandir=DIR man documentation [DATAROOTDIR/man]
1357 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1358 --htmldir=DIR html documentation [DOCDIR]
1359 --dvidir=DIR dvi documentation [DOCDIR]
1360 --pdfdir=DIR pdf documentation [DOCDIR]
1361 --psdir=DIR ps documentation [DOCDIR]
1362 _ACEOF
1363
1364 cat <<\_ACEOF
1365
1366 System types:
1367 --build=BUILD configure for building on BUILD [guessed]
1368 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1369 _ACEOF
1370 fi
1371
1372 if test -n "$ac_init_help"; then
1373
1374 cat <<\_ACEOF
1375
1376 Optional Features:
1377 --disable-option-checking ignore unrecognized --enable/--with options
1378 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1379 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1380 --enable-static Build static binaries
1381 --disable-harden Don't set hardened build flags
1382 --disable-largefile omit support for large files
1383 --disable-zlib Don't include zlib support
1384 --enable-pam Try to include PAM support
1385 --disable-openpty Don't use openpty, use alternative method
1386 --disable-syslog Don't include syslog support
1387 --disable-shadow Don't use shadow passwords (if available)
1388 --enable-plugin Enable support for External Public Key Authentication plug-in
1389 --enable-fuzz Build fuzzing. Not recommended for deployment.
1390 --enable-bundled-libtom Force using bundled libtomcrypt/libtommath even if a system version exists.
1391 --disable-bundled-libtom Force using system libtomcrypt/libtommath, fail if it does not exist.
1392 Default is to use system if available, otherwise bundled.
1393 Dropbear requires system libtommath >= 1.2.0 and libtomcrypt >= 1.18.0
1394 --disable-lastlog Disable use of lastlog even if detected no
1395 --disable-utmp Disable use of utmp even if detected no
1396 --disable-utmpx Disable use of utmpx even if detected no
1397 --disable-wtmp Disable use of wtmp even if detected no
1398 --disable-wtmpx Disable use of wtmpx even if detected no
1399 --disable-loginfunc Disable use of login() etc. no
1400 --disable-pututline Disable use of pututline() etc. (uwtmp) no
1401 --disable-pututxline Disable use of pututxline() etc. (uwtmpx) no
1402
1403 Optional Packages:
1404 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1405 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1406 --with-zlib=PATH Use zlib in PATH
1407 --with-pam=PATH Use pam in PATH
1408 --with-lastlog=FILE|DIR specify lastlog location common locations
1409
1410 Some influential environment variables:
1411 CC C compiler command
1412 CFLAGS C compiler flags
1413 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1414 nonstandard directory <lib dir>
1415 LIBS libraries to pass to the linker, e.g. -l<library>
1416 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1417 you have headers in a nonstandard directory <include dir>
1418 CXX C++ compiler command
1419 CXXFLAGS C++ compiler flags
1420 CPP C preprocessor
1421
1422 Use these variables to override the choices made by `configure' or to help
1423 it to find libraries and programs with nonstandard names/locations.
1424
1425 Report bugs to the package provider.
1426 _ACEOF
1427 ac_status=$?
1428 fi
1429
1430 if test "$ac_init_help" = "recursive"; then
1431 # If there are subdirs, report their specific --help.
1432 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1433 test -d "$ac_dir" ||
1434 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1435 continue
1436 ac_builddir=.
1437
1438 case "$ac_dir" in
1439 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440 *)
1441 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1442 # A ".." for each directory in $ac_dir_suffix.
1443 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1444 case $ac_top_builddir_sub in
1445 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1447 esac ;;
1448 esac
1449 ac_abs_top_builddir=$ac_pwd
1450 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1451 # for backward compatibility:
1452 ac_top_builddir=$ac_top_build_prefix
1453
1454 case $srcdir in
1455 .) # We are building in place.
1456 ac_srcdir=.
1457 ac_top_srcdir=$ac_top_builddir_sub
1458 ac_abs_top_srcdir=$ac_pwd ;;
1459 [\\/]* | ?:[\\/]* ) # Absolute name.
1460 ac_srcdir=$srcdir$ac_dir_suffix;
1461 ac_top_srcdir=$srcdir
1462 ac_abs_top_srcdir=$srcdir ;;
1463 *) # Relative name.
1464 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1465 ac_top_srcdir=$ac_top_build_prefix$srcdir
1466 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1467 esac
1468 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1469
1470 cd "$ac_dir" || { ac_status=$?; continue; }
1471 # Check for configure.gnu first; this name is used for a wrapper for
1472 # Metaconfig's "Configure" on case-insensitive file systems.
1473 if test -f "$ac_srcdir/configure.gnu"; then
1474 echo &&
1475 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1476 elif test -f "$ac_srcdir/configure"; then
1477 echo &&
1478 $SHELL "$ac_srcdir/configure" --help=recursive
1479 else
1480 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1481 fi || ac_status=$?
1482 cd "$ac_pwd" || { ac_status=$?; break; }
1483 done
1484 fi
1485
1486 test -n "$ac_init_help" && exit $ac_status
1487 if $ac_init_version; then
1488 cat <<\_ACEOF
1489 configure
1490 generated by GNU Autoconf 2.71
1491
1492 Copyright (C) 2021 Free Software Foundation, Inc.
1493 This configure script is free software; the Free Software Foundation
1494 gives unlimited permission to copy, distribute and modify it.
1495 _ACEOF
1496 exit
1497 fi
1498
1499 ## ------------------------ ##
1500 ## Autoconf initialization. ##
1501 ## ------------------------ ##
1502
1503 # ac_fn_c_try_compile LINENO
1504 # --------------------------
1505 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1506 ac_fn_c_try_compile ()
1507 {
1508 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1509 rm -f conftest.$ac_objext conftest.beam
1510 if { { ac_try="$ac_compile"
1511 case "(($ac_try" in
1512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1513 *) ac_try_echo=$ac_try;;
1514 esac
1515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1516 printf "%s\n" "$ac_try_echo"; } >&5
1517 (eval "$ac_compile") 2>conftest.err
1518 ac_status=$?
1519 if test -s conftest.err; then
1520 grep -v '^ *+' conftest.err >conftest.er1
1521 cat conftest.er1 >&5
1522 mv -f conftest.er1 conftest.err
1523 fi
1524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1525 test $ac_status = 0; } && {
1526 test -z "$ac_c_werror_flag" ||
1527 test ! -s conftest.err
1528 } && test -s conftest.$ac_objext
1529 then :
1530 ac_retval=0
1531 else $as_nop
1532 printf "%s\n" "$as_me: failed program was:" >&5
1533 sed 's/^/| /' conftest.$ac_ext >&5
1534
1535 ac_retval=1
1536 fi
1537 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1538 as_fn_set_status $ac_retval
1539
1540 } # ac_fn_c_try_compile
1541
1542 # ac_fn_c_try_link LINENO
1543 # -----------------------
1544 # Try to link conftest.$ac_ext, and return whether this succeeded.
1545 ac_fn_c_try_link ()
1546 {
1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1549 if { { ac_try="$ac_link"
1550 case "(($ac_try" in
1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552 *) ac_try_echo=$ac_try;;
1553 esac
1554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555 printf "%s\n" "$ac_try_echo"; } >&5
1556 (eval "$ac_link") 2>conftest.err
1557 ac_status=$?
1558 if test -s conftest.err; then
1559 grep -v '^ *+' conftest.err >conftest.er1
1560 cat conftest.er1 >&5
1561 mv -f conftest.er1 conftest.err
1562 fi
1563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564 test $ac_status = 0; } && {
1565 test -z "$ac_c_werror_flag" ||
1566 test ! -s conftest.err
1567 } && test -s conftest$ac_exeext && {
1568 test "$cross_compiling" = yes ||
1569 test -x conftest$ac_exeext
1570 }
1571 then :
1572 ac_retval=0
1573 else $as_nop
1574 printf "%s\n" "$as_me: failed program was:" >&5
1575 sed 's/^/| /' conftest.$ac_ext >&5
1576
1577 ac_retval=1
1578 fi
1579 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1580 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1581 # interfere with the next link command; also delete a directory that is
1582 # left behind by Apple's compiler. We do this before executing the actions.
1583 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585 as_fn_set_status $ac_retval
1586
1587 } # ac_fn_c_try_link
1588
1589 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1590 # ------------------------------------------------------------------
1591 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1592 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1593 ac_fn_check_decl ()
1594 {
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 as_decl_name=`echo $2|sed 's/ *(.*//'`
1597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1598 printf %s "checking whether $as_decl_name is declared... " >&6; }
1599 if eval test \${$3+y}
1600 then :
1601 printf %s "(cached) " >&6
1602 else $as_nop
1603 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1604 eval ac_save_FLAGS=\$$6
1605 as_fn_append $6 " $5"
1606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607 /* end confdefs.h. */
1608 $4
1609 int
1610 main (void)
1611 {
1612 #ifndef $as_decl_name
1613 #ifdef __cplusplus
1614 (void) $as_decl_use;
1615 #else
1616 (void) $as_decl_name;
1617 #endif
1618 #endif
1619
1620 ;
1621 return 0;
1622 }
1623 _ACEOF
1624 if ac_fn_c_try_compile "$LINENO"
1625 then :
1626 eval "$3=yes"
1627 else $as_nop
1628 eval "$3=no"
1629 fi
1630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1631 eval $6=\$ac_save_FLAGS
1632
1633 fi
1634 eval ac_res=\$$3
1635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1636 printf "%s\n" "$ac_res" >&6; }
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638
1639 } # ac_fn_check_decl
1640
1641 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1642 # -------------------------------------------------------
1643 # Tests whether HEADER exists and can be compiled using the include files in
1644 # INCLUDES, setting the cache variable VAR accordingly.
1645 ac_fn_c_check_header_compile ()
1646 {
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649 printf %s "checking for $2... " >&6; }
1650 if eval test \${$3+y}
1651 then :
1652 printf %s "(cached) " >&6
1653 else $as_nop
1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h. */
1656 $4
1657 #include <$2>
1658 _ACEOF
1659 if ac_fn_c_try_compile "$LINENO"
1660 then :
1661 eval "$3=yes"
1662 else $as_nop
1663 eval "$3=no"
1664 fi
1665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1666 fi
1667 eval ac_res=\$$3
1668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669 printf "%s\n" "$ac_res" >&6; }
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671
1672 } # ac_fn_c_check_header_compile
1673
1674 # ac_fn_c_check_func LINENO FUNC VAR
1675 # ----------------------------------
1676 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1677 ac_fn_c_check_func ()
1678 {
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681 printf %s "checking for $2... " >&6; }
1682 if eval test \${$3+y}
1683 then :
1684 printf %s "(cached) " >&6
1685 else $as_nop
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h. */
1688 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1690 #define $2 innocuous_$2
1691
1692 /* System header to define __stub macros and hopefully few prototypes,
1693 which can conflict with char $2 (); below. */
1694
1695 #include <limits.h>
1696 #undef $2
1697
1698 /* Override any GCC internal prototype to avoid an error.
1699 Use char because int might match the return type of a GCC
1700 builtin and then its argument prototype would still apply. */
1701 #ifdef __cplusplus
1702 extern "C"
1703 #endif
1704 char $2 ();
1705 /* The GNU C library defines this for functions which it implements
1706 to always fail with ENOSYS. Some functions are actually named
1707 something starting with __ and the normal name is an alias. */
1708 #if defined __stub_$2 || defined __stub___$2
1709 choke me
1710 #endif
1711
1712 int
1713 main (void)
1714 {
1715 return $2 ();
1716 ;
1717 return 0;
1718 }
1719 _ACEOF
1720 if ac_fn_c_try_link "$LINENO"
1721 then :
1722 eval "$3=yes"
1723 else $as_nop
1724 eval "$3=no"
1725 fi
1726 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1727 conftest$ac_exeext conftest.$ac_ext
1728 fi
1729 eval ac_res=\$$3
1730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731 printf "%s\n" "$ac_res" >&6; }
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733
1734 } # ac_fn_c_check_func
1735
1736 # ac_fn_cxx_try_compile LINENO
1737 # ----------------------------
1738 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1739 ac_fn_cxx_try_compile ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 rm -f conftest.$ac_objext conftest.beam
1743 if { { ac_try="$ac_compile"
1744 case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 printf "%s\n" "$ac_try_echo"; } >&5
1750 (eval "$ac_compile") 2>conftest.err
1751 ac_status=$?
1752 if test -s conftest.err; then
1753 grep -v '^ *+' conftest.err >conftest.er1
1754 cat conftest.er1 >&5
1755 mv -f conftest.er1 conftest.err
1756 fi
1757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } && {
1759 test -z "$ac_cxx_werror_flag" ||
1760 test ! -s conftest.err
1761 } && test -s conftest.$ac_objext
1762 then :
1763 ac_retval=0
1764 else $as_nop
1765 printf "%s\n" "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1767
1768 ac_retval=1
1769 fi
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771 as_fn_set_status $ac_retval
1772
1773 } # ac_fn_cxx_try_compile
1774
1775 # ac_fn_c_try_cpp LINENO
1776 # ----------------------
1777 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1778 ac_fn_c_try_cpp ()
1779 {
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if { { ac_try="$ac_cpp conftest.$ac_ext"
1782 case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 printf "%s\n" "$ac_try_echo"; } >&5
1788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1789 ac_status=$?
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1794 fi
1795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } > conftest.i && {
1797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 }
1800 then :
1801 ac_retval=0
1802 else $as_nop
1803 printf "%s\n" "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1805
1806 ac_retval=1
1807 fi
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 as_fn_set_status $ac_retval
1810
1811 } # ac_fn_c_try_cpp
1812
1813 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1814 # -------------------------------------------
1815 # Tests whether TYPE exists after having included INCLUDES, setting cache
1816 # variable VAR accordingly.
1817 ac_fn_c_check_type ()
1818 {
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821 printf %s "checking for $2... " >&6; }
1822 if eval test \${$3+y}
1823 then :
1824 printf %s "(cached) " >&6
1825 else $as_nop
1826 eval "$3=no"
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1829 $4
1830 int
1831 main (void)
1832 {
1833 if (sizeof ($2))
1834 return 0;
1835 ;
1836 return 0;
1837 }
1838 _ACEOF
1839 if ac_fn_c_try_compile "$LINENO"
1840 then :
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1843 $4
1844 int
1845 main (void)
1846 {
1847 if (sizeof (($2)))
1848 return 0;
1849 ;
1850 return 0;
1851 }
1852 _ACEOF
1853 if ac_fn_c_try_compile "$LINENO"
1854 then :
1855
1856 else $as_nop
1857 eval "$3=yes"
1858 fi
1859 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1860 fi
1861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1862 fi
1863 eval ac_res=\$$3
1864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865 printf "%s\n" "$ac_res" >&6; }
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867
1868 } # ac_fn_c_check_type
1869
1870 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1871 # ----------------------------------------------------
1872 # Tries to find if the field MEMBER exists in type AGGR, after including
1873 # INCLUDES, setting cache variable VAR accordingly.
1874 ac_fn_c_check_member ()
1875 {
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1878 printf %s "checking for $2.$3... " >&6; }
1879 if eval test \${$4+y}
1880 then :
1881 printf %s "(cached) " >&6
1882 else $as_nop
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1885 $5
1886 int
1887 main (void)
1888 {
1889 static $2 ac_aggr;
1890 if (ac_aggr.$3)
1891 return 0;
1892 ;
1893 return 0;
1894 }
1895 _ACEOF
1896 if ac_fn_c_try_compile "$LINENO"
1897 then :
1898 eval "$4=yes"
1899 else $as_nop
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1902 $5
1903 int
1904 main (void)
1905 {
1906 static $2 ac_aggr;
1907 if (sizeof ac_aggr.$3)
1908 return 0;
1909 ;
1910 return 0;
1911 }
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"
1914 then :
1915 eval "$4=yes"
1916 else $as_nop
1917 eval "$4=no"
1918 fi
1919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1920 fi
1921 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1922 fi
1923 eval ac_res=\$$4
1924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 printf "%s\n" "$ac_res" >&6; }
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927
1928 } # ac_fn_c_check_member
1929
1930 # ac_fn_c_try_run LINENO
1931 # ----------------------
1932 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1933 # executables *can* be run.
1934 ac_fn_c_try_run ()
1935 {
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 if { { ac_try="$ac_link"
1938 case "(($ac_try" in
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1941 esac
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 printf "%s\n" "$ac_try_echo"; } >&5
1944 (eval "$ac_link") 2>&5
1945 ac_status=$?
1946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1948 { { case "(($ac_try" in
1949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950 *) ac_try_echo=$ac_try;;
1951 esac
1952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953 printf "%s\n" "$ac_try_echo"; } >&5
1954 (eval "$ac_try") 2>&5
1955 ac_status=$?
1956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957 test $ac_status = 0; }; }
1958 then :
1959 ac_retval=0
1960 else $as_nop
1961 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1962 printf "%s\n" "$as_me: failed program was:" >&5
1963 sed 's/^/| /' conftest.$ac_ext >&5
1964
1965 ac_retval=$ac_status
1966 fi
1967 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969 as_fn_set_status $ac_retval
1970
1971 } # ac_fn_c_try_run
1972 ac_configure_args_raw=
1973 for ac_arg
1974 do
1975 case $ac_arg in
1976 *\'*)
1977 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1978 esac
1979 as_fn_append ac_configure_args_raw " '$ac_arg'"
1980 done
1981
1982 case $ac_configure_args_raw in
1983 *$as_nl*)
1984 ac_safe_unquote= ;;
1985 *)
1986 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1987 ac_unsafe_a="$ac_unsafe_z#~"
1988 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1989 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1990 esac
1991
1992 cat >config.log <<_ACEOF
1993 This file contains any messages produced by compilers while
1994 running configure, to aid debugging if configure makes a mistake.
1995
1996 It was created by $as_me, which was
1997 generated by GNU Autoconf 2.71. Invocation command line was
1998
1999 $ $0$ac_configure_args_raw
2000
2001 _ACEOF
2002 exec 5>>config.log
2003 {
2004 cat <<_ASUNAME
2005 ## --------- ##
2006 ## Platform. ##
2007 ## --------- ##
2008
2009 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2010 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2011 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2012 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2013 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2014
2015 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2016 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2017
2018 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2019 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2020 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2021 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2022 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2023 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2024 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2025
2026 _ASUNAME
2027
2028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029 for as_dir in $PATH
2030 do
2031 IFS=$as_save_IFS
2032 case $as_dir in #(((
2033 '') as_dir=./ ;;
2034 */) ;;
2035 *) as_dir=$as_dir/ ;;
2036 esac
2037 printf "%s\n" "PATH: $as_dir"
2038 done
2039 IFS=$as_save_IFS
2040
2041 } >&5
2042
2043 cat >&5 <<_ACEOF
2044
2045
2046 ## ----------- ##
2047 ## Core tests. ##
2048 ## ----------- ##
2049
2050 _ACEOF
2051
2052
2053 # Keep a trace of the command line.
2054 # Strip out --no-create and --no-recursion so they do not pile up.
2055 # Strip out --silent because we don't want to record it for future runs.
2056 # Also quote any args containing shell meta-characters.
2057 # Make two passes to allow for proper duplicate-argument suppression.
2058 ac_configure_args=
2059 ac_configure_args0=
2060 ac_configure_args1=
2061 ac_must_keep_next=false
2062 for ac_pass in 1 2
2063 do
2064 for ac_arg
2065 do
2066 case $ac_arg in
2067 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2069 | -silent | --silent | --silen | --sile | --sil)
2070 continue ;;
2071 *\'*)
2072 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2073 esac
2074 case $ac_pass in
2075 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2076 2)
2077 as_fn_append ac_configure_args1 " '$ac_arg'"
2078 if test $ac_must_keep_next = true; then
2079 ac_must_keep_next=false # Got value, back to normal.
2080 else
2081 case $ac_arg in
2082 *=* | --config-cache | -C | -disable-* | --disable-* \
2083 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2084 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2085 | -with-* | --with-* | -without-* | --without-* | --x)
2086 case "$ac_configure_args0 " in
2087 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2088 esac
2089 ;;
2090 -* ) ac_must_keep_next=true ;;
2091 esac
2092 fi
2093 as_fn_append ac_configure_args " '$ac_arg'"
2094 ;;
2095 esac
2096 done
2097 done
2098 { ac_configure_args0=; unset ac_configure_args0;}
2099 { ac_configure_args1=; unset ac_configure_args1;}
2100
2101 # When interrupted or exit'd, cleanup temporary files, and complete
2102 # config.log. We remove comments because anyway the quotes in there
2103 # would cause problems or look ugly.
2104 # WARNING: Use '\'' to represent an apostrophe within the trap.
2105 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2106 trap 'exit_status=$?
2107 # Sanitize IFS.
2108 IFS=" "" $as_nl"
2109 # Save into config.log some information that might help in debugging.
2110 {
2111 echo
2112
2113 printf "%s\n" "## ---------------- ##
2114 ## Cache variables. ##
2115 ## ---------------- ##"
2116 echo
2117 # The following way of writing the cache mishandles newlines in values,
2118 (
2119 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2120 eval ac_val=\$$ac_var
2121 case $ac_val in #(
2122 *${as_nl}*)
2123 case $ac_var in #(
2124 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2125 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2126 esac
2127 case $ac_var in #(
2128 _ | IFS | as_nl) ;; #(
2129 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2130 *) { eval $ac_var=; unset $ac_var;} ;;
2131 esac ;;
2132 esac
2133 done
2134 (set) 2>&1 |
2135 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2136 *${as_nl}ac_space=\ *)
2137 sed -n \
2138 "s/'\''/'\''\\\\'\'''\''/g;
2139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2140 ;; #(
2141 *)
2142 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2143 ;;
2144 esac |
2145 sort
2146 )
2147 echo
2148
2149 printf "%s\n" "## ----------------- ##
2150 ## Output variables. ##
2151 ## ----------------- ##"
2152 echo
2153 for ac_var in $ac_subst_vars
2154 do
2155 eval ac_val=\$$ac_var
2156 case $ac_val in
2157 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2158 esac
2159 printf "%s\n" "$ac_var='\''$ac_val'\''"
2160 done | sort
2161 echo
2162
2163 if test -n "$ac_subst_files"; then
2164 printf "%s\n" "## ------------------- ##
2165 ## File substitutions. ##
2166 ## ------------------- ##"
2167 echo
2168 for ac_var in $ac_subst_files
2169 do
2170 eval ac_val=\$$ac_var
2171 case $ac_val in
2172 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2173 esac
2174 printf "%s\n" "$ac_var='\''$ac_val'\''"
2175 done | sort
2176 echo
2177 fi
2178
2179 if test -s confdefs.h; then
2180 printf "%s\n" "## ----------- ##
2181 ## confdefs.h. ##
2182 ## ----------- ##"
2183 echo
2184 cat confdefs.h
2185 echo
2186 fi
2187 test "$ac_signal" != 0 &&
2188 printf "%s\n" "$as_me: caught signal $ac_signal"
2189 printf "%s\n" "$as_me: exit $exit_status"
2190 } >&5
2191 rm -f core *.core core.conftest.* &&
2192 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2193 exit $exit_status
2194 ' 0
2195 for ac_signal in 1 2 13 15; do
2196 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2197 done
2198 ac_signal=0
2199
2200 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2201 rm -f -r conftest* confdefs.h
2202
2203 printf "%s\n" "/* confdefs.h */" > confdefs.h
2204
2205 # Predefined preprocessor variables.
2206
2207 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2208
2209 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2210
2211 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2212
2213 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2214
2215 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2216
2217 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2218
2219
2220 # Let the site file select an alternate cache file if it wants to.
2221 # Prefer an explicitly selected file to automatically selected ones.
2222 if test -n "$CONFIG_SITE"; then
2223 ac_site_files="$CONFIG_SITE"
2224 elif test "x$prefix" != xNONE; then
2225 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2226 else
2227 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2228 fi
2229
2230 for ac_site_file in $ac_site_files
2231 do
2232 case $ac_site_file in #(
2233 */*) :
2234 ;; #(
2235 *) :
2236 ac_site_file=./$ac_site_file ;;
2237 esac
2238 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2240 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2241 sed 's/^/| /' "$ac_site_file" >&5
2242 . "$ac_site_file" \
2243 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2244 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2245 as_fn_error $? "failed to load site script $ac_site_file
2246 See \`config.log' for more details" "$LINENO" 5; }
2247 fi
2248 done
2249
2250 if test -r "$cache_file"; then
2251 # Some versions of bash will fail to source /dev/null (special files
2252 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2253 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2255 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2256 case $cache_file in
2257 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2258 *) . "./$cache_file";;
2259 esac
2260 fi
2261 else
2262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2263 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2264 >$cache_file
2265 fi
2266
2267 # Test code for whether the C compiler supports C89 (global declarations)
2268 ac_c_conftest_c89_globals='
2269 /* Does the compiler advertise C89 conformance?
2270 Do not test the value of __STDC__, because some compilers set it to 0
2271 while being otherwise adequately conformant. */
2272 #if !defined __STDC__
2273 # error "Compiler does not advertise C89 conformance"
2274 #endif
2275
2276 #include <stddef.h>
2277 #include <stdarg.h>
2278 struct stat;
2279 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2280 struct buf { int x; };
2281 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2282 static char *e (p, i)
2283 char **p;
2284 int i;
2285 {
2286 return p[i];
2287 }
2288 static char *f (char * (*g) (char **, int), char **p, ...)
2289 {
2290 char *s;
2291 va_list v;
2292 va_start (v,p);
2293 s = g (p, va_arg (v,int));
2294 va_end (v);
2295 return s;
2296 }
2297
2298 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2299 function prototypes and stuff, but not \xHH hex character constants.
2300 These do not provoke an error unfortunately, instead are silently treated
2301 as an "x". The following induces an error, until -std is added to get
2302 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2303 array size at least. It is necessary to write \x00 == 0 to get something
2304 that is true only with -std. */
2305 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2306
2307 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2308 inside strings and character constants. */
2309 #define FOO(x) '\''x'\''
2310 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2311
2312 int test (int i, double x);
2313 struct s1 {int (*f) (int a);};
2314 struct s2 {int (*f) (double a);};
2315 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2316 int, int);'
2317
2318 # Test code for whether the C compiler supports C89 (body of main).
2319 ac_c_conftest_c89_main='
2320 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2321 '
2322
2323 # Test code for whether the C compiler supports C99 (global declarations)
2324 ac_c_conftest_c99_globals='
2325 // Does the compiler advertise C99 conformance?
2326 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2327 # error "Compiler does not advertise C99 conformance"
2328 #endif
2329
2330 #include <stdbool.h>
2331 extern int puts (const char *);
2332 extern int printf (const char *, ...);
2333 extern int dprintf (int, const char *, ...);
2334 extern void *malloc (size_t);
2335
2336 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2337 // dprintf is used instead of fprintf to avoid needing to declare
2338 // FILE and stderr.
2339 #define debug(...) dprintf (2, __VA_ARGS__)
2340 #define showlist(...) puts (#__VA_ARGS__)
2341 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2342 static void
2343 test_varargs_macros (void)
2344 {
2345 int x = 1234;
2346 int y = 5678;
2347 debug ("Flag");
2348 debug ("X = %d\n", x);
2349 showlist (The first, second, and third items.);
2350 report (x>y, "x is %d but y is %d", x, y);
2351 }
2352
2353 // Check long long types.
2354 #define BIG64 18446744073709551615ull
2355 #define BIG32 4294967295ul
2356 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2357 #if !BIG_OK
2358 #error "your preprocessor is broken"
2359 #endif
2360 #if BIG_OK
2361 #else
2362 #error "your preprocessor is broken"
2363 #endif
2364 static long long int bignum = -9223372036854775807LL;
2365 static unsigned long long int ubignum = BIG64;
2366
2367 struct incomplete_array
2368 {
2369 int datasize;
2370 double data[];
2371 };
2372
2373 struct named_init {
2374 int number;
2375 const wchar_t *name;
2376 double average;
2377 };
2378
2379 typedef const char *ccp;
2380
2381 static inline int
2382 test_restrict (ccp restrict text)
2383 {
2384 // See if C++-style comments work.
2385 // Iterate through items via the restricted pointer.
2386 // Also check for declarations in for loops.
2387 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2388 continue;
2389 return 0;
2390 }
2391
2392 // Check varargs and va_copy.
2393 static bool
2394 test_varargs (const char *format, ...)
2395 {
2396 va_list args;
2397 va_start (args, format);
2398 va_list args_copy;
2399 va_copy (args_copy, args);
2400
2401 const char *str = "";
2402 int number = 0;
2403 float fnumber = 0;
2404
2405 while (*format)
2406 {
2407 switch (*format++)
2408 {
2409 case '\''s'\'': // string
2410 str = va_arg (args_copy, const char *);
2411 break;
2412 case '\''d'\'': // int
2413 number = va_arg (args_copy, int);
2414 break;
2415 case '\''f'\'': // float
2416 fnumber = va_arg (args_copy, double);
2417 break;
2418 default:
2419 break;
2420 }
2421 }
2422 va_end (args_copy);
2423 va_end (args);
2424
2425 return *str && number && fnumber;
2426 }
2427 '
2428
2429 # Test code for whether the C compiler supports C99 (body of main).
2430 ac_c_conftest_c99_main='
2431 // Check bool.
2432 _Bool success = false;
2433 success |= (argc != 0);
2434
2435 // Check restrict.
2436 if (test_restrict ("String literal") == 0)
2437 success = true;
2438 char *restrict newvar = "Another string";
2439
2440 // Check varargs.
2441 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2442 test_varargs_macros ();
2443
2444 // Check flexible array members.
2445 struct incomplete_array *ia =
2446 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2447 ia->datasize = 10;
2448 for (int i = 0; i < ia->datasize; ++i)
2449 ia->data[i] = i * 1.234;
2450
2451 // Check named initializers.
2452 struct named_init ni = {
2453 .number = 34,
2454 .name = L"Test wide string",
2455 .average = 543.34343,
2456 };
2457
2458 ni.number = 58;
2459
2460 int dynamic_array[ni.number];
2461 dynamic_array[0] = argv[0][0];
2462 dynamic_array[ni.number - 1] = 543;
2463
2464 // work around unused variable warnings
2465 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2466 || dynamic_array[ni.number - 1] != 543);
2467 '
2468
2469 # Test code for whether the C compiler supports C11 (global declarations)
2470 ac_c_conftest_c11_globals='
2471 // Does the compiler advertise C11 conformance?
2472 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2473 # error "Compiler does not advertise C11 conformance"
2474 #endif
2475
2476 // Check _Alignas.
2477 char _Alignas (double) aligned_as_double;
2478 char _Alignas (0) no_special_alignment;
2479 extern char aligned_as_int;
2480 char _Alignas (0) _Alignas (int) aligned_as_int;
2481
2482 // Check _Alignof.
2483 enum
2484 {
2485 int_alignment = _Alignof (int),
2486 int_array_alignment = _Alignof (int[100]),
2487 char_alignment = _Alignof (char)
2488 };
2489 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2490
2491 // Check _Noreturn.
2492 int _Noreturn does_not_return (void) { for (;;) continue; }
2493
2494 // Check _Static_assert.
2495 struct test_static_assert
2496 {
2497 int x;
2498 _Static_assert (sizeof (int) <= sizeof (long int),
2499 "_Static_assert does not work in struct");
2500 long int y;
2501 };
2502
2503 // Check UTF-8 literals.
2504 #define u8 syntax error!
2505 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2506
2507 // Check duplicate typedefs.
2508 typedef long *long_ptr;
2509 typedef long int *long_ptr;
2510 typedef long_ptr long_ptr;
2511
2512 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2513 struct anonymous
2514 {
2515 union {
2516 struct { int i; int j; };
2517 struct { int k; long int l; } w;
2518 };
2519 int m;
2520 } v1;
2521 '
2522
2523 # Test code for whether the C compiler supports C11 (body of main).
2524 ac_c_conftest_c11_main='
2525 _Static_assert ((offsetof (struct anonymous, i)
2526 == offsetof (struct anonymous, w.k)),
2527 "Anonymous union alignment botch");
2528 v1.i = 2;
2529 v1.w.k = 5;
2530 ok |= v1.i != 5;
2531 '
2532
2533 # Test code for whether the C compiler supports C11 (complete).
2534 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2535 ${ac_c_conftest_c99_globals}
2536 ${ac_c_conftest_c11_globals}
2537
2538 int
2539 main (int argc, char **argv)
2540 {
2541 int ok = 0;
2542 ${ac_c_conftest_c89_main}
2543 ${ac_c_conftest_c99_main}
2544 ${ac_c_conftest_c11_main}
2545 return ok;
2546 }
2547 "
2548
2549 # Test code for whether the C compiler supports C99 (complete).
2550 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2551 ${ac_c_conftest_c99_globals}
2552
2553 int
2554 main (int argc, char **argv)
2555 {
2556 int ok = 0;
2557 ${ac_c_conftest_c89_main}
2558 ${ac_c_conftest_c99_main}
2559 return ok;
2560 }
2561 "
2562
2563 # Test code for whether the C compiler supports C89 (complete).
2564 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2565
2566 int
2567 main (int argc, char **argv)
2568 {
2569 int ok = 0;
2570 ${ac_c_conftest_c89_main}
2571 return ok;
2572 }
2573 "
2574
2575 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2576 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2577 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2578 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2579 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2580 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2581 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2582 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2583 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2584 # Test code for whether the C++ compiler supports C++98 (global declarations)
2585 ac_cxx_conftest_cxx98_globals='
2586 // Does the compiler advertise C++98 conformance?
2587 #if !defined __cplusplus || __cplusplus < 199711L
2588 # error "Compiler does not advertise C++98 conformance"
2589 #endif
2590
2591 // These inclusions are to reject old compilers that
2592 // lack the unsuffixed header files.
2593 #include <cstdlib>
2594 #include <exception>
2595
2596 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2597 extern void assert (int);
2598 namespace std {
2599 extern int strcmp (const char *, const char *);
2600 }
2601
2602 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2603 using std::exception;
2604 using std::strcmp;
2605
2606 namespace {
2607
2608 void test_exception_syntax()
2609 {
2610 try {
2611 throw "test";
2612 } catch (const char *s) {
2613 // Extra parentheses suppress a warning when building autoconf itself,
2614 // due to lint rules shared with more typical C programs.
2615 assert (!(strcmp) (s, "test"));
2616 }
2617 }
2618
2619 template <typename T> struct test_template
2620 {
2621 T const val;
2622 explicit test_template(T t) : val(t) {}
2623 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2624 };
2625
2626 } // anonymous namespace
2627 '
2628
2629 # Test code for whether the C++ compiler supports C++98 (body of main)
2630 ac_cxx_conftest_cxx98_main='
2631 assert (argc);
2632 assert (! argv[0]);
2633 {
2634 test_exception_syntax ();
2635 test_template<double> tt (2.0);
2636 assert (tt.add (4) == 6.0);
2637 assert (true && !false);
2638 }
2639 '
2640
2641 # Test code for whether the C++ compiler supports C++11 (global declarations)
2642 ac_cxx_conftest_cxx11_globals='
2643 // Does the compiler advertise C++ 2011 conformance?
2644 #if !defined __cplusplus || __cplusplus < 201103L
2645 # error "Compiler does not advertise C++11 conformance"
2646 #endif
2647
2648 namespace cxx11test
2649 {
2650 constexpr int get_val() { return 20; }
2651
2652 struct testinit
2653 {
2654 int i;
2655 double d;
2656 };
2657
2658 class delegate
2659 {
2660 public:
2661 delegate(int n) : n(n) {}
2662 delegate(): delegate(2354) {}
2663
2664 virtual int getval() { return this->n; };
2665 protected:
2666 int n;
2667 };
2668
2669 class overridden : public delegate
2670 {
2671 public:
2672 overridden(int n): delegate(n) {}
2673 virtual int getval() override final { return this->n * 2; }
2674 };
2675
2676 class nocopy
2677 {
2678 public:
2679 nocopy(int i): i(i) {}
2680 nocopy() = default;
2681 nocopy(const nocopy&) = delete;
2682 nocopy & operator=(const nocopy&) = delete;
2683 private:
2684 int i;
2685 };
2686
2687 // for testing lambda expressions
2688 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2689 {
2690 return f(v);
2691 }
2692
2693 // for testing variadic templates and trailing return types
2694 template <typename V> auto sum(V first) -> V
2695 {
2696 return first;
2697 }
2698 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2699 {
2700 return first + sum(rest...);
2701 }
2702 }
2703 '
2704
2705 # Test code for whether the C++ compiler supports C++11 (body of main)
2706 ac_cxx_conftest_cxx11_main='
2707 {
2708 // Test auto and decltype
2709 auto a1 = 6538;
2710 auto a2 = 48573953.4;
2711 auto a3 = "String literal";
2712
2713 int total = 0;
2714 for (auto i = a3; *i; ++i) { total += *i; }
2715
2716 decltype(a2) a4 = 34895.034;
2717 }
2718 {
2719 // Test constexpr
2720 short sa[cxx11test::get_val()] = { 0 };
2721 }
2722 {
2723 // Test initializer lists
2724 cxx11test::testinit il = { 4323, 435234.23544 };
2725 }
2726 {
2727 // Test range-based for
2728 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2729 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2730 for (auto &x : array) { x += 23; }
2731 }
2732 {
2733 // Test lambda expressions
2734 using cxx11test::eval;
2735 assert (eval ([](int x) { return x*2; }, 21) == 42);
2736 double d = 2.0;
2737 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2738 assert (d == 5.0);
2739 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2740 assert (d == 5.0);
2741 }
2742 {
2743 // Test use of variadic templates
2744 using cxx11test::sum;
2745 auto a = sum(1);
2746 auto b = sum(1, 2);
2747 auto c = sum(1.0, 2.0, 3.0);
2748 }
2749 {
2750 // Test constructor delegation
2751 cxx11test::delegate d1;
2752 cxx11test::delegate d2();
2753 cxx11test::delegate d3(45);
2754 }
2755 {
2756 // Test override and final
2757 cxx11test::overridden o1(55464);
2758 }
2759 {
2760 // Test nullptr
2761 char *c = nullptr;
2762 }
2763 {
2764 // Test template brackets
2765 test_template<::test_template<int>> v(test_template<int>(12));
2766 }
2767 {
2768 // Unicode literals
2769 char const *utf8 = u8"UTF-8 string \u2500";
2770 char16_t const *utf16 = u"UTF-8 string \u2500";
2771 char32_t const *utf32 = U"UTF-32 string \u2500";
2772 }
2773 '
2774
2775 # Test code for whether the C compiler supports C++11 (complete).
2776 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2777 ${ac_cxx_conftest_cxx11_globals}
2778
2779 int
2780 main (int argc, char **argv)
2781 {
2782 int ok = 0;
2783 ${ac_cxx_conftest_cxx98_main}
2784 ${ac_cxx_conftest_cxx11_main}
2785 return ok;
2786 }
2787 "
2788
2789 # Test code for whether the C compiler supports C++98 (complete).
2790 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2791 int
2792 main (int argc, char **argv)
2793 {
2794 int ok = 0;
2795 ${ac_cxx_conftest_cxx98_main}
2796 return ok;
2797 }
2798 "
2799
2800 as_fn_append ac_header_c_list " sys/select.h sys_select_h HAVE_SYS_SELECT_H"
2801 as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H"
2802
2803 # Auxiliary files required by this configure script.
2804 ac_aux_files="config.guess config.sub"
2805
2806 # Locations in which to look for auxiliary files.
2807 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2808
2809 # Search for a directory containing all of the required auxiliary files,
2810 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2811 # If we don't find one directory that contains all the files we need,
2812 # we report the set of missing files from the *first* directory in
2813 # $ac_aux_dir_candidates and give up.
2814 ac_missing_aux_files=""
2815 ac_first_candidate=:
2816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 as_found=false
2819 for as_dir in $ac_aux_dir_candidates
2820 do
2821 IFS=$as_save_IFS
2822 case $as_dir in #(((
2823 '') as_dir=./ ;;
2824 */) ;;
2825 *) as_dir=$as_dir/ ;;
2826 esac
2827 as_found=:
2828
2829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2830 ac_aux_dir_found=yes
2831 ac_install_sh=
2832 for ac_aux in $ac_aux_files
2833 do
2834 # As a special case, if "install-sh" is required, that requirement
2835 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2836 # and $ac_install_sh is set appropriately for whichever one is found.
2837 if test x"$ac_aux" = x"install-sh"
2838 then
2839 if test -f "${as_dir}install-sh"; then
2840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2841 ac_install_sh="${as_dir}install-sh -c"
2842 elif test -f "${as_dir}install.sh"; then
2843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2844 ac_install_sh="${as_dir}install.sh -c"
2845 elif test -f "${as_dir}shtool"; then
2846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2847 ac_install_sh="${as_dir}shtool install -c"
2848 else
2849 ac_aux_dir_found=no
2850 if $ac_first_candidate; then
2851 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2852 else
2853 break
2854 fi
2855 fi
2856 else
2857 if test -f "${as_dir}${ac_aux}"; then
2858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2859 else
2860 ac_aux_dir_found=no
2861 if $ac_first_candidate; then
2862 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2863 else
2864 break
2865 fi
2866 fi
2867 fi
2868 done
2869 if test "$ac_aux_dir_found" = yes; then
2870 ac_aux_dir="$as_dir"
2871 break
2872 fi
2873 ac_first_candidate=false
2874
2875 as_found=false
2876 done
2877 IFS=$as_save_IFS
2878 if $as_found
2879 then :
2880
2881 else $as_nop
2882 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2883 fi
2884
2885
2886 # These three variables are undocumented and unsupported,
2887 # and are intended to be withdrawn in a future Autoconf release.
2888 # They can cause serious problems if a builder's source tree is in a directory
2889 # whose full name contains unusual characters.
2890 if test -f "${ac_aux_dir}config.guess"; then
2891 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2892 fi
2893 if test -f "${ac_aux_dir}config.sub"; then
2894 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2895 fi
2896 if test -f "$ac_aux_dir/configure"; then
2897 ac_configure="$SHELL ${ac_aux_dir}configure"
2898 fi
2899
2900 # Check that the precious variables saved in the cache have kept the same
2901 # value.
2902 ac_cache_corrupted=false
2903 for ac_var in $ac_precious_vars; do
2904 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2905 eval ac_new_set=\$ac_env_${ac_var}_set
2906 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2907 eval ac_new_val=\$ac_env_${ac_var}_value
2908 case $ac_old_set,$ac_new_set in
2909 set,)
2910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2911 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2912 ac_cache_corrupted=: ;;
2913 ,set)
2914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2915 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2916 ac_cache_corrupted=: ;;
2917 ,);;
2918 *)
2919 if test "x$ac_old_val" != "x$ac_new_val"; then
2920 # differences in whitespace do not lead to failure.
2921 ac_old_val_w=`echo x $ac_old_val`
2922 ac_new_val_w=`echo x $ac_new_val`
2923 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2925 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2926 ac_cache_corrupted=:
2927 else
2928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2929 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2930 eval $ac_var=\$ac_old_val
2931 fi
2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2933 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2935 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2936 fi;;
2937 esac
2938 # Pass precious variables to config.status.
2939 if test "$ac_new_set" = set; then
2940 case $ac_new_val in
2941 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2942 *) ac_arg=$ac_var=$ac_new_val ;;
2943 esac
2944 case " $ac_configure_args " in
2945 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2946 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2947 esac
2948 fi
2949 done
2950 if $ac_cache_corrupted; then
2951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2952 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2954 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2955 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2956 and start over" "$LINENO" 5
2957 fi
2958 ## -------------------- ##
2959 ## Main body of script. ##
2960 ## -------------------- ##
2961
2962 ac_ext=c
2963 ac_cpp='$CPP $CPPFLAGS'
2964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2967
2968
2969
2970
2971 # Record which revision is being built
2972 if test -s "`which hg`" && test -d "$srcdir/.hg"; then
2973 hgrev=`hg id -i -R "$srcdir"`
2974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Source directory Mercurial base revision $hgrev" >&5
2975 printf "%s\n" "$as_me: Source directory Mercurial base revision $hgrev" >&6;}
2976 fi
2977
2978 ORIGCFLAGS="$CFLAGS"
2979 # Checks for programs.
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989 ac_ext=c
2990 ac_cpp='$CPP $CPPFLAGS'
2991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2994 if test -n "$ac_tool_prefix"; then
2995 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2996 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 printf %s "checking for $ac_word... " >&6; }
2999 if test ${ac_cv_prog_CC+y}
3000 then :
3001 printf %s "(cached) " >&6
3002 else $as_nop
3003 if test -n "$CC"; then
3004 ac_cv_prog_CC="$CC" # Let the user override the test.
3005 else
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 for as_dir in $PATH
3008 do
3009 IFS=$as_save_IFS
3010 case $as_dir in #(((
3011 '') as_dir=./ ;;
3012 */) ;;
3013 *) as_dir=$as_dir/ ;;
3014 esac
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3017 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3019 break 2
3020 fi
3021 done
3022 done
3023 IFS=$as_save_IFS
3024
3025 fi
3026 fi
3027 CC=$ac_cv_prog_CC
3028 if test -n "$CC"; then
3029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3030 printf "%s\n" "$CC" >&6; }
3031 else
3032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 printf "%s\n" "no" >&6; }
3034 fi
3035
3036
3037 fi
3038 if test -z "$ac_cv_prog_CC"; then
3039 ac_ct_CC=$CC
3040 # Extract the first word of "gcc", so it can be a program name with args.
3041 set dummy gcc; ac_word=$2
3042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 printf %s "checking for $ac_word... " >&6; }
3044 if test ${ac_cv_prog_ac_ct_CC+y}
3045 then :
3046 printf %s "(cached) " >&6
3047 else $as_nop
3048 if test -n "$ac_ct_CC"; then
3049 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3050 else
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 for as_dir in $PATH
3053 do
3054 IFS=$as_save_IFS
3055 case $as_dir in #(((
3056 '') as_dir=./ ;;
3057 */) ;;
3058 *) as_dir=$as_dir/ ;;
3059 esac
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3062 ac_cv_prog_ac_ct_CC="gcc"
3063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3064 break 2
3065 fi
3066 done
3067 done
3068 IFS=$as_save_IFS
3069
3070 fi
3071 fi
3072 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3073 if test -n "$ac_ct_CC"; then
3074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3075 printf "%s\n" "$ac_ct_CC" >&6; }
3076 else
3077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 printf "%s\n" "no" >&6; }
3079 fi
3080
3081 if test "x$ac_ct_CC" = x; then
3082 CC=""
3083 else
3084 case $cross_compiling:$ac_tool_warned in
3085 yes:)
3086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3087 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3088 ac_tool_warned=yes ;;
3089 esac
3090 CC=$ac_ct_CC
3091 fi
3092 else
3093 CC="$ac_cv_prog_CC"
3094 fi
3095
3096 if test -z "$CC"; then
3097 if test -n "$ac_tool_prefix"; then
3098 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3099 set dummy ${ac_tool_prefix}cc; ac_word=$2
3100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101 printf %s "checking for $ac_word... " >&6; }
3102 if test ${ac_cv_prog_CC+y}
3103 then :
3104 printf %s "(cached) " >&6
3105 else $as_nop
3106 if test -n "$CC"; then
3107 ac_cv_prog_CC="$CC" # Let the user override the test.
3108 else
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 for as_dir in $PATH
3111 do
3112 IFS=$as_save_IFS
3113 case $as_dir in #(((
3114 '') as_dir=./ ;;
3115 */) ;;
3116 *) as_dir=$as_dir/ ;;
3117 esac
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3120 ac_cv_prog_CC="${ac_tool_prefix}cc"
3121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3122 break 2
3123 fi
3124 done
3125 done
3126 IFS=$as_save_IFS
3127
3128 fi
3129 fi
3130 CC=$ac_cv_prog_CC
3131 if test -n "$CC"; then
3132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3133 printf "%s\n" "$CC" >&6; }
3134 else
3135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 printf "%s\n" "no" >&6; }
3137 fi
3138
3139
3140 fi
3141 fi
3142 if test -z "$CC"; then
3143 # Extract the first word of "cc", so it can be a program name with args.
3144 set dummy cc; ac_word=$2
3145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3146 printf %s "checking for $ac_word... " >&6; }
3147 if test ${ac_cv_prog_CC+y}
3148 then :
3149 printf %s "(cached) " >&6
3150 else $as_nop
3151 if test -n "$CC"; then
3152 ac_cv_prog_CC="$CC" # Let the user override the test.
3153 else
3154 ac_prog_rejected=no
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 for as_dir in $PATH
3157 do
3158 IFS=$as_save_IFS
3159 case $as_dir in #(((
3160 '') as_dir=./ ;;
3161 */) ;;
3162 *) as_dir=$as_dir/ ;;
3163 esac
3164 for ac_exec_ext in '' $ac_executable_extensions; do
3165 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3166 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3167 ac_prog_rejected=yes
3168 continue
3169 fi
3170 ac_cv_prog_CC="cc"
3171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3172 break 2
3173 fi
3174 done
3175 done
3176 IFS=$as_save_IFS
3177
3178 if test $ac_prog_rejected = yes; then
3179 # We found a bogon in the path, so make sure we never use it.
3180 set dummy $ac_cv_prog_CC
3181 shift
3182 if test $# != 0; then
3183 # We chose a different compiler from the bogus one.
3184 # However, it has the same basename, so the bogon will be chosen
3185 # first if we set CC to just the basename; use the full file name.
3186 shift
3187 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3188 fi
3189 fi
3190 fi
3191 fi
3192 CC=$ac_cv_prog_CC
3193 if test -n "$CC"; then
3194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3195 printf "%s\n" "$CC" >&6; }
3196 else
3197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 printf "%s\n" "no" >&6; }
3199 fi
3200
3201
3202 fi
3203 if test -z "$CC"; then
3204 if test -n "$ac_tool_prefix"; then
3205 for ac_prog in cl.exe
3206 do
3207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 printf %s "checking for $ac_word... " >&6; }
3211 if test ${ac_cv_prog_CC+y}
3212 then :
3213 printf %s "(cached) " >&6
3214 else $as_nop
3215 if test -n "$CC"; then
3216 ac_cv_prog_CC="$CC" # Let the user override the test.
3217 else
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 for as_dir in $PATH
3220 do
3221 IFS=$as_save_IFS
3222 case $as_dir in #(((
3223 '') as_dir=./ ;;
3224 */) ;;
3225 *) as_dir=$as_dir/ ;;
3226 esac
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3229 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3231 break 2
3232 fi
3233 done
3234 done
3235 IFS=$as_save_IFS
3236
3237 fi
3238 fi
3239 CC=$ac_cv_prog_CC
3240 if test -n "$CC"; then
3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3242 printf "%s\n" "$CC" >&6; }
3243 else
3244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 printf "%s\n" "no" >&6; }
3246 fi
3247
3248
3249 test -n "$CC" && break
3250 done
3251 fi
3252 if test -z "$CC"; then
3253 ac_ct_CC=$CC
3254 for ac_prog in cl.exe
3255 do
3256 # Extract the first word of "$ac_prog", so it can be a program name with args.
3257 set dummy $ac_prog; ac_word=$2
3258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 printf %s "checking for $ac_word... " >&6; }
3260 if test ${ac_cv_prog_ac_ct_CC+y}
3261 then :
3262 printf %s "(cached) " >&6
3263 else $as_nop
3264 if test -n "$ac_ct_CC"; then
3265 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3266 else
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH
3269 do
3270 IFS=$as_save_IFS
3271 case $as_dir in #(((
3272 '') as_dir=./ ;;
3273 */) ;;
3274 *) as_dir=$as_dir/ ;;
3275 esac
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3278 ac_cv_prog_ac_ct_CC="$ac_prog"
3279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3280 break 2
3281 fi
3282 done
3283 done
3284 IFS=$as_save_IFS
3285
3286 fi
3287 fi
3288 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3289 if test -n "$ac_ct_CC"; then
3290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3291 printf "%s\n" "$ac_ct_CC" >&6; }
3292 else
3293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 printf "%s\n" "no" >&6; }
3295 fi
3296
3297
3298 test -n "$ac_ct_CC" && break
3299 done
3300
3301 if test "x$ac_ct_CC" = x; then
3302 CC=""
3303 else
3304 case $cross_compiling:$ac_tool_warned in
3305 yes:)
3306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3307 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3308 ac_tool_warned=yes ;;
3309 esac
3310 CC=$ac_ct_CC
3311 fi
3312 fi
3313
3314 fi
3315 if test -z "$CC"; then
3316 if test -n "$ac_tool_prefix"; then
3317 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3318 set dummy ${ac_tool_prefix}clang; ac_word=$2
3319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 printf %s "checking for $ac_word... " >&6; }
3321 if test ${ac_cv_prog_CC+y}
3322 then :
3323 printf %s "(cached) " >&6
3324 else $as_nop
3325 if test -n "$CC"; then
3326 ac_cv_prog_CC="$CC" # Let the user override the test.
3327 else
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 for as_dir in $PATH
3330 do
3331 IFS=$as_save_IFS
3332 case $as_dir in #(((
3333 '') as_dir=./ ;;
3334 */) ;;
3335 *) as_dir=$as_dir/ ;;
3336 esac
3337 for ac_exec_ext in '' $ac_executable_extensions; do
3338 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3339 ac_cv_prog_CC="${ac_tool_prefix}clang"
3340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3341 break 2
3342 fi
3343 done
3344 done
3345 IFS=$as_save_IFS
3346
3347 fi
3348 fi
3349 CC=$ac_cv_prog_CC
3350 if test -n "$CC"; then
3351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3352 printf "%s\n" "$CC" >&6; }
3353 else
3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355 printf "%s\n" "no" >&6; }
3356 fi
3357
3358
3359 fi
3360 if test -z "$ac_cv_prog_CC"; then
3361 ac_ct_CC=$CC
3362 # Extract the first word of "clang", so it can be a program name with args.
3363 set dummy clang; ac_word=$2
3364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365 printf %s "checking for $ac_word... " >&6; }
3366 if test ${ac_cv_prog_ac_ct_CC+y}
3367 then :
3368 printf %s "(cached) " >&6
3369 else $as_nop
3370 if test -n "$ac_ct_CC"; then
3371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3372 else
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3375 do
3376 IFS=$as_save_IFS
3377 case $as_dir in #(((
3378 '') as_dir=./ ;;
3379 */) ;;
3380 *) as_dir=$as_dir/ ;;
3381 esac
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3384 ac_cv_prog_ac_ct_CC="clang"
3385 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3386 break 2
3387 fi
3388 done
3389 done
3390 IFS=$as_save_IFS
3391
3392 fi
3393 fi
3394 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3395 if test -n "$ac_ct_CC"; then
3396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3397 printf "%s\n" "$ac_ct_CC" >&6; }
3398 else
3399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 printf "%s\n" "no" >&6; }
3401 fi
3402
3403 if test "x$ac_ct_CC" = x; then
3404 CC=""
3405 else
3406 case $cross_compiling:$ac_tool_warned in
3407 yes:)
3408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3409 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3410 ac_tool_warned=yes ;;
3411 esac
3412 CC=$ac_ct_CC
3413 fi
3414 else
3415 CC="$ac_cv_prog_CC"
3416 fi
3417
3418 fi
3419
3420
3421 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3422 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3423 as_fn_error $? "no acceptable C compiler found in \$PATH
3424 See \`config.log' for more details" "$LINENO" 5; }
3425
3426 # Provide some information about the compiler.
3427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3428 set X $ac_compile
3429 ac_compiler=$2
3430 for ac_option in --version -v -V -qversion -version; do
3431 { { ac_try="$ac_compiler $ac_option >&5"
3432 case "(($ac_try" in
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3435 esac
3436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3437 printf "%s\n" "$ac_try_echo"; } >&5
3438 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3439 ac_status=$?
3440 if test -s conftest.err; then
3441 sed '10a\
3442 ... rest of stderr output deleted ...
3443 10q' conftest.err >conftest.er1
3444 cat conftest.er1 >&5
3445 fi
3446 rm -f conftest.er1 conftest.err
3447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448 test $ac_status = 0; }
3449 done
3450
3451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452 /* end confdefs.h. */
3453
3454 int
3455 main (void)
3456 {
3457
3458 ;
3459 return 0;
3460 }
3461 _ACEOF
3462 ac_clean_files_save=$ac_clean_files
3463 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3464 # Try to create an executable without -o first, disregard a.out.
3465 # It will help us diagnose broken compilers, and finding out an intuition
3466 # of exeext.
3467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3468 printf %s "checking whether the C compiler works... " >&6; }
3469 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3470
3471 # The possible output files:
3472 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3473
3474 ac_rmfiles=
3475 for ac_file in $ac_files
3476 do
3477 case $ac_file in
3478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3479 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3480 esac
3481 done
3482 rm -f $ac_rmfiles
3483
3484 if { { ac_try="$ac_link_default"
3485 case "(($ac_try" in
3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487 *) ac_try_echo=$ac_try;;
3488 esac
3489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3490 printf "%s\n" "$ac_try_echo"; } >&5
3491 (eval "$ac_link_default") 2>&5
3492 ac_status=$?
3493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3494 test $ac_status = 0; }
3495 then :
3496 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3497 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3498 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3499 # so that the user can short-circuit this test for compilers unknown to
3500 # Autoconf.
3501 for ac_file in $ac_files ''
3502 do
3503 test -f "$ac_file" || continue
3504 case $ac_file in
3505 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3506 ;;
3507 [ab].out )
3508 # We found the default executable, but exeext='' is most
3509 # certainly right.
3510 break;;
3511 *.* )
3512 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3513 then :; else
3514 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3515 fi
3516 # We set ac_cv_exeext here because the later test for it is not
3517 # safe: cross compilers may not add the suffix if given an `-o'
3518 # argument, so we may need to know it at that point already.
3519 # Even if this section looks crufty: it has the advantage of
3520 # actually working.
3521 break;;
3522 * )
3523 break;;
3524 esac
3525 done
3526 test "$ac_cv_exeext" = no && ac_cv_exeext=
3527
3528 else $as_nop
3529 ac_file=''
3530 fi
3531 if test -z "$ac_file"
3532 then :
3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534 printf "%s\n" "no" >&6; }
3535 printf "%s\n" "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3537
3538 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3539 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3540 as_fn_error 77 "C compiler cannot create executables
3541 See \`config.log' for more details" "$LINENO" 5; }
3542 else $as_nop
3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3544 printf "%s\n" "yes" >&6; }
3545 fi
3546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3547 printf %s "checking for C compiler default output file name... " >&6; }
3548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3549 printf "%s\n" "$ac_file" >&6; }
3550 ac_exeext=$ac_cv_exeext
3551
3552 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3553 ac_clean_files=$ac_clean_files_save
3554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3555 printf %s "checking for suffix of executables... " >&6; }
3556 if { { ac_try="$ac_link"
3557 case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3560 esac
3561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562 printf "%s\n" "$ac_try_echo"; } >&5
3563 (eval "$ac_link") 2>&5
3564 ac_status=$?
3565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3566 test $ac_status = 0; }
3567 then :
3568 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3569 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3570 # work properly (i.e., refer to `conftest.exe'), while it won't with
3571 # `rm'.
3572 for ac_file in conftest.exe conftest conftest.*; do
3573 test -f "$ac_file" || continue
3574 case $ac_file in
3575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3576 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3577 break;;
3578 * ) break;;
3579 esac
3580 done
3581 else $as_nop
3582 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3584 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3585 See \`config.log' for more details" "$LINENO" 5; }
3586 fi
3587 rm -f conftest conftest$ac_cv_exeext
3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3589 printf "%s\n" "$ac_cv_exeext" >&6; }
3590
3591 rm -f conftest.$ac_ext
3592 EXEEXT=$ac_cv_exeext
3593 ac_exeext=$EXEEXT
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3596 #include <stdio.h>
3597 int
3598 main (void)
3599 {
3600 FILE *f = fopen ("conftest.out", "w");
3601 return ferror (f) || fclose (f) != 0;
3602
3603 ;
3604 return 0;
3605 }
3606 _ACEOF
3607 ac_clean_files="$ac_clean_files conftest.out"
3608 # Check that the compiler produces executables we can run. If not, either
3609 # the compiler is broken, or we cross compile.
3610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3611 printf %s "checking whether we are cross compiling... " >&6; }
3612 if test "$cross_compiling" != yes; then
3613 { { ac_try="$ac_link"
3614 case "(($ac_try" in
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3617 esac
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 printf "%s\n" "$ac_try_echo"; } >&5
3620 (eval "$ac_link") 2>&5
3621 ac_status=$?
3622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623 test $ac_status = 0; }
3624 if { ac_try='./conftest$ac_cv_exeext'
3625 { { case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3628 esac
3629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3630 printf "%s\n" "$ac_try_echo"; } >&5
3631 (eval "$ac_try") 2>&5
3632 ac_status=$?
3633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634 test $ac_status = 0; }; }; then
3635 cross_compiling=no
3636 else
3637 if test "$cross_compiling" = maybe; then
3638 cross_compiling=yes
3639 else
3640 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3641 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3642 as_fn_error 77 "cannot run C compiled programs.
3643 If you meant to cross compile, use \`--host'.
3644 See \`config.log' for more details" "$LINENO" 5; }
3645 fi
3646 fi
3647 fi
3648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3649 printf "%s\n" "$cross_compiling" >&6; }
3650
3651 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3652 ac_clean_files=$ac_clean_files_save
3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3654 printf %s "checking for suffix of object files... " >&6; }
3655 if test ${ac_cv_objext+y}
3656 then :
3657 printf %s "(cached) " >&6
3658 else $as_nop
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3661
3662 int
3663 main (void)
3664 {
3665
3666 ;
3667 return 0;
3668 }
3669 _ACEOF
3670 rm -f conftest.o conftest.obj
3671 if { { ac_try="$ac_compile"
3672 case "(($ac_try" in
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3675 esac
3676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3677 printf "%s\n" "$ac_try_echo"; } >&5
3678 (eval "$ac_compile") 2>&5
3679 ac_status=$?
3680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3681 test $ac_status = 0; }
3682 then :
3683 for ac_file in conftest.o conftest.obj conftest.*; do
3684 test -f "$ac_file" || continue;
3685 case $ac_file in
3686 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3687 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3688 break;;
3689 esac
3690 done
3691 else $as_nop
3692 printf "%s\n" "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.$ac_ext >&5
3694
3695 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3696 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3697 as_fn_error $? "cannot compute suffix of object files: cannot compile
3698 See \`config.log' for more details" "$LINENO" 5; }
3699 fi
3700 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3701 fi
3702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3703 printf "%s\n" "$ac_cv_objext" >&6; }
3704 OBJEXT=$ac_cv_objext
3705 ac_objext=$OBJEXT
3706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3707 printf %s "checking whether the compiler supports GNU C... " >&6; }
3708 if test ${ac_cv_c_compiler_gnu+y}
3709 then :
3710 printf %s "(cached) " >&6
3711 else $as_nop
3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713 /* end confdefs.h. */
3714
3715 int
3716 main (void)
3717 {
3718 #ifndef __GNUC__
3719 choke me
3720 #endif
3721
3722 ;
3723 return 0;
3724 }
3725 _ACEOF
3726 if ac_fn_c_try_compile "$LINENO"
3727 then :
3728 ac_compiler_gnu=yes
3729 else $as_nop
3730 ac_compiler_gnu=no
3731 fi
3732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3733 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3734
3735 fi
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3737 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3739
3740 if test $ac_compiler_gnu = yes; then
3741 GCC=yes
3742 else
3743 GCC=
3744 fi
3745 ac_test_CFLAGS=${CFLAGS+y}
3746 ac_save_CFLAGS=$CFLAGS
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3748 printf %s "checking whether $CC accepts -g... " >&6; }
3749 if test ${ac_cv_prog_cc_g+y}
3750 then :
3751 printf %s "(cached) " >&6
3752 else $as_nop
3753 ac_save_c_werror_flag=$ac_c_werror_flag
3754 ac_c_werror_flag=yes
3755 ac_cv_prog_cc_g=no
3756 CFLAGS="-g"
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3759
3760 int
3761 main (void)
3762 {
3763
3764 ;
3765 return 0;
3766 }
3767 _ACEOF
3768 if ac_fn_c_try_compile "$LINENO"
3769 then :
3770 ac_cv_prog_cc_g=yes
3771 else $as_nop
3772 CFLAGS=""
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3775
3776 int
3777 main (void)
3778 {
3779
3780 ;
3781 return 0;
3782 }
3783 _ACEOF
3784 if ac_fn_c_try_compile "$LINENO"
3785 then :
3786
3787 else $as_nop
3788 ac_c_werror_flag=$ac_save_c_werror_flag
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 fi
3805 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3806 fi
3807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3808 fi
3809 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3810 ac_c_werror_flag=$ac_save_c_werror_flag
3811 fi
3812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3813 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3814 if test $ac_test_CFLAGS; then
3815 CFLAGS=$ac_save_CFLAGS
3816 elif test $ac_cv_prog_cc_g = yes; then
3817 if test "$GCC" = yes; then
3818 CFLAGS="-g -O2"
3819 else
3820 CFLAGS="-g"
3821 fi
3822 else
3823 if test "$GCC" = yes; then
3824 CFLAGS="-O2"
3825 else
3826 CFLAGS=
3827 fi
3828 fi
3829 ac_prog_cc_stdc=no
3830 if test x$ac_prog_cc_stdc = xno
3831 then :
3832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3833 printf %s "checking for $CC option to enable C11 features... " >&6; }
3834 if test ${ac_cv_prog_cc_c11+y}
3835 then :
3836 printf %s "(cached) " >&6
3837 else $as_nop
3838 ac_cv_prog_cc_c11=no
3839 ac_save_CC=$CC
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3842 $ac_c_conftest_c11_program
3843 _ACEOF
3844 for ac_arg in '' -std=gnu11
3845 do
3846 CC="$ac_save_CC $ac_arg"
3847 if ac_fn_c_try_compile "$LINENO"
3848 then :
3849 ac_cv_prog_cc_c11=$ac_arg
3850 fi
3851 rm -f core conftest.err conftest.$ac_objext conftest.beam
3852 test "x$ac_cv_prog_cc_c11" != "xno" && break
3853 done
3854 rm -f conftest.$ac_ext
3855 CC=$ac_save_CC
3856 fi
3857
3858 if test "x$ac_cv_prog_cc_c11" = xno
3859 then :
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3861 printf "%s\n" "unsupported" >&6; }
3862 else $as_nop
3863 if test "x$ac_cv_prog_cc_c11" = x
3864 then :
3865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3866 printf "%s\n" "none needed" >&6; }
3867 else $as_nop
3868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3869 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3870 CC="$CC $ac_cv_prog_cc_c11"
3871 fi
3872 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3873 ac_prog_cc_stdc=c11
3874 fi
3875 fi
3876 if test x$ac_prog_cc_stdc = xno
3877 then :
3878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3879 printf %s "checking for $CC option to enable C99 features... " >&6; }
3880 if test ${ac_cv_prog_cc_c99+y}
3881 then :
3882 printf %s "(cached) " >&6
3883 else $as_nop
3884 ac_cv_prog_cc_c99=no
3885 ac_save_CC=$CC
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3888 $ac_c_conftest_c99_program
3889 _ACEOF
3890 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3891 do
3892 CC="$ac_save_CC $ac_arg"
3893 if ac_fn_c_try_compile "$LINENO"
3894 then :
3895 ac_cv_prog_cc_c99=$ac_arg
3896 fi
3897 rm -f core conftest.err conftest.$ac_objext conftest.beam
3898 test "x$ac_cv_prog_cc_c99" != "xno" && break
3899 done
3900 rm -f conftest.$ac_ext
3901 CC=$ac_save_CC
3902 fi
3903
3904 if test "x$ac_cv_prog_cc_c99" = xno
3905 then :
3906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3907 printf "%s\n" "unsupported" >&6; }
3908 else $as_nop
3909 if test "x$ac_cv_prog_cc_c99" = x
3910 then :
3911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3912 printf "%s\n" "none needed" >&6; }
3913 else $as_nop
3914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3915 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3916 CC="$CC $ac_cv_prog_cc_c99"
3917 fi
3918 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3919 ac_prog_cc_stdc=c99
3920 fi
3921 fi
3922 if test x$ac_prog_cc_stdc = xno
3923 then :
3924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3925 printf %s "checking for $CC option to enable C89 features... " >&6; }
3926 if test ${ac_cv_prog_cc_c89+y}
3927 then :
3928 printf %s "(cached) " >&6
3929 else $as_nop
3930 ac_cv_prog_cc_c89=no
3931 ac_save_CC=$CC
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3934 $ac_c_conftest_c89_program
3935 _ACEOF
3936 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3937 do
3938 CC="$ac_save_CC $ac_arg"
3939 if ac_fn_c_try_compile "$LINENO"
3940 then :
3941 ac_cv_prog_cc_c89=$ac_arg
3942 fi
3943 rm -f core conftest.err conftest.$ac_objext conftest.beam
3944 test "x$ac_cv_prog_cc_c89" != "xno" && break
3945 done
3946 rm -f conftest.$ac_ext
3947 CC=$ac_save_CC
3948 fi
3949
3950 if test "x$ac_cv_prog_cc_c89" = xno
3951 then :
3952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3953 printf "%s\n" "unsupported" >&6; }
3954 else $as_nop
3955 if test "x$ac_cv_prog_cc_c89" = x
3956 then :
3957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3958 printf "%s\n" "none needed" >&6; }
3959 else $as_nop
3960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3961 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3962 CC="$CC $ac_cv_prog_cc_c89"
3963 fi
3964 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3965 ac_prog_cc_stdc=c89
3966 fi
3967 fi
3968
3969 ac_ext=c
3970 ac_cpp='$CPP $CPPFLAGS'
3971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3974
3975
3976 if test -z "$LD" ; then
3977 LD=$CC
3978 fi
3979
3980
3981
3982
3983 # set compile flags prior to other tests
3984 if test -z "$ORIGCFLAGS" && test "$GCC" = "yes"; then
3985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No \$CFLAGS set... using \"-Os -W -Wall\" for GCC" >&5
3986 printf "%s\n" "$as_me: No \$CFLAGS set... using \"-Os -W -Wall\" for GCC" >&6;}
3987 CFLAGS="-Os -W -Wall"
3988 fi
3989
3990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checking if compiler '$CC' supports -Wno-pointer-sign" >&5
3991 printf "%s\n" "$as_me: Checking if compiler '$CC' supports -Wno-pointer-sign" >&6;}
3992
3993 {
3994 OLDFLAGS="$CFLAGS"
3995 TESTFLAGS="-Wno-pointer-sign"
3996 CFLAGS="$CFLAGS $TESTFLAGS"
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
3999
4000 int
4001 main (void)
4002 {
4003
4004 ;
4005 return 0;
4006 }
4007 _ACEOF
4008 if ac_fn_c_try_compile "$LINENO"
4009 then :
4010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5
4011 printf "%s\n" "$as_me: Setting $TESTFLAGS" >&6;}
4012 else $as_nop
4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not setting $TESTFLAGS" >&5
4014 printf "%s\n" "$as_me: Not setting $TESTFLAGS" >&6;}; CFLAGS="$OLDFLAGS"
4015
4016 fi
4017 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4018 }
4019
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checking if compiler '$CC' supports -fno-strict-overflow" >&5
4021 printf "%s\n" "$as_me: Checking if compiler '$CC' supports -fno-strict-overflow" >&6;}
4022 {
4023 OLDFLAGS="$CFLAGS"
4024 TESTFLAGS="-fno-strict-overflow"
4025 CFLAGS="$CFLAGS $TESTFLAGS"
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4028
4029 int
4030 main (void)
4031 {
4032
4033 ;
4034 return 0;
4035 }
4036 _ACEOF
4037 if ac_fn_c_try_compile "$LINENO"
4038 then :
4039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5
4040 printf "%s\n" "$as_me: Setting $TESTFLAGS" >&6;}
4041 else $as_nop
4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not setting $TESTFLAGS" >&5
4043 printf "%s\n" "$as_me: Not setting $TESTFLAGS" >&6;}; CFLAGS="$OLDFLAGS"
4044
4045 fi
4046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4047 }
4048
4049 # needed for various extensions. define early before autoconf tests
4050
4051 printf "%s\n" "#define _GNU_SOURCE /**/" >>confdefs.h
4052
4053
4054 STATIC=0
4055 # Check whether --enable-static was given.
4056 if test ${enable_static+y}
4057 then :
4058 enableval=$enable_static;
4059 if test "x$enableval" = "xyes"; then
4060 STATIC=1
4061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Static Build" >&5
4062 printf "%s\n" "$as_me: Static Build" >&6;}
4063 fi
4064
4065 fi
4066
4067
4068
4069 hardenbuild=1
4070 # Check whether --enable-harden was given.
4071 if test ${enable_harden+y}
4072 then :
4073 enableval=$enable_harden;
4074 if test "x$enableval" = "xno"; then
4075 hardenbuild=0
4076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disabling hardened build flags" >&5
4077 printf "%s\n" "$as_me: Disabling hardened build flags" >&6;}
4078 fi
4079
4080 fi
4081
4082
4083 if test "$hardenbuild" -eq 1; then
4084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checking for available hardened build flags:" >&5
4085 printf "%s\n" "$as_me: Checking for available hardened build flags:" >&6;}
4086 # relocation flags don't make sense for static builds
4087 if test "$STATIC" -ne 1; then
4088 # pie
4089 {
4090 OLDFLAGS="$CFLAGS"
4091 TESTFLAGS="-fPIE"
4092 CFLAGS="$CFLAGS $TESTFLAGS"
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4095
4096 int
4097 main (void)
4098 {
4099
4100 ;
4101 return 0;
4102 }
4103 _ACEOF
4104 if ac_fn_c_try_compile "$LINENO"
4105 then :
4106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5
4107 printf "%s\n" "$as_me: Setting $TESTFLAGS" >&6;}
4108 else $as_nop
4109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not setting $TESTFLAGS" >&5
4110 printf "%s\n" "$as_me: Not setting $TESTFLAGS" >&6;}; CFLAGS="$OLDFLAGS"
4111
4112 fi
4113 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4114 }
4115
4116 OLDLDFLAGS="$LDFLAGS"
4117 TESTFLAGS="-Wl,-pie"
4118 LDFLAGS="$LDFLAGS $TESTFLAGS"
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4121
4122 int
4123 main (void)
4124 {
4125
4126 ;
4127 return 0;
4128 }
4129 _ACEOF
4130 if ac_fn_c_try_link "$LINENO"
4131 then :
4132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5
4133 printf "%s\n" "$as_me: Setting $TESTFLAGS" >&6;}
4134 else $as_nop
4135
4136 LDFLAGS="$OLDLDFLAGS"
4137 TESTFLAGS="-pie"
4138 LDFLAGS="$LDFLAGS $TESTFLAGS"
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4141
4142 int
4143 main (void)
4144 {
4145
4146 ;
4147 return 0;
4148 }
4149 _ACEOF
4150 if ac_fn_c_try_link "$LINENO"
4151 then :
4152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5
4153 printf "%s\n" "$as_me: Setting $TESTFLAGS" >&6;}
4154 else $as_nop
4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not setting $TESTFLAGS" >&5
4156 printf "%s\n" "$as_me: Not setting $TESTFLAGS" >&6;}; LDFLAGS="$OLDLDFLAGS"
4157
4158 fi
4159 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4160 conftest$ac_exeext conftest.$ac_ext
4161
4162
4163 fi
4164 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4165 conftest$ac_exeext conftest.$ac_ext
4166 # readonly elf relocation sections (relro)
4167 OLDLDFLAGS="$LDFLAGS"
4168 TESTFLAGS="-Wl,-z,now -Wl,-z,relro"
4169 LDFLAGS="$LDFLAGS $TESTFLAGS"
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4172
4173 int
4174 main (void)
4175 {
4176
4177 ;
4178 return 0;
4179 }
4180 _ACEOF
4181 if ac_fn_c_try_link "$LINENO"
4182 then :
4183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5
4184 printf "%s\n" "$as_me: Setting $TESTFLAGS" >&6;}
4185 else $as_nop
4186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not setting $TESTFLAGS" >&5
4187 printf "%s\n" "$as_me: Not setting $TESTFLAGS" >&6;}; LDFLAGS="$OLDLDFLAGS"
4188
4189 fi
4190 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4191 conftest$ac_exeext conftest.$ac_ext
4192 fi # non-static
4193 # stack protector. -strong is good but only in gcc 4.9 or later
4194 OLDCFLAGS="$CFLAGS"
4195 TESTFLAGS="-fstack-protector-strong"
4196 CFLAGS="$CFLAGS $TESTFLAGS"
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4199
4200 int
4201 main (void)
4202 {
4203
4204 ;
4205 return 0;
4206 }
4207 _ACEOF
4208 if ac_fn_c_try_compile "$LINENO"
4209 then :
4210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5
4211 printf "%s\n" "$as_me: Setting $TESTFLAGS" >&6;}
4212 else $as_nop
4213
4214 CFLAGS="$OLDCFLAGS"
4215 TESTFLAGS="-fstack-protector --param=ssp-buffer-size=4"
4216 CFLAGS="$CFLAGS $TESTFLAGS"
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h. */
4219
4220 int
4221 main (void)
4222 {
4223
4224 ;
4225 return 0;
4226 }
4227 _ACEOF
4228 if ac_fn_c_try_compile "$LINENO"
4229 then :
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5
4231 printf "%s\n" "$as_me: Setting $TESTFLAGS" >&6;}
4232 else $as_nop
4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not setting $TESTFLAGS" >&5
4234 printf "%s\n" "$as_me: Not setting $TESTFLAGS" >&6;}; CFLAGS="$OLDCFLAGS"
4235
4236 fi
4237 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4238
4239
4240 fi
4241 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4242 # FORTIFY_SOURCE
4243 {
4244 OLDFLAGS="$CFLAGS"
4245 TESTFLAGS="-D_FORTIFY_SOURCE=2"
4246 CFLAGS="$CFLAGS $TESTFLAGS"
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4249
4250 int
4251 main (void)
4252 {
4253
4254 ;
4255 return 0;
4256 }
4257 _ACEOF
4258 if ac_fn_c_try_compile "$LINENO"
4259 then :
4260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5
4261 printf "%s\n" "$as_me: Setting $TESTFLAGS" >&6;}
4262 else $as_nop
4263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not setting $TESTFLAGS" >&5
4264 printf "%s\n" "$as_me: Not setting $TESTFLAGS" >&6;}; CFLAGS="$OLDFLAGS"
4265
4266 fi
4267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4268 }
4269
4270 # Spectre v2 mitigations
4271 {
4272 OLDFLAGS="$CFLAGS"
4273 TESTFLAGS="-mfunction-return=thunk"
4274 CFLAGS="$CFLAGS $TESTFLAGS"
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4277
4278 int
4279 main (void)
4280 {
4281
4282 ;
4283 return 0;
4284 }
4285 _ACEOF
4286 if ac_fn_c_try_compile "$LINENO"
4287 then :
4288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5
4289 printf "%s\n" "$as_me: Setting $TESTFLAGS" >&6;}
4290 else $as_nop
4291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not setting $TESTFLAGS" >&5
4292 printf "%s\n" "$as_me: Not setting $TESTFLAGS" >&6;}; CFLAGS="$OLDFLAGS"
4293
4294 fi
4295 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4296 }
4297 {
4298 OLDFLAGS="$CFLAGS"
4299 TESTFLAGS="-mindirect-branch=thunk"
4300 CFLAGS="$CFLAGS $TESTFLAGS"
4301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302 /* end confdefs.h. */
4303
4304 int
4305 main (void)
4306 {
4307
4308 ;
4309 return 0;
4310 }
4311 _ACEOF
4312 if ac_fn_c_try_compile "$LINENO"
4313 then :
4314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5
4315 printf "%s\n" "$as_me: Setting $TESTFLAGS" >&6;}
4316 else $as_nop
4317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not setting $TESTFLAGS" >&5
4318 printf "%s\n" "$as_me: Not setting $TESTFLAGS" >&6;}; CFLAGS="$OLDFLAGS"
4319
4320 fi
4321 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4322 }
4323
4324 fi
4325
4326 # large file support is useful for scp
4327 # Check whether --enable-largefile was given.
4328 if test ${enable_largefile+y}
4329 then :
4330 enableval=$enable_largefile;
4331 fi
4332
4333 if test "$enable_largefile" != no; then
4334
4335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4336 printf %s "checking for special C compiler options needed for large files... " >&6; }
4337 if test ${ac_cv_sys_largefile_CC+y}
4338 then :
4339 printf %s "(cached) " >&6
4340 else $as_nop
4341 ac_cv_sys_largefile_CC=no
4342 if test "$GCC" != yes; then
4343 ac_save_CC=$CC
4344 while :; do
4345 # IRIX 6.2 and later do not support large files by default,
4346 # so use the C compiler's -n32 option if that helps.
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4349 #include <sys/types.h>
4350 /* Check that off_t can represent 2**63 - 1 correctly.
4351 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4352 since some C++ compilers masquerading as C compilers
4353 incorrectly reject 9223372036854775807. */
4354 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4355 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4356 && LARGE_OFF_T % 2147483647 == 1)
4357 ? 1 : -1];
4358 int
4359 main (void)
4360 {
4361
4362 ;
4363 return 0;
4364 }
4365 _ACEOF
4366 if ac_fn_c_try_compile "$LINENO"
4367 then :
4368 break
4369 fi
4370 rm -f core conftest.err conftest.$ac_objext conftest.beam
4371 CC="$CC -n32"
4372 if ac_fn_c_try_compile "$LINENO"
4373 then :
4374 ac_cv_sys_largefile_CC=' -n32'; break
4375 fi
4376 rm -f core conftest.err conftest.$ac_objext conftest.beam
4377 break
4378 done
4379 CC=$ac_save_CC
4380 rm -f conftest.$ac_ext
4381 fi
4382 fi
4383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4384 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
4385 if test "$ac_cv_sys_largefile_CC" != no; then
4386 CC=$CC$ac_cv_sys_largefile_CC
4387 fi
4388
4389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4390 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4391 if test ${ac_cv_sys_file_offset_bits+y}
4392 then :
4393 printf %s "(cached) " >&6
4394 else $as_nop
4395 while :; do
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4398 #include <sys/types.h>
4399 /* Check that off_t can represent 2**63 - 1 correctly.
4400 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4401 since some C++ compilers masquerading as C compilers
4402 incorrectly reject 9223372036854775807. */
4403 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4404 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4405 && LARGE_OFF_T % 2147483647 == 1)
4406 ? 1 : -1];
4407 int
4408 main (void)
4409 {
4410
4411 ;
4412 return 0;
4413 }
4414 _ACEOF
4415 if ac_fn_c_try_compile "$LINENO"
4416 then :
4417 ac_cv_sys_file_offset_bits=no; break
4418 fi
4419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421 /* end confdefs.h. */
4422 #define _FILE_OFFSET_BITS 64
4423 #include <sys/types.h>
4424 /* Check that off_t can represent 2**63 - 1 correctly.
4425 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4426 since some C++ compilers masquerading as C compilers
4427 incorrectly reject 9223372036854775807. */
4428 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4429 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4430 && LARGE_OFF_T % 2147483647 == 1)
4431 ? 1 : -1];
4432 int
4433 main (void)
4434 {
4435
4436 ;
4437 return 0;
4438 }
4439 _ACEOF
4440 if ac_fn_c_try_compile "$LINENO"
4441 then :
4442 ac_cv_sys_file_offset_bits=64; break
4443 fi
4444 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4445 ac_cv_sys_file_offset_bits=unknown
4446 break
4447 done
4448 fi
4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4450 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
4451 case $ac_cv_sys_file_offset_bits in #(
4452 no | unknown) ;;
4453 *)
4454 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
4455 ;;
4456 esac
4457 rm -rf conftest*
4458 if test $ac_cv_sys_file_offset_bits = unknown; then
4459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4460 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
4461 if test ${ac_cv_sys_large_files+y}
4462 then :
4463 printf %s "(cached) " >&6
4464 else $as_nop
4465 while :; do
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4468 #include <sys/types.h>
4469 /* Check that off_t can represent 2**63 - 1 correctly.
4470 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4471 since some C++ compilers masquerading as C compilers
4472 incorrectly reject 9223372036854775807. */
4473 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4474 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4475 && LARGE_OFF_T % 2147483647 == 1)
4476 ? 1 : -1];
4477 int
4478 main (void)
4479 {
4480
4481 ;
4482 return 0;
4483 }
4484 _ACEOF
4485 if ac_fn_c_try_compile "$LINENO"
4486 then :
4487 ac_cv_sys_large_files=no; break
4488 fi
4489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4492 #define _LARGE_FILES 1
4493 #include <sys/types.h>
4494 /* Check that off_t can represent 2**63 - 1 correctly.
4495 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4496 since some C++ compilers masquerading as C compilers
4497 incorrectly reject 9223372036854775807. */
4498 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4499 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4500 && LARGE_OFF_T % 2147483647 == 1)
4501 ? 1 : -1];
4502 int
4503 main (void)
4504 {
4505
4506 ;
4507 return 0;
4508 }
4509 _ACEOF
4510 if ac_fn_c_try_compile "$LINENO"
4511 then :
4512 ac_cv_sys_large_files=1; break
4513 fi
4514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4515 ac_cv_sys_large_files=unknown
4516 break
4517 done
4518 fi
4519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4520 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
4521 case $ac_cv_sys_large_files in #(
4522 no | unknown) ;;
4523 *)
4524 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
4525 ;;
4526 esac
4527 rm -rf conftest*
4528 fi
4529 fi
4530
4531
4532 # Host specific options
4533 # this isn't a definitive list of hosts, they are just added as required
4534
4535
4536
4537 # Make sure we can run config.sub.
4538 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4539 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4540
4541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4542 printf %s "checking build system type... " >&6; }
4543 if test ${ac_cv_build+y}
4544 then :
4545 printf %s "(cached) " >&6
4546 else $as_nop
4547 ac_build_alias=$build_alias
4548 test "x$ac_build_alias" = x &&
4549 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4550 test "x$ac_build_alias" = x &&
4551 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4552 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4553 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4554
4555 fi
4556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4557 printf "%s\n" "$ac_cv_build" >&6; }
4558 case $ac_cv_build in
4559 *-*-*) ;;
4560 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4561 esac
4562 build=$ac_cv_build
4563 ac_save_IFS=$IFS; IFS='-'
4564 set x $ac_cv_build
4565 shift
4566 build_cpu=$1
4567 build_vendor=$2
4568 shift; shift
4569 # Remember, the first character of IFS is used to create $*,
4570 # except with old shells:
4571 build_os=$*
4572 IFS=$ac_save_IFS
4573 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4574
4575
4576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4577 printf %s "checking host system type... " >&6; }
4578 if test ${ac_cv_host+y}
4579 then :
4580 printf %s "(cached) " >&6
4581 else $as_nop
4582 if test "x$host_alias" = x; then
4583 ac_cv_host=$ac_cv_build
4584 else
4585 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4586 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4587 fi
4588
4589 fi
4590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4591 printf "%s\n" "$ac_cv_host" >&6; }
4592 case $ac_cv_host in
4593 *-*-*) ;;
4594 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4595 esac
4596 host=$ac_cv_host
4597 ac_save_IFS=$IFS; IFS='-'
4598 set x $ac_cv_host
4599 shift
4600 host_cpu=$1
4601 host_vendor=$2
4602 shift; shift
4603 # Remember, the first character of IFS is used to create $*,
4604 # except with old shells:
4605 host_os=$*
4606 IFS=$ac_save_IFS
4607 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4608
4609
4610
4611 case "$host" in
4612
4613 *-*-linux*)
4614 no_ptmx_check=1
4615 ;;
4616
4617 *-*-solaris*)
4618 CFLAGS="$CFLAGS -I/usr/local/include"
4619 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib"
4620 conf_lastlog_location="/var/adm/lastlog"
4621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5
4622 printf %s "checking for obsolete utmp and wtmp in solaris2.x... " >&6; }
4623 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
4624 if test "$sol2ver" -ge 8; then
4625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4626 printf "%s\n" "yes" >&6; }
4627
4628 printf "%s\n" "#define DISABLE_UTMP 1" >>confdefs.h
4629
4630
4631 printf "%s\n" "#define DISABLE_WTMP 1" >>confdefs.h
4632
4633 else
4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635 printf "%s\n" "no" >&6; }
4636 fi
4637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4638 printf %s "checking for socket in -lsocket... " >&6; }
4639 if test ${ac_cv_lib_socket_socket+y}
4640 then :
4641 printf %s "(cached) " >&6
4642 else $as_nop
4643 ac_check_lib_save_LIBS=$LIBS
4644 LIBS="-lsocket $LIBS"
4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646 /* end confdefs.h. */
4647
4648 /* Override any GCC internal prototype to avoid an error.
4649 Use char because int might match the return type of a GCC
4650 builtin and then its argument prototype would still apply. */
4651 char socket ();
4652 int
4653 main (void)
4654 {
4655 return socket ();
4656 ;
4657 return 0;
4658 }
4659 _ACEOF
4660 if ac_fn_c_try_link "$LINENO"
4661 then :
4662 ac_cv_lib_socket_socket=yes
4663 else $as_nop
4664 ac_cv_lib_socket_socket=no
4665 fi
4666 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4667 conftest$ac_exeext conftest.$ac_ext
4668 LIBS=$ac_check_lib_save_LIBS
4669 fi
4670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4671 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
4672 if test "x$ac_cv_lib_socket_socket" = xyes
4673 then :
4674 LIBS="$LIBS -lsocket"
4675 fi
4676
4677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5
4678 printf %s "checking for yp_match in -lnsl... " >&6; }
4679 if test ${ac_cv_lib_nsl_yp_match+y}
4680 then :
4681 printf %s "(cached) " >&6
4682 else $as_nop
4683 ac_check_lib_save_LIBS=$LIBS
4684 LIBS="-lnsl $LIBS"
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4687
4688 /* Override any GCC internal prototype to avoid an error.
4689 Use char because int might match the return type of a GCC
4690 builtin and then its argument prototype would still apply. */
4691 char yp_match ();
4692 int
4693 main (void)
4694 {
4695 return yp_match ();
4696 ;
4697 return 0;
4698 }
4699 _ACEOF
4700 if ac_fn_c_try_link "$LINENO"
4701 then :
4702 ac_cv_lib_nsl_yp_match=yes
4703 else $as_nop
4704 ac_cv_lib_nsl_yp_match=no
4705 fi
4706 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4707 conftest$ac_exeext conftest.$ac_ext
4708 LIBS=$ac_check_lib_save_LIBS
4709 fi
4710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5
4711 printf "%s\n" "$ac_cv_lib_nsl_yp_match" >&6; }
4712 if test "x$ac_cv_lib_nsl_yp_match" = xyes
4713 then :
4714 LIBS="$LIBS -lnsl"
4715 fi
4716
4717 ;;
4718
4719 *-*-aix*)
4720
4721 printf "%s\n" "#define AIX 1" >>confdefs.h
4722
4723 # OpenSSH thinks it's broken. If it isn't, let me know.
4724
4725 printf "%s\n" "#define BROKEN_GETADDRINFO 1" >>confdefs.h
4726
4727 ;;
4728
4729 *-*-hpux*)
4730 LIBS="$LIBS -lsec"
4731 # It's probably broken.
4732
4733 printf "%s\n" "#define BROKEN_GETADDRINFO 1" >>confdefs.h
4734
4735 ;;
4736 *-dec-osf*)
4737
4738 printf "%s\n" "#define BROKEN_GETADDRINFO 1" >>confdefs.h
4739
4740 ;;
4741 esac
4742
4743 if test -n "$ac_tool_prefix"; then
4744 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4745 set dummy ${ac_tool_prefix}ar; ac_word=$2
4746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4747 printf %s "checking for $ac_word... " >&6; }
4748 if test ${ac_cv_prog_AR+y}
4749 then :
4750 printf %s "(cached) " >&6
4751 else $as_nop
4752 if test -n "$AR"; then
4753 ac_cv_prog_AR="$AR" # Let the user override the test.
4754 else
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH
4757 do
4758 IFS=$as_save_IFS
4759 case $as_dir in #(((
4760 '') as_dir=./ ;;
4761 */) ;;
4762 *) as_dir=$as_dir/ ;;
4763 esac
4764 for ac_exec_ext in '' $ac_executable_extensions; do
4765 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4766 ac_cv_prog_AR="${ac_tool_prefix}ar"
4767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4768 break 2
4769 fi
4770 done
4771 done
4772 IFS=$as_save_IFS
4773
4774 fi
4775 fi
4776 AR=$ac_cv_prog_AR
4777 if test -n "$AR"; then
4778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4779 printf "%s\n" "$AR" >&6; }
4780 else
4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782 printf "%s\n" "no" >&6; }
4783 fi
4784
4785
4786 fi
4787 if test -z "$ac_cv_prog_AR"; then
4788 ac_ct_AR=$AR
4789 # Extract the first word of "ar", so it can be a program name with args.
4790 set dummy ar; ac_word=$2
4791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4792 printf %s "checking for $ac_word... " >&6; }
4793 if test ${ac_cv_prog_ac_ct_AR+y}
4794 then :
4795 printf %s "(cached) " >&6
4796 else $as_nop
4797 if test -n "$ac_ct_AR"; then
4798 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4799 else
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4802 do
4803 IFS=$as_save_IFS
4804 case $as_dir in #(((
4805 '') as_dir=./ ;;
4806 */) ;;
4807 *) as_dir=$as_dir/ ;;
4808 esac
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4811 ac_cv_prog_ac_ct_AR="ar"
4812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4813 break 2
4814 fi
4815 done
4816 done
4817 IFS=$as_save_IFS
4818
4819 fi
4820 fi
4821 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4822 if test -n "$ac_ct_AR"; then
4823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4824 printf "%s\n" "$ac_ct_AR" >&6; }
4825 else
4826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827 printf "%s\n" "no" >&6; }
4828 fi
4829
4830 if test "x$ac_ct_AR" = x; then
4831 AR=":"
4832 else
4833 case $cross_compiling:$ac_tool_warned in
4834 yes:)
4835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4836 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4837 ac_tool_warned=yes ;;
4838 esac
4839 AR=$ac_ct_AR
4840 fi
4841 else
4842 AR="$ac_cv_prog_AR"
4843 fi
4844
4845 if test -n "$ac_tool_prefix"; then
4846 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4847 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4849 printf %s "checking for $ac_word... " >&6; }
4850 if test ${ac_cv_prog_RANLIB+y}
4851 then :
4852 printf %s "(cached) " >&6
4853 else $as_nop
4854 if test -n "$RANLIB"; then
4855 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4856 else
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 for as_dir in $PATH
4859 do
4860 IFS=$as_save_IFS
4861 case $as_dir in #(((
4862 '') as_dir=./ ;;
4863 */) ;;
4864 *) as_dir=$as_dir/ ;;
4865 esac
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4868 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4870 break 2
4871 fi
4872 done
4873 done
4874 IFS=$as_save_IFS
4875
4876 fi
4877 fi
4878 RANLIB=$ac_cv_prog_RANLIB
4879 if test -n "$RANLIB"; then
4880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4881 printf "%s\n" "$RANLIB" >&6; }
4882 else
4883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 printf "%s\n" "no" >&6; }
4885 fi
4886
4887
4888 fi
4889 if test -z "$ac_cv_prog_RANLIB"; then
4890 ac_ct_RANLIB=$RANLIB
4891 # Extract the first word of "ranlib", so it can be a program name with args.
4892 set dummy ranlib; ac_word=$2
4893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894 printf %s "checking for $ac_word... " >&6; }
4895 if test ${ac_cv_prog_ac_ct_RANLIB+y}
4896 then :
4897 printf %s "(cached) " >&6
4898 else $as_nop
4899 if test -n "$ac_ct_RANLIB"; then
4900 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4901 else
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4904 do
4905 IFS=$as_save_IFS
4906 case $as_dir in #(((
4907 '') as_dir=./ ;;
4908 */) ;;
4909 *) as_dir=$as_dir/ ;;
4910 esac
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4913 ac_cv_prog_ac_ct_RANLIB="ranlib"
4914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4915 break 2
4916 fi
4917 done
4918 done
4919 IFS=$as_save_IFS
4920
4921 fi
4922 fi
4923 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4924 if test -n "$ac_ct_RANLIB"; then
4925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4926 printf "%s\n" "$ac_ct_RANLIB" >&6; }
4927 else
4928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 printf "%s\n" "no" >&6; }
4930 fi
4931
4932 if test "x$ac_ct_RANLIB" = x; then
4933 RANLIB=":"
4934 else
4935 case $cross_compiling:$ac_tool_warned in
4936 yes:)
4937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4938 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4939 ac_tool_warned=yes ;;
4940 esac
4941 RANLIB=$ac_ct_RANLIB
4942 fi
4943 else
4944 RANLIB="$ac_cv_prog_RANLIB"
4945 fi
4946
4947 if test -n "$ac_tool_prefix"; then
4948 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4949 set dummy ${ac_tool_prefix}strip; ac_word=$2
4950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4951 printf %s "checking for $ac_word... " >&6; }
4952 if test ${ac_cv_prog_STRIP+y}
4953 then :
4954 printf %s "(cached) " >&6
4955 else $as_nop
4956 if test -n "$STRIP"; then
4957 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4958 else
4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960 for as_dir in $PATH
4961 do
4962 IFS=$as_save_IFS
4963 case $as_dir in #(((
4964 '') as_dir=./ ;;
4965 */) ;;
4966 *) as_dir=$as_dir/ ;;
4967 esac
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4970 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4972 break 2
4973 fi
4974 done
4975 done
4976 IFS=$as_save_IFS
4977
4978 fi
4979 fi
4980 STRIP=$ac_cv_prog_STRIP
4981 if test -n "$STRIP"; then
4982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4983 printf "%s\n" "$STRIP" >&6; }
4984 else
4985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986 printf "%s\n" "no" >&6; }
4987 fi
4988
4989
4990 fi
4991 if test -z "$ac_cv_prog_STRIP"; then
4992 ac_ct_STRIP=$STRIP
4993 # Extract the first word of "strip", so it can be a program name with args.
4994 set dummy strip; ac_word=$2
4995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4996 printf %s "checking for $ac_word... " >&6; }
4997 if test ${ac_cv_prog_ac_ct_STRIP+y}
4998 then :
4999 printf %s "(cached) " >&6
5000 else $as_nop
5001 if test -n "$ac_ct_STRIP"; then
5002 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5003 else
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 for as_dir in $PATH
5006 do
5007 IFS=$as_save_IFS
5008 case $as_dir in #(((
5009 '') as_dir=./ ;;
5010 */) ;;
5011 *) as_dir=$as_dir/ ;;
5012 esac
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5015 ac_cv_prog_ac_ct_STRIP="strip"
5016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5017 break 2
5018 fi
5019 done
5020 done
5021 IFS=$as_save_IFS
5022
5023 fi
5024 fi
5025 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5026 if test -n "$ac_ct_STRIP"; then
5027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5028 printf "%s\n" "$ac_ct_STRIP" >&6; }
5029 else
5030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 printf "%s\n" "no" >&6; }
5032 fi
5033
5034 if test "x$ac_ct_STRIP" = x; then
5035 STRIP=":"
5036 else
5037 case $cross_compiling:$ac_tool_warned in
5038 yes:)
5039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5040 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5041 ac_tool_warned=yes ;;
5042 esac
5043 STRIP=$ac_ct_STRIP
5044 fi
5045 else
5046 STRIP="$ac_cv_prog_STRIP"
5047 fi
5048
5049 if test -n "$ac_tool_prefix"; then
5050 # Extract the first word of "${ac_tool_prefix}install", so it can be a program name with args.
5051 set dummy ${ac_tool_prefix}install; ac_word=$2
5052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053 printf %s "checking for $ac_word... " >&6; }
5054 if test ${ac_cv_prog_INSTALL+y}
5055 then :
5056 printf %s "(cached) " >&6
5057 else $as_nop
5058 if test -n "$INSTALL"; then
5059 ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test.
5060 else
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in $PATH
5063 do
5064 IFS=$as_save_IFS
5065 case $as_dir in #(((
5066 '') as_dir=./ ;;
5067 */) ;;
5068 *) as_dir=$as_dir/ ;;
5069 esac
5070 for ac_exec_ext in '' $ac_executable_extensions; do
5071 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5072 ac_cv_prog_INSTALL="${ac_tool_prefix}install"
5073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5074 break 2
5075 fi
5076 done
5077 done
5078 IFS=$as_save_IFS
5079
5080 fi
5081 fi
5082 INSTALL=$ac_cv_prog_INSTALL
5083 if test -n "$INSTALL"; then
5084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5085 printf "%s\n" "$INSTALL" >&6; }
5086 else
5087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088 printf "%s\n" "no" >&6; }
5089 fi
5090
5091
5092 fi
5093 if test -z "$ac_cv_prog_INSTALL"; then
5094 ac_ct_INSTALL=$INSTALL
5095 # Extract the first word of "install", so it can be a program name with args.
5096 set dummy install; ac_word=$2
5097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098 printf %s "checking for $ac_word... " >&6; }
5099 if test ${ac_cv_prog_ac_ct_INSTALL+y}
5100 then :
5101 printf %s "(cached) " >&6
5102 else $as_nop
5103 if test -n "$ac_ct_INSTALL"; then
5104 ac_cv_prog_ac_ct_INSTALL="$ac_ct_INSTALL" # Let the user override the test.
5105 else
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH
5108 do
5109 IFS=$as_save_IFS
5110 case $as_dir in #(((
5111 '') as_dir=./ ;;
5112 */) ;;
5113 *) as_dir=$as_dir/ ;;
5114 esac
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5117 ac_cv_prog_ac_ct_INSTALL="install"
5118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5119 break 2
5120 fi
5121 done
5122 done
5123 IFS=$as_save_IFS
5124
5125 fi
5126 fi
5127 ac_ct_INSTALL=$ac_cv_prog_ac_ct_INSTALL
5128 if test -n "$ac_ct_INSTALL"; then
5129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_INSTALL" >&5
5130 printf "%s\n" "$ac_ct_INSTALL" >&6; }
5131 else
5132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133 printf "%s\n" "no" >&6; }
5134 fi
5135
5136 if test "x$ac_ct_INSTALL" = x; then
5137 INSTALL=":"
5138 else
5139 case $cross_compiling:$ac_tool_warned in
5140 yes:)
5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5142 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5143 ac_tool_warned=yes ;;
5144 esac
5145 INSTALL=$ac_ct_INSTALL
5146 fi
5147 else
5148 INSTALL="$ac_cv_prog_INSTALL"
5149 fi
5150
5151
5152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
5153 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
5154 if test ${ac_cv_c_undeclared_builtin_options+y}
5155 then :
5156 printf %s "(cached) " >&6
5157 else $as_nop
5158 ac_save_CFLAGS=$CFLAGS
5159 ac_cv_c_undeclared_builtin_options='cannot detect'
5160 for ac_arg in '' -fno-builtin; do
5161 CFLAGS="$ac_save_CFLAGS $ac_arg"
5162 # This test program should *not* compile successfully.
5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5164 /* end confdefs.h. */
5165
5166 int
5167 main (void)
5168 {
5169 (void) strchr;
5170 ;
5171 return 0;
5172 }
5173 _ACEOF
5174 if ac_fn_c_try_compile "$LINENO"
5175 then :
5176
5177 else $as_nop
5178 # This test program should compile successfully.
5179 # No library function is consistently available on
5180 # freestanding implementations, so test against a dummy
5181 # declaration. Include always-available headers on the
5182 # off chance that they somehow elicit warnings.
5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h. */
5185 #include <float.h>
5186 #include <limits.h>
5187 #include <stdarg.h>
5188 #include <stddef.h>
5189 extern void ac_decl (int, char *);
5190
5191 int
5192 main (void)
5193 {
5194 (void) ac_decl (0, (char *) 0);
5195 (void) ac_decl;
5196
5197 ;
5198 return 0;
5199 }
5200 _ACEOF
5201 if ac_fn_c_try_compile "$LINENO"
5202 then :
5203 if test x"$ac_arg" = x
5204 then :
5205 ac_cv_c_undeclared_builtin_options='none needed'
5206 else $as_nop
5207 ac_cv_c_undeclared_builtin_options=$ac_arg
5208 fi
5209 break
5210 fi
5211 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5212 fi
5213 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5214 done
5215 CFLAGS=$ac_save_CFLAGS
5216
5217 fi
5218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
5219 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
5220 case $ac_cv_c_undeclared_builtin_options in #(
5221 'cannot detect') :
5222 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5223 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5224 as_fn_error $? "cannot make $CC report undeclared builtins
5225 See \`config.log' for more details" "$LINENO" 5; } ;; #(
5226 'none needed') :
5227 ac_c_undeclared_builtin_options='' ;; #(
5228 *) :
5229 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
5230 esac
5231
5232 ac_header= ac_cache=
5233 for ac_item in $ac_header_c_list
5234 do
5235 if test $ac_cache; then
5236 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5237 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5238 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5239 fi
5240 ac_header= ac_cache=
5241 elif test $ac_header; then
5242 ac_cache=$ac_item
5243 else
5244 ac_header=$ac_item
5245 fi
5246 done
5247
5248
5249
5250
5251
5252
5253
5254
5255 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5256 then :
5257
5258 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5259
5260 fi
5261 ac_fn_check_decl "$LINENO" "__UCLIBC__" "ac_cv_have_decl___UCLIBC__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
5262 if test "x$ac_cv_have_decl___UCLIBC__" = xyes
5263 then :
5264
5265 no_loginfunc_check=1
5266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using uClibc - login() and logout() probably don't work, so we won't use them." >&5
5267 printf "%s\n" "$as_me: Using uClibc - login() and logout() probably don't work, so we won't use them." >&6;}
5268
5269 fi
5270
5271 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
5272 if test "x$ac_cv_func_crypt" = xyes
5273 then :
5274 found_crypt_func=here
5275 fi
5276
5277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
5278 printf %s "checking for crypt in -lcrypt... " >&6; }
5279 if test ${ac_cv_lib_crypt_crypt+y}
5280 then :
5281 printf %s "(cached) " >&6
5282 else $as_nop
5283 ac_check_lib_save_LIBS=$LIBS
5284 LIBS="-lcrypt $LIBS"
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5287
5288 /* Override any GCC internal prototype to avoid an error.
5289 Use char because int might match the return type of a GCC
5290 builtin and then its argument prototype would still apply. */
5291 char crypt ();
5292 int
5293 main (void)
5294 {
5295 return crypt ();
5296 ;
5297 return 0;
5298 }
5299 _ACEOF
5300 if ac_fn_c_try_link "$LINENO"
5301 then :
5302 ac_cv_lib_crypt_crypt=yes
5303 else $as_nop
5304 ac_cv_lib_crypt_crypt=no
5305 fi
5306 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5307 conftest$ac_exeext conftest.$ac_ext
5308 LIBS=$ac_check_lib_save_LIBS
5309 fi
5310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
5311 printf "%s\n" "$ac_cv_lib_crypt_crypt" >&6; }
5312 if test "x$ac_cv_lib_crypt_crypt" = xyes
5313 then :
5314
5315 CRYPTLIB="-lcrypt"
5316 found_crypt_func=here
5317
5318 fi
5319
5320
5321 if test "t$found_crypt_func" = there; then
5322
5323 printf "%s\n" "#define HAVE_CRYPT 1" >>confdefs.h
5324
5325 fi
5326
5327 # Check if zlib is needed
5328
5329 # Check whether --with-zlib was given.
5330 if test ${with_zlib+y}
5331 then :
5332 withval=$with_zlib;
5333 # option is given
5334 if test -d "$withval/lib"; then
5335 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
5336 else
5337 LDFLAGS="-L${withval} ${LDFLAGS}"
5338 fi
5339 if test -d "$withval/include"; then
5340 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
5341 else
5342 CPPFLAGS="-I${withval} ${CPPFLAGS}"
5343 fi
5344
5345
5346 fi
5347
5348
5349 # Check whether --enable-zlib was given.
5350 if test ${enable_zlib+y}
5351 then :
5352 enableval=$enable_zlib;
5353 if test "x$enableval" = "xno"; then
5354
5355 printf "%s\n" "#define DISABLE_ZLIB 1" >>confdefs.h
5356
5357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disabling zlib" >&5
5358 printf "%s\n" "$as_me: Disabling zlib" >&6;}
5359 else
5360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
5361 printf %s "checking for deflate in -lz... " >&6; }
5362 if test ${ac_cv_lib_z_deflate+y}
5363 then :
5364 printf %s "(cached) " >&6
5365 else $as_nop
5366 ac_check_lib_save_LIBS=$LIBS
5367 LIBS="-lz $LIBS"
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h. */
5370
5371 /* Override any GCC internal prototype to avoid an error.
5372 Use char because int might match the return type of a GCC
5373 builtin and then its argument prototype would still apply. */
5374 char deflate ();
5375 int
5376 main (void)
5377 {
5378 return deflate ();
5379 ;
5380 return 0;
5381 }
5382 _ACEOF
5383 if ac_fn_c_try_link "$LINENO"
5384 then :
5385 ac_cv_lib_z_deflate=yes
5386 else $as_nop
5387 ac_cv_lib_z_deflate=no
5388 fi
5389 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5390 conftest$ac_exeext conftest.$ac_ext
5391 LIBS=$ac_check_lib_save_LIBS
5392 fi
5393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
5394 printf "%s\n" "$ac_cv_lib_z_deflate" >&6; }
5395 if test "x$ac_cv_lib_z_deflate" = xyes
5396 then :
5397 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
5398
5399 LIBS="-lz $LIBS"
5400
5401 else $as_nop
5402 as_fn_error $? "*** zlib missing - install first or check config.log ***" "$LINENO" 5
5403 fi
5404
5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Enabling zlib" >&5
5406 printf "%s\n" "$as_me: Enabling zlib" >&6;}
5407 fi
5408
5409 else $as_nop
5410
5411 # if not disabled, check for zlib
5412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
5413 printf %s "checking for deflate in -lz... " >&6; }
5414 if test ${ac_cv_lib_z_deflate+y}
5415 then :
5416 printf %s "(cached) " >&6
5417 else $as_nop
5418 ac_check_lib_save_LIBS=$LIBS
5419 LIBS="-lz $LIBS"
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5422
5423 /* Override any GCC internal prototype to avoid an error.
5424 Use char because int might match the return type of a GCC
5425 builtin and then its argument prototype would still apply. */
5426 char deflate ();
5427 int
5428 main (void)
5429 {
5430 return deflate ();
5431 ;
5432 return 0;
5433 }
5434 _ACEOF
5435 if ac_fn_c_try_link "$LINENO"
5436 then :
5437 ac_cv_lib_z_deflate=yes
5438 else $as_nop
5439 ac_cv_lib_z_deflate=no
5440 fi
5441 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5442 conftest$ac_exeext conftest.$ac_ext
5443 LIBS=$ac_check_lib_save_LIBS
5444 fi
5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
5446 printf "%s\n" "$ac_cv_lib_z_deflate" >&6; }
5447 if test "x$ac_cv_lib_z_deflate" = xyes
5448 then :
5449 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
5450
5451 LIBS="-lz $LIBS"
5452
5453 else $as_nop
5454 as_fn_error $? "*** zlib missing - install first or check config.log ***" "$LINENO" 5
5455 fi
5456
5457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Enabling zlib" >&5
5458 printf "%s\n" "$as_me: Enabling zlib" >&6;}
5459
5460
5461 fi
5462
5463
5464 # Check if pam is needed
5465
5466 # Check whether --with-pam was given.
5467 if test ${with_pam+y}
5468 then :
5469 withval=$with_pam;
5470 # option is given
5471 if test -d "$withval/lib"; then
5472 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
5473 else
5474 LDFLAGS="-L${withval} ${LDFLAGS}"
5475 fi
5476 if test -d "$withval/include"; then
5477 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
5478 else
5479 CPPFLAGS="-I${withval} ${CPPFLAGS}"
5480 fi
5481
5482
5483 fi
5484
5485
5486
5487 # Check whether --enable-pam was given.
5488 if test ${enable_pam+y}
5489 then :
5490 enableval=$enable_pam;
5491 if test "x$enableval" = "xyes"; then
5492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pam_authenticate in -lpam" >&5
5493 printf %s "checking for pam_authenticate in -lpam... " >&6; }
5494 if test ${ac_cv_lib_pam_pam_authenticate+y}
5495 then :
5496 printf %s "(cached) " >&6
5497 else $as_nop
5498 ac_check_lib_save_LIBS=$LIBS
5499 LIBS="-lpam $LIBS"
5500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5501 /* end confdefs.h. */
5502
5503 /* Override any GCC internal prototype to avoid an error.
5504 Use char because int might match the return type of a GCC
5505 builtin and then its argument prototype would still apply. */
5506 char pam_authenticate ();
5507 int
5508 main (void)
5509 {
5510 return pam_authenticate ();
5511 ;
5512 return 0;
5513 }
5514 _ACEOF
5515 if ac_fn_c_try_link "$LINENO"
5516 then :
5517 ac_cv_lib_pam_pam_authenticate=yes
5518 else $as_nop
5519 ac_cv_lib_pam_pam_authenticate=no
5520 fi
5521 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5522 conftest$ac_exeext conftest.$ac_ext
5523 LIBS=$ac_check_lib_save_LIBS
5524 fi
5525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_authenticate" >&5
5526 printf "%s\n" "$ac_cv_lib_pam_pam_authenticate" >&6; }
5527 if test "x$ac_cv_lib_pam_pam_authenticate" = xyes
5528 then :
5529 printf "%s\n" "#define HAVE_LIBPAM 1" >>confdefs.h
5530
5531 LIBS="-lpam $LIBS"
5532
5533 else $as_nop
5534 as_fn_error $? "*** PAM missing - install first or check config.log ***" "$LINENO" 5
5535 fi
5536
5537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Enabling PAM" >&5
5538 printf "%s\n" "$as_me: Enabling PAM" >&6;}
5539 ac_fn_c_check_func "$LINENO" "pam_fail_delay" "ac_cv_func_pam_fail_delay"
5540 if test "x$ac_cv_func_pam_fail_delay" = xyes
5541 then :
5542 printf "%s\n" "#define HAVE_PAM_FAIL_DELAY 1" >>confdefs.h
5543
5544 fi
5545
5546 else
5547
5548 printf "%s\n" "#define DISABLE_PAM 1" >>confdefs.h
5549
5550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disabling PAM" >&5
5551 printf "%s\n" "$as_me: Disabling PAM" >&6;}
5552 fi
5553
5554 else $as_nop
5555
5556 # disable it by default
5557
5558 printf "%s\n" "#define DISABLE_PAM 1" >>confdefs.h
5559
5560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disabling PAM" >&5
5561 printf "%s\n" "$as_me: Disabling PAM" >&6;}
5562
5563
5564 fi
5565
5566
5567 # Check whether --enable-openpty was given.
5568 if test ${enable_openpty+y}
5569 then :
5570 enableval=$enable_openpty;
5571 if test "x$enableval" = "xno"; then
5572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not using openpty" >&5
5573 printf "%s\n" "$as_me: Not using openpty" >&6;}
5574 else
5575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using openpty if available" >&5
5576 printf "%s\n" "$as_me: Using openpty if available" >&6;}
5577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
5578 printf %s "checking for library containing openpty... " >&6; }
5579 if test ${ac_cv_search_openpty+y}
5580 then :
5581 printf %s "(cached) " >&6
5582 else $as_nop
5583 ac_func_search_save_LIBS=$LIBS
5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h. */
5586
5587 /* Override any GCC internal prototype to avoid an error.
5588 Use char because int might match the return type of a GCC
5589 builtin and then its argument prototype would still apply. */
5590 char openpty ();
5591 int
5592 main (void)
5593 {
5594 return openpty ();
5595 ;
5596 return 0;
5597 }
5598 _ACEOF
5599 for ac_lib in '' util
5600 do
5601 if test -z "$ac_lib"; then
5602 ac_res="none required"
5603 else
5604 ac_res=-l$ac_lib
5605 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5606 fi
5607 if ac_fn_c_try_link "$LINENO"
5608 then :
5609 ac_cv_search_openpty=$ac_res
5610 fi
5611 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5612 conftest$ac_exeext
5613 if test ${ac_cv_search_openpty+y}
5614 then :
5615 break
5616 fi
5617 done
5618 if test ${ac_cv_search_openpty+y}
5619 then :
5620
5621 else $as_nop
5622 ac_cv_search_openpty=no
5623 fi
5624 rm conftest.$ac_ext
5625 LIBS=$ac_func_search_save_LIBS
5626 fi
5627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
5628 printf "%s\n" "$ac_cv_search_openpty" >&6; }
5629 ac_res=$ac_cv_search_openpty
5630 if test "$ac_res" != no
5631 then :
5632 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5633 dropbear_cv_func_have_openpty=yes
5634 fi
5635
5636 fi
5637
5638 else $as_nop
5639
5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using openpty if available" >&5
5641 printf "%s\n" "$as_me: Using openpty if available" >&6;}
5642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
5643 printf %s "checking for library containing openpty... " >&6; }
5644 if test ${ac_cv_search_openpty+y}
5645 then :
5646 printf %s "(cached) " >&6
5647 else $as_nop
5648 ac_func_search_save_LIBS=$LIBS
5649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5650 /* end confdefs.h. */
5651
5652 /* Override any GCC internal prototype to avoid an error.
5653 Use char because int might match the return type of a GCC
5654 builtin and then its argument prototype would still apply. */
5655 char openpty ();
5656 int
5657 main (void)
5658 {
5659 return openpty ();
5660 ;
5661 return 0;
5662 }
5663 _ACEOF
5664 for ac_lib in '' util
5665 do
5666 if test -z "$ac_lib"; then
5667 ac_res="none required"
5668 else
5669 ac_res=-l$ac_lib
5670 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5671 fi
5672 if ac_fn_c_try_link "$LINENO"
5673 then :
5674 ac_cv_search_openpty=$ac_res
5675 fi
5676 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5677 conftest$ac_exeext
5678 if test ${ac_cv_search_openpty+y}
5679 then :
5680 break
5681 fi
5682 done
5683 if test ${ac_cv_search_openpty+y}
5684 then :
5685
5686 else $as_nop
5687 ac_cv_search_openpty=no
5688 fi
5689 rm conftest.$ac_ext
5690 LIBS=$ac_func_search_save_LIBS
5691 fi
5692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
5693 printf "%s\n" "$ac_cv_search_openpty" >&6; }
5694 ac_res=$ac_cv_search_openpty
5695 if test "$ac_res" != no
5696 then :
5697 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5698 dropbear_cv_func_have_openpty=yes
5699 fi
5700
5701
5702
5703 fi
5704
5705
5706 if test "x$dropbear_cv_func_have_openpty" = "xyes"; then
5707
5708 printf "%s\n" "#define HAVE_OPENPTY /**/" >>confdefs.h
5709
5710 no_ptc_check=yes
5711 no_ptmx_check=yes
5712 fi
5713
5714 # Check whether --enable-syslog was given.
5715 if test ${enable_syslog+y}
5716 then :
5717 enableval=$enable_syslog;
5718 if test "x$enableval" = "xno"; then
5719
5720 printf "%s\n" "#define DISABLE_SYSLOG 1" >>confdefs.h
5721
5722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disabling syslog" >&5
5723 printf "%s\n" "$as_me: Disabling syslog" >&6;}
5724 else
5725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Enabling syslog" >&5
5726 printf "%s\n" "$as_me: Enabling syslog" >&6;}
5727 fi
5728
5729 else $as_nop
5730
5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Enabling syslog" >&5
5732 printf "%s\n" "$as_me: Enabling syslog" >&6;}
5733
5734
5735 fi
5736
5737
5738 # Check whether --enable-shadow was given.
5739 if test ${enable_shadow+y}
5740 then :
5741 enableval=$enable_shadow;
5742 if test "x$enableval" = "xno"; then
5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not using shadow passwords" >&5
5744 printf "%s\n" "$as_me: Not using shadow passwords" >&6;}
5745 else
5746 ac_fn_c_check_header_compile "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
5747 if test "x$ac_cv_header_shadow_h" = xyes
5748 then :
5749 printf "%s\n" "#define HAVE_SHADOW_H 1" >>confdefs.h
5750
5751 fi
5752
5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using shadow passwords if available" >&5
5754 printf "%s\n" "$as_me: Using shadow passwords if available" >&6;}
5755 fi
5756
5757 else $as_nop
5758
5759 ac_fn_c_check_header_compile "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
5760 if test "x$ac_cv_header_shadow_h" = xyes
5761 then :
5762 printf "%s\n" "#define HAVE_SHADOW_H 1" >>confdefs.h
5763
5764 fi
5765
5766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using shadow passwords if available" >&5
5767 printf "%s\n" "$as_me: Using shadow passwords if available" >&6;}
5768
5769
5770 fi
5771
5772
5773 # Check whether --enable-plugin was given.
5774 if test ${enable_plugin+y}
5775 then :
5776 enableval=$enable_plugin;
5777
5778 printf "%s\n" "#define DROPBEAR_PLUGIN 1" >>confdefs.h
5779
5780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Enabling support for External Public Key Authentication" >&5
5781 printf "%s\n" "$as_me: Enabling support for External Public Key Authentication" >&6;}
5782 DROPBEAR_PLUGIN=1
5783
5784 else $as_nop
5785
5786
5787 printf "%s\n" "#define DROPBEAR_PLUGIN 0" >>confdefs.h
5788
5789 DROPBEAR_PLUGIN=0
5790
5791
5792
5793 fi
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803 # Check whether --enable-fuzz was given.
5804 if test ${enable_fuzz+y}
5805 then :
5806 enableval=$enable_fuzz;
5807 if test "x$enableval" = "xyes"; then
5808
5809 printf "%s\n" "#define DROPBEAR_FUZZ 1" >>confdefs.h
5810
5811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Enabling fuzzing" >&5
5812 printf "%s\n" "$as_me: Enabling fuzzing" >&6;}
5813 DROPBEAR_FUZZ=1
5814 # libfuzzer needs linking with c++ libraries
5815 ac_ext=cpp
5816 ac_cpp='$CXXCPP $CPPFLAGS'
5817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5820 if test -z "$CXX"; then
5821 if test -n "$CCC"; then
5822 CXX=$CCC
5823 else
5824 if test -n "$ac_tool_prefix"; then
5825 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5826 do
5827 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5830 printf %s "checking for $ac_word... " >&6; }
5831 if test ${ac_cv_prog_CXX+y}
5832 then :
5833 printf %s "(cached) " >&6
5834 else $as_nop
5835 if test -n "$CXX"; then
5836 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5837 else
5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 for as_dir in $PATH
5840 do
5841 IFS=$as_save_IFS
5842 case $as_dir in #(((
5843 '') as_dir=./ ;;
5844 */) ;;
5845 *) as_dir=$as_dir/ ;;
5846 esac
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5849 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5851 break 2
5852 fi
5853 done
5854 done
5855 IFS=$as_save_IFS
5856
5857 fi
5858 fi
5859 CXX=$ac_cv_prog_CXX
5860 if test -n "$CXX"; then
5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5862 printf "%s\n" "$CXX" >&6; }
5863 else
5864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865 printf "%s\n" "no" >&6; }
5866 fi
5867
5868
5869 test -n "$CXX" && break
5870 done
5871 fi
5872 if test -z "$CXX"; then
5873 ac_ct_CXX=$CXX
5874 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5875 do
5876 # Extract the first word of "$ac_prog", so it can be a program name with args.
5877 set dummy $ac_prog; ac_word=$2
5878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5879 printf %s "checking for $ac_word... " >&6; }
5880 if test ${ac_cv_prog_ac_ct_CXX+y}
5881 then :
5882 printf %s "(cached) " >&6
5883 else $as_nop
5884 if test -n "$ac_ct_CXX"; then
5885 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5886 else
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5889 do
5890 IFS=$as_save_IFS
5891 case $as_dir in #(((
5892 '') as_dir=./ ;;
5893 */) ;;
5894 *) as_dir=$as_dir/ ;;
5895 esac
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5898 ac_cv_prog_ac_ct_CXX="$ac_prog"
5899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5900 break 2
5901 fi
5902 done
5903 done
5904 IFS=$as_save_IFS
5905
5906 fi
5907 fi
5908 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5909 if test -n "$ac_ct_CXX"; then
5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5911 printf "%s\n" "$ac_ct_CXX" >&6; }
5912 else
5913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5914 printf "%s\n" "no" >&6; }
5915 fi
5916
5917
5918 test -n "$ac_ct_CXX" && break
5919 done
5920
5921 if test "x$ac_ct_CXX" = x; then
5922 CXX="g++"
5923 else
5924 case $cross_compiling:$ac_tool_warned in
5925 yes:)
5926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5927 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5928 ac_tool_warned=yes ;;
5929 esac
5930 CXX=$ac_ct_CXX
5931 fi
5932 fi
5933
5934 fi
5935 fi
5936 # Provide some information about the compiler.
5937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5938 set X $ac_compile
5939 ac_compiler=$2
5940 for ac_option in --version -v -V -qversion; do
5941 { { ac_try="$ac_compiler $ac_option >&5"
5942 case "(($ac_try" in
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5945 esac
5946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5947 printf "%s\n" "$ac_try_echo"; } >&5
5948 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5949 ac_status=$?
5950 if test -s conftest.err; then
5951 sed '10a\
5952 ... rest of stderr output deleted ...
5953 10q' conftest.err >conftest.er1
5954 cat conftest.er1 >&5
5955 fi
5956 rm -f conftest.er1 conftest.err
5957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5958 test $ac_status = 0; }
5959 done
5960
5961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
5962 printf %s "checking whether the compiler supports GNU C++... " >&6; }
5963 if test ${ac_cv_cxx_compiler_gnu+y}
5964 then :
5965 printf %s "(cached) " >&6
5966 else $as_nop
5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968 /* end confdefs.h. */
5969
5970 int
5971 main (void)
5972 {
5973 #ifndef __GNUC__
5974 choke me
5975 #endif
5976
5977 ;
5978 return 0;
5979 }
5980 _ACEOF
5981 if ac_fn_cxx_try_compile "$LINENO"
5982 then :
5983 ac_compiler_gnu=yes
5984 else $as_nop
5985 ac_compiler_gnu=no
5986 fi
5987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5988 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5989
5990 fi
5991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5992 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
5993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5994
5995 if test $ac_compiler_gnu = yes; then
5996 GXX=yes
5997 else
5998 GXX=
5999 fi
6000 ac_test_CXXFLAGS=${CXXFLAGS+y}
6001 ac_save_CXXFLAGS=$CXXFLAGS
6002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6003 printf %s "checking whether $CXX accepts -g... " >&6; }
6004 if test ${ac_cv_prog_cxx_g+y}
6005 then :
6006 printf %s "(cached) " >&6
6007 else $as_nop
6008 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6009 ac_cxx_werror_flag=yes
6010 ac_cv_prog_cxx_g=no
6011 CXXFLAGS="-g"
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6014
6015 int
6016 main (void)
6017 {
6018
6019 ;
6020 return 0;
6021 }
6022 _ACEOF
6023 if ac_fn_cxx_try_compile "$LINENO"
6024 then :
6025 ac_cv_prog_cxx_g=yes
6026 else $as_nop
6027 CXXFLAGS=""
6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h. */
6030
6031 int
6032 main (void)
6033 {
6034
6035 ;
6036 return 0;
6037 }
6038 _ACEOF
6039 if ac_fn_cxx_try_compile "$LINENO"
6040 then :
6041
6042 else $as_nop
6043 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6044 CXXFLAGS="-g"
6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046 /* end confdefs.h. */
6047
6048 int
6049 main (void)
6050 {
6051
6052 ;
6053 return 0;
6054 }
6055 _ACEOF
6056 if ac_fn_cxx_try_compile "$LINENO"
6057 then :
6058 ac_cv_prog_cxx_g=yes
6059 fi
6060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6061 fi
6062 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6063 fi
6064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6065 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6066 fi
6067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6068 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
6069 if test $ac_test_CXXFLAGS; then
6070 CXXFLAGS=$ac_save_CXXFLAGS
6071 elif test $ac_cv_prog_cxx_g = yes; then
6072 if test "$GXX" = yes; then
6073 CXXFLAGS="-g -O2"
6074 else
6075 CXXFLAGS="-g"
6076 fi
6077 else
6078 if test "$GXX" = yes; then
6079 CXXFLAGS="-O2"
6080 else
6081 CXXFLAGS=
6082 fi
6083 fi
6084 ac_prog_cxx_stdcxx=no
6085 if test x$ac_prog_cxx_stdcxx = xno
6086 then :
6087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
6088 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
6089 if test ${ac_cv_prog_cxx_11+y}
6090 then :
6091 printf %s "(cached) " >&6
6092 else $as_nop
6093 ac_cv_prog_cxx_11=no
6094 ac_save_CXX=$CXX
6095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6096 /* end confdefs.h. */
6097 $ac_cxx_conftest_cxx11_program
6098 _ACEOF
6099 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
6100 do
6101 CXX="$ac_save_CXX $ac_arg"
6102 if ac_fn_cxx_try_compile "$LINENO"
6103 then :
6104 ac_cv_prog_cxx_cxx11=$ac_arg
6105 fi
6106 rm -f core conftest.err conftest.$ac_objext conftest.beam
6107 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
6108 done
6109 rm -f conftest.$ac_ext
6110 CXX=$ac_save_CXX
6111 fi
6112
6113 if test "x$ac_cv_prog_cxx_cxx11" = xno
6114 then :
6115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6116 printf "%s\n" "unsupported" >&6; }
6117 else $as_nop
6118 if test "x$ac_cv_prog_cxx_cxx11" = x
6119 then :
6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6121 printf "%s\n" "none needed" >&6; }
6122 else $as_nop
6123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
6124 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
6125 CXX="$CXX $ac_cv_prog_cxx_cxx11"
6126 fi
6127 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
6128 ac_prog_cxx_stdcxx=cxx11
6129 fi
6130 fi
6131 if test x$ac_prog_cxx_stdcxx = xno
6132 then :
6133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
6134 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
6135 if test ${ac_cv_prog_cxx_98+y}
6136 then :
6137 printf %s "(cached) " >&6
6138 else $as_nop
6139 ac_cv_prog_cxx_98=no
6140 ac_save_CXX=$CXX
6141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142 /* end confdefs.h. */
6143 $ac_cxx_conftest_cxx98_program
6144 _ACEOF
6145 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
6146 do
6147 CXX="$ac_save_CXX $ac_arg"
6148 if ac_fn_cxx_try_compile "$LINENO"
6149 then :
6150 ac_cv_prog_cxx_cxx98=$ac_arg
6151 fi
6152 rm -f core conftest.err conftest.$ac_objext conftest.beam
6153 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
6154 done
6155 rm -f conftest.$ac_ext
6156 CXX=$ac_save_CXX
6157 fi
6158
6159 if test "x$ac_cv_prog_cxx_cxx98" = xno
6160 then :
6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6162 printf "%s\n" "unsupported" >&6; }
6163 else $as_nop
6164 if test "x$ac_cv_prog_cxx_cxx98" = x
6165 then :
6166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6167 printf "%s\n" "none needed" >&6; }
6168 else $as_nop
6169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
6170 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
6171 CXX="$CXX $ac_cv_prog_cxx_cxx98"
6172 fi
6173 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
6174 ac_prog_cxx_stdcxx=cxx98
6175 fi
6176 fi
6177
6178 ac_ext=c
6179 ac_cpp='$CPP $CPPFLAGS'
6180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6183
6184 mkdir -pv fuzz
6185 else
6186
6187 printf "%s\n" "#define DROPBEAR_FUZZ 0" >>confdefs.h
6188
6189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disabling fuzzing" >&5
6190 printf "%s\n" "$as_me: Disabling fuzzing" >&6;}
6191 DROPBEAR_FUZZ=0
6192 fi
6193
6194 else $as_nop
6195
6196
6197 printf "%s\n" "#define DROPBEAR_FUZZ 0" >>confdefs.h
6198
6199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disabling fuzzing" >&5
6200 printf "%s\n" "$as_me: Disabling fuzzing" >&6;}
6201 DROPBEAR_FUZZ=0
6202
6203
6204
6205 fi
6206
6207
6208
6209
6210 # Checks for header files.
6211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6212 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6213 if test ${ac_cv_header_sys_wait_h+y}
6214 then :
6215 printf %s "(cached) " >&6
6216 else $as_nop
6217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6218 /* end confdefs.h. */
6219 #include <sys/types.h>
6220 #include <sys/wait.h>
6221 #ifndef WEXITSTATUS
6222 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6223 #endif
6224 #ifndef WIFEXITED
6225 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6226 #endif
6227
6228 int
6229 main (void)
6230 {
6231 int s;
6232 wait (&s);
6233 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6234 ;
6235 return 0;
6236 }
6237 _ACEOF
6238 if ac_fn_c_try_compile "$LINENO"
6239 then :
6240 ac_cv_header_sys_wait_h=yes
6241 else $as_nop
6242 ac_cv_header_sys_wait_h=no
6243 fi
6244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6245 fi
6246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6247 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
6248 if test $ac_cv_header_sys_wait_h = yes; then
6249
6250 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6251
6252 fi
6253
6254 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
6255 if test "x$ac_cv_header_netinet_in_h" = xyes
6256 then :
6257 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
6258
6259 fi
6260 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
6261 if test "x$ac_cv_header_netinet_tcp_h" = xyes
6262 then :
6263 printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
6264
6265 fi
6266 ac_fn_c_check_header_compile "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
6267 if test "x$ac_cv_header_crypt_h" = xyes
6268 then :
6269 printf "%s\n" "#define HAVE_CRYPT_H 1" >>confdefs.h
6270
6271 fi
6272 ac_fn_c_check_header_compile "$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default"
6273 if test "x$ac_cv_header_pty_h" = xyes
6274 then :
6275 printf "%s\n" "#define HAVE_PTY_H 1" >>confdefs.h
6276
6277 fi
6278 ac_fn_c_check_header_compile "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
6279 if test "x$ac_cv_header_libutil_h" = xyes
6280 then :
6281 printf "%s\n" "#define HAVE_LIBUTIL_H 1" >>confdefs.h
6282
6283 fi
6284 ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
6285 if test "x$ac_cv_header_libgen_h" = xyes
6286 then :
6287 printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
6288
6289 fi
6290 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
6291 if test "x$ac_cv_header_inttypes_h" = xyes
6292 then :
6293 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
6294
6295 fi
6296 ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default"
6297 if test "x$ac_cv_header_stropts_h" = xyes
6298 then :
6299 printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h
6300
6301 fi
6302 ac_fn_c_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
6303 if test "x$ac_cv_header_utmp_h" = xyes
6304 then :
6305 printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h
6306
6307 fi
6308 ac_fn_c_check_header_compile "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
6309 if test "x$ac_cv_header_utmpx_h" = xyes
6310 then :
6311 printf "%s\n" "#define HAVE_UTMPX_H 1" >>confdefs.h
6312
6313 fi
6314 ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default"
6315 if test "x$ac_cv_header_lastlog_h" = xyes
6316 then :
6317 printf "%s\n" "#define HAVE_LASTLOG_H 1" >>confdefs.h
6318
6319 fi
6320 ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
6321 if test "x$ac_cv_header_paths_h" = xyes
6322 then :
6323 printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
6324
6325 fi
6326 ac_fn_c_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default"
6327 if test "x$ac_cv_header_util_h" = xyes
6328 then :
6329 printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h
6330
6331 fi
6332 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
6333 if test "x$ac_cv_header_netdb_h" = xyes
6334 then :
6335 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
6336
6337 fi
6338 ac_fn_c_check_header_compile "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
6339 if test "x$ac_cv_header_security_pam_appl_h" = xyes
6340 then :
6341 printf "%s\n" "#define HAVE_SECURITY_PAM_APPL_H 1" >>confdefs.h
6342
6343 fi
6344 ac_fn_c_check_header_compile "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
6345 if test "x$ac_cv_header_pam_pam_appl_h" = xyes
6346 then :
6347 printf "%s\n" "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
6348
6349 fi
6350 ac_fn_c_check_header_compile "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default"
6351 if test "x$ac_cv_header_netinet_in_systm_h" = xyes
6352 then :
6353 printf "%s\n" "#define HAVE_NETINET_IN_SYSTM_H 1" >>confdefs.h
6354
6355 fi
6356 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
6357 if test "x$ac_cv_header_sys_uio_h" = xyes
6358 then :
6359 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
6360
6361 fi
6362 ac_fn_c_check_header_compile "$LINENO" "linux/pkt_sched.h" "ac_cv_header_linux_pkt_sched_h" "$ac_includes_default"
6363 if test "x$ac_cv_header_linux_pkt_sched_h" = xyes
6364 then :
6365 printf "%s\n" "#define HAVE_LINUX_PKT_SCHED_H 1" >>confdefs.h
6366
6367 fi
6368 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
6369 if test "x$ac_cv_header_sys_random_h" = xyes
6370 then :
6371 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
6372
6373 fi
6374
6375
6376 # Checks for typedefs, structures, and compiler characteristics.
6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6378 printf %s "checking for an ANSI C-conforming const... " >&6; }
6379 if test ${ac_cv_c_const+y}
6380 then :
6381 printf %s "(cached) " >&6
6382 else $as_nop
6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h. */
6385
6386 int
6387 main (void)
6388 {
6389
6390 #ifndef __cplusplus
6391 /* Ultrix mips cc rejects this sort of thing. */
6392 typedef int charset[2];
6393 const charset cs = { 0, 0 };
6394 /* SunOS 4.1.1 cc rejects this. */
6395 char const *const *pcpcc;
6396 char **ppc;
6397 /* NEC SVR4.0.2 mips cc rejects this. */
6398 struct point {int x, y;};
6399 static struct point const zero = {0,0};
6400 /* IBM XL C 1.02.0.0 rejects this.
6401 It does not let you subtract one const X* pointer from another in
6402 an arm of an if-expression whose if-part is not a constant
6403 expression */
6404 const char *g = "string";
6405 pcpcc = &g + (g ? g-g : 0);
6406 /* HPUX 7.0 cc rejects these. */
6407 ++pcpcc;
6408 ppc = (char**) pcpcc;
6409 pcpcc = (char const *const *) ppc;
6410 { /* SCO 3.2v4 cc rejects this sort of thing. */
6411 char tx;
6412 char *t = &tx;
6413 char const *s = 0 ? (char *) 0 : (char const *) 0;
6414
6415 *t++ = 0;
6416 if (s) return 0;
6417 }
6418 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6419 int x[] = {25, 17};
6420 const int *foo = &x[0];
6421 ++foo;
6422 }
6423 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6424 typedef const int *iptr;
6425 iptr p = 0;
6426 ++p;
6427 }
6428 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
6429 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6430 struct s { int j; const int *ap[3]; } bx;
6431 struct s *b = &bx; b->j = 5;
6432 }
6433 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6434 const int foo = 10;
6435 if (!foo) return 0;
6436 }
6437 return !cs[0] && !zero.x;
6438 #endif
6439
6440 ;
6441 return 0;
6442 }
6443 _ACEOF
6444 if ac_fn_c_try_compile "$LINENO"
6445 then :
6446 ac_cv_c_const=yes
6447 else $as_nop
6448 ac_cv_c_const=no
6449 fi
6450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6451 fi
6452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6453 printf "%s\n" "$ac_cv_c_const" >&6; }
6454 if test $ac_cv_c_const = no; then
6455
6456 printf "%s\n" "#define const /**/" >>confdefs.h
6457
6458 fi
6459
6460 ac_ext=c
6461 ac_cpp='$CPP $CPPFLAGS'
6462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6466 printf %s "checking how to run the C preprocessor... " >&6; }
6467 # On Suns, sometimes $CPP names a directory.
6468 if test -n "$CPP" && test -d "$CPP"; then
6469 CPP=
6470 fi
6471 if test -z "$CPP"; then
6472 if test ${ac_cv_prog_CPP+y}
6473 then :
6474 printf %s "(cached) " >&6
6475 else $as_nop
6476 # Double quotes because $CC needs to be expanded
6477 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6478 do
6479 ac_preproc_ok=false
6480 for ac_c_preproc_warn_flag in '' yes
6481 do
6482 # Use a header file that comes with gcc, so configuring glibc
6483 # with a fresh cross-compiler works.
6484 # On the NeXT, cc -E runs the code through the compiler's parser,
6485 # not just through cpp. "Syntax error" is here to catch this case.
6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6487 /* end confdefs.h. */
6488 #include <limits.h>
6489 Syntax error
6490 _ACEOF
6491 if ac_fn_c_try_cpp "$LINENO"
6492 then :
6493
6494 else $as_nop
6495 # Broken: fails on valid input.
6496 continue
6497 fi
6498 rm -f conftest.err conftest.i conftest.$ac_ext
6499
6500 # OK, works on sane cases. Now check whether nonexistent headers
6501 # can be detected and how.
6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h. */
6504 #include <ac_nonexistent.h>
6505 _ACEOF
6506 if ac_fn_c_try_cpp "$LINENO"
6507 then :
6508 # Broken: success on invalid input.
6509 continue
6510 else $as_nop
6511 # Passes both tests.
6512 ac_preproc_ok=:
6513 break
6514 fi
6515 rm -f conftest.err conftest.i conftest.$ac_ext
6516
6517 done
6518 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6519 rm -f conftest.i conftest.err conftest.$ac_ext
6520 if $ac_preproc_ok
6521 then :
6522 break
6523 fi
6524
6525 done
6526 ac_cv_prog_CPP=$CPP
6527
6528 fi
6529 CPP=$ac_cv_prog_CPP
6530 else
6531 ac_cv_prog_CPP=$CPP
6532 fi
6533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6534 printf "%s\n" "$CPP" >&6; }
6535 ac_preproc_ok=false
6536 for ac_c_preproc_warn_flag in '' yes
6537 do
6538 # Use a header file that comes with gcc, so configuring glibc
6539 # with a fresh cross-compiler works.
6540 # On the NeXT, cc -E runs the code through the compiler's parser,
6541 # not just through cpp. "Syntax error" is here to catch this case.
6542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6543 /* end confdefs.h. */
6544 #include <limits.h>
6545 Syntax error
6546 _ACEOF
6547 if ac_fn_c_try_cpp "$LINENO"
6548 then :
6549
6550 else $as_nop
6551 # Broken: fails on valid input.
6552 continue
6553 fi
6554 rm -f conftest.err conftest.i conftest.$ac_ext
6555
6556 # OK, works on sane cases. Now check whether nonexistent headers
6557 # can be detected and how.
6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559 /* end confdefs.h. */
6560 #include <ac_nonexistent.h>
6561 _ACEOF
6562 if ac_fn_c_try_cpp "$LINENO"
6563 then :
6564 # Broken: success on invalid input.
6565 continue
6566 else $as_nop
6567 # Passes both tests.
6568 ac_preproc_ok=:
6569 break
6570 fi
6571 rm -f conftest.err conftest.i conftest.$ac_ext
6572
6573 done
6574 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6575 rm -f conftest.i conftest.err conftest.$ac_ext
6576 if $ac_preproc_ok
6577 then :
6578
6579 else $as_nop
6580 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6581 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6582 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6583 See \`config.log' for more details" "$LINENO" 5; }
6584 fi
6585
6586 ac_ext=c
6587 ac_cpp='$CPP $CPPFLAGS'
6588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6591
6592
6593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6594 printf %s "checking for grep that handles long lines and -e... " >&6; }
6595 if test ${ac_cv_path_GREP+y}
6596 then :
6597 printf %s "(cached) " >&6
6598 else $as_nop
6599 if test -z "$GREP"; then
6600 ac_path_GREP_found=false
6601 # Loop through the user's path and test for each of PROGNAME-LIST
6602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6604 do
6605 IFS=$as_save_IFS
6606 case $as_dir in #(((
6607 '') as_dir=./ ;;
6608 */) ;;
6609 *) as_dir=$as_dir/ ;;
6610 esac
6611 for ac_prog in grep ggrep
6612 do
6613 for ac_exec_ext in '' $ac_executable_extensions; do
6614 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6615 as_fn_executable_p "$ac_path_GREP" || continue
6616 # Check for GNU ac_path_GREP and select it if it is found.
6617 # Check for GNU $ac_path_GREP
6618 case `"$ac_path_GREP" --version 2>&1` in
6619 *GNU*)
6620 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6621 *)
6622 ac_count=0
6623 printf %s 0123456789 >"conftest.in"
6624 while :
6625 do
6626 cat "conftest.in" "conftest.in" >"conftest.tmp"
6627 mv "conftest.tmp" "conftest.in"
6628 cp "conftest.in" "conftest.nl"
6629 printf "%s\n" 'GREP' >> "conftest.nl"
6630 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6631 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6632 as_fn_arith $ac_count + 1 && ac_count=$as_val
6633 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6634 # Best one so far, save it but keep looking for a better one
6635 ac_cv_path_GREP="$ac_path_GREP"
6636 ac_path_GREP_max=$ac_count
6637 fi
6638 # 10*(2^10) chars as input seems more than enough
6639 test $ac_count -gt 10 && break
6640 done
6641 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6642 esac
6643
6644 $ac_path_GREP_found && break 3
6645 done
6646 done
6647 done
6648 IFS=$as_save_IFS
6649 if test -z "$ac_cv_path_GREP"; then
6650 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6651 fi
6652 else
6653 ac_cv_path_GREP=$GREP
6654 fi
6655
6656 fi
6657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6658 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6659 GREP="$ac_cv_path_GREP"
6660
6661
6662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6663 printf %s "checking for egrep... " >&6; }
6664 if test ${ac_cv_path_EGREP+y}
6665 then :
6666 printf %s "(cached) " >&6
6667 else $as_nop
6668 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6669 then ac_cv_path_EGREP="$GREP -E"
6670 else
6671 if test -z "$EGREP"; then
6672 ac_path_EGREP_found=false
6673 # Loop through the user's path and test for each of PROGNAME-LIST
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6676 do
6677 IFS=$as_save_IFS
6678 case $as_dir in #(((
6679 '') as_dir=./ ;;
6680 */) ;;
6681 *) as_dir=$as_dir/ ;;
6682 esac
6683 for ac_prog in egrep
6684 do
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6687 as_fn_executable_p "$ac_path_EGREP" || continue
6688 # Check for GNU ac_path_EGREP and select it if it is found.
6689 # Check for GNU $ac_path_EGREP
6690 case `"$ac_path_EGREP" --version 2>&1` in
6691 *GNU*)
6692 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6693 *)
6694 ac_count=0
6695 printf %s 0123456789 >"conftest.in"
6696 while :
6697 do
6698 cat "conftest.in" "conftest.in" >"conftest.tmp"
6699 mv "conftest.tmp" "conftest.in"
6700 cp "conftest.in" "conftest.nl"
6701 printf "%s\n" 'EGREP' >> "conftest.nl"
6702 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6703 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6704 as_fn_arith $ac_count + 1 && ac_count=$as_val
6705 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6706 # Best one so far, save it but keep looking for a better one
6707 ac_cv_path_EGREP="$ac_path_EGREP"
6708 ac_path_EGREP_max=$ac_count
6709 fi
6710 # 10*(2^10) chars as input seems more than enough
6711 test $ac_count -gt 10 && break
6712 done
6713 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6714 esac
6715
6716 $ac_path_EGREP_found && break 3
6717 done
6718 done
6719 done
6720 IFS=$as_save_IFS
6721 if test -z "$ac_cv_path_EGREP"; then
6722 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6723 fi
6724 else
6725 ac_cv_path_EGREP=$EGREP
6726 fi
6727
6728 fi
6729 fi
6730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6731 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6732 EGREP="$ac_cv_path_EGREP"
6733
6734
6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6736 printf %s "checking for uid_t in sys/types.h... " >&6; }
6737 if test ${ac_cv_type_uid_t+y}
6738 then :
6739 printf %s "(cached) " >&6
6740 else $as_nop
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h. */
6743 #include <sys/types.h>
6744
6745 _ACEOF
6746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6747 $EGREP "uid_t" >/dev/null 2>&1
6748 then :
6749 ac_cv_type_uid_t=yes
6750 else $as_nop
6751 ac_cv_type_uid_t=no
6752 fi
6753 rm -rf conftest*
6754
6755 fi
6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6757 printf "%s\n" "$ac_cv_type_uid_t" >&6; }
6758 if test $ac_cv_type_uid_t = no; then
6759
6760 printf "%s\n" "#define uid_t int" >>confdefs.h
6761
6762
6763 printf "%s\n" "#define gid_t int" >>confdefs.h
6764
6765 fi
6766
6767 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6768 if test "x$ac_cv_type_mode_t" = xyes
6769 then :
6770
6771 else $as_nop
6772
6773 printf "%s\n" "#define mode_t int" >>confdefs.h
6774
6775 fi
6776
6777
6778 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
6779 "
6780 if test "x$ac_cv_type_pid_t" = xyes
6781 then :
6782
6783 else $as_nop
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6786
6787 #if defined _WIN64 && !defined __CYGWIN__
6788 LLP64
6789 #endif
6790
6791 int
6792 main (void)
6793 {
6794
6795 ;
6796 return 0;
6797 }
6798
6799 _ACEOF
6800 if ac_fn_c_try_compile "$LINENO"
6801 then :
6802 ac_pid_type='int'
6803 else $as_nop
6804 ac_pid_type='__int64'
6805 fi
6806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6807
6808 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
6809
6810
6811 fi
6812
6813
6814 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6815 if test "x$ac_cv_type_size_t" = xyes
6816 then :
6817
6818 else $as_nop
6819
6820 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
6821
6822 fi
6823
6824
6825 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
6826 if test "x$ac_cv_type_uint8_t" = xyes
6827 then :
6828
6829 printf "%s\n" "#define HAVE_UINT8_T 1" >>confdefs.h
6830
6831
6832 fi
6833 ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
6834 if test "x$ac_cv_type_u_int8_t" = xyes
6835 then :
6836
6837 printf "%s\n" "#define HAVE_U_INT8_T 1" >>confdefs.h
6838
6839
6840 fi
6841 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
6842 if test "x$ac_cv_type_uint16_t" = xyes
6843 then :
6844
6845 printf "%s\n" "#define HAVE_UINT16_T 1" >>confdefs.h
6846
6847
6848 fi
6849 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
6850 if test "x$ac_cv_type_u_int16_t" = xyes
6851 then :
6852
6853 printf "%s\n" "#define HAVE_U_INT16_T 1" >>confdefs.h
6854
6855
6856 fi
6857 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
6858 if test "x$ac_cv_type_uint32_t" = xyes
6859 then :
6860
6861 printf "%s\n" "#define HAVE_UINT32_T 1" >>confdefs.h
6862
6863
6864 fi
6865 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
6866 if test "x$ac_cv_type_u_int32_t" = xyes
6867 then :
6868
6869 printf "%s\n" "#define HAVE_U_INT32_T 1" >>confdefs.h
6870
6871
6872 fi
6873
6874 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "$ac_includes_default"
6875 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
6876 then :
6877
6878 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
6879
6880
6881 fi
6882
6883 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
6884 #include <sys/socket.h>
6885 "
6886 if test "x$ac_cv_type_socklen_t" = xyes
6887 then :
6888
6889 else $as_nop
6890
6891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
6892 printf %s "checking for socklen_t equivalent... " >&6; }
6893 if test ${curl_cv_socklen_t_equiv+y}
6894 then :
6895 printf %s "(cached) " >&6
6896 else $as_nop
6897
6898 # Systems have either "struct sockaddr *" or
6899 # "void *" as the second argument to getpeername
6900 curl_cv_socklen_t_equiv=
6901 for arg2 in "struct sockaddr" void; do
6902 for t in int size_t unsigned long "unsigned long"; do
6903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h. */
6905
6906 #include <sys/types.h>
6907 #include <sys/socket.h>
6908
6909 int getpeername (int, $arg2 *, $t *);
6910
6911 int
6912 main (void)
6913 {
6914
6915 $t len;
6916 getpeername(0,0,&len);
6917
6918 ;
6919 return 0;
6920 }
6921 _ACEOF
6922 if ac_fn_c_try_compile "$LINENO"
6923 then :
6924
6925 curl_cv_socklen_t_equiv="$t"
6926 break
6927
6928 fi
6929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6930 done
6931 done
6932
6933 if test "x$curl_cv_socklen_t_equiv" = x; then
6934 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
6935 fi
6936
6937 fi
6938
6939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
6940 printf "%s\n" "$curl_cv_socklen_t_equiv" >&6; }
6941
6942 printf "%s\n" "#define socklen_t $curl_cv_socklen_t_equiv" >>confdefs.h
6943
6944 fi
6945
6946
6947 # for the fake-rfc2553 stuff - straight from OpenSSH
6948
6949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
6950 printf %s "checking for struct sockaddr_storage... " >&6; }
6951 if test ${ac_cv_have_struct_sockaddr_storage+y}
6952 then :
6953 printf %s "(cached) " >&6
6954 else $as_nop
6955
6956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957 /* end confdefs.h. */
6958
6959 #include <sys/types.h>
6960 #include <sys/socket.h>
6961
6962 int
6963 main (void)
6964 {
6965 if (sizeof(struct sockaddr_storage)) return 0
6966 ;
6967 return 0;
6968 }
6969 _ACEOF
6970 if ac_fn_c_try_compile "$LINENO"
6971 then :
6972 ac_cv_have_struct_sockaddr_storage="yes"
6973 else $as_nop
6974 ac_cv_have_struct_sockaddr_storage="no"
6975
6976 fi
6977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6978
6979 fi
6980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5
6981 printf "%s\n" "$ac_cv_have_struct_sockaddr_storage" >&6; }
6982 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
6983 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
6984
6985 fi
6986
6987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
6988 printf %s "checking for struct sockaddr_in6... " >&6; }
6989 if test ${ac_cv_have_struct_sockaddr_in6+y}
6990 then :
6991 printf %s "(cached) " >&6
6992 else $as_nop
6993
6994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995 /* end confdefs.h. */
6996
6997 #include <sys/types.h>
6998 #include <netinet/in.h>
6999
7000 int
7001 main (void)
7002 {
7003 if (sizeof(struct sockaddr_in6)) return 0
7004 ;
7005 return 0;
7006 }
7007 _ACEOF
7008 if ac_fn_c_try_compile "$LINENO"
7009 then :
7010 ac_cv_have_struct_sockaddr_in6="yes"
7011 else $as_nop
7012 ac_cv_have_struct_sockaddr_in6="no"
7013
7014 fi
7015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7016
7017 fi
7018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5
7019 printf "%s\n" "$ac_cv_have_struct_sockaddr_in6" >&6; }
7020 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
7021
7022 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
7023
7024 fi
7025
7026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
7027 printf %s "checking for struct in6_addr... " >&6; }
7028 if test ${ac_cv_have_struct_in6_addr+y}
7029 then :
7030 printf %s "(cached) " >&6
7031 else $as_nop
7032
7033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034 /* end confdefs.h. */
7035
7036 #include <sys/types.h>
7037 #include <netinet/in.h>
7038
7039 int
7040 main (void)
7041 {
7042 if (sizeof(struct in6_addr)) return 0
7043 ;
7044 return 0;
7045 }
7046 _ACEOF
7047 if ac_fn_c_try_compile "$LINENO"
7048 then :
7049 ac_cv_have_struct_in6_addr="yes"
7050 else $as_nop
7051 ac_cv_have_struct_in6_addr="no"
7052
7053 fi
7054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7055
7056 fi
7057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5
7058 printf "%s\n" "$ac_cv_have_struct_in6_addr" >&6; }
7059 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
7060
7061 printf "%s\n" "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
7062
7063 fi
7064
7065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
7066 printf %s "checking for struct addrinfo... " >&6; }
7067 if test ${ac_cv_have_struct_addrinfo+y}
7068 then :
7069 printf %s "(cached) " >&6
7070 else $as_nop
7071
7072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7073 /* end confdefs.h. */
7074
7075 #include <sys/types.h>
7076 #include <sys/socket.h>
7077 #include <netdb.h>
7078
7079 int
7080 main (void)
7081 {
7082 if (sizeof(struct addrinfo)) return 0
7083 ;
7084 return 0;
7085 }
7086 _ACEOF
7087 if ac_fn_c_try_compile "$LINENO"
7088 then :
7089 ac_cv_have_struct_addrinfo="yes"
7090 else $as_nop
7091 ac_cv_have_struct_addrinfo="no"
7092
7093 fi
7094 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7095
7096 fi
7097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5
7098 printf "%s\n" "$ac_cv_have_struct_addrinfo" >&6; }
7099 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
7100
7101 printf "%s\n" "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
7102
7103 fi
7104
7105
7106 # IRIX has a const char return value for gai_strerror()
7107
7108 for ac_func in gai_strerror
7109 do :
7110 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
7111 if test "x$ac_cv_func_gai_strerror" = xyes
7112 then :
7113 printf "%s\n" "#define HAVE_GAI_STRERROR 1" >>confdefs.h
7114
7115 printf "%s\n" "#define HAVE_GAI_STRERROR 1" >>confdefs.h
7116
7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h. */
7119
7120 #include <sys/types.h>
7121 #include <sys/socket.h>
7122 #include <netdb.h>
7123
7124 const char *gai_strerror(int);
7125 int
7126 main (void)
7127 {
7128
7129 char *str;
7130
7131 str = gai_strerror(0);
7132 ;
7133 return 0;
7134 }
7135 _ACEOF
7136 if ac_fn_c_try_compile "$LINENO"
7137 then :
7138
7139
7140 printf "%s\n" "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h
7141
7142 fi
7143 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7144 fi
7145
7146 done
7147
7148 # for loginrec.c
7149
7150 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "
7151 #include <sys/types.h>
7152 #if HAVE_UTMP_H
7153 #include <utmp.h>
7154 #endif
7155
7156 "
7157 if test "x$ac_cv_member_struct_utmp_ut_host" = xyes
7158 then :
7159
7160 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_HOST 1" >>confdefs.h
7161
7162
7163 fi
7164 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
7165 #include <sys/types.h>
7166 #if HAVE_UTMP_H
7167 #include <utmp.h>
7168 #endif
7169
7170 "
7171 if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes
7172 then :
7173
7174 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_PID 1" >>confdefs.h
7175
7176
7177 fi
7178 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" "
7179 #include <sys/types.h>
7180 #if HAVE_UTMP_H
7181 #include <utmp.h>
7182 #endif
7183
7184 "
7185 if test "x$ac_cv_member_struct_utmp_ut_type" = xyes
7186 then :
7187
7188 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_TYPE 1" >>confdefs.h
7189
7190
7191 fi
7192 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "
7193 #include <sys/types.h>
7194 #if HAVE_UTMP_H
7195 #include <utmp.h>
7196 #endif
7197
7198 "
7199 if test "x$ac_cv_member_struct_utmp_ut_tv" = xyes
7200 then :
7201
7202 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_TV 1" >>confdefs.h
7203
7204
7205 fi
7206 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" "
7207 #include <sys/types.h>
7208 #if HAVE_UTMP_H
7209 #include <utmp.h>
7210 #endif
7211
7212 "
7213 if test "x$ac_cv_member_struct_utmp_ut_id" = xyes
7214 then :
7215
7216 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_ID 1" >>confdefs.h
7217
7218
7219 fi
7220 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_addr" "ac_cv_member_struct_utmp_ut_addr" "
7221 #include <sys/types.h>
7222 #if HAVE_UTMP_H
7223 #include <utmp.h>
7224 #endif
7225
7226 "
7227 if test "x$ac_cv_member_struct_utmp_ut_addr" = xyes
7228 then :
7229
7230 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_ADDR 1" >>confdefs.h
7231
7232
7233 fi
7234 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_addr_v6" "ac_cv_member_struct_utmp_ut_addr_v6" "
7235 #include <sys/types.h>
7236 #if HAVE_UTMP_H
7237 #include <utmp.h>
7238 #endif
7239
7240 "
7241 if test "x$ac_cv_member_struct_utmp_ut_addr_v6" = xyes
7242 then :
7243
7244 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_ADDR_V6 1" >>confdefs.h
7245
7246
7247 fi
7248 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit" "ac_cv_member_struct_utmp_ut_exit" "
7249 #include <sys/types.h>
7250 #if HAVE_UTMP_H
7251 #include <utmp.h>
7252 #endif
7253
7254 "
7255 if test "x$ac_cv_member_struct_utmp_ut_exit" = xyes
7256 then :
7257
7258 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
7259
7260
7261 fi
7262 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_time" "ac_cv_member_struct_utmp_ut_time" "
7263 #include <sys/types.h>
7264 #if HAVE_UTMP_H
7265 #include <utmp.h>
7266 #endif
7267
7268 "
7269 if test "x$ac_cv_member_struct_utmp_ut_time" = xyes
7270 then :
7271
7272 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_TIME 1" >>confdefs.h
7273
7274
7275 fi
7276
7277
7278 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "
7279 #include <sys/types.h>
7280 #include <sys/socket.h>
7281 #if HAVE_UTMPX_H
7282 #include <utmpx.h>
7283 #endif
7284
7285 "
7286 if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes
7287 then :
7288
7289 printf "%s\n" "#define HAVE_STRUCT_UTMPX_UT_HOST 1" >>confdefs.h
7290
7291
7292 fi
7293 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_syslen" "ac_cv_member_struct_utmpx_ut_syslen" "
7294 #include <sys/types.h>
7295 #include <sys/socket.h>
7296 #if HAVE_UTMPX_H
7297 #include <utmpx.h>
7298 #endif
7299
7300 "
7301 if test "x$ac_cv_member_struct_utmpx_ut_syslen" = xyes
7302 then :
7303
7304 printf "%s\n" "#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1" >>confdefs.h
7305
7306
7307 fi
7308 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_type" "ac_cv_member_struct_utmpx_ut_type" "
7309 #include <sys/types.h>
7310 #include <sys/socket.h>
7311 #if HAVE_UTMPX_H
7312 #include <utmpx.h>
7313 #endif
7314
7315 "
7316 if test "x$ac_cv_member_struct_utmpx_ut_type" = xyes
7317 then :
7318
7319 printf "%s\n" "#define HAVE_STRUCT_UTMPX_UT_TYPE 1" >>confdefs.h
7320
7321
7322 fi
7323 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_id" "ac_cv_member_struct_utmpx_ut_id" "
7324 #include <sys/types.h>
7325 #include <sys/socket.h>
7326 #if HAVE_UTMPX_H
7327 #include <utmpx.h>
7328 #endif
7329
7330 "
7331 if test "x$ac_cv_member_struct_utmpx_ut_id" = xyes
7332 then :
7333
7334 printf "%s\n" "#define HAVE_STRUCT_UTMPX_UT_ID 1" >>confdefs.h
7335
7336
7337 fi
7338 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_addr" "ac_cv_member_struct_utmpx_ut_addr" "
7339 #include <sys/types.h>
7340 #include <sys/socket.h>
7341 #if HAVE_UTMPX_H
7342 #include <utmpx.h>
7343 #endif
7344
7345 "
7346 if test "x$ac_cv_member_struct_utmpx_ut_addr" = xyes
7347 then :
7348
7349 printf "%s\n" "#define HAVE_STRUCT_UTMPX_UT_ADDR 1" >>confdefs.h
7350
7351
7352 fi
7353 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_addr_v6" "ac_cv_member_struct_utmpx_ut_addr_v6" "
7354 #include <sys/types.h>
7355 #include <sys/socket.h>
7356 #if HAVE_UTMPX_H
7357 #include <utmpx.h>
7358 #endif
7359
7360 "
7361 if test "x$ac_cv_member_struct_utmpx_ut_addr_v6" = xyes
7362 then :
7363
7364 printf "%s\n" "#define HAVE_STRUCT_UTMPX_UT_ADDR_V6 1" >>confdefs.h
7365
7366
7367 fi
7368 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_time" "ac_cv_member_struct_utmpx_ut_time" "
7369 #include <sys/types.h>
7370 #include <sys/socket.h>
7371 #if HAVE_UTMPX_H
7372 #include <utmpx.h>
7373 #endif
7374
7375 "
7376 if test "x$ac_cv_member_struct_utmpx_ut_time" = xyes
7377 then :
7378
7379 printf "%s\n" "#define HAVE_STRUCT_UTMPX_UT_TIME 1" >>confdefs.h
7380
7381
7382 fi
7383 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "
7384 #include <sys/types.h>
7385 #include <sys/socket.h>
7386 #if HAVE_UTMPX_H
7387 #include <utmpx.h>
7388 #endif
7389
7390 "
7391 if test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes
7392 then :
7393
7394 printf "%s\n" "#define HAVE_STRUCT_UTMPX_UT_TV 1" >>confdefs.h
7395
7396
7397 fi
7398
7399
7400 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "
7401 #include <sys/types.h>
7402 #include <sys/socket.h>
7403
7404 "
7405 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
7406 then :
7407
7408 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1" >>confdefs.h
7409
7410
7411 fi
7412
7413
7414 ac_fn_c_check_func "$LINENO" "endutent" "ac_cv_func_endutent"
7415 if test "x$ac_cv_func_endutent" = xyes
7416 then :
7417 printf "%s\n" "#define HAVE_ENDUTENT 1" >>confdefs.h
7418
7419 fi
7420 ac_fn_c_check_func "$LINENO" "getutent" "ac_cv_func_getutent"
7421 if test "x$ac_cv_func_getutent" = xyes
7422 then :
7423 printf "%s\n" "#define HAVE_GETUTENT 1" >>confdefs.h
7424
7425 fi
7426 ac_fn_c_check_func "$LINENO" "getutid" "ac_cv_func_getutid"
7427 if test "x$ac_cv_func_getutid" = xyes
7428 then :
7429 printf "%s\n" "#define HAVE_GETUTID 1" >>confdefs.h
7430
7431 fi
7432 ac_fn_c_check_func "$LINENO" "getutline" "ac_cv_func_getutline"
7433 if test "x$ac_cv_func_getutline" = xyes
7434 then :
7435 printf "%s\n" "#define HAVE_GETUTLINE 1" >>confdefs.h
7436
7437 fi
7438 ac_fn_c_check_func "$LINENO" "pututline" "ac_cv_func_pututline"
7439 if test "x$ac_cv_func_pututline" = xyes
7440 then :
7441 printf "%s\n" "#define HAVE_PUTUTLINE 1" >>confdefs.h
7442
7443 fi
7444 ac_fn_c_check_func "$LINENO" "setutent" "ac_cv_func_setutent"
7445 if test "x$ac_cv_func_setutent" = xyes
7446 then :
7447 printf "%s\n" "#define HAVE_SETUTENT 1" >>confdefs.h
7448
7449 fi
7450
7451 ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname"
7452 if test "x$ac_cv_func_utmpname" = xyes
7453 then :
7454 printf "%s\n" "#define HAVE_UTMPNAME 1" >>confdefs.h
7455
7456 fi
7457
7458 ac_fn_c_check_func "$LINENO" "endutxent" "ac_cv_func_endutxent"
7459 if test "x$ac_cv_func_endutxent" = xyes
7460 then :
7461 printf "%s\n" "#define HAVE_ENDUTXENT 1" >>confdefs.h
7462
7463 fi
7464 ac_fn_c_check_func "$LINENO" "getutxent" "ac_cv_func_getutxent"
7465 if test "x$ac_cv_func_getutxent" = xyes
7466 then :
7467 printf "%s\n" "#define HAVE_GETUTXENT 1" >>confdefs.h
7468
7469 fi
7470 ac_fn_c_check_func "$LINENO" "getutxid" "ac_cv_func_getutxid"
7471 if test "x$ac_cv_func_getutxid" = xyes
7472 then :
7473 printf "%s\n" "#define HAVE_GETUTXID 1" >>confdefs.h
7474
7475 fi
7476 ac_fn_c_check_func "$LINENO" "getutxline" "ac_cv_func_getutxline"
7477 if test "x$ac_cv_func_getutxline" = xyes
7478 then :
7479 printf "%s\n" "#define HAVE_GETUTXLINE 1" >>confdefs.h
7480
7481 fi
7482 ac_fn_c_check_func "$LINENO" "pututxline" "ac_cv_func_pututxline"
7483 if test "x$ac_cv_func_pututxline" = xyes
7484 then :
7485 printf "%s\n" "#define HAVE_PUTUTXLINE 1" >>confdefs.h
7486
7487 fi
7488
7489 ac_fn_c_check_func "$LINENO" "setutxent" "ac_cv_func_setutxent"
7490 if test "x$ac_cv_func_setutxent" = xyes
7491 then :
7492 printf "%s\n" "#define HAVE_SETUTXENT 1" >>confdefs.h
7493
7494 fi
7495 ac_fn_c_check_func "$LINENO" "utmpxname" "ac_cv_func_utmpxname"
7496 if test "x$ac_cv_func_utmpxname" = xyes
7497 then :
7498 printf "%s\n" "#define HAVE_UTMPXNAME 1" >>confdefs.h
7499
7500 fi
7501
7502 ac_fn_c_check_func "$LINENO" "logout" "ac_cv_func_logout"
7503 if test "x$ac_cv_func_logout" = xyes
7504 then :
7505 printf "%s\n" "#define HAVE_LOGOUT 1" >>confdefs.h
7506
7507 fi
7508 ac_fn_c_check_func "$LINENO" "updwtmp" "ac_cv_func_updwtmp"
7509 if test "x$ac_cv_func_updwtmp" = xyes
7510 then :
7511 printf "%s\n" "#define HAVE_UPDWTMP 1" >>confdefs.h
7512
7513 fi
7514 ac_fn_c_check_func "$LINENO" "logwtmp" "ac_cv_func_logwtmp"
7515 if test "x$ac_cv_func_logwtmp" = xyes
7516 then :
7517 printf "%s\n" "#define HAVE_LOGWTMP 1" >>confdefs.h
7518
7519 fi
7520
7521
7522 # POSIX monotonic time
7523 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
7524 if test "x$ac_cv_func_clock_gettime" = xyes
7525 then :
7526 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
7527
7528 fi
7529
7530
7531 # OS X monotonic time
7532 ac_fn_c_check_header_compile "$LINENO" "mach/mach_time.h" "ac_cv_header_mach_mach_time_h" "$ac_includes_default"
7533 if test "x$ac_cv_header_mach_mach_time_h" = xyes
7534 then :
7535 printf "%s\n" "#define HAVE_MACH_MACH_TIME_H 1" >>confdefs.h
7536
7537 fi
7538
7539 ac_fn_c_check_func "$LINENO" "mach_absolute_time" "ac_cv_func_mach_absolute_time"
7540 if test "x$ac_cv_func_mach_absolute_time" = xyes
7541 then :
7542 printf "%s\n" "#define HAVE_MACH_ABSOLUTE_TIME 1" >>confdefs.h
7543
7544 fi
7545
7546
7547 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
7548 if test "x$ac_cv_func_explicit_bzero" = xyes
7549 then :
7550 printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
7551
7552 fi
7553 ac_fn_c_check_func "$LINENO" "memset_s" "ac_cv_func_memset_s"
7554 if test "x$ac_cv_func_memset_s" = xyes
7555 then :
7556 printf "%s\n" "#define HAVE_MEMSET_S 1" >>confdefs.h
7557
7558 fi
7559 ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
7560 if test "x$ac_cv_func_getrandom" = xyes
7561 then :
7562 printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
7563
7564 fi
7565
7566
7567 # Check whether --enable-bundled-libtom was given.
7568 if test ${enable_bundled_libtom+y}
7569 then :
7570 enableval=$enable_bundled_libtom;
7571 if test "x$enableval" = "xyes"; then
7572 BUNDLED_LIBTOM=1
7573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Forcing bundled libtom*" >&5
7574 printf "%s\n" "$as_me: Forcing bundled libtom*" >&6;}
7575 else
7576 BUNDLED_LIBTOM=0
7577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mp_to_ubin in -ltommath" >&5
7578 printf %s "checking for mp_to_ubin in -ltommath... " >&6; }
7579 if test ${ac_cv_lib_tommath_mp_to_ubin+y}
7580 then :
7581 printf %s "(cached) " >&6
7582 else $as_nop
7583 ac_check_lib_save_LIBS=$LIBS
7584 LIBS="-ltommath $LIBS"
7585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7586 /* end confdefs.h. */
7587
7588 /* Override any GCC internal prototype to avoid an error.
7589 Use char because int might match the return type of a GCC
7590 builtin and then its argument prototype would still apply. */
7591 char mp_to_ubin ();
7592 int
7593 main (void)
7594 {
7595 return mp_to_ubin ();
7596 ;
7597 return 0;
7598 }
7599 _ACEOF
7600 if ac_fn_c_try_link "$LINENO"
7601 then :
7602 ac_cv_lib_tommath_mp_to_ubin=yes
7603 else $as_nop
7604 ac_cv_lib_tommath_mp_to_ubin=no
7605 fi
7606 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7607 conftest$ac_exeext conftest.$ac_ext
7608 LIBS=$ac_check_lib_save_LIBS
7609 fi
7610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tommath_mp_to_ubin" >&5
7611 printf "%s\n" "$ac_cv_lib_tommath_mp_to_ubin" >&6; }
7612 if test "x$ac_cv_lib_tommath_mp_to_ubin" = xyes
7613 then :
7614 LIBTOM_LIBS="-ltommath $LIBTOM_LIBS"
7615 else $as_nop
7616 as_fn_error $? "Missing/old system libtommath and --disable-bundled-libtom was specified" "$LINENO" 5
7617 fi
7618
7619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for poly1305_init in -ltomcrypt" >&5
7620 printf %s "checking for poly1305_init in -ltomcrypt... " >&6; }
7621 if test ${ac_cv_lib_tomcrypt_poly1305_init+y}
7622 then :
7623 printf %s "(cached) " >&6
7624 else $as_nop
7625 ac_check_lib_save_LIBS=$LIBS
7626 LIBS="-ltomcrypt $LIBS"
7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628 /* end confdefs.h. */
7629
7630 /* Override any GCC internal prototype to avoid an error.
7631 Use char because int might match the return type of a GCC
7632 builtin and then its argument prototype would still apply. */
7633 char poly1305_init ();
7634 int
7635 main (void)
7636 {
7637 return poly1305_init ();
7638 ;
7639 return 0;
7640 }
7641 _ACEOF
7642 if ac_fn_c_try_link "$LINENO"
7643 then :
7644 ac_cv_lib_tomcrypt_poly1305_init=yes
7645 else $as_nop
7646 ac_cv_lib_tomcrypt_poly1305_init=no
7647 fi
7648 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7649 conftest$ac_exeext conftest.$ac_ext
7650 LIBS=$ac_check_lib_save_LIBS
7651 fi
7652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tomcrypt_poly1305_init" >&5
7653 printf "%s\n" "$ac_cv_lib_tomcrypt_poly1305_init" >&6; }
7654 if test "x$ac_cv_lib_tomcrypt_poly1305_init" = xyes
7655 then :
7656 LIBTOM_LIBS="-ltomcrypt $LIBTOM_LIBS"
7657 else $as_nop
7658 as_fn_error $? "Missing/old system libtomcrypt and --disable-bundled-libtom was specified" "$LINENO" 5
7659 fi
7660
7661 fi
7662
7663 else $as_nop
7664
7665 BUNDLED_LIBTOM=0
7666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mp_to_ubin in -ltommath" >&5
7667 printf %s "checking for mp_to_ubin in -ltommath... " >&6; }
7668 if test ${ac_cv_lib_tommath_mp_to_ubin+y}
7669 then :
7670 printf %s "(cached) " >&6
7671 else $as_nop
7672 ac_check_lib_save_LIBS=$LIBS
7673 LIBS="-ltommath $LIBS"
7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675 /* end confdefs.h. */
7676
7677 /* Override any GCC internal prototype to avoid an error.
7678 Use char because int might match the return type of a GCC
7679 builtin and then its argument prototype would still apply. */
7680 char mp_to_ubin ();
7681 int
7682 main (void)
7683 {
7684 return mp_to_ubin ();
7685 ;
7686 return 0;
7687 }
7688 _ACEOF
7689 if ac_fn_c_try_link "$LINENO"
7690 then :
7691 ac_cv_lib_tommath_mp_to_ubin=yes
7692 else $as_nop
7693 ac_cv_lib_tommath_mp_to_ubin=no
7694 fi
7695 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7696 conftest$ac_exeext conftest.$ac_ext
7697 LIBS=$ac_check_lib_save_LIBS
7698 fi
7699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tommath_mp_to_ubin" >&5
7700 printf "%s\n" "$ac_cv_lib_tommath_mp_to_ubin" >&6; }
7701 if test "x$ac_cv_lib_tommath_mp_to_ubin" = xyes
7702 then :
7703 LIBTOM_LIBS="-ltommath $LIBTOM_LIBS"
7704 else $as_nop
7705 BUNDLED_LIBTOM=1
7706 fi
7707
7708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for poly1305_init in -ltomcrypt" >&5
7709 printf %s "checking for poly1305_init in -ltomcrypt... " >&6; }
7710 if test ${ac_cv_lib_tomcrypt_poly1305_init+y}
7711 then :
7712 printf %s "(cached) " >&6
7713 else $as_nop
7714 ac_check_lib_save_LIBS=$LIBS
7715 LIBS="-ltomcrypt $LIBS"
7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h. */
7718
7719 /* Override any GCC internal prototype to avoid an error.
7720 Use char because int might match the return type of a GCC
7721 builtin and then its argument prototype would still apply. */
7722 char poly1305_init ();
7723 int
7724 main (void)
7725 {
7726 return poly1305_init ();
7727 ;
7728 return 0;
7729 }
7730 _ACEOF
7731 if ac_fn_c_try_link "$LINENO"
7732 then :
7733 ac_cv_lib_tomcrypt_poly1305_init=yes
7734 else $as_nop
7735 ac_cv_lib_tomcrypt_poly1305_init=no
7736 fi
7737 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7738 conftest$ac_exeext conftest.$ac_ext
7739 LIBS=$ac_check_lib_save_LIBS
7740 fi
7741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tomcrypt_poly1305_init" >&5
7742 printf "%s\n" "$ac_cv_lib_tomcrypt_poly1305_init" >&6; }
7743 if test "x$ac_cv_lib_tomcrypt_poly1305_init" = xyes
7744 then :
7745 LIBTOM_LIBS="-ltomcrypt $LIBTOM_LIBS"
7746 else $as_nop
7747 BUNDLED_LIBTOM=1
7748 fi
7749
7750
7751
7752 fi
7753
7754
7755 if test $BUNDLED_LIBTOM = 1 ; then
7756
7757 printf "%s\n" "#define BUNDLED_LIBTOM 1" >>confdefs.h
7758
7759 fi
7760
7761
7762
7763
7764
7765 # Check whether --enable-lastlog was given.
7766 if test ${enable_lastlog+y}
7767 then :
7768 enableval=$enable_lastlog;
7769 if test "x$enableval" = "xno" ; then
7770
7771 printf "%s\n" "#define DISABLE_LASTLOG 1" >>confdefs.h
7772
7773 fi
7774
7775
7776 fi
7777
7778 # Check whether --enable-utmp was given.
7779 if test ${enable_utmp+y}
7780 then :
7781 enableval=$enable_utmp;
7782 if test "x$enableval" = "xno" ; then
7783
7784 printf "%s\n" "#define DISABLE_UTMP 1" >>confdefs.h
7785
7786 fi
7787
7788
7789 fi
7790
7791 # Check whether --enable-utmpx was given.
7792 if test ${enable_utmpx+y}
7793 then :
7794 enableval=$enable_utmpx;
7795 if test "x$enableval" = "xno" ; then
7796
7797 printf "%s\n" "#define DISABLE_UTMPX 1" >>confdefs.h
7798
7799 fi
7800
7801
7802 fi
7803
7804 # Check whether --enable-wtmp was given.
7805 if test ${enable_wtmp+y}
7806 then :
7807 enableval=$enable_wtmp;
7808 if test "x$enableval" = "xno" ; then
7809
7810 printf "%s\n" "#define DISABLE_WTMP 1" >>confdefs.h
7811
7812 fi
7813
7814
7815 fi
7816
7817 # Check whether --enable-wtmpx was given.
7818 if test ${enable_wtmpx+y}
7819 then :
7820 enableval=$enable_wtmpx;
7821 if test "x$enableval" = "xno" ; then
7822
7823 printf "%s\n" "#define DISABLE_WTMPX 1" >>confdefs.h
7824
7825 fi
7826
7827
7828 fi
7829
7830 # Check whether --enable-loginfunc was given.
7831 if test ${enable_loginfunc+y}
7832 then :
7833 enableval=$enable_loginfunc; no_loginfunc_check=1
7834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not using login() etc" >&5
7835 printf "%s\n" "$as_me: Not using login() etc" >&6;}
7836
7837 fi
7838
7839 # Check whether --enable-pututline was given.
7840 if test ${enable_pututline+y}
7841 then :
7842 enableval=$enable_pututline;
7843 if test "x$enableval" = "xno" ; then
7844
7845 printf "%s\n" "#define DISABLE_PUTUTLINE 1" >>confdefs.h
7846
7847 fi
7848
7849
7850 fi
7851
7852 # Check whether --enable-pututxline was given.
7853 if test ${enable_pututxline+y}
7854 then :
7855 enableval=$enable_pututxline;
7856 if test "x$enableval" = "xno" ; then
7857
7858 printf "%s\n" "#define DISABLE_PUTUTXLINE 1" >>confdefs.h
7859
7860 fi
7861
7862
7863 fi
7864
7865
7866 # Check whether --with-lastlog was given.
7867 if test ${with_lastlog+y}
7868 then :
7869 withval=$with_lastlog;
7870 if test "x$withval" = "xno" ; then
7871 printf "%s\n" "#define DISABLE_LASTLOG 1" >>confdefs.h
7872
7873 else
7874 conf_lastlog_location=$withval
7875 fi
7876
7877
7878 fi
7879
7880
7881 if test -z "$no_loginfunc_check"; then
7882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5
7883 printf %s "checking for library containing login... " >&6; }
7884 if test ${ac_cv_search_login+y}
7885 then :
7886 printf %s "(cached) " >&6
7887 else $as_nop
7888 ac_func_search_save_LIBS=$LIBS
7889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h. */
7891
7892 /* Override any GCC internal prototype to avoid an error.
7893 Use char because int might match the return type of a GCC
7894 builtin and then its argument prototype would still apply. */
7895 char login ();
7896 int
7897 main (void)
7898 {
7899 return login ();
7900 ;
7901 return 0;
7902 }
7903 _ACEOF
7904 for ac_lib in '' util bsd
7905 do
7906 if test -z "$ac_lib"; then
7907 ac_res="none required"
7908 else
7909 ac_res=-l$ac_lib
7910 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7911 fi
7912 if ac_fn_c_try_link "$LINENO"
7913 then :
7914 ac_cv_search_login=$ac_res
7915 fi
7916 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7917 conftest$ac_exeext
7918 if test ${ac_cv_search_login+y}
7919 then :
7920 break
7921 fi
7922 done
7923 if test ${ac_cv_search_login+y}
7924 then :
7925
7926 else $as_nop
7927 ac_cv_search_login=no
7928 fi
7929 rm conftest.$ac_ext
7930 LIBS=$ac_func_search_save_LIBS
7931 fi
7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5
7933 printf "%s\n" "$ac_cv_search_login" >&6; }
7934 ac_res=$ac_cv_search_login
7935 if test "$ac_res" != no
7936 then :
7937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7938
7939 printf "%s\n" "#define HAVE_LOGIN 1" >>confdefs.h
7940
7941 fi
7942
7943 ac_fn_c_check_func "$LINENO" "logout" "ac_cv_func_logout"
7944 if test "x$ac_cv_func_logout" = xyes
7945 then :
7946 printf "%s\n" "#define HAVE_LOGOUT 1" >>confdefs.h
7947
7948 fi
7949 ac_fn_c_check_func "$LINENO" "updwtmp" "ac_cv_func_updwtmp"
7950 if test "x$ac_cv_func_updwtmp" = xyes
7951 then :
7952 printf "%s\n" "#define HAVE_UPDWTMP 1" >>confdefs.h
7953
7954 fi
7955 ac_fn_c_check_func "$LINENO" "logwtmp" "ac_cv_func_logwtmp"
7956 if test "x$ac_cv_func_logwtmp" = xyes
7957 then :
7958 printf "%s\n" "#define HAVE_LOGWTMP 1" >>confdefs.h
7959
7960 fi
7961
7962 fi
7963
7964
7965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5
7966 printf %s "checking if your system defines LASTLOG_FILE... " >&6; }
7967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968 /* end confdefs.h. */
7969
7970 #include <sys/types.h>
7971 #include <utmp.h>
7972 #ifdef HAVE_LASTLOG_H
7973 # include <lastlog.h>
7974 #endif
7975 #ifdef HAVE_PATHS_H
7976 # include <paths.h>
7977 #endif
7978 #ifdef HAVE_LOGIN_H
7979 # include <login.h>
7980 #endif
7981
7982 int
7983 main (void)
7984 {
7985 char *lastlog = LASTLOG_FILE;
7986 ;
7987 return 0;
7988 }
7989 _ACEOF
7990 if ac_fn_c_try_compile "$LINENO"
7991 then :
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7993 printf "%s\n" "yes" >&6; }
7994 else $as_nop
7995
7996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997 printf "%s\n" "no" >&6; }
7998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5
7999 printf %s "checking if your system defines _PATH_LASTLOG... " >&6; }
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8002
8003 #include <sys/types.h>
8004 #include <utmp.h>
8005 #ifdef HAVE_LASTLOG_H
8006 # include <lastlog.h>
8007 #endif
8008 #ifdef HAVE_PATHS_H
8009 # include <paths.h>
8010 #endif
8011
8012 int
8013 main (void)
8014 {
8015 char *lastlog = _PATH_LASTLOG;
8016 ;
8017 return 0;
8018 }
8019 _ACEOF
8020 if ac_fn_c_try_compile "$LINENO"
8021 then :
8022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8023 printf "%s\n" "yes" >&6; }
8024 else $as_nop
8025
8026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8027 printf "%s\n" "no" >&6; }
8028 system_lastlog_path=no
8029
8030 fi
8031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8032
8033
8034 fi
8035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8036
8037 if test -z "$conf_lastlog_location"; then
8038 if test x"$system_lastlog_path" = x"no" ; then
8039 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
8040 if (test -d "$f" || test -f "$f") ; then
8041 conf_lastlog_location=$f
8042 fi
8043 done
8044 if test -z "$conf_lastlog_location"; then
8045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5
8046 printf "%s\n" "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
8047 fi
8048 fi
8049 fi
8050
8051 if test -n "$conf_lastlog_location"; then
8052
8053 printf "%s\n" "#define CONF_LASTLOG_FILE \"$conf_lastlog_location\"" >>confdefs.h
8054
8055 fi
8056
8057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5
8058 printf %s "checking if your system defines UTMP_FILE... " >&6; }
8059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060 /* end confdefs.h. */
8061
8062 #include <sys/types.h>
8063 #include <utmp.h>
8064 #ifdef HAVE_PATHS_H
8065 # include <paths.h>
8066 #endif
8067
8068 int
8069 main (void)
8070 {
8071 char *utmp = UTMP_FILE;
8072 ;
8073 return 0;
8074 }
8075 _ACEOF
8076 if ac_fn_c_try_compile "$LINENO"
8077 then :
8078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8079 printf "%s\n" "yes" >&6; }
8080 else $as_nop
8081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082 printf "%s\n" "no" >&6; }
8083 system_utmp_path=no
8084
8085 fi
8086 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8087 if test -z "$conf_utmp_location"; then
8088 if test x"$system_utmp_path" = x"no" ; then
8089 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
8090 if test -f $f ; then
8091 conf_utmp_location=$f
8092 fi
8093 done
8094 if test -z "$conf_utmp_location"; then
8095 printf "%s\n" "#define DISABLE_UTMP 1" >>confdefs.h
8096
8097 fi
8098 fi
8099 fi
8100 if test -n "$conf_utmp_location"; then
8101
8102 printf "%s\n" "#define CONF_UTMP_FILE \"$conf_utmp_location\"" >>confdefs.h
8103
8104 fi
8105
8106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5
8107 printf %s "checking if your system defines WTMP_FILE... " >&6; }
8108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109 /* end confdefs.h. */
8110
8111 #include <sys/types.h>
8112 #ifdef HAVE_UTMP_H
8113 # include <utmp.h>
8114 #endif
8115 #ifdef HAVE_PATHS_H
8116 # include <paths.h>
8117 #endif
8118
8119 int
8120 main (void)
8121 {
8122 char *wtmp = WTMP_FILE;
8123 ;
8124 return 0;
8125 }
8126 _ACEOF
8127 if ac_fn_c_try_compile "$LINENO"
8128 then :
8129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8130 printf "%s\n" "yes" >&6; }
8131 else $as_nop
8132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133 printf "%s\n" "no" >&6; }
8134 system_wtmp_path=no
8135
8136 fi
8137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8138 if test -z "$conf_wtmp_location"; then
8139 if test x"$system_wtmp_path" = x"no" ; then
8140 for f in /usr/adm/wtmp /var/log/wtmp; do
8141 if test -f $f ; then
8142 conf_wtmp_location=$f
8143 fi
8144 done
8145 if test -z "$conf_wtmp_location"; then
8146 printf "%s\n" "#define DISABLE_WTMP 1" >>confdefs.h
8147
8148 fi
8149 fi
8150 fi
8151 if test -n "$conf_wtmp_location"; then
8152
8153 printf "%s\n" "#define CONF_WTMP_FILE \"$conf_wtmp_location\"" >>confdefs.h
8154
8155 fi
8156
8157
8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMPX_FILE" >&5
8159 printf %s "checking if your system defines UTMPX_FILE... " >&6; }
8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161 /* end confdefs.h. */
8162
8163 #include <sys/types.h>
8164 #include <utmp.h>
8165 #ifdef HAVE_UTMPX_H
8166 #include <utmpx.h>
8167 #endif
8168 #ifdef HAVE_PATHS_H
8169 # include <paths.h>
8170 #endif
8171
8172 int
8173 main (void)
8174 {
8175 char *utmpx = UTMPX_FILE;
8176 ;
8177 return 0;
8178 }
8179 _ACEOF
8180 if ac_fn_c_try_compile "$LINENO"
8181 then :
8182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8183 printf "%s\n" "yes" >&6; }
8184 else $as_nop
8185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186 printf "%s\n" "no" >&6; }
8187 system_utmpx_path=no
8188
8189 fi
8190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8191 if test -z "$conf_utmpx_location"; then
8192 if test x"$system_utmpx_path" = x"no" ; then
8193 printf "%s\n" "#define DISABLE_UTMPX 1" >>confdefs.h
8194
8195 fi
8196 else
8197
8198 printf "%s\n" "#define CONF_UTMPX_FILE \"$conf_utmpx_location\"" >>confdefs.h
8199
8200 fi
8201
8202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5
8203 printf %s "checking if your system defines WTMPX_FILE... " >&6; }
8204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205 /* end confdefs.h. */
8206
8207 #include <sys/types.h>
8208 #ifdef HAVE_UTMP_H
8209 # include <utmp.h>
8210 #endif
8211 #ifdef HAVE_UTMPX_H
8212 # include <utmpx.h>
8213 #endif
8214 #ifdef HAVE_PATHS_H
8215 # include <paths.h>
8216 #endif
8217
8218 int
8219 main (void)
8220 {
8221 char *wtmpx = WTMPX_FILE;
8222 ;
8223 return 0;
8224 }
8225 _ACEOF
8226 if ac_fn_c_try_compile "$LINENO"
8227 then :
8228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8229 printf "%s\n" "yes" >&6; }
8230 else $as_nop
8231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 printf "%s\n" "no" >&6; }
8233 system_wtmpx_path=no
8234
8235 fi
8236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8237 if test -z "$conf_wtmpx_location"; then
8238 if test x"$system_wtmpx_path" = x"no" ; then
8239 printf "%s\n" "#define DISABLE_WTMPX 1" >>confdefs.h
8240
8241 fi
8242 else
8243
8244 printf "%s\n" "#define CONF_WTMPX_FILE \"$conf_wtmpx_location\"" >>confdefs.h
8245
8246 fi
8247
8248 # Checks for library functions.
8249 if test $ac_cv_c_compiler_gnu = yes; then
8250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
8251 printf %s "checking whether $CC needs -traditional... " >&6; }
8252 if test ${ac_cv_prog_gcc_traditional+y}
8253 then :
8254 printf %s "(cached) " >&6
8255 else $as_nop
8256 ac_pattern="Autoconf.*'x'"
8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h. */
8259 #include <sgtty.h>
8260 Autoconf TIOCGETP
8261 _ACEOF
8262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8263 $EGREP "$ac_pattern" >/dev/null 2>&1
8264 then :
8265 ac_cv_prog_gcc_traditional=yes
8266 else $as_nop
8267 ac_cv_prog_gcc_traditional=no
8268 fi
8269 rm -rf conftest*
8270
8271
8272 if test $ac_cv_prog_gcc_traditional = no; then
8273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274 /* end confdefs.h. */
8275 #include <termio.h>
8276 Autoconf TCGETA
8277 _ACEOF
8278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8279 $EGREP "$ac_pattern" >/dev/null 2>&1
8280 then :
8281 ac_cv_prog_gcc_traditional=yes
8282 fi
8283 rm -rf conftest*
8284
8285 fi
8286 fi
8287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
8288 printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; }
8289 if test $ac_cv_prog_gcc_traditional = yes; then
8290 CC="$CC -traditional"
8291 fi
8292 fi
8293
8294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
8295 printf %s "checking for working memcmp... " >&6; }
8296 if test ${ac_cv_func_memcmp_working+y}
8297 then :
8298 printf %s "(cached) " >&6
8299 else $as_nop
8300 if test "$cross_compiling" = yes
8301 then :
8302 ac_cv_func_memcmp_working=no
8303 else $as_nop
8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305 /* end confdefs.h. */
8306 $ac_includes_default
8307 int
8308 main (void)
8309 {
8310
8311 /* Some versions of memcmp are not 8-bit clean. */
8312 char c0 = '\100', c1 = '\200', c2 = '\201';
8313 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8314 return 1;
8315
8316 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8317 or more and with at least one buffer not starting on a 4-byte boundary.
8318 William Lewis provided this test program. */
8319 {
8320 char foo[21];
8321 char bar[21];
8322 int i;
8323 for (i = 0; i < 4; i++)
8324 {
8325 char *a = foo + i;
8326 char *b = bar + i;
8327 strcpy (a, "--------01111111");
8328 strcpy (b, "--------10000000");
8329 if (memcmp (a, b, 16) >= 0)
8330 return 1;
8331 }
8332 return 0;
8333 }
8334
8335 ;
8336 return 0;
8337 }
8338 _ACEOF
8339 if ac_fn_c_try_run "$LINENO"
8340 then :
8341 ac_cv_func_memcmp_working=yes
8342 else $as_nop
8343 ac_cv_func_memcmp_working=no
8344 fi
8345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8346 conftest.$ac_objext conftest.beam conftest.$ac_ext
8347 fi
8348
8349 fi
8350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
8351 printf "%s\n" "$ac_cv_func_memcmp_working" >&6; }
8352 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8353 *" memcmp.$ac_objext "* ) ;;
8354 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8355 ;;
8356 esac
8357
8358
8359
8360
8361
8362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
8363 printf %s "checking types of arguments for select... " >&6; }
8364 if test ${ac_cv_func_select_args+y}
8365 then :
8366 printf %s "(cached) " >&6
8367 else $as_nop
8368 ac_cv_func_select_args='int,int *,struct timeval *'
8369 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
8370 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
8371 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
8372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8373 /* end confdefs.h. */
8374 $ac_includes_default
8375 #ifdef HAVE_SYS_SELECT_H
8376 # include <sys/select.h>
8377 #endif
8378 #ifdef HAVE_SYS_SOCKET_H
8379 # include <sys/socket.h>
8380 #endif
8381
8382 int
8383 main (void)
8384 {
8385 extern int select ($ac_arg1,
8386 $ac_arg234, $ac_arg234, $ac_arg234,
8387 $ac_arg5);
8388 ;
8389 return 0;
8390 }
8391 _ACEOF
8392 if ac_fn_c_try_compile "$LINENO"
8393 then :
8394 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
8395 fi
8396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8397 done
8398 done
8399 done
8400
8401 fi
8402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
8403 printf "%s\n" "$ac_cv_func_select_args" >&6; }
8404 ac_save_IFS=$IFS; IFS=','
8405 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
8406 IFS=$ac_save_IFS
8407 shift
8408
8409 printf "%s\n" "#define SELECT_TYPE_ARG1 $1" >>confdefs.h
8410
8411
8412 printf "%s\n" "#define SELECT_TYPE_ARG234 ($2)" >>confdefs.h
8413
8414
8415 printf "%s\n" "#define SELECT_TYPE_ARG5 ($3)" >>confdefs.h
8416
8417 rm -rf conftest*
8418
8419 ac_fn_c_check_func "$LINENO" "getpass" "ac_cv_func_getpass"
8420 if test "x$ac_cv_func_getpass" = xyes
8421 then :
8422 printf "%s\n" "#define HAVE_GETPASS 1" >>confdefs.h
8423
8424 fi
8425 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
8426 if test "x$ac_cv_func_getspnam" = xyes
8427 then :
8428 printf "%s\n" "#define HAVE_GETSPNAM 1" >>confdefs.h
8429
8430 fi
8431 ac_fn_c_check_func "$LINENO" "getusershell" "ac_cv_func_getusershell"
8432 if test "x$ac_cv_func_getusershell" = xyes
8433 then :
8434 printf "%s\n" "#define HAVE_GETUSERSHELL 1" >>confdefs.h
8435
8436 fi
8437 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
8438 if test "x$ac_cv_func_putenv" = xyes
8439 then :
8440 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
8441
8442 fi
8443
8444 ac_fn_c_check_func "$LINENO" "clearenv" "ac_cv_func_clearenv"
8445 if test "x$ac_cv_func_clearenv" = xyes
8446 then :
8447 printf "%s\n" "#define HAVE_CLEARENV 1" >>confdefs.h
8448
8449 fi
8450 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
8451 if test "x$ac_cv_func_strlcpy" = xyes
8452 then :
8453 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
8454
8455 fi
8456 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
8457 if test "x$ac_cv_func_strlcat" = xyes
8458 then :
8459 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
8460
8461 fi
8462 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
8463 if test "x$ac_cv_func_daemon" = xyes
8464 then :
8465 printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h
8466
8467 fi
8468 ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
8469 if test "x$ac_cv_func_basename" = xyes
8470 then :
8471 printf "%s\n" "#define HAVE_BASENAME 1" >>confdefs.h
8472
8473 fi
8474 ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
8475 if test "x$ac_cv_func__getpty" = xyes
8476 then :
8477 printf "%s\n" "#define HAVE__GETPTY 1" >>confdefs.h
8478
8479 fi
8480 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
8481 if test "x$ac_cv_func_getaddrinfo" = xyes
8482 then :
8483 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
8484
8485 fi
8486
8487 ac_fn_c_check_func "$LINENO" "freeaddrinfo" "ac_cv_func_freeaddrinfo"
8488 if test "x$ac_cv_func_freeaddrinfo" = xyes
8489 then :
8490 printf "%s\n" "#define HAVE_FREEADDRINFO 1" >>confdefs.h
8491
8492 fi
8493 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
8494 if test "x$ac_cv_func_getnameinfo" = xyes
8495 then :
8496 printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h
8497
8498 fi
8499 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
8500 if test "x$ac_cv_func_fork" = xyes
8501 then :
8502 printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h
8503
8504 fi
8505 ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev"
8506 if test "x$ac_cv_func_writev" = xyes
8507 then :
8508 printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h
8509
8510 fi
8511 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
8512 if test "x$ac_cv_func_getgrouplist" = xyes
8513 then :
8514 printf "%s\n" "#define HAVE_GETGROUPLIST 1" >>confdefs.h
8515
8516 fi
8517
8518
8519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5
8520 printf %s "checking for library containing basename... " >&6; }
8521 if test ${ac_cv_search_basename+y}
8522 then :
8523 printf %s "(cached) " >&6
8524 else $as_nop
8525 ac_func_search_save_LIBS=$LIBS
8526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8527 /* end confdefs.h. */
8528
8529 /* Override any GCC internal prototype to avoid an error.
8530 Use char because int might match the return type of a GCC
8531 builtin and then its argument prototype would still apply. */
8532 char basename ();
8533 int
8534 main (void)
8535 {
8536 return basename ();
8537 ;
8538 return 0;
8539 }
8540 _ACEOF
8541 for ac_lib in '' gen
8542 do
8543 if test -z "$ac_lib"; then
8544 ac_res="none required"
8545 else
8546 ac_res=-l$ac_lib
8547 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8548 fi
8549 if ac_fn_c_try_link "$LINENO"
8550 then :
8551 ac_cv_search_basename=$ac_res
8552 fi
8553 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8554 conftest$ac_exeext
8555 if test ${ac_cv_search_basename+y}
8556 then :
8557 break
8558 fi
8559 done
8560 if test ${ac_cv_search_basename+y}
8561 then :
8562
8563 else $as_nop
8564 ac_cv_search_basename=no
8565 fi
8566 rm conftest.$ac_ext
8567 LIBS=$ac_func_search_save_LIBS
8568 fi
8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5
8570 printf "%s\n" "$ac_cv_search_basename" >&6; }
8571 ac_res=$ac_cv_search_basename
8572 if test "$ac_res" != no
8573 then :
8574 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8575 printf "%s\n" "#define HAVE_BASENAME 1" >>confdefs.h
8576
8577 fi
8578
8579
8580 # Solaris needs ptmx
8581 if test -z "$no_ptmx_check" ; then
8582 if test x"$cross_compiling" = x"no" ; then
8583 if test -e /dev/ptmx ; then
8584
8585 printf "%s\n" "#define USE_DEV_PTMX 1" >>confdefs.h
8586
8587 fi
8588 else
8589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not checking for /dev/ptmx, we're cross-compiling" >&5
8590 printf "%s\n" "$as_me: Not checking for /dev/ptmx, we're cross-compiling" >&6;}
8591 fi
8592 fi
8593
8594 if test -z "$no_ptc_check" ; then
8595 if test x"$cross_compiling" = x"no" ; then
8596 if test -e /dev/ptc ; then
8597
8598 printf "%s\n" "#define HAVE_DEV_PTS_AND_PTC 1" >>confdefs.h
8599
8600 fi
8601 else
8602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not checking for /dev/ptc & /dev/pts since we're cross-compiling" >&5
8603 printf "%s\n" "$as_me: Not checking for /dev/ptc & /dev/pts since we're cross-compiling" >&6;}
8604 fi
8605 fi
8606
8607
8608
8609 if test $BUNDLED_LIBTOM = 1 ; then
8610 (cd $srcdir; find libtomcrypt -type d) | xargs mkdir -pv
8611 LIBTOM_FILES="libtomcrypt/Makefile libtommath/Makefile"
8612 fi
8613
8614 ac_config_headers="$ac_config_headers config.h"
8615
8616 ac_config_files="$ac_config_files Makefile $LIBTOM_FILES"
8617
8618 cat >confcache <<\_ACEOF
8619 # This file is a shell script that caches the results of configure
8620 # tests run on this system so they can be shared between configure
8621 # scripts and configure runs, see configure's option --config-cache.
8622 # It is not useful on other systems. If it contains results you don't
8623 # want to keep, you may remove or edit it.
8624 #
8625 # config.status only pays attention to the cache file if you give it
8626 # the --recheck option to rerun configure.
8627 #
8628 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8629 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8630 # following values.
8631
8632 _ACEOF
8633
8634 # The following way of writing the cache mishandles newlines in values,
8635 # but we know of no workaround that is simple, portable, and efficient.
8636 # So, we kill variables containing newlines.
8637 # Ultrix sh set writes to stderr and can't be redirected directly,
8638 # and sets the high bit in the cache file unless we assign to the vars.
8639 (
8640 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8641 eval ac_val=\$$ac_var
8642 case $ac_val in #(
8643 *${as_nl}*)
8644 case $ac_var in #(
8645 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8646 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8647 esac
8648 case $ac_var in #(
8649 _ | IFS | as_nl) ;; #(
8650 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8651 *) { eval $ac_var=; unset $ac_var;} ;;
8652 esac ;;
8653 esac
8654 done
8655
8656 (set) 2>&1 |
8657 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8658 *${as_nl}ac_space=\ *)
8659 # `set' does not quote correctly, so add quotes: double-quote
8660 # substitution turns \\\\ into \\, and sed turns \\ into \.
8661 sed -n \
8662 "s/'/'\\\\''/g;
8663 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8664 ;; #(
8665 *)
8666 # `set' quotes correctly as required by POSIX, so do not add quotes.
8667 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8668 ;;
8669 esac |
8670 sort
8671 ) |
8672 sed '
8673 /^ac_cv_env_/b end
8674 t clear
8675 :clear
8676 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
8677 t end
8678 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8679 :end' >>confcache
8680 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8681 if test -w "$cache_file"; then
8682 if test "x$cache_file" != "x/dev/null"; then
8683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8684 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
8685 if test ! -f "$cache_file" || test -h "$cache_file"; then
8686 cat confcache >"$cache_file"
8687 else
8688 case $cache_file in #(
8689 */* | ?:*)
8690 mv -f confcache "$cache_file"$$ &&
8691 mv -f "$cache_file"$$ "$cache_file" ;; #(
8692 *)
8693 mv -f confcache "$cache_file" ;;
8694 esac
8695 fi
8696 fi
8697 else
8698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8699 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
8700 fi
8701 fi
8702 rm -f confcache
8703
8704 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8705 # Let make expand exec_prefix.
8706 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8707
8708 DEFS=-DHAVE_CONFIG_H
8709
8710 ac_libobjs=
8711 ac_ltlibobjs=
8712 U=
8713 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8714 # 1. Remove the extension, and $U if already installed.
8715 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8716 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
8717 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8718 # will be set to the directory where LIBOBJS objects are built.
8719 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8720 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8721 done
8722 LIBOBJS=$ac_libobjs
8723
8724 LTLIBOBJS=$ac_ltlibobjs
8725
8726
8727
8728 : "${CONFIG_STATUS=./config.status}"
8729 ac_write_fail=0
8730 ac_clean_files_save=$ac_clean_files
8731 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8733 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
8734 as_write_fail=0
8735 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8736 #! $SHELL
8737 # Generated by $as_me.
8738 # Run this file to recreate the current configuration.
8739 # Compiler output produced by configure, useful for debugging
8740 # configure, is in config.log if it exists.
8741
8742 debug=false
8743 ac_cs_recheck=false
8744 ac_cs_silent=false
8745
8746 SHELL=\${CONFIG_SHELL-$SHELL}
8747 export SHELL
8748 _ASEOF
8749 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8750 ## -------------------- ##
8751 ## M4sh Initialization. ##
8752 ## -------------------- ##
8753
8754 # Be more Bourne compatible
8755 DUALCASE=1; export DUALCASE # for MKS sh
8756 as_nop=:
8757 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
8758 then :
8759 emulate sh
8760 NULLCMD=:
8761 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8762 # is contrary to our usage. Disable this feature.
8763 alias -g '${1+"$@"}'='"$@"'
8764 setopt NO_GLOB_SUBST
8765 else $as_nop
8766 case `(set -o) 2>/dev/null` in #(
8767 *posix*) :
8768 set -o posix ;; #(
8769 *) :
8770 ;;
8771 esac
8772 fi
8773
8774
8775
8776 # Reset variables that may have inherited troublesome values from
8777 # the environment.
8778
8779 # IFS needs to be set, to space, tab, and newline, in precisely that order.
8780 # (If _AS_PATH_WALK were called with IFS unset, it would have the
8781 # side effect of setting IFS to empty, thus disabling word splitting.)
8782 # Quoting is to prevent editors from complaining about space-tab.
8783 as_nl='
8784 '
8785 export as_nl
8786 IFS=" "" $as_nl"
8787
8788 PS1='$ '
8789 PS2='> '
8790 PS4='+ '
8791
8792 # Ensure predictable behavior from utilities with locale-dependent output.
8793 LC_ALL=C
8794 export LC_ALL
8795 LANGUAGE=C
8796 export LANGUAGE
8797
8798 # We cannot yet rely on "unset" to work, but we need these variables
8799 # to be unset--not just set to an empty or harmless value--now, to
8800 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
8801 # also avoids known problems related to "unset" and subshell syntax
8802 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
8803 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
8804 do eval test \${$as_var+y} \
8805 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8806 done
8807
8808 # Ensure that fds 0, 1, and 2 are open.
8809 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
8810 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
8811 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
8812
8813 # The user is always right.
8814 if ${PATH_SEPARATOR+false} :; then
8815 PATH_SEPARATOR=:
8816 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8817 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8818 PATH_SEPARATOR=';'
8819 }
8820 fi
8821
8822
8823 # Find who we are. Look in the path if we contain no directory separator.
8824 as_myself=
8825 case $0 in #((
8826 *[\\/]* ) as_myself=$0 ;;
8827 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8828 for as_dir in $PATH
8829 do
8830 IFS=$as_save_IFS
8831 case $as_dir in #(((
8832 '') as_dir=./ ;;
8833 */) ;;
8834 *) as_dir=$as_dir/ ;;
8835 esac
8836 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
8837 done
8838 IFS=$as_save_IFS
8839
8840 ;;
8841 esac
8842 # We did not find ourselves, most probably we were run as `sh COMMAND'
8843 # in which case we are not to be found in the path.
8844 if test "x$as_myself" = x; then
8845 as_myself=$0
8846 fi
8847 if test ! -f "$as_myself"; then
8848 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8849 exit 1
8850 fi
8851
8852
8853
8854 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8855 # ----------------------------------------
8856 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8857 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8858 # script with STATUS, using 1 if that was 0.
8859 as_fn_error ()
8860 {
8861 as_status=$1; test $as_status -eq 0 && as_status=1
8862 if test "$4"; then
8863 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8865 fi
8866 printf "%s\n" "$as_me: error: $2" >&2
8867 as_fn_exit $as_status
8868 } # as_fn_error
8869
8870
8871
8872 # as_fn_set_status STATUS
8873 # -----------------------
8874 # Set $? to STATUS, without forking.
8875 as_fn_set_status ()
8876 {
8877 return $1
8878 } # as_fn_set_status
8879
8880 # as_fn_exit STATUS
8881 # -----------------
8882 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8883 as_fn_exit ()
8884 {
8885 set +e
8886 as_fn_set_status $1
8887 exit $1
8888 } # as_fn_exit
8889
8890 # as_fn_unset VAR
8891 # ---------------
8892 # Portably unset VAR.
8893 as_fn_unset ()
8894 {
8895 { eval $1=; unset $1;}
8896 }
8897 as_unset=as_fn_unset
8898
8899 # as_fn_append VAR VALUE
8900 # ----------------------
8901 # Append the text in VALUE to the end of the definition contained in VAR. Take
8902 # advantage of any shell optimizations that allow amortized linear growth over
8903 # repeated appends, instead of the typical quadratic growth present in naive
8904 # implementations.
8905 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
8906 then :
8907 eval 'as_fn_append ()
8908 {
8909 eval $1+=\$2
8910 }'
8911 else $as_nop
8912 as_fn_append ()
8913 {
8914 eval $1=\$$1\$2
8915 }
8916 fi # as_fn_append
8917
8918 # as_fn_arith ARG...
8919 # ------------------
8920 # Perform arithmetic evaluation on the ARGs, and store the result in the
8921 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8922 # must be portable across $(()) and expr.
8923 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
8924 then :
8925 eval 'as_fn_arith ()
8926 {
8927 as_val=$(( $* ))
8928 }'
8929 else $as_nop
8930 as_fn_arith ()
8931 {
8932 as_val=`expr "$@" || test $? -eq 1`
8933 }
8934 fi # as_fn_arith
8935
8936
8937 if expr a : '\(a\)' >/dev/null 2>&1 &&
8938 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8939 as_expr=expr
8940 else
8941 as_expr=false
8942 fi
8943
8944 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8945 as_basename=basename
8946 else
8947 as_basename=false
8948 fi
8949
8950 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8951 as_dirname=dirname
8952 else
8953 as_dirname=false
8954 fi
8955
8956 as_me=`$as_basename -- "$0" ||
8957 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8958 X"$0" : 'X\(//\)$' \| \
8959 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8960 printf "%s\n" X/"$0" |
8961 sed '/^.*\/\([^/][^/]*\)\/*$/{
8962 s//\1/
8963 q
8964 }
8965 /^X\/\(\/\/\)$/{
8966 s//\1/
8967 q
8968 }
8969 /^X\/\(\/\).*/{
8970 s//\1/
8971 q
8972 }
8973 s/.*/./; q'`
8974
8975 # Avoid depending upon Character Ranges.
8976 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8977 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8978 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8979 as_cr_digits='0123456789'
8980 as_cr_alnum=$as_cr_Letters$as_cr_digits
8981
8982
8983 # Determine whether it's possible to make 'echo' print without a newline.
8984 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
8985 # for compatibility with existing Makefiles.
8986 ECHO_C= ECHO_N= ECHO_T=
8987 case `echo -n x` in #(((((
8988 -n*)
8989 case `echo 'xy\c'` in
8990 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8991 xy) ECHO_C='\c';;
8992 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8993 ECHO_T=' ';;
8994 esac;;
8995 *)
8996 ECHO_N='-n';;
8997 esac
8998
8999 # For backward compatibility with old third-party macros, we provide
9000 # the shell variables $as_echo and $as_echo_n. New code should use
9001 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
9002 as_echo='printf %s\n'
9003 as_echo_n='printf %s'
9004
9005 rm -f conf$$ conf$$.exe conf$$.file
9006 if test -d conf$$.dir; then
9007 rm -f conf$$.dir/conf$$.file
9008 else
9009 rm -f conf$$.dir
9010 mkdir conf$$.dir 2>/dev/null
9011 fi
9012 if (echo >conf$$.file) 2>/dev/null; then
9013 if ln -s conf$$.file conf$$ 2>/dev/null; then
9014 as_ln_s='ln -s'
9015 # ... but there are two gotchas:
9016 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9017 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9018 # In both cases, we have to default to `cp -pR'.
9019 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9020 as_ln_s='cp -pR'
9021 elif ln conf$$.file conf$$ 2>/dev/null; then
9022 as_ln_s=ln
9023 else
9024 as_ln_s='cp -pR'
9025 fi
9026 else
9027 as_ln_s='cp -pR'
9028 fi
9029 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9030 rmdir conf$$.dir 2>/dev/null
9031
9032
9033 # as_fn_mkdir_p
9034 # -------------
9035 # Create "$as_dir" as a directory, including parents if necessary.
9036 as_fn_mkdir_p ()
9037 {
9038
9039 case $as_dir in #(
9040 -*) as_dir=./$as_dir;;
9041 esac
9042 test -d "$as_dir" || eval $as_mkdir_p || {
9043 as_dirs=
9044 while :; do
9045 case $as_dir in #(
9046 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9047 *) as_qdir=$as_dir;;
9048 esac
9049 as_dirs="'$as_qdir' $as_dirs"
9050 as_dir=`$as_dirname -- "$as_dir" ||
9051 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9052 X"$as_dir" : 'X\(//\)[^/]' \| \
9053 X"$as_dir" : 'X\(//\)$' \| \
9054 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9055 printf "%s\n" X"$as_dir" |
9056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9057 s//\1/
9058 q
9059 }
9060 /^X\(\/\/\)[^/].*/{
9061 s//\1/
9062 q
9063 }
9064 /^X\(\/\/\)$/{
9065 s//\1/
9066 q
9067 }
9068 /^X\(\/\).*/{
9069 s//\1/
9070 q
9071 }
9072 s/.*/./; q'`
9073 test -d "$as_dir" && break
9074 done
9075 test -z "$as_dirs" || eval "mkdir $as_dirs"
9076 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9077
9078
9079 } # as_fn_mkdir_p
9080 if mkdir -p . 2>/dev/null; then
9081 as_mkdir_p='mkdir -p "$as_dir"'
9082 else
9083 test -d ./-p && rmdir ./-p
9084 as_mkdir_p=false
9085 fi
9086
9087
9088 # as_fn_executable_p FILE
9089 # -----------------------
9090 # Test if FILE is an executable regular file.
9091 as_fn_executable_p ()
9092 {
9093 test -f "$1" && test -x "$1"
9094 } # as_fn_executable_p
9095 as_test_x='test -x'
9096 as_executable_p=as_fn_executable_p
9097
9098 # Sed expression to map a string onto a valid CPP name.
9099 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9100
9101 # Sed expression to map a string onto a valid variable name.
9102 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9103
9104
9105 exec 6>&1
9106 ## ----------------------------------- ##
9107 ## Main body of $CONFIG_STATUS script. ##
9108 ## ----------------------------------- ##
9109 _ASEOF
9110 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9111
9112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9113 # Save the log message, to keep $0 and so on meaningful, and to
9114 # report actual input values of CONFIG_FILES etc. instead of their
9115 # values after options handling.
9116 ac_log="
9117 This file was extended by $as_me, which was
9118 generated by GNU Autoconf 2.71. Invocation command line was
9119
9120 CONFIG_FILES = $CONFIG_FILES
9121 CONFIG_HEADERS = $CONFIG_HEADERS
9122 CONFIG_LINKS = $CONFIG_LINKS
9123 CONFIG_COMMANDS = $CONFIG_COMMANDS
9124 $ $0 $@
9125
9126 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9127 "
9128
9129 _ACEOF
9130
9131 case $ac_config_files in *"
9132 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9133 esac
9134
9135 case $ac_config_headers in *"
9136 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9137 esac
9138
9139
9140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9141 # Files that config.status was made for.
9142 config_files="$ac_config_files"
9143 config_headers="$ac_config_headers"
9144
9145 _ACEOF
9146
9147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9148 ac_cs_usage="\
9149 \`$as_me' instantiates files and other configuration actions
9150 from templates according to the current configuration. Unless the files
9151 and actions are specified as TAGs, all are instantiated by default.
9152
9153 Usage: $0 [OPTION]... [TAG]...
9154
9155 -h, --help print this help, then exit
9156 -V, --version print version number and configuration settings, then exit
9157 --config print configuration, then exit
9158 -q, --quiet, --silent
9159 do not print progress messages
9160 -d, --debug don't remove temporary files
9161 --recheck update $as_me by reconfiguring in the same conditions
9162 --file=FILE[:TEMPLATE]
9163 instantiate the configuration file FILE
9164 --header=FILE[:TEMPLATE]
9165 instantiate the configuration header FILE
9166
9167 Configuration files:
9168 $config_files
9169
9170 Configuration headers:
9171 $config_headers
9172
9173 Report bugs to the package provider."
9174
9175 _ACEOF
9176 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
9177 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
9178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9179 ac_cs_config='$ac_cs_config_escaped'
9180 ac_cs_version="\\
9181 config.status
9182 configured by $0, generated by GNU Autoconf 2.71,
9183 with options \\"\$ac_cs_config\\"
9184
9185 Copyright (C) 2021 Free Software Foundation, Inc.
9186 This config.status script is free software; the Free Software Foundation
9187 gives unlimited permission to copy, distribute and modify it."
9188
9189 ac_pwd='$ac_pwd'
9190 srcdir='$srcdir'
9191 test -n "\$AWK" || AWK=awk
9192 _ACEOF
9193
9194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9195 # The default lists apply if the user does not specify any file.
9196 ac_need_defaults=:
9197 while test $# != 0
9198 do
9199 case $1 in
9200 --*=?*)
9201 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9202 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9203 ac_shift=:
9204 ;;
9205 --*=)
9206 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9207 ac_optarg=
9208 ac_shift=:
9209 ;;
9210 *)
9211 ac_option=$1
9212 ac_optarg=$2
9213 ac_shift=shift
9214 ;;
9215 esac
9216
9217 case $ac_option in
9218 # Handling of the options.
9219 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9220 ac_cs_recheck=: ;;
9221 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9222 printf "%s\n" "$ac_cs_version"; exit ;;
9223 --config | --confi | --conf | --con | --co | --c )
9224 printf "%s\n" "$ac_cs_config"; exit ;;
9225 --debug | --debu | --deb | --de | --d | -d )
9226 debug=: ;;
9227 --file | --fil | --fi | --f )
9228 $ac_shift
9229 case $ac_optarg in
9230 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9231 '') as_fn_error $? "missing file argument" ;;
9232 esac
9233 as_fn_append CONFIG_FILES " '$ac_optarg'"
9234 ac_need_defaults=false;;
9235 --header | --heade | --head | --hea )
9236 $ac_shift
9237 case $ac_optarg in
9238 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9239 esac
9240 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9241 ac_need_defaults=false;;
9242 --he | --h)
9243 # Conflict between --help and --header
9244 as_fn_error $? "ambiguous option: \`$1'
9245 Try \`$0 --help' for more information.";;
9246 --help | --hel | -h )
9247 printf "%s\n" "$ac_cs_usage"; exit ;;
9248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9249 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9250 ac_cs_silent=: ;;
9251
9252 # This is an error.
9253 -*) as_fn_error $? "unrecognized option: \`$1'
9254 Try \`$0 --help' for more information." ;;
9255
9256 *) as_fn_append ac_config_targets " $1"
9257 ac_need_defaults=false ;;
9258
9259 esac
9260 shift
9261 done
9262
9263 ac_configure_extra_args=
9264
9265 if $ac_cs_silent; then
9266 exec 6>/dev/null
9267 ac_configure_extra_args="$ac_configure_extra_args --silent"
9268 fi
9269
9270 _ACEOF
9271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9272 if \$ac_cs_recheck; then
9273 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9274 shift
9275 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
9276 CONFIG_SHELL='$SHELL'
9277 export CONFIG_SHELL
9278 exec "\$@"
9279 fi
9280
9281 _ACEOF
9282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9283 exec 5>>config.log
9284 {
9285 echo
9286 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9287 ## Running $as_me. ##
9288 _ASBOX
9289 printf "%s\n" "$ac_log"
9290 } >&5
9291
9292 _ACEOF
9293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9294 _ACEOF
9295
9296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9297
9298 # Handling of arguments.
9299 for ac_config_target in $ac_config_targets
9300 do
9301 case $ac_config_target in
9302 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9303 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9304 "$LIBTOM_FILES") CONFIG_FILES="$CONFIG_FILES $LIBTOM_FILES" ;;
9305
9306 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9307 esac
9308 done
9309
9310
9311 # If the user did not use the arguments to specify the items to instantiate,
9312 # then the envvar interface is used. Set only those that are not.
9313 # We use the long form for the default assignment because of an extremely
9314 # bizarre bug on SunOS 4.1.3.
9315 if $ac_need_defaults; then
9316 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
9317 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
9318 fi
9319
9320 # Have a temporary directory for convenience. Make it in the build tree
9321 # simply because there is no reason against having it here, and in addition,
9322 # creating and moving files from /tmp can sometimes cause problems.
9323 # Hook for its removal unless debugging.
9324 # Note that there is a small window in which the directory will not be cleaned:
9325 # after its creation but before its name has been assigned to `$tmp'.
9326 $debug ||
9327 {
9328 tmp= ac_tmp=
9329 trap 'exit_status=$?
9330 : "${ac_tmp:=$tmp}"
9331 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9332 ' 0
9333 trap 'as_fn_exit 1' 1 2 13 15
9334 }
9335 # Create a (secure) tmp directory for tmp files.
9336
9337 {
9338 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9339 test -d "$tmp"
9340 } ||
9341 {
9342 tmp=./conf$$-$RANDOM
9343 (umask 077 && mkdir "$tmp")
9344 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9345 ac_tmp=$tmp
9346
9347 # Set up the scripts for CONFIG_FILES section.
9348 # No need to generate them if there are no CONFIG_FILES.
9349 # This happens for instance with `./config.status config.h'.
9350 if test -n "$CONFIG_FILES"; then
9351
9352
9353 ac_cr=`echo X | tr X '\015'`
9354 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9355 # But we know of no other shell where ac_cr would be empty at this
9356 # point, so we can use a bashism as a fallback.
9357 if test "x$ac_cr" = x; then
9358 eval ac_cr=\$\'\\r\'
9359 fi
9360 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9361 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9362 ac_cs_awk_cr='\\r'
9363 else
9364 ac_cs_awk_cr=$ac_cr
9365 fi
9366
9367 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9368 _ACEOF
9369
9370
9371 {
9372 echo "cat >conf$$subs.awk <<_ACEOF" &&
9373 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9374 echo "_ACEOF"
9375 } >conf$$subs.sh ||
9376 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9377 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9378 ac_delim='%!_!# '
9379 for ac_last_try in false false false false false :; do
9380 . ./conf$$subs.sh ||
9381 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9382
9383 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9384 if test $ac_delim_n = $ac_delim_num; then
9385 break
9386 elif $ac_last_try; then
9387 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9388 else
9389 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9390 fi
9391 done
9392 rm -f conf$$subs.sh
9393
9394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9395 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9396 _ACEOF
9397 sed -n '
9398 h
9399 s/^/S["/; s/!.*/"]=/
9400 p
9401 g
9402 s/^[^!]*!//
9403 :repl
9404 t repl
9405 s/'"$ac_delim"'$//
9406 t delim
9407 :nl
9408 h
9409 s/\(.\{148\}\)..*/\1/
9410 t more1
9411 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9412 p
9413 n
9414 b repl
9415 :more1
9416 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9417 p
9418 g
9419 s/.\{148\}//
9420 t nl
9421 :delim
9422 h
9423 s/\(.\{148\}\)..*/\1/
9424 t more2
9425 s/["\\]/\\&/g; s/^/"/; s/$/"/
9426 p
9427 b
9428 :more2
9429 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9430 p
9431 g
9432 s/.\{148\}//
9433 t delim
9434 ' <conf$$subs.awk | sed '
9435 /^[^""]/{
9436 N
9437 s/\n//
9438 }
9439 ' >>$CONFIG_STATUS || ac_write_fail=1
9440 rm -f conf$$subs.awk
9441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9442 _ACAWK
9443 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9444 for (key in S) S_is_set[key] = 1
9445 FS = ""
9446
9447 }
9448 {
9449 line = $ 0
9450 nfields = split(line, field, "@")
9451 substed = 0
9452 len = length(field[1])
9453 for (i = 2; i < nfields; i++) {
9454 key = field[i]
9455 keylen = length(key)
9456 if (S_is_set[key]) {
9457 value = S[key]
9458 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9459 len += length(value) + length(field[++i])
9460 substed = 1
9461 } else
9462 len += 1 + keylen
9463 }
9464
9465 print line
9466 }
9467
9468 _ACAWK
9469 _ACEOF
9470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9471 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9472 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9473 else
9474 cat
9475 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9476 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9477 _ACEOF
9478
9479 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9480 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9481 # trailing colons and then remove the whole line if VPATH becomes empty
9482 # (actually we leave an empty line to preserve line numbers).
9483 if test "x$srcdir" = x.; then
9484 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9485 h
9486 s///
9487 s/^/:/
9488 s/[ ]*$/:/
9489 s/:\$(srcdir):/:/g
9490 s/:\${srcdir}:/:/g
9491 s/:@srcdir@:/:/g
9492 s/^:*//
9493 s/:*$//
9494 x
9495 s/\(=[ ]*\).*/\1/
9496 G
9497 s/\n//
9498 s/^[^=]*=[ ]*$//
9499 }'
9500 fi
9501
9502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9503 fi # test -n "$CONFIG_FILES"
9504
9505 # Set up the scripts for CONFIG_HEADERS section.
9506 # No need to generate them if there are no CONFIG_HEADERS.
9507 # This happens for instance with `./config.status Makefile'.
9508 if test -n "$CONFIG_HEADERS"; then
9509 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9510 BEGIN {
9511 _ACEOF
9512
9513 # Transform confdefs.h into an awk script `defines.awk', embedded as
9514 # here-document in config.status, that substitutes the proper values into
9515 # config.h.in to produce config.h.
9516
9517 # Create a delimiter string that does not exist in confdefs.h, to ease
9518 # handling of long lines.
9519 ac_delim='%!_!# '
9520 for ac_last_try in false false :; do
9521 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9522 if test -z "$ac_tt"; then
9523 break
9524 elif $ac_last_try; then
9525 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9526 else
9527 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9528 fi
9529 done
9530
9531 # For the awk script, D is an array of macro values keyed by name,
9532 # likewise P contains macro parameters if any. Preserve backslash
9533 # newline sequences.
9534
9535 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9536 sed -n '
9537 s/.\{148\}/&'"$ac_delim"'/g
9538 t rset
9539 :rset
9540 s/^[ ]*#[ ]*define[ ][ ]*/ /
9541 t def
9542 d
9543 :def
9544 s/\\$//
9545 t bsnl
9546 s/["\\]/\\&/g
9547 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9548 D["\1"]=" \3"/p
9549 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9550 d
9551 :bsnl
9552 s/["\\]/\\&/g
9553 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9554 D["\1"]=" \3\\\\\\n"\\/p
9555 t cont
9556 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9557 t cont
9558 d
9559 :cont
9560 n
9561 s/.\{148\}/&'"$ac_delim"'/g
9562 t clear
9563 :clear
9564 s/\\$//
9565 t bsnlc
9566 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9567 d
9568 :bsnlc
9569 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9570 b cont
9571 ' <confdefs.h | sed '
9572 s/'"$ac_delim"'/"\\\
9573 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9574
9575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9576 for (key in D) D_is_set[key] = 1
9577 FS = ""
9578 }
9579 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9580 line = \$ 0
9581 split(line, arg, " ")
9582 if (arg[1] == "#") {
9583 defundef = arg[2]
9584 mac1 = arg[3]
9585 } else {
9586 defundef = substr(arg[1], 2)
9587 mac1 = arg[2]
9588 }
9589 split(mac1, mac2, "(") #)
9590 macro = mac2[1]
9591 prefix = substr(line, 1, index(line, defundef) - 1)
9592 if (D_is_set[macro]) {
9593 # Preserve the white space surrounding the "#".
9594 print prefix "define", macro P[macro] D[macro]
9595 next
9596 } else {
9597 # Replace #undef with comments. This is necessary, for example,
9598 # in the case of _POSIX_SOURCE, which is predefined and required
9599 # on some systems where configure will not decide to define it.
9600 if (defundef == "undef") {
9601 print "/*", prefix defundef, macro, "*/"
9602 next
9603 }
9604 }
9605 }
9606 { print }
9607 _ACAWK
9608 _ACEOF
9609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9610 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9611 fi # test -n "$CONFIG_HEADERS"
9612
9613
9614 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
9615 shift
9616 for ac_tag
9617 do
9618 case $ac_tag in
9619 :[FHLC]) ac_mode=$ac_tag; continue;;
9620 esac
9621 case $ac_mode$ac_tag in
9622 :[FHL]*:*);;
9623 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9624 :[FH]-) ac_tag=-:-;;
9625 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9626 esac
9627 ac_save_IFS=$IFS
9628 IFS=:
9629 set x $ac_tag
9630 IFS=$ac_save_IFS
9631 shift
9632 ac_file=$1
9633 shift
9634
9635 case $ac_mode in
9636 :L) ac_source=$1;;
9637 :[FH])
9638 ac_file_inputs=
9639 for ac_f
9640 do
9641 case $ac_f in
9642 -) ac_f="$ac_tmp/stdin";;
9643 *) # Look for the file first in the build tree, then in the source tree
9644 # (if the path is not absolute). The absolute path cannot be DOS-style,
9645 # because $ac_f cannot contain `:'.
9646 test -f "$ac_f" ||
9647 case $ac_f in
9648 [\\/$]*) false;;
9649 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9650 esac ||
9651 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9652 esac
9653 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9654 as_fn_append ac_file_inputs " '$ac_f'"
9655 done
9656
9657 # Let's still pretend it is `configure' which instantiates (i.e., don't
9658 # use $as_me), people would be surprised to read:
9659 # /* config.h. Generated by config.status. */
9660 configure_input='Generated from '`
9661 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9662 `' by configure.'
9663 if test x"$ac_file" != x-; then
9664 configure_input="$ac_file. $configure_input"
9665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9666 printf "%s\n" "$as_me: creating $ac_file" >&6;}
9667 fi
9668 # Neutralize special characters interpreted by sed in replacement strings.
9669 case $configure_input in #(
9670 *\&* | *\|* | *\\* )
9671 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
9672 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9673 *) ac_sed_conf_input=$configure_input;;
9674 esac
9675
9676 case $ac_tag in
9677 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9678 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9679 esac
9680 ;;
9681 esac
9682
9683 ac_dir=`$as_dirname -- "$ac_file" ||
9684 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9685 X"$ac_file" : 'X\(//\)[^/]' \| \
9686 X"$ac_file" : 'X\(//\)$' \| \
9687 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9688 printf "%s\n" X"$ac_file" |
9689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9690 s//\1/
9691 q
9692 }
9693 /^X\(\/\/\)[^/].*/{
9694 s//\1/
9695 q
9696 }
9697 /^X\(\/\/\)$/{
9698 s//\1/
9699 q
9700 }
9701 /^X\(\/\).*/{
9702 s//\1/
9703 q
9704 }
9705 s/.*/./; q'`
9706 as_dir="$ac_dir"; as_fn_mkdir_p
9707 ac_builddir=.
9708
9709 case "$ac_dir" in
9710 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9711 *)
9712 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
9713 # A ".." for each directory in $ac_dir_suffix.
9714 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9715 case $ac_top_builddir_sub in
9716 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9717 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9718 esac ;;
9719 esac
9720 ac_abs_top_builddir=$ac_pwd
9721 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9722 # for backward compatibility:
9723 ac_top_builddir=$ac_top_build_prefix
9724
9725 case $srcdir in
9726 .) # We are building in place.
9727 ac_srcdir=.
9728 ac_top_srcdir=$ac_top_builddir_sub
9729 ac_abs_top_srcdir=$ac_pwd ;;
9730 [\\/]* | ?:[\\/]* ) # Absolute name.
9731 ac_srcdir=$srcdir$ac_dir_suffix;
9732 ac_top_srcdir=$srcdir
9733 ac_abs_top_srcdir=$srcdir ;;
9734 *) # Relative name.
9735 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9736 ac_top_srcdir=$ac_top_build_prefix$srcdir
9737 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9738 esac
9739 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9740
9741
9742 case $ac_mode in
9743 :F)
9744 #
9745 # CONFIG_FILE
9746 #
9747
9748 _ACEOF
9749
9750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9751 # If the template does not know about datarootdir, expand it.
9752 # FIXME: This hack should be removed a few years after 2.60.
9753 ac_datarootdir_hack=; ac_datarootdir_seen=
9754 ac_sed_dataroot='
9755 /datarootdir/ {
9756 p
9757 q
9758 }
9759 /@datadir@/p
9760 /@docdir@/p
9761 /@infodir@/p
9762 /@localedir@/p
9763 /@mandir@/p'
9764 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9765 *datarootdir*) ac_datarootdir_seen=yes;;
9766 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9768 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9769 _ACEOF
9770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9771 ac_datarootdir_hack='
9772 s&@datadir@&$datadir&g
9773 s&@docdir@&$docdir&g
9774 s&@infodir@&$infodir&g
9775 s&@localedir@&$localedir&g
9776 s&@mandir@&$mandir&g
9777 s&\\\${datarootdir}&$datarootdir&g' ;;
9778 esac
9779 _ACEOF
9780
9781 # Neutralize VPATH when `$srcdir' = `.'.
9782 # Shell code in configure.ac might set extrasub.
9783 # FIXME: do we really want to maintain this feature?
9784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9785 ac_sed_extra="$ac_vpsub
9786 $extrasub
9787 _ACEOF
9788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9789 :t
9790 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9791 s|@configure_input@|$ac_sed_conf_input|;t t
9792 s&@top_builddir@&$ac_top_builddir_sub&;t t
9793 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9794 s&@srcdir@&$ac_srcdir&;t t
9795 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9796 s&@top_srcdir@&$ac_top_srcdir&;t t
9797 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9798 s&@builddir@&$ac_builddir&;t t
9799 s&@abs_builddir@&$ac_abs_builddir&;t t
9800 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9801 $ac_datarootdir_hack
9802 "
9803 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9804 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9805
9806 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9807 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9808 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9809 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9811 which seems to be undefined. Please make sure it is defined" >&5
9812 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9813 which seems to be undefined. Please make sure it is defined" >&2;}
9814
9815 rm -f "$ac_tmp/stdin"
9816 case $ac_file in
9817 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9818 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9819 esac \
9820 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9821 ;;
9822 :H)
9823 #
9824 # CONFIG_HEADER
9825 #
9826 if test x"$ac_file" != x-; then
9827 {
9828 printf "%s\n" "/* $configure_input */" >&1 \
9829 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9830 } >"$ac_tmp/config.h" \
9831 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9832 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9834 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
9835 else
9836 rm -f "$ac_file"
9837 mv "$ac_tmp/config.h" "$ac_file" \
9838 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9839 fi
9840 else
9841 printf "%s\n" "/* $configure_input */" >&1 \
9842 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9843 || as_fn_error $? "could not create -" "$LINENO" 5
9844 fi
9845 ;;
9846
9847
9848 esac
9849
9850 done # for ac_tag
9851
9852
9853 as_fn_exit 0
9854 _ACEOF
9855 ac_clean_files=$ac_clean_files_save
9856
9857 test $ac_write_fail = 0 ||
9858 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9859
9860
9861 # configure is writing to config.log, and then calls config.status.
9862 # config.status does its own redirection, appending to config.log.
9863 # Unfortunately, on DOS this fails, as config.log is still kept open
9864 # by configure, so config.status won't be able to write to it; its
9865 # output is simply discarded. So we exec the FD to /dev/null,
9866 # effectively closing config.log, so it can be properly (re)opened and
9867 # appended to by config.status. When coming back to configure, we
9868 # need to make the FD available again.
9869 if test "$no_create" != yes; then
9870 ac_cs_success=:
9871 ac_config_status_args=
9872 test "$silent" = yes &&
9873 ac_config_status_args="$ac_config_status_args --quiet"
9874 exec 5>/dev/null
9875 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9876 exec 5>>config.log
9877 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9878 # would make configure fail if this is the last instruction.
9879 $ac_cs_success || as_fn_exit 1
9880 fi
9881 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9883 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9884 fi
9885
9886
9887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
9888 printf "%s\n" "$as_me: " >&6;}
9889 if test $BUNDLED_LIBTOM = 1 ; then
9890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using bundled libtomcrypt and libtommath" >&5
9891 printf "%s\n" "$as_me: Using bundled libtomcrypt and libtommath" >&6;}
9892 else
9893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using system libtomcrypt and libtommath" >&5
9894 printf "%s\n" "$as_me: Using system libtomcrypt and libtommath" >&6;}
9895 fi
9896
9897
9898 if test "x$ac_cv_func_getpass" != xyes; then
9899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
9900 printf "%s\n" "$as_me: " >&6;}
9901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: getpass() not available, dbclient will only have public-key authentication" >&5
9902 printf "%s\n" "$as_me: getpass() not available, dbclient will only have public-key authentication" >&6;}
9903 fi
9904
9905 if test "t$found_crypt_func" != there; then
9906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
9907 printf "%s\n" "$as_me: " >&6;}
9908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: crypt() not available, dropbear server will not have password authentication" >&5
9909 printf "%s\n" "$as_me: crypt() not available, dropbear server will not have password authentication" >&6;}
9910 fi
9911
9912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
9913 printf "%s\n" "$as_me: " >&6;}
9914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Now edit localoptions.h to choose features." >&5
9915 printf "%s\n" "$as_me: Now edit localoptions.h to choose features." >&6;}
9916