Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / nettle / configure
blobde720a661fc6daf42c8da425d2d2771e589d889d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for nettle 2.7.1.
5 # Report bugs to <nettle-bugs@lists.lysator.liu.se>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: nettle-bugs@lists.lysator.liu.se about your system,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
275 exit 1
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
513 ECHO_N='-n';;
514 esac
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569 # Initializations.
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
580 # Identity of this package.
581 PACKAGE_NAME='nettle'
582 PACKAGE_TARNAME='nettle'
583 PACKAGE_VERSION='2.7.1'
584 PACKAGE_STRING='nettle 2.7.1'
585 PACKAGE_BUGREPORT='nettle-bugs@lists.lysator.liu.se'
586 PACKAGE_URL=''
588 ac_unique_file="arcfour.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
625 ac_subst_vars='LTLIBOBJS
626 BENCH_LIBS
627 OPENSSL_LIBFLAGS
628 IF_DLL
629 IF_DOCUMENTATION
630 IF_SHARED
631 IF_STATIC
632 IF_HOGWEED
633 MAKEINFO
634 GMP_NUMB_BITS
635 LIBOBJS
636 ALLOCA
637 ALIGNOF_UINT64_T
638 EGREP
639 GREP
642 LIBHOGWEED_LIBS
643 LIBHOGWEED_LINK
644 LIBHOGWEED_FILE_SRC
645 LIBHOGWEED_FILE
646 LIBHOGWEED_SONAME
647 LIBHOGWEED_FORLINK
648 LIBHOGWEED_MINOR
649 LIBHOGWEED_MAJOR
650 LIBNETTLE_LIBS
651 LIBNETTLE_LINK
652 LIBNETTLE_FILE_SRC
653 LIBNETTLE_FILE
654 LIBNETTLE_SONAME
655 LIBNETTLE_FORLINK
656 LIBNETTLE_MINOR
657 LIBNETTLE_MAJOR
658 SHLIBCFLAGS
659 EMULATOR
660 W64_ABI
661 ASM_ALIGN_LOG
662 ASM_MARK_NOEXEC_STACK
663 ASM_TYPE_PROGBITS
664 ASM_TYPE_FUNCTION
665 ASM_ELF_STYLE
666 ASM_SYMBOL_PREFIX
667 CCPIC_MAYBE
668 CCPIC
669 OPT_ASM_SOURCES
670 DEP_PROCESS
671 DEP_FLAGS
672 DEP_INCLUDE
673 EXEEXT_FOR_BUILD
674 CC_FOR_BUILD
675 LN_S
676 MKDIR_P
677 INSTALL_DATA
678 INSTALL_SCRIPT
679 INSTALL_PROGRAM
681 OBJDUMP
683 RANLIB
684 SET_MAKE
685 IF_CXX
686 ac_ct_CXX
687 CXXFLAGS
689 OBJEXT
690 EXEEXT
691 ac_ct_CC
692 CPPFLAGS
693 LDFLAGS
694 CFLAGS
696 host_os
697 host_vendor
698 host_cpu
699 host
700 build_os
701 build_vendor
702 build_cpu
703 build
704 target_alias
705 host_alias
706 build_alias
707 LIBS
708 ECHO_T
709 ECHO_N
710 ECHO_C
711 DEFS
712 mandir
713 localedir
714 libdir
715 psdir
716 pdfdir
717 dvidir
718 htmldir
719 infodir
720 docdir
721 oldincludedir
722 includedir
723 localstatedir
724 sharedstatedir
725 sysconfdir
726 datadir
727 datarootdir
728 libexecdir
729 sbindir
730 bindir
731 program_transform_name
732 prefix
733 exec_prefix
734 PACKAGE_URL
735 PACKAGE_BUGREPORT
736 PACKAGE_STRING
737 PACKAGE_VERSION
738 PACKAGE_TARNAME
739 PACKAGE_NAME
740 PATH_SEPARATOR
741 SHELL'
742 ac_subst_files=''
743 ac_user_opts='
744 enable_option_checking
745 with_include_path
746 with_lib_path
747 enable_public_key
748 enable_assembler
749 enable_static
750 enable_shared
751 enable_pic
752 enable_openssl
753 enable_gcov
754 enable_documentation
755 enable_arm_neon
756 enable_dependency_tracking
758 ac_precious_vars='build_alias
759 host_alias
760 target_alias
762 CFLAGS
763 LDFLAGS
764 LIBS
765 CPPFLAGS
767 CXXFLAGS
769 CC_FOR_BUILD
770 CPP'
773 # Initialize some variables set by options.
774 ac_init_help=
775 ac_init_version=false
776 ac_unrecognized_opts=
777 ac_unrecognized_sep=
778 # The variables have the same names as the options, with
779 # dashes changed to underlines.
780 cache_file=/dev/null
781 exec_prefix=NONE
782 no_create=
783 no_recursion=
784 prefix=NONE
785 program_prefix=NONE
786 program_suffix=NONE
787 program_transform_name=s,x,x,
788 silent=
789 site=
790 srcdir=
791 verbose=
792 x_includes=NONE
793 x_libraries=NONE
795 # Installation directory options.
796 # These are left unexpanded so users can "make install exec_prefix=/foo"
797 # and all the variables that are supposed to be based on exec_prefix
798 # by default will actually change.
799 # Use braces instead of parens because sh, perl, etc. also accept them.
800 # (The list follows the same order as the GNU Coding Standards.)
801 bindir='${exec_prefix}/bin'
802 sbindir='${exec_prefix}/sbin'
803 libexecdir='${exec_prefix}/libexec'
804 datarootdir='${prefix}/share'
805 datadir='${datarootdir}'
806 sysconfdir='${prefix}/etc'
807 sharedstatedir='${prefix}/com'
808 localstatedir='${prefix}/var'
809 includedir='${prefix}/include'
810 oldincludedir='/usr/include'
811 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
812 infodir='${datarootdir}/info'
813 htmldir='${docdir}'
814 dvidir='${docdir}'
815 pdfdir='${docdir}'
816 psdir='${docdir}'
817 libdir='${exec_prefix}/lib'
818 localedir='${datarootdir}/locale'
819 mandir='${datarootdir}/man'
821 ac_prev=
822 ac_dashdash=
823 for ac_option
825 # If the previous option needs an argument, assign it.
826 if test -n "$ac_prev"; then
827 eval $ac_prev=\$ac_option
828 ac_prev=
829 continue
832 case $ac_option in
833 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
834 *=) ac_optarg= ;;
835 *) ac_optarg=yes ;;
836 esac
838 # Accept the important Cygnus configure options, so we can diagnose typos.
840 case $ac_dashdash$ac_option in
842 ac_dashdash=yes ;;
844 -bindir | --bindir | --bindi | --bind | --bin | --bi)
845 ac_prev=bindir ;;
846 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
847 bindir=$ac_optarg ;;
849 -build | --build | --buil | --bui | --bu)
850 ac_prev=build_alias ;;
851 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
852 build_alias=$ac_optarg ;;
854 -cache-file | --cache-file | --cache-fil | --cache-fi \
855 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
856 ac_prev=cache_file ;;
857 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
858 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
859 cache_file=$ac_optarg ;;
861 --config-cache | -C)
862 cache_file=config.cache ;;
864 -datadir | --datadir | --datadi | --datad)
865 ac_prev=datadir ;;
866 -datadir=* | --datadir=* | --datadi=* | --datad=*)
867 datadir=$ac_optarg ;;
869 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
870 | --dataroo | --dataro | --datar)
871 ac_prev=datarootdir ;;
872 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
873 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
874 datarootdir=$ac_optarg ;;
876 -disable-* | --disable-*)
877 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
878 # Reject names that are not valid shell variable names.
879 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
880 as_fn_error $? "invalid feature name: $ac_useropt"
881 ac_useropt_orig=$ac_useropt
882 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
883 case $ac_user_opts in
885 "enable_$ac_useropt"
886 "*) ;;
887 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
888 ac_unrecognized_sep=', ';;
889 esac
890 eval enable_$ac_useropt=no ;;
892 -docdir | --docdir | --docdi | --doc | --do)
893 ac_prev=docdir ;;
894 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895 docdir=$ac_optarg ;;
897 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
898 ac_prev=dvidir ;;
899 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900 dvidir=$ac_optarg ;;
902 -enable-* | --enable-*)
903 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906 as_fn_error $? "invalid feature name: $ac_useropt"
907 ac_useropt_orig=$ac_useropt
908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
911 "enable_$ac_useropt"
912 "*) ;;
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
914 ac_unrecognized_sep=', ';;
915 esac
916 eval enable_$ac_useropt=\$ac_optarg ;;
918 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
919 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
920 | --exec | --exe | --ex)
921 ac_prev=exec_prefix ;;
922 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
923 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
924 | --exec=* | --exe=* | --ex=*)
925 exec_prefix=$ac_optarg ;;
927 -gas | --gas | --ga | --g)
928 # Obsolete; use --with-gas.
929 with_gas=yes ;;
931 -help | --help | --hel | --he | -h)
932 ac_init_help=long ;;
933 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
934 ac_init_help=recursive ;;
935 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
936 ac_init_help=short ;;
938 -host | --host | --hos | --ho)
939 ac_prev=host_alias ;;
940 -host=* | --host=* | --hos=* | --ho=*)
941 host_alias=$ac_optarg ;;
943 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
944 ac_prev=htmldir ;;
945 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
946 | --ht=*)
947 htmldir=$ac_optarg ;;
949 -includedir | --includedir | --includedi | --included | --include \
950 | --includ | --inclu | --incl | --inc)
951 ac_prev=includedir ;;
952 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
953 | --includ=* | --inclu=* | --incl=* | --inc=*)
954 includedir=$ac_optarg ;;
956 -infodir | --infodir | --infodi | --infod | --info | --inf)
957 ac_prev=infodir ;;
958 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
959 infodir=$ac_optarg ;;
961 -libdir | --libdir | --libdi | --libd)
962 ac_prev=libdir ;;
963 -libdir=* | --libdir=* | --libdi=* | --libd=*)
964 libdir=$ac_optarg ;;
966 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
967 | --libexe | --libex | --libe)
968 ac_prev=libexecdir ;;
969 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
970 | --libexe=* | --libex=* | --libe=*)
971 libexecdir=$ac_optarg ;;
973 -localedir | --localedir | --localedi | --localed | --locale)
974 ac_prev=localedir ;;
975 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
976 localedir=$ac_optarg ;;
978 -localstatedir | --localstatedir | --localstatedi | --localstated \
979 | --localstate | --localstat | --localsta | --localst | --locals)
980 ac_prev=localstatedir ;;
981 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
982 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
983 localstatedir=$ac_optarg ;;
985 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
986 ac_prev=mandir ;;
987 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
988 mandir=$ac_optarg ;;
990 -nfp | --nfp | --nf)
991 # Obsolete; use --without-fp.
992 with_fp=no ;;
994 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
995 | --no-cr | --no-c | -n)
996 no_create=yes ;;
998 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000 no_recursion=yes ;;
1002 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1003 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1004 | --oldin | --oldi | --old | --ol | --o)
1005 ac_prev=oldincludedir ;;
1006 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1007 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1008 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1009 oldincludedir=$ac_optarg ;;
1011 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1012 ac_prev=prefix ;;
1013 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1014 prefix=$ac_optarg ;;
1016 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1017 | --program-pre | --program-pr | --program-p)
1018 ac_prev=program_prefix ;;
1019 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1020 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1021 program_prefix=$ac_optarg ;;
1023 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1024 | --program-suf | --program-su | --program-s)
1025 ac_prev=program_suffix ;;
1026 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1027 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1028 program_suffix=$ac_optarg ;;
1030 -program-transform-name | --program-transform-name \
1031 | --program-transform-nam | --program-transform-na \
1032 | --program-transform-n | --program-transform- \
1033 | --program-transform | --program-transfor \
1034 | --program-transfo | --program-transf \
1035 | --program-trans | --program-tran \
1036 | --progr-tra | --program-tr | --program-t)
1037 ac_prev=program_transform_name ;;
1038 -program-transform-name=* | --program-transform-name=* \
1039 | --program-transform-nam=* | --program-transform-na=* \
1040 | --program-transform-n=* | --program-transform-=* \
1041 | --program-transform=* | --program-transfor=* \
1042 | --program-transfo=* | --program-transf=* \
1043 | --program-trans=* | --program-tran=* \
1044 | --progr-tra=* | --program-tr=* | --program-t=*)
1045 program_transform_name=$ac_optarg ;;
1047 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1048 ac_prev=pdfdir ;;
1049 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1050 pdfdir=$ac_optarg ;;
1052 -psdir | --psdir | --psdi | --psd | --ps)
1053 ac_prev=psdir ;;
1054 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055 psdir=$ac_optarg ;;
1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058 | -silent | --silent | --silen | --sile | --sil)
1059 silent=yes ;;
1061 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1062 ac_prev=sbindir ;;
1063 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1064 | --sbi=* | --sb=*)
1065 sbindir=$ac_optarg ;;
1067 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1068 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1069 | --sharedst | --shareds | --shared | --share | --shar \
1070 | --sha | --sh)
1071 ac_prev=sharedstatedir ;;
1072 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1073 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1074 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1075 | --sha=* | --sh=*)
1076 sharedstatedir=$ac_optarg ;;
1078 -site | --site | --sit)
1079 ac_prev=site ;;
1080 -site=* | --site=* | --sit=*)
1081 site=$ac_optarg ;;
1083 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1084 ac_prev=srcdir ;;
1085 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1086 srcdir=$ac_optarg ;;
1088 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1089 | --syscon | --sysco | --sysc | --sys | --sy)
1090 ac_prev=sysconfdir ;;
1091 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1092 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1093 sysconfdir=$ac_optarg ;;
1095 -target | --target | --targe | --targ | --tar | --ta | --t)
1096 ac_prev=target_alias ;;
1097 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1098 target_alias=$ac_optarg ;;
1100 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1101 verbose=yes ;;
1103 -version | --version | --versio | --versi | --vers | -V)
1104 ac_init_version=: ;;
1106 -with-* | --with-*)
1107 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110 as_fn_error $? "invalid package name: $ac_useropt"
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1115 "with_$ac_useropt"
1116 "*) ;;
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1119 esac
1120 eval with_$ac_useropt=\$ac_optarg ;;
1122 -without-* | --without-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error $? "invalid package name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1131 "with_$ac_useropt"
1132 "*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval with_$ac_useropt=no ;;
1138 --x)
1139 # Obsolete; use --with-x.
1140 with_x=yes ;;
1142 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143 | --x-incl | --x-inc | --x-in | --x-i)
1144 ac_prev=x_includes ;;
1145 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147 x_includes=$ac_optarg ;;
1149 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151 ac_prev=x_libraries ;;
1152 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154 x_libraries=$ac_optarg ;;
1156 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1157 Try \`$0 --help' for more information"
1160 *=*)
1161 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1162 # Reject names that are not valid shell variable names.
1163 case $ac_envvar in #(
1164 '' | [0-9]* | *[!_$as_cr_alnum]* )
1165 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1166 esac
1167 eval $ac_envvar=\$ac_optarg
1168 export $ac_envvar ;;
1171 # FIXME: should be removed in autoconf 3.0.
1172 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1178 esac
1179 done
1181 if test -n "$ac_prev"; then
1182 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1183 as_fn_error $? "missing argument to $ac_option"
1186 if test -n "$ac_unrecognized_opts"; then
1187 case $enable_option_checking in
1188 no) ;;
1189 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1190 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1191 esac
1194 # Check all directory arguments for consistency.
1195 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1196 datadir sysconfdir sharedstatedir localstatedir includedir \
1197 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1198 libdir localedir mandir
1200 eval ac_val=\$$ac_var
1201 # Remove trailing slashes.
1202 case $ac_val in
1203 */ )
1204 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1205 eval $ac_var=\$ac_val;;
1206 esac
1207 # Be sure to have absolute directory names.
1208 case $ac_val in
1209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211 esac
1212 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1213 done
1215 # There might be people who depend on the old broken behavior: `$host'
1216 # used to hold the argument of --host etc.
1217 # FIXME: To remove some day.
1218 build=$build_alias
1219 host=$host_alias
1220 target=$target_alias
1222 # FIXME: To remove some day.
1223 if test "x$host_alias" != x; then
1224 if test "x$build_alias" = x; then
1225 cross_compiling=maybe
1226 elif test "x$build_alias" != "x$host_alias"; then
1227 cross_compiling=yes
1231 ac_tool_prefix=
1232 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234 test "$silent" = yes && exec 6>/dev/null
1237 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1238 ac_ls_di=`ls -di .` &&
1239 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1240 as_fn_error $? "working directory cannot be determined"
1241 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1242 as_fn_error $? "pwd does not report name of working directory"
1245 # Find the source files, if location was not specified.
1246 if test -z "$srcdir"; then
1247 ac_srcdir_defaulted=yes
1248 # Try the directory containing this script, then the parent directory.
1249 ac_confdir=`$as_dirname -- "$as_myself" ||
1250 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251 X"$as_myself" : 'X\(//\)[^/]' \| \
1252 X"$as_myself" : 'X\(//\)$' \| \
1253 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1254 $as_echo X"$as_myself" |
1255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1256 s//\1/
1259 /^X\(\/\/\)[^/].*/{
1260 s//\1/
1263 /^X\(\/\/\)$/{
1264 s//\1/
1267 /^X\(\/\).*/{
1268 s//\1/
1271 s/.*/./; q'`
1272 srcdir=$ac_confdir
1273 if test ! -r "$srcdir/$ac_unique_file"; then
1274 srcdir=..
1276 else
1277 ac_srcdir_defaulted=no
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1281 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1283 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1284 ac_abs_confdir=`(
1285 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1286 pwd)`
1287 # When building in place, set srcdir=.
1288 if test "$ac_abs_confdir" = "$ac_pwd"; then
1289 srcdir=.
1291 # Remove unnecessary trailing slashes from srcdir.
1292 # Double slashes in file names in object file debugging info
1293 # mess up M-x gdb in Emacs.
1294 case $srcdir in
1295 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1296 esac
1297 for ac_var in $ac_precious_vars; do
1298 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1299 eval ac_env_${ac_var}_value=\$${ac_var}
1300 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1302 done
1305 # Report the --help message.
1307 if test "$ac_init_help" = "long"; then
1308 # Omit some internal or obsolete options to make the list less imposing.
1309 # This message is too long to be a string in the A/UX 3.1 sh.
1310 cat <<_ACEOF
1311 \`configure' configures nettle 2.7.1 to adapt to many kinds of systems.
1313 Usage: $0 [OPTION]... [VAR=VALUE]...
1315 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316 VAR=VALUE. See below for descriptions of some of the useful variables.
1318 Defaults for the options are specified in brackets.
1320 Configuration:
1321 -h, --help display this help and exit
1322 --help=short display options specific to this package
1323 --help=recursive display the short help of all the included packages
1324 -V, --version display version information and exit
1325 -q, --quiet, --silent do not print \`checking ...' messages
1326 --cache-file=FILE cache test results in FILE [disabled]
1327 -C, --config-cache alias for \`--cache-file=config.cache'
1328 -n, --no-create do not create output files
1329 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1331 Installation directories:
1332 --prefix=PREFIX install architecture-independent files in PREFIX
1333 [$ac_default_prefix]
1334 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1335 [PREFIX]
1337 By default, \`make install' will install all the files in
1338 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1339 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340 for instance \`--prefix=\$HOME'.
1342 For better control, use the options below.
1344 Fine tuning of the installation directories:
1345 --bindir=DIR user executables [EPREFIX/bin]
1346 --sbindir=DIR system admin executables [EPREFIX/sbin]
1347 --libexecdir=DIR program executables [EPREFIX/libexec]
1348 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1349 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1350 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1351 --libdir=DIR object code libraries [EPREFIX/lib]
1352 --includedir=DIR C header files [PREFIX/include]
1353 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1354 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1355 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1356 --infodir=DIR info documentation [DATAROOTDIR/info]
1357 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1358 --mandir=DIR man documentation [DATAROOTDIR/man]
1359 --docdir=DIR documentation root [DATAROOTDIR/doc/nettle]
1360 --htmldir=DIR html documentation [DOCDIR]
1361 --dvidir=DIR dvi documentation [DOCDIR]
1362 --pdfdir=DIR pdf documentation [DOCDIR]
1363 --psdir=DIR ps documentation [DOCDIR]
1364 _ACEOF
1366 cat <<\_ACEOF
1368 System types:
1369 --build=BUILD configure for building on BUILD [guessed]
1370 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1371 _ACEOF
1374 if test -n "$ac_init_help"; then
1375 case $ac_init_help in
1376 short | recursive ) echo "Configuration of nettle 2.7.1:";;
1377 esac
1378 cat <<\_ACEOF
1380 Optional Features:
1381 --disable-option-checking ignore unrecognized --enable/--with options
1382 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1383 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1384 --disable-public-key Disable public key algorithms
1385 --disable-assembler Disable assembler code
1386 --disable-static Do not build any static library
1387 --disable-shared Do not build any shared library
1388 --disable-pic Do not try to compile library files as position
1389 independent code
1390 --disable-openssl Do not include openssl glue in the benchmark program
1391 --enable-gcov Instrument for gcov (requires a modern gcc)
1392 --disable-documentation Omit building and installing the documentation.
1393 (default=auto)
1394 --enable-arm-neon Enable ARM Neon assembly. (default=auto)
1395 --disable-dependency-tracking
1396 Disable dependency tracking. Dependency tracking
1397 doesn't work with BSD make
1399 Optional Packages:
1400 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1401 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1402 --with-include-path A colon-separated list of directories to search for
1403 include files
1404 --with-lib-path A colon-separated list of directories to search for
1405 libraries
1407 Some influential environment variables:
1408 CC C compiler command
1409 CFLAGS C compiler flags
1410 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1411 nonstandard directory <lib dir>
1412 LIBS libraries to pass to the linker, e.g. -l<library>
1413 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1414 you have headers in a nonstandard directory <include dir>
1415 CXX C++ compiler command
1416 CXXFLAGS C++ compiler flags
1417 CC_FOR_BUILD
1418 build system C compiler
1419 CPP C preprocessor
1421 Use these variables to override the choices made by `configure' or to help
1422 it to find libraries and programs with nonstandard names/locations.
1424 Report bugs to <nettle-bugs@lists.lysator.liu.se>.
1425 _ACEOF
1426 ac_status=$?
1429 if test "$ac_init_help" = "recursive"; then
1430 # If there are subdirs, report their specific --help.
1431 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1432 test -d "$ac_dir" ||
1433 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1434 continue
1435 ac_builddir=.
1437 case "$ac_dir" in
1438 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1441 # A ".." for each directory in $ac_dir_suffix.
1442 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1443 case $ac_top_builddir_sub in
1444 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1445 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1446 esac ;;
1447 esac
1448 ac_abs_top_builddir=$ac_pwd
1449 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1450 # for backward compatibility:
1451 ac_top_builddir=$ac_top_build_prefix
1453 case $srcdir in
1454 .) # We are building in place.
1455 ac_srcdir=.
1456 ac_top_srcdir=$ac_top_builddir_sub
1457 ac_abs_top_srcdir=$ac_pwd ;;
1458 [\\/]* | ?:[\\/]* ) # Absolute name.
1459 ac_srcdir=$srcdir$ac_dir_suffix;
1460 ac_top_srcdir=$srcdir
1461 ac_abs_top_srcdir=$srcdir ;;
1462 *) # Relative name.
1463 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1464 ac_top_srcdir=$ac_top_build_prefix$srcdir
1465 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1466 esac
1467 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1469 cd "$ac_dir" || { ac_status=$?; continue; }
1470 # Check for guested configure.
1471 if test -f "$ac_srcdir/configure.gnu"; then
1472 echo &&
1473 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1474 elif test -f "$ac_srcdir/configure"; then
1475 echo &&
1476 $SHELL "$ac_srcdir/configure" --help=recursive
1477 else
1478 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1479 fi || ac_status=$?
1480 cd "$ac_pwd" || { ac_status=$?; break; }
1481 done
1484 test -n "$ac_init_help" && exit $ac_status
1485 if $ac_init_version; then
1486 cat <<\_ACEOF
1487 nettle configure 2.7.1
1488 generated by GNU Autoconf 2.69
1490 Copyright (C) 2012 Free Software Foundation, Inc.
1491 This configure script is free software; the Free Software Foundation
1492 gives unlimited permission to copy, distribute and modify it.
1493 _ACEOF
1494 exit
1497 ## ------------------------ ##
1498 ## Autoconf initialization. ##
1499 ## ------------------------ ##
1501 # ac_fn_c_try_compile LINENO
1502 # --------------------------
1503 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1504 ac_fn_c_try_compile ()
1506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1507 rm -f conftest.$ac_objext
1508 if { { ac_try="$ac_compile"
1509 case "(($ac_try" in
1510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1511 *) ac_try_echo=$ac_try;;
1512 esac
1513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1514 $as_echo "$ac_try_echo"; } >&5
1515 (eval "$ac_compile") 2>conftest.err
1516 ac_status=$?
1517 if test -s conftest.err; then
1518 grep -v '^ *+' conftest.err >conftest.er1
1519 cat conftest.er1 >&5
1520 mv -f conftest.er1 conftest.err
1522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1523 test $ac_status = 0; } && {
1524 test -z "$ac_c_werror_flag" ||
1525 test ! -s conftest.err
1526 } && test -s conftest.$ac_objext; then :
1527 ac_retval=0
1528 else
1529 $as_echo "$as_me: failed program was:" >&5
1530 sed 's/^/| /' conftest.$ac_ext >&5
1532 ac_retval=1
1534 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1535 as_fn_set_status $ac_retval
1537 } # ac_fn_c_try_compile
1539 # ac_fn_cxx_try_compile LINENO
1540 # ----------------------------
1541 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1542 ac_fn_cxx_try_compile ()
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 rm -f conftest.$ac_objext
1546 if { { ac_try="$ac_compile"
1547 case "(($ac_try" in
1548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549 *) ac_try_echo=$ac_try;;
1550 esac
1551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552 $as_echo "$ac_try_echo"; } >&5
1553 (eval "$ac_compile") 2>conftest.err
1554 ac_status=$?
1555 if test -s conftest.err; then
1556 grep -v '^ *+' conftest.err >conftest.er1
1557 cat conftest.er1 >&5
1558 mv -f conftest.er1 conftest.err
1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561 test $ac_status = 0; } && {
1562 test -z "$ac_cxx_werror_flag" ||
1563 test ! -s conftest.err
1564 } && test -s conftest.$ac_objext; then :
1565 ac_retval=0
1566 else
1567 $as_echo "$as_me: failed program was:" >&5
1568 sed 's/^/| /' conftest.$ac_ext >&5
1570 ac_retval=1
1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573 as_fn_set_status $ac_retval
1575 } # ac_fn_cxx_try_compile
1577 # ac_fn_c_try_cpp LINENO
1578 # ----------------------
1579 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_cpp ()
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 if { { ac_try="$ac_cpp conftest.$ac_ext"
1584 case "(($ac_try" in
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1587 esac
1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1591 ac_status=$?
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } > conftest.i && {
1599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1601 }; then :
1602 ac_retval=0
1603 else
1604 $as_echo "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.$ac_ext >&5
1607 ac_retval=1
1609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610 as_fn_set_status $ac_retval
1612 } # ac_fn_c_try_cpp
1614 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1615 # -------------------------------------------
1616 # Tests whether TYPE exists after having included INCLUDES, setting cache
1617 # variable VAR accordingly.
1618 ac_fn_c_check_type ()
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1622 $as_echo_n "checking for $2... " >&6; }
1623 if eval \${$3+:} false; then :
1624 $as_echo_n "(cached) " >&6
1625 else
1626 eval "$3=no"
1627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1628 /* end confdefs.h. */
1631 main ()
1633 if (sizeof ($2))
1634 return 0;
1636 return 0;
1638 _ACEOF
1639 if ac_fn_c_try_compile "$LINENO"; then :
1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641 /* end confdefs.h. */
1644 main ()
1646 if (sizeof (($2)))
1647 return 0;
1649 return 0;
1651 _ACEOF
1652 if ac_fn_c_try_compile "$LINENO"; then :
1654 else
1655 eval "$3=yes"
1657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1661 eval ac_res=\$$3
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1663 $as_echo "$ac_res" >&6; }
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 } # ac_fn_c_check_type
1668 # ac_fn_c_try_run LINENO
1669 # ----------------------
1670 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1671 # that executables *can* be run.
1672 ac_fn_c_try_run ()
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 if { { ac_try="$ac_link"
1676 case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_link") 2>&5
1683 ac_status=$?
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1686 { { case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_try") 2>&5
1693 ac_status=$?
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; }; }; then :
1696 ac_retval=0
1697 else
1698 $as_echo "$as_me: program exited with status $ac_status" >&5
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1702 ac_retval=$ac_status
1704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1708 } # ac_fn_c_try_run
1710 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1711 # -------------------------------------------------------
1712 # Tests whether HEADER exists and can be compiled using the include files in
1713 # INCLUDES, setting the cache variable VAR accordingly.
1714 ac_fn_c_check_header_compile ()
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1718 $as_echo_n "checking for $2... " >&6; }
1719 if eval \${$3+:} false; then :
1720 $as_echo_n "(cached) " >&6
1721 else
1722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723 /* end confdefs.h. */
1725 #include <$2>
1726 _ACEOF
1727 if ac_fn_c_try_compile "$LINENO"; then :
1728 eval "$3=yes"
1729 else
1730 eval "$3=no"
1732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1734 eval ac_res=\$$3
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736 $as_echo "$ac_res" >&6; }
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 } # ac_fn_c_check_header_compile
1741 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1742 # --------------------------------------------
1743 # Tries to find the compile-time value of EXPR in a program that includes
1744 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1745 # computed
1746 ac_fn_c_compute_int ()
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 if test "$cross_compiling" = yes; then
1750 # Depending upon the size, compute the lo and hi bounds.
1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752 /* end confdefs.h. */
1755 main ()
1757 static int test_array [1 - 2 * !(($2) >= 0)];
1758 test_array [0] = 0;
1759 return test_array [0];
1762 return 0;
1764 _ACEOF
1765 if ac_fn_c_try_compile "$LINENO"; then :
1766 ac_lo=0 ac_mid=0
1767 while :; do
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1772 main ()
1774 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1775 test_array [0] = 0;
1776 return test_array [0];
1779 return 0;
1781 _ACEOF
1782 if ac_fn_c_try_compile "$LINENO"; then :
1783 ac_hi=$ac_mid; break
1784 else
1785 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1786 if test $ac_lo -le $ac_mid; then
1787 ac_lo= ac_hi=
1788 break
1790 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793 done
1794 else
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1799 main ()
1801 static int test_array [1 - 2 * !(($2) < 0)];
1802 test_array [0] = 0;
1803 return test_array [0];
1806 return 0;
1808 _ACEOF
1809 if ac_fn_c_try_compile "$LINENO"; then :
1810 ac_hi=-1 ac_mid=-1
1811 while :; do
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1816 main ()
1818 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1819 test_array [0] = 0;
1820 return test_array [0];
1823 return 0;
1825 _ACEOF
1826 if ac_fn_c_try_compile "$LINENO"; then :
1827 ac_lo=$ac_mid; break
1828 else
1829 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1830 if test $ac_mid -le $ac_hi; then
1831 ac_lo= ac_hi=
1832 break
1834 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1837 done
1838 else
1839 ac_lo= ac_hi=
1841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1844 # Binary search between lo and hi bounds.
1845 while test "x$ac_lo" != "x$ac_hi"; do
1846 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h. */
1851 main ()
1853 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1854 test_array [0] = 0;
1855 return test_array [0];
1858 return 0;
1860 _ACEOF
1861 if ac_fn_c_try_compile "$LINENO"; then :
1862 ac_hi=$ac_mid
1863 else
1864 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1867 done
1868 case $ac_lo in #((
1869 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1870 '') ac_retval=1 ;;
1871 esac
1872 else
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1876 static long int longval () { return $2; }
1877 static unsigned long int ulongval () { return $2; }
1878 #include <stdio.h>
1879 #include <stdlib.h>
1881 main ()
1884 FILE *f = fopen ("conftest.val", "w");
1885 if (! f)
1886 return 1;
1887 if (($2) < 0)
1889 long int i = longval ();
1890 if (i != ($2))
1891 return 1;
1892 fprintf (f, "%ld", i);
1894 else
1896 unsigned long int i = ulongval ();
1897 if (i != ($2))
1898 return 1;
1899 fprintf (f, "%lu", i);
1901 /* Do not output a trailing newline, as this causes \r\n confusion
1902 on some platforms. */
1903 return ferror (f) || fclose (f) != 0;
1906 return 0;
1908 _ACEOF
1909 if ac_fn_c_try_run "$LINENO"; then :
1910 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1911 else
1912 ac_retval=1
1914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1915 conftest.$ac_objext conftest.beam conftest.$ac_ext
1916 rm -f conftest.val
1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920 as_fn_set_status $ac_retval
1922 } # ac_fn_c_compute_int
1924 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1925 # -------------------------------------------------------
1926 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1927 # the include files in INCLUDES and setting the cache variable VAR
1928 # accordingly.
1929 ac_fn_c_check_header_mongrel ()
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 if eval \${$3+:} false; then :
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1934 $as_echo_n "checking for $2... " >&6; }
1935 if eval \${$3+:} false; then :
1936 $as_echo_n "(cached) " >&6
1938 eval ac_res=\$$3
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1941 else
1942 # Is the header compilable?
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1944 $as_echo_n "checking $2 usability... " >&6; }
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1948 #include <$2>
1949 _ACEOF
1950 if ac_fn_c_try_compile "$LINENO"; then :
1951 ac_header_compiler=yes
1952 else
1953 ac_header_compiler=no
1955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1957 $as_echo "$ac_header_compiler" >&6; }
1959 # Is the header present?
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1961 $as_echo_n "checking $2 presence... " >&6; }
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1964 #include <$2>
1965 _ACEOF
1966 if ac_fn_c_try_cpp "$LINENO"; then :
1967 ac_header_preproc=yes
1968 else
1969 ac_header_preproc=no
1971 rm -f conftest.err conftest.i conftest.$ac_ext
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1973 $as_echo "$ac_header_preproc" >&6; }
1975 # So? What about this header?
1976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1977 yes:no: )
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1979 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1981 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1983 no:yes:* )
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1985 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1987 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1989 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1991 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1993 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1994 ( $as_echo "## ----------------------------------------------- ##
1995 ## Report this to nettle-bugs@lists.lysator.liu.se ##
1996 ## ----------------------------------------------- ##"
1997 ) | sed "s/^/$as_me: WARNING: /" >&2
1999 esac
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2001 $as_echo_n "checking for $2... " >&6; }
2002 if eval \${$3+:} false; then :
2003 $as_echo_n "(cached) " >&6
2004 else
2005 eval "$3=\$ac_header_compiler"
2007 eval ac_res=\$$3
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 } # ac_fn_c_check_header_mongrel
2015 # ac_fn_c_try_link LINENO
2016 # -----------------------
2017 # Try to link conftest.$ac_ext, and return whether this succeeded.
2018 ac_fn_c_try_link ()
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 rm -f conftest.$ac_objext conftest$ac_exeext
2022 if { { ac_try="$ac_link"
2023 case "(($ac_try" in
2024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025 *) ac_try_echo=$ac_try;;
2026 esac
2027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029 (eval "$ac_link") 2>conftest.err
2030 ac_status=$?
2031 if test -s conftest.err; then
2032 grep -v '^ *+' conftest.err >conftest.er1
2033 cat conftest.er1 >&5
2034 mv -f conftest.er1 conftest.err
2036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2037 test $ac_status = 0; } && {
2038 test -z "$ac_c_werror_flag" ||
2039 test ! -s conftest.err
2040 } && test -s conftest$ac_exeext && {
2041 test "$cross_compiling" = yes ||
2042 test -x conftest$ac_exeext
2043 }; then :
2044 ac_retval=0
2045 else
2046 $as_echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2049 ac_retval=1
2051 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2052 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2053 # interfere with the next link command; also delete a directory that is
2054 # left behind by Apple's compiler. We do this before executing the actions.
2055 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2056 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057 as_fn_set_status $ac_retval
2059 } # ac_fn_c_try_link
2061 # ac_fn_c_check_func LINENO FUNC VAR
2062 # ----------------------------------
2063 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2064 ac_fn_c_check_func ()
2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2068 $as_echo_n "checking for $2... " >&6; }
2069 if eval \${$3+:} false; then :
2070 $as_echo_n "(cached) " >&6
2071 else
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2074 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2076 #define $2 innocuous_$2
2078 /* System header to define __stub macros and hopefully few prototypes,
2079 which can conflict with char $2 (); below.
2080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2081 <limits.h> exists even on freestanding compilers. */
2083 #ifdef __STDC__
2084 # include <limits.h>
2085 #else
2086 # include <assert.h>
2087 #endif
2089 #undef $2
2091 /* Override any GCC internal prototype to avoid an error.
2092 Use char because int might match the return type of a GCC
2093 builtin and then its argument prototype would still apply. */
2094 #ifdef __cplusplus
2095 extern "C"
2096 #endif
2097 char $2 ();
2098 /* The GNU C library defines this for functions which it implements
2099 to always fail with ENOSYS. Some functions are actually named
2100 something starting with __ and the normal name is an alias. */
2101 #if defined __stub_$2 || defined __stub___$2
2102 choke me
2103 #endif
2106 main ()
2108 return $2 ();
2110 return 0;
2112 _ACEOF
2113 if ac_fn_c_try_link "$LINENO"; then :
2114 eval "$3=yes"
2115 else
2116 eval "$3=no"
2118 rm -f core conftest.err conftest.$ac_objext \
2119 conftest$ac_exeext conftest.$ac_ext
2121 eval ac_res=\$$3
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123 $as_echo "$ac_res" >&6; }
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126 } # ac_fn_c_check_func
2127 cat >config.log <<_ACEOF
2128 This file contains any messages produced by compilers while
2129 running configure, to aid debugging if configure makes a mistake.
2131 It was created by nettle $as_me 2.7.1, which was
2132 generated by GNU Autoconf 2.69. Invocation command line was
2134 $ $0 $@
2136 _ACEOF
2137 exec 5>>config.log
2139 cat <<_ASUNAME
2140 ## --------- ##
2141 ## Platform. ##
2142 ## --------- ##
2144 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2145 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2146 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2147 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2148 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2150 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2151 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2153 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2154 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2155 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2156 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2157 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2158 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2159 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2161 _ASUNAME
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 for as_dir in $PATH
2166 IFS=$as_save_IFS
2167 test -z "$as_dir" && as_dir=.
2168 $as_echo "PATH: $as_dir"
2169 done
2170 IFS=$as_save_IFS
2172 } >&5
2174 cat >&5 <<_ACEOF
2177 ## ----------- ##
2178 ## Core tests. ##
2179 ## ----------- ##
2181 _ACEOF
2184 # Keep a trace of the command line.
2185 # Strip out --no-create and --no-recursion so they do not pile up.
2186 # Strip out --silent because we don't want to record it for future runs.
2187 # Also quote any args containing shell meta-characters.
2188 # Make two passes to allow for proper duplicate-argument suppression.
2189 ac_configure_args=
2190 ac_configure_args0=
2191 ac_configure_args1=
2192 ac_must_keep_next=false
2193 for ac_pass in 1 2
2195 for ac_arg
2197 case $ac_arg in
2198 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2199 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2200 | -silent | --silent | --silen | --sile | --sil)
2201 continue ;;
2202 *\'*)
2203 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2204 esac
2205 case $ac_pass in
2206 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2208 as_fn_append ac_configure_args1 " '$ac_arg'"
2209 if test $ac_must_keep_next = true; then
2210 ac_must_keep_next=false # Got value, back to normal.
2211 else
2212 case $ac_arg in
2213 *=* | --config-cache | -C | -disable-* | --disable-* \
2214 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2215 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2216 | -with-* | --with-* | -without-* | --without-* | --x)
2217 case "$ac_configure_args0 " in
2218 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2219 esac
2221 -* ) ac_must_keep_next=true ;;
2222 esac
2224 as_fn_append ac_configure_args " '$ac_arg'"
2226 esac
2227 done
2228 done
2229 { ac_configure_args0=; unset ac_configure_args0;}
2230 { ac_configure_args1=; unset ac_configure_args1;}
2232 # When interrupted or exit'd, cleanup temporary files, and complete
2233 # config.log. We remove comments because anyway the quotes in there
2234 # would cause problems or look ugly.
2235 # WARNING: Use '\'' to represent an apostrophe within the trap.
2236 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2237 trap 'exit_status=$?
2238 # Save into config.log some information that might help in debugging.
2240 echo
2242 $as_echo "## ---------------- ##
2243 ## Cache variables. ##
2244 ## ---------------- ##"
2245 echo
2246 # The following way of writing the cache mishandles newlines in values,
2248 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2249 eval ac_val=\$$ac_var
2250 case $ac_val in #(
2251 *${as_nl}*)
2252 case $ac_var in #(
2253 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2254 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2255 esac
2256 case $ac_var in #(
2257 _ | IFS | as_nl) ;; #(
2258 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2259 *) { eval $ac_var=; unset $ac_var;} ;;
2260 esac ;;
2261 esac
2262 done
2263 (set) 2>&1 |
2264 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2265 *${as_nl}ac_space=\ *)
2266 sed -n \
2267 "s/'\''/'\''\\\\'\'''\''/g;
2268 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2269 ;; #(
2271 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2273 esac |
2274 sort
2276 echo
2278 $as_echo "## ----------------- ##
2279 ## Output variables. ##
2280 ## ----------------- ##"
2281 echo
2282 for ac_var in $ac_subst_vars
2284 eval ac_val=\$$ac_var
2285 case $ac_val in
2286 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2287 esac
2288 $as_echo "$ac_var='\''$ac_val'\''"
2289 done | sort
2290 echo
2292 if test -n "$ac_subst_files"; then
2293 $as_echo "## ------------------- ##
2294 ## File substitutions. ##
2295 ## ------------------- ##"
2296 echo
2297 for ac_var in $ac_subst_files
2299 eval ac_val=\$$ac_var
2300 case $ac_val in
2301 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2302 esac
2303 $as_echo "$ac_var='\''$ac_val'\''"
2304 done | sort
2305 echo
2308 if test -s confdefs.h; then
2309 $as_echo "## ----------- ##
2310 ## confdefs.h. ##
2311 ## ----------- ##"
2312 echo
2313 cat confdefs.h
2314 echo
2316 test "$ac_signal" != 0 &&
2317 $as_echo "$as_me: caught signal $ac_signal"
2318 $as_echo "$as_me: exit $exit_status"
2319 } >&5
2320 rm -f core *.core core.conftest.* &&
2321 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2322 exit $exit_status
2324 for ac_signal in 1 2 13 15; do
2325 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2326 done
2327 ac_signal=0
2329 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2330 rm -f -r conftest* confdefs.h
2332 $as_echo "/* confdefs.h */" > confdefs.h
2334 # Predefined preprocessor variables.
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_NAME "$PACKAGE_NAME"
2338 _ACEOF
2340 cat >>confdefs.h <<_ACEOF
2341 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2342 _ACEOF
2344 cat >>confdefs.h <<_ACEOF
2345 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2346 _ACEOF
2348 cat >>confdefs.h <<_ACEOF
2349 #define PACKAGE_STRING "$PACKAGE_STRING"
2350 _ACEOF
2352 cat >>confdefs.h <<_ACEOF
2353 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2354 _ACEOF
2356 cat >>confdefs.h <<_ACEOF
2357 #define PACKAGE_URL "$PACKAGE_URL"
2358 _ACEOF
2361 # Let the site file select an alternate cache file if it wants to.
2362 # Prefer an explicitly selected file to automatically selected ones.
2363 ac_site_file1=NONE
2364 ac_site_file2=NONE
2365 if test -n "$CONFIG_SITE"; then
2366 # We do not want a PATH search for config.site.
2367 case $CONFIG_SITE in #((
2368 -*) ac_site_file1=./$CONFIG_SITE;;
2369 */*) ac_site_file1=$CONFIG_SITE;;
2370 *) ac_site_file1=./$CONFIG_SITE;;
2371 esac
2372 elif test "x$prefix" != xNONE; then
2373 ac_site_file1=$prefix/share/config.site
2374 ac_site_file2=$prefix/etc/config.site
2375 else
2376 ac_site_file1=$ac_default_prefix/share/config.site
2377 ac_site_file2=$ac_default_prefix/etc/config.site
2379 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2381 test "x$ac_site_file" = xNONE && continue
2382 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2384 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2385 sed 's/^/| /' "$ac_site_file" >&5
2386 . "$ac_site_file" \
2387 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2389 as_fn_error $? "failed to load site script $ac_site_file
2390 See \`config.log' for more details" "$LINENO" 5; }
2392 done
2394 if test -r "$cache_file"; then
2395 # Some versions of bash will fail to source /dev/null (special files
2396 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2397 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2399 $as_echo "$as_me: loading cache $cache_file" >&6;}
2400 case $cache_file in
2401 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2402 *) . "./$cache_file";;
2403 esac
2405 else
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2407 $as_echo "$as_me: creating cache $cache_file" >&6;}
2408 >$cache_file
2411 # Check that the precious variables saved in the cache have kept the same
2412 # value.
2413 ac_cache_corrupted=false
2414 for ac_var in $ac_precious_vars; do
2415 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2416 eval ac_new_set=\$ac_env_${ac_var}_set
2417 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2418 eval ac_new_val=\$ac_env_${ac_var}_value
2419 case $ac_old_set,$ac_new_set in
2420 set,)
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2422 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2423 ac_cache_corrupted=: ;;
2424 ,set)
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2426 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2427 ac_cache_corrupted=: ;;
2428 ,);;
2430 if test "x$ac_old_val" != "x$ac_new_val"; then
2431 # differences in whitespace do not lead to failure.
2432 ac_old_val_w=`echo x $ac_old_val`
2433 ac_new_val_w=`echo x $ac_new_val`
2434 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2436 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2437 ac_cache_corrupted=:
2438 else
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2440 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2441 eval $ac_var=\$ac_old_val
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2444 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2446 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2447 fi;;
2448 esac
2449 # Pass precious variables to config.status.
2450 if test "$ac_new_set" = set; then
2451 case $ac_new_val in
2452 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2453 *) ac_arg=$ac_var=$ac_new_val ;;
2454 esac
2455 case " $ac_configure_args " in
2456 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2457 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2458 esac
2460 done
2461 if $ac_cache_corrupted; then
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2465 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2466 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2468 ## -------------------- ##
2469 ## Main body of script. ##
2470 ## -------------------- ##
2472 ac_ext=c
2473 ac_cpp='$CPP $CPPFLAGS'
2474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2481 # Needed to stop autoconf from looking for files in parent directories.
2482 ac_aux_dir=
2483 for ac_dir in . "$srcdir"/.; do
2484 if test -f "$ac_dir/install-sh"; then
2485 ac_aux_dir=$ac_dir
2486 ac_install_sh="$ac_aux_dir/install-sh -c"
2487 break
2488 elif test -f "$ac_dir/install.sh"; then
2489 ac_aux_dir=$ac_dir
2490 ac_install_sh="$ac_aux_dir/install.sh -c"
2491 break
2492 elif test -f "$ac_dir/shtool"; then
2493 ac_aux_dir=$ac_dir
2494 ac_install_sh="$ac_aux_dir/shtool install -c"
2495 break
2497 done
2498 if test -z "$ac_aux_dir"; then
2499 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2502 # These three variables are undocumented and unsupported,
2503 # and are intended to be withdrawn in a future Autoconf release.
2504 # They can cause serious problems if a builder's source tree is in a directory
2505 # whose full name contains unusual characters.
2506 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2507 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2508 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2512 ac_config_headers="$ac_config_headers config.h"
2515 LIBNETTLE_MAJOR=4
2516 LIBNETTLE_MINOR=7
2518 LIBHOGWEED_MAJOR=2
2519 LIBHOGWEED_MINOR=5
2521 # Make sure we can run config.sub.
2522 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2523 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2526 $as_echo_n "checking build system type... " >&6; }
2527 if ${ac_cv_build+:} false; then :
2528 $as_echo_n "(cached) " >&6
2529 else
2530 ac_build_alias=$build_alias
2531 test "x$ac_build_alias" = x &&
2532 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2533 test "x$ac_build_alias" = x &&
2534 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2535 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2536 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2540 $as_echo "$ac_cv_build" >&6; }
2541 case $ac_cv_build in
2542 *-*-*) ;;
2543 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2544 esac
2545 build=$ac_cv_build
2546 ac_save_IFS=$IFS; IFS='-'
2547 set x $ac_cv_build
2548 shift
2549 build_cpu=$1
2550 build_vendor=$2
2551 shift; shift
2552 # Remember, the first character of IFS is used to create $*,
2553 # except with old shells:
2554 build_os=$*
2555 IFS=$ac_save_IFS
2556 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2560 $as_echo_n "checking host system type... " >&6; }
2561 if ${ac_cv_host+:} false; then :
2562 $as_echo_n "(cached) " >&6
2563 else
2564 if test "x$host_alias" = x; then
2565 ac_cv_host=$ac_cv_build
2566 else
2567 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2568 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2573 $as_echo "$ac_cv_host" >&6; }
2574 case $ac_cv_host in
2575 *-*-*) ;;
2576 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2577 esac
2578 host=$ac_cv_host
2579 ac_save_IFS=$IFS; IFS='-'
2580 set x $ac_cv_host
2581 shift
2582 host_cpu=$1
2583 host_vendor=$2
2584 shift; shift
2585 # Remember, the first character of IFS is used to create $*,
2586 # except with old shells:
2587 host_os=$*
2588 IFS=$ac_save_IFS
2589 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2593 # Command line options
2595 # Check whether --with-include-path was given.
2596 if test "${with_include_path+set}" = set; then :
2597 withval=$with_include_path;
2598 else
2599 with_include_path=''
2603 if test x$with_include_path != x ; then
2604 CPPFLAGS="$CPPFLAGS -I`echo $with_include_path | sed 's/:/ -I/g'`"
2608 # Check whether --with-lib-path was given.
2609 if test "${with_lib_path+set}" = set; then :
2610 withval=$with_lib_path;
2611 else
2612 with_lib_path=''
2616 if test x$with_lib_path != x ; then
2617 LDFLAGS="$LDFLAGS -L`echo $with_lib_path | sed 's/:/ -L/g'`"
2620 # Check whether --enable-public-key was given.
2621 if test "${enable_public_key+set}" = set; then :
2622 enableval=$enable_public_key;
2623 else
2624 enable_public_key=yes
2628 # Check whether --enable-assembler was given.
2629 if test "${enable_assembler+set}" = set; then :
2630 enableval=$enable_assembler;
2631 else
2632 enable_assembler=yes
2636 # Check whether --enable-static was given.
2637 if test "${enable_static+set}" = set; then :
2638 enableval=$enable_static;
2639 else
2640 enable_static=yes
2644 # Check whether --enable-shared was given.
2645 if test "${enable_shared+set}" = set; then :
2646 enableval=$enable_shared;
2647 else
2648 enable_shared=yes
2652 # Check whether --enable-pic was given.
2653 if test "${enable_pic+set}" = set; then :
2654 enableval=$enable_pic;
2655 else
2656 enable_pic=yes
2660 # Check whether --enable-openssl was given.
2661 if test "${enable_openssl+set}" = set; then :
2662 enableval=$enable_openssl;
2663 else
2664 enable_openssl=yes
2668 # Check whether --enable-gcov was given.
2669 if test "${enable_gcov+set}" = set; then :
2670 enableval=$enable_gcov;
2671 else
2672 enable_gcov=no
2676 # Check whether --enable-documentation was given.
2677 if test "${enable_documentation+set}" = set; then :
2678 enableval=$enable_documentation;
2679 else
2680 enable_documentation=auto
2684 # Check whether --enable-arm-neon was given.
2685 if test "${enable_arm_neon+set}" = set; then :
2686 enableval=$enable_arm_neon;
2687 else
2688 enable_arm_neon=auto
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -R flag" >&5
2693 $as_echo_n "checking for -R flag... " >&6; }
2694 RPATHFLAG=''
2695 case "$host_os" in
2696 osf1*) RPATHFLAG="-rpath " ;;
2697 irix6.*|irix5.*) RPATHFLAG="-rpath " ;;
2698 solaris*)
2699 if test "$TCC" = "yes"; then
2700 # tcc doesn't know about -R
2701 RPATHFLAG="-Wl,-R,"
2702 else
2703 RPATHFLAG=-R
2706 linux*) RPATHFLAG="-Wl,-rpath," ;;
2707 *) RPATHFLAG="" ;;
2708 esac
2710 if test x$RPATHFLAG = x ; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
2712 $as_echo "none" >&6; }
2713 else
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $RPATHFLAG" >&5
2715 $as_echo "using $RPATHFLAG" >&6; }
2718 RPATH_CANDIDATE_REAL_DIRS=''
2719 RPATH_CANDIDATE_DIRS=''
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Searching for libraries" >&5
2722 $as_echo "Searching for libraries" >&6; }
2724 for d in `echo $with_lib_path | sed 's/:/ /g'` \
2725 `echo $exec_prefix | sed "s@^NONE@$prefix/lib@g" | sed "s@^NONE@$ac_default_prefix/lib@g"` \
2726 /usr/local/lib /sw/local/lib /sw/lib \
2727 /usr/gnu/lib /opt/gnu/lib /sw/gnu/lib /usr/freeware/lib /usr/pkg/lib ; do
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $d" >&5
2729 $as_echo_n "checking $d... " >&6; }
2730 ac_exists=no
2731 if test -d "$d/." ; then
2732 ac_real_dir=`cd $d && pwd`
2733 if test -n "$ac_real_dir" ; then
2734 ac_exists=yes
2735 for old in RPATH_CANDIDATE_REAL_DIRS ; do
2736 ac_found=no
2737 if test x$ac_real_dir = x$old ; then
2738 ac_found=yes;
2739 break;
2741 done
2742 if test $ac_found = yes ; then
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: already added" >&5
2744 $as_echo "already added" >&6; }
2745 else
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: added" >&5
2747 $as_echo "added" >&6; }
2748 # LDFLAGS="$LDFLAGS -L $d"
2749 RPATH_CANDIDATE_REAL_DIRS="$ac_real_dir $RPATH_CANDIDATE_REAL_DIRS"
2750 RPATH_CANDIDATE_DIRS="$d $RPATH_CANDIDATE_DIRS"
2754 if test $ac_exists = no ; then
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
2756 $as_echo "not found" >&6; }
2759 done
2762 # Checks for programs.
2763 ac_ext=c
2764 ac_cpp='$CPP $CPPFLAGS'
2765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2768 if test -n "$ac_tool_prefix"; then
2769 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2770 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772 $as_echo_n "checking for $ac_word... " >&6; }
2773 if ${ac_cv_prog_CC+:} false; then :
2774 $as_echo_n "(cached) " >&6
2775 else
2776 if test -n "$CC"; then
2777 ac_cv_prog_CC="$CC" # Let the user override the test.
2778 else
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 for as_dir in $PATH
2782 IFS=$as_save_IFS
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 break 2
2790 done
2791 done
2792 IFS=$as_save_IFS
2796 CC=$ac_cv_prog_CC
2797 if test -n "$CC"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2799 $as_echo "$CC" >&6; }
2800 else
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2807 if test -z "$ac_cv_prog_CC"; then
2808 ac_ct_CC=$CC
2809 # Extract the first word of "gcc", so it can be a program name with args.
2810 set dummy gcc; ac_word=$2
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812 $as_echo_n "checking for $ac_word... " >&6; }
2813 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2814 $as_echo_n "(cached) " >&6
2815 else
2816 if test -n "$ac_ct_CC"; then
2817 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_ac_ct_CC="gcc"
2827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2830 done
2831 done
2832 IFS=$as_save_IFS
2836 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2837 if test -n "$ac_ct_CC"; then
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2839 $as_echo "$ac_ct_CC" >&6; }
2840 else
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842 $as_echo "no" >&6; }
2845 if test "x$ac_ct_CC" = x; then
2846 CC=""
2847 else
2848 case $cross_compiling:$ac_tool_warned in
2849 yes:)
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2852 ac_tool_warned=yes ;;
2853 esac
2854 CC=$ac_ct_CC
2856 else
2857 CC="$ac_cv_prog_CC"
2860 if test -z "$CC"; then
2861 if test -n "$ac_tool_prefix"; then
2862 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2863 set dummy ${ac_tool_prefix}cc; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if ${ac_cv_prog_CC+:} false; then :
2867 $as_echo_n "(cached) " >&6
2868 else
2869 if test -n "$CC"; then
2870 ac_cv_prog_CC="$CC" # Let the user override the test.
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2879 ac_cv_prog_CC="${ac_tool_prefix}cc"
2880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 break 2
2883 done
2884 done
2885 IFS=$as_save_IFS
2889 CC=$ac_cv_prog_CC
2890 if test -n "$CC"; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2892 $as_echo "$CC" >&6; }
2893 else
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2901 if test -z "$CC"; then
2902 # Extract the first word of "cc", so it can be a program name with args.
2903 set dummy cc; ac_word=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if ${ac_cv_prog_CC+:} false; then :
2907 $as_echo_n "(cached) " >&6
2908 else
2909 if test -n "$CC"; then
2910 ac_cv_prog_CC="$CC" # Let the user override the test.
2911 else
2912 ac_prog_rejected=no
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2916 IFS=$as_save_IFS
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2920 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2921 ac_prog_rejected=yes
2922 continue
2924 ac_cv_prog_CC="cc"
2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 break 2
2928 done
2929 done
2930 IFS=$as_save_IFS
2932 if test $ac_prog_rejected = yes; then
2933 # We found a bogon in the path, so make sure we never use it.
2934 set dummy $ac_cv_prog_CC
2935 shift
2936 if test $# != 0; then
2937 # We chose a different compiler from the bogus one.
2938 # However, it has the same basename, so the bogon will be chosen
2939 # first if we set CC to just the basename; use the full file name.
2940 shift
2941 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2946 CC=$ac_cv_prog_CC
2947 if test -n "$CC"; then
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2949 $as_echo "$CC" >&6; }
2950 else
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952 $as_echo "no" >&6; }
2957 if test -z "$CC"; then
2958 if test -n "$ac_tool_prefix"; then
2959 for ac_prog in cl.exe
2961 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2962 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
2965 if ${ac_cv_prog_CC+:} false; then :
2966 $as_echo_n "(cached) " >&6
2967 else
2968 if test -n "$CC"; then
2969 ac_cv_prog_CC="$CC" # Let the user override the test.
2970 else
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972 for as_dir in $PATH
2974 IFS=$as_save_IFS
2975 test -z "$as_dir" && as_dir=.
2976 for ac_exec_ext in '' $ac_executable_extensions; do
2977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2978 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2980 break 2
2982 done
2983 done
2984 IFS=$as_save_IFS
2988 CC=$ac_cv_prog_CC
2989 if test -n "$CC"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2991 $as_echo "$CC" >&6; }
2992 else
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 $as_echo "no" >&6; }
2998 test -n "$CC" && break
2999 done
3001 if test -z "$CC"; then
3002 ac_ct_CC=$CC
3003 for ac_prog in cl.exe
3005 # Extract the first word of "$ac_prog", so it can be a program name with args.
3006 set dummy $ac_prog; ac_word=$2
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3010 $as_echo_n "(cached) " >&6
3011 else
3012 if test -n "$ac_ct_CC"; then
3013 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3014 else
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH
3018 IFS=$as_save_IFS
3019 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3022 ac_cv_prog_ac_ct_CC="$ac_prog"
3023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 break 2
3026 done
3027 done
3028 IFS=$as_save_IFS
3032 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3033 if test -n "$ac_ct_CC"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3035 $as_echo "$ac_ct_CC" >&6; }
3036 else
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3042 test -n "$ac_ct_CC" && break
3043 done
3045 if test "x$ac_ct_CC" = x; then
3046 CC=""
3047 else
3048 case $cross_compiling:$ac_tool_warned in
3049 yes:)
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3052 ac_tool_warned=yes ;;
3053 esac
3054 CC=$ac_ct_CC
3061 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3063 as_fn_error $? "no acceptable C compiler found in \$PATH
3064 See \`config.log' for more details" "$LINENO" 5; }
3066 # Provide some information about the compiler.
3067 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3068 set X $ac_compile
3069 ac_compiler=$2
3070 for ac_option in --version -v -V -qversion; do
3071 { { ac_try="$ac_compiler $ac_option >&5"
3072 case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075 esac
3076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3077 $as_echo "$ac_try_echo"; } >&5
3078 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3079 ac_status=$?
3080 if test -s conftest.err; then
3081 sed '10a\
3082 ... rest of stderr output deleted ...
3083 10q' conftest.err >conftest.er1
3084 cat conftest.er1 >&5
3086 rm -f conftest.er1 conftest.err
3087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3088 test $ac_status = 0; }
3089 done
3091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3092 /* end confdefs.h. */
3095 main ()
3099 return 0;
3101 _ACEOF
3102 ac_clean_files_save=$ac_clean_files
3103 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3104 # Try to create an executable without -o first, disregard a.out.
3105 # It will help us diagnose broken compilers, and finding out an intuition
3106 # of exeext.
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3108 $as_echo_n "checking whether the C compiler works... " >&6; }
3109 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3111 # The possible output files:
3112 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3114 ac_rmfiles=
3115 for ac_file in $ac_files
3117 case $ac_file in
3118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3119 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3120 esac
3121 done
3122 rm -f $ac_rmfiles
3124 if { { ac_try="$ac_link_default"
3125 case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128 esac
3129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3130 $as_echo "$ac_try_echo"; } >&5
3131 (eval "$ac_link_default") 2>&5
3132 ac_status=$?
3133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3134 test $ac_status = 0; }; then :
3135 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3136 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3137 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3138 # so that the user can short-circuit this test for compilers unknown to
3139 # Autoconf.
3140 for ac_file in $ac_files ''
3142 test -f "$ac_file" || continue
3143 case $ac_file in
3144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3146 [ab].out )
3147 # We found the default executable, but exeext='' is most
3148 # certainly right.
3149 break;;
3150 *.* )
3151 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3152 then :; else
3153 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3155 # We set ac_cv_exeext here because the later test for it is not
3156 # safe: cross compilers may not add the suffix if given an `-o'
3157 # argument, so we may need to know it at that point already.
3158 # Even if this section looks crufty: it has the advantage of
3159 # actually working.
3160 break;;
3162 break;;
3163 esac
3164 done
3165 test "$ac_cv_exeext" = no && ac_cv_exeext=
3167 else
3168 ac_file=''
3170 if test -z "$ac_file"; then :
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3173 $as_echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178 as_fn_error 77 "C compiler cannot create executables
3179 See \`config.log' for more details" "$LINENO" 5; }
3180 else
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3182 $as_echo "yes" >&6; }
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3185 $as_echo_n "checking for C compiler default output file name... " >&6; }
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3187 $as_echo "$ac_file" >&6; }
3188 ac_exeext=$ac_cv_exeext
3190 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3191 ac_clean_files=$ac_clean_files_save
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3193 $as_echo_n "checking for suffix of executables... " >&6; }
3194 if { { ac_try="$ac_link"
3195 case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198 esac
3199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200 $as_echo "$ac_try_echo"; } >&5
3201 (eval "$ac_link") 2>&5
3202 ac_status=$?
3203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204 test $ac_status = 0; }; then :
3205 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3206 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3207 # work properly (i.e., refer to `conftest.exe'), while it won't with
3208 # `rm'.
3209 for ac_file in conftest.exe conftest conftest.*; do
3210 test -f "$ac_file" || continue
3211 case $ac_file in
3212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3213 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3214 break;;
3215 * ) break;;
3216 esac
3217 done
3218 else
3219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3221 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3222 See \`config.log' for more details" "$LINENO" 5; }
3224 rm -f conftest conftest$ac_cv_exeext
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3226 $as_echo "$ac_cv_exeext" >&6; }
3228 rm -f conftest.$ac_ext
3229 EXEEXT=$ac_cv_exeext
3230 ac_exeext=$EXEEXT
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3233 #include <stdio.h>
3235 main ()
3237 FILE *f = fopen ("conftest.out", "w");
3238 return ferror (f) || fclose (f) != 0;
3241 return 0;
3243 _ACEOF
3244 ac_clean_files="$ac_clean_files conftest.out"
3245 # Check that the compiler produces executables we can run. If not, either
3246 # the compiler is broken, or we cross compile.
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3248 $as_echo_n "checking whether we are cross compiling... " >&6; }
3249 if test "$cross_compiling" != yes; then
3250 { { ac_try="$ac_link"
3251 case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254 esac
3255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3256 $as_echo "$ac_try_echo"; } >&5
3257 (eval "$ac_link") 2>&5
3258 ac_status=$?
3259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260 test $ac_status = 0; }
3261 if { ac_try='./conftest$ac_cv_exeext'
3262 { { case "(($ac_try" in
3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3265 esac
3266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3267 $as_echo "$ac_try_echo"; } >&5
3268 (eval "$ac_try") 2>&5
3269 ac_status=$?
3270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3271 test $ac_status = 0; }; }; then
3272 cross_compiling=no
3273 else
3274 if test "$cross_compiling" = maybe; then
3275 cross_compiling=yes
3276 else
3277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279 as_fn_error $? "cannot run C compiled programs.
3280 If you meant to cross compile, use \`--host'.
3281 See \`config.log' for more details" "$LINENO" 5; }
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3286 $as_echo "$cross_compiling" >&6; }
3288 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3289 ac_clean_files=$ac_clean_files_save
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3291 $as_echo_n "checking for suffix of object files... " >&6; }
3292 if ${ac_cv_objext+:} false; then :
3293 $as_echo_n "(cached) " >&6
3294 else
3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296 /* end confdefs.h. */
3299 main ()
3303 return 0;
3305 _ACEOF
3306 rm -f conftest.o conftest.obj
3307 if { { ac_try="$ac_compile"
3308 case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3311 esac
3312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313 $as_echo "$ac_try_echo"; } >&5
3314 (eval "$ac_compile") 2>&5
3315 ac_status=$?
3316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3317 test $ac_status = 0; }; then :
3318 for ac_file in conftest.o conftest.obj conftest.*; do
3319 test -f "$ac_file" || continue;
3320 case $ac_file in
3321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3322 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3323 break;;
3324 esac
3325 done
3326 else
3327 $as_echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3332 as_fn_error $? "cannot compute suffix of object files: cannot compile
3333 See \`config.log' for more details" "$LINENO" 5; }
3335 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3338 $as_echo "$ac_cv_objext" >&6; }
3339 OBJEXT=$ac_cv_objext
3340 ac_objext=$OBJEXT
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3342 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3343 if ${ac_cv_c_compiler_gnu+:} false; then :
3344 $as_echo_n "(cached) " >&6
3345 else
3346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347 /* end confdefs.h. */
3350 main ()
3352 #ifndef __GNUC__
3353 choke me
3354 #endif
3357 return 0;
3359 _ACEOF
3360 if ac_fn_c_try_compile "$LINENO"; then :
3361 ac_compiler_gnu=yes
3362 else
3363 ac_compiler_gnu=no
3365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3366 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3370 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3371 if test $ac_compiler_gnu = yes; then
3372 GCC=yes
3373 else
3374 GCC=
3376 ac_test_CFLAGS=${CFLAGS+set}
3377 ac_save_CFLAGS=$CFLAGS
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3379 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3380 if ${ac_cv_prog_cc_g+:} false; then :
3381 $as_echo_n "(cached) " >&6
3382 else
3383 ac_save_c_werror_flag=$ac_c_werror_flag
3384 ac_c_werror_flag=yes
3385 ac_cv_prog_cc_g=no
3386 CFLAGS="-g"
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3391 main ()
3395 return 0;
3397 _ACEOF
3398 if ac_fn_c_try_compile "$LINENO"; then :
3399 ac_cv_prog_cc_g=yes
3400 else
3401 CFLAGS=""
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403 /* end confdefs.h. */
3406 main ()
3410 return 0;
3412 _ACEOF
3413 if ac_fn_c_try_compile "$LINENO"; then :
3415 else
3416 ac_c_werror_flag=$ac_save_c_werror_flag
3417 CFLAGS="-g"
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h. */
3422 main ()
3426 return 0;
3428 _ACEOF
3429 if ac_fn_c_try_compile "$LINENO"; then :
3430 ac_cv_prog_cc_g=yes
3432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3437 ac_c_werror_flag=$ac_save_c_werror_flag
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3440 $as_echo "$ac_cv_prog_cc_g" >&6; }
3441 if test "$ac_test_CFLAGS" = set; then
3442 CFLAGS=$ac_save_CFLAGS
3443 elif test $ac_cv_prog_cc_g = yes; then
3444 if test "$GCC" = yes; then
3445 CFLAGS="-g -O2"
3446 else
3447 CFLAGS="-g"
3449 else
3450 if test "$GCC" = yes; then
3451 CFLAGS="-O2"
3452 else
3453 CFLAGS=
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3457 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3458 if ${ac_cv_prog_cc_c89+:} false; then :
3459 $as_echo_n "(cached) " >&6
3460 else
3461 ac_cv_prog_cc_c89=no
3462 ac_save_CC=$CC
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3465 #include <stdarg.h>
3466 #include <stdio.h>
3467 struct stat;
3468 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3469 struct buf { int x; };
3470 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3471 static char *e (p, i)
3472 char **p;
3473 int i;
3475 return p[i];
3477 static char *f (char * (*g) (char **, int), char **p, ...)
3479 char *s;
3480 va_list v;
3481 va_start (v,p);
3482 s = g (p, va_arg (v,int));
3483 va_end (v);
3484 return s;
3487 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3488 function prototypes and stuff, but not '\xHH' hex character constants.
3489 These don't provoke an error unfortunately, instead are silently treated
3490 as 'x'. The following induces an error, until -std is added to get
3491 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3492 array size at least. It's necessary to write '\x00'==0 to get something
3493 that's true only with -std. */
3494 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3496 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3497 inside strings and character constants. */
3498 #define FOO(x) 'x'
3499 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3501 int test (int i, double x);
3502 struct s1 {int (*f) (int a);};
3503 struct s2 {int (*f) (double a);};
3504 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3505 int argc;
3506 char **argv;
3508 main ()
3510 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3512 return 0;
3514 _ACEOF
3515 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3516 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3518 CC="$ac_save_CC $ac_arg"
3519 if ac_fn_c_try_compile "$LINENO"; then :
3520 ac_cv_prog_cc_c89=$ac_arg
3522 rm -f core conftest.err conftest.$ac_objext
3523 test "x$ac_cv_prog_cc_c89" != "xno" && break
3524 done
3525 rm -f conftest.$ac_ext
3526 CC=$ac_save_CC
3529 # AC_CACHE_VAL
3530 case "x$ac_cv_prog_cc_c89" in
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3533 $as_echo "none needed" >&6; } ;;
3534 xno)
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3536 $as_echo "unsupported" >&6; } ;;
3538 CC="$CC $ac_cv_prog_cc_c89"
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3540 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3541 esac
3542 if test "x$ac_cv_prog_cc_c89" != xno; then :
3546 ac_ext=c
3547 ac_cpp='$CPP $CPPFLAGS'
3548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3553 # When $CC foo.c -o foo creates both foo and foo.exe, autoconf picks
3554 # up the foo.exe and sets exeext to .exe. That is correct for cygwin,
3555 # which has some kind of magic link from foo to foo.exe, but not for
3556 # rntcl. A better check for the cygwin case would check if the
3557 # contents of foo and foo.exe are equal; in the rntcl case, foo is a
3558 # sh script, and foo.exe is a windows executable.
3560 if test "x$CC" = xrntcl ; then
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with rntcl; clearing EXEEXT and disabling assembler" >&5
3562 $as_echo "$as_me: Compiling with rntcl; clearing EXEEXT and disabling assembler" >&6;}
3563 ac_exeext=''
3564 ac_cv_exeext=''
3565 EXEEXT=''
3566 enable_assembler=no
3569 # Used by the testsuite only
3570 ac_ext=cpp
3571 ac_cpp='$CXXCPP $CPPFLAGS'
3572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3575 if test -z "$CXX"; then
3576 if test -n "$CCC"; then
3577 CXX=$CCC
3578 else
3579 if test -n "$ac_tool_prefix"; then
3580 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585 $as_echo_n "checking for $ac_word... " >&6; }
3586 if ${ac_cv_prog_CXX+:} false; then :
3587 $as_echo_n "(cached) " >&6
3588 else
3589 if test -n "$CXX"; then
3590 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3591 else
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 for as_dir in $PATH
3595 IFS=$as_save_IFS
3596 test -z "$as_dir" && as_dir=.
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3599 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3601 break 2
3603 done
3604 done
3605 IFS=$as_save_IFS
3609 CXX=$ac_cv_prog_CXX
3610 if test -n "$CXX"; then
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3612 $as_echo "$CXX" >&6; }
3613 else
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615 $as_echo "no" >&6; }
3619 test -n "$CXX" && break
3620 done
3622 if test -z "$CXX"; then
3623 ac_ct_CXX=$CXX
3624 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3626 # Extract the first word of "$ac_prog", so it can be a program name with args.
3627 set dummy $ac_prog; ac_word=$2
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3631 $as_echo_n "(cached) " >&6
3632 else
3633 if test -n "$ac_ct_CXX"; then
3634 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3635 else
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH
3639 IFS=$as_save_IFS
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3643 ac_cv_prog_ac_ct_CXX="$ac_prog"
3644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3645 break 2
3647 done
3648 done
3649 IFS=$as_save_IFS
3653 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3654 if test -n "$ac_ct_CXX"; then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3656 $as_echo "$ac_ct_CXX" >&6; }
3657 else
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3663 test -n "$ac_ct_CXX" && break
3664 done
3666 if test "x$ac_ct_CXX" = x; then
3667 CXX="g++"
3668 else
3669 case $cross_compiling:$ac_tool_warned in
3670 yes:)
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3673 ac_tool_warned=yes ;;
3674 esac
3675 CXX=$ac_ct_CXX
3681 # Provide some information about the compiler.
3682 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3683 set X $ac_compile
3684 ac_compiler=$2
3685 for ac_option in --version -v -V -qversion; do
3686 { { ac_try="$ac_compiler $ac_option >&5"
3687 case "(($ac_try" in
3688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689 *) ac_try_echo=$ac_try;;
3690 esac
3691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3692 $as_echo "$ac_try_echo"; } >&5
3693 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3694 ac_status=$?
3695 if test -s conftest.err; then
3696 sed '10a\
3697 ... rest of stderr output deleted ...
3698 10q' conftest.err >conftest.er1
3699 cat conftest.er1 >&5
3701 rm -f conftest.er1 conftest.err
3702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3703 test $ac_status = 0; }
3704 done
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3707 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3708 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3709 $as_echo_n "(cached) " >&6
3710 else
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3715 main ()
3717 #ifndef __GNUC__
3718 choke me
3719 #endif
3722 return 0;
3724 _ACEOF
3725 if ac_fn_cxx_try_compile "$LINENO"; then :
3726 ac_compiler_gnu=yes
3727 else
3728 ac_compiler_gnu=no
3730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3731 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3735 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3736 if test $ac_compiler_gnu = yes; then
3737 GXX=yes
3738 else
3739 GXX=
3741 ac_test_CXXFLAGS=${CXXFLAGS+set}
3742 ac_save_CXXFLAGS=$CXXFLAGS
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3744 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3745 if ${ac_cv_prog_cxx_g+:} false; then :
3746 $as_echo_n "(cached) " >&6
3747 else
3748 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3749 ac_cxx_werror_flag=yes
3750 ac_cv_prog_cxx_g=no
3751 CXXFLAGS="-g"
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3756 main ()
3760 return 0;
3762 _ACEOF
3763 if ac_fn_cxx_try_compile "$LINENO"; then :
3764 ac_cv_prog_cxx_g=yes
3765 else
3766 CXXFLAGS=""
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3771 main ()
3775 return 0;
3777 _ACEOF
3778 if ac_fn_cxx_try_compile "$LINENO"; then :
3780 else
3781 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3782 CXXFLAGS="-g"
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h. */
3787 main ()
3791 return 0;
3793 _ACEOF
3794 if ac_fn_cxx_try_compile "$LINENO"; then :
3795 ac_cv_prog_cxx_g=yes
3797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3802 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3805 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3806 if test "$ac_test_CXXFLAGS" = set; then
3807 CXXFLAGS=$ac_save_CXXFLAGS
3808 elif test $ac_cv_prog_cxx_g = yes; then
3809 if test "$GXX" = yes; then
3810 CXXFLAGS="-g -O2"
3811 else
3812 CXXFLAGS="-g"
3814 else
3815 if test "$GXX" = yes; then
3816 CXXFLAGS="-O2"
3817 else
3818 CXXFLAGS=
3821 ac_ext=c
3822 ac_cpp='$CPP $CPPFLAGS'
3823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3828 ac_ext=cpp
3829 ac_cpp='$CXXCPP $CPPFLAGS'
3830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3839 main ()
3841 return 0;
3843 return 0;
3845 _ACEOF
3846 if ac_fn_cxx_try_compile "$LINENO"; then :
3847 IF_CXX=''
3848 else
3849 IF_CXX='#'
3851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853 ac_ext=c
3854 ac_cpp='$CPP $CPPFLAGS'
3855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3861 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3862 set x ${MAKE-make}
3863 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3864 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3865 $as_echo_n "(cached) " >&6
3866 else
3867 cat >conftest.make <<\_ACEOF
3868 SHELL = /bin/sh
3869 all:
3870 @echo '@@@%%%=$(MAKE)=@@@%%%'
3871 _ACEOF
3872 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3873 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3874 *@@@%%%=?*=@@@%%%*)
3875 eval ac_cv_prog_make_${ac_make}_set=yes;;
3877 eval ac_cv_prog_make_${ac_make}_set=no;;
3878 esac
3879 rm -f conftest.make
3881 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3883 $as_echo "yes" >&6; }
3884 SET_MAKE=
3885 else
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887 $as_echo "no" >&6; }
3888 SET_MAKE="MAKE=${MAKE-make}"
3891 if test -n "$ac_tool_prefix"; then
3892 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3893 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if ${ac_cv_prog_RANLIB+:} false; then :
3897 $as_echo_n "(cached) " >&6
3898 else
3899 if test -n "$RANLIB"; then
3900 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3901 else
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3909 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 break 2
3913 done
3914 done
3915 IFS=$as_save_IFS
3919 RANLIB=$ac_cv_prog_RANLIB
3920 if test -n "$RANLIB"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3922 $as_echo "$RANLIB" >&6; }
3923 else
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3930 if test -z "$ac_cv_prog_RANLIB"; then
3931 ac_ct_RANLIB=$RANLIB
3932 # Extract the first word of "ranlib", so it can be a program name with args.
3933 set dummy ranlib; ac_word=$2
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935 $as_echo_n "checking for $ac_word... " >&6; }
3936 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3937 $as_echo_n "(cached) " >&6
3938 else
3939 if test -n "$ac_ct_RANLIB"; then
3940 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3941 else
3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943 for as_dir in $PATH
3945 IFS=$as_save_IFS
3946 test -z "$as_dir" && as_dir=.
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3949 ac_cv_prog_ac_ct_RANLIB="ranlib"
3950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3951 break 2
3953 done
3954 done
3955 IFS=$as_save_IFS
3959 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3960 if test -n "$ac_ct_RANLIB"; then
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3962 $as_echo "$ac_ct_RANLIB" >&6; }
3963 else
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 $as_echo "no" >&6; }
3968 if test "x$ac_ct_RANLIB" = x; then
3969 RANLIB=":"
3970 else
3971 case $cross_compiling:$ac_tool_warned in
3972 yes:)
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3975 ac_tool_warned=yes ;;
3976 esac
3977 RANLIB=$ac_ct_RANLIB
3979 else
3980 RANLIB="$ac_cv_prog_RANLIB"
3983 if test -n "$ac_tool_prefix"; then
3984 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
3985 set dummy ${ac_tool_prefix}nm; ac_word=$2
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987 $as_echo_n "checking for $ac_word... " >&6; }
3988 if ${ac_cv_prog_NM+:} false; then :
3989 $as_echo_n "(cached) " >&6
3990 else
3991 if test -n "$NM"; then
3992 ac_cv_prog_NM="$NM" # Let the user override the test.
3993 else
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 for as_dir in $PATH
3997 IFS=$as_save_IFS
3998 test -z "$as_dir" && as_dir=.
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4001 ac_cv_prog_NM="${ac_tool_prefix}nm"
4002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 break 2
4005 done
4006 done
4007 IFS=$as_save_IFS
4011 NM=$ac_cv_prog_NM
4012 if test -n "$NM"; then
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
4014 $as_echo "$NM" >&6; }
4015 else
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 $as_echo "no" >&6; }
4022 if test -z "$ac_cv_prog_NM"; then
4023 ac_ct_NM=$NM
4024 # Extract the first word of "nm", so it can be a program name with args.
4025 set dummy nm; ac_word=$2
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027 $as_echo_n "checking for $ac_word... " >&6; }
4028 if ${ac_cv_prog_ac_ct_NM+:} false; then :
4029 $as_echo_n "(cached) " >&6
4030 else
4031 if test -n "$ac_ct_NM"; then
4032 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4033 else
4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 for as_dir in $PATH
4037 IFS=$as_save_IFS
4038 test -z "$as_dir" && as_dir=.
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4041 ac_cv_prog_ac_ct_NM="nm"
4042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4043 break 2
4045 done
4046 done
4047 IFS=$as_save_IFS
4051 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4052 if test -n "$ac_ct_NM"; then
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
4054 $as_echo "$ac_ct_NM" >&6; }
4055 else
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057 $as_echo "no" >&6; }
4060 if test "x$ac_ct_NM" = x; then
4061 NM="strings"
4062 else
4063 case $cross_compiling:$ac_tool_warned in
4064 yes:)
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4067 ac_tool_warned=yes ;;
4068 esac
4069 NM=$ac_ct_NM
4071 else
4072 NM="$ac_cv_prog_NM"
4075 # Used only for the GNU-stack configure test.
4076 if test -n "$ac_tool_prefix"; then
4077 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4078 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4080 $as_echo_n "checking for $ac_word... " >&6; }
4081 if ${ac_cv_prog_OBJDUMP+:} false; then :
4082 $as_echo_n "(cached) " >&6
4083 else
4084 if test -n "$OBJDUMP"; then
4085 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4086 else
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 for as_dir in $PATH
4090 IFS=$as_save_IFS
4091 test -z "$as_dir" && as_dir=.
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4094 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4096 break 2
4098 done
4099 done
4100 IFS=$as_save_IFS
4104 OBJDUMP=$ac_cv_prog_OBJDUMP
4105 if test -n "$OBJDUMP"; then
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4107 $as_echo "$OBJDUMP" >&6; }
4108 else
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4110 $as_echo "no" >&6; }
4115 if test -z "$ac_cv_prog_OBJDUMP"; then
4116 ac_ct_OBJDUMP=$OBJDUMP
4117 # Extract the first word of "objdump", so it can be a program name with args.
4118 set dummy objdump; ac_word=$2
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4120 $as_echo_n "checking for $ac_word... " >&6; }
4121 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4122 $as_echo_n "(cached) " >&6
4123 else
4124 if test -n "$ac_ct_OBJDUMP"; then
4125 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4126 else
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4130 IFS=$as_save_IFS
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4136 break 2
4138 done
4139 done
4140 IFS=$as_save_IFS
4144 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4145 if test -n "$ac_ct_OBJDUMP"; then
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4147 $as_echo "$ac_ct_OBJDUMP" >&6; }
4148 else
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150 $as_echo "no" >&6; }
4153 if test "x$ac_ct_OBJDUMP" = x; then
4154 OBJDUMP="false"
4155 else
4156 case $cross_compiling:$ac_tool_warned in
4157 yes:)
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4160 ac_tool_warned=yes ;;
4161 esac
4162 OBJDUMP=$ac_ct_OBJDUMP
4164 else
4165 OBJDUMP="$ac_cv_prog_OBJDUMP"
4168 if test -n "$ac_tool_prefix"; then
4169 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4170 set dummy ${ac_tool_prefix}ar; ac_word=$2
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172 $as_echo_n "checking for $ac_word... " >&6; }
4173 if ${ac_cv_prog_AR+:} false; then :
4174 $as_echo_n "(cached) " >&6
4175 else
4176 if test -n "$AR"; then
4177 ac_cv_prog_AR="$AR" # Let the user override the test.
4178 else
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 for as_dir in $PATH
4182 IFS=$as_save_IFS
4183 test -z "$as_dir" && as_dir=.
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4186 ac_cv_prog_AR="${ac_tool_prefix}ar"
4187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4188 break 2
4190 done
4191 done
4192 IFS=$as_save_IFS
4196 AR=$ac_cv_prog_AR
4197 if test -n "$AR"; then
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4199 $as_echo "$AR" >&6; }
4200 else
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202 $as_echo "no" >&6; }
4207 if test -z "$ac_cv_prog_AR"; then
4208 ac_ct_AR=$AR
4209 # Extract the first word of "ar", so it can be a program name with args.
4210 set dummy ar; ac_word=$2
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212 $as_echo_n "checking for $ac_word... " >&6; }
4213 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4214 $as_echo_n "(cached) " >&6
4215 else
4216 if test -n "$ac_ct_AR"; then
4217 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4218 else
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 for as_dir in $PATH
4222 IFS=$as_save_IFS
4223 test -z "$as_dir" && as_dir=.
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4226 ac_cv_prog_ac_ct_AR="ar"
4227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 break 2
4230 done
4231 done
4232 IFS=$as_save_IFS
4236 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4237 if test -n "$ac_ct_AR"; then
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4239 $as_echo "$ac_ct_AR" >&6; }
4240 else
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242 $as_echo "no" >&6; }
4245 if test "x$ac_ct_AR" = x; then
4246 AR="false"
4247 else
4248 case $cross_compiling:$ac_tool_warned in
4249 yes:)
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4252 ac_tool_warned=yes ;;
4253 esac
4254 AR=$ac_ct_AR
4256 else
4257 AR="$ac_cv_prog_AR"
4261 if test "x$ac_cv_prog_cc_stdc" = xno ; then
4262 as_fn_error $? "the C compiler doesn't handle ANSI-C" "$LINENO" 5 #'
4265 # Find a good install program. We prefer a C program (faster),
4266 # so one script is as good as another. But avoid the broken or
4267 # incompatible versions:
4268 # SysV /etc/install, /usr/sbin/install
4269 # SunOS /usr/etc/install
4270 # IRIX /sbin/install
4271 # AIX /bin/install
4272 # AmigaOS /C/install, which installs bootblocks on floppy discs
4273 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4274 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4275 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4276 # OS/2's system install, which has a completely different semantic
4277 # ./install, which can be erroneously created by make from ./install.sh.
4278 # Reject install programs that cannot install multiple files.
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4280 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4281 if test -z "$INSTALL"; then
4282 if ${ac_cv_path_install+:} false; then :
4283 $as_echo_n "(cached) " >&6
4284 else
4285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286 for as_dir in $PATH
4288 IFS=$as_save_IFS
4289 test -z "$as_dir" && as_dir=.
4290 # Account for people who put trailing slashes in PATH elements.
4291 case $as_dir/ in #((
4292 ./ | .// | /[cC]/* | \
4293 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4294 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4295 /usr/ucb/* ) ;;
4297 # OSF1 and SCO ODT 3.0 have their own names for install.
4298 # Don't use installbsd from OSF since it installs stuff as root
4299 # by default.
4300 for ac_prog in ginstall scoinst install; do
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4303 if test $ac_prog = install &&
4304 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4305 # AIX install. It has an incompatible calling convention.
4307 elif test $ac_prog = install &&
4308 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4309 # program-specific install script used by HP pwplus--don't use.
4311 else
4312 rm -rf conftest.one conftest.two conftest.dir
4313 echo one > conftest.one
4314 echo two > conftest.two
4315 mkdir conftest.dir
4316 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4317 test -s conftest.one && test -s conftest.two &&
4318 test -s conftest.dir/conftest.one &&
4319 test -s conftest.dir/conftest.two
4320 then
4321 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4322 break 3
4326 done
4327 done
4329 esac
4331 done
4332 IFS=$as_save_IFS
4334 rm -rf conftest.one conftest.two conftest.dir
4337 if test "${ac_cv_path_install+set}" = set; then
4338 INSTALL=$ac_cv_path_install
4339 else
4340 # As a last resort, use the slow shell script. Don't cache a
4341 # value for INSTALL within a source directory, because that will
4342 # break other packages using the cache if that directory is
4343 # removed, or if the value is a relative name.
4344 INSTALL=$ac_install_sh
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4348 $as_echo "$INSTALL" >&6; }
4350 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4351 # It thinks the first close brace ends the variable substitution.
4352 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4354 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4356 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4359 # According to the autoconf manual, needs install-sh from
4360 # autoconf-2.60 or automake-1.10 to avoid races.
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4362 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4363 if test -z "$MKDIR_P"; then
4364 if ${ac_cv_path_mkdir+:} false; then :
4365 $as_echo_n "(cached) " >&6
4366 else
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4370 IFS=$as_save_IFS
4371 test -z "$as_dir" && as_dir=.
4372 for ac_prog in mkdir gmkdir; do
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4375 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4376 'mkdir (GNU coreutils) '* | \
4377 'mkdir (coreutils) '* | \
4378 'mkdir (fileutils) '4.1*)
4379 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4380 break 3;;
4381 esac
4382 done
4383 done
4384 done
4385 IFS=$as_save_IFS
4389 test -d ./--version && rmdir ./--version
4390 if test "${ac_cv_path_mkdir+set}" = set; then
4391 MKDIR_P="$ac_cv_path_mkdir -p"
4392 else
4393 # As a last resort, use the slow shell script. Don't cache a
4394 # value for MKDIR_P within a source directory, because that will
4395 # break other packages using the cache if that directory is
4396 # removed, or if the value is a relative name.
4397 MKDIR_P="$ac_install_sh -d"
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4401 $as_echo "$MKDIR_P" >&6; }
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4405 $as_echo_n "checking whether ln -s works... " >&6; }
4406 LN_S=$as_ln_s
4407 if test "$LN_S" = "ln -s"; then
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4409 $as_echo "yes" >&6; }
4410 else
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4412 $as_echo "no, using $LN_S" >&6; }
4416 # Compiler tests for the build system
4418 if test -n "$CC_FOR_BUILD"; then
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $CC_FOR_BUILD" >&5
4420 $as_echo_n "checking build system compiler $CC_FOR_BUILD... " >&6; }
4421 # remove anything that might look like compiler output to our "||" expression
4422 rm -f conftest* a.out b.out a.exe a_out.exe
4423 cat >conftest.c <<EOF
4425 main ()
4427 exit(0);
4430 gmp_compile="$CC_FOR_BUILD conftest.c"
4431 cc_for_build_works=no
4432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
4433 (eval $gmp_compile) 2>&5
4434 ac_status=$?
4435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4436 test $ac_status = 0; }; then
4437 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
4438 cc_for_build_works=yes
4441 rm -f conftest* a.out b.out a.exe a_out.exe
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
4443 $as_echo "$cc_for_build_works" >&6; }
4444 if test "$cc_for_build_works" = yes; then
4446 else
4447 as_fn_error $? "Specified CC_FOR_BUILD doesn't seem to work" "$LINENO" 5
4450 elif test -n "$HOST_CC"; then
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $HOST_CC" >&5
4452 $as_echo_n "checking build system compiler $HOST_CC... " >&6; }
4453 # remove anything that might look like compiler output to our "||" expression
4454 rm -f conftest* a.out b.out a.exe a_out.exe
4455 cat >conftest.c <<EOF
4457 main ()
4459 exit(0);
4462 gmp_compile="$HOST_CC conftest.c"
4463 cc_for_build_works=no
4464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
4465 (eval $gmp_compile) 2>&5
4466 ac_status=$?
4467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4468 test $ac_status = 0; }; then
4469 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
4470 cc_for_build_works=yes
4473 rm -f conftest* a.out b.out a.exe a_out.exe
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
4475 $as_echo "$cc_for_build_works" >&6; }
4476 if test "$cc_for_build_works" = yes; then
4477 CC_FOR_BUILD=$HOST_CC
4478 else
4479 as_fn_error $? "Specified HOST_CC doesn't seem to work" "$LINENO" 5
4482 elif test $cross_compiling = no ; then
4483 CC_FOR_BUILD="$CC"
4484 else
4485 for i in cc gcc c89 c99; do
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $i" >&5
4487 $as_echo_n "checking build system compiler $i... " >&6; }
4488 # remove anything that might look like compiler output to our "||" expression
4489 rm -f conftest* a.out b.out a.exe a_out.exe
4490 cat >conftest.c <<EOF
4492 main ()
4494 exit(0);
4497 gmp_compile="$i conftest.c"
4498 cc_for_build_works=no
4499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
4500 (eval $gmp_compile) 2>&5
4501 ac_status=$?
4502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4503 test $ac_status = 0; }; then
4504 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
4505 cc_for_build_works=yes
4508 rm -f conftest* a.out b.out a.exe a_out.exe
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
4510 $as_echo "$cc_for_build_works" >&6; }
4511 if test "$cc_for_build_works" = yes; then
4512 CC_FOR_BUILD=$i
4513 break
4514 else
4518 done
4519 if test -z "$CC_FOR_BUILD"; then
4520 as_fn_error $? "Cannot find a build system compiler" "$LINENO" 5
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
4529 $as_echo_n "checking for build system executable suffix... " >&6; }
4530 if ${gmp_cv_prog_exeext_for_build+:} false; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 if test $cross_compiling = no ; then
4534 gmp_cv_prog_exeext_for_build="$EXEEXT"
4535 else
4536 cat >conftest.c <<EOF
4538 main ()
4540 exit (0);
4543 for i in .exe ,ff8 ""; do
4544 gmp_compile="$CC_FOR_BUILD conftest.c -o conftest$i"
4545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
4546 (eval $gmp_compile) 2>&5
4547 ac_status=$?
4548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4549 test $ac_status = 0; }; then
4550 if (./conftest) 2>&5; then
4551 gmp_cv_prog_exeext_for_build=$i
4552 break
4555 done
4556 rm -f conftest*
4557 if test "${gmp_cv_prog_exeext_for_build+set}" != set; then
4558 as_fn_error $? "Cannot determine executable suffix" "$LINENO" 5
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_prog_exeext_for_build" >&5
4564 $as_echo "$gmp_cv_prog_exeext_for_build" >&6; }
4565 EXEEXT_FOR_BUILD=$gmp_cv_prog_exeext_for_build
4569 # Check whether --enable-dependency_tracking was given.
4570 if test "${enable_dependency_tracking+set}" = set; then :
4571 enableval=$enable_dependency_tracking;
4572 else
4573 enable_dependency_tracking=yes
4577 DEP_FLAGS=''
4578 DEP_PROCESS='true'
4579 if test x$enable_dependency_tracking = xyes ; then
4580 if test x$GCC = xyes ; then
4581 gcc_version=`gcc --version | head -1`
4582 case "$gcc_version" in
4583 2.*|*[!0-9.]2.*)
4584 enable_dependency_tracking=no
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Dependency tracking disabled, gcc-3.x is needed" >&5
4586 $as_echo "$as_me: WARNING: Dependency tracking disabled, gcc-3.x is needed" >&2;}
4589 DEP_FLAGS='-MT $@ -MD -MP -MF $@.d'
4590 DEP_PROCESS='true'
4592 esac
4593 else
4594 enable_dependency_tracking=no
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Dependency tracking disabled" >&5
4596 $as_echo "$as_me: WARNING: Dependency tracking disabled" >&2;}
4600 if test x$enable_dependency_tracking = xyes ; then
4601 DEP_INCLUDE='include '
4602 else
4603 DEP_INCLUDE='# '
4610 if test x$enable_dependency_tracking = xyes ; then
4611 # Since the makefiles use include to get the dependency files, we must
4612 # make sure that the files exist. We generate some more files than are
4613 # actually needed.
4615 ac_config_commands="$ac_config_commands dummy-dep-files"
4619 # Figure out ABI. Currently, configurable only by setting CFLAGS.
4620 ABI=standard
4622 case "$host_cpu" in
4623 x86_64 | amd64)
4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h. */
4628 #if defined(__x86_64__) || defined(__arch64__)
4629 #error 64-bit x86
4630 #endif
4633 main ()
4637 return 0;
4639 _ACEOF
4640 if ac_fn_c_try_compile "$LINENO"; then :
4642 ABI=32
4644 else
4646 ABI=64
4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4651 *sparc*)
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4655 #if defined(__sparcv9) || defined(__arch64__)
4656 #error 64-bit sparc
4657 #endif
4660 main ()
4664 return 0;
4666 _ACEOF
4667 if ac_fn_c_try_compile "$LINENO"; then :
4669 ABI=32
4671 else
4673 ABI=64
4676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4678 esac
4680 if test "x$ABI" != xstandard ; then
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler uses $ABI-bit ABI. To change, set CC." >&5
4682 $as_echo "$as_me: Compiler uses $ABI-bit ABI. To change, set CC." >&6;}
4683 if test "$libdir" = '${exec_prefix}/lib' ; then
4684 # Try setting a better default
4685 case "$host_cpu:$host_os:$ABI" in
4686 *:solaris*:32|*:sunos*:32)
4687 libdir='${exec_prefix}/lib'
4689 *:solaris*:64|*:sunos*:64)
4690 libdir='${exec_prefix}/lib/64'
4692 # Linux conventions are a mess... According to the Linux File
4693 # Hierarchy Standard, all architectures except IA64 puts 32-bit
4694 # libraries in lib, and 64-bit in lib64. Some distributions,
4695 # e.g., Fedora and Gentoo, adhere to this standard, while at
4696 # least Debian has decided to put 64-bit libraries in lib and
4697 # 32-bit libraries in lib32.
4699 # We try to figure out the convention, except if we're cross
4700 # compiling. We use lib${ABI} if /usr/lib${ABI} exists and
4701 # appears to not be a symlink to a different name.
4702 *:linux*:32|*:linux*:64)
4703 if test "$cross_compiling" = yes ; then
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cross compiling for linux. Can't guess if libraries go in lib${ABI} or lib." >&5
4705 $as_echo "$as_me: WARNING: Cross compiling for linux. Can't guess if libraries go in lib${ABI} or lib." >&2;}; else
4706 # The dash builtin pwd tries to be "helpful" and remember
4707 # symlink names. Use -P option, and hope it's portable enough.
4708 test -d /usr/lib${ABI} \
4709 && (cd /usr/lib${ABI} && pwd -P | grep >/dev/null "/lib${ABI}"'$') \
4710 && libdir='${exec_prefix}/'"lib${ABI}"
4713 # On freebsd, it seems 32-bit libraries are in lib32,
4714 # and 64-bit in lib. Don't know about "kfreebsd", does
4715 # it follow the Linux fhs conventions?
4716 *:freebsd*:32)
4717 libdir='${exec_prefix}/lib32'
4719 *:freebsd*:64)
4720 libdir='${exec_prefix}/lib'
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know where to install $ABI-bit libraries on this system." >&5
4724 $as_echo "$as_me: WARNING: Don't know where to install $ABI-bit libraries on this system." >&2;};
4725 esac
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: Libraries to be installed in $libdir." >&5
4727 $as_echo "$as_me: Libraries to be installed in $libdir." >&6;}
4731 # Select assembler code
4732 asm_path=
4733 if test "x$enable_assembler" = xyes ; then
4734 case "$host_cpu" in
4735 i?86* | k[5-8]* | pentium* | athlon)
4736 asm_path=x86
4738 x86_64 | amd64)
4739 if test "$ABI" = 64 ; then
4740 asm_path=x86_64
4741 else
4742 asm_path=x86
4745 *sparc*)
4746 if test "$ABI" = 64 ; then
4747 asm_path=sparc64
4748 else
4749 asm_path=sparc32
4752 armv6* | armv7*)
4753 if test "$enable_arm_neon" = auto ; then
4754 if test "$cross_compiling" = yes ; then
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler accepts Neon instructions" >&5
4756 $as_echo_n "checking if assembler accepts Neon instructions... " >&6; }
4757 if ${nettle_cv_asm_arm_neon+:} false; then :
4758 $as_echo_n "(cached) " >&6
4759 else
4760 cat >conftest.s <<EOF
4762 .text
4763 foo:
4764 vmlal.u32 q1, d0, d1
4767 gmp_assemble="$CC $CFLAGS $CPPFLAGS -c conftest.s >conftest.out 2>&1"
4768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
4769 (eval $gmp_assemble) 2>&5
4770 ac_status=$?
4771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4772 test $ac_status = 0; }; then
4773 cat conftest.out >&5
4774 nettle_cv_asm_arm_neon=yes
4775 else
4776 cat conftest.out >&5
4777 echo "configure: failed program was:" >&5
4778 cat conftest.s >&5
4779 nettle_cv_asm_arm_neon=no
4781 rm -f conftest*
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_arm_neon" >&5
4785 $as_echo "$nettle_cv_asm_arm_neon" >&6; }
4786 enable_arm_neon="$nettle_cv_asm_arm_neon"
4787 else
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if /proc/cpuinfo claims neon support" >&5
4789 $as_echo_n "checking if /proc/cpuinfo claims neon support... " >&6; }
4790 if grep '^Features.*:.* neon' /proc/cpuinfo >/dev/null ; then
4791 enable_arm_neon=yes
4792 else
4793 enable_arm_neon=no
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_arm_neon" >&5
4796 $as_echo "$enable_arm_neon" >&6; }
4801 asm_path="arm/v6 arm"
4803 if test "x$enable_arm_neon" = xyes ; then
4804 asm_path="arm/neon $asm_path"
4807 arm*)
4808 asm_path=arm
4811 enable_assembler=no
4813 esac
4816 # Files which replace a C source file (or otherwise don't correspond
4817 # to a new object file).
4818 asm_replace_list="aes-encrypt-internal.asm aes-decrypt-internal.asm \
4819 arcfour-crypt.asm camellia-crypt-internal.asm \
4820 md5-compress.asm memxor.asm \
4821 salsa20-crypt.asm salsa20-core-internal.asm \
4822 serpent-encrypt.asm serpent-decrypt.asm \
4823 sha1-compress.asm sha256-compress.asm sha512-compress.asm \
4824 sha3-permute.asm umac-nh.asm umac-nh-n.asm machine.m4"
4826 # Assembler files which generate additional object files if they are used.
4827 asm_optional_list=""
4829 if test "x$enable_public_key" = "xyes" ; then
4830 asm_optional_list="ecc-192-modp.asm ecc-224-modp.asm ecc-256-redc.asm \
4831 ecc-384-modp.asm ecc-521-modp.asm"
4834 OPT_ASM_SOURCES=""
4836 asm_file_list=""
4838 if test "x$enable_assembler" = xyes ; then
4839 if test -n "$asm_path"; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: Looking for assembler files in $asm_path." >&5
4841 $as_echo "$as_me: Looking for assembler files in $asm_path." >&6;}
4842 for tmp_f in $asm_replace_list ; do
4843 for asm_dir in $asm_path ; do
4844 if test -f "$srcdir/$asm_dir/$tmp_f"; then
4845 asm_file_list="$asm_file_list $tmp_f"
4846 ac_config_links="$ac_config_links $tmp_f:$asm_dir/$tmp_f"
4848 break
4850 done
4851 done
4852 for tmp_o in $asm_optional_list ; do
4853 for asm_dir in $asm_path ; do
4854 if test -f "$srcdir/$asm_dir/$tmp_o"; then
4855 asm_file_list="$asm_file_list $tmp_o"
4856 ac_config_links="$ac_config_links $tmp_o:$asm_dir/$tmp_o"
4858 while read tmp_func ; do
4859 cat >>confdefs.h <<_ACEOF
4860 #define HAVE_NATIVE_$tmp_func 1
4861 _ACEOF
4863 eval HAVE_NATIVE_$tmp_func=yes
4864 done <<EOF
4865 `sed -n 's/[^ ]*PROLOGUE(_*\(nettle_\)*\([^)]*\)).*$/\2/p' < "$srcdir/$asm_dir/$tmp_o"`
4867 OPT_ASM_SOURCES="$OPT_ASM_SOURCES $tmp_o"
4868 break
4870 done
4871 done
4872 if test -z "$asm_file_list"; then
4873 enable_assembler=no
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No assembler files found." >&5
4875 $as_echo "$as_me: WARNING: No assembler files found." >&2;}
4884 # Besides getting correct dependencies, the explicit rules also tell
4885 # make that the .s files "ought to exist", so they are preferred over
4886 # .c files.
4887 ac_config_commands="$ac_config_commands asm.d"
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCPIC" >&5
4891 $as_echo_n "checking CCPIC... " >&6; }
4892 if ${lsh_cv_sys_ccpic+:} false; then :
4893 $as_echo_n "(cached) " >&6
4894 else
4896 if test -z "$CCPIC" ; then
4897 if test "$GCC" = yes ; then
4898 case "$host_os" in
4899 bsdi4.*) CCPIC="-fPIC" ;;
4900 bsdi*) CCPIC="" ;;
4901 darwin*) CCPIC="-fPIC" ;;
4902 # Could also use -fpic, depending on the number of symbol references
4903 solaris*) CCPIC="-fPIC" ;;
4904 cygwin*) CCPIC="" ;;
4905 mingw32*) CCPIC="" ;;
4906 *) CCPIC="-fpic" ;;
4907 esac
4908 else
4909 case "$host_os" in
4910 darwin*) CCPIC="-fPIC" ;;
4911 irix*) CCPIC="-share" ;;
4912 hpux*) CCPIC="+z"; ;;
4913 *freebsd*) CCPIC="-fpic" ;;
4914 sco*|sysv4.*) CCPIC="-KPIC -dy -Bdynamic" ;;
4915 solaris*) CCPIC="-KPIC -Bdynamic" ;;
4916 winnt*) CCPIC="-shared" ;;
4917 *) CCPIC="" ;;
4918 esac
4921 OLD_CFLAGS="$CFLAGS"
4922 CFLAGS="$CFLAGS $CCPIC"
4923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924 /* end confdefs.h. */
4927 main ()
4929 exit(0);
4931 return 0;
4933 _ACEOF
4934 if ac_fn_c_try_compile "$LINENO"; then :
4935 lsh_cv_sys_ccpic="$CCPIC"
4936 else
4937 lsh_cv_sys_ccpic=''
4939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4940 CFLAGS="$OLD_CFLAGS"
4944 CCPIC="$lsh_cv_sys_ccpic"
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCPIC" >&5
4946 $as_echo "$CCPIC" >&6; }
4949 SHLIBCFLAGS="$CCPIC"
4951 IF_DLL='#'
4952 LIBNETTLE_FILE_SRC='$(LIBNETTLE_FORLINK)'
4953 LIBHOGWEED_FILE_SRC='$(LIBHOGWEED_FORLINK)'
4954 EMULATOR=''
4955 W64_ABI=no
4957 case "$host_os" in
4958 mingw32*|cygwin*)
4959 # The actual DLLs, e.g. libnettle-$major-$minor.dll, are normally
4960 # installed into the bin dir (or more exactly $libdir/../bin, for
4961 # automake), while libnettle.dll.a, which is a stub file for
4962 # linking to the DLL, is installed into the lib dir.
4963 case "$host_os" in
4964 mingw32*)
4965 LIBNETTLE_FORLINK='libnettle-$(LIBNETTLE_MAJOR)-$(LIBNETTLE_MINOR).dll'
4966 LIBHOGWEED_FORLINK='libhogweed-$(LIBHOGWEED_MAJOR)-$(LIBHOGWEED_MINOR).dll'
4968 cygwin*)
4969 LIBNETTLE_FORLINK='cygnettle-$(LIBNETTLE_MAJOR)-$(LIBNETTLE_MINOR).dll'
4970 LIBHOGWEED_FORLINK='cyghogweed-$(LIBHOGWEED_MAJOR)-$(LIBHOGWEED_MINOR).dll'
4972 esac
4973 if test "x$cross_compiling" = xyes ; then
4974 case "$ABI" in
4976 EMULATOR=wine64
4979 EMULATOR=wine
4981 esac
4983 if test "x$ABI" = x64 ; then
4984 W64_ABI=yes
4986 LIBNETTLE_SONAME=''
4987 LIBNETTLE_FILE='libnettle.dll.a'
4988 LIBNETTLE_FILE_SRC='$(LIBNETTLE_FILE)'
4989 LIBNETTLE_LINK='$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,--out-implib=$(LIBNETTLE_FILE) -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive'
4990 LIBNETTLE_LIBS='-Wl,--no-whole-archive $(LIBS)'
4992 LIBHOGWEED_SONAME=''
4993 LIBHOGWEED_FILE='libhogweed.dll.a'
4994 LIBHOGWEED_FILE_SRC='$(LIBHOGWEED_FILE)'
4995 LIBHOGWEED_LINK='$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,--out-implib=$(LIBHOGWEED_FILE) -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive'
4996 LIBHOGWEED_LIBS='-Wl,--no-whole-archive $(LIBS) libnettle.dll.a'
4997 IF_DLL=''
4999 darwin*)
5000 LIBNETTLE_FORLINK=libnettle.dylib
5001 LIBNETTLE_SONAME='libnettle.$(LIBNETTLE_MAJOR).dylib'
5002 LIBNETTLE_FILE='libnettle.$(LIBNETTLE_MAJOR).$(LIBNETTLE_MINOR).dylib'
5003 LIBNETTLE_LINK='$(CC) $(CFLAGS) -dynamiclib $(LDFLAGS) -install_name ${libdir}/$(LIBNETTLE_SONAME) -compatibility_version $(LIBNETTLE_MAJOR) -current_version $(LIBNETTLE_MAJOR).$(LIBNETTLE_MINOR)'
5004 LIBNETTLE_LIBS=''
5006 LIBHOGWEED_FORLINK=libhogweed.dylib
5007 LIBHOGWEED_SONAME='libhogweed.$(LIBHOGWEED_MAJOR).dylib'
5008 LIBHOGWEED_FILE='libhogweed.$(LIBHOGWEED_MAJOR).$(LIBHOGWEED_MINOR).dylib'
5009 LIBHOGWEED_LINK='$(CC) $(CFLAGS) -dynamiclib -L. $(LDFLAGS) -install_name ${libdir}/$(LIBHOGWEED_SONAME) -compatibility_version $(LIBHOGWEED_MAJOR) -current_version $(LIBHOGWEED_MAJOR).$(LIBHOGWEED_MINOR)'
5010 LIBHOGWEED_LIBS='-lnettle -lgmp'
5012 solaris*)
5013 # Sun's ld uses -h to set the soname, and this option is passed
5014 # through by both Sun's compiler and gcc. Might not work with GNU
5015 # ld, but it's unusual to use GNU ld on Solaris.
5016 LIBNETTLE_FORLINK=libnettle.so
5017 LIBNETTLE_SONAME='$(LIBNETTLE_FORLINK).$(LIBNETTLE_MAJOR)'
5018 LIBNETTLE_FILE='$(LIBNETTLE_SONAME).$(LIBNETTLE_MINOR)'
5019 LIBNETTLE_LINK='$(CC) $(CFLAGS) $(LDFLAGS) -G -h $(LIBNETTLE_SONAME)'
5020 LIBNETTLE_LIBS=''
5022 LIBHOGWEED_FORLINK=libhogweed.so
5023 LIBHOGWEED_SONAME='$(LIBHOGWEED_FORLINK).$(LIBHOGWEED_MAJOR)'
5024 LIBHOGWEED_FILE='$(LIBHOGWEED_SONAME).$(LIBHOGWEED_MINOR)'
5025 LIBHOGWEED_LINK='$(CC) $(CFLAGS) $(LDFLAGS) -L. -G -h $(LIBHOGWEED_SONAME)'
5026 LIBHOGWEED_LIBS='-lnettle -lgmp'
5029 LIBNETTLE_FORLINK=libnettle.so
5030 LIBNETTLE_SONAME='$(LIBNETTLE_FORLINK).$(LIBNETTLE_MAJOR)'
5031 LIBNETTLE_FILE='$(LIBNETTLE_SONAME).$(LIBNETTLE_MINOR)'
5032 LIBNETTLE_LINK='$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-soname=$(LIBNETTLE_SONAME)'
5033 LIBNETTLE_LIBS=''
5035 LIBHOGWEED_FORLINK=libhogweed.so
5036 LIBHOGWEED_SONAME='$(LIBHOGWEED_FORLINK).$(LIBHOGWEED_MAJOR)'
5037 LIBHOGWEED_FILE='$(LIBHOGWEED_SONAME).$(LIBHOGWEED_MINOR)'
5038 LIBHOGWEED_LINK='$(CC) $(CFLAGS) $(LDFLAGS) -L. -shared -Wl,-soname=$(LIBHOGWEED_SONAME)'
5039 # Requested by debian, to make linking with only -lhogweed work
5040 # (does not work in general, e.g., with static linking all of
5041 # -lhogweed -lgmp -lnettle are still required). Also makes dlopen
5042 # of libhogweed.so work, without having to use RTLD_GLOBAL.
5043 # Depends on -L. above, to locate nettle.so.
5044 LIBHOGWEED_LIBS='-lnettle -lgmp'
5046 esac
5048 if test "x$enable_pic" = xyes; then
5049 CCPIC_MAYBE="$CCPIC"
5050 else
5051 CCPIC_MAYBE=''
5055 ASM_SYMBOL_PREFIX=''
5056 ASM_ELF_STYLE='no'
5057 # GNU as default is to use @
5058 ASM_TYPE_FUNCTION='@function'
5059 ASM_TYPE_PROGBITS='@progbits'
5060 ASM_MARK_NOEXEC_STACK=''
5061 ASM_ALIGN_LOG=''
5063 if test x$enable_assembler = xyes ; then
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if globals are prefixed by underscore" >&5
5065 $as_echo_n "checking if globals are prefixed by underscore... " >&6; }
5066 if ${nettle_cv_asm_underscore+:} false; then :
5067 $as_echo_n "(cached) " >&6
5068 else
5069 # Default is no underscore
5070 nettle_cv_asm_underscore=no
5071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5072 /* end confdefs.h. */
5073 int a_global_symbol;
5074 _ACEOF
5075 if ac_fn_c_try_compile "$LINENO"; then :
5076 $NM conftest.$OBJEXT >conftest.out
5077 if grep _a_global_symbol conftest.out >/dev/null ; then
5078 nettle_cv_asm_underscore=yes
5079 elif grep a_global_symbol conftest.out >/dev/null ; then
5080 nettle_cv_asm_underscore=no
5081 else
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: nm doesn't list a_global_symbol at all" >&5
5083 $as_echo "$as_me: WARNING: nm doesn't list a_global_symbol at all" >&2;}
5085 else
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: test program with a single global could not be compiled!?" >&5
5087 $as_echo "$as_me: WARNING: test program with a single global could not be compiled!?" >&2;}
5089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_underscore" >&5
5092 $as_echo "$nettle_cv_asm_underscore" >&6; }
5093 if test x$nettle_cv_asm_underscore = xyes ; then
5094 ASM_SYMBOL_PREFIX='_'
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF-style .type,%function pseudo-ops" >&5
5098 $as_echo_n "checking for ELF-style .type,%function pseudo-ops... " >&6; }
5099 if ${nettle_cv_asm_type_percent_function+:} false; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 cat >conftest.s <<EOF
5104 .text
5105 .globl foo
5106 .type foo,%function
5107 foo:
5108 .Lend:
5110 .size foo, .Lend - foo
5113 gmp_assemble="$CC $CFLAGS $CPPFLAGS -c conftest.s >conftest.out 2>&1"
5114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
5115 (eval $gmp_assemble) 2>&5
5116 ac_status=$?
5117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5118 test $ac_status = 0; }; then
5119 cat conftest.out >&5
5120 nettle_cv_asm_type_percent_function=yes
5121 else
5122 cat conftest.out >&5
5123 echo "configure: failed program was:" >&5
5124 cat conftest.s >&5
5125 nettle_cv_asm_type_percent_function=no
5127 rm -f conftest*
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_type_percent_function" >&5
5131 $as_echo "$nettle_cv_asm_type_percent_function" >&6; }
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF-style .type,#function pseudo-ops" >&5
5134 $as_echo_n "checking for ELF-style .type,#function pseudo-ops... " >&6; }
5135 if ${nettle_cv_asm_type_hash_function+:} false; then :
5136 $as_echo_n "(cached) " >&6
5137 else
5138 cat >conftest.s <<EOF
5140 .text
5141 .globl foo
5142 .type foo,#function
5143 foo:
5144 .Lend:
5146 .size foo, .Lend - foo
5149 gmp_assemble="$CC $CFLAGS $CPPFLAGS -c conftest.s >conftest.out 2>&1"
5150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
5151 (eval $gmp_assemble) 2>&5
5152 ac_status=$?
5153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5154 test $ac_status = 0; }; then
5155 cat conftest.out >&5
5156 nettle_cv_asm_type_hash_function=yes
5157 else
5158 cat conftest.out >&5
5159 echo "configure: failed program was:" >&5
5160 cat conftest.s >&5
5161 nettle_cv_asm_type_hash_function=no
5163 rm -f conftest*
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_type_hash_function" >&5
5167 $as_echo "$nettle_cv_asm_type_hash_function" >&6; }
5169 if test x$nettle_cv_asm_type_percent_function = xyes ; then
5170 ASM_ELF_STYLE='yes'
5171 ASM_TYPE_FUNCTION='%function'
5172 ASM_TYPE_PROGBITS='%progbits'
5173 else
5174 if test x$nettle_cv_asm_type_hash_function = xyes ; then
5175 ASM_ELF_STYLE='yes'
5176 ASM_TYPE_FUNCTION='#function'
5177 ASM_TYPE_PROGBITS='#progbits'
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use a .note.GNU-stack section" >&5
5182 $as_echo_n "checking if we should use a .note.GNU-stack section... " >&6; }
5183 if ${nettle_cv_asm_gnu_stack+:} false; then :
5184 $as_echo_n "(cached) " >&6
5185 else
5186 # Default
5187 nettle_cv_asm_gnu_stack=no
5189 cat >conftest.c <<EOF
5190 int foo() { return 0; }
5192 nettle_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >conftest.out 2>&1"
5193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$nettle_compile\""; } >&5
5194 (eval $nettle_compile) 2>&5
5195 ac_status=$?
5196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5197 test $ac_status = 0; }; then
5198 cat conftest.out >&5
5199 $OBJDUMP -x conftest.o | grep '\.note\.GNU-stack' > /dev/null \
5200 && nettle_cv_asm_gnu_stack=yes
5201 else
5202 cat conftest.out >&5
5203 echo "configure: failed program was:" >&5
5204 cat conftest.s >&5
5206 rm -f conftest.*
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_gnu_stack" >&5
5209 $as_echo "$nettle_cv_asm_gnu_stack" >&6; }
5210 if test x$nettle_cv_asm_gnu_stack = xyes ; then
5211 ASM_MARK_NOEXEC_STACK='.section .note.GNU-stack,"",TYPE_PROGBITS'
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .align assembly directive is logarithmic" >&5
5215 $as_echo_n "checking if .align assembly directive is logarithmic... " >&6; }
5216 if ${nettle_cv_asm_align_log+:} false; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 cat >conftest.s <<EOF
5221 .align 3
5224 gmp_assemble="$CC $CFLAGS $CPPFLAGS -c conftest.s >conftest.out 2>&1"
5225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
5226 (eval $gmp_assemble) 2>&5
5227 ac_status=$?
5228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5229 test $ac_status = 0; }; then
5230 cat conftest.out >&5
5231 nettle_cv_asm_align_log=yes
5232 else
5233 cat conftest.out >&5
5234 echo "configure: failed program was:" >&5
5235 cat conftest.s >&5
5236 nettle_cv_asm_align_log=no
5238 rm -f conftest*
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_align_log" >&5
5242 $as_echo "$nettle_cv_asm_align_log" >&6; }
5243 ASM_ALIGN_LOG="$nettle_cv_asm_align_log"
5275 # Extract the first word of "m4", so it can be a program name with args.
5276 set dummy m4; ac_word=$2
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5278 $as_echo_n "checking for $ac_word... " >&6; }
5279 if ${ac_cv_path_M4+:} false; then :
5280 $as_echo_n "(cached) " >&6
5281 else
5282 case $M4 in
5283 [\\/]* | ?:[\\/]*)
5284 ac_cv_path_M4="$M4" # Let the user override the test with a path.
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5290 IFS=$as_save_IFS
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5294 ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext"
5295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 break 2
5298 done
5299 done
5300 IFS=$as_save_IFS
5302 test -z "$ac_cv_path_M4" && ac_cv_path_M4="m4"
5304 esac
5306 M4=$ac_cv_path_M4
5307 if test -n "$M4"; then
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
5309 $as_echo "$M4" >&6; }
5310 else
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312 $as_echo "no" >&6; }
5317 if test "x$enable_gcov" = "xyes"; then
5318 CFLAGS="$CFLAGS -ftest-coverage -fprofile-arcs"
5321 # Checks for typedefs, structures, and compiler characteristics.
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5323 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5324 if ${ac_cv_c_const+:} false; then :
5325 $as_echo_n "(cached) " >&6
5326 else
5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5331 main ()
5334 #ifndef __cplusplus
5335 /* Ultrix mips cc rejects this sort of thing. */
5336 typedef int charset[2];
5337 const charset cs = { 0, 0 };
5338 /* SunOS 4.1.1 cc rejects this. */
5339 char const *const *pcpcc;
5340 char **ppc;
5341 /* NEC SVR4.0.2 mips cc rejects this. */
5342 struct point {int x, y;};
5343 static struct point const zero = {0,0};
5344 /* AIX XL C 1.02.0.0 rejects this.
5345 It does not let you subtract one const X* pointer from another in
5346 an arm of an if-expression whose if-part is not a constant
5347 expression */
5348 const char *g = "string";
5349 pcpcc = &g + (g ? g-g : 0);
5350 /* HPUX 7.0 cc rejects these. */
5351 ++pcpcc;
5352 ppc = (char**) pcpcc;
5353 pcpcc = (char const *const *) ppc;
5354 { /* SCO 3.2v4 cc rejects this sort of thing. */
5355 char tx;
5356 char *t = &tx;
5357 char const *s = 0 ? (char *) 0 : (char const *) 0;
5359 *t++ = 0;
5360 if (s) return 0;
5362 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5363 int x[] = {25, 17};
5364 const int *foo = &x[0];
5365 ++foo;
5367 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5368 typedef const int *iptr;
5369 iptr p = 0;
5370 ++p;
5372 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5373 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5374 struct s { int j; const int *ap[3]; } bx;
5375 struct s *b = &bx; b->j = 5;
5377 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5378 const int foo = 10;
5379 if (!foo) return 0;
5381 return !cs[0] && !zero.x;
5382 #endif
5385 return 0;
5387 _ACEOF
5388 if ac_fn_c_try_compile "$LINENO"; then :
5389 ac_cv_c_const=yes
5390 else
5391 ac_cv_c_const=no
5393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5396 $as_echo "$ac_cv_c_const" >&6; }
5397 if test $ac_cv_c_const = no; then
5399 $as_echo "#define const /**/" >>confdefs.h
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5404 $as_echo_n "checking for inline... " >&6; }
5405 if ${ac_cv_c_inline+:} false; then :
5406 $as_echo_n "(cached) " >&6
5407 else
5408 ac_cv_c_inline=no
5409 for ac_kw in inline __inline__ __inline; do
5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h. */
5412 #ifndef __cplusplus
5413 typedef int foo_t;
5414 static $ac_kw foo_t static_foo () {return 0; }
5415 $ac_kw foo_t foo () {return 0; }
5416 #endif
5418 _ACEOF
5419 if ac_fn_c_try_compile "$LINENO"; then :
5420 ac_cv_c_inline=$ac_kw
5422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5423 test "$ac_cv_c_inline" != no && break
5424 done
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5428 $as_echo "$ac_cv_c_inline" >&6; }
5430 case $ac_cv_c_inline in
5431 inline | yes) ;;
5433 case $ac_cv_c_inline in
5434 no) ac_val=;;
5435 *) ac_val=$ac_cv_c_inline;;
5436 esac
5437 cat >>confdefs.h <<_ACEOF
5438 #ifndef __cplusplus
5439 #define inline $ac_val
5440 #endif
5441 _ACEOF
5443 esac
5445 ac_ext=c
5446 ac_cpp='$CPP $CPPFLAGS'
5447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5451 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5452 # On Suns, sometimes $CPP names a directory.
5453 if test -n "$CPP" && test -d "$CPP"; then
5454 CPP=
5456 if test -z "$CPP"; then
5457 if ${ac_cv_prog_CPP+:} false; then :
5458 $as_echo_n "(cached) " >&6
5459 else
5460 # Double quotes because CPP needs to be expanded
5461 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5463 ac_preproc_ok=false
5464 for ac_c_preproc_warn_flag in '' yes
5466 # Use a header file that comes with gcc, so configuring glibc
5467 # with a fresh cross-compiler works.
5468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5469 # <limits.h> exists even on freestanding compilers.
5470 # On the NeXT, cc -E runs the code through the compiler's parser,
5471 # not just through cpp. "Syntax error" is here to catch this case.
5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473 /* end confdefs.h. */
5474 #ifdef __STDC__
5475 # include <limits.h>
5476 #else
5477 # include <assert.h>
5478 #endif
5479 Syntax error
5480 _ACEOF
5481 if ac_fn_c_try_cpp "$LINENO"; then :
5483 else
5484 # Broken: fails on valid input.
5485 continue
5487 rm -f conftest.err conftest.i conftest.$ac_ext
5489 # OK, works on sane cases. Now check whether nonexistent headers
5490 # can be detected and how.
5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h. */
5493 #include <ac_nonexistent.h>
5494 _ACEOF
5495 if ac_fn_c_try_cpp "$LINENO"; then :
5496 # Broken: success on invalid input.
5497 continue
5498 else
5499 # Passes both tests.
5500 ac_preproc_ok=:
5501 break
5503 rm -f conftest.err conftest.i conftest.$ac_ext
5505 done
5506 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5507 rm -f conftest.i conftest.err conftest.$ac_ext
5508 if $ac_preproc_ok; then :
5509 break
5512 done
5513 ac_cv_prog_CPP=$CPP
5516 CPP=$ac_cv_prog_CPP
5517 else
5518 ac_cv_prog_CPP=$CPP
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5521 $as_echo "$CPP" >&6; }
5522 ac_preproc_ok=false
5523 for ac_c_preproc_warn_flag in '' yes
5525 # Use a header file that comes with gcc, so configuring glibc
5526 # with a fresh cross-compiler works.
5527 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5528 # <limits.h> exists even on freestanding compilers.
5529 # On the NeXT, cc -E runs the code through the compiler's parser,
5530 # not just through cpp. "Syntax error" is here to catch this case.
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5533 #ifdef __STDC__
5534 # include <limits.h>
5535 #else
5536 # include <assert.h>
5537 #endif
5538 Syntax error
5539 _ACEOF
5540 if ac_fn_c_try_cpp "$LINENO"; then :
5542 else
5543 # Broken: fails on valid input.
5544 continue
5546 rm -f conftest.err conftest.i conftest.$ac_ext
5548 # OK, works on sane cases. Now check whether nonexistent headers
5549 # can be detected and how.
5550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h. */
5552 #include <ac_nonexistent.h>
5553 _ACEOF
5554 if ac_fn_c_try_cpp "$LINENO"; then :
5555 # Broken: success on invalid input.
5556 continue
5557 else
5558 # Passes both tests.
5559 ac_preproc_ok=:
5560 break
5562 rm -f conftest.err conftest.i conftest.$ac_ext
5564 done
5565 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5566 rm -f conftest.i conftest.err conftest.$ac_ext
5567 if $ac_preproc_ok; then :
5569 else
5570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5572 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5573 See \`config.log' for more details" "$LINENO" 5; }
5576 ac_ext=c
5577 ac_cpp='$CPP $CPPFLAGS'
5578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5584 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5585 if ${ac_cv_path_GREP+:} false; then :
5586 $as_echo_n "(cached) " >&6
5587 else
5588 if test -z "$GREP"; then
5589 ac_path_GREP_found=false
5590 # Loop through the user's path and test for each of PROGNAME-LIST
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5594 IFS=$as_save_IFS
5595 test -z "$as_dir" && as_dir=.
5596 for ac_prog in grep ggrep; do
5597 for ac_exec_ext in '' $ac_executable_extensions; do
5598 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5599 as_fn_executable_p "$ac_path_GREP" || continue
5600 # Check for GNU ac_path_GREP and select it if it is found.
5601 # Check for GNU $ac_path_GREP
5602 case `"$ac_path_GREP" --version 2>&1` in
5603 *GNU*)
5604 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5606 ac_count=0
5607 $as_echo_n 0123456789 >"conftest.in"
5608 while :
5610 cat "conftest.in" "conftest.in" >"conftest.tmp"
5611 mv "conftest.tmp" "conftest.in"
5612 cp "conftest.in" "conftest.nl"
5613 $as_echo 'GREP' >> "conftest.nl"
5614 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5615 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5616 as_fn_arith $ac_count + 1 && ac_count=$as_val
5617 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5618 # Best one so far, save it but keep looking for a better one
5619 ac_cv_path_GREP="$ac_path_GREP"
5620 ac_path_GREP_max=$ac_count
5622 # 10*(2^10) chars as input seems more than enough
5623 test $ac_count -gt 10 && break
5624 done
5625 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5626 esac
5628 $ac_path_GREP_found && break 3
5629 done
5630 done
5631 done
5632 IFS=$as_save_IFS
5633 if test -z "$ac_cv_path_GREP"; then
5634 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5636 else
5637 ac_cv_path_GREP=$GREP
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5642 $as_echo "$ac_cv_path_GREP" >&6; }
5643 GREP="$ac_cv_path_GREP"
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5647 $as_echo_n "checking for egrep... " >&6; }
5648 if ${ac_cv_path_EGREP+:} false; then :
5649 $as_echo_n "(cached) " >&6
5650 else
5651 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5652 then ac_cv_path_EGREP="$GREP -E"
5653 else
5654 if test -z "$EGREP"; then
5655 ac_path_EGREP_found=false
5656 # Loop through the user's path and test for each of PROGNAME-LIST
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_prog in egrep; do
5663 for ac_exec_ext in '' $ac_executable_extensions; do
5664 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5665 as_fn_executable_p "$ac_path_EGREP" || continue
5666 # Check for GNU ac_path_EGREP and select it if it is found.
5667 # Check for GNU $ac_path_EGREP
5668 case `"$ac_path_EGREP" --version 2>&1` in
5669 *GNU*)
5670 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5672 ac_count=0
5673 $as_echo_n 0123456789 >"conftest.in"
5674 while :
5676 cat "conftest.in" "conftest.in" >"conftest.tmp"
5677 mv "conftest.tmp" "conftest.in"
5678 cp "conftest.in" "conftest.nl"
5679 $as_echo 'EGREP' >> "conftest.nl"
5680 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5681 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5682 as_fn_arith $ac_count + 1 && ac_count=$as_val
5683 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5684 # Best one so far, save it but keep looking for a better one
5685 ac_cv_path_EGREP="$ac_path_EGREP"
5686 ac_path_EGREP_max=$ac_count
5688 # 10*(2^10) chars as input seems more than enough
5689 test $ac_count -gt 10 && break
5690 done
5691 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5692 esac
5694 $ac_path_EGREP_found && break 3
5695 done
5696 done
5697 done
5698 IFS=$as_save_IFS
5699 if test -z "$ac_cv_path_EGREP"; then
5700 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5702 else
5703 ac_cv_path_EGREP=$EGREP
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5709 $as_echo "$ac_cv_path_EGREP" >&6; }
5710 EGREP="$ac_cv_path_EGREP"
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5714 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5715 if ${ac_cv_type_uid_t+:} false; then :
5716 $as_echo_n "(cached) " >&6
5717 else
5718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5719 /* end confdefs.h. */
5720 #include <sys/types.h>
5722 _ACEOF
5723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5724 $EGREP "uid_t" >/dev/null 2>&1; then :
5725 ac_cv_type_uid_t=yes
5726 else
5727 ac_cv_type_uid_t=no
5729 rm -f conftest*
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5733 $as_echo "$ac_cv_type_uid_t" >&6; }
5734 if test $ac_cv_type_uid_t = no; then
5736 $as_echo "#define uid_t int" >>confdefs.h
5739 $as_echo "#define gid_t int" >>confdefs.h
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5744 $as_echo_n "checking for ANSI C header files... " >&6; }
5745 if ${ac_cv_header_stdc+:} false; then :
5746 $as_echo_n "(cached) " >&6
5747 else
5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5750 #include <stdlib.h>
5751 #include <stdarg.h>
5752 #include <string.h>
5753 #include <float.h>
5756 main ()
5760 return 0;
5762 _ACEOF
5763 if ac_fn_c_try_compile "$LINENO"; then :
5764 ac_cv_header_stdc=yes
5765 else
5766 ac_cv_header_stdc=no
5768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770 if test $ac_cv_header_stdc = yes; then
5771 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h. */
5774 #include <string.h>
5776 _ACEOF
5777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5778 $EGREP "memchr" >/dev/null 2>&1; then :
5780 else
5781 ac_cv_header_stdc=no
5783 rm -f conftest*
5787 if test $ac_cv_header_stdc = yes; then
5788 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5791 #include <stdlib.h>
5793 _ACEOF
5794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5795 $EGREP "free" >/dev/null 2>&1; then :
5797 else
5798 ac_cv_header_stdc=no
5800 rm -f conftest*
5804 if test $ac_cv_header_stdc = yes; then
5805 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5806 if test "$cross_compiling" = yes; then :
5808 else
5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5810 /* end confdefs.h. */
5811 #include <ctype.h>
5812 #include <stdlib.h>
5813 #if ((' ' & 0x0FF) == 0x020)
5814 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5815 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5816 #else
5817 # define ISLOWER(c) \
5818 (('a' <= (c) && (c) <= 'i') \
5819 || ('j' <= (c) && (c) <= 'r') \
5820 || ('s' <= (c) && (c) <= 'z'))
5821 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5822 #endif
5824 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5826 main ()
5828 int i;
5829 for (i = 0; i < 256; i++)
5830 if (XOR (islower (i), ISLOWER (i))
5831 || toupper (i) != TOUPPER (i))
5832 return 2;
5833 return 0;
5835 _ACEOF
5836 if ac_fn_c_try_run "$LINENO"; then :
5838 else
5839 ac_cv_header_stdc=no
5841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5842 conftest.$ac_objext conftest.beam conftest.$ac_ext
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5848 $as_echo "$ac_cv_header_stdc" >&6; }
5849 if test $ac_cv_header_stdc = yes; then
5851 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5855 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5856 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5857 inttypes.h stdint.h unistd.h
5858 do :
5859 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5860 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5862 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5863 cat >>confdefs.h <<_ACEOF
5864 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5865 _ACEOF
5869 done
5872 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5873 if test "x$ac_cv_type_size_t" = xyes; then :
5875 else
5877 cat >>confdefs.h <<_ACEOF
5878 #define size_t unsigned int
5879 _ACEOF
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5884 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5885 if ${ac_cv_header_time+:} false; then :
5886 $as_echo_n "(cached) " >&6
5887 else
5888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889 /* end confdefs.h. */
5890 #include <sys/types.h>
5891 #include <sys/time.h>
5892 #include <time.h>
5895 main ()
5897 if ((struct tm *) 0)
5898 return 0;
5900 return 0;
5902 _ACEOF
5903 if ac_fn_c_try_compile "$LINENO"; then :
5904 ac_cv_header_time=yes
5905 else
5906 ac_cv_header_time=no
5908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5911 $as_echo "$ac_cv_header_time" >&6; }
5912 if test $ac_cv_header_time = yes; then
5914 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5918 # The cast to long int works around a bug in the HP C Compiler
5919 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5920 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5921 # This bug is HP SR number 8606223364.
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5923 $as_echo_n "checking size of long... " >&6; }
5924 if ${ac_cv_sizeof_long+:} false; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5927 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5929 else
5930 if test "$ac_cv_type_long" = yes; then
5931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5933 as_fn_error 77 "cannot compute sizeof (long)
5934 See \`config.log' for more details" "$LINENO" 5; }
5935 else
5936 ac_cv_sizeof_long=0
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5942 $as_echo "$ac_cv_sizeof_long" >&6; }
5946 cat >>confdefs.h <<_ACEOF
5947 #define SIZEOF_LONG $ac_cv_sizeof_long
5948 _ACEOF
5951 # The cast to long int works around a bug in the HP C Compiler,
5952 # see AC_CHECK_SIZEOF for more information.
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of uint64_t" >&5
5954 $as_echo_n "checking alignment of uint64_t... " >&6; }
5955 if ${ac_cv_alignof_uint64_t+:} false; then :
5956 $as_echo_n "(cached) " >&6
5957 else
5958 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_uint64_t" "$ac_includes_default
5959 #ifndef offsetof
5960 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
5961 #endif
5962 typedef struct { char x; uint64_t y; } ac__type_alignof_;"; then :
5964 else
5965 if test "$ac_cv_type_uint64_t" = yes; then
5966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5968 as_fn_error 77 "cannot compute alignment of uint64_t
5969 See \`config.log' for more details" "$LINENO" 5; }
5970 else
5971 ac_cv_alignof_uint64_t=0
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_uint64_t" >&5
5977 $as_echo "$ac_cv_alignof_uint64_t" >&6; }
5981 cat >>confdefs.h <<_ACEOF
5982 #define ALIGNOF_UINT64_T $ac_cv_alignof_uint64_t
5983 _ACEOF
5987 ALIGNOF_UINT64_T="$ac_cv_alignof_uint64_t"
5990 for ac_header in openssl/blowfish.h openssl/des.h openssl/cast.h openssl/aes.h
5991 do :
5992 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5993 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5994 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5995 cat >>confdefs.h <<_ACEOF
5996 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5997 _ACEOF
5999 else
6000 enable_openssl=no
6001 break
6004 done
6007 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6008 # for constant arguments. Useless!
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6010 $as_echo_n "checking for working alloca.h... " >&6; }
6011 if ${ac_cv_working_alloca_h+:} false; then :
6012 $as_echo_n "(cached) " >&6
6013 else
6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015 /* end confdefs.h. */
6016 #include <alloca.h>
6018 main ()
6020 char *p = (char *) alloca (2 * sizeof (int));
6021 if (p) return 0;
6023 return 0;
6025 _ACEOF
6026 if ac_fn_c_try_link "$LINENO"; then :
6027 ac_cv_working_alloca_h=yes
6028 else
6029 ac_cv_working_alloca_h=no
6031 rm -f core conftest.err conftest.$ac_objext \
6032 conftest$ac_exeext conftest.$ac_ext
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6035 $as_echo "$ac_cv_working_alloca_h" >&6; }
6036 if test $ac_cv_working_alloca_h = yes; then
6038 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6043 $as_echo_n "checking for alloca... " >&6; }
6044 if ${ac_cv_func_alloca_works+:} false; then :
6045 $as_echo_n "(cached) " >&6
6046 else
6047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048 /* end confdefs.h. */
6049 #ifdef __GNUC__
6050 # define alloca __builtin_alloca
6051 #else
6052 # ifdef _MSC_VER
6053 # include <malloc.h>
6054 # define alloca _alloca
6055 # else
6056 # ifdef HAVE_ALLOCA_H
6057 # include <alloca.h>
6058 # else
6059 # ifdef _AIX
6060 #pragma alloca
6061 # else
6062 # ifndef alloca /* predefined by HP cc +Olibcalls */
6063 void *alloca (size_t);
6064 # endif
6065 # endif
6066 # endif
6067 # endif
6068 #endif
6071 main ()
6073 char *p = (char *) alloca (1);
6074 if (p) return 0;
6076 return 0;
6078 _ACEOF
6079 if ac_fn_c_try_link "$LINENO"; then :
6080 ac_cv_func_alloca_works=yes
6081 else
6082 ac_cv_func_alloca_works=no
6084 rm -f core conftest.err conftest.$ac_objext \
6085 conftest$ac_exeext conftest.$ac_ext
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6088 $as_echo "$ac_cv_func_alloca_works" >&6; }
6090 if test $ac_cv_func_alloca_works = yes; then
6092 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6094 else
6095 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6096 # that cause trouble. Some versions do not even contain alloca or
6097 # contain a buggy version. If you still want to use their alloca,
6098 # use ar to extract alloca.o from them instead of compiling alloca.c.
6100 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6102 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6106 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6107 if ${ac_cv_os_cray+:} false; then :
6108 $as_echo_n "(cached) " >&6
6109 else
6110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h. */
6112 #if defined CRAY && ! defined CRAY2
6113 webecray
6114 #else
6115 wenotbecray
6116 #endif
6118 _ACEOF
6119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6120 $EGREP "webecray" >/dev/null 2>&1; then :
6121 ac_cv_os_cray=yes
6122 else
6123 ac_cv_os_cray=no
6125 rm -f conftest*
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6129 $as_echo "$ac_cv_os_cray" >&6; }
6130 if test $ac_cv_os_cray = yes; then
6131 for ac_func in _getb67 GETB67 getb67; do
6132 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6133 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6134 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6136 cat >>confdefs.h <<_ACEOF
6137 #define CRAY_STACKSEG_END $ac_func
6138 _ACEOF
6140 break
6143 done
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6147 $as_echo_n "checking stack direction for C alloca... " >&6; }
6148 if ${ac_cv_c_stack_direction+:} false; then :
6149 $as_echo_n "(cached) " >&6
6150 else
6151 if test "$cross_compiling" = yes; then :
6152 ac_cv_c_stack_direction=0
6153 else
6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6156 $ac_includes_default
6158 find_stack_direction (int *addr, int depth)
6160 int dir, dummy = 0;
6161 if (! addr)
6162 addr = &dummy;
6163 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6164 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6165 return dir + dummy;
6169 main (int argc, char **argv)
6171 return find_stack_direction (0, argc + !argv + 20) < 0;
6173 _ACEOF
6174 if ac_fn_c_try_run "$LINENO"; then :
6175 ac_cv_c_stack_direction=1
6176 else
6177 ac_cv_c_stack_direction=-1
6179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6180 conftest.$ac_objext conftest.beam conftest.$ac_ext
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6185 $as_echo "$ac_cv_c_stack_direction" >&6; }
6186 cat >>confdefs.h <<_ACEOF
6187 #define STACK_DIRECTION $ac_cv_c_stack_direction
6188 _ACEOF
6193 for ac_header in malloc.h
6194 do :
6195 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
6196 if test "x$ac_cv_header_malloc_h" = xyes; then :
6197 cat >>confdefs.h <<_ACEOF
6198 #define HAVE_MALLOC_H 1
6199 _ACEOF
6203 done
6206 for ac_func in strerror
6207 do :
6208 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
6209 if test "x$ac_cv_func_strerror" = xyes; then :
6210 cat >>confdefs.h <<_ACEOF
6211 #define HAVE_STRERROR 1
6212 _ACEOF
6215 done
6219 # Needed by the supplied memcmp.c
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6221 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6222 if ${ac_cv_c_bigendian+:} false; then :
6223 $as_echo_n "(cached) " >&6
6224 else
6225 ac_cv_c_bigendian=unknown
6226 # See if we're dealing with a universal compiler.
6227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228 /* end confdefs.h. */
6229 #ifndef __APPLE_CC__
6230 not a universal capable compiler
6231 #endif
6232 typedef int dummy;
6234 _ACEOF
6235 if ac_fn_c_try_compile "$LINENO"; then :
6237 # Check for potential -arch flags. It is not universal unless
6238 # there are at least two -arch flags with different values.
6239 ac_arch=
6240 ac_prev=
6241 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6242 if test -n "$ac_prev"; then
6243 case $ac_word in
6244 i?86 | x86_64 | ppc | ppc64)
6245 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6246 ac_arch=$ac_word
6247 else
6248 ac_cv_c_bigendian=universal
6249 break
6252 esac
6253 ac_prev=
6254 elif test "x$ac_word" = "x-arch"; then
6255 ac_prev=arch
6257 done
6259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6260 if test $ac_cv_c_bigendian = unknown; then
6261 # See if sys/param.h defines the BYTE_ORDER macro.
6262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6264 #include <sys/types.h>
6265 #include <sys/param.h>
6268 main ()
6270 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6271 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6272 && LITTLE_ENDIAN)
6273 bogus endian macros
6274 #endif
6277 return 0;
6279 _ACEOF
6280 if ac_fn_c_try_compile "$LINENO"; then :
6281 # It does; now see whether it defined to BIG_ENDIAN or not.
6282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6283 /* end confdefs.h. */
6284 #include <sys/types.h>
6285 #include <sys/param.h>
6288 main ()
6290 #if BYTE_ORDER != BIG_ENDIAN
6291 not big endian
6292 #endif
6295 return 0;
6297 _ACEOF
6298 if ac_fn_c_try_compile "$LINENO"; then :
6299 ac_cv_c_bigendian=yes
6300 else
6301 ac_cv_c_bigendian=no
6303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6307 if test $ac_cv_c_bigendian = unknown; then
6308 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310 /* end confdefs.h. */
6311 #include <limits.h>
6314 main ()
6316 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6317 bogus endian macros
6318 #endif
6321 return 0;
6323 _ACEOF
6324 if ac_fn_c_try_compile "$LINENO"; then :
6325 # It does; now see whether it defined to _BIG_ENDIAN or not.
6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327 /* end confdefs.h. */
6328 #include <limits.h>
6331 main ()
6333 #ifndef _BIG_ENDIAN
6334 not big endian
6335 #endif
6338 return 0;
6340 _ACEOF
6341 if ac_fn_c_try_compile "$LINENO"; then :
6342 ac_cv_c_bigendian=yes
6343 else
6344 ac_cv_c_bigendian=no
6346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6350 if test $ac_cv_c_bigendian = unknown; then
6351 # Compile a test program.
6352 if test "$cross_compiling" = yes; then :
6353 # Try to guess by grepping values from an object file.
6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6356 short int ascii_mm[] =
6357 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6358 short int ascii_ii[] =
6359 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6360 int use_ascii (int i) {
6361 return ascii_mm[i] + ascii_ii[i];
6363 short int ebcdic_ii[] =
6364 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6365 short int ebcdic_mm[] =
6366 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6367 int use_ebcdic (int i) {
6368 return ebcdic_mm[i] + ebcdic_ii[i];
6370 extern int foo;
6373 main ()
6375 return use_ascii (foo) == use_ebcdic (foo);
6377 return 0;
6379 _ACEOF
6380 if ac_fn_c_try_compile "$LINENO"; then :
6381 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6382 ac_cv_c_bigendian=yes
6384 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6385 if test "$ac_cv_c_bigendian" = unknown; then
6386 ac_cv_c_bigendian=no
6387 else
6388 # finding both strings is unlikely to happen, but who knows?
6389 ac_cv_c_bigendian=unknown
6393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6394 else
6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396 /* end confdefs.h. */
6397 $ac_includes_default
6399 main ()
6402 /* Are we little or big endian? From Harbison&Steele. */
6403 union
6405 long int l;
6406 char c[sizeof (long int)];
6407 } u;
6408 u.l = 1;
6409 return u.c[sizeof (long int) - 1] == 1;
6412 return 0;
6414 _ACEOF
6415 if ac_fn_c_try_run "$LINENO"; then :
6416 ac_cv_c_bigendian=no
6417 else
6418 ac_cv_c_bigendian=yes
6420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6421 conftest.$ac_objext conftest.beam conftest.$ac_ext
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6427 $as_echo "$ac_cv_c_bigendian" >&6; }
6428 case $ac_cv_c_bigendian in #(
6429 yes)
6430 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6431 ;; #(
6433 ;; #(
6434 universal)
6436 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6438 ;; #(
6440 as_fn_error $? "unknown endianness
6441 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6442 esac
6444 ac_fn_c_check_func "$LINENO" "memxor" "ac_cv_func_memxor"
6445 if test "x$ac_cv_func_memxor" = xyes; then :
6446 $as_echo "#define HAVE_MEMXOR 1" >>confdefs.h
6448 else
6449 case " $LIBOBJS " in
6450 *" memxor.$ac_objext "* ) ;;
6451 *) LIBOBJS="$LIBOBJS memxor.$ac_objext"
6453 esac
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
6460 $as_echo_n "checking for __attribute__... " >&6; }
6461 if ${lsh_cv_c_attribute+:} false; then :
6462 $as_echo_n "(cached) " >&6
6463 else
6464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465 /* end confdefs.h. */
6467 #include <stdlib.h>
6469 static void foo(void) __attribute__ ((noreturn));
6471 static void __attribute__ ((noreturn))
6472 foo(void)
6474 exit(1);
6478 main ()
6482 return 0;
6484 _ACEOF
6485 if ac_fn_c_try_compile "$LINENO"; then :
6486 lsh_cv_c_attribute=yes
6487 else
6488 lsh_cv_c_attribute=no
6490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lsh_cv_c_attribute" >&5
6493 $as_echo "$lsh_cv_c_attribute" >&6; }
6496 if test "x$lsh_cv_c_attribute" = "xyes"; then
6497 $as_echo "#define HAVE_GCC_ATTRIBUTE 1" >>confdefs.h
6503 # According to Simon Josefsson, looking for uint32_t and friends in
6504 # sys/types.h is needed on some systems, in particular cygwin.
6505 # ------ AX CREATE STDINT H -------------------------------------
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
6507 $as_echo_n "checking for stdint types... " >&6; }
6508 ac_stdint_h=`echo nettle-stdint.h`
6509 # try to shortcircuit - if the default include path of the compiler
6510 # can find a "stdint.h" header then we assume that all compilers can.
6511 if ${ac_cv_header_stdint_t+:} false; then :
6512 $as_echo_n "(cached) " >&6
6513 else
6515 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
6516 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
6517 old_CFLAGS="$CFLAGS" ; CFLAGS=""
6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h. */
6520 #include <stdint.h>
6522 main ()
6524 int_least32_t v = 0;
6526 return 0;
6528 _ACEOF
6529 if ac_fn_c_try_compile "$LINENO"; then :
6530 ac_cv_stdint_result="(assuming C99 compatible system)"
6531 ac_cv_header_stdint_t="stdint.h";
6532 else
6533 ac_cv_header_stdint_t=""
6535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6536 CXXFLAGS="$old_CXXFLAGS"
6537 CPPFLAGS="$old_CPPFLAGS"
6538 CFLAGS="$old_CFLAGS"
6542 v="... $ac_cv_header_stdint_h"
6543 if test "$ac_stdint_h" = "stdint.h" ; then
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
6545 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
6546 elif test "$ac_stdint_h" = "inttypes.h" ; then
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
6548 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
6549 elif test "_$ac_cv_header_stdint_t" = "_" ; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
6551 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
6552 else
6553 ac_cv_header_stdint="$ac_cv_header_stdint_t"
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
6555 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
6558 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
6561 inttype_headers=`echo sys/types.h | sed -e 's/,/ /g'`
6563 ac_cv_stdint_result="(no helpful system typedefs seen)"
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
6565 $as_echo_n "checking for stdint uintptr_t... " >&6; }
6566 if ${ac_cv_header_stdint_x+:} false; then :
6567 $as_echo_n "(cached) " >&6
6568 else
6570 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
6572 $as_echo "(..)" >&6; }
6573 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
6574 unset ac_cv_type_uintptr_t
6575 unset ac_cv_type_uint64_t
6576 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
6578 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6579 ac_cv_header_stdint_x=$i
6580 else
6581 continue
6584 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
6586 if test "x$ac_cv_type_uint64_t" = xyes; then :
6587 and64="/uint64_t"
6588 else
6589 and64=""
6592 ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
6593 break;
6594 done
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
6596 $as_echo_n "checking for stdint uintptr_t... " >&6; }
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
6600 $as_echo "$ac_cv_header_stdint_x" >&6; }
6602 if test "_$ac_cv_header_stdint_x" = "_" ; then
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
6604 $as_echo_n "checking for stdint uint32_t... " >&6; }
6605 if ${ac_cv_header_stdint_o+:} false; then :
6606 $as_echo_n "(cached) " >&6
6607 else
6609 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
6611 $as_echo "(..)" >&6; }
6612 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
6613 unset ac_cv_type_uint32_t
6614 unset ac_cv_type_uint64_t
6615 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
6617 if test "x$ac_cv_type_uint32_t" = xyes; then :
6618 ac_cv_header_stdint_o=$i
6619 else
6620 continue
6623 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
6625 if test "x$ac_cv_type_uint64_t" = xyes; then :
6626 and64="/uint64_t"
6627 else
6628 and64=""
6631 ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
6632 break;
6633 done
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
6635 $as_echo_n "checking for stdint uint32_t... " >&6; }
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
6639 $as_echo "$ac_cv_header_stdint_o" >&6; }
6642 if test "_$ac_cv_header_stdint_x" = "_" ; then
6643 if test "_$ac_cv_header_stdint_o" = "_" ; then
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
6645 $as_echo_n "checking for stdint u_int32_t... " >&6; }
6646 if ${ac_cv_header_stdint_u+:} false; then :
6647 $as_echo_n "(cached) " >&6
6648 else
6650 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
6652 $as_echo "(..)" >&6; }
6653 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
6654 unset ac_cv_type_u_int32_t
6655 unset ac_cv_type_u_int64_t
6656 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
6658 if test "x$ac_cv_type_u_int32_t" = xyes; then :
6659 ac_cv_header_stdint_u=$i
6660 else
6661 continue
6664 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
6666 if test "x$ac_cv_type_u_int64_t" = xyes; then :
6667 and64="/u_int64_t"
6668 else
6669 and64=""
6672 ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
6673 break;
6674 done
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
6676 $as_echo_n "checking for stdint u_int32_t... " >&6; }
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
6680 $as_echo "$ac_cv_header_stdint_u" >&6; }
6681 fi fi
6683 if test "_$ac_cv_header_stdint_x" = "_" ; then
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
6685 $as_echo_n "checking for stdint datatype model... " >&6; }
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
6687 $as_echo "(..)" >&6; }
6688 # The cast to long int works around a bug in the HP C Compiler
6689 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6690 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6691 # This bug is HP SR number 8606223364.
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
6693 $as_echo_n "checking size of char... " >&6; }
6694 if ${ac_cv_sizeof_char+:} false; then :
6695 $as_echo_n "(cached) " >&6
6696 else
6697 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
6699 else
6700 if test "$ac_cv_type_char" = yes; then
6701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6703 as_fn_error 77 "cannot compute sizeof (char)
6704 See \`config.log' for more details" "$LINENO" 5; }
6705 else
6706 ac_cv_sizeof_char=0
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
6712 $as_echo "$ac_cv_sizeof_char" >&6; }
6716 cat >>confdefs.h <<_ACEOF
6717 #define SIZEOF_CHAR $ac_cv_sizeof_char
6718 _ACEOF
6721 # The cast to long int works around a bug in the HP C Compiler
6722 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6723 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6724 # This bug is HP SR number 8606223364.
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6726 $as_echo_n "checking size of short... " >&6; }
6727 if ${ac_cv_sizeof_short+:} false; then :
6728 $as_echo_n "(cached) " >&6
6729 else
6730 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6732 else
6733 if test "$ac_cv_type_short" = yes; then
6734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6736 as_fn_error 77 "cannot compute sizeof (short)
6737 See \`config.log' for more details" "$LINENO" 5; }
6738 else
6739 ac_cv_sizeof_short=0
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6745 $as_echo "$ac_cv_sizeof_short" >&6; }
6749 cat >>confdefs.h <<_ACEOF
6750 #define SIZEOF_SHORT $ac_cv_sizeof_short
6751 _ACEOF
6754 # The cast to long int works around a bug in the HP C Compiler
6755 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6756 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6757 # This bug is HP SR number 8606223364.
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6759 $as_echo_n "checking size of int... " >&6; }
6760 if ${ac_cv_sizeof_int+:} false; then :
6761 $as_echo_n "(cached) " >&6
6762 else
6763 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6765 else
6766 if test "$ac_cv_type_int" = yes; then
6767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6769 as_fn_error 77 "cannot compute sizeof (int)
6770 See \`config.log' for more details" "$LINENO" 5; }
6771 else
6772 ac_cv_sizeof_int=0
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6778 $as_echo "$ac_cv_sizeof_int" >&6; }
6782 cat >>confdefs.h <<_ACEOF
6783 #define SIZEOF_INT $ac_cv_sizeof_int
6784 _ACEOF
6787 # The cast to long int works around a bug in the HP C Compiler
6788 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6789 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6790 # This bug is HP SR number 8606223364.
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6792 $as_echo_n "checking size of long... " >&6; }
6793 if ${ac_cv_sizeof_long+:} false; then :
6794 $as_echo_n "(cached) " >&6
6795 else
6796 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6798 else
6799 if test "$ac_cv_type_long" = yes; then
6800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6802 as_fn_error 77 "cannot compute sizeof (long)
6803 See \`config.log' for more details" "$LINENO" 5; }
6804 else
6805 ac_cv_sizeof_long=0
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6811 $as_echo "$ac_cv_sizeof_long" >&6; }
6815 cat >>confdefs.h <<_ACEOF
6816 #define SIZEOF_LONG $ac_cv_sizeof_long
6817 _ACEOF
6820 # The cast to long int works around a bug in the HP C Compiler
6821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6823 # This bug is HP SR number 8606223364.
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
6825 $as_echo_n "checking size of void*... " >&6; }
6826 if ${ac_cv_sizeof_voidp+:} false; then :
6827 $as_echo_n "(cached) " >&6
6828 else
6829 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
6831 else
6832 if test "$ac_cv_type_voidp" = yes; then
6833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6835 as_fn_error 77 "cannot compute sizeof (void*)
6836 See \`config.log' for more details" "$LINENO" 5; }
6837 else
6838 ac_cv_sizeof_voidp=0
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
6844 $as_echo "$ac_cv_sizeof_voidp" >&6; }
6848 cat >>confdefs.h <<_ACEOF
6849 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
6850 _ACEOF
6853 ac_cv_stdint_char_model=""
6854 ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_char"
6855 ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_short"
6856 ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_int"
6857 ac_cv_stdint_long_model=""
6858 ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_int"
6859 ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_long"
6860 ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_voidp"
6861 name="$ac_cv_stdint_long_model"
6862 case "$ac_cv_stdint_char_model/$ac_cv_stdint_long_model" in
6863 122/242) name="$name, IP16 (standard 16bit machine)" ;;
6864 122/244) name="$name, LP32 (standard 32bit mac/win)" ;;
6865 122/*) name="$name (unusual int16 model)" ;;
6866 124/444) name="$name, ILP32 (standard 32bit unixish)" ;;
6867 124/488) name="$name, LP64 (standard 64bit unixish)" ;;
6868 124/448) name="$name, LLP64 (unusual 64bit unixish)" ;;
6869 124/*) name="$name (unusual int32 model)" ;;
6870 128/888) name="$name, ILP64 (unusual 64bit numeric)" ;;
6871 128/*) name="$name (unusual int64 model)" ;;
6872 222/*|444/*) name="$name (unusual dsptype)" ;;
6873 *) name="$name (very unusal model)" ;;
6874 esac
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: combined for stdint datatype model... $name" >&5
6876 $as_echo "combined for stdint datatype model... $name" >&6; }
6879 if test "_$ac_cv_header_stdint_x" != "_" ; then
6880 ac_cv_header_stdint="$ac_cv_header_stdint_x"
6881 elif test "_$ac_cv_header_stdint_o" != "_" ; then
6882 ac_cv_header_stdint="$ac_cv_header_stdint_o"
6883 elif test "_$ac_cv_header_stdint_u" != "_" ; then
6884 ac_cv_header_stdint="$ac_cv_header_stdint_u"
6885 else
6886 ac_cv_header_stdint="stddef.h"
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
6890 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
6892 $as_echo "($ac_cv_header_stdint)" >&6; }
6893 unset ac_cv_type_int_least32_t
6894 unset ac_cv_type_int_fast32_t
6895 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
6897 if test "x$ac_cv_type_int_least32_t" = xyes; then :
6901 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
6903 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
6907 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
6909 if test "x$ac_cv_type_intmax_t" = xyes; then :
6914 fi # shortcircut to system "stdint.h"
6915 # ------------------ PREPARE VARIABLES ------------------------------
6916 if test "$GCC" = "yes" ; then
6917 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
6918 else
6919 ac_cv_stdint_message="using $CC"
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
6923 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
6925 # ----------------- DONE inttypes.h checks START header -------------
6926 ac_config_commands="$ac_config_commands $ac_stdint_h"
6930 # Check for file locking. We (AC_PROG_CC?) have already checked for
6931 # sys/types.h and unistd.h.
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcntl file locking" >&5
6933 $as_echo_n "checking for fcntl file locking... " >&6; }
6934 if ${nettle_cv_fcntl_locking+:} false; then :
6935 $as_echo_n "(cached) " >&6
6936 else
6937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6938 /* end confdefs.h. */
6940 #if HAVE_SYS_TYPES_H
6941 # include <sys/types.h>
6942 #endif
6943 #if HAVE_UNISTD_H
6944 # include <unistd.h>
6945 #endif
6946 #include <fcntl.h>
6949 main ()
6952 int op = F_SETLKW;
6953 struct flock fl;
6956 return 0;
6958 _ACEOF
6959 if ac_fn_c_try_compile "$LINENO"; then :
6960 nettle_cv_fcntl_locking=yes
6961 else
6962 nettle_cv_fcntl_locking=no
6964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_fcntl_locking" >&5
6967 $as_echo "$nettle_cv_fcntl_locking" >&6; }
6970 if test "x$nettle_cv_fcntl_locking" = "xyes" ; then
6971 $as_echo "#define HAVE_FCNTL_LOCKING 1" >>confdefs.h
6975 # Checks for libraries
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_getlimbn in -lgmp" >&5
6977 $as_echo_n "checking for __gmpz_getlimbn in -lgmp... " >&6; }
6978 if ${ac_cv_lib_gmp___gmpz_getlimbn+:} false; then :
6979 $as_echo_n "(cached) " >&6
6980 else
6981 ac_check_lib_save_LIBS=$LIBS
6982 LIBS="-lgmp $LIBS"
6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h. */
6986 /* Override any GCC internal prototype to avoid an error.
6987 Use char because int might match the return type of a GCC
6988 builtin and then its argument prototype would still apply. */
6989 #ifdef __cplusplus
6990 extern "C"
6991 #endif
6992 char __gmpz_getlimbn ();
6994 main ()
6996 return __gmpz_getlimbn ();
6998 return 0;
7000 _ACEOF
7001 if ac_fn_c_try_link "$LINENO"; then :
7002 ac_cv_lib_gmp___gmpz_getlimbn=yes
7003 else
7004 ac_cv_lib_gmp___gmpz_getlimbn=no
7006 rm -f core conftest.err conftest.$ac_objext \
7007 conftest$ac_exeext conftest.$ac_ext
7008 LIBS=$ac_check_lib_save_LIBS
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_getlimbn" >&5
7011 $as_echo "$ac_cv_lib_gmp___gmpz_getlimbn" >&6; }
7012 if test "x$ac_cv_lib_gmp___gmpz_getlimbn" = xyes; then :
7013 cat >>confdefs.h <<_ACEOF
7014 #define HAVE_LIBGMP 1
7015 _ACEOF
7017 LIBS="-lgmp $LIBS"
7019 else
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNU MP not found, or not 3.1 or up, see http://gmplib.org/.
7021 Support for public key algorithms will be unavailable." >&5
7022 $as_echo "$as_me: WARNING: GNU MP not found, or not 3.1 or up, see http://gmplib.org/.
7023 Support for public key algorithms will be unavailable." >&2;}
7024 enable_public_key=no
7028 # Add -R flags needed to run programs linked with gmp
7029 if test $cross_compiling = no -a "x$RPATHFLAG" != x ; then
7030 ac_success=no
7031 if test "$cross_compiling" = yes; then :
7033 else
7034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h. */
7036 int main(int argc, char **argv) { return 0; }
7037 _ACEOF
7038 if ac_fn_c_try_run "$LINENO"; then :
7039 ac_success=yes
7040 else
7041 ac_success=no
7043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7044 conftest.$ac_objext conftest.beam conftest.$ac_ext
7048 if test $ac_success = no ; then
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Running simple test program failed. Trying -R flags" >&5
7050 $as_echo_n "checking Running simple test program failed. Trying -R flags... " >&6; }
7051 ac_remaining_dirs=''
7052 ac_rpath_save_LDFLAGS="$LDFLAGS"
7053 for d in $RPATH_CANDIDATE_DIRS ; do
7054 if test $ac_success = yes ; then
7055 ac_remaining_dirs="$ac_remaining_dirs $d"
7056 else
7057 LDFLAGS="$RPATHFLAG$d $LDFLAGS"
7058 if test "$cross_compiling" = yes; then :
7060 else
7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062 /* end confdefs.h. */
7063 int main(int argc, char **argv) { return 0; }
7064 _ACEOF
7065 if ac_fn_c_try_run "$LINENO"; then :
7066 ac_success=yes
7067 ac_rpath_save_LDFLAGS="$LDFLAGS"
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding $RPATHFLAG$d" >&5
7069 $as_echo "adding $RPATHFLAG$d" >&6; }
7071 else
7072 ac_remaining_dirs="$ac_remaining_dirs $d"
7074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7075 conftest.$ac_objext conftest.beam conftest.$ac_ext
7078 LDFLAGS="$ac_rpath_save_LDFLAGS"
7080 done
7081 RPATH_CANDIDATE_DIRS=$ac_remaining_dirs
7083 if test $ac_success = no ; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7085 $as_echo "failed" >&6; }
7090 # Check for gmp limb size
7091 nettle_cv_gmp_numb_bits=0
7092 if test "$enable_public_key" = yes; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMP limb size" >&5
7094 $as_echo_n "checking for GMP limb size... " >&6; }
7095 if ac_fn_c_compute_int "$LINENO" "GMP_NUMB_BITS" "nettle_cv_gmp_numb_bits" "#include <gmp.h>"; then :
7097 else
7098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7100 as_fn_error $? "cannot find value of GMP_NUMB_BITS
7101 See \`config.log' for more details" "$LINENO" 5; }
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_gmp_numb_bits bits" >&5
7106 $as_echo "$nettle_cv_gmp_numb_bits bits" >&6; }
7109 GMP_NUMB_BITS="$nettle_cv_gmp_numb_bits"
7113 ac_fn_c_check_func "$LINENO" "__gmpz_powm_sec" "ac_cv_func___gmpz_powm_sec"
7114 if test "x$ac_cv_func___gmpz_powm_sec" = xyes; then :
7115 $as_echo "#define HAVE_MPZ_POWM_SEC 1" >>confdefs.h
7122 if test "x$enable_public_key" = xyes ; then
7123 $as_echo "#define WITH_HOGWEED 1" >>confdefs.h
7125 IF_HOGWEED=''
7126 else
7127 IF_HOGWEED='#'
7130 if test "x$enable_static" = xyes ; then
7131 IF_STATIC=''
7132 else
7133 IF_STATIC='#'
7136 if test "x$enable_shared" = xyes ; then
7137 IF_SHARED=''
7138 else
7139 IF_SHARED='#'
7142 # Documentation tools
7143 if test "x$enable_documentation" != "xno"; then
7144 # Extract the first word of "makeinfo", so it can be a program name with args.
7145 set dummy makeinfo; ac_word=$2
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7147 $as_echo_n "checking for $ac_word... " >&6; }
7148 if ${ac_cv_path_MAKEINFO+:} false; then :
7149 $as_echo_n "(cached) " >&6
7150 else
7151 case $MAKEINFO in
7152 [\\/]* | ?:[\\/]*)
7153 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 for as_dir in $PATH
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7163 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 break 2
7167 done
7168 done
7169 IFS=$as_save_IFS
7171 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="not-found"
7173 esac
7175 MAKEINFO=$ac_cv_path_MAKEINFO
7176 if test -n "$MAKEINFO"; then
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7178 $as_echo "$MAKEINFO" >&6; }
7179 else
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181 $as_echo "no" >&6; }
7186 if test "x$MAKEINFO" != "xnot-found"; then
7187 enable_documentation=yes
7189 else
7190 if test "x$enable_documentation" == "xauto" ; then
7191 enable_documentation=no
7192 else
7193 as_fn_error $? "Cannot find 'makeinfo', required for documentation." "$LINENO" 5
7198 if test "x$enable_documentation" = "xyes" ; then
7199 IF_DOCUMENTATION=''
7200 else
7201 IF_DOCUMENTATION='#'
7210 OPENSSL_LIBFLAGS=''
7212 # Check for openssl's libcrypto (used only for benchmarking)
7213 if test x$enable_openssl = xyes ; then
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BF_ecb_encrypt in -lcrypto" >&5
7215 $as_echo_n "checking for BF_ecb_encrypt in -lcrypto... " >&6; }
7216 if ${ac_cv_lib_crypto_BF_ecb_encrypt+:} false; then :
7217 $as_echo_n "(cached) " >&6
7218 else
7219 ac_check_lib_save_LIBS=$LIBS
7220 LIBS="-lcrypto $LIBS"
7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222 /* end confdefs.h. */
7224 /* Override any GCC internal prototype to avoid an error.
7225 Use char because int might match the return type of a GCC
7226 builtin and then its argument prototype would still apply. */
7227 #ifdef __cplusplus
7228 extern "C"
7229 #endif
7230 char BF_ecb_encrypt ();
7232 main ()
7234 return BF_ecb_encrypt ();
7236 return 0;
7238 _ACEOF
7239 if ac_fn_c_try_link "$LINENO"; then :
7240 ac_cv_lib_crypto_BF_ecb_encrypt=yes
7241 else
7242 ac_cv_lib_crypto_BF_ecb_encrypt=no
7244 rm -f core conftest.err conftest.$ac_objext \
7245 conftest$ac_exeext conftest.$ac_ext
7246 LIBS=$ac_check_lib_save_LIBS
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BF_ecb_encrypt" >&5
7249 $as_echo "$ac_cv_lib_crypto_BF_ecb_encrypt" >&6; }
7250 if test "x$ac_cv_lib_crypto_BF_ecb_encrypt" = xyes; then :
7251 OPENSSL_LIBFLAGS='-lcrypto'
7252 else
7253 enable_openssl=no
7259 if test x$enable_openssl = xyes ; then
7260 $as_echo "#define WITH_OPENSSL 1" >>confdefs.h
7268 # clock_gettime is in librt on *-*-osf5.1 and on glibc, so add -lrt to
7269 # BENCH_LIBS if needed. On linux (tested on x86_32, 2.6.26),
7270 # clock_getres reports ns accuracy, while in a quick test on osf
7271 # clock_getres said only 1 millisecond.
7273 old_LIBS="$LIBS"
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
7275 $as_echo_n "checking for library containing clock_gettime... " >&6; }
7276 if ${ac_cv_search_clock_gettime+:} false; then :
7277 $as_echo_n "(cached) " >&6
7278 else
7279 ac_func_search_save_LIBS=$LIBS
7280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281 /* end confdefs.h. */
7283 /* Override any GCC internal prototype to avoid an error.
7284 Use char because int might match the return type of a GCC
7285 builtin and then its argument prototype would still apply. */
7286 #ifdef __cplusplus
7287 extern "C"
7288 #endif
7289 char clock_gettime ();
7291 main ()
7293 return clock_gettime ();
7295 return 0;
7297 _ACEOF
7298 for ac_lib in '' rt; do
7299 if test -z "$ac_lib"; then
7300 ac_res="none required"
7301 else
7302 ac_res=-l$ac_lib
7303 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7305 if ac_fn_c_try_link "$LINENO"; then :
7306 ac_cv_search_clock_gettime=$ac_res
7308 rm -f core conftest.err conftest.$ac_objext \
7309 conftest$ac_exeext
7310 if ${ac_cv_search_clock_gettime+:} false; then :
7311 break
7313 done
7314 if ${ac_cv_search_clock_gettime+:} false; then :
7316 else
7317 ac_cv_search_clock_gettime=no
7319 rm conftest.$ac_ext
7320 LIBS=$ac_func_search_save_LIBS
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
7323 $as_echo "$ac_cv_search_clock_gettime" >&6; }
7324 ac_res=$ac_cv_search_clock_gettime
7325 if test "$ac_res" != no; then :
7326 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7329 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
7333 BENCH_LIBS="$LIBS"
7334 LIBS="$old_LIBS"
7338 # Set these flags *last*, or else the test programs won't compile
7339 if test x$GCC = xyes ; then
7340 # Using -ggdb3 makes (some versions of) Redhat's gcc-2.96 dump core
7341 if $CC --version | grep '^2\.96$' 1>/dev/null 2>&1; then
7342 true
7343 else
7344 CFLAGS="$CFLAGS -ggdb3"
7346 # FIXME: It would be better to actually test if this option works and/or is needed.
7347 # Or perhaps use -funsigned-char.
7348 if $CC --version | grep 'gcc.* 4\.' 1>/dev/null 2>&1; then
7349 CFLAGS="$CFLAGS -Wno-pointer-sign"
7351 CFLAGS="$CFLAGS -Wall -W \
7352 -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes \
7353 -Wpointer-arith -Wbad-function-cast -Wnested-externs"
7355 # Don't enable -Wcast-align as it results in tons of warnings in the
7356 # DES code. And when using stdio.
7357 # Don't enable -Waggregate-return, as that causes warnings for glibc
7358 # inttypes.h.
7361 ac_config_files="$ac_config_files config.make config.m4 Makefile"
7363 ac_config_files="$ac_config_files tools/Makefile testsuite/Makefile examples/Makefile"
7365 ac_config_files="$ac_config_files nettle.pc hogweed.pc"
7368 cat >confcache <<\_ACEOF
7369 # This file is a shell script that caches the results of configure
7370 # tests run on this system so they can be shared between configure
7371 # scripts and configure runs, see configure's option --config-cache.
7372 # It is not useful on other systems. If it contains results you don't
7373 # want to keep, you may remove or edit it.
7375 # config.status only pays attention to the cache file if you give it
7376 # the --recheck option to rerun configure.
7378 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7379 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7380 # following values.
7382 _ACEOF
7384 # The following way of writing the cache mishandles newlines in values,
7385 # but we know of no workaround that is simple, portable, and efficient.
7386 # So, we kill variables containing newlines.
7387 # Ultrix sh set writes to stderr and can't be redirected directly,
7388 # and sets the high bit in the cache file unless we assign to the vars.
7390 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7391 eval ac_val=\$$ac_var
7392 case $ac_val in #(
7393 *${as_nl}*)
7394 case $ac_var in #(
7395 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7396 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7397 esac
7398 case $ac_var in #(
7399 _ | IFS | as_nl) ;; #(
7400 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7401 *) { eval $ac_var=; unset $ac_var;} ;;
7402 esac ;;
7403 esac
7404 done
7406 (set) 2>&1 |
7407 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7408 *${as_nl}ac_space=\ *)
7409 # `set' does not quote correctly, so add quotes: double-quote
7410 # substitution turns \\\\ into \\, and sed turns \\ into \.
7411 sed -n \
7412 "s/'/'\\\\''/g;
7413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7414 ;; #(
7416 # `set' quotes correctly as required by POSIX, so do not add quotes.
7417 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7419 esac |
7420 sort
7422 sed '
7423 /^ac_cv_env_/b end
7424 t clear
7425 :clear
7426 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7427 t end
7428 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7429 :end' >>confcache
7430 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7431 if test -w "$cache_file"; then
7432 if test "x$cache_file" != "x/dev/null"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7434 $as_echo "$as_me: updating cache $cache_file" >&6;}
7435 if test ! -f "$cache_file" || test -h "$cache_file"; then
7436 cat confcache >"$cache_file"
7437 else
7438 case $cache_file in #(
7439 */* | ?:*)
7440 mv -f confcache "$cache_file"$$ &&
7441 mv -f "$cache_file"$$ "$cache_file" ;; #(
7443 mv -f confcache "$cache_file" ;;
7444 esac
7447 else
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7449 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7452 rm -f confcache
7454 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7455 # Let make expand exec_prefix.
7456 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7458 DEFS=-DHAVE_CONFIG_H
7460 ac_libobjs=
7461 ac_ltlibobjs=
7463 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7464 # 1. Remove the extension, and $U if already installed.
7465 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7466 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7467 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7468 # will be set to the directory where LIBOBJS objects are built.
7469 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7470 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7471 done
7472 LIBOBJS=$ac_libobjs
7474 LTLIBOBJS=$ac_ltlibobjs
7479 : "${CONFIG_STATUS=./config.status}"
7480 ac_write_fail=0
7481 ac_clean_files_save=$ac_clean_files
7482 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7484 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7485 as_write_fail=0
7486 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7487 #! $SHELL
7488 # Generated by $as_me.
7489 # Run this file to recreate the current configuration.
7490 # Compiler output produced by configure, useful for debugging
7491 # configure, is in config.log if it exists.
7493 debug=false
7494 ac_cs_recheck=false
7495 ac_cs_silent=false
7497 SHELL=\${CONFIG_SHELL-$SHELL}
7498 export SHELL
7499 _ASEOF
7500 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7501 ## -------------------- ##
7502 ## M4sh Initialization. ##
7503 ## -------------------- ##
7505 # Be more Bourne compatible
7506 DUALCASE=1; export DUALCASE # for MKS sh
7507 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7508 emulate sh
7509 NULLCMD=:
7510 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7511 # is contrary to our usage. Disable this feature.
7512 alias -g '${1+"$@"}'='"$@"'
7513 setopt NO_GLOB_SUBST
7514 else
7515 case `(set -o) 2>/dev/null` in #(
7516 *posix*) :
7517 set -o posix ;; #(
7518 *) :
7520 esac
7524 as_nl='
7526 export as_nl
7527 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7528 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7529 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7530 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7531 # Prefer a ksh shell builtin over an external printf program on Solaris,
7532 # but without wasting forks for bash or zsh.
7533 if test -z "$BASH_VERSION$ZSH_VERSION" \
7534 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7535 as_echo='print -r --'
7536 as_echo_n='print -rn --'
7537 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7538 as_echo='printf %s\n'
7539 as_echo_n='printf %s'
7540 else
7541 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7542 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7543 as_echo_n='/usr/ucb/echo -n'
7544 else
7545 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7546 as_echo_n_body='eval
7547 arg=$1;
7548 case $arg in #(
7549 *"$as_nl"*)
7550 expr "X$arg" : "X\\(.*\\)$as_nl";
7551 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7552 esac;
7553 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7555 export as_echo_n_body
7556 as_echo_n='sh -c $as_echo_n_body as_echo'
7558 export as_echo_body
7559 as_echo='sh -c $as_echo_body as_echo'
7562 # The user is always right.
7563 if test "${PATH_SEPARATOR+set}" != set; then
7564 PATH_SEPARATOR=:
7565 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7566 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7567 PATH_SEPARATOR=';'
7572 # IFS
7573 # We need space, tab and new line, in precisely that order. Quoting is
7574 # there to prevent editors from complaining about space-tab.
7575 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7576 # splitting by setting IFS to empty value.)
7577 IFS=" "" $as_nl"
7579 # Find who we are. Look in the path if we contain no directory separator.
7580 as_myself=
7581 case $0 in #((
7582 *[\\/]* ) as_myself=$0 ;;
7583 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 for as_dir in $PATH
7586 IFS=$as_save_IFS
7587 test -z "$as_dir" && as_dir=.
7588 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7589 done
7590 IFS=$as_save_IFS
7593 esac
7594 # We did not find ourselves, most probably we were run as `sh COMMAND'
7595 # in which case we are not to be found in the path.
7596 if test "x$as_myself" = x; then
7597 as_myself=$0
7599 if test ! -f "$as_myself"; then
7600 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7601 exit 1
7604 # Unset variables that we do not need and which cause bugs (e.g. in
7605 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7606 # suppresses any "Segmentation fault" message there. '((' could
7607 # trigger a bug in pdksh 5.2.14.
7608 for as_var in BASH_ENV ENV MAIL MAILPATH
7609 do eval test x\${$as_var+set} = xset \
7610 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7611 done
7612 PS1='$ '
7613 PS2='> '
7614 PS4='+ '
7616 # NLS nuisances.
7617 LC_ALL=C
7618 export LC_ALL
7619 LANGUAGE=C
7620 export LANGUAGE
7622 # CDPATH.
7623 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7626 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7627 # ----------------------------------------
7628 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7629 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7630 # script with STATUS, using 1 if that was 0.
7631 as_fn_error ()
7633 as_status=$1; test $as_status -eq 0 && as_status=1
7634 if test "$4"; then
7635 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7636 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7638 $as_echo "$as_me: error: $2" >&2
7639 as_fn_exit $as_status
7640 } # as_fn_error
7643 # as_fn_set_status STATUS
7644 # -----------------------
7645 # Set $? to STATUS, without forking.
7646 as_fn_set_status ()
7648 return $1
7649 } # as_fn_set_status
7651 # as_fn_exit STATUS
7652 # -----------------
7653 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7654 as_fn_exit ()
7656 set +e
7657 as_fn_set_status $1
7658 exit $1
7659 } # as_fn_exit
7661 # as_fn_unset VAR
7662 # ---------------
7663 # Portably unset VAR.
7664 as_fn_unset ()
7666 { eval $1=; unset $1;}
7668 as_unset=as_fn_unset
7669 # as_fn_append VAR VALUE
7670 # ----------------------
7671 # Append the text in VALUE to the end of the definition contained in VAR. Take
7672 # advantage of any shell optimizations that allow amortized linear growth over
7673 # repeated appends, instead of the typical quadratic growth present in naive
7674 # implementations.
7675 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7676 eval 'as_fn_append ()
7678 eval $1+=\$2
7680 else
7681 as_fn_append ()
7683 eval $1=\$$1\$2
7685 fi # as_fn_append
7687 # as_fn_arith ARG...
7688 # ------------------
7689 # Perform arithmetic evaluation on the ARGs, and store the result in the
7690 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7691 # must be portable across $(()) and expr.
7692 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7693 eval 'as_fn_arith ()
7695 as_val=$(( $* ))
7697 else
7698 as_fn_arith ()
7700 as_val=`expr "$@" || test $? -eq 1`
7702 fi # as_fn_arith
7705 if expr a : '\(a\)' >/dev/null 2>&1 &&
7706 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7707 as_expr=expr
7708 else
7709 as_expr=false
7712 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7713 as_basename=basename
7714 else
7715 as_basename=false
7718 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7719 as_dirname=dirname
7720 else
7721 as_dirname=false
7724 as_me=`$as_basename -- "$0" ||
7725 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7726 X"$0" : 'X\(//\)$' \| \
7727 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7728 $as_echo X/"$0" |
7729 sed '/^.*\/\([^/][^/]*\)\/*$/{
7730 s//\1/
7733 /^X\/\(\/\/\)$/{
7734 s//\1/
7737 /^X\/\(\/\).*/{
7738 s//\1/
7741 s/.*/./; q'`
7743 # Avoid depending upon Character Ranges.
7744 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7745 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7746 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7747 as_cr_digits='0123456789'
7748 as_cr_alnum=$as_cr_Letters$as_cr_digits
7750 ECHO_C= ECHO_N= ECHO_T=
7751 case `echo -n x` in #(((((
7752 -n*)
7753 case `echo 'xy\c'` in
7754 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7755 xy) ECHO_C='\c';;
7756 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7757 ECHO_T=' ';;
7758 esac;;
7760 ECHO_N='-n';;
7761 esac
7763 rm -f conf$$ conf$$.exe conf$$.file
7764 if test -d conf$$.dir; then
7765 rm -f conf$$.dir/conf$$.file
7766 else
7767 rm -f conf$$.dir
7768 mkdir conf$$.dir 2>/dev/null
7770 if (echo >conf$$.file) 2>/dev/null; then
7771 if ln -s conf$$.file conf$$ 2>/dev/null; then
7772 as_ln_s='ln -s'
7773 # ... but there are two gotchas:
7774 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7775 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7776 # In both cases, we have to default to `cp -pR'.
7777 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7778 as_ln_s='cp -pR'
7779 elif ln conf$$.file conf$$ 2>/dev/null; then
7780 as_ln_s=ln
7781 else
7782 as_ln_s='cp -pR'
7784 else
7785 as_ln_s='cp -pR'
7787 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7788 rmdir conf$$.dir 2>/dev/null
7791 # as_fn_mkdir_p
7792 # -------------
7793 # Create "$as_dir" as a directory, including parents if necessary.
7794 as_fn_mkdir_p ()
7797 case $as_dir in #(
7798 -*) as_dir=./$as_dir;;
7799 esac
7800 test -d "$as_dir" || eval $as_mkdir_p || {
7801 as_dirs=
7802 while :; do
7803 case $as_dir in #(
7804 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7805 *) as_qdir=$as_dir;;
7806 esac
7807 as_dirs="'$as_qdir' $as_dirs"
7808 as_dir=`$as_dirname -- "$as_dir" ||
7809 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7810 X"$as_dir" : 'X\(//\)[^/]' \| \
7811 X"$as_dir" : 'X\(//\)$' \| \
7812 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7813 $as_echo X"$as_dir" |
7814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7815 s//\1/
7818 /^X\(\/\/\)[^/].*/{
7819 s//\1/
7822 /^X\(\/\/\)$/{
7823 s//\1/
7826 /^X\(\/\).*/{
7827 s//\1/
7830 s/.*/./; q'`
7831 test -d "$as_dir" && break
7832 done
7833 test -z "$as_dirs" || eval "mkdir $as_dirs"
7834 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7837 } # as_fn_mkdir_p
7838 if mkdir -p . 2>/dev/null; then
7839 as_mkdir_p='mkdir -p "$as_dir"'
7840 else
7841 test -d ./-p && rmdir ./-p
7842 as_mkdir_p=false
7846 # as_fn_executable_p FILE
7847 # -----------------------
7848 # Test if FILE is an executable regular file.
7849 as_fn_executable_p ()
7851 test -f "$1" && test -x "$1"
7852 } # as_fn_executable_p
7853 as_test_x='test -x'
7854 as_executable_p=as_fn_executable_p
7856 # Sed expression to map a string onto a valid CPP name.
7857 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7859 # Sed expression to map a string onto a valid variable name.
7860 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7863 exec 6>&1
7864 ## ----------------------------------- ##
7865 ## Main body of $CONFIG_STATUS script. ##
7866 ## ----------------------------------- ##
7867 _ASEOF
7868 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7871 # Save the log message, to keep $0 and so on meaningful, and to
7872 # report actual input values of CONFIG_FILES etc. instead of their
7873 # values after options handling.
7874 ac_log="
7875 This file was extended by nettle $as_me 2.7.1, which was
7876 generated by GNU Autoconf 2.69. Invocation command line was
7878 CONFIG_FILES = $CONFIG_FILES
7879 CONFIG_HEADERS = $CONFIG_HEADERS
7880 CONFIG_LINKS = $CONFIG_LINKS
7881 CONFIG_COMMANDS = $CONFIG_COMMANDS
7882 $ $0 $@
7884 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7887 _ACEOF
7889 case $ac_config_files in *"
7890 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7891 esac
7893 case $ac_config_headers in *"
7894 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7895 esac
7898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7899 # Files that config.status was made for.
7900 config_files="$ac_config_files"
7901 config_headers="$ac_config_headers"
7902 config_links="$ac_config_links"
7903 config_commands="$ac_config_commands"
7905 _ACEOF
7907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7908 ac_cs_usage="\
7909 \`$as_me' instantiates files and other configuration actions
7910 from templates according to the current configuration. Unless the files
7911 and actions are specified as TAGs, all are instantiated by default.
7913 Usage: $0 [OPTION]... [TAG]...
7915 -h, --help print this help, then exit
7916 -V, --version print version number and configuration settings, then exit
7917 --config print configuration, then exit
7918 -q, --quiet, --silent
7919 do not print progress messages
7920 -d, --debug don't remove temporary files
7921 --recheck update $as_me by reconfiguring in the same conditions
7922 --file=FILE[:TEMPLATE]
7923 instantiate the configuration file FILE
7924 --header=FILE[:TEMPLATE]
7925 instantiate the configuration header FILE
7927 Configuration files:
7928 $config_files
7930 Configuration headers:
7931 $config_headers
7933 Configuration links:
7934 $config_links
7936 Configuration commands:
7937 $config_commands
7939 Report bugs to <nettle-bugs@lists.lysator.liu.se>."
7941 _ACEOF
7942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7943 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7944 ac_cs_version="\\
7945 nettle config.status 2.7.1
7946 configured by $0, generated by GNU Autoconf 2.69,
7947 with options \\"\$ac_cs_config\\"
7949 Copyright (C) 2012 Free Software Foundation, Inc.
7950 This config.status script is free software; the Free Software Foundation
7951 gives unlimited permission to copy, distribute and modify it."
7953 ac_pwd='$ac_pwd'
7954 srcdir='$srcdir'
7955 INSTALL='$INSTALL'
7956 MKDIR_P='$MKDIR_P'
7957 test -n "\$AWK" || AWK=awk
7958 _ACEOF
7960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7961 # The default lists apply if the user does not specify any file.
7962 ac_need_defaults=:
7963 while test $# != 0
7965 case $1 in
7966 --*=?*)
7967 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7968 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7969 ac_shift=:
7971 --*=)
7972 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7973 ac_optarg=
7974 ac_shift=:
7977 ac_option=$1
7978 ac_optarg=$2
7979 ac_shift=shift
7981 esac
7983 case $ac_option in
7984 # Handling of the options.
7985 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7986 ac_cs_recheck=: ;;
7987 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7988 $as_echo "$ac_cs_version"; exit ;;
7989 --config | --confi | --conf | --con | --co | --c )
7990 $as_echo "$ac_cs_config"; exit ;;
7991 --debug | --debu | --deb | --de | --d | -d )
7992 debug=: ;;
7993 --file | --fil | --fi | --f )
7994 $ac_shift
7995 case $ac_optarg in
7996 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7997 '') as_fn_error $? "missing file argument" ;;
7998 esac
7999 as_fn_append CONFIG_FILES " '$ac_optarg'"
8000 ac_need_defaults=false;;
8001 --header | --heade | --head | --hea )
8002 $ac_shift
8003 case $ac_optarg in
8004 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8005 esac
8006 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8007 ac_need_defaults=false;;
8008 --he | --h)
8009 # Conflict between --help and --header
8010 as_fn_error $? "ambiguous option: \`$1'
8011 Try \`$0 --help' for more information.";;
8012 --help | --hel | -h )
8013 $as_echo "$ac_cs_usage"; exit ;;
8014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8015 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8016 ac_cs_silent=: ;;
8018 # This is an error.
8019 -*) as_fn_error $? "unrecognized option: \`$1'
8020 Try \`$0 --help' for more information." ;;
8022 *) as_fn_append ac_config_targets " $1"
8023 ac_need_defaults=false ;;
8025 esac
8026 shift
8027 done
8029 ac_configure_extra_args=
8031 if $ac_cs_silent; then
8032 exec 6>/dev/null
8033 ac_configure_extra_args="$ac_configure_extra_args --silent"
8036 _ACEOF
8037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8038 if \$ac_cs_recheck; then
8039 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8040 shift
8041 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8042 CONFIG_SHELL='$SHELL'
8043 export CONFIG_SHELL
8044 exec "\$@"
8047 _ACEOF
8048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8049 exec 5>>config.log
8051 echo
8052 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8053 ## Running $as_me. ##
8054 _ASBOX
8055 $as_echo "$ac_log"
8056 } >&5
8058 _ACEOF
8059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8061 # INIT-COMMANDS
8063 asm_file_list="$asm_file_list"
8065 # variables for create stdint.h replacement
8066 PACKAGE="$PACKAGE"
8067 VERSION="$VERSION"
8068 ac_stdint_h="$ac_stdint_h"
8069 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
8070 ac_cv_stdint_message="$ac_cv_stdint_message"
8071 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
8072 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
8073 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
8074 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
8075 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
8076 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
8077 ac_cv_stdint_char_model="$ac_cv_stdint_char_model"
8078 ac_cv_stdint_long_model="$ac_cv_stdint_long_model"
8079 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
8080 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
8081 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
8084 _ACEOF
8086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8088 # Handling of arguments.
8089 for ac_config_target in $ac_config_targets
8091 case $ac_config_target in
8092 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8093 "dummy-dep-files") CONFIG_COMMANDS="$CONFIG_COMMANDS dummy-dep-files" ;;
8094 "$tmp_f") CONFIG_LINKS="$CONFIG_LINKS $tmp_f:$asm_dir/$tmp_f" ;;
8095 "$tmp_o") CONFIG_LINKS="$CONFIG_LINKS $tmp_o:$asm_dir/$tmp_o" ;;
8096 "asm.d") CONFIG_COMMANDS="$CONFIG_COMMANDS asm.d" ;;
8097 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
8098 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
8099 "config.m4") CONFIG_FILES="$CONFIG_FILES config.m4" ;;
8100 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8101 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
8102 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
8103 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
8104 "nettle.pc") CONFIG_FILES="$CONFIG_FILES nettle.pc" ;;
8105 "hogweed.pc") CONFIG_FILES="$CONFIG_FILES hogweed.pc" ;;
8107 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8108 esac
8109 done
8112 # If the user did not use the arguments to specify the items to instantiate,
8113 # then the envvar interface is used. Set only those that are not.
8114 # We use the long form for the default assignment because of an extremely
8115 # bizarre bug on SunOS 4.1.3.
8116 if $ac_need_defaults; then
8117 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8118 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8119 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
8120 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8123 # Have a temporary directory for convenience. Make it in the build tree
8124 # simply because there is no reason against having it here, and in addition,
8125 # creating and moving files from /tmp can sometimes cause problems.
8126 # Hook for its removal unless debugging.
8127 # Note that there is a small window in which the directory will not be cleaned:
8128 # after its creation but before its name has been assigned to `$tmp'.
8129 $debug ||
8131 tmp= ac_tmp=
8132 trap 'exit_status=$?
8133 : "${ac_tmp:=$tmp}"
8134 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8136 trap 'as_fn_exit 1' 1 2 13 15
8138 # Create a (secure) tmp directory for tmp files.
8141 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8142 test -d "$tmp"
8143 } ||
8145 tmp=./conf$$-$RANDOM
8146 (umask 077 && mkdir "$tmp")
8147 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8148 ac_tmp=$tmp
8150 # Set up the scripts for CONFIG_FILES section.
8151 # No need to generate them if there are no CONFIG_FILES.
8152 # This happens for instance with `./config.status config.h'.
8153 if test -n "$CONFIG_FILES"; then
8156 ac_cr=`echo X | tr X '\015'`
8157 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8158 # But we know of no other shell where ac_cr would be empty at this
8159 # point, so we can use a bashism as a fallback.
8160 if test "x$ac_cr" = x; then
8161 eval ac_cr=\$\'\\r\'
8163 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8164 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8165 ac_cs_awk_cr='\\r'
8166 else
8167 ac_cs_awk_cr=$ac_cr
8170 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8171 _ACEOF
8175 echo "cat >conf$$subs.awk <<_ACEOF" &&
8176 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8177 echo "_ACEOF"
8178 } >conf$$subs.sh ||
8179 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8180 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8181 ac_delim='%!_!# '
8182 for ac_last_try in false false false false false :; do
8183 . ./conf$$subs.sh ||
8184 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8186 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8187 if test $ac_delim_n = $ac_delim_num; then
8188 break
8189 elif $ac_last_try; then
8190 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8191 else
8192 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8194 done
8195 rm -f conf$$subs.sh
8197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8198 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8199 _ACEOF
8200 sed -n '
8202 s/^/S["/; s/!.*/"]=/
8205 s/^[^!]*!//
8206 :repl
8207 t repl
8208 s/'"$ac_delim"'$//
8209 t delim
8212 s/\(.\{148\}\)..*/\1/
8213 t more1
8214 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8217 b repl
8218 :more1
8219 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8222 s/.\{148\}//
8223 t nl
8224 :delim
8226 s/\(.\{148\}\)..*/\1/
8227 t more2
8228 s/["\\]/\\&/g; s/^/"/; s/$/"/
8231 :more2
8232 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8235 s/.\{148\}//
8236 t delim
8237 ' <conf$$subs.awk | sed '
8238 /^[^""]/{
8240 s/\n//
8242 ' >>$CONFIG_STATUS || ac_write_fail=1
8243 rm -f conf$$subs.awk
8244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8245 _ACAWK
8246 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8247 for (key in S) S_is_set[key] = 1
8248 FS = "\a"
8252 line = $ 0
8253 nfields = split(line, field, "@")
8254 substed = 0
8255 len = length(field[1])
8256 for (i = 2; i < nfields; i++) {
8257 key = field[i]
8258 keylen = length(key)
8259 if (S_is_set[key]) {
8260 value = S[key]
8261 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8262 len += length(value) + length(field[++i])
8263 substed = 1
8264 } else
8265 len += 1 + keylen
8268 print line
8271 _ACAWK
8272 _ACEOF
8273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8274 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8275 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8276 else
8278 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8279 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8280 _ACEOF
8282 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8283 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8284 # trailing colons and then remove the whole line if VPATH becomes empty
8285 # (actually we leave an empty line to preserve line numbers).
8286 if test "x$srcdir" = x.; then
8287 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8289 s///
8290 s/^/:/
8291 s/[ ]*$/:/
8292 s/:\$(srcdir):/:/g
8293 s/:\${srcdir}:/:/g
8294 s/:@srcdir@:/:/g
8295 s/^:*//
8296 s/:*$//
8298 s/\(=[ ]*\).*/\1/
8300 s/\n//
8301 s/^[^=]*=[ ]*$//
8305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8306 fi # test -n "$CONFIG_FILES"
8308 # Set up the scripts for CONFIG_HEADERS section.
8309 # No need to generate them if there are no CONFIG_HEADERS.
8310 # This happens for instance with `./config.status Makefile'.
8311 if test -n "$CONFIG_HEADERS"; then
8312 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8313 BEGIN {
8314 _ACEOF
8316 # Transform confdefs.h into an awk script `defines.awk', embedded as
8317 # here-document in config.status, that substitutes the proper values into
8318 # config.h.in to produce config.h.
8320 # Create a delimiter string that does not exist in confdefs.h, to ease
8321 # handling of long lines.
8322 ac_delim='%!_!# '
8323 for ac_last_try in false false :; do
8324 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8325 if test -z "$ac_tt"; then
8326 break
8327 elif $ac_last_try; then
8328 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8329 else
8330 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8332 done
8334 # For the awk script, D is an array of macro values keyed by name,
8335 # likewise P contains macro parameters if any. Preserve backslash
8336 # newline sequences.
8338 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8339 sed -n '
8340 s/.\{148\}/&'"$ac_delim"'/g
8341 t rset
8342 :rset
8343 s/^[ ]*#[ ]*define[ ][ ]*/ /
8344 t def
8346 :def
8347 s/\\$//
8348 t bsnl
8349 s/["\\]/\\&/g
8350 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8351 D["\1"]=" \3"/p
8352 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8354 :bsnl
8355 s/["\\]/\\&/g
8356 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8357 D["\1"]=" \3\\\\\\n"\\/p
8358 t cont
8359 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8360 t cont
8362 :cont
8364 s/.\{148\}/&'"$ac_delim"'/g
8365 t clear
8366 :clear
8367 s/\\$//
8368 t bsnlc
8369 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8371 :bsnlc
8372 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8373 b cont
8374 ' <confdefs.h | sed '
8375 s/'"$ac_delim"'/"\\\
8376 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8379 for (key in D) D_is_set[key] = 1
8380 FS = "\a"
8382 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8383 line = \$ 0
8384 split(line, arg, " ")
8385 if (arg[1] == "#") {
8386 defundef = arg[2]
8387 mac1 = arg[3]
8388 } else {
8389 defundef = substr(arg[1], 2)
8390 mac1 = arg[2]
8392 split(mac1, mac2, "(") #)
8393 macro = mac2[1]
8394 prefix = substr(line, 1, index(line, defundef) - 1)
8395 if (D_is_set[macro]) {
8396 # Preserve the white space surrounding the "#".
8397 print prefix "define", macro P[macro] D[macro]
8398 next
8399 } else {
8400 # Replace #undef with comments. This is necessary, for example,
8401 # in the case of _POSIX_SOURCE, which is predefined and required
8402 # on some systems where configure will not decide to define it.
8403 if (defundef == "undef") {
8404 print "/*", prefix defundef, macro, "*/"
8405 next
8409 { print }
8410 _ACAWK
8411 _ACEOF
8412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8413 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8414 fi # test -n "$CONFIG_HEADERS"
8417 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
8418 shift
8419 for ac_tag
8421 case $ac_tag in
8422 :[FHLC]) ac_mode=$ac_tag; continue;;
8423 esac
8424 case $ac_mode$ac_tag in
8425 :[FHL]*:*);;
8426 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8427 :[FH]-) ac_tag=-:-;;
8428 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8429 esac
8430 ac_save_IFS=$IFS
8431 IFS=:
8432 set x $ac_tag
8433 IFS=$ac_save_IFS
8434 shift
8435 ac_file=$1
8436 shift
8438 case $ac_mode in
8439 :L) ac_source=$1;;
8440 :[FH])
8441 ac_file_inputs=
8442 for ac_f
8444 case $ac_f in
8445 -) ac_f="$ac_tmp/stdin";;
8446 *) # Look for the file first in the build tree, then in the source tree
8447 # (if the path is not absolute). The absolute path cannot be DOS-style,
8448 # because $ac_f cannot contain `:'.
8449 test -f "$ac_f" ||
8450 case $ac_f in
8451 [\\/$]*) false;;
8452 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8453 esac ||
8454 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8455 esac
8456 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8457 as_fn_append ac_file_inputs " '$ac_f'"
8458 done
8460 # Let's still pretend it is `configure' which instantiates (i.e., don't
8461 # use $as_me), people would be surprised to read:
8462 # /* config.h. Generated by config.status. */
8463 configure_input='Generated from '`
8464 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8465 `' by configure.'
8466 if test x"$ac_file" != x-; then
8467 configure_input="$ac_file. $configure_input"
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8469 $as_echo "$as_me: creating $ac_file" >&6;}
8471 # Neutralize special characters interpreted by sed in replacement strings.
8472 case $configure_input in #(
8473 *\&* | *\|* | *\\* )
8474 ac_sed_conf_input=`$as_echo "$configure_input" |
8475 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8476 *) ac_sed_conf_input=$configure_input;;
8477 esac
8479 case $ac_tag in
8480 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8481 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8482 esac
8484 esac
8486 ac_dir=`$as_dirname -- "$ac_file" ||
8487 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8488 X"$ac_file" : 'X\(//\)[^/]' \| \
8489 X"$ac_file" : 'X\(//\)$' \| \
8490 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8491 $as_echo X"$ac_file" |
8492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8493 s//\1/
8496 /^X\(\/\/\)[^/].*/{
8497 s//\1/
8500 /^X\(\/\/\)$/{
8501 s//\1/
8504 /^X\(\/\).*/{
8505 s//\1/
8508 s/.*/./; q'`
8509 as_dir="$ac_dir"; as_fn_mkdir_p
8510 ac_builddir=.
8512 case "$ac_dir" in
8513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8515 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8516 # A ".." for each directory in $ac_dir_suffix.
8517 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8518 case $ac_top_builddir_sub in
8519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8521 esac ;;
8522 esac
8523 ac_abs_top_builddir=$ac_pwd
8524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8525 # for backward compatibility:
8526 ac_top_builddir=$ac_top_build_prefix
8528 case $srcdir in
8529 .) # We are building in place.
8530 ac_srcdir=.
8531 ac_top_srcdir=$ac_top_builddir_sub
8532 ac_abs_top_srcdir=$ac_pwd ;;
8533 [\\/]* | ?:[\\/]* ) # Absolute name.
8534 ac_srcdir=$srcdir$ac_dir_suffix;
8535 ac_top_srcdir=$srcdir
8536 ac_abs_top_srcdir=$srcdir ;;
8537 *) # Relative name.
8538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8539 ac_top_srcdir=$ac_top_build_prefix$srcdir
8540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8541 esac
8542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8545 case $ac_mode in
8548 # CONFIG_FILE
8551 case $INSTALL in
8552 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8553 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8554 esac
8555 ac_MKDIR_P=$MKDIR_P
8556 case $MKDIR_P in
8557 [\\/$]* | ?:[\\/]* ) ;;
8558 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8559 esac
8560 _ACEOF
8562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8563 # If the template does not know about datarootdir, expand it.
8564 # FIXME: This hack should be removed a few years after 2.60.
8565 ac_datarootdir_hack=; ac_datarootdir_seen=
8566 ac_sed_dataroot='
8567 /datarootdir/ {
8571 /@datadir@/p
8572 /@docdir@/p
8573 /@infodir@/p
8574 /@localedir@/p
8575 /@mandir@/p'
8576 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8577 *datarootdir*) ac_datarootdir_seen=yes;;
8578 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8580 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8581 _ACEOF
8582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8583 ac_datarootdir_hack='
8584 s&@datadir@&$datadir&g
8585 s&@docdir@&$docdir&g
8586 s&@infodir@&$infodir&g
8587 s&@localedir@&$localedir&g
8588 s&@mandir@&$mandir&g
8589 s&\\\${datarootdir}&$datarootdir&g' ;;
8590 esac
8591 _ACEOF
8593 # Neutralize VPATH when `$srcdir' = `.'.
8594 # Shell code in configure.ac might set extrasub.
8595 # FIXME: do we really want to maintain this feature?
8596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8597 ac_sed_extra="$ac_vpsub
8598 $extrasub
8599 _ACEOF
8600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8602 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8603 s|@configure_input@|$ac_sed_conf_input|;t t
8604 s&@top_builddir@&$ac_top_builddir_sub&;t t
8605 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8606 s&@srcdir@&$ac_srcdir&;t t
8607 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8608 s&@top_srcdir@&$ac_top_srcdir&;t t
8609 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8610 s&@builddir@&$ac_builddir&;t t
8611 s&@abs_builddir@&$ac_abs_builddir&;t t
8612 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8613 s&@INSTALL@&$ac_INSTALL&;t t
8614 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8615 $ac_datarootdir_hack
8617 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8618 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8620 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8621 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8622 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8623 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8625 which seems to be undefined. Please make sure it is defined" >&5
8626 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8627 which seems to be undefined. Please make sure it is defined" >&2;}
8629 rm -f "$ac_tmp/stdin"
8630 case $ac_file in
8631 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8632 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8633 esac \
8634 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8638 # CONFIG_HEADER
8640 if test x"$ac_file" != x-; then
8642 $as_echo "/* $configure_input */" \
8643 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8644 } >"$ac_tmp/config.h" \
8645 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8646 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8648 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8649 else
8650 rm -f "$ac_file"
8651 mv "$ac_tmp/config.h" "$ac_file" \
8652 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8654 else
8655 $as_echo "/* $configure_input */" \
8656 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8657 || as_fn_error $? "could not create -" "$LINENO" 5
8662 # CONFIG_LINK
8665 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
8667 else
8668 # Prefer the file from the source tree if names are identical.
8669 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
8670 ac_source=$srcdir/$ac_source
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
8674 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
8676 if test ! -r "$ac_source"; then
8677 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
8679 rm -f "$ac_file"
8681 # Try a relative symlink, then a hard link, then a copy.
8682 case $ac_source in
8683 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
8684 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
8685 esac
8686 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
8687 ln "$ac_source" "$ac_file" 2>/dev/null ||
8688 cp -p "$ac_source" "$ac_file" ||
8689 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
8692 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8693 $as_echo "$as_me: executing $ac_file commands" >&6;}
8695 esac
8698 case $ac_file$ac_mode in
8699 "dummy-dep-files":C) (cd "$srcdir" && find . '(' -name '*.c' -o -name '*.cxx' ')' -print) \
8700 | sed 's/\.c\(xx\)\{0,1\}$//' | (while read f; do echo > "$f.o.d"; echo > "$f.po.d"; done)
8702 "asm.d":C) for f in $asm_file_list
8704 case $f in
8705 *.asm)
8706 echo "`basename $f .asm`.s : $f "'$(srcdir)/asm.m4 machine.m4 config.m4'
8708 esac
8709 done > asm.d
8711 "$ac_stdint_h":C)
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
8713 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
8714 ac_stdint=$tmp/_stdint.h
8716 echo "#ifndef" $_ac_stdint_h >$ac_stdint
8717 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
8718 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
8719 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
8720 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
8721 if test "_$ac_cv_header_stdint_t" != "_" ; then
8722 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
8725 cat >>$ac_stdint <<STDINT_EOF
8727 /* ................... shortcircuit part ........................... */
8729 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
8730 #include <stdint.h>
8731 #else
8732 #include <stddef.h>
8734 /* .................... configured part ............................ */
8736 STDINT_EOF
8738 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
8739 if test "_$ac_cv_header_stdint_x" != "_" ; then
8740 ac_header="$ac_cv_header_stdint_x"
8741 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
8742 else
8743 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
8746 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
8747 if test "_$ac_cv_header_stdint_o" != "_" ; then
8748 ac_header="$ac_cv_header_stdint_o"
8749 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
8750 else
8751 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
8754 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
8755 if test "_$ac_cv_header_stdint_u" != "_" ; then
8756 ac_header="$ac_cv_header_stdint_u"
8757 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
8758 else
8759 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
8762 echo "" >>$ac_stdint
8764 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
8765 echo "#include <$ac_header>" >>$ac_stdint
8766 echo "" >>$ac_stdint
8767 fi fi
8769 echo "/* which 64bit typedef has been found */" >>$ac_stdint
8770 if test "$ac_cv_type_uint64_t" = "yes" ; then
8771 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
8772 else
8773 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
8775 if test "$ac_cv_type_u_int64_t" = "yes" ; then
8776 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
8777 else
8778 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
8780 echo "" >>$ac_stdint
8782 echo "/* which type model has been detected */" >>$ac_stdint
8783 if test "_$ac_cv_stdint_char_model" != "_" ; then
8784 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_stdint_char_model" >>$ac_stdint
8785 echo "#define _STDINT_LONG_MODEL" "$ac_cv_stdint_long_model" >>$ac_stdint
8786 else
8787 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
8788 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
8790 echo "" >>$ac_stdint
8792 echo "/* whether int_least types were detected */" >>$ac_stdint
8793 if test "$ac_cv_type_int_least32_t" = "yes"; then
8794 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
8795 else
8796 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
8798 echo "/* whether int_fast types were detected */" >>$ac_stdint
8799 if test "$ac_cv_type_int_fast32_t" = "yes"; then
8800 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
8801 else
8802 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
8804 echo "/* whether intmax_t type was detected */" >>$ac_stdint
8805 if test "$ac_cv_type_intmax_t" = "yes"; then
8806 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
8807 else
8808 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
8810 echo "" >>$ac_stdint
8812 cat >>$ac_stdint <<STDINT_EOF
8813 /* .................... detections part ............................ */
8815 /* whether we need to define bitspecific types from compiler base types */
8816 #ifndef _STDINT_HEADER_INTPTR
8817 #ifndef _STDINT_HEADER_UINT32
8818 #ifndef _STDINT_HEADER_U_INT32
8819 #define _STDINT_NEED_INT_MODEL_T
8820 #else
8821 #define _STDINT_HAVE_U_INT_TYPES
8822 #endif
8823 #endif
8824 #endif
8826 #ifdef _STDINT_HAVE_U_INT_TYPES
8827 #undef _STDINT_NEED_INT_MODEL_T
8828 #endif
8830 #ifdef _STDINT_CHAR_MODEL
8831 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
8832 #ifndef _STDINT_BYTE_MODEL
8833 #define _STDINT_BYTE_MODEL 12
8834 #endif
8835 #endif
8836 #endif
8838 #ifndef _STDINT_HAVE_INT_LEAST32_T
8839 #define _STDINT_NEED_INT_LEAST_T
8840 #endif
8842 #ifndef _STDINT_HAVE_INT_FAST32_T
8843 #define _STDINT_NEED_INT_FAST_T
8844 #endif
8846 #ifndef _STDINT_HEADER_INTPTR
8847 #define _STDINT_NEED_INTPTR_T
8848 #ifndef _STDINT_HAVE_INTMAX_T
8849 #define _STDINT_NEED_INTMAX_T
8850 #endif
8851 #endif
8854 /* .................... definition part ............................ */
8856 /* some system headers have good uint64_t */
8857 #ifndef _HAVE_UINT64_T
8858 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
8859 #define _HAVE_UINT64_T
8860 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
8861 #define _HAVE_UINT64_T
8862 typedef u_int64_t uint64_t;
8863 #endif
8864 #endif
8866 #ifndef _HAVE_UINT64_T
8867 /* .. here are some common heuristics using compiler runtime specifics */
8868 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
8869 #define _HAVE_UINT64_T
8870 typedef long long int64_t;
8871 typedef unsigned long long uint64_t;
8873 #elif !defined __STRICT_ANSI__
8874 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
8875 #define _HAVE_UINT64_T
8876 typedef __int64 int64_t;
8877 typedef unsigned __int64 uint64_t;
8879 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
8880 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
8881 #if !defined _NO_LONGLONG
8882 #define _HAVE_UINT64_T
8883 typedef long long int64_t;
8884 typedef unsigned long long uint64_t;
8885 #endif
8887 #elif defined __alpha || (defined __mips && defined _ABIN32)
8888 #if !defined _NO_LONGLONG
8889 typedef long int64_t;
8890 typedef unsigned long uint64_t;
8891 #endif
8892 /* compiler/cpu type to define int64_t */
8893 #endif
8894 #endif
8895 #endif
8897 #if defined _STDINT_HAVE_U_INT_TYPES
8898 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
8899 typedef u_int8_t uint8_t;
8900 typedef u_int16_t uint16_t;
8901 typedef u_int32_t uint32_t;
8903 /* glibc compatibility */
8904 #ifndef __int8_t_defined
8905 #define __int8_t_defined
8906 #endif
8907 #endif
8909 #ifdef _STDINT_NEED_INT_MODEL_T
8910 /* we must guess all the basic types. Apart from byte-adressable system, */
8911 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
8912 /* (btw, those nibble-addressable systems are way off, or so we assume) */
8915 #if defined _STDINT_BYTE_MODEL
8916 #if _STDINT_LONG_MODEL+0 == 242
8917 /* 2:4:2 = IP16 = a normal 16-bit system */
8918 typedef unsigned char uint8_t;
8919 typedef unsigned short uint16_t;
8920 typedef unsigned long uint32_t;
8921 #ifndef __int8_t_defined
8922 #define __int8_t_defined
8923 typedef char int8_t;
8924 typedef short int16_t;
8925 typedef long int32_t;
8926 #endif
8927 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
8928 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
8929 /* 4:4:4 = ILP32 = a normal 32-bit system */
8930 typedef unsigned char uint8_t;
8931 typedef unsigned short uint16_t;
8932 typedef unsigned int uint32_t;
8933 #ifndef __int8_t_defined
8934 #define __int8_t_defined
8935 typedef char int8_t;
8936 typedef short int16_t;
8937 typedef int int32_t;
8938 #endif
8939 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
8940 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
8941 /* 4:8:8 = LP64 = a normal 64-bit system */
8942 typedef unsigned char uint8_t;
8943 typedef unsigned short uint16_t;
8944 typedef unsigned int uint32_t;
8945 #ifndef __int8_t_defined
8946 #define __int8_t_defined
8947 typedef char int8_t;
8948 typedef short int16_t;
8949 typedef int int32_t;
8950 #endif
8951 /* this system has a "long" of 64bit */
8952 #ifndef _HAVE_UINT64_T
8953 #define _HAVE_UINT64_T
8954 typedef unsigned long uint64_t;
8955 typedef long int64_t;
8956 #endif
8957 #elif _STDINT_LONG_MODEL+0 == 448
8958 /* LLP64 a 64-bit system derived from a 32-bit system */
8959 typedef unsigned char uint8_t;
8960 typedef unsigned short uint16_t;
8961 typedef unsigned int uint32_t;
8962 #ifndef __int8_t_defined
8963 #define __int8_t_defined
8964 typedef char int8_t;
8965 typedef short int16_t;
8966 typedef int int32_t;
8967 #endif
8968 /* assuming the system has a "long long" */
8969 #ifndef _HAVE_UINT64_T
8970 #define _HAVE_UINT64_T
8971 typedef unsigned long long uint64_t;
8972 typedef long long int64_t;
8973 #endif
8974 #else
8975 #define _STDINT_NO_INT32_T
8976 #endif
8977 #else
8978 #define _STDINT_NO_INT8_T
8979 #define _STDINT_NO_INT32_T
8980 #endif
8981 #endif
8984 * quote from SunOS-5.8 sys/inttypes.h:
8985 * Use at your own risk. As of February 1996, the committee is squarely
8986 * behind the fixed sized types; the "least" and "fast" types are still being
8987 * discussed. The probability that the "fast" types may be removed before
8988 * the standard is finalized is high enough that they are not currently
8989 * implemented.
8992 #if defined _STDINT_NEED_INT_LEAST_T
8993 typedef int8_t int_least8_t;
8994 typedef int16_t int_least16_t;
8995 typedef int32_t int_least32_t;
8996 #ifdef _HAVE_UINT64_T
8997 typedef int64_t int_least64_t;
8998 #endif
9000 typedef uint8_t uint_least8_t;
9001 typedef uint16_t uint_least16_t;
9002 typedef uint32_t uint_least32_t;
9003 #ifdef _HAVE_UINT64_T
9004 typedef uint64_t uint_least64_t;
9005 #endif
9006 /* least types */
9007 #endif
9009 #if defined _STDINT_NEED_INT_FAST_T
9010 typedef int8_t int_fast8_t;
9011 typedef int int_fast16_t;
9012 typedef int32_t int_fast32_t;
9013 #ifdef _HAVE_UINT64_T
9014 typedef int64_t int_fast64_t;
9015 #endif
9017 typedef uint8_t uint_fast8_t;
9018 typedef unsigned uint_fast16_t;
9019 typedef uint32_t uint_fast32_t;
9020 #ifdef _HAVE_UINT64_T
9021 typedef uint64_t uint_fast64_t;
9022 #endif
9023 /* fast types */
9024 #endif
9026 #ifdef _STDINT_NEED_INTMAX_T
9027 #ifdef _HAVE_UINT64_T
9028 typedef int64_t intmax_t;
9029 typedef uint64_t uintmax_t;
9030 #else
9031 typedef long intmax_t;
9032 typedef unsigned long uintmax_t;
9033 #endif
9034 #endif
9036 #ifdef _STDINT_NEED_INTPTR_T
9037 #ifndef __intptr_t_defined
9038 #define __intptr_t_defined
9039 /* we encourage using "long" to store pointer values, never use "int" ! */
9040 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
9041 typedef unsinged int uintptr_t;
9042 typedef int intptr_t;
9043 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
9044 typedef unsigned long uintptr_t;
9045 typedef long intptr_t;
9046 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
9047 typedef uint64_t uintptr_t;
9048 typedef int64_t intptr_t;
9049 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
9050 typedef unsigned long uintptr_t;
9051 typedef long intptr_t;
9052 #endif
9053 #endif
9054 #endif
9056 /* shortcircuit*/
9057 #endif
9058 /* once */
9059 #endif
9060 #endif
9061 STDINT_EOF
9062 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
9064 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
9065 else
9066 ac_dir=`$as_dirname -- "$ac_stdint_h" ||
9067 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9068 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
9069 X"$ac_stdint_h" : 'X\(//\)$' \| \
9070 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
9071 $as_echo X"$ac_stdint_h" |
9072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9073 s//\1/
9076 /^X\(\/\/\)[^/].*/{
9077 s//\1/
9080 /^X\(\/\/\)$/{
9081 s//\1/
9084 /^X\(\/\).*/{
9085 s//\1/
9088 s/.*/./; q'`
9089 as_dir="$ac_dir"; as_fn_mkdir_p
9090 rm -f $ac_stdint_h
9091 mv $ac_stdint $ac_stdint_h
9095 esac
9096 done # for ac_tag
9099 as_fn_exit 0
9100 _ACEOF
9101 ac_clean_files=$ac_clean_files_save
9103 test $ac_write_fail = 0 ||
9104 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9107 # configure is writing to config.log, and then calls config.status.
9108 # config.status does its own redirection, appending to config.log.
9109 # Unfortunately, on DOS this fails, as config.log is still kept open
9110 # by configure, so config.status won't be able to write to it; its
9111 # output is simply discarded. So we exec the FD to /dev/null,
9112 # effectively closing config.log, so it can be properly (re)opened and
9113 # appended to by config.status. When coming back to configure, we
9114 # need to make the FD available again.
9115 if test "$no_create" != yes; then
9116 ac_cs_success=:
9117 ac_config_status_args=
9118 test "$silent" = yes &&
9119 ac_config_status_args="$ac_config_status_args --quiet"
9120 exec 5>/dev/null
9121 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9122 exec 5>>config.log
9123 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9124 # would make configure fail if this is the last instruction.
9125 $ac_cs_success || as_fn_exit 1
9127 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9129 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
9135 Version: ${PACKAGE_STRING}
9136 Host type: ${host}
9137 ABI: ${ABI}
9138 Assembly files: ${asm_path:-none}
9139 Install prefix: ${prefix}
9140 Library directory: ${libdir}
9141 Compiler: ${CC}
9142 Static libraries: ${enable_static}
9143 Shared libraries: ${enable_shared}
9144 Public key crypto: ${enable_public_key}
9145 Documentation: ${enable_documentation}
9146 " >&5
9147 $as_echo "$as_me: summary of build options:
9149 Version: ${PACKAGE_STRING}
9150 Host type: ${host}
9151 ABI: ${ABI}
9152 Assembly files: ${asm_path:-none}
9153 Install prefix: ${prefix}
9154 Library directory: ${libdir}
9155 Compiler: ${CC}
9156 Static libraries: ${enable_static}
9157 Shared libraries: ${enable_shared}
9158 Public key crypto: ${enable_public_key}
9159 Documentation: ${enable_documentation}
9160 " >&6;}