2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for nettle 3.2.
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 :
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+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
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
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 || :
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.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
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
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 :
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+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || 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 :
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir=.
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 :
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
240 if test "x$CONFIG_SHELL" != x; then :
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.
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 *v*x* | *x*v* ) as_opts=-vx ;;
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
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."
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."
279 SHELL=${CONFIG_SHELL-/bin/sh}
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 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir=./$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
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
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
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 :
401 as_val=`expr "$@" || test $? -eq 1`
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.
413 as_status=$1; test $as_status -eq 0 && as_status=1
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
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
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. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
499 # Exit status is that of the last command.
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
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
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 ||
532 elif ln conf$$.file conf$$ 2>/dev/null; then
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"'
546 test -d ./-p && rmdir ./-p
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
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`
571 ac_default_prefix=/usr/local
573 ac_config_libobj_dir=.
580 # Identity of this package.
581 PACKAGE_NAME='nettle'
582 PACKAGE_TARNAME='nettle'
583 PACKAGE_VERSION='3.2'
584 PACKAGE_STRING='nettle 3.2'
585 PACKAGE_BUGREPORT='nettle-bugs@lists.lysator.liu.se'
588 ac_unique_file="arcfour.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
625 ac_subst_vars='LTLIBOBJS
658 ASM_MARK_NOEXEC_STACK
690 EXTRA_HOGWEED_LINKER_FLAGS
703 HOGWEED_EXTRA_SYMBOLS
742 program_transform_name
755 enable_option_checking
770 enable_ld_version_script
771 enable_dependency_tracking
773 ac_precious_vars='build_alias
788 # Initialize some variables set by options.
790 ac_init_version=false
791 ac_unrecognized_opts=
793 # The variables have the same names as the options, with
794 # dashes changed to underlines.
802 program_transform_name=s,x,x,
810 # Installation directory options.
811 # These are left unexpanded so users can "make install exec_prefix=/foo"
812 # and all the variables that are supposed to be based on exec_prefix
813 # by default will actually change.
814 # Use braces instead of parens because sh, perl, etc. also accept them.
815 # (The list follows the same order as the GNU Coding Standards.)
816 bindir='${exec_prefix}/bin'
817 sbindir='${exec_prefix}/sbin'
818 libexecdir='${exec_prefix}/libexec'
819 datarootdir='${prefix}/share'
820 datadir='${datarootdir}'
821 sysconfdir='${prefix}/etc'
822 sharedstatedir='${prefix}/com'
823 localstatedir='${prefix}/var'
824 includedir='${prefix}/include'
825 oldincludedir='/usr/include'
826 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827 infodir='${datarootdir}/info'
832 libdir='${exec_prefix}/lib'
833 localedir='${datarootdir}/locale'
834 mandir='${datarootdir}/man'
840 # If the previous option needs an argument, assign it.
841 if test -n "$ac_prev"; then
842 eval $ac_prev=\$ac_option
848 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 # Accept the important Cygnus configure options, so we can diagnose typos.
855 case $ac_dashdash$ac_option in
859 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864 -build | --build | --buil | --bui | --bu)
865 ac_prev=build_alias ;;
866 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867 build_alias=$ac_optarg ;;
869 -cache-file | --cache-file | --cache-fil | --cache-fi \
870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871 ac_prev=cache_file ;;
872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874 cache_file=$ac_optarg ;;
877 cache_file=config.cache ;;
879 -datadir | --datadir | --datadi | --datad)
881 -datadir=* | --datadir=* | --datadi=* | --datad=*)
882 datadir=$ac_optarg ;;
884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885 | --dataroo | --dataro | --datar)
886 ac_prev=datarootdir ;;
887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889 datarootdir=$ac_optarg ;;
891 -disable-* | --disable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error $? "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
905 eval enable_$ac_useropt=no ;;
907 -docdir | --docdir | --docdi | --doc | --do)
909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917 -enable-* | --enable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error $? "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
931 eval enable_$ac_useropt=\$ac_optarg ;;
933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935 | --exec | --exe | --ex)
936 ac_prev=exec_prefix ;;
937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939 | --exec=* | --exe=* | --ex=*)
940 exec_prefix=$ac_optarg ;;
942 -gas | --gas | --ga | --g)
943 # Obsolete; use --with-gas.
946 -help | --help | --hel | --he | -h)
948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949 ac_init_help=recursive ;;
950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951 ac_init_help=short ;;
953 -host | --host | --hos | --ho)
954 ac_prev=host_alias ;;
955 -host=* | --host=* | --hos=* | --ho=*)
956 host_alias=$ac_optarg ;;
958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 htmldir=$ac_optarg ;;
964 -includedir | --includedir | --includedi | --included | --include \
965 | --includ | --inclu | --incl | --inc)
966 ac_prev=includedir ;;
967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968 | --includ=* | --inclu=* | --incl=* | --inc=*)
969 includedir=$ac_optarg ;;
971 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974 infodir=$ac_optarg ;;
976 -libdir | --libdir | --libdi | --libd)
978 -libdir=* | --libdir=* | --libdi=* | --libd=*)
981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982 | --libexe | --libex | --libe)
983 ac_prev=libexecdir ;;
984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985 | --libexe=* | --libex=* | --libe=*)
986 libexecdir=$ac_optarg ;;
988 -localedir | --localedir | --localedi | --localed | --locale)
990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991 localedir=$ac_optarg ;;
993 -localstatedir | --localstatedir | --localstatedi | --localstated \
994 | --localstate | --localstat | --localsta | --localst | --locals)
995 ac_prev=localstatedir ;;
996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998 localstatedir=$ac_optarg ;;
1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003 mandir=$ac_optarg ;;
1005 -nfp | --nfp | --nf)
1006 # Obsolete; use --without-fp.
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010 | --no-cr | --no-c | -n)
1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019 | --oldin | --oldi | --old | --ol | --o)
1020 ac_prev=oldincludedir ;;
1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024 oldincludedir=$ac_optarg ;;
1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029 prefix=$ac_optarg ;;
1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032 | --program-pre | --program-pr | --program-p)
1033 ac_prev=program_prefix ;;
1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036 program_prefix=$ac_optarg ;;
1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039 | --program-suf | --program-su | --program-s)
1040 ac_prev=program_suffix ;;
1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043 program_suffix=$ac_optarg ;;
1045 -program-transform-name | --program-transform-name \
1046 | --program-transform-nam | --program-transform-na \
1047 | --program-transform-n | --program-transform- \
1048 | --program-transform | --program-transfor \
1049 | --program-transfo | --program-transf \
1050 | --program-trans | --program-tran \
1051 | --progr-tra | --program-tr | --program-t)
1052 ac_prev=program_transform_name ;;
1053 -program-transform-name=* | --program-transform-name=* \
1054 | --program-transform-nam=* | --program-transform-na=* \
1055 | --program-transform-n=* | --program-transform-=* \
1056 | --program-transform=* | --program-transfor=* \
1057 | --program-transfo=* | --program-transf=* \
1058 | --program-trans=* | --program-tran=* \
1059 | --progr-tra=* | --program-tr=* | --program-t=*)
1060 program_transform_name=$ac_optarg ;;
1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065 pdfdir=$ac_optarg ;;
1067 -psdir | --psdir | --psdi | --psd | --ps)
1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080 sbindir=$ac_optarg ;;
1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084 | --sharedst | --shareds | --shared | --share | --shar \
1086 ac_prev=sharedstatedir ;;
1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091 sharedstatedir=$ac_optarg ;;
1093 -site | --site | --sit)
1095 -site=* | --site=* | --sit=*)
1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101 srcdir=$ac_optarg ;;
1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104 | --syscon | --sysco | --sysc | --sys | --sy)
1105 ac_prev=sysconfdir ;;
1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108 sysconfdir=$ac_optarg ;;
1110 -target | --target | --targe | --targ | --tar | --ta | --t)
1111 ac_prev=target_alias ;;
1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113 target_alias=$ac_optarg ;;
1115 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118 -version | --version | --versio | --versi | --vers | -V)
1119 ac_init_version=: ;;
1122 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error $? "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1135 eval with_$ac_useropt=\$ac_optarg ;;
1137 -without-* | --without-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error $? "invalid package name: $ac_useropt"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1151 eval with_$ac_useropt=no ;;
1154 # Obsolete; use --with-x.
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1171 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1172 Try \`$0 --help' for more information"
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
1178 case $ac_envvar in #(
1179 '' | [0-9]* | *[!_$as_cr_alnum]* )
1180 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1182 eval $ac_envvar=\$ac_optarg
1183 export $ac_envvar ;;
1186 # FIXME: should be removed in autoconf 3.0.
1187 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1196 if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 as_fn_error $? "missing argument to $ac_option"
1201 if test -n "$ac_unrecognized_opts"; then
1202 case $enable_option_checking in
1204 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1205 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1209 # Check all directory arguments for consistency.
1210 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211 datadir sysconfdir sharedstatedir localstatedir includedir \
1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213 libdir localedir mandir
1215 eval ac_val=\$$ac_var
1216 # Remove trailing slashes.
1219 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1220 eval $ac_var=\$ac_val;;
1222 # Be sure to have absolute directory names.
1224 [\\/$]* | ?:[\\/]* ) continue;;
1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1235 target=$target_alias
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 elif test "x$build_alias" != "x$host_alias"; then
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249 test "$silent" = yes && exec 6>/dev/null
1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di=`ls -di .` &&
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255 as_fn_error $? "working directory cannot be determined"
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 as_fn_error $? "pwd does not report name of working directory"
1260 # Find the source files, if location was not specified.
1261 if test -z "$srcdir"; then
1262 ac_srcdir_defaulted=yes
1263 # Try the directory containing this script, then the parent directory.
1264 ac_confdir=`$as_dirname -- "$as_myself" ||
1265 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266 X"$as_myself" : 'X\(//\)[^/]' \| \
1267 X"$as_myself" : 'X\(//\)$' \| \
1268 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269 $as_echo X"$as_myself" |
1270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1292 ac_srcdir_defaulted=no
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1302 # When building in place, set srcdir=.
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 # Remove unnecessary trailing slashes from srcdir.
1307 # Double slashes in file names in object file debugging info
1308 # mess up M-x gdb in Emacs.
1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 for ac_var in $ac_precious_vars; do
1313 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_env_${ac_var}_value=\$${ac_var}
1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320 # Report the --help message.
1322 if test "$ac_init_help" = "long"; then
1323 # Omit some internal or obsolete options to make the list less imposing.
1324 # This message is too long to be a string in the A/UX 3.1 sh.
1326 \`configure' configures nettle 3.2 to adapt to many kinds of systems.
1328 Usage: $0 [OPTION]... [VAR=VALUE]...
1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331 VAR=VALUE. See below for descriptions of some of the useful variables.
1333 Defaults for the options are specified in brackets.
1336 -h, --help display this help and exit
1337 --help=short display options specific to this package
1338 --help=recursive display the short help of all the included packages
1339 -V, --version display version information and exit
1340 -q, --quiet, --silent do not print \`checking ...' messages
1341 --cache-file=FILE cache test results in FILE [disabled]
1342 -C, --config-cache alias for \`--cache-file=config.cache'
1343 -n, --no-create do not create output files
1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346 Installation directories:
1347 --prefix=PREFIX install architecture-independent files in PREFIX
1348 [$ac_default_prefix]
1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1352 By default, \`make install' will install all the files in
1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355 for instance \`--prefix=\$HOME'.
1357 For better control, use the options below.
1359 Fine tuning of the installation directories:
1360 --bindir=DIR user executables [EPREFIX/bin]
1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man]
1374 --docdir=DIR documentation root [DATAROOTDIR/doc/nettle]
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
1384 --build=BUILD configure for building on BUILD [guessed]
1385 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389 if test -n "$ac_init_help"; then
1390 case $ac_init_help in
1391 short | recursive ) echo "Configuration of nettle 3.2:";;
1396 --disable-option-checking ignore unrecognized --enable/--with options
1397 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1398 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1399 --disable-public-key Disable public key algorithms
1400 --disable-assembler Disable assembler code
1401 --disable-static Do not build any static library
1402 --disable-shared Do not build any shared library
1403 --disable-pic Do not try to compile library files as position
1405 --disable-openssl Do not include openssl glue in the benchmark program
1406 --enable-gcov Instrument for gcov (requires a modern gcc)
1407 --disable-documentation Omit building and installing the documentation.
1409 --enable-fat Enable fat library build (default=no)
1410 --enable-arm-neon Enable ARM Neon assembly. (default=auto)
1411 --enable-x86-aesni Enable x86_64 aes instructions. (default=no)
1412 --enable-mini-gmp Enable mini-gmp, used instead of libgmp.
1413 --enable-ld-version-script
1414 enable linker version script (default is enabled
1416 --disable-dependency-tracking
1417 Disable dependency tracking. Dependency tracking
1418 doesn't work with BSD make
1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423 --with-include-path A colon-separated list of directories to search for
1425 --with-lib-path A colon-separated list of directories to search for
1428 Some influential environment variables:
1429 CC C compiler command
1430 CFLAGS C compiler flags
1431 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1432 nonstandard directory <lib dir>
1433 LIBS libraries to pass to the linker, e.g. -l<library>
1434 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1435 you have headers in a nonstandard directory <include dir>
1436 CXX C++ compiler command
1437 CXXFLAGS C++ compiler flags
1439 build system C compiler
1442 Use these variables to override the choices made by `configure' or to help
1443 it to find libraries and programs with nonstandard names/locations.
1445 Report bugs to <nettle-bugs@lists.lysator.liu.se>.
1450 if test "$ac_init_help" = "recursive"; then
1451 # If there are subdirs, report their specific --help.
1452 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1453 test -d "$ac_dir" ||
1454 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1462 # A ".." for each directory in $ac_dir_suffix.
1463 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1464 case $ac_top_builddir_sub in
1465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1469 ac_abs_top_builddir=$ac_pwd
1470 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1471 # for backward compatibility:
1472 ac_top_builddir=$ac_top_build_prefix
1475 .) # We are building in place.
1477 ac_top_srcdir=$ac_top_builddir_sub
1478 ac_abs_top_srcdir=$ac_pwd ;;
1479 [\\/]* | ?:[\\/]* ) # Absolute name.
1480 ac_srcdir=$srcdir$ac_dir_suffix;
1481 ac_top_srcdir=$srcdir
1482 ac_abs_top_srcdir=$srcdir ;;
1484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1485 ac_top_srcdir=$ac_top_build_prefix$srcdir
1486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1488 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1490 cd "$ac_dir" || { ac_status=$?; continue; }
1491 # Check for guested configure.
1492 if test -f "$ac_srcdir/configure.gnu"; then
1494 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495 elif test -f "$ac_srcdir/configure"; then
1497 $SHELL "$ac_srcdir/configure" --help=recursive
1499 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1501 cd "$ac_pwd" || { ac_status=$?; break; }
1505 test -n "$ac_init_help" && exit $ac_status
1506 if $ac_init_version; then
1508 nettle configure 3.2
1509 generated by GNU Autoconf 2.69
1511 Copyright (C) 2012 Free Software Foundation, Inc.
1512 This configure script is free software; the Free Software Foundation
1513 gives unlimited permission to copy, distribute and modify it.
1518 ## ------------------------ ##
1519 ## Autoconf initialization. ##
1520 ## ------------------------ ##
1522 # ac_fn_c_try_compile LINENO
1523 # --------------------------
1524 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1525 ac_fn_c_try_compile ()
1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528 rm -f conftest.$ac_objext
1529 if { { ac_try="$ac_compile"
1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532 *) ac_try_echo=$ac_try;;
1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 $as_echo "$ac_try_echo"; } >&5
1536 (eval "$ac_compile") 2>conftest.err
1538 if test -s conftest.err; then
1539 grep -v '^ *+' conftest.err >conftest.er1
1540 cat conftest.er1 >&5
1541 mv -f conftest.er1 conftest.err
1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544 test $ac_status = 0; } && {
1545 test -z "$ac_c_werror_flag" ||
1546 test ! -s conftest.err
1547 } && test -s conftest.$ac_objext; then :
1550 $as_echo "$as_me: failed program was:" >&5
1551 sed 's/^/| /' conftest.$ac_ext >&5
1555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1556 as_fn_set_status $ac_retval
1558 } # ac_fn_c_try_compile
1560 # ac_fn_cxx_try_compile LINENO
1561 # ----------------------------
1562 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1563 ac_fn_cxx_try_compile ()
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 rm -f conftest.$ac_objext
1567 if { { ac_try="$ac_compile"
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_compile") 2>conftest.err
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } && {
1583 test -z "$ac_cxx_werror_flag" ||
1584 test ! -s conftest.err
1585 } && test -s conftest.$ac_objext; then :
1588 $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594 as_fn_set_status $ac_retval
1596 } # ac_fn_cxx_try_compile
1598 # ac_fn_c_try_cpp LINENO
1599 # ----------------------
1600 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 if { { ac_try="$ac_cpp conftest.$ac_ext"
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 $as_echo "$ac_try_echo"; } >&5
1611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1613 if test -s conftest.err; then
1614 grep -v '^ *+' conftest.err >conftest.er1
1615 cat conftest.er1 >&5
1616 mv -f conftest.er1 conftest.err
1618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619 test $ac_status = 0; } > conftest.i && {
1620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1621 test ! -s conftest.err
1625 $as_echo "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631 as_fn_set_status $ac_retval
1635 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1636 # -------------------------------------------
1637 # Tests whether TYPE exists after having included INCLUDES, setting cache
1638 # variable VAR accordingly.
1639 ac_fn_c_check_type ()
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643 $as_echo_n "checking for $2... " >&6; }
1644 if eval \${$3+:} false; then :
1645 $as_echo_n "(cached) " >&6
1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649 /* end confdefs.h. */
1660 if ac_fn_c_try_compile "$LINENO"; then :
1661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1662 /* end confdefs.h. */
1673 if ac_fn_c_try_compile "$LINENO"; then :
1678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 } # ac_fn_c_check_type
1689 # ac_fn_c_try_run LINENO
1690 # ----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1692 # that executables *can* be run.
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_link"
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>&5
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1707 { { case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_try") 2>&5
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; }; }; then :
1719 $as_echo "$as_me: program exited with status $ac_status" >&5
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1723 ac_retval=$ac_status
1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1731 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1732 # -------------------------------------------------------
1733 # Tests whether HEADER exists and can be compiled using the include files in
1734 # INCLUDES, setting the cache variable VAR accordingly.
1735 ac_fn_c_check_header_compile ()
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741 $as_echo_n "(cached) " >&6
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1748 if ac_fn_c_try_compile "$LINENO"; then :
1753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757 $as_echo "$ac_res" >&6; }
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 } # ac_fn_c_check_header_compile
1762 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1763 # --------------------------------------------
1764 # Tries to find the compile-time value of EXPR in a program that includes
1765 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1767 ac_fn_c_compute_int ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 if test "$cross_compiling" = yes; then
1771 # Depending upon the size, compute the lo and hi bounds.
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h. */
1778 static int test_array [1 - 2 * !(($2) >= 0)];
1780 return test_array [0];
1786 if ac_fn_c_try_compile "$LINENO"; then :
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1795 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1797 return test_array [0];
1803 if ac_fn_c_try_compile "$LINENO"; then :
1804 ac_hi=$ac_mid; break
1806 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1807 if test $ac_lo -le $ac_mid; then
1811 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1822 static int test_array [1 - 2 * !(($2) < 0)];
1824 return test_array [0];
1830 if ac_fn_c_try_compile "$LINENO"; then :
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h. */
1839 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1841 return test_array [0];
1847 if ac_fn_c_try_compile "$LINENO"; then :
1848 ac_lo=$ac_mid; break
1850 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1851 if test $ac_mid -le $ac_hi; then
1855 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1865 # Binary search between lo and hi bounds.
1866 while test "x$ac_lo" != "x$ac_hi"; do
1867 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1874 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1876 return test_array [0];
1882 if ac_fn_c_try_compile "$LINENO"; then :
1885 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1890 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1897 static long int longval () { return $2; }
1898 static unsigned long int ulongval () { return $2; }
1905 FILE *f = fopen ("conftest.val", "w");
1910 long int i = longval ();
1913 fprintf (f, "%ld", i);
1917 unsigned long int i = ulongval ();
1920 fprintf (f, "%lu", i);
1922 /* Do not output a trailing newline, as this causes \r\n confusion
1923 on some platforms. */
1924 return ferror (f) || fclose (f) != 0;
1930 if ac_fn_c_try_run "$LINENO"; then :
1931 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1936 conftest.$ac_objext conftest.beam conftest.$ac_ext
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941 as_fn_set_status $ac_retval
1943 } # ac_fn_c_compute_int
1945 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1946 # -------------------------------------------------------
1947 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1948 # the include files in INCLUDES and setting the cache variable VAR
1950 ac_fn_c_check_header_mongrel ()
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 if eval \${$3+:} false; then :
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955 $as_echo_n "checking for $2... " >&6; }
1956 if eval \${$3+:} false; then :
1957 $as_echo_n "(cached) " >&6
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961 $as_echo "$ac_res" >&6; }
1963 # Is the header compilable?
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1965 $as_echo_n "checking $2 usability... " >&6; }
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972 ac_header_compiler=yes
1974 ac_header_compiler=no
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1978 $as_echo "$ac_header_compiler" >&6; }
1980 # Is the header present?
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1982 $as_echo_n "checking $2 presence... " >&6; }
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1987 if ac_fn_c_try_cpp "$LINENO"; then :
1988 ac_header_preproc=yes
1990 ac_header_preproc=no
1992 rm -f conftest.err conftest.i conftest.$ac_ext
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1994 $as_echo "$ac_header_preproc" >&6; }
1996 # So? What about this header?
1997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2000 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2002 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2006 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2008 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2010 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2012 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2014 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2015 ( $as_echo "## ----------------------------------------------- ##
2016 ## Report this to nettle-bugs@lists.lysator.liu.se ##
2017 ## ----------------------------------------------- ##"
2018 ) | sed "s/^/$as_me: WARNING: /" >&2
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if eval \${$3+:} false; then :
2024 $as_echo_n "(cached) " >&6
2026 eval "$3=\$ac_header_compiler"
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2032 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034 } # ac_fn_c_check_header_mongrel
2036 # ac_fn_c_check_func LINENO FUNC VAR
2037 # ----------------------------------
2038 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2039 ac_fn_c_check_func ()
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043 $as_echo_n "checking for $2... " >&6; }
2044 if eval \${$3+:} false; then :
2045 $as_echo_n "(cached) " >&6
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2049 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2051 #define $2 innocuous_$2
2053 /* System header to define __stub macros and hopefully few prototypes,
2054 which can conflict with char $2 (); below.
2055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2056 <limits.h> exists even on freestanding compilers. */
2059 # include <limits.h>
2061 # include <assert.h>
2066 /* Override any GCC internal prototype to avoid an error.
2067 Use char because int might match the return type of a GCC
2068 builtin and then its argument prototype would still apply. */
2073 /* The GNU C library defines this for functions which it implements
2074 to always fail with ENOSYS. Some functions are actually named
2075 something starting with __ and the normal name is an alias. */
2076 #if defined __stub_$2 || defined __stub___$2
2088 if ac_fn_c_try_link "$LINENO"; then :
2093 rm -f core conftest.err conftest.$ac_objext \
2094 conftest$ac_exeext conftest.$ac_ext
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098 $as_echo "$ac_res" >&6; }
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101 } # ac_fn_c_check_func
2102 cat >config.log <<_ACEOF
2103 This file contains any messages produced by compilers while
2104 running configure, to aid debugging if configure makes a mistake.
2106 It was created by nettle $as_me 3.2, which was
2107 generated by GNU Autoconf 2.69. Invocation command line was
2119 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2120 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2121 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2122 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2123 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2125 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2126 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2128 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2129 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2130 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2131 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2132 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2133 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2134 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 test -z "$as_dir" && as_dir=.
2143 $as_echo "PATH: $as_dir"
2159 # Keep a trace of the command line.
2160 # Strip out --no-create and --no-recursion so they do not pile up.
2161 # Strip out --silent because we don't want to record it for future runs.
2162 # Also quote any args containing shell meta-characters.
2163 # Make two passes to allow for proper duplicate-argument suppression.
2167 ac_must_keep_next=false
2173 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2175 | -silent | --silent | --silen | --sile | --sil)
2178 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2181 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2183 as_fn_append ac_configure_args1 " '$ac_arg'"
2184 if test $ac_must_keep_next = true; then
2185 ac_must_keep_next=false # Got value, back to normal.
2188 *=* | --config-cache | -C | -disable-* | --disable-* \
2189 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2190 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2191 | -with-* | --with-* | -without-* | --without-* | --x)
2192 case "$ac_configure_args0 " in
2193 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2196 -* ) ac_must_keep_next=true ;;
2199 as_fn_append ac_configure_args " '$ac_arg'"
2204 { ac_configure_args0=; unset ac_configure_args0;}
2205 { ac_configure_args1=; unset ac_configure_args1;}
2207 # When interrupted or exit'd, cleanup temporary files, and complete
2208 # config.log. We remove comments because anyway the quotes in there
2209 # would cause problems or look ugly.
2210 # WARNING: Use '\'' to represent an apostrophe within the trap.
2211 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2212 trap 'exit_status=$?
2213 # Save into config.log some information that might help in debugging.
2217 $as_echo "## ---------------- ##
2218 ## Cache variables. ##
2219 ## ---------------- ##"
2221 # The following way of writing the cache mishandles newlines in values,
2223 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2224 eval ac_val=\$$ac_var
2228 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2229 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2232 _ | IFS | as_nl) ;; #(
2233 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2234 *) { eval $ac_var=; unset $ac_var;} ;;
2239 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2240 *${as_nl}ac_space=\ *)
2242 "s/'\''/'\''\\\\'\'''\''/g;
2243 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2246 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2253 $as_echo "## ----------------- ##
2254 ## Output variables. ##
2255 ## ----------------- ##"
2257 for ac_var in $ac_subst_vars
2259 eval ac_val=\$$ac_var
2261 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2263 $as_echo "$ac_var='\''$ac_val'\''"
2267 if test -n "$ac_subst_files"; then
2268 $as_echo "## ------------------- ##
2269 ## File substitutions. ##
2270 ## ------------------- ##"
2272 for ac_var in $ac_subst_files
2274 eval ac_val=\$$ac_var
2276 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2278 $as_echo "$ac_var='\''$ac_val'\''"
2283 if test -s confdefs.h; then
2284 $as_echo "## ----------- ##
2291 test "$ac_signal" != 0 &&
2292 $as_echo "$as_me: caught signal $ac_signal"
2293 $as_echo "$as_me: exit $exit_status"
2295 rm -f core *.core core.conftest.* &&
2296 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2299 for ac_signal in 1 2 13 15; do
2300 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2304 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2305 rm -f -r conftest* confdefs.h
2307 $as_echo "/* confdefs.h */" > confdefs.h
2309 # Predefined preprocessor variables.
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_NAME "$PACKAGE_NAME"
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2323 cat >>confdefs.h <<_ACEOF
2324 #define PACKAGE_STRING "$PACKAGE_STRING"
2327 cat >>confdefs.h <<_ACEOF
2328 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2331 cat >>confdefs.h <<_ACEOF
2332 #define PACKAGE_URL "$PACKAGE_URL"
2336 # Let the site file select an alternate cache file if it wants to.
2337 # Prefer an explicitly selected file to automatically selected ones.
2340 if test -n "$CONFIG_SITE"; then
2341 # We do not want a PATH search for config.site.
2342 case $CONFIG_SITE in #((
2343 -*) ac_site_file1=./$CONFIG_SITE;;
2344 */*) ac_site_file1=$CONFIG_SITE;;
2345 *) ac_site_file1=./$CONFIG_SITE;;
2347 elif test "x$prefix" != xNONE; then
2348 ac_site_file1=$prefix/share/config.site
2349 ac_site_file2=$prefix/etc/config.site
2351 ac_site_file1=$ac_default_prefix/share/config.site
2352 ac_site_file2=$ac_default_prefix/etc/config.site
2354 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2356 test "x$ac_site_file" = xNONE && continue
2357 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2359 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2360 sed 's/^/| /' "$ac_site_file" >&5
2362 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2364 as_fn_error $? "failed to load site script $ac_site_file
2365 See \`config.log' for more details" "$LINENO" 5; }
2369 if test -r "$cache_file"; then
2370 # Some versions of bash will fail to source /dev/null (special files
2371 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2372 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2374 $as_echo "$as_me: loading cache $cache_file" >&6;}
2376 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2377 *) . "./$cache_file";;
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2382 $as_echo "$as_me: creating cache $cache_file" >&6;}
2386 # Check that the precious variables saved in the cache have kept the same
2388 ac_cache_corrupted=false
2389 for ac_var in $ac_precious_vars; do
2390 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2391 eval ac_new_set=\$ac_env_${ac_var}_set
2392 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2393 eval ac_new_val=\$ac_env_${ac_var}_value
2394 case $ac_old_set,$ac_new_set in
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2397 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2398 ac_cache_corrupted=: ;;
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2401 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2402 ac_cache_corrupted=: ;;
2405 if test "x$ac_old_val" != "x$ac_new_val"; then
2406 # differences in whitespace do not lead to failure.
2407 ac_old_val_w=`echo x $ac_old_val`
2408 ac_new_val_w=`echo x $ac_new_val`
2409 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2411 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2412 ac_cache_corrupted=:
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2415 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2416 eval $ac_var=\$ac_old_val
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2419 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2421 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2424 # Pass precious variables to config.status.
2425 if test "$ac_new_set" = set; then
2427 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2428 *) ac_arg=$ac_var=$ac_new_val ;;
2430 case " $ac_configure_args " in
2431 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2432 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2436 if $ac_cache_corrupted; then
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2440 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2441 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2443 ## -------------------- ##
2444 ## Main body of script. ##
2445 ## -------------------- ##
2448 ac_cpp='$CPP $CPPFLAGS'
2449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2456 # Needed to stop autoconf from looking for files in parent directories.
2458 for ac_dir in . "$srcdir"/.; do
2459 if test -f "$ac_dir/install-sh"; then
2461 ac_install_sh="$ac_aux_dir/install-sh -c"
2463 elif test -f "$ac_dir/install.sh"; then
2465 ac_install_sh="$ac_aux_dir/install.sh -c"
2467 elif test -f "$ac_dir/shtool"; then
2469 ac_install_sh="$ac_aux_dir/shtool install -c"
2473 if test -z "$ac_aux_dir"; then
2474 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2477 # These three variables are undocumented and unsupported,
2478 # and are intended to be withdrawn in a future Autoconf release.
2479 # They can cause serious problems if a builder's source tree is in a directory
2480 # whose full name contains unusual characters.
2481 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2482 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2483 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2487 ac_config_headers="$ac_config_headers config.h"
2496 MAJOR_VERSION=`echo $PACKAGE_VERSION | sed 's/^\([^.]*\)\..*/\1/'`
2497 MINOR_VERSION=`echo $PACKAGE_VERSION | sed 's/^[^.]*\.\([0-9]*\).*/\1/'`
2501 # Make sure we can run config.sub.
2502 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2503 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2506 $as_echo_n "checking build system type... " >&6; }
2507 if ${ac_cv_build+:} false; then :
2508 $as_echo_n "(cached) " >&6
2510 ac_build_alias=$build_alias
2511 test "x$ac_build_alias" = x &&
2512 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2513 test "x$ac_build_alias" = x &&
2514 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2515 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2516 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2520 $as_echo "$ac_cv_build" >&6; }
2521 case $ac_cv_build in
2523 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2526 ac_save_IFS=$IFS; IFS='-'
2532 # Remember, the first character of IFS is used to create $*,
2533 # except with old shells:
2536 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2540 $as_echo_n "checking host system type... " >&6; }
2541 if ${ac_cv_host+:} false; then :
2542 $as_echo_n "(cached) " >&6
2544 if test "x$host_alias" = x; then
2545 ac_cv_host=$ac_cv_build
2547 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2548 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2553 $as_echo "$ac_cv_host" >&6; }
2556 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2559 ac_save_IFS=$IFS; IFS='-'
2565 # Remember, the first character of IFS is used to create $*,
2566 # except with old shells:
2569 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2573 # Command line options
2575 # Check whether --with-include-path was given.
2576 if test "${with_include_path+set}" = set; then :
2577 withval=$with_include_path;
2579 with_include_path=''
2583 if test x$with_include_path != x ; then
2584 CPPFLAGS="$CPPFLAGS -I`echo $with_include_path | sed 's/:/ -I/g'`"
2588 # Check whether --with-lib-path was given.
2589 if test "${with_lib_path+set}" = set; then :
2590 withval=$with_lib_path;
2596 if test x$with_lib_path != x ; then
2597 LDFLAGS="$LDFLAGS -L`echo $with_lib_path | sed 's/:/ -L/g'`"
2600 # Check whether --enable-public-key was given.
2601 if test "${enable_public_key+set}" = set; then :
2602 enableval=$enable_public_key;
2604 enable_public_key=yes
2608 # Check whether --enable-assembler was given.
2609 if test "${enable_assembler+set}" = set; then :
2610 enableval=$enable_assembler;
2612 enable_assembler=yes
2616 # Check whether --enable-static was given.
2617 if test "${enable_static+set}" = set; then :
2618 enableval=$enable_static;
2624 # Check whether --enable-shared was given.
2625 if test "${enable_shared+set}" = set; then :
2626 enableval=$enable_shared;
2632 # Check whether --enable-pic was given.
2633 if test "${enable_pic+set}" = set; then :
2634 enableval=$enable_pic;
2640 # Check whether --enable-openssl was given.
2641 if test "${enable_openssl+set}" = set; then :
2642 enableval=$enable_openssl;
2648 # Check whether --enable-gcov was given.
2649 if test "${enable_gcov+set}" = set; then :
2650 enableval=$enable_gcov;
2656 # Check whether --enable-documentation was given.
2657 if test "${enable_documentation+set}" = set; then :
2658 enableval=$enable_documentation;
2660 enable_documentation=auto
2664 # Check whether --enable-fat was given.
2665 if test "${enable_fat+set}" = set; then :
2666 enableval=$enable_fat;
2672 # Check whether --enable-arm-neon was given.
2673 if test "${enable_arm_neon+set}" = set; then :
2674 enableval=$enable_arm_neon;
2676 enable_arm_neon=auto
2680 # Check whether --enable-x86-aesni was given.
2681 if test "${enable_x86_aesni+set}" = set; then :
2682 enableval=$enable_x86_aesni;
2688 # Check whether --enable-mini-gmp was given.
2689 if test "${enable_mini_gmp+set}" = set; then :
2690 enableval=$enable_mini_gmp;
2696 if test "x$enable_mini_gmp" = xyes ; then
2697 NETTLE_USE_MINI_GMP=1
2698 HOGWEED_EXTRA_SYMBOLS="mpz_*;gmp_*;mpn_*;"
2700 NETTLE_USE_MINI_GMP=0
2701 HOGWEED_EXTRA_SYMBOLS=""
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -R flag" >&5
2707 $as_echo_n "checking for -R flag... " >&6; }
2710 osf1*) RPATHFLAG="-rpath " ;;
2711 irix6.*|irix5.*) RPATHFLAG="-rpath " ;;
2713 if test "$TCC" = "yes"; then
2714 # tcc doesn't know about -R
2720 linux*|freebsd*) RPATHFLAG="-Wl,-rpath," ;;
2724 if test x$RPATHFLAG = x ; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
2726 $as_echo "none" >&6; }
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $RPATHFLAG" >&5
2729 $as_echo "using $RPATHFLAG" >&6; }
2732 RPATH_CANDIDATE_REAL_DIRS=''
2733 RPATH_CANDIDATE_DIRS=''
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Searching for libraries" >&5
2736 $as_echo "Searching for libraries" >&6; }
2738 for d in `echo $with_lib_path | sed 's/:/ /g'` \
2739 `echo $exec_prefix | sed "s@^NONE@$prefix/lib@g" | sed "s@^NONE@$ac_default_prefix/lib@g"` \
2740 /usr/local/lib /sw/local/lib /sw/lib \
2741 /usr/gnu/lib /opt/gnu/lib /sw/gnu/lib /usr/freeware/lib /usr/pkg/lib ; do
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $d" >&5
2743 $as_echo_n "checking $d... " >&6; }
2745 if test -d "$d/." ; then
2746 ac_real_dir=`cd $d && pwd`
2747 if test -n "$ac_real_dir" ; then
2749 for old in RPATH_CANDIDATE_REAL_DIRS ; do
2751 if test x$ac_real_dir = x$old ; then
2756 if test $ac_found = yes ; then
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: already added" >&5
2758 $as_echo "already added" >&6; }
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: added" >&5
2761 $as_echo "added" >&6; }
2762 # LDFLAGS="$LDFLAGS -L $d"
2763 RPATH_CANDIDATE_REAL_DIRS="$ac_real_dir $RPATH_CANDIDATE_REAL_DIRS"
2764 RPATH_CANDIDATE_DIRS="$d $RPATH_CANDIDATE_DIRS"
2768 if test $ac_exists = no ; then
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
2770 $as_echo "not found" >&6; }
2776 # Checks for programs.
2778 ac_cpp='$CPP $CPPFLAGS'
2779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2782 if test -n "$ac_tool_prefix"; then
2783 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2784 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786 $as_echo_n "checking for $ac_word... " >&6; }
2787 if ${ac_cv_prog_CC+:} false; then :
2788 $as_echo_n "(cached) " >&6
2790 if test -n "$CC"; then
2791 ac_cv_prog_CC="$CC" # Let the user override the test.
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2800 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 if test -n "$CC"; then
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2813 $as_echo "$CC" >&6; }
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816 $as_echo "no" >&6; }
2821 if test -z "$ac_cv_prog_CC"; then
2823 # Extract the first word of "gcc", so it can be a program name with args.
2824 set dummy gcc; ac_word=$2
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2826 $as_echo_n "checking for $ac_word... " >&6; }
2827 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2828 $as_echo_n "(cached) " >&6
2830 if test -n "$ac_ct_CC"; then
2831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2840 ac_cv_prog_ac_ct_CC="gcc"
2841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2851 if test -n "$ac_ct_CC"; then
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2853 $as_echo "$ac_ct_CC" >&6; }
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856 $as_echo "no" >&6; }
2859 if test "x$ac_ct_CC" = x; then
2862 case $cross_compiling:$ac_tool_warned in
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2866 ac_tool_warned=yes ;;
2874 if test -z "$CC"; then
2875 if test -n "$ac_tool_prefix"; then
2876 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2877 set dummy ${ac_tool_prefix}cc; ac_word=$2
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879 $as_echo_n "checking for $ac_word... " >&6; }
2880 if ${ac_cv_prog_CC+:} false; then :
2881 $as_echo_n "(cached) " >&6
2883 if test -n "$CC"; then
2884 ac_cv_prog_CC="$CC" # Let the user override the test.
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 test -z "$as_dir" && as_dir=.
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2893 ac_cv_prog_CC="${ac_tool_prefix}cc"
2894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 if test -n "$CC"; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2906 $as_echo "$CC" >&6; }
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 $as_echo "no" >&6; }
2915 if test -z "$CC"; then
2916 # Extract the first word of "cc", so it can be a program name with args.
2917 set dummy cc; ac_word=$2
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919 $as_echo_n "checking for $ac_word... " >&6; }
2920 if ${ac_cv_prog_CC+:} false; then :
2921 $as_echo_n "(cached) " >&6
2923 if test -n "$CC"; then
2924 ac_cv_prog_CC="$CC" # Let the user override the test.
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 test -z "$as_dir" && as_dir=.
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2934 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2935 ac_prog_rejected=yes
2939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 if test $ac_prog_rejected = yes; then
2947 # We found a bogon in the path, so make sure we never use it.
2948 set dummy $ac_cv_prog_CC
2950 if test $# != 0; then
2951 # We chose a different compiler from the bogus one.
2952 # However, it has the same basename, so the bogon will be chosen
2953 # first if we set CC to just the basename; use the full file name.
2955 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2961 if test -n "$CC"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2963 $as_echo "$CC" >&6; }
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2971 if test -z "$CC"; then
2972 if test -n "$ac_tool_prefix"; then
2973 for ac_prog in cl.exe
2975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978 $as_echo_n "checking for $ac_word... " >&6; }
2979 if ${ac_cv_prog_CC+:} false; then :
2980 $as_echo_n "(cached) " >&6
2982 if test -n "$CC"; then
2983 ac_cv_prog_CC="$CC" # Let the user override the test.
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 test -z "$as_dir" && as_dir=.
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2992 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 if test -n "$CC"; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3005 $as_echo "$CC" >&6; }
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008 $as_echo "no" >&6; }
3012 test -n "$CC" && break
3015 if test -z "$CC"; then
3017 for ac_prog in cl.exe
3019 # Extract the first word of "$ac_prog", so it can be a program name with args.
3020 set dummy $ac_prog; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3024 $as_echo_n "(cached) " >&6
3026 if test -n "$ac_ct_CC"; then
3027 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3036 ac_cv_prog_ac_ct_CC="$ac_prog"
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3047 if test -n "$ac_ct_CC"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3049 $as_echo "$ac_ct_CC" >&6; }
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3056 test -n "$ac_ct_CC" && break
3059 if test "x$ac_ct_CC" = x; then
3062 case $cross_compiling:$ac_tool_warned in
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3066 ac_tool_warned=yes ;;
3075 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077 as_fn_error $? "no acceptable C compiler found in \$PATH
3078 See \`config.log' for more details" "$LINENO" 5; }
3080 # Provide some information about the compiler.
3081 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3084 for ac_option in --version -v -V -qversion; do
3085 { { ac_try="$ac_compiler $ac_option >&5"
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3091 $as_echo "$ac_try_echo"; } >&5
3092 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3094 if test -s conftest.err; then
3096 ... rest of stderr output deleted ...
3097 10q' conftest.err >conftest.er1
3098 cat conftest.er1 >&5
3100 rm -f conftest.er1 conftest.err
3101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3102 test $ac_status = 0; }
3105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106 /* end confdefs.h. */
3116 ac_clean_files_save=$ac_clean_files
3117 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3118 # Try to create an executable without -o first, disregard a.out.
3119 # It will help us diagnose broken compilers, and finding out an intuition
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3122 $as_echo_n "checking whether the C compiler works... " >&6; }
3123 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3125 # The possible output files:
3126 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3129 for ac_file in $ac_files
3132 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3133 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3138 if { { ac_try="$ac_link_default"
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144 $as_echo "$ac_try_echo"; } >&5
3145 (eval "$ac_link_default") 2>&5
3147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3148 test $ac_status = 0; }; then :
3149 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3150 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3151 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3152 # so that the user can short-circuit this test for compilers unknown to
3154 for ac_file in $ac_files ''
3156 test -f "$ac_file" || continue
3158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3161 # We found the default executable, but exeext='' is most
3165 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3167 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3169 # We set ac_cv_exeext here because the later test for it is not
3170 # safe: cross compilers may not add the suffix if given an `-o'
3171 # argument, so we may need to know it at that point already.
3172 # Even if this section looks crufty: it has the advantage of
3179 test "$ac_cv_exeext" = no && ac_cv_exeext=
3184 if test -z "$ac_file"; then :
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186 $as_echo "no" >&6; }
3187 $as_echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192 as_fn_error 77 "C compiler cannot create executables
3193 See \`config.log' for more details" "$LINENO" 5; }
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3196 $as_echo "yes" >&6; }
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3199 $as_echo_n "checking for C compiler default output file name... " >&6; }
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3201 $as_echo "$ac_file" >&6; }
3202 ac_exeext=$ac_cv_exeext
3204 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3205 ac_clean_files=$ac_clean_files_save
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3207 $as_echo_n "checking for suffix of executables... " >&6; }
3208 if { { ac_try="$ac_link"
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3214 $as_echo "$ac_try_echo"; } >&5
3215 (eval "$ac_link") 2>&5
3217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3218 test $ac_status = 0; }; then :
3219 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3220 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3221 # work properly (i.e., refer to `conftest.exe'), while it won't with
3223 for ac_file in conftest.exe conftest conftest.*; do
3224 test -f "$ac_file" || continue
3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3227 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3235 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3236 See \`config.log' for more details" "$LINENO" 5; }
3238 rm -f conftest conftest$ac_cv_exeext
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3240 $as_echo "$ac_cv_exeext" >&6; }
3242 rm -f conftest.$ac_ext
3243 EXEEXT=$ac_cv_exeext
3245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246 /* end confdefs.h. */
3251 FILE *f = fopen ("conftest.out", "w");
3252 return ferror (f) || fclose (f) != 0;
3258 ac_clean_files="$ac_clean_files conftest.out"
3259 # Check that the compiler produces executables we can run. If not, either
3260 # the compiler is broken, or we cross compile.
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3262 $as_echo_n "checking whether we are cross compiling... " >&6; }
3263 if test "$cross_compiling" != yes; then
3264 { { ac_try="$ac_link"
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270 $as_echo "$ac_try_echo"; } >&5
3271 (eval "$ac_link") 2>&5
3273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274 test $ac_status = 0; }
3275 if { ac_try='./conftest$ac_cv_exeext'
3276 { { case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281 $as_echo "$ac_try_echo"; } >&5
3282 (eval "$ac_try") 2>&5
3284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285 test $ac_status = 0; }; }; then
3288 if test "$cross_compiling" = maybe; then
3291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3293 as_fn_error $? "cannot run C compiled programs.
3294 If you meant to cross compile, use \`--host'.
3295 See \`config.log' for more details" "$LINENO" 5; }
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3300 $as_echo "$cross_compiling" >&6; }
3302 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3303 ac_clean_files=$ac_clean_files_save
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3305 $as_echo_n "checking for suffix of object files... " >&6; }
3306 if ${ac_cv_objext+:} false; then :
3307 $as_echo_n "(cached) " >&6
3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310 /* end confdefs.h. */
3320 rm -f conftest.o conftest.obj
3321 if { { ac_try="$ac_compile"
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327 $as_echo "$ac_try_echo"; } >&5
3328 (eval "$ac_compile") 2>&5
3330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3331 test $ac_status = 0; }; then :
3332 for ac_file in conftest.o conftest.obj conftest.*; do
3333 test -f "$ac_file" || continue;
3335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3336 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3341 $as_echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3346 as_fn_error $? "cannot compute suffix of object files: cannot compile
3347 See \`config.log' for more details" "$LINENO" 5; }
3349 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3352 $as_echo "$ac_cv_objext" >&6; }
3353 OBJEXT=$ac_cv_objext
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3356 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3357 if ${ac_cv_c_compiler_gnu+:} false; then :
3358 $as_echo_n "(cached) " >&6
3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h. */
3374 if ac_fn_c_try_compile "$LINENO"; then :
3379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3384 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3385 if test $ac_compiler_gnu = yes; then
3390 ac_test_CFLAGS=${CFLAGS+set}
3391 ac_save_CFLAGS=$CFLAGS
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3393 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3394 if ${ac_cv_prog_cc_g+:} false; then :
3395 $as_echo_n "(cached) " >&6
3397 ac_save_c_werror_flag=$ac_c_werror_flag
3398 ac_c_werror_flag=yes
3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402 /* end confdefs.h. */
3412 if ac_fn_c_try_compile "$LINENO"; then :
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3427 if ac_fn_c_try_compile "$LINENO"; then :
3430 ac_c_werror_flag=$ac_save_c_werror_flag
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3443 if ac_fn_c_try_compile "$LINENO"; then :
3446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3451 ac_c_werror_flag=$ac_save_c_werror_flag
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3454 $as_echo "$ac_cv_prog_cc_g" >&6; }
3455 if test "$ac_test_CFLAGS" = set; then
3456 CFLAGS=$ac_save_CFLAGS
3457 elif test $ac_cv_prog_cc_g = yes; then
3458 if test "$GCC" = yes; then
3464 if test "$GCC" = yes; then
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3471 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3472 if ${ac_cv_prog_cc_c89+:} false; then :
3473 $as_echo_n "(cached) " >&6
3475 ac_cv_prog_cc_c89=no
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3482 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3483 struct buf { int x; };
3484 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3485 static char *e (p, i)
3491 static char *f (char * (*g) (char **, int), char **p, ...)
3496 s = g (p, va_arg (v,int));
3501 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3502 function prototypes and stuff, but not '\xHH' hex character constants.
3503 These don't provoke an error unfortunately, instead are silently treated
3504 as 'x'. The following induces an error, until -std is added to get
3505 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3506 array size at least. It's necessary to write '\x00'==0 to get something
3507 that's true only with -std. */
3508 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3510 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3511 inside strings and character constants. */
3513 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3515 int test (int i, double x);
3516 struct s1 {int (*f) (int a);};
3517 struct s2 {int (*f) (double a);};
3518 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3524 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3529 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3530 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3532 CC="$ac_save_CC $ac_arg"
3533 if ac_fn_c_try_compile "$LINENO"; then :
3534 ac_cv_prog_cc_c89=$ac_arg
3536 rm -f core conftest.err conftest.$ac_objext
3537 test "x$ac_cv_prog_cc_c89" != "xno" && break
3539 rm -f conftest.$ac_ext
3544 case "x$ac_cv_prog_cc_c89" in
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3547 $as_echo "none needed" >&6; } ;;
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3550 $as_echo "unsupported" >&6; } ;;
3552 CC="$CC $ac_cv_prog_cc_c89"
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3554 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3556 if test "x$ac_cv_prog_cc_c89" != xno; then :
3561 ac_cpp='$CPP $CPPFLAGS'
3562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ifunc support" >&5
3569 $as_echo_n "checking for ifunc support... " >&6; }
3570 if ${nettle_cv_link_ifunc+:} false; then :
3571 $as_echo_n "(cached) " >&6
3575 # ac_fn_c_try_link LINENO
3576 # -----------------------
3577 # Try to link conftest.$ac_ext, and return whether this succeeded.
3580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3581 rm -f conftest.$ac_objext conftest$ac_exeext
3582 if { { ac_try="$ac_link"
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3588 $as_echo "$ac_try_echo"; } >&5
3589 (eval "$ac_link") 2>conftest.err
3591 if test -s conftest.err; then
3592 grep -v '^ *+' conftest.err >conftest.er1
3593 cat conftest.er1 >&5
3594 mv -f conftest.er1 conftest.err
3596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3597 test $ac_status = 0; } && {
3598 test -z "$ac_c_werror_flag" ||
3599 test ! -s conftest.err
3600 } && test -s conftest$ac_exeext && {
3601 test "$cross_compiling" = yes ||
3602 test -x conftest$ac_exeext
3606 $as_echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3611 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3612 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3613 # interfere with the next link command; also delete a directory that is
3614 # left behind by Apple's compiler. We do this before executing the actions.
3615 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3617 as_fn_set_status $ac_retval
3619 } # ac_fn_c_try_link
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3629 typedef void void_func (void);
3634 return (void_func *) foo_imp;
3637 int foo (int x) __attribute__ ((ifunc("foo_resolv")));
3650 if ac_fn_c_try_link "$LINENO"; then :
3651 nettle_cv_link_ifunc=yes
3653 nettle_cv_link_ifunc=no
3655 rm -f core conftest.err conftest.$ac_objext \
3656 conftest$ac_exeext conftest.$ac_ext
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_link_ifunc" >&5
3659 $as_echo "$nettle_cv_link_ifunc" >&6; }
3661 if test "x$nettle_cv_link_ifunc" = xyes ; then
3662 $as_echo "#define HAVE_LINK_IFUNC 1" >>confdefs.h
3667 # When $CC foo.c -o foo creates both foo and foo.exe, autoconf picks
3668 # up the foo.exe and sets exeext to .exe. That is correct for cygwin,
3669 # which has some kind of magic link from foo to foo.exe, but not for
3670 # rntcl. A better check for the cygwin case would check if the
3671 # contents of foo and foo.exe are equal; in the rntcl case, foo is a
3672 # sh script, and foo.exe is a windows executable.
3674 if test "x$CC" = xrntcl ; then
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with rntcl; clearing EXEEXT and disabling assembler" >&5
3676 $as_echo "$as_me: Compiling with rntcl; clearing EXEEXT and disabling assembler" >&6;}
3683 # Used by the testsuite only
3685 ac_cpp='$CXXCPP $CPPFLAGS'
3686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3689 if test -z "$CXX"; then
3690 if test -n "$CCC"; then
3693 if test -n "$ac_tool_prefix"; then
3694 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3697 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3699 $as_echo_n "checking for $ac_word... " >&6; }
3700 if ${ac_cv_prog_CXX+:} false; then :
3701 $as_echo_n "(cached) " >&6
3703 if test -n "$CXX"; then
3704 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 test -z "$as_dir" && as_dir=.
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3713 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3724 if test -n "$CXX"; then
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3726 $as_echo "$CXX" >&6; }
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729 $as_echo "no" >&6; }
3733 test -n "$CXX" && break
3736 if test -z "$CXX"; then
3738 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3740 # Extract the first word of "$ac_prog", so it can be a program name with args.
3741 set dummy $ac_prog; ac_word=$2
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743 $as_echo_n "checking for $ac_word... " >&6; }
3744 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3745 $as_echo_n "(cached) " >&6
3747 if test -n "$ac_ct_CXX"; then
3748 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_prog_ac_ct_CXX="$ac_prog"
3758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3767 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3768 if test -n "$ac_ct_CXX"; then
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3770 $as_echo "$ac_ct_CXX" >&6; }
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3777 test -n "$ac_ct_CXX" && break
3780 if test "x$ac_ct_CXX" = x; then
3783 case $cross_compiling:$ac_tool_warned in
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3787 ac_tool_warned=yes ;;
3795 # Provide some information about the compiler.
3796 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3799 for ac_option in --version -v -V -qversion; do
3800 { { ac_try="$ac_compiler $ac_option >&5"
3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3806 $as_echo "$ac_try_echo"; } >&5
3807 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3809 if test -s conftest.err; then
3811 ... rest of stderr output deleted ...
3812 10q' conftest.err >conftest.er1
3813 cat conftest.er1 >&5
3815 rm -f conftest.er1 conftest.err
3816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817 test $ac_status = 0; }
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3821 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3822 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3823 $as_echo_n "(cached) " >&6
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3839 if ac_fn_cxx_try_compile "$LINENO"; then :
3844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3845 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3849 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3850 if test $ac_compiler_gnu = yes; then
3855 ac_test_CXXFLAGS=${CXXFLAGS+set}
3856 ac_save_CXXFLAGS=$CXXFLAGS
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3858 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3859 if ${ac_cv_prog_cxx_g+:} false; then :
3860 $as_echo_n "(cached) " >&6
3862 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3863 ac_cxx_werror_flag=yes
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3877 if ac_fn_cxx_try_compile "$LINENO"; then :
3878 ac_cv_prog_cxx_g=yes
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3892 if ac_fn_cxx_try_compile "$LINENO"; then :
3895 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3908 if ac_fn_cxx_try_compile "$LINENO"; then :
3909 ac_cv_prog_cxx_g=yes
3911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3919 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3920 if test "$ac_test_CXXFLAGS" = set; then
3921 CXXFLAGS=$ac_save_CXXFLAGS
3922 elif test $ac_cv_prog_cxx_g = yes; then
3923 if test "$GXX" = yes; then
3929 if test "$GXX" = yes; then
3936 ac_cpp='$CPP $CPPFLAGS'
3937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3943 ac_cpp='$CXXCPP $CPPFLAGS'
3944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950 /* end confdefs.h. */
3960 if ac_fn_cxx_try_compile "$LINENO"; then :
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3968 ac_cpp='$CPP $CPPFLAGS'
3969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3975 # Check whether --enable-ld-version-script was given.
3976 if test "${enable_ld_version_script+set}" = set; then :
3977 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
3980 if test -z "$have_ld_version_script"; then
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
3982 $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
3983 save_LDFLAGS="$LDFLAGS"
3984 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
3985 cat > conftest.map <<EOF
3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h. */
3999 if ac_fn_c_try_link "$LINENO"; then :
4000 accepts_syntax_errors=yes
4002 accepts_syntax_errors=no
4004 rm -f core conftest.err conftest.$ac_objext \
4005 conftest$ac_exeext conftest.$ac_ext
4006 if test "$accepts_syntax_errors" = no; then
4007 cat > conftest.map <<EOF
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4027 if ac_fn_c_try_link "$LINENO"; then :
4028 have_ld_version_script=yes
4030 have_ld_version_script=no
4032 rm -f core conftest.err conftest.$ac_objext \
4033 conftest$ac_exeext conftest.$ac_ext
4035 have_ld_version_script=no
4038 LDFLAGS="$save_LDFLAGS"
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
4040 $as_echo "$have_ld_version_script" >&6; }
4042 if test "$have_ld_version_script" = "yes";then
4043 EXTRA_LINKER_FLAGS="-Wl,--version-script=libnettle.map"
4045 EXTRA_HOGWEED_LINKER_FLAGS="-Wl,--version-script=libhogweed.map"
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4051 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4053 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4054 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4055 $as_echo_n "(cached) " >&6
4057 cat >conftest.make <<\_ACEOF
4060 @echo '@@@%%%=$(MAKE)=@@@%%%'
4062 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4063 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4065 eval ac_cv_prog_make_${ac_make}_set=yes;;
4067 eval ac_cv_prog_make_${ac_make}_set=no;;
4071 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4073 $as_echo "yes" >&6; }
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077 $as_echo "no" >&6; }
4078 SET_MAKE="MAKE=${MAKE-make}"
4081 if test -n "$ac_tool_prefix"; then
4082 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4083 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4085 $as_echo_n "checking for $ac_word... " >&6; }
4086 if ${ac_cv_prog_RANLIB+:} false; then :
4087 $as_echo_n "(cached) " >&6
4089 if test -n "$RANLIB"; then
4090 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 test -z "$as_dir" && as_dir=.
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4109 RANLIB=$ac_cv_prog_RANLIB
4110 if test -n "$RANLIB"; then
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4112 $as_echo "$RANLIB" >&6; }
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4115 $as_echo "no" >&6; }
4120 if test -z "$ac_cv_prog_RANLIB"; then
4121 ac_ct_RANLIB=$RANLIB
4122 # Extract the first word of "ranlib", so it can be a program name with args.
4123 set dummy ranlib; ac_word=$2
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4125 $as_echo_n "checking for $ac_word... " >&6; }
4126 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4127 $as_echo_n "(cached) " >&6
4129 if test -n "$ac_ct_RANLIB"; then
4130 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 test -z "$as_dir" && as_dir=.
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4139 ac_cv_prog_ac_ct_RANLIB="ranlib"
4140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4149 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4150 if test -n "$ac_ct_RANLIB"; then
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4152 $as_echo "$ac_ct_RANLIB" >&6; }
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4155 $as_echo "no" >&6; }
4158 if test "x$ac_ct_RANLIB" = x; then
4161 case $cross_compiling:$ac_tool_warned in
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4165 ac_tool_warned=yes ;;
4167 RANLIB=$ac_ct_RANLIB
4170 RANLIB="$ac_cv_prog_RANLIB"
4173 if test -n "$ac_tool_prefix"; then
4174 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4175 set dummy ${ac_tool_prefix}nm; ac_word=$2
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177 $as_echo_n "checking for $ac_word... " >&6; }
4178 if ${ac_cv_prog_NM+:} false; then :
4179 $as_echo_n "(cached) " >&6
4181 if test -n "$NM"; then
4182 ac_cv_prog_NM="$NM" # Let the user override the test.
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 test -z "$as_dir" && as_dir=.
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4191 ac_cv_prog_NM="${ac_tool_prefix}nm"
4192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4202 if test -n "$NM"; then
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
4204 $as_echo "$NM" >&6; }
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207 $as_echo "no" >&6; }
4212 if test -z "$ac_cv_prog_NM"; then
4214 # Extract the first word of "nm", so it can be a program name with args.
4215 set dummy nm; ac_word=$2
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4217 $as_echo_n "checking for $ac_word... " >&6; }
4218 if ${ac_cv_prog_ac_ct_NM+:} false; then :
4219 $as_echo_n "(cached) " >&6
4221 if test -n "$ac_ct_NM"; then
4222 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231 ac_cv_prog_ac_ct_NM="nm"
4232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4241 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4242 if test -n "$ac_ct_NM"; then
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
4244 $as_echo "$ac_ct_NM" >&6; }
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247 $as_echo "no" >&6; }
4250 if test "x$ac_ct_NM" = x; then
4253 case $cross_compiling:$ac_tool_warned in
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4257 ac_tool_warned=yes ;;
4265 # Used only for the GNU-stack configure test.
4266 if test -n "$ac_tool_prefix"; then
4267 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4268 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4270 $as_echo_n "checking for $ac_word... " >&6; }
4271 if ${ac_cv_prog_OBJDUMP+:} false; then :
4272 $as_echo_n "(cached) " >&6
4274 if test -n "$OBJDUMP"; then
4275 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4284 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4294 OBJDUMP=$ac_cv_prog_OBJDUMP
4295 if test -n "$OBJDUMP"; then
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4297 $as_echo "$OBJDUMP" >&6; }
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4300 $as_echo "no" >&6; }
4305 if test -z "$ac_cv_prog_OBJDUMP"; then
4306 ac_ct_OBJDUMP=$OBJDUMP
4307 # Extract the first word of "objdump", so it can be a program name with args.
4308 set dummy objdump; ac_word=$2
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4310 $as_echo_n "checking for $ac_word... " >&6; }
4311 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4312 $as_echo_n "(cached) " >&6
4314 if test -n "$ac_ct_OBJDUMP"; then
4315 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4324 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4335 if test -n "$ac_ct_OBJDUMP"; then
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4337 $as_echo "$ac_ct_OBJDUMP" >&6; }
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340 $as_echo "no" >&6; }
4343 if test "x$ac_ct_OBJDUMP" = x; then
4346 case $cross_compiling:$ac_tool_warned in
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4350 ac_tool_warned=yes ;;
4352 OBJDUMP=$ac_ct_OBJDUMP
4355 OBJDUMP="$ac_cv_prog_OBJDUMP"
4358 if test -n "$ac_tool_prefix"; then
4359 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4360 set dummy ${ac_tool_prefix}ar; ac_word=$2
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362 $as_echo_n "checking for $ac_word... " >&6; }
4363 if ${ac_cv_prog_AR+:} false; then :
4364 $as_echo_n "(cached) " >&6
4366 if test -n "$AR"; then
4367 ac_cv_prog_AR="$AR" # Let the user override the test.
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4376 ac_cv_prog_AR="${ac_tool_prefix}ar"
4377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4387 if test -n "$AR"; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4389 $as_echo "$AR" >&6; }
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392 $as_echo "no" >&6; }
4397 if test -z "$ac_cv_prog_AR"; then
4399 # Extract the first word of "ar", so it can be a program name with args.
4400 set dummy ar; ac_word=$2
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4402 $as_echo_n "checking for $ac_word... " >&6; }
4403 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4404 $as_echo_n "(cached) " >&6
4406 if test -n "$ac_ct_AR"; then
4407 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 test -z "$as_dir" && as_dir=.
4414 for ac_exec_ext in '' $ac_executable_extensions; do
4415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4416 ac_cv_prog_ac_ct_AR="ar"
4417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4427 if test -n "$ac_ct_AR"; then
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4429 $as_echo "$ac_ct_AR" >&6; }
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4432 $as_echo "no" >&6; }
4435 if test "x$ac_ct_AR" = x; then
4438 case $cross_compiling:$ac_tool_warned in
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4442 ac_tool_warned=yes ;;
4451 if test "x$ac_cv_prog_cc_stdc" = xno ; then
4452 as_fn_error $? "the C compiler doesn't handle ANSI-C" "$LINENO" 5 #'
4455 # Find a good install program. We prefer a C program (faster),
4456 # so one script is as good as another. But avoid the broken or
4457 # incompatible versions:
4458 # SysV /etc/install, /usr/sbin/install
4459 # SunOS /usr/etc/install
4460 # IRIX /sbin/install
4462 # AmigaOS /C/install, which installs bootblocks on floppy discs
4463 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4464 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4465 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4466 # OS/2's system install, which has a completely different semantic
4467 # ./install, which can be erroneously created by make from ./install.sh.
4468 # Reject install programs that cannot install multiple files.
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4470 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4471 if test -z "$INSTALL"; then
4472 if ${ac_cv_path_install+:} false; then :
4473 $as_echo_n "(cached) " >&6
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 test -z "$as_dir" && as_dir=.
4480 # Account for people who put trailing slashes in PATH elements.
4481 case $as_dir/ in #((
4482 ./ | .// | /[cC]/* | \
4483 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4484 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4487 # OSF1 and SCO ODT 3.0 have their own names for install.
4488 # Don't use installbsd from OSF since it installs stuff as root
4490 for ac_prog in ginstall scoinst install; do
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4493 if test $ac_prog = install &&
4494 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4495 # AIX install. It has an incompatible calling convention.
4497 elif test $ac_prog = install &&
4498 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4499 # program-specific install script used by HP pwplus--don't use.
4502 rm -rf conftest.one conftest.two conftest.dir
4503 echo one > conftest.one
4504 echo two > conftest.two
4506 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4507 test -s conftest.one && test -s conftest.two &&
4508 test -s conftest.dir/conftest.one &&
4509 test -s conftest.dir/conftest.two
4511 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4524 rm -rf conftest.one conftest.two conftest.dir
4527 if test "${ac_cv_path_install+set}" = set; then
4528 INSTALL=$ac_cv_path_install
4530 # As a last resort, use the slow shell script. Don't cache a
4531 # value for INSTALL within a source directory, because that will
4532 # break other packages using the cache if that directory is
4533 # removed, or if the value is a relative name.
4534 INSTALL=$ac_install_sh
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4538 $as_echo "$INSTALL" >&6; }
4540 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4541 # It thinks the first close brace ends the variable substitution.
4542 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4544 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4546 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4549 # According to the autoconf manual, needs install-sh from
4550 # autoconf-2.60 or automake-1.10 to avoid races.
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4552 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4553 if test -z "$MKDIR_P"; then
4554 if ${ac_cv_path_mkdir+:} false; then :
4555 $as_echo_n "(cached) " >&6
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4561 test -z "$as_dir" && as_dir=.
4562 for ac_prog in mkdir gmkdir; do
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4565 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4566 'mkdir (GNU coreutils) '* | \
4567 'mkdir (coreutils) '* | \
4568 'mkdir (fileutils) '4.1*)
4569 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4579 test -d ./--version && rmdir ./--version
4580 if test "${ac_cv_path_mkdir+set}" = set; then
4581 MKDIR_P="$ac_cv_path_mkdir -p"
4583 # As a last resort, use the slow shell script. Don't cache a
4584 # value for MKDIR_P within a source directory, because that will
4585 # break other packages using the cache if that directory is
4586 # removed, or if the value is a relative name.
4587 MKDIR_P="$ac_install_sh -d"
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4591 $as_echo "$MKDIR_P" >&6; }
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4595 $as_echo_n "checking whether ln -s works... " >&6; }
4597 if test "$LN_S" = "ln -s"; then
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4599 $as_echo "yes" >&6; }
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4602 $as_echo "no, using $LN_S" >&6; }
4606 # Compiler tests for the build system
4608 if test -n "$CC_FOR_BUILD"; then
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $CC_FOR_BUILD" >&5
4610 $as_echo_n "checking build system compiler $CC_FOR_BUILD... " >&6; }
4611 # remove anything that might look like compiler output to our "||" expression
4612 rm -f conftest* a.out b.out a.exe a_out.exe
4613 cat >conftest.c <<EOF
4620 gmp_compile="$CC_FOR_BUILD conftest.c"
4621 cc_for_build_works=no
4622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
4623 (eval $gmp_compile) 2>&5
4625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4626 test $ac_status = 0; }; then
4627 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
4628 cc_for_build_works=yes
4631 rm -f conftest* a.out b.out a.exe a_out.exe
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
4633 $as_echo "$cc_for_build_works" >&6; }
4634 if test "$cc_for_build_works" = yes; then
4637 as_fn_error $? "Specified CC_FOR_BUILD doesn't seem to work" "$LINENO" 5
4640 elif test -n "$HOST_CC"; then
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $HOST_CC" >&5
4642 $as_echo_n "checking build system compiler $HOST_CC... " >&6; }
4643 # remove anything that might look like compiler output to our "||" expression
4644 rm -f conftest* a.out b.out a.exe a_out.exe
4645 cat >conftest.c <<EOF
4652 gmp_compile="$HOST_CC conftest.c"
4653 cc_for_build_works=no
4654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
4655 (eval $gmp_compile) 2>&5
4657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4658 test $ac_status = 0; }; then
4659 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
4660 cc_for_build_works=yes
4663 rm -f conftest* a.out b.out a.exe a_out.exe
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
4665 $as_echo "$cc_for_build_works" >&6; }
4666 if test "$cc_for_build_works" = yes; then
4667 CC_FOR_BUILD=$HOST_CC
4669 as_fn_error $? "Specified HOST_CC doesn't seem to work" "$LINENO" 5
4673 if test $cross_compiling = no ; then
4676 for i in gcc cc c89 c99; do
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $i" >&5
4678 $as_echo_n "checking build system compiler $i... " >&6; }
4679 # remove anything that might look like compiler output to our "||" expression
4680 rm -f conftest* a.out b.out a.exe a_out.exe
4681 cat >conftest.c <<EOF
4688 gmp_compile="$i conftest.c"
4689 cc_for_build_works=no
4690 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
4691 (eval $gmp_compile) 2>&5
4693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4694 test $ac_status = 0; }; then
4695 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
4696 cc_for_build_works=yes
4699 rm -f conftest* a.out b.out a.exe a_out.exe
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
4701 $as_echo "$cc_for_build_works" >&6; }
4702 if test "$cc_for_build_works" = yes; then
4710 if test -z "$CC_FOR_BUILD"; then
4711 as_fn_error $? "Cannot find a build system compiler" "$LINENO" 5
4714 if test "$CC_FOR_BUILD" = gcc ; then
4715 CC_FOR_BUILD="$CC_FOR_BUILD -O"
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
4724 $as_echo_n "checking for build system executable suffix... " >&6; }
4725 if ${gmp_cv_prog_exeext_for_build+:} false; then :
4726 $as_echo_n "(cached) " >&6
4728 if test $cross_compiling = no ; then
4729 gmp_cv_prog_exeext_for_build="$EXEEXT"
4731 cat >conftest.c <<EOF
4738 for i in .exe ,ff8 ""; do
4739 gmp_compile="$CC_FOR_BUILD conftest.c -o conftest$i"
4740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
4741 (eval $gmp_compile) 2>&5
4743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4744 test $ac_status = 0; }; then
4745 if (./conftest) 2>&5; then
4746 gmp_cv_prog_exeext_for_build=$i
4752 if test "${gmp_cv_prog_exeext_for_build+set}" != set; then
4753 as_fn_error $? "Cannot determine executable suffix" "$LINENO" 5
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_prog_exeext_for_build" >&5
4759 $as_echo "$gmp_cv_prog_exeext_for_build" >&6; }
4760 EXEEXT_FOR_BUILD=$gmp_cv_prog_exeext_for_build
4764 # Check whether --enable-dependency_tracking was given.
4765 if test "${enable_dependency_tracking+set}" = set; then :
4766 enableval=$enable_dependency_tracking;
4768 enable_dependency_tracking=yes
4774 if test x$enable_dependency_tracking = xyes ; then
4775 if test x$GCC = xyes ; then
4776 gcc_version=`gcc --version | head -1`
4777 case "$gcc_version" in
4779 enable_dependency_tracking=no
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Dependency tracking disabled, gcc-3.x is needed" >&5
4781 $as_echo "$as_me: WARNING: Dependency tracking disabled, gcc-3.x is needed" >&2;}
4784 DEP_FLAGS='-MT $@ -MD -MP -MF $@.d'
4789 enable_dependency_tracking=no
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Dependency tracking disabled" >&5
4791 $as_echo "$as_me: WARNING: Dependency tracking disabled" >&2;}
4795 if test x$enable_dependency_tracking = xyes ; then
4796 DEP_INCLUDE='include '
4805 if test x$enable_dependency_tracking = xyes ; then
4806 # Since the makefiles use include to get the dependency files, we must
4807 # make sure that the files exist. We generate some more files than are
4810 ac_config_commands="$ac_config_commands dummy-dep-files"
4814 if test "x$enable_gcov" = "xyes"; then
4815 CFLAGS="$CFLAGS -ftest-coverage -fprofile-arcs"
4818 # Checks for typedefs, structures, and compiler characteristics.
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4820 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4821 if ${ac_cv_c_const+:} false; then :
4822 $as_echo_n "(cached) " >&6
4824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4825 /* end confdefs.h. */
4832 /* Ultrix mips cc rejects this sort of thing. */
4833 typedef int charset[2];
4834 const charset cs = { 0, 0 };
4835 /* SunOS 4.1.1 cc rejects this. */
4836 char const *const *pcpcc;
4838 /* NEC SVR4.0.2 mips cc rejects this. */
4839 struct point {int x, y;};
4840 static struct point const zero = {0,0};
4841 /* AIX XL C 1.02.0.0 rejects this.
4842 It does not let you subtract one const X* pointer from another in
4843 an arm of an if-expression whose if-part is not a constant
4845 const char *g = "string";
4846 pcpcc = &g + (g ? g-g : 0);
4847 /* HPUX 7.0 cc rejects these. */
4849 ppc = (char**) pcpcc;
4850 pcpcc = (char const *const *) ppc;
4851 { /* SCO 3.2v4 cc rejects this sort of thing. */
4854 char const *s = 0 ? (char *) 0 : (char const *) 0;
4859 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4861 const int *foo = &x[0];
4864 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4865 typedef const int *iptr;
4869 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4870 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4871 struct s { int j; const int *ap[3]; } bx;
4872 struct s *b = &bx; b->j = 5;
4874 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4878 return !cs[0] && !zero.x;
4885 if ac_fn_c_try_compile "$LINENO"; then :
4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4893 $as_echo "$ac_cv_c_const" >&6; }
4894 if test $ac_cv_c_const = no; then
4896 $as_echo "#define const /**/" >>confdefs.h
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4901 $as_echo_n "checking for inline... " >&6; }
4902 if ${ac_cv_c_inline+:} false; then :
4903 $as_echo_n "(cached) " >&6
4906 for ac_kw in inline __inline__ __inline; do
4907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908 /* end confdefs.h. */
4911 static $ac_kw foo_t static_foo () {return 0; }
4912 $ac_kw foo_t foo () {return 0; }
4916 if ac_fn_c_try_compile "$LINENO"; then :
4917 ac_cv_c_inline=$ac_kw
4919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4920 test "$ac_cv_c_inline" != no && break
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4925 $as_echo "$ac_cv_c_inline" >&6; }
4927 case $ac_cv_c_inline in
4930 case $ac_cv_c_inline in
4932 *) ac_val=$ac_cv_c_inline;;
4934 cat >>confdefs.h <<_ACEOF
4936 #define inline $ac_val
4943 ac_cpp='$CPP $CPPFLAGS'
4944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4948 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4949 # On Suns, sometimes $CPP names a directory.
4950 if test -n "$CPP" && test -d "$CPP"; then
4953 if test -z "$CPP"; then
4954 if ${ac_cv_prog_CPP+:} false; then :
4955 $as_echo_n "(cached) " >&6
4957 # Double quotes because CPP needs to be expanded
4958 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4961 for ac_c_preproc_warn_flag in '' yes
4963 # Use a header file that comes with gcc, so configuring glibc
4964 # with a fresh cross-compiler works.
4965 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4966 # <limits.h> exists even on freestanding compilers.
4967 # On the NeXT, cc -E runs the code through the compiler's parser,
4968 # not just through cpp. "Syntax error" is here to catch this case.
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4972 # include <limits.h>
4974 # include <assert.h>
4978 if ac_fn_c_try_cpp "$LINENO"; then :
4981 # Broken: fails on valid input.
4984 rm -f conftest.err conftest.i conftest.$ac_ext
4986 # OK, works on sane cases. Now check whether nonexistent headers
4987 # can be detected and how.
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4990 #include <ac_nonexistent.h>
4992 if ac_fn_c_try_cpp "$LINENO"; then :
4993 # Broken: success on invalid input.
4996 # Passes both tests.
5000 rm -f conftest.err conftest.i conftest.$ac_ext
5003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5004 rm -f conftest.i conftest.err conftest.$ac_ext
5005 if $ac_preproc_ok; then :
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5018 $as_echo "$CPP" >&6; }
5020 for ac_c_preproc_warn_flag in '' yes
5022 # Use a header file that comes with gcc, so configuring glibc
5023 # with a fresh cross-compiler works.
5024 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5025 # <limits.h> exists even on freestanding compilers.
5026 # On the NeXT, cc -E runs the code through the compiler's parser,
5027 # not just through cpp. "Syntax error" is here to catch this case.
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5031 # include <limits.h>
5033 # include <assert.h>
5037 if ac_fn_c_try_cpp "$LINENO"; then :
5040 # Broken: fails on valid input.
5043 rm -f conftest.err conftest.i conftest.$ac_ext
5045 # OK, works on sane cases. Now check whether nonexistent headers
5046 # can be detected and how.
5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h. */
5049 #include <ac_nonexistent.h>
5051 if ac_fn_c_try_cpp "$LINENO"; then :
5052 # Broken: success on invalid input.
5055 # Passes both tests.
5059 rm -f conftest.err conftest.i conftest.$ac_ext
5062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5063 rm -f conftest.i conftest.err conftest.$ac_ext
5064 if $ac_preproc_ok; then :
5067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5069 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5070 See \`config.log' for more details" "$LINENO" 5; }
5074 ac_cpp='$CPP $CPPFLAGS'
5075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5081 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5082 if ${ac_cv_path_GREP+:} false; then :
5083 $as_echo_n "(cached) " >&6
5085 if test -z "$GREP"; then
5086 ac_path_GREP_found=false
5087 # Loop through the user's path and test for each of PROGNAME-LIST
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5092 test -z "$as_dir" && as_dir=.
5093 for ac_prog in grep ggrep; do
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5096 as_fn_executable_p "$ac_path_GREP" || continue
5097 # Check for GNU ac_path_GREP and select it if it is found.
5098 # Check for GNU $ac_path_GREP
5099 case `"$ac_path_GREP" --version 2>&1` in
5101 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5104 $as_echo_n 0123456789 >"conftest.in"
5107 cat "conftest.in" "conftest.in" >"conftest.tmp"
5108 mv "conftest.tmp" "conftest.in"
5109 cp "conftest.in" "conftest.nl"
5110 $as_echo 'GREP' >> "conftest.nl"
5111 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5112 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5113 as_fn_arith $ac_count + 1 && ac_count=$as_val
5114 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5115 # Best one so far, save it but keep looking for a better one
5116 ac_cv_path_GREP="$ac_path_GREP"
5117 ac_path_GREP_max=$ac_count
5119 # 10*(2^10) chars as input seems more than enough
5120 test $ac_count -gt 10 && break
5122 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5125 $ac_path_GREP_found && break 3
5130 if test -z "$ac_cv_path_GREP"; then
5131 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5134 ac_cv_path_GREP=$GREP
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5139 $as_echo "$ac_cv_path_GREP" >&6; }
5140 GREP="$ac_cv_path_GREP"
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5144 $as_echo_n "checking for egrep... " >&6; }
5145 if ${ac_cv_path_EGREP+:} false; then :
5146 $as_echo_n "(cached) " >&6
5148 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5149 then ac_cv_path_EGREP="$GREP -E"
5151 if test -z "$EGREP"; then
5152 ac_path_EGREP_found=false
5153 # Loop through the user's path and test for each of PROGNAME-LIST
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5158 test -z "$as_dir" && as_dir=.
5159 for ac_prog in egrep; do
5160 for ac_exec_ext in '' $ac_executable_extensions; do
5161 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5162 as_fn_executable_p "$ac_path_EGREP" || continue
5163 # Check for GNU ac_path_EGREP and select it if it is found.
5164 # Check for GNU $ac_path_EGREP
5165 case `"$ac_path_EGREP" --version 2>&1` in
5167 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5170 $as_echo_n 0123456789 >"conftest.in"
5173 cat "conftest.in" "conftest.in" >"conftest.tmp"
5174 mv "conftest.tmp" "conftest.in"
5175 cp "conftest.in" "conftest.nl"
5176 $as_echo 'EGREP' >> "conftest.nl"
5177 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5178 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5179 as_fn_arith $ac_count + 1 && ac_count=$as_val
5180 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5181 # Best one so far, save it but keep looking for a better one
5182 ac_cv_path_EGREP="$ac_path_EGREP"
5183 ac_path_EGREP_max=$ac_count
5185 # 10*(2^10) chars as input seems more than enough
5186 test $ac_count -gt 10 && break
5188 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5191 $ac_path_EGREP_found && break 3
5196 if test -z "$ac_cv_path_EGREP"; then
5197 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5200 ac_cv_path_EGREP=$EGREP
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5206 $as_echo "$ac_cv_path_EGREP" >&6; }
5207 EGREP="$ac_cv_path_EGREP"
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5211 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5212 if ${ac_cv_type_uid_t+:} false; then :
5213 $as_echo_n "(cached) " >&6
5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h. */
5217 #include <sys/types.h>
5220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5221 $EGREP "uid_t" >/dev/null 2>&1; then :
5222 ac_cv_type_uid_t=yes
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5230 $as_echo "$ac_cv_type_uid_t" >&6; }
5231 if test $ac_cv_type_uid_t = no; then
5233 $as_echo "#define uid_t int" >>confdefs.h
5236 $as_echo "#define gid_t int" >>confdefs.h
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5241 $as_echo_n "checking for ANSI C header files... " >&6; }
5242 if ${ac_cv_header_stdc+:} false; then :
5243 $as_echo_n "(cached) " >&6
5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246 /* end confdefs.h. */
5260 if ac_fn_c_try_compile "$LINENO"; then :
5261 ac_cv_header_stdc=yes
5263 ac_cv_header_stdc=no
5265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5267 if test $ac_cv_header_stdc = yes; then
5268 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5275 $EGREP "memchr" >/dev/null 2>&1; then :
5278 ac_cv_header_stdc=no
5284 if test $ac_cv_header_stdc = yes; then
5285 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h. */
5291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5292 $EGREP "free" >/dev/null 2>&1; then :
5295 ac_cv_header_stdc=no
5301 if test $ac_cv_header_stdc = yes; then
5302 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5303 if test "$cross_compiling" = yes; then :
5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307 /* end confdefs.h. */
5310 #if ((' ' & 0x0FF) == 0x020)
5311 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5312 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5314 # define ISLOWER(c) \
5315 (('a' <= (c) && (c) <= 'i') \
5316 || ('j' <= (c) && (c) <= 'r') \
5317 || ('s' <= (c) && (c) <= 'z'))
5318 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5321 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5326 for (i = 0; i < 256; i++)
5327 if (XOR (islower (i), ISLOWER (i))
5328 || toupper (i) != TOUPPER (i))
5333 if ac_fn_c_try_run "$LINENO"; then :
5336 ac_cv_header_stdc=no
5338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5339 conftest.$ac_objext conftest.beam conftest.$ac_ext
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5345 $as_echo "$ac_cv_header_stdc" >&6; }
5346 if test $ac_cv_header_stdc = yes; then
5348 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5352 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5353 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5354 inttypes.h stdint.h unistd.h
5356 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5357 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5359 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5360 cat >>confdefs.h <<_ACEOF
5361 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5369 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5370 if test "x$ac_cv_type_size_t" = xyes; then :
5374 cat >>confdefs.h <<_ACEOF
5375 #define size_t unsigned int
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5381 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5382 if ${ac_cv_header_time+:} false; then :
5383 $as_echo_n "(cached) " >&6
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5387 #include <sys/types.h>
5388 #include <sys/time.h>
5394 if ((struct tm *) 0)
5400 if ac_fn_c_try_compile "$LINENO"; then :
5401 ac_cv_header_time=yes
5403 ac_cv_header_time=no
5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5408 $as_echo "$ac_cv_header_time" >&6; }
5409 if test $ac_cv_header_time = yes; then
5411 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5415 # The cast to long int works around a bug in the HP C Compiler
5416 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5417 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5418 # This bug is HP SR number 8606223364.
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5420 $as_echo_n "checking size of long... " >&6; }
5421 if ${ac_cv_sizeof_long+:} false; then :
5422 $as_echo_n "(cached) " >&6
5424 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5427 if test "$ac_cv_type_long" = yes; then
5428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5430 as_fn_error 77 "cannot compute sizeof (long)
5431 See \`config.log' for more details" "$LINENO" 5; }
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5439 $as_echo "$ac_cv_sizeof_long" >&6; }
5443 cat >>confdefs.h <<_ACEOF
5444 #define SIZEOF_LONG $ac_cv_sizeof_long
5448 # The cast to long int works around a bug in the HP C Compiler
5449 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5450 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5451 # This bug is HP SR number 8606223364.
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
5453 $as_echo_n "checking size of size_t... " >&6; }
5454 if ${ac_cv_sizeof_size_t+:} false; then :
5455 $as_echo_n "(cached) " >&6
5457 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
5460 if test "$ac_cv_type_size_t" = yes; then
5461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5463 as_fn_error 77 "cannot compute sizeof (size_t)
5464 See \`config.log' for more details" "$LINENO" 5; }
5466 ac_cv_sizeof_size_t=0
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
5472 $as_echo "$ac_cv_sizeof_size_t" >&6; }
5476 cat >>confdefs.h <<_ACEOF
5477 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
5482 for ac_header in openssl/blowfish.h openssl/des.h openssl/cast.h openssl/aes.h openssl/ecdsa.h
5484 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5485 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5486 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5487 cat >>confdefs.h <<_ACEOF
5488 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5499 # For use by the testsuite
5500 for ac_header in valgrind/memcheck.h
5502 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
5503 if test "x$ac_cv_header_valgrind_memcheck_h" = xyes; then :
5504 cat >>confdefs.h <<_ACEOF
5505 #define HAVE_VALGRIND_MEMCHECK_H 1
5512 for ac_header in dlfcn.h
5514 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5515 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5516 cat >>confdefs.h <<_ACEOF
5517 #define HAVE_DLFCN_H 1
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5525 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5526 if ${ac_cv_lib_dl_dlopen+:} false; then :
5527 $as_echo_n "(cached) " >&6
5529 ac_check_lib_save_LIBS=$LIBS
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5534 /* Override any GCC internal prototype to avoid an error.
5535 Use char because int might match the return type of a GCC
5536 builtin and then its argument prototype would still apply. */
5549 if ac_fn_c_try_link "$LINENO"; then :
5550 ac_cv_lib_dl_dlopen=yes
5552 ac_cv_lib_dl_dlopen=no
5554 rm -f core conftest.err conftest.$ac_objext \
5555 conftest$ac_exeext conftest.$ac_ext
5556 LIBS=$ac_check_lib_save_LIBS
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5559 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5560 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5562 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
5567 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5568 # for constant arguments. Useless!
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5570 $as_echo_n "checking for working alloca.h... " >&6; }
5571 if ${ac_cv_working_alloca_h+:} false; then :
5572 $as_echo_n "(cached) " >&6
5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575 /* end confdefs.h. */
5580 char *p = (char *) alloca (2 * sizeof (int));
5586 if ac_fn_c_try_link "$LINENO"; then :
5587 ac_cv_working_alloca_h=yes
5589 ac_cv_working_alloca_h=no
5591 rm -f core conftest.err conftest.$ac_objext \
5592 conftest$ac_exeext conftest.$ac_ext
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5595 $as_echo "$ac_cv_working_alloca_h" >&6; }
5596 if test $ac_cv_working_alloca_h = yes; then
5598 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5603 $as_echo_n "checking for alloca... " >&6; }
5604 if ${ac_cv_func_alloca_works+:} false; then :
5605 $as_echo_n "(cached) " >&6
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5610 # define alloca __builtin_alloca
5613 # include <malloc.h>
5614 # define alloca _alloca
5616 # ifdef HAVE_ALLOCA_H
5617 # include <alloca.h>
5622 # ifndef alloca /* predefined by HP cc +Olibcalls */
5623 void *alloca (size_t);
5633 char *p = (char *) alloca (1);
5639 if ac_fn_c_try_link "$LINENO"; then :
5640 ac_cv_func_alloca_works=yes
5642 ac_cv_func_alloca_works=no
5644 rm -f core conftest.err conftest.$ac_objext \
5645 conftest$ac_exeext conftest.$ac_ext
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5648 $as_echo "$ac_cv_func_alloca_works" >&6; }
5650 if test $ac_cv_func_alloca_works = yes; then
5652 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5655 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5656 # that cause trouble. Some versions do not even contain alloca or
5657 # contain a buggy version. If you still want to use their alloca,
5658 # use ar to extract alloca.o from them instead of compiling alloca.c.
5660 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5662 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5666 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5667 if ${ac_cv_os_cray+:} false; then :
5668 $as_echo_n "(cached) " >&6
5670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671 /* end confdefs.h. */
5672 #if defined CRAY && ! defined CRAY2
5679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5680 $EGREP "webecray" >/dev/null 2>&1; then :
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5689 $as_echo "$ac_cv_os_cray" >&6; }
5690 if test $ac_cv_os_cray = yes; then
5691 for ac_func in _getb67 GETB67 getb67; do
5692 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5693 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5694 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5696 cat >>confdefs.h <<_ACEOF
5697 #define CRAY_STACKSEG_END $ac_func
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5707 $as_echo_n "checking stack direction for C alloca... " >&6; }
5708 if ${ac_cv_c_stack_direction+:} false; then :
5709 $as_echo_n "(cached) " >&6
5711 if test "$cross_compiling" = yes; then :
5712 ac_cv_c_stack_direction=0
5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5715 /* end confdefs.h. */
5716 $ac_includes_default
5718 find_stack_direction (int *addr, int depth)
5723 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5724 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5729 main (int argc, char **argv)
5731 return find_stack_direction (0, argc + !argv + 20) < 0;
5734 if ac_fn_c_try_run "$LINENO"; then :
5735 ac_cv_c_stack_direction=1
5737 ac_cv_c_stack_direction=-1
5739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5740 conftest.$ac_objext conftest.beam conftest.$ac_ext
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5745 $as_echo "$ac_cv_c_stack_direction" >&6; }
5746 cat >>confdefs.h <<_ACEOF
5747 #define STACK_DIRECTION $ac_cv_c_stack_direction
5753 for ac_header in malloc.h
5755 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5756 if test "x$ac_cv_header_malloc_h" = xyes; then :
5757 cat >>confdefs.h <<_ACEOF
5758 #define HAVE_MALLOC_H 1
5766 for ac_func in strerror
5768 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
5769 if test "x$ac_cv_func_strerror" = xyes; then :
5770 cat >>confdefs.h <<_ACEOF
5771 #define HAVE_STRERROR 1
5778 # getenv_secure is used for fat overrides,
5779 # getline is used in the testsuite
5780 for ac_func in secure_getenv getline
5782 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5783 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5784 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5785 cat >>confdefs.h <<_ACEOF
5786 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5793 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5794 if ${ac_cv_c_bigendian+:} false; then :
5795 $as_echo_n "(cached) " >&6
5797 ac_cv_c_bigendian=unknown
5798 # See if we're dealing with a universal compiler.
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5801 #ifndef __APPLE_CC__
5802 not a universal capable compiler
5807 if ac_fn_c_try_compile "$LINENO"; then :
5809 # Check for potential -arch flags. It is not universal unless
5810 # there are at least two -arch flags with different values.
5813 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5814 if test -n "$ac_prev"; then
5816 i?86 | x86_64 | ppc | ppc64)
5817 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5820 ac_cv_c_bigendian=universal
5826 elif test "x$ac_word" = "x-arch"; then
5831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832 if test $ac_cv_c_bigendian = unknown; then
5833 # See if sys/param.h defines the BYTE_ORDER macro.
5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835 /* end confdefs.h. */
5836 #include <sys/types.h>
5837 #include <sys/param.h>
5842 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5843 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5852 if ac_fn_c_try_compile "$LINENO"; then :
5853 # It does; now see whether it defined to BIG_ENDIAN or not.
5854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5855 /* end confdefs.h. */
5856 #include <sys/types.h>
5857 #include <sys/param.h>
5862 #if BYTE_ORDER != BIG_ENDIAN
5870 if ac_fn_c_try_compile "$LINENO"; then :
5871 ac_cv_c_bigendian=yes
5873 ac_cv_c_bigendian=no
5875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5879 if test $ac_cv_c_bigendian = unknown; then
5880 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5888 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5896 if ac_fn_c_try_compile "$LINENO"; then :
5897 # It does; now see whether it defined to _BIG_ENDIAN or not.
5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899 /* end confdefs.h. */
5913 if ac_fn_c_try_compile "$LINENO"; then :
5914 ac_cv_c_bigendian=yes
5916 ac_cv_c_bigendian=no
5918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5922 if test $ac_cv_c_bigendian = unknown; then
5923 # Compile a test program.
5924 if test "$cross_compiling" = yes; then :
5925 # Try to guess by grepping values from an object file.
5926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927 /* end confdefs.h. */
5928 short int ascii_mm[] =
5929 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5930 short int ascii_ii[] =
5931 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5932 int use_ascii (int i) {
5933 return ascii_mm[i] + ascii_ii[i];
5935 short int ebcdic_ii[] =
5936 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5937 short int ebcdic_mm[] =
5938 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5939 int use_ebcdic (int i) {
5940 return ebcdic_mm[i] + ebcdic_ii[i];
5947 return use_ascii (foo) == use_ebcdic (foo);
5952 if ac_fn_c_try_compile "$LINENO"; then :
5953 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5954 ac_cv_c_bigendian=yes
5956 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5957 if test "$ac_cv_c_bigendian" = unknown; then
5958 ac_cv_c_bigendian=no
5960 # finding both strings is unlikely to happen, but who knows?
5961 ac_cv_c_bigendian=unknown
5965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968 /* end confdefs.h. */
5969 $ac_includes_default
5974 /* Are we little or big endian? From Harbison&Steele. */
5978 char c[sizeof (long int)];
5981 return u.c[sizeof (long int) - 1] == 1;
5987 if ac_fn_c_try_run "$LINENO"; then :
5988 ac_cv_c_bigendian=no
5990 ac_cv_c_bigendian=yes
5992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5993 conftest.$ac_objext conftest.beam conftest.$ac_ext
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5999 $as_echo "$ac_cv_c_bigendian" >&6; }
6000 case $ac_cv_c_bigendian in #(
6002 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6008 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6012 as_fn_error $? "unknown endianness
6013 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
6018 $as_echo_n "checking for __attribute__... " >&6; }
6019 if ${lsh_cv_c_attribute+:} false; then :
6020 $as_echo_n "(cached) " >&6
6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h. */
6027 static void foo(void) __attribute__ ((noreturn));
6029 static void __attribute__ ((noreturn))
6043 if ac_fn_c_try_compile "$LINENO"; then :
6044 lsh_cv_c_attribute=yes
6046 lsh_cv_c_attribute=no
6048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lsh_cv_c_attribute" >&5
6051 $as_echo "$lsh_cv_c_attribute" >&6; }
6054 if test "x$lsh_cv_c_attribute" = "xyes"; then
6055 $as_echo "#define HAVE_GCC_ATTRIBUTE 1" >>confdefs.h
6061 # According to Simon Josefsson, looking for uint32_t and friends in
6062 # sys/types.h is needed on some systems, in particular cygwin.
6063 # ------ AX CREATE STDINT H -------------------------------------
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
6065 $as_echo_n "checking for stdint types... " >&6; }
6066 ac_stdint_h=`echo nettle-stdint.h`
6067 # try to shortcircuit - if the default include path of the compiler
6068 # can find a "stdint.h" header then we assume that all compilers can.
6069 if ${ac_cv_header_stdint_t+:} false; then :
6070 $as_echo_n "(cached) " >&6
6073 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
6074 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
6075 old_CFLAGS="$CFLAGS" ; CFLAGS=""
6076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6077 /* end confdefs.h. */
6082 int_least32_t v = 0;
6087 if ac_fn_c_try_compile "$LINENO"; then :
6088 ac_cv_stdint_result="(assuming C99 compatible system)"
6089 ac_cv_header_stdint_t="stdint.h";
6091 ac_cv_header_stdint_t=""
6093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6094 CXXFLAGS="$old_CXXFLAGS"
6095 CPPFLAGS="$old_CPPFLAGS"
6096 CFLAGS="$old_CFLAGS"
6100 v="... $ac_cv_header_stdint_h"
6101 if test "$ac_stdint_h" = "stdint.h" ; then
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
6103 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
6104 elif test "$ac_stdint_h" = "inttypes.h" ; then
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
6106 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
6107 elif test "_$ac_cv_header_stdint_t" = "_" ; then
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
6109 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
6111 ac_cv_header_stdint="$ac_cv_header_stdint_t"
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
6113 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
6116 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
6119 inttype_headers=`echo sys/types.h | sed -e 's/,/ /g'`
6121 ac_cv_stdint_result="(no helpful system typedefs seen)"
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
6123 $as_echo_n "checking for stdint uintptr_t... " >&6; }
6124 if ${ac_cv_header_stdint_x+:} false; then :
6125 $as_echo_n "(cached) " >&6
6128 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
6130 $as_echo "(..)" >&6; }
6131 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
6132 unset ac_cv_type_uintptr_t
6133 unset ac_cv_type_uint64_t
6134 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
6136 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6137 ac_cv_header_stdint_x=$i
6142 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
6144 if test "x$ac_cv_type_uint64_t" = xyes; then :
6150 ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
6154 $as_echo_n "checking for stdint uintptr_t... " >&6; }
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
6158 $as_echo "$ac_cv_header_stdint_x" >&6; }
6160 if test "_$ac_cv_header_stdint_x" = "_" ; then
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
6162 $as_echo_n "checking for stdint uint32_t... " >&6; }
6163 if ${ac_cv_header_stdint_o+:} false; then :
6164 $as_echo_n "(cached) " >&6
6167 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
6169 $as_echo "(..)" >&6; }
6170 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
6171 unset ac_cv_type_uint32_t
6172 unset ac_cv_type_uint64_t
6173 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
6175 if test "x$ac_cv_type_uint32_t" = xyes; then :
6176 ac_cv_header_stdint_o=$i
6181 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
6183 if test "x$ac_cv_type_uint64_t" = xyes; then :
6189 ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
6193 $as_echo_n "checking for stdint uint32_t... " >&6; }
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
6197 $as_echo "$ac_cv_header_stdint_o" >&6; }
6200 if test "_$ac_cv_header_stdint_x" = "_" ; then
6201 if test "_$ac_cv_header_stdint_o" = "_" ; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
6203 $as_echo_n "checking for stdint u_int32_t... " >&6; }
6204 if ${ac_cv_header_stdint_u+:} false; then :
6205 $as_echo_n "(cached) " >&6
6208 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
6210 $as_echo "(..)" >&6; }
6211 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
6212 unset ac_cv_type_u_int32_t
6213 unset ac_cv_type_u_int64_t
6214 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
6216 if test "x$ac_cv_type_u_int32_t" = xyes; then :
6217 ac_cv_header_stdint_u=$i
6222 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
6224 if test "x$ac_cv_type_u_int64_t" = xyes; then :
6230 ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
6234 $as_echo_n "checking for stdint u_int32_t... " >&6; }
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
6238 $as_echo "$ac_cv_header_stdint_u" >&6; }
6241 if test "_$ac_cv_header_stdint_x" = "_" ; then
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
6243 $as_echo_n "checking for stdint datatype model... " >&6; }
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
6245 $as_echo "(..)" >&6; }
6246 # The cast to long int works around a bug in the HP C Compiler
6247 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6248 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6249 # This bug is HP SR number 8606223364.
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
6251 $as_echo_n "checking size of char... " >&6; }
6252 if ${ac_cv_sizeof_char+:} false; then :
6253 $as_echo_n "(cached) " >&6
6255 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
6258 if test "$ac_cv_type_char" = yes; then
6259 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6261 as_fn_error 77 "cannot compute sizeof (char)
6262 See \`config.log' for more details" "$LINENO" 5; }
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
6270 $as_echo "$ac_cv_sizeof_char" >&6; }
6274 cat >>confdefs.h <<_ACEOF
6275 #define SIZEOF_CHAR $ac_cv_sizeof_char
6279 # The cast to long int works around a bug in the HP C Compiler
6280 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6281 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6282 # This bug is HP SR number 8606223364.
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6284 $as_echo_n "checking size of short... " >&6; }
6285 if ${ac_cv_sizeof_short+:} false; then :
6286 $as_echo_n "(cached) " >&6
6288 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6291 if test "$ac_cv_type_short" = yes; then
6292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6294 as_fn_error 77 "cannot compute sizeof (short)
6295 See \`config.log' for more details" "$LINENO" 5; }
6297 ac_cv_sizeof_short=0
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6303 $as_echo "$ac_cv_sizeof_short" >&6; }
6307 cat >>confdefs.h <<_ACEOF
6308 #define SIZEOF_SHORT $ac_cv_sizeof_short
6312 # The cast to long int works around a bug in the HP C Compiler
6313 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6314 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6315 # This bug is HP SR number 8606223364.
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6317 $as_echo_n "checking size of int... " >&6; }
6318 if ${ac_cv_sizeof_int+:} false; then :
6319 $as_echo_n "(cached) " >&6
6321 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6324 if test "$ac_cv_type_int" = yes; then
6325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6327 as_fn_error 77 "cannot compute sizeof (int)
6328 See \`config.log' for more details" "$LINENO" 5; }
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6336 $as_echo "$ac_cv_sizeof_int" >&6; }
6340 cat >>confdefs.h <<_ACEOF
6341 #define SIZEOF_INT $ac_cv_sizeof_int
6345 # The cast to long int works around a bug in the HP C Compiler
6346 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6347 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6348 # This bug is HP SR number 8606223364.
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6350 $as_echo_n "checking size of long... " >&6; }
6351 if ${ac_cv_sizeof_long+:} false; then :
6352 $as_echo_n "(cached) " >&6
6354 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6357 if test "$ac_cv_type_long" = yes; then
6358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6360 as_fn_error 77 "cannot compute sizeof (long)
6361 See \`config.log' for more details" "$LINENO" 5; }
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6369 $as_echo "$ac_cv_sizeof_long" >&6; }
6373 cat >>confdefs.h <<_ACEOF
6374 #define SIZEOF_LONG $ac_cv_sizeof_long
6378 # The cast to long int works around a bug in the HP C Compiler
6379 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6380 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6381 # This bug is HP SR number 8606223364.
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
6383 $as_echo_n "checking size of void*... " >&6; }
6384 if ${ac_cv_sizeof_voidp+:} false; then :
6385 $as_echo_n "(cached) " >&6
6387 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
6390 if test "$ac_cv_type_voidp" = yes; then
6391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6393 as_fn_error 77 "cannot compute sizeof (void*)
6394 See \`config.log' for more details" "$LINENO" 5; }
6396 ac_cv_sizeof_voidp=0
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
6402 $as_echo "$ac_cv_sizeof_voidp" >&6; }
6406 cat >>confdefs.h <<_ACEOF
6407 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
6411 ac_cv_stdint_char_model=""
6412 ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_char"
6413 ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_short"
6414 ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_int"
6415 ac_cv_stdint_long_model=""
6416 ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_int"
6417 ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_long"
6418 ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_voidp"
6419 name="$ac_cv_stdint_long_model"
6420 case "$ac_cv_stdint_char_model/$ac_cv_stdint_long_model" in
6421 122/242) name="$name, IP16 (standard 16bit machine)" ;;
6422 122/244) name="$name, LP32 (standard 32bit mac/win)" ;;
6423 122/*) name="$name (unusual int16 model)" ;;
6424 124/444) name="$name, ILP32 (standard 32bit unixish)" ;;
6425 124/488) name="$name, LP64 (standard 64bit unixish)" ;;
6426 124/448) name="$name, LLP64 (unusual 64bit unixish)" ;;
6427 124/*) name="$name (unusual int32 model)" ;;
6428 128/888) name="$name, ILP64 (unusual 64bit numeric)" ;;
6429 128/*) name="$name (unusual int64 model)" ;;
6430 222/*|444/*) name="$name (unusual dsptype)" ;;
6431 *) name="$name (very unusal model)" ;;
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: combined for stdint datatype model... $name" >&5
6434 $as_echo "combined for stdint datatype model... $name" >&6; }
6437 if test "_$ac_cv_header_stdint_x" != "_" ; then
6438 ac_cv_header_stdint="$ac_cv_header_stdint_x"
6439 elif test "_$ac_cv_header_stdint_o" != "_" ; then
6440 ac_cv_header_stdint="$ac_cv_header_stdint_o"
6441 elif test "_$ac_cv_header_stdint_u" != "_" ; then
6442 ac_cv_header_stdint="$ac_cv_header_stdint_u"
6444 ac_cv_header_stdint="stddef.h"
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
6448 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
6450 $as_echo "($ac_cv_header_stdint)" >&6; }
6451 unset ac_cv_type_int_least32_t
6452 unset ac_cv_type_int_fast32_t
6453 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
6455 if test "x$ac_cv_type_int_least32_t" = xyes; then :
6459 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
6461 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
6465 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
6467 if test "x$ac_cv_type_intmax_t" = xyes; then :
6472 fi # shortcircut to system "stdint.h"
6473 # ------------------ PREPARE VARIABLES ------------------------------
6474 if test "$GCC" = "yes" ; then
6475 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
6477 ac_cv_stdint_message="using $CC"
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
6481 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
6483 # ----------------- DONE inttypes.h checks START header -------------
6484 ac_config_commands="$ac_config_commands $ac_stdint_h"
6488 # Check for file locking. We (AC_PROG_CC?) have already checked for
6489 # sys/types.h and unistd.h.
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcntl file locking" >&5
6491 $as_echo_n "checking for fcntl file locking... " >&6; }
6492 if ${nettle_cv_fcntl_locking+:} false; then :
6493 $as_echo_n "(cached) " >&6
6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496 /* end confdefs.h. */
6498 #if HAVE_SYS_TYPES_H
6499 # include <sys/types.h>
6502 # include <unistd.h>
6517 if ac_fn_c_try_compile "$LINENO"; then :
6518 nettle_cv_fcntl_locking=yes
6520 nettle_cv_fcntl_locking=no
6522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_fcntl_locking" >&5
6525 $as_echo "$nettle_cv_fcntl_locking" >&6; }
6528 if test "x$nettle_cv_fcntl_locking" = "xyes" ; then
6529 $as_echo "#define HAVE_FCNTL_LOCKING 1" >>confdefs.h
6533 # Checks for libraries
6534 if test "x$enable_public_key" = "xyes" ; then
6535 if test "x$enable_mini_gmp" = "xno" ; then
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_getlimbn in -lgmp" >&5
6537 $as_echo_n "checking for __gmpz_getlimbn in -lgmp... " >&6; }
6538 if ${ac_cv_lib_gmp___gmpz_getlimbn+:} false; then :
6539 $as_echo_n "(cached) " >&6
6541 ac_check_lib_save_LIBS=$LIBS
6543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544 /* end confdefs.h. */
6546 /* Override any GCC internal prototype to avoid an error.
6547 Use char because int might match the return type of a GCC
6548 builtin and then its argument prototype would still apply. */
6552 char __gmpz_getlimbn ();
6556 return __gmpz_getlimbn ();
6561 if ac_fn_c_try_link "$LINENO"; then :
6562 ac_cv_lib_gmp___gmpz_getlimbn=yes
6564 ac_cv_lib_gmp___gmpz_getlimbn=no
6566 rm -f core conftest.err conftest.$ac_objext \
6567 conftest$ac_exeext conftest.$ac_ext
6568 LIBS=$ac_check_lib_save_LIBS
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_getlimbn" >&5
6571 $as_echo "$ac_cv_lib_gmp___gmpz_getlimbn" >&6; }
6572 if test "x$ac_cv_lib_gmp___gmpz_getlimbn" = xyes; then :
6573 cat >>confdefs.h <<_ACEOF
6574 #define HAVE_LIBGMP 1
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNU MP not found, or not 3.1 or up, see http://gmplib.org/.
6581 Support for public key algorithms will be unavailable." >&5
6582 $as_echo "$as_me: WARNING: GNU MP not found, or not 3.1 or up, see http://gmplib.org/.
6583 Support for public key algorithms will be unavailable." >&2;}
6584 enable_public_key=no
6588 # Add -R flags needed to run programs linked with gmp
6589 if test $cross_compiling = no -a "x$RPATHFLAG" != x ; then
6591 if test "$cross_compiling" = yes; then :
6594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595 /* end confdefs.h. */
6596 int main(int argc, char **argv) { return 0; }
6598 if ac_fn_c_try_run "$LINENO"; then :
6603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6604 conftest.$ac_objext conftest.beam conftest.$ac_ext
6608 if test $ac_success = no ; then
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Running simple test program failed. Trying -R flags" >&5
6610 $as_echo_n "checking Running simple test program failed. Trying -R flags... " >&6; }
6611 ac_remaining_dirs=''
6612 ac_rpath_save_LDFLAGS="$LDFLAGS"
6613 for d in $RPATH_CANDIDATE_DIRS ; do
6614 if test $ac_success = yes ; then
6615 ac_remaining_dirs="$ac_remaining_dirs $d"
6617 LDFLAGS="$RPATHFLAG$d $LDFLAGS"
6618 if test "$cross_compiling" = yes; then :
6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622 /* end confdefs.h. */
6623 int main(int argc, char **argv) { return 0; }
6625 if ac_fn_c_try_run "$LINENO"; then :
6627 ac_rpath_save_LDFLAGS="$LDFLAGS"
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding $RPATHFLAG$d" >&5
6629 $as_echo "adding $RPATHFLAG$d" >&6; }
6632 ac_remaining_dirs="$ac_remaining_dirs $d"
6634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6635 conftest.$ac_objext conftest.beam conftest.$ac_ext
6638 LDFLAGS="$ac_rpath_save_LDFLAGS"
6641 RPATH_CANDIDATE_DIRS=$ac_remaining_dirs
6643 if test $ac_success = no ; then
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6645 $as_echo "failed" >&6; }
6652 nettle_cv_gmp_numb_bits=0
6653 if test "x$enable_public_key" = "xyes" ; then
6654 # Check for gmp limb size
6655 if test "x$enable_mini_gmp" = "xyes" ; then
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mini-gmp limb size" >&5
6657 $as_echo_n "checking for mini-gmp limb size... " >&6; }
6658 # With mini-gmp, mp_limb_t is always unsigned long.
6659 if ac_fn_c_compute_int "$LINENO" "(sizeof(unsigned long) * CHAR_BIT)" "nettle_cv_gmp_numb_bits" "#include <limits.h>"; then :
6662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6664 as_fn_error $? "cannot find value of GMP_NUMB_BITS
6665 See \`config.log' for more details" "$LINENO" 5; }
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_gmp_numb_bits bits" >&5
6670 $as_echo "$nettle_cv_gmp_numb_bits bits" >&6; }
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMP limb size" >&5
6673 $as_echo_n "checking for GMP limb size... " >&6; }
6674 if ac_fn_c_compute_int "$LINENO" "GMP_NUMB_BITS" "nettle_cv_gmp_numb_bits" "#include <gmp.h>"; then :
6677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6679 as_fn_error $? "cannot find value of GMP_NUMB_BITS
6680 See \`config.log' for more details" "$LINENO" 5; }
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_gmp_numb_bits bits" >&5
6685 $as_echo "$nettle_cv_gmp_numb_bits bits" >&6; }
6689 GMP_NUMB_BITS="$nettle_cv_gmp_numb_bits"
6692 # Figure out ABI. Currently, configurable only by setting CFLAGS.
6697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6698 /* end confdefs.h. */
6700 #if defined(__x86_64__) || defined(__arch64__)
6712 if ac_fn_c_try_compile "$LINENO"; then :
6721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h. */
6727 #if defined(__sparcv9) || defined(__arch64__)
6739 if ac_fn_c_try_compile "$LINENO"; then :
6748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6752 /* end confdefs.h. */
6754 #if defined(__sgi) && defined(__LP64__)
6766 if ac_fn_c_try_compile "$LINENO"; then :
6775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6779 if test "x$ABI" != xstandard ; then
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler uses $ABI-bit ABI. To change, set CC." >&5
6781 $as_echo "$as_me: Compiler uses $ABI-bit ABI. To change, set CC." >&6;}
6782 if test "$libdir" = '${exec_prefix}/lib' ; then
6783 # Try setting a better default
6784 case "$host_cpu:$host_os:$ABI" in
6785 *:solaris*:32|*:sunos*:32)
6786 libdir='${exec_prefix}/lib'
6788 *:solaris*:64|*:sunos*:64)
6789 libdir='${exec_prefix}/lib/64'
6791 # Linux conventions are a mess... According to the Linux File
6792 # Hierarchy Standard, all architectures except IA64 puts 32-bit
6793 # libraries in lib, and 64-bit in lib64. Some distributions,
6794 # e.g., Fedora and Gentoo, adhere to this standard, while at
6795 # least Debian has decided to put 64-bit libraries in lib and
6796 # 32-bit libraries in lib32.
6798 # We try to figure out the convention, except if we're cross
6799 # compiling. We use lib${ABI} if /usr/lib${ABI} exists and
6800 # appears to not be a symlink to a different name.
6801 *:linux*:32|*:linux*:64)
6802 if test "$cross_compiling" = yes ; then
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cross compiling for linux. Can't guess if libraries go in lib${ABI} or lib." >&5
6804 $as_echo "$as_me: WARNING: Cross compiling for linux. Can't guess if libraries go in lib${ABI} or lib." >&2;}; else
6805 # The dash builtin pwd tries to be "helpful" and remember
6806 # symlink names. Use -P option, and hope it's portable enough.
6807 test -d /usr/lib${ABI} \
6808 && (cd /usr/lib${ABI} && pwd -P | grep >/dev/null "/lib${ABI}"'$') \
6809 && libdir='${exec_prefix}/'"lib${ABI}"
6812 # On freebsd, it seems 32-bit libraries are in lib32,
6813 # and 64-bit in lib. Don't know about "kfreebsd", does
6814 # it follow the Linux fhs conventions?
6816 libdir='${exec_prefix}/lib32'
6819 libdir='${exec_prefix}/lib'
6822 libdir='${exec_prefix}/lib32'
6825 libdir='${exec_prefix}/lib64'
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know where to install $ABI-bit libraries on this system." >&5
6829 $as_echo "$as_me: WARNING: Don't know where to install $ABI-bit libraries on this system." >&2;};
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: Libraries to be installed in $libdir." >&5
6832 $as_echo "$as_me: Libraries to be installed in $libdir." >&6;}
6836 OPT_NETTLE_SOURCES=""
6838 # Select assembler code
6840 if test "x$enable_assembler" = xyes ; then
6842 i?86* | k[5-8]* | pentium* | athlon)
6846 if test "$ABI" = 64 ; then
6848 if test "x$enable_fat" = xyes ; then
6849 asm_path="x86_64/fat $asm_path"
6850 OPT_NETTLE_SOURCES="fat-x86_64.c $OPT_NETTLE_SOURCES"
6851 elif test "x$enable_x86_aesni" = xyes ; then
6852 asm_path="x86_64/aesni $asm_path"
6859 if test "$ABI" = 64 ; then
6867 if test "x$enable_fat" = xyes ; then
6868 asm_path="arm/fat $asm_path"
6869 OPT_NETTLE_SOURCES="fat-arm.c $OPT_NETTLE_SOURCES"
6873 if test "$enable_arm_neon" = auto ; then
6874 if test "$cross_compiling" = yes ; then
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler accepts Neon instructions" >&5
6876 $as_echo_n "checking if assembler accepts Neon instructions... " >&6; }
6877 if ${nettle_cv_asm_arm_neon+:} false; then :
6878 $as_echo_n "(cached) " >&6
6880 cat >conftest.s <<EOF
6884 vmlal.u32 q1, d0, d1
6887 gmp_assemble="$CC $CFLAGS $CPPFLAGS -c conftest.s >conftest.out 2>&1"
6888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
6889 (eval $gmp_assemble) 2>&5
6891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6892 test $ac_status = 0; }; then
6893 cat conftest.out >&5
6894 nettle_cv_asm_arm_neon=yes
6896 cat conftest.out >&5
6897 echo "configure: failed program was:" >&5
6899 nettle_cv_asm_arm_neon=no
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_arm_neon" >&5
6905 $as_echo "$nettle_cv_asm_arm_neon" >&6; }
6906 enable_arm_neon="$nettle_cv_asm_arm_neon"
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if /proc/cpuinfo claims neon support" >&5
6909 $as_echo_n "checking if /proc/cpuinfo claims neon support... " >&6; }
6910 if grep '^Features.*:.* neon' /proc/cpuinfo >/dev/null ; then
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_arm_neon" >&5
6916 $as_echo "$enable_arm_neon" >&6; }
6921 asm_path="arm/v6 arm"
6923 if test "x$enable_arm_neon" = xyes ; then
6924 asm_path="arm/neon $asm_path"
6936 # Files which replace a C source file (or otherwise don't correspond
6937 # to a new object file).
6938 asm_replace_list="aes-encrypt-internal.asm aes-decrypt-internal.asm \
6939 arcfour-crypt.asm camellia-crypt-internal.asm \
6940 md5-compress.asm memxor.asm memxor3.asm \
6941 poly1305-internal.asm \
6942 chacha-core-internal.asm \
6943 salsa20-crypt.asm salsa20-core-internal.asm \
6944 serpent-encrypt.asm serpent-decrypt.asm \
6945 sha1-compress.asm sha256-compress.asm sha512-compress.asm \
6946 sha3-permute.asm umac-nh.asm umac-nh-n.asm machine.m4"
6948 # Assembler files which generate additional object files if they are used.
6949 asm_nettle_optional_list="gcm-hash8.asm cpuid.asm \
6950 aes-encrypt-internal-2.asm aes-decrypt-internal-2.asm memxor-2.asm \
6951 salsa20-core-internal-2.asm sha1-compress-2.asm sha256-compress-2.asm \
6952 sha3-permute-2.asm sha512-compress-2.asm \
6953 umac-nh-n-2.asm umac-nh-2.asm"
6955 asm_hogweed_optional_list=""
6956 if test "x$enable_public_key" = "xyes" ; then
6957 asm_hogweed_optional_list="ecc-192-modp.asm ecc-224-modp.asm \
6958 ecc-25519-modp.asm ecc-256-redc.asm ecc-384-modp.asm ecc-521-modp.asm"
6966 if test "x$enable_assembler" = xyes ; then
6967 if test -n "$asm_path"; then
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: Looking for assembler files in $asm_path." >&5
6969 $as_echo "$as_me: Looking for assembler files in $asm_path." >&6;}
6970 for tmp_f in $asm_replace_list ; do
6971 for asm_dir in $asm_path ; do
6972 if test -f "$srcdir/$asm_dir/$tmp_f"; then
6973 asm_file_list="$asm_file_list $tmp_f"
6974 ac_config_links="$ac_config_links $tmp_f:$asm_dir/$tmp_f"
6980 for tmp_n in $asm_nettle_optional_list ; do
6981 tmp_b=`echo "$tmp_n" | sed 's/\.[^.]*$//'`
6982 for asm_dir in $asm_path ; do
6983 if test -f "$srcdir/$asm_dir/$tmp_n"; then
6984 asm_file_list="$asm_file_list $tmp_n"
6985 ac_config_links="$ac_config_links $tmp_n:$asm_dir/$tmp_n"
6987 while read tmp_func ; do
6988 cat >>confdefs.h <<_ACEOF
6989 #define HAVE_NATIVE_$tmp_func 1
6992 eval HAVE_NATIVE_$tmp_func=yes
6994 `sed -n 's/^.*[^ ]*PROLOGUE(_*\(nettle_\)*\([^)]*\)).*$/\2/p' < "$srcdir/$asm_dir/$tmp_n"`
6996 OPT_NETTLE_OBJS="$OPT_NETTLE_OBJS $tmp_b"'.$(OBJEXT)'
7001 for tmp_h in $asm_hogweed_optional_list ; do
7002 tmp_b=`echo "$tmp_h" | sed 's/\.[^.]*$//'`
7003 for asm_dir in $asm_path ; do
7004 if test -f "$srcdir/$asm_dir/$tmp_h"; then
7005 tmp_bits=`grep GMP_NUMB_BITS "$srcdir/$asm_dir/$tmp_h" \
7006 | sed 's/^.*GMP_NUMB_BITS(\([0-9]*\)).*$/\1/'`
7007 if test "$tmp_bits" && test "$tmp_bits" != "${GMP_NUMB_BITS}" ; then
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipping $tmp_h, because GMP_NUMB_BITS != $tmp_bits" >&5
7009 $as_echo "$as_me: WARNING: skipping $tmp_h, because GMP_NUMB_BITS != $tmp_bits" >&2;}
7012 asm_file_list="$asm_file_list $tmp_h"
7013 ac_config_links="$ac_config_links $tmp_h:$asm_dir/$tmp_h"
7015 while read tmp_func ; do
7016 cat >>confdefs.h <<_ACEOF
7017 #define HAVE_NATIVE_$tmp_func 1
7020 eval HAVE_NATIVE_$tmp_func=yes
7022 `sed -n 's/[^ ]*PROLOGUE(_*\(nettle_\)*\([^)]*\)).*$/\2/p' < "$srcdir/$asm_dir/$tmp_h"`
7024 OPT_HOGWEED_OBJS="$OPT_HOGWEED_OBJS $tmp_b"'.$(OBJEXT)'
7029 if test -z "$asm_file_list"; then
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No assembler files found." >&5
7032 $as_echo "$as_me: WARNING: No assembler files found." >&2;}
7037 ASM_RODATA='.section __TEXT,__const'
7040 ASM_RODATA='.section .rodata'
7049 if test "x$enable_assembler" = xyes ; then
7058 if test "x$enable_pic" = xyes; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCPIC" >&5
7060 $as_echo_n "checking CCPIC... " >&6; }
7061 if ${lsh_cv_sys_ccpic+:} false; then :
7062 $as_echo_n "(cached) " >&6
7065 if test -z "$CCPIC" ; then
7066 if test "$GCC" = yes ; then
7068 bsdi4.*) CCPIC="-fPIC" ;;
7070 darwin*) CCPIC="-fPIC" ;;
7071 # Could also use -fpic, depending on the number of symbol references
7072 solaris*) CCPIC="-fPIC" ;;
7073 cygwin*) CCPIC="" ;;
7074 mingw32*) CCPIC="" ;;
7079 darwin*) CCPIC="-fPIC" ;;
7080 irix*) CCPIC="-share" ;;
7081 hpux*) CCPIC="+z"; ;;
7082 *freebsd*) CCPIC="-fpic" ;;
7083 sco*|sysv4.*) CCPIC="-KPIC -dy -Bdynamic" ;;
7084 solaris*) CCPIC="-KPIC -Bdynamic" ;;
7085 winnt*) CCPIC="-shared" ;;
7090 OLD_CFLAGS="$CFLAGS"
7091 CFLAGS="$CFLAGS $CCPIC"
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7103 if ac_fn_c_try_compile "$LINENO"; then :
7104 lsh_cv_sys_ccpic="$CCPIC"
7108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7109 CFLAGS="$OLD_CFLAGS"
7113 CCPIC="$lsh_cv_sys_ccpic"
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCPIC" >&5
7115 $as_echo "$CCPIC" >&6; }
7122 LIBNETTLE_FILE_SRC='$(LIBNETTLE_FORLINK)'
7123 LIBHOGWEED_FILE_SRC='$(LIBHOGWEED_FORLINK)'
7129 # The actual DLLs, e.g. libnettle-$major-$minor.dll, are normally
7130 # installed into the bin dir (or more exactly $libdir/../bin, for
7131 # automake), while libnettle.dll.a, which is a stub file for
7132 # linking to the DLL, is installed into the lib dir.
7135 LIBNETTLE_FORLINK='libnettle-$(LIBNETTLE_MAJOR)-$(LIBNETTLE_MINOR).dll'
7136 LIBHOGWEED_FORLINK='libhogweed-$(LIBHOGWEED_MAJOR)-$(LIBHOGWEED_MINOR).dll'
7139 LIBNETTLE_FORLINK='cygnettle-$(LIBNETTLE_MAJOR)-$(LIBNETTLE_MINOR).dll'
7140 LIBHOGWEED_FORLINK='cyghogweed-$(LIBHOGWEED_MAJOR)-$(LIBHOGWEED_MINOR).dll'
7143 if test "x$cross_compiling" = xyes ; then
7153 if test "x$ABI" = x64 ; then
7157 LIBNETTLE_FILE='libnettle.dll.a'
7158 LIBNETTLE_FILE_SRC='$(LIBNETTLE_FILE)'
7159 LIBNETTLE_LINK='$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,--out-implib=$(LIBNETTLE_FILE) -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive'
7160 LIBNETTLE_LIBS='-Wl,--no-whole-archive $(LIBS)'
7162 LIBHOGWEED_SONAME=''
7163 LIBHOGWEED_FILE='libhogweed.dll.a'
7164 LIBHOGWEED_FILE_SRC='$(LIBHOGWEED_FILE)'
7165 LIBHOGWEED_LINK='$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,--out-implib=$(LIBHOGWEED_FILE) -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive'
7166 LIBHOGWEED_LIBS='-Wl,--no-whole-archive $(LIBS) libnettle.dll.a'
7170 LIBNETTLE_FORLINK=libnettle.dylib
7171 LIBNETTLE_SONAME='libnettle.$(LIBNETTLE_MAJOR).dylib'
7172 LIBNETTLE_FILE='libnettle.$(LIBNETTLE_MAJOR).$(LIBNETTLE_MINOR).dylib'
7173 LIBNETTLE_LINK='$(CC) $(CFLAGS) -dynamiclib $(LDFLAGS) -install_name ${libdir}/$(LIBNETTLE_SONAME) -compatibility_version $(LIBNETTLE_MAJOR) -current_version $(LIBNETTLE_MAJOR).$(LIBNETTLE_MINOR)'
7176 LIBHOGWEED_FORLINK=libhogweed.dylib
7177 LIBHOGWEED_SONAME='libhogweed.$(LIBHOGWEED_MAJOR).dylib'
7178 LIBHOGWEED_FILE='libhogweed.$(LIBHOGWEED_MAJOR).$(LIBHOGWEED_MINOR).dylib'
7179 LIBHOGWEED_LINK='$(CC) $(CFLAGS) -dynamiclib -L. $(LDFLAGS) -install_name ${libdir}/$(LIBHOGWEED_SONAME) -compatibility_version $(LIBHOGWEED_MAJOR) -current_version $(LIBHOGWEED_MAJOR).$(LIBHOGWEED_MINOR)'
7180 LIBHOGWEED_LIBS='-lnettle $(LIBS)'
7183 # Sun's ld uses -h to set the soname, and this option is passed
7184 # through by both Sun's compiler and gcc. Might not work with GNU
7185 # ld, but it's unusual to use GNU ld on Solaris.
7186 LIBNETTLE_FORLINK=libnettle.so
7187 LIBNETTLE_SONAME='$(LIBNETTLE_FORLINK).$(LIBNETTLE_MAJOR)'
7188 LIBNETTLE_FILE='$(LIBNETTLE_SONAME).$(LIBNETTLE_MINOR)'
7189 LIBNETTLE_LINK='$(CC) $(CFLAGS) $(LDFLAGS) -G -h $(LIBNETTLE_SONAME)'
7192 LIBHOGWEED_FORLINK=libhogweed.so
7193 LIBHOGWEED_SONAME='$(LIBHOGWEED_FORLINK).$(LIBHOGWEED_MAJOR)'
7194 LIBHOGWEED_FILE='$(LIBHOGWEED_SONAME).$(LIBHOGWEED_MINOR)'
7195 LIBHOGWEED_LINK='$(CC) $(CFLAGS) $(LDFLAGS) -G -h $(LIBHOGWEED_SONAME)'
7196 LIBHOGWEED_LIBS='libnettle.so $(LIBS)'
7199 LIBNETTLE_FORLINK=libnettle.so
7200 LIBNETTLE_SONAME='$(LIBNETTLE_FORLINK).$(LIBNETTLE_MAJOR)'
7201 LIBNETTLE_FILE='$(LIBNETTLE_SONAME).$(LIBNETTLE_MINOR)'
7202 LIBNETTLE_LINK='$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-soname=$(LIBNETTLE_SONAME)'
7205 LIBHOGWEED_FORLINK=libhogweed.so
7206 LIBHOGWEED_SONAME='$(LIBHOGWEED_FORLINK).$(LIBHOGWEED_MAJOR)'
7207 LIBHOGWEED_FILE='$(LIBHOGWEED_SONAME).$(LIBHOGWEED_MINOR)'
7208 LIBHOGWEED_LINK='$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-soname=$(LIBHOGWEED_SONAME)'
7209 # Requested by debian, to make linking with only -lhogweed work
7210 # (does not work in general, e.g., with static linking all of
7211 # -lhogweed -lgmp -lnettle are still required). Also makes dlopen
7212 # of libhogweed.so work, without having to use RTLD_GLOBAL.
7213 LIBHOGWEED_LIBS='libnettle.so $(LIBS)'
7217 ASM_SYMBOL_PREFIX=''
7220 # GNU as default is to use @
7221 ASM_TYPE_FUNCTION='@function'
7222 ASM_TYPE_PROGBITS='@progbits'
7223 ASM_MARK_NOEXEC_STACK=''
7226 if test x$enable_assembler = xyes ; then
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if globals are prefixed by underscore" >&5
7228 $as_echo_n "checking if globals are prefixed by underscore... " >&6; }
7229 if ${nettle_cv_asm_underscore+:} false; then :
7230 $as_echo_n "(cached) " >&6
7232 # Default is no underscore
7233 nettle_cv_asm_underscore=no
7234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235 /* end confdefs.h. */
7236 int a_global_symbol;
7238 if ac_fn_c_try_compile "$LINENO"; then :
7239 $NM conftest.$OBJEXT >conftest.out
7240 if grep _a_global_symbol conftest.out >/dev/null ; then
7241 nettle_cv_asm_underscore=yes
7242 elif grep a_global_symbol conftest.out >/dev/null ; then
7243 nettle_cv_asm_underscore=no
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: nm does not list a_global_symbol at all" >&5
7246 $as_echo "$as_me: WARNING: nm does not list a_global_symbol at all" >&2;}
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: test program with a single global could not be compiled!?" >&5
7250 $as_echo "$as_me: WARNING: test program with a single global could not be compiled!?" >&2;}
7252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_underscore" >&5
7255 $as_echo "$nettle_cv_asm_underscore" >&6; }
7256 if test x$nettle_cv_asm_underscore = xyes ; then
7257 ASM_SYMBOL_PREFIX='_'
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF-style .type,%function pseudo-ops" >&5
7261 $as_echo_n "checking for ELF-style .type,%function pseudo-ops... " >&6; }
7262 if ${nettle_cv_asm_type_percent_function+:} false; then :
7263 $as_echo_n "(cached) " >&6
7265 cat >conftest.s <<EOF
7273 .size foo, .Lend - foo
7276 gmp_assemble="$CC $CFLAGS $CPPFLAGS -c conftest.s >conftest.out 2>&1"
7277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
7278 (eval $gmp_assemble) 2>&5
7280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7281 test $ac_status = 0; }; then
7282 cat conftest.out >&5
7283 nettle_cv_asm_type_percent_function=yes
7285 cat conftest.out >&5
7286 echo "configure: failed program was:" >&5
7288 nettle_cv_asm_type_percent_function=no
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_type_percent_function" >&5
7294 $as_echo "$nettle_cv_asm_type_percent_function" >&6; }
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF-style .type,#function pseudo-ops" >&5
7297 $as_echo_n "checking for ELF-style .type,#function pseudo-ops... " >&6; }
7298 if ${nettle_cv_asm_type_hash_function+:} false; then :
7299 $as_echo_n "(cached) " >&6
7301 cat >conftest.s <<EOF
7309 .size foo, .Lend - foo
7312 gmp_assemble="$CC $CFLAGS $CPPFLAGS -c conftest.s >conftest.out 2>&1"
7313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
7314 (eval $gmp_assemble) 2>&5
7316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7317 test $ac_status = 0; }; then
7318 cat conftest.out >&5
7319 nettle_cv_asm_type_hash_function=yes
7321 cat conftest.out >&5
7322 echo "configure: failed program was:" >&5
7324 nettle_cv_asm_type_hash_function=no
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_type_hash_function" >&5
7330 $as_echo "$nettle_cv_asm_type_hash_function" >&6; }
7332 if test x$nettle_cv_asm_type_percent_function = xyes ; then
7334 ASM_TYPE_FUNCTION='%function'
7335 ASM_TYPE_PROGBITS='%progbits'
7337 if test x$nettle_cv_asm_type_hash_function = xyes ; then
7339 ASM_TYPE_FUNCTION='#function'
7340 ASM_TYPE_PROGBITS='#progbits'
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COFF-style .type directive" >&5
7345 $as_echo_n "checking for COFF-style .type directive... " >&6; }
7346 if ${nettle_cv_asm_coff_type+:} false; then :
7347 $as_echo_n "(cached) " >&6
7349 cat >conftest.s <<EOF
7360 gmp_assemble="$CC $CFLAGS $CPPFLAGS -c conftest.s >conftest.out 2>&1"
7361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
7362 (eval $gmp_assemble) 2>&5
7364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7365 test $ac_status = 0; }; then
7366 cat conftest.out >&5
7367 nettle_cv_asm_coff_type=yes
7369 cat conftest.out >&5
7370 echo "configure: failed program was:" >&5
7372 nettle_cv_asm_coff_type=no
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_coff_type" >&5
7378 $as_echo "$nettle_cv_asm_coff_type" >&6; }
7379 if test "x$nettle_cv_asm_coff_type" = "xyes" ; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use a .note.GNU-stack section" >&5
7384 $as_echo_n "checking if we should use a .note.GNU-stack section... " >&6; }
7385 if ${nettle_cv_asm_gnu_stack+:} false; then :
7386 $as_echo_n "(cached) " >&6
7389 nettle_cv_asm_gnu_stack=no
7391 cat >conftest.c <<EOF
7392 int foo() { return 0; }
7394 nettle_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >conftest.out 2>&1"
7395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$nettle_compile\""; } >&5
7396 (eval $nettle_compile) 2>&5
7398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7399 test $ac_status = 0; }; then
7400 cat conftest.out >&5
7401 $OBJDUMP -x conftest.o | grep '\.note\.GNU-stack' > /dev/null \
7402 && nettle_cv_asm_gnu_stack=yes
7404 cat conftest.out >&5
7405 echo "configure: failed program was:" >&5
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_gnu_stack" >&5
7411 $as_echo "$nettle_cv_asm_gnu_stack" >&6; }
7412 if test x$nettle_cv_asm_gnu_stack = xyes ; then
7413 ASM_MARK_NOEXEC_STACK='.section .note.GNU-stack,"",TYPE_PROGBITS'
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .align assembly directive is logarithmic" >&5
7417 $as_echo_n "checking if .align assembly directive is logarithmic... " >&6; }
7418 if ${nettle_cv_asm_align_log+:} false; then :
7419 $as_echo_n "(cached) " >&6
7421 cat >conftest.s <<EOF
7426 gmp_assemble="$CC $CFLAGS $CPPFLAGS -c conftest.s >conftest.out 2>&1"
7427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
7428 (eval $gmp_assemble) 2>&5
7430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7431 test $ac_status = 0; }; then
7432 cat conftest.out >&5
7433 nettle_cv_asm_align_log=yes
7435 cat conftest.out >&5
7436 echo "configure: failed program was:" >&5
7438 nettle_cv_asm_align_log=no
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_align_log" >&5
7444 $as_echo "$nettle_cv_asm_align_log" >&6; }
7445 ASM_ALIGN_LOG="$nettle_cv_asm_align_log"
7476 # Extract the first word of "m4", so it can be a program name with args.
7477 set dummy m4; ac_word=$2
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479 $as_echo_n "checking for $ac_word... " >&6; }
7480 if ${ac_cv_path_M4+:} false; then :
7481 $as_echo_n "(cached) " >&6
7485 ac_cv_path_M4="$M4" # Let the user override the test with a path.
7488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 test -z "$as_dir" && as_dir=.
7493 for ac_exec_ext in '' $ac_executable_extensions; do
7494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7495 ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext"
7496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7503 test -z "$ac_cv_path_M4" && ac_cv_path_M4="m4"
7508 if test -n "$M4"; then
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7510 $as_echo "$M4" >&6; }
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513 $as_echo "no" >&6; }
7520 if test "x$enable_public_key" = xyes ; then
7521 $as_echo "#define WITH_HOGWEED 1" >>confdefs.h
7528 if test "x$enable_static" = xyes ; then
7535 if test "x$enable_shared" = xyes ; then
7538 if test "x$ac_cv_lib_dl_dlopen" = xyes ; then
7546 # Documentation tools
7547 if test "x$enable_documentation" != "xno"; then
7548 # Extract the first word of "makeinfo", so it can be a program name with args.
7549 set dummy makeinfo; ac_word=$2
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7551 $as_echo_n "checking for $ac_word... " >&6; }
7552 if ${ac_cv_path_MAKEINFO+:} false; then :
7553 $as_echo_n "(cached) " >&6
7557 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564 test -z "$as_dir" && as_dir=.
7565 for ac_exec_ext in '' $ac_executable_extensions; do
7566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7567 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="not-found"
7579 MAKEINFO=$ac_cv_path_MAKEINFO
7580 if test -n "$MAKEINFO"; then
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7582 $as_echo "$MAKEINFO" >&6; }
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 $as_echo "no" >&6; }
7590 if test "x$MAKEINFO" != "xnot-found"; then
7591 enable_documentation=yes
7594 if test "x$enable_documentation" == "xauto" ; then
7595 enable_documentation=no
7597 as_fn_error $? "Cannot find 'makeinfo', required for documentation." "$LINENO" 5
7602 if test "x$enable_documentation" = "xyes" ; then
7605 IF_DOCUMENTATION='#'
7608 if test "x$enable_mini_gmp" = "xyes" ; then
7625 # Check for openssl's libcrypto (used only for benchmarking)
7626 if test x$enable_openssl = xyes ; then
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BF_ecb_encrypt in -lcrypto" >&5
7628 $as_echo_n "checking for BF_ecb_encrypt in -lcrypto... " >&6; }
7629 if ${ac_cv_lib_crypto_BF_ecb_encrypt+:} false; then :
7630 $as_echo_n "(cached) " >&6
7632 ac_check_lib_save_LIBS=$LIBS
7633 LIBS="-lcrypto $LIBS"
7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h. */
7637 /* Override any GCC internal prototype to avoid an error.
7638 Use char because int might match the return type of a GCC
7639 builtin and then its argument prototype would still apply. */
7643 char BF_ecb_encrypt ();
7647 return BF_ecb_encrypt ();
7652 if ac_fn_c_try_link "$LINENO"; then :
7653 ac_cv_lib_crypto_BF_ecb_encrypt=yes
7655 ac_cv_lib_crypto_BF_ecb_encrypt=no
7657 rm -f core conftest.err conftest.$ac_objext \
7658 conftest$ac_exeext conftest.$ac_ext
7659 LIBS=$ac_check_lib_save_LIBS
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BF_ecb_encrypt" >&5
7662 $as_echo "$ac_cv_lib_crypto_BF_ecb_encrypt" >&6; }
7663 if test "x$ac_cv_lib_crypto_BF_ecb_encrypt" = xyes; then :
7664 OPENSSL_LIBFLAGS='-lcrypto'
7672 if test x$enable_openssl = xyes ; then
7673 $as_echo "#define WITH_OPENSSL 1" >>confdefs.h
7681 # clock_gettime is in librt on *-*-osf5.1 and on glibc, so add -lrt to
7682 # BENCH_LIBS if needed. On linux (tested on x86_32, 2.6.26),
7683 # clock_getres reports ns accuracy, while in a quick test on osf
7684 # clock_getres said only 1 millisecond.
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
7688 $as_echo_n "checking for library containing clock_gettime... " >&6; }
7689 if ${ac_cv_search_clock_gettime+:} false; then :
7690 $as_echo_n "(cached) " >&6
7692 ac_func_search_save_LIBS=$LIBS
7693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694 /* end confdefs.h. */
7696 /* Override any GCC internal prototype to avoid an error.
7697 Use char because int might match the return type of a GCC
7698 builtin and then its argument prototype would still apply. */
7702 char clock_gettime ();
7706 return clock_gettime ();
7711 for ac_lib in '' rt; do
7712 if test -z "$ac_lib"; then
7713 ac_res="none required"
7716 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7718 if ac_fn_c_try_link "$LINENO"; then :
7719 ac_cv_search_clock_gettime=$ac_res
7721 rm -f core conftest.err conftest.$ac_objext \
7723 if ${ac_cv_search_clock_gettime+:} false; then :
7727 if ${ac_cv_search_clock_gettime+:} false; then :
7730 ac_cv_search_clock_gettime=no
7733 LIBS=$ac_func_search_save_LIBS
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
7736 $as_echo "$ac_cv_search_clock_gettime" >&6; }
7737 ac_res=$ac_cv_search_clock_gettime
7738 if test "$ac_res" != no; then :
7739 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7742 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
7751 # Set these flags *last*, or else the test programs won't compile
7752 if test x$GCC = xyes ; then
7753 # Using -ggdb3 makes (some versions of) Redhat's gcc-2.96 dump core
7754 if $CC --version | grep '^2\.96$' 1>/dev/null 2>&1; then
7757 CFLAGS="$CFLAGS -ggdb3"
7759 # FIXME: It would be better to actually test if this option works and/or is needed.
7760 # Or perhaps use -funsigned-char.
7761 if $CC --version | grep 'gcc.* 4\.' 1>/dev/null 2>&1; then
7762 CFLAGS="$CFLAGS -Wno-pointer-sign"
7764 CFLAGS="$CFLAGS -Wall -W \
7765 -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes \
7766 -Wpointer-arith -Wbad-function-cast -Wnested-externs"
7768 # Don't enable -Wcast-align as it results in tons of warnings in the
7769 # DES code. And when using stdio.
7770 # Don't enable -Waggregate-return, as that causes warnings for glibc
7774 ac_config_files="$ac_config_files config.make config.m4 Makefile version.h"
7776 ac_config_files="$ac_config_files tools/Makefile testsuite/Makefile examples/Makefile"
7778 ac_config_files="$ac_config_files nettle.pc hogweed.pc libnettle.map libhogweed.map"
7781 cat >confcache <<\_ACEOF
7782 # This file is a shell script that caches the results of configure
7783 # tests run on this system so they can be shared between configure
7784 # scripts and configure runs, see configure's option --config-cache.
7785 # It is not useful on other systems. If it contains results you don't
7786 # want to keep, you may remove or edit it.
7788 # config.status only pays attention to the cache file if you give it
7789 # the --recheck option to rerun configure.
7791 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7792 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7797 # The following way of writing the cache mishandles newlines in values,
7798 # but we know of no workaround that is simple, portable, and efficient.
7799 # So, we kill variables containing newlines.
7800 # Ultrix sh set writes to stderr and can't be redirected directly,
7801 # and sets the high bit in the cache file unless we assign to the vars.
7803 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7804 eval ac_val=\$$ac_var
7808 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7809 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7812 _ | IFS | as_nl) ;; #(
7813 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7814 *) { eval $ac_var=; unset $ac_var;} ;;
7820 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7821 *${as_nl}ac_space=\ *)
7822 # `set' does not quote correctly, so add quotes: double-quote
7823 # substitution turns \\\\ into \\, and sed turns \\ into \.
7826 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7829 # `set' quotes correctly as required by POSIX, so do not add quotes.
7830 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7839 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7841 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7843 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7844 if test -w "$cache_file"; then
7845 if test "x$cache_file" != "x/dev/null"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7847 $as_echo "$as_me: updating cache $cache_file" >&6;}
7848 if test ! -f "$cache_file" || test -h "$cache_file"; then
7849 cat confcache >"$cache_file"
7851 case $cache_file in #(
7853 mv -f confcache "$cache_file"$$ &&
7854 mv -f "$cache_file"$$ "$cache_file" ;; #(
7856 mv -f confcache "$cache_file" ;;
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7862 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7867 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7868 # Let make expand exec_prefix.
7869 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7871 DEFS=-DHAVE_CONFIG_H
7876 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7877 # 1. Remove the extension, and $U if already installed.
7878 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7879 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7880 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7881 # will be set to the directory where LIBOBJS objects are built.
7882 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7883 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7887 LTLIBOBJS=$ac_ltlibobjs
7892 : "${CONFIG_STATUS=./config.status}"
7894 ac_clean_files_save=$ac_clean_files
7895 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7897 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7899 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7901 # Generated by $as_me.
7902 # Run this file to recreate the current configuration.
7903 # Compiler output produced by configure, useful for debugging
7904 # configure, is in config.log if it exists.
7910 SHELL=\${CONFIG_SHELL-$SHELL}
7913 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7914 ## -------------------- ##
7915 ## M4sh Initialization. ##
7916 ## -------------------- ##
7918 # Be more Bourne compatible
7919 DUALCASE=1; export DUALCASE # for MKS sh
7920 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7923 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7924 # is contrary to our usage. Disable this feature.
7925 alias -g '${1+"$@"}'='"$@"'
7926 setopt NO_GLOB_SUBST
7928 case `(set -o) 2>/dev/null` in #(
7940 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7941 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7942 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7943 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7944 # Prefer a ksh shell builtin over an external printf program on Solaris,
7945 # but without wasting forks for bash or zsh.
7946 if test -z "$BASH_VERSION$ZSH_VERSION" \
7947 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7948 as_echo='print -r --'
7949 as_echo_n='print -rn --'
7950 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7951 as_echo='printf %s\n'
7952 as_echo_n='printf %s'
7954 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7955 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7956 as_echo_n='/usr/ucb/echo -n'
7958 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7959 as_echo_n_body='eval
7963 expr "X$arg" : "X\\(.*\\)$as_nl";
7964 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7966 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7968 export as_echo_n_body
7969 as_echo_n='sh -c $as_echo_n_body as_echo'
7972 as_echo='sh -c $as_echo_body as_echo'
7975 # The user is always right.
7976 if test "${PATH_SEPARATOR+set}" != set; then
7978 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7979 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7986 # We need space, tab and new line, in precisely that order. Quoting is
7987 # there to prevent editors from complaining about space-tab.
7988 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7989 # splitting by setting IFS to empty value.)
7992 # Find who we are. Look in the path if we contain no directory separator.
7995 *[\\/]* ) as_myself=$0 ;;
7996 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000 test -z "$as_dir" && as_dir=.
8001 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8007 # We did not find ourselves, most probably we were run as `sh COMMAND'
8008 # in which case we are not to be found in the path.
8009 if test "x$as_myself" = x; then
8012 if test ! -f "$as_myself"; then
8013 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8017 # Unset variables that we do not need and which cause bugs (e.g. in
8018 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8019 # suppresses any "Segmentation fault" message there. '((' could
8020 # trigger a bug in pdksh 5.2.14.
8021 for as_var in BASH_ENV ENV MAIL MAILPATH
8022 do eval test x\${$as_var+set} = xset \
8023 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8036 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8039 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8040 # ----------------------------------------
8041 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8042 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8043 # script with STATUS, using 1 if that was 0.
8046 as_status=$1; test $as_status -eq 0 && as_status=1
8048 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8049 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8051 $as_echo "$as_me: error: $2" >&2
8052 as_fn_exit $as_status
8056 # as_fn_set_status STATUS
8057 # -----------------------
8058 # Set $? to STATUS, without forking.
8062 } # as_fn_set_status
8066 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8076 # Portably unset VAR.
8079 { eval $1=; unset $1;}
8081 as_unset=as_fn_unset
8082 # as_fn_append VAR VALUE
8083 # ----------------------
8084 # Append the text in VALUE to the end of the definition contained in VAR. Take
8085 # advantage of any shell optimizations that allow amortized linear growth over
8086 # repeated appends, instead of the typical quadratic growth present in naive
8088 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8089 eval 'as_fn_append ()
8100 # as_fn_arith ARG...
8101 # ------------------
8102 # Perform arithmetic evaluation on the ARGs, and store the result in the
8103 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8104 # must be portable across $(()) and expr.
8105 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8106 eval 'as_fn_arith ()
8113 as_val=`expr "$@" || test $? -eq 1`
8118 if expr a : '\(a\)' >/dev/null 2>&1 &&
8119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8126 as_basename=basename
8131 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8137 as_me=`$as_basename -- "$0" ||
8138 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8139 X"$0" : 'X\(//\)$' \| \
8140 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8142 sed '/^.*\/\([^/][^/]*\)\/*$/{
8156 # Avoid depending upon Character Ranges.
8157 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8158 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8159 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8160 as_cr_digits='0123456789'
8161 as_cr_alnum=$as_cr_Letters$as_cr_digits
8163 ECHO_C= ECHO_N= ECHO_T=
8164 case `echo -n x` in #(((((
8166 case `echo 'xy\c'` in
8167 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8169 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8176 rm -f conf$$ conf$$.exe conf$$.file
8177 if test -d conf$$.dir; then
8178 rm -f conf$$.dir/conf$$.file
8181 mkdir conf$$.dir 2>/dev/null
8183 if (echo >conf$$.file) 2>/dev/null; then
8184 if ln -s conf$$.file conf$$ 2>/dev/null; then
8186 # ... but there are two gotchas:
8187 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8188 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8189 # In both cases, we have to default to `cp -pR'.
8190 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8192 elif ln conf$$.file conf$$ 2>/dev/null; then
8200 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8201 rmdir conf$$.dir 2>/dev/null
8206 # Create "$as_dir" as a directory, including parents if necessary.
8211 -*) as_dir=./$as_dir;;
8213 test -d "$as_dir" || eval $as_mkdir_p || {
8217 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8218 *) as_qdir=$as_dir;;
8220 as_dirs="'$as_qdir' $as_dirs"
8221 as_dir=`$as_dirname -- "$as_dir" ||
8222 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8223 X"$as_dir" : 'X\(//\)[^/]' \| \
8224 X"$as_dir" : 'X\(//\)$' \| \
8225 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8226 $as_echo X"$as_dir" |
8227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8244 test -d "$as_dir" && break
8246 test -z "$as_dirs" || eval "mkdir $as_dirs"
8247 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8251 if mkdir -p . 2>/dev/null; then
8252 as_mkdir_p='mkdir -p "$as_dir"'
8254 test -d ./-p && rmdir ./-p
8259 # as_fn_executable_p FILE
8260 # -----------------------
8261 # Test if FILE is an executable regular file.
8262 as_fn_executable_p ()
8264 test -f "$1" && test -x "$1"
8265 } # as_fn_executable_p
8267 as_executable_p=as_fn_executable_p
8269 # Sed expression to map a string onto a valid CPP name.
8270 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8272 # Sed expression to map a string onto a valid variable name.
8273 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8277 ## ----------------------------------- ##
8278 ## Main body of $CONFIG_STATUS script. ##
8279 ## ----------------------------------- ##
8281 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8284 # Save the log message, to keep $0 and so on meaningful, and to
8285 # report actual input values of CONFIG_FILES etc. instead of their
8286 # values after options handling.
8288 This file was extended by nettle $as_me 3.2, which was
8289 generated by GNU Autoconf 2.69. Invocation command line was
8291 CONFIG_FILES = $CONFIG_FILES
8292 CONFIG_HEADERS = $CONFIG_HEADERS
8293 CONFIG_LINKS = $CONFIG_LINKS
8294 CONFIG_COMMANDS = $CONFIG_COMMANDS
8297 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8302 case $ac_config_files in *"
8303 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8306 case $ac_config_headers in *"
8307 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8312 # Files that config.status was made for.
8313 config_files="$ac_config_files"
8314 config_headers="$ac_config_headers"
8315 config_links="$ac_config_links"
8316 config_commands="$ac_config_commands"
8320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8322 \`$as_me' instantiates files and other configuration actions
8323 from templates according to the current configuration. Unless the files
8324 and actions are specified as TAGs, all are instantiated by default.
8326 Usage: $0 [OPTION]... [TAG]...
8328 -h, --help print this help, then exit
8329 -V, --version print version number and configuration settings, then exit
8330 --config print configuration, then exit
8331 -q, --quiet, --silent
8332 do not print progress messages
8333 -d, --debug don't remove temporary files
8334 --recheck update $as_me by reconfiguring in the same conditions
8335 --file=FILE[:TEMPLATE]
8336 instantiate the configuration file FILE
8337 --header=FILE[:TEMPLATE]
8338 instantiate the configuration header FILE
8340 Configuration files:
8343 Configuration headers:
8346 Configuration links:
8349 Configuration commands:
8352 Report bugs to <nettle-bugs@lists.lysator.liu.se>."
8355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8356 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8358 nettle config.status 3.2
8359 configured by $0, generated by GNU Autoconf 2.69,
8360 with options \\"\$ac_cs_config\\"
8362 Copyright (C) 2012 Free Software Foundation, Inc.
8363 This config.status script is free software; the Free Software Foundation
8364 gives unlimited permission to copy, distribute and modify it."
8370 test -n "\$AWK" || AWK=awk
8373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8374 # The default lists apply if the user does not specify any file.
8380 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8381 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8385 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8397 # Handling of the options.
8398 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8400 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8401 $as_echo "$ac_cs_version"; exit ;;
8402 --config | --confi | --conf | --con | --co | --c )
8403 $as_echo "$ac_cs_config"; exit ;;
8404 --debug | --debu | --deb | --de | --d | -d )
8406 --file | --fil | --fi | --f )
8409 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8410 '') as_fn_error $? "missing file argument" ;;
8412 as_fn_append CONFIG_FILES " '$ac_optarg'"
8413 ac_need_defaults=false;;
8414 --header | --heade | --head | --hea )
8417 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8419 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8420 ac_need_defaults=false;;
8422 # Conflict between --help and --header
8423 as_fn_error $? "ambiguous option: \`$1'
8424 Try \`$0 --help' for more information.";;
8425 --help | --hel | -h )
8426 $as_echo "$ac_cs_usage"; exit ;;
8427 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8428 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8432 -*) as_fn_error $? "unrecognized option: \`$1'
8433 Try \`$0 --help' for more information." ;;
8435 *) as_fn_append ac_config_targets " $1"
8436 ac_need_defaults=false ;;
8442 ac_configure_extra_args=
8444 if $ac_cs_silent; then
8446 ac_configure_extra_args="$ac_configure_extra_args --silent"
8450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8451 if \$ac_cs_recheck; then
8452 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8454 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8455 CONFIG_SHELL='$SHELL'
8461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8465 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8466 ## Running $as_me. ##
8472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8476 # variables for create stdint.h replacement
8479 ac_stdint_h="$ac_stdint_h"
8480 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
8481 ac_cv_stdint_message="$ac_cv_stdint_message"
8482 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
8483 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
8484 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
8485 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
8486 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
8487 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
8488 ac_cv_stdint_char_model="$ac_cv_stdint_char_model"
8489 ac_cv_stdint_long_model="$ac_cv_stdint_long_model"
8490 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
8491 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
8492 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
8497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8499 # Handling of arguments.
8500 for ac_config_target in $ac_config_targets
8502 case $ac_config_target in
8503 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8504 "dummy-dep-files") CONFIG_COMMANDS="$CONFIG_COMMANDS dummy-dep-files" ;;
8505 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
8506 "$tmp_f") CONFIG_LINKS="$CONFIG_LINKS $tmp_f:$asm_dir/$tmp_f" ;;
8507 "$tmp_n") CONFIG_LINKS="$CONFIG_LINKS $tmp_n:$asm_dir/$tmp_n" ;;
8508 "$tmp_h") CONFIG_LINKS="$CONFIG_LINKS $tmp_h:$asm_dir/$tmp_h" ;;
8509 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
8510 "config.m4") CONFIG_FILES="$CONFIG_FILES config.m4" ;;
8511 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8512 "version.h") CONFIG_FILES="$CONFIG_FILES version.h" ;;
8513 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
8514 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
8515 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
8516 "nettle.pc") CONFIG_FILES="$CONFIG_FILES nettle.pc" ;;
8517 "hogweed.pc") CONFIG_FILES="$CONFIG_FILES hogweed.pc" ;;
8518 "libnettle.map") CONFIG_FILES="$CONFIG_FILES libnettle.map" ;;
8519 "libhogweed.map") CONFIG_FILES="$CONFIG_FILES libhogweed.map" ;;
8521 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8526 # If the user did not use the arguments to specify the items to instantiate,
8527 # then the envvar interface is used. Set only those that are not.
8528 # We use the long form for the default assignment because of an extremely
8529 # bizarre bug on SunOS 4.1.3.
8530 if $ac_need_defaults; then
8531 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8532 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8533 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
8534 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8537 # Have a temporary directory for convenience. Make it in the build tree
8538 # simply because there is no reason against having it here, and in addition,
8539 # creating and moving files from /tmp can sometimes cause problems.
8540 # Hook for its removal unless debugging.
8541 # Note that there is a small window in which the directory will not be cleaned:
8542 # after its creation but before its name has been assigned to `$tmp'.
8546 trap 'exit_status=$?
8548 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8550 trap 'as_fn_exit 1' 1 2 13 15
8552 # Create a (secure) tmp directory for tmp files.
8555 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8559 tmp=./conf$$-$RANDOM
8560 (umask 077 && mkdir "$tmp")
8561 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8564 # Set up the scripts for CONFIG_FILES section.
8565 # No need to generate them if there are no CONFIG_FILES.
8566 # This happens for instance with `./config.status config.h'.
8567 if test -n "$CONFIG_FILES"; then
8570 ac_cr=`echo X | tr X '\015'`
8571 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8572 # But we know of no other shell where ac_cr would be empty at this
8573 # point, so we can use a bashism as a fallback.
8574 if test "x$ac_cr" = x; then
8575 eval ac_cr=\$\'\\r\'
8577 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8578 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8584 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8589 echo "cat >conf$$subs.awk <<_ACEOF" &&
8590 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8593 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8594 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8596 for ac_last_try in false false false false false :; do
8597 . ./conf$$subs.sh ||
8598 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8600 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8601 if test $ac_delim_n = $ac_delim_num; then
8603 elif $ac_last_try; then
8604 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8606 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8612 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8616 s/^/S["/; s/!.*/"]=/
8626 s/\(.\{148\}\)..*/\1/
8628 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8633 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8640 s/\(.\{148\}\)..*/\1/
8642 s/["\\]/\\&/g; s/^/"/; s/$/"/
8646 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8651 ' <conf$$subs.awk | sed '
8656 ' >>$CONFIG_STATUS || ac_write_fail=1
8657 rm -f conf$$subs.awk
8658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8660 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8661 for (key in S) S_is_set[key] = 1
8667 nfields = split(line, field, "@")
8669 len = length(field[1])
8670 for (i = 2; i < nfields; i++) {
8672 keylen = length(key)
8673 if (S_is_set[key]) {
8675 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8676 len += length(value) + length(field[++i])
8687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8688 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8689 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8692 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8693 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8696 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8697 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8698 # trailing colons and then remove the whole line if VPATH becomes empty
8699 # (actually we leave an empty line to preserve line numbers).
8700 if test "x$srcdir" = x.; then
8701 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8720 fi # test -n "$CONFIG_FILES"
8722 # Set up the scripts for CONFIG_HEADERS section.
8723 # No need to generate them if there are no CONFIG_HEADERS.
8724 # This happens for instance with `./config.status Makefile'.
8725 if test -n "$CONFIG_HEADERS"; then
8726 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8730 # Transform confdefs.h into an awk script `defines.awk', embedded as
8731 # here-document in config.status, that substitutes the proper values into
8732 # config.h.in to produce config.h.
8734 # Create a delimiter string that does not exist in confdefs.h, to ease
8735 # handling of long lines.
8737 for ac_last_try in false false :; do
8738 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8739 if test -z "$ac_tt"; then
8741 elif $ac_last_try; then
8742 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8744 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8748 # For the awk script, D is an array of macro values keyed by name,
8749 # likewise P contains macro parameters if any. Preserve backslash
8750 # newline sequences.
8752 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8754 s/.\{148\}/&'"$ac_delim"'/g
8757 s/^[ ]*#[ ]*define[ ][ ]*/ /
8764 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8766 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8770 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8771 D["\1"]=" \3\\\\\\n"\\/p
8773 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8778 s/.\{148\}/&'"$ac_delim"'/g
8783 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8786 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8788 ' <confdefs.h | sed '
8789 s/'"$ac_delim"'/"\\\
8790 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8793 for (key in D) D_is_set[key] = 1
8796 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8798 split(line, arg, " ")
8799 if (arg[1] == "#") {
8803 defundef = substr(arg[1], 2)
8806 split(mac1, mac2, "(") #)
8808 prefix = substr(line, 1, index(line, defundef) - 1)
8809 if (D_is_set[macro]) {
8810 # Preserve the white space surrounding the "#".
8811 print prefix "define", macro P[macro] D[macro]
8814 # Replace #undef with comments. This is necessary, for example,
8815 # in the case of _POSIX_SOURCE, which is predefined and required
8816 # on some systems where configure will not decide to define it.
8817 if (defundef == "undef") {
8818 print "/*", prefix defundef, macro, "*/"
8826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8827 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8828 fi # test -n "$CONFIG_HEADERS"
8831 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
8836 :[FHLC]) ac_mode=$ac_tag; continue;;
8838 case $ac_mode$ac_tag in
8840 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8841 :[FH]-) ac_tag=-:-;;
8842 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8859 -) ac_f="$ac_tmp/stdin";;
8860 *) # Look for the file first in the build tree, then in the source tree
8861 # (if the path is not absolute). The absolute path cannot be DOS-style,
8862 # because $ac_f cannot contain `:'.
8866 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8868 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8870 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8871 as_fn_append ac_file_inputs " '$ac_f'"
8874 # Let's still pretend it is `configure' which instantiates (i.e., don't
8875 # use $as_me), people would be surprised to read:
8876 # /* config.h. Generated by config.status. */
8877 configure_input='Generated from '`
8878 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8880 if test x"$ac_file" != x-; then
8881 configure_input="$ac_file. $configure_input"
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8883 $as_echo "$as_me: creating $ac_file" >&6;}
8885 # Neutralize special characters interpreted by sed in replacement strings.
8886 case $configure_input in #(
8887 *\&* | *\|* | *\\* )
8888 ac_sed_conf_input=`$as_echo "$configure_input" |
8889 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8890 *) ac_sed_conf_input=$configure_input;;
8894 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8895 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8900 ac_dir=`$as_dirname -- "$ac_file" ||
8901 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8902 X"$ac_file" : 'X\(//\)[^/]' \| \
8903 X"$ac_file" : 'X\(//\)$' \| \
8904 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8905 $as_echo X"$ac_file" |
8906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8923 as_dir="$ac_dir"; as_fn_mkdir_p
8927 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8929 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8930 # A ".." for each directory in $ac_dir_suffix.
8931 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8932 case $ac_top_builddir_sub in
8933 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8934 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8937 ac_abs_top_builddir=$ac_pwd
8938 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8939 # for backward compatibility:
8940 ac_top_builddir=$ac_top_build_prefix
8943 .) # We are building in place.
8945 ac_top_srcdir=$ac_top_builddir_sub
8946 ac_abs_top_srcdir=$ac_pwd ;;
8947 [\\/]* | ?:[\\/]* ) # Absolute name.
8948 ac_srcdir=$srcdir$ac_dir_suffix;
8949 ac_top_srcdir=$srcdir
8950 ac_abs_top_srcdir=$srcdir ;;
8952 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8953 ac_top_srcdir=$ac_top_build_prefix$srcdir
8954 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8956 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8966 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8967 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8971 [\\/$]* | ?:[\\/]* ) ;;
8972 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8977 # If the template does not know about datarootdir, expand it.
8978 # FIXME: This hack should be removed a few years after 2.60.
8979 ac_datarootdir_hack=; ac_datarootdir_seen=
8990 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8991 *datarootdir*) ac_datarootdir_seen=yes;;
8992 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8994 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8997 ac_datarootdir_hack='
8998 s&@datadir@&$datadir&g
8999 s&@docdir@&$docdir&g
9000 s&@infodir@&$infodir&g
9001 s&@localedir@&$localedir&g
9002 s&@mandir@&$mandir&g
9003 s&\\\${datarootdir}&$datarootdir&g' ;;
9007 # Neutralize VPATH when `$srcdir' = `.'.
9008 # Shell code in configure.ac might set extrasub.
9009 # FIXME: do we really want to maintain this feature?
9010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9011 ac_sed_extra="$ac_vpsub
9014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9016 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9017 s|@configure_input@|$ac_sed_conf_input|;t t
9018 s&@top_builddir@&$ac_top_builddir_sub&;t t
9019 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9020 s&@srcdir@&$ac_srcdir&;t t
9021 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9022 s&@top_srcdir@&$ac_top_srcdir&;t t
9023 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9024 s&@builddir@&$ac_builddir&;t t
9025 s&@abs_builddir@&$ac_abs_builddir&;t t
9026 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9027 s&@INSTALL@&$ac_INSTALL&;t t
9028 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9029 $ac_datarootdir_hack
9031 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9032 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9034 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9035 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9036 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9037 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9039 which seems to be undefined. Please make sure it is defined" >&5
9040 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9041 which seems to be undefined. Please make sure it is defined" >&2;}
9043 rm -f "$ac_tmp/stdin"
9045 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9046 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9048 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9054 if test x"$ac_file" != x-; then
9056 $as_echo "/* $configure_input */" \
9057 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9058 } >"$ac_tmp/config.h" \
9059 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9060 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9062 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9065 mv "$ac_tmp/config.h" "$ac_file" \
9066 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9069 $as_echo "/* $configure_input */" \
9070 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9071 || as_fn_error $? "could not create -" "$LINENO" 5
9079 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
9082 # Prefer the file from the source tree if names are identical.
9083 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
9084 ac_source=$srcdir/$ac_source
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
9088 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
9090 if test ! -r "$ac_source"; then
9091 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
9095 # Try a relative symlink, then a hard link, then a copy.
9097 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
9098 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
9100 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
9101 ln "$ac_source" "$ac_file" 2>/dev/null ||
9102 cp -p "$ac_source" "$ac_file" ||
9103 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
9106 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9107 $as_echo "$as_me: executing $ac_file commands" >&6;}
9112 case $ac_file$ac_mode in
9113 "dummy-dep-files":C) (cd "$srcdir" && find . '(' -name '*.c' -o -name '*.cxx' ')' -print) \
9114 | sed 's/\.cx*$//' | (while read f; do \
9115 test -f "$f.o.d" || echo > "$f.o.d"; \
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
9120 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
9121 ac_stdint=$tmp/_stdint.h
9123 echo "#ifndef" $_ac_stdint_h >$ac_stdint
9124 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
9125 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
9126 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
9127 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
9128 if test "_$ac_cv_header_stdint_t" != "_" ; then
9129 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
9132 cat >>$ac_stdint <<STDINT_EOF
9134 /* ................... shortcircuit part ........................... */
9136 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
9141 /* .................... configured part ............................ */
9145 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
9146 if test "_$ac_cv_header_stdint_x" != "_" ; then
9147 ac_header="$ac_cv_header_stdint_x"
9148 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
9150 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
9153 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
9154 if test "_$ac_cv_header_stdint_o" != "_" ; then
9155 ac_header="$ac_cv_header_stdint_o"
9156 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
9158 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
9161 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
9162 if test "_$ac_cv_header_stdint_u" != "_" ; then
9163 ac_header="$ac_cv_header_stdint_u"
9164 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
9166 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
9169 echo "" >>$ac_stdint
9171 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
9172 echo "#include <$ac_header>" >>$ac_stdint
9173 echo "" >>$ac_stdint
9176 echo "/* which 64bit typedef has been found */" >>$ac_stdint
9177 if test "$ac_cv_type_uint64_t" = "yes" ; then
9178 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
9180 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
9182 if test "$ac_cv_type_u_int64_t" = "yes" ; then
9183 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
9185 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
9187 echo "" >>$ac_stdint
9189 echo "/* which type model has been detected */" >>$ac_stdint
9190 if test "_$ac_cv_stdint_char_model" != "_" ; then
9191 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_stdint_char_model" >>$ac_stdint
9192 echo "#define _STDINT_LONG_MODEL" "$ac_cv_stdint_long_model" >>$ac_stdint
9194 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
9195 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
9197 echo "" >>$ac_stdint
9199 echo "/* whether int_least types were detected */" >>$ac_stdint
9200 if test "$ac_cv_type_int_least32_t" = "yes"; then
9201 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
9203 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
9205 echo "/* whether int_fast types were detected */" >>$ac_stdint
9206 if test "$ac_cv_type_int_fast32_t" = "yes"; then
9207 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
9209 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
9211 echo "/* whether intmax_t type was detected */" >>$ac_stdint
9212 if test "$ac_cv_type_intmax_t" = "yes"; then
9213 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
9215 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
9217 echo "" >>$ac_stdint
9219 cat >>$ac_stdint <<STDINT_EOF
9220 /* .................... detections part ............................ */
9222 /* whether we need to define bitspecific types from compiler base types */
9223 #ifndef _STDINT_HEADER_INTPTR
9224 #ifndef _STDINT_HEADER_UINT32
9225 #ifndef _STDINT_HEADER_U_INT32
9226 #define _STDINT_NEED_INT_MODEL_T
9228 #define _STDINT_HAVE_U_INT_TYPES
9233 #ifdef _STDINT_HAVE_U_INT_TYPES
9234 #undef _STDINT_NEED_INT_MODEL_T
9237 #ifdef _STDINT_CHAR_MODEL
9238 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
9239 #ifndef _STDINT_BYTE_MODEL
9240 #define _STDINT_BYTE_MODEL 12
9245 #ifndef _STDINT_HAVE_INT_LEAST32_T
9246 #define _STDINT_NEED_INT_LEAST_T
9249 #ifndef _STDINT_HAVE_INT_FAST32_T
9250 #define _STDINT_NEED_INT_FAST_T
9253 #ifndef _STDINT_HEADER_INTPTR
9254 #define _STDINT_NEED_INTPTR_T
9255 #ifndef _STDINT_HAVE_INTMAX_T
9256 #define _STDINT_NEED_INTMAX_T
9261 /* .................... definition part ............................ */
9263 /* some system headers have good uint64_t */
9264 #ifndef _HAVE_UINT64_T
9265 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
9266 #define _HAVE_UINT64_T
9267 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
9268 #define _HAVE_UINT64_T
9269 typedef u_int64_t uint64_t;
9273 #ifndef _HAVE_UINT64_T
9274 /* .. here are some common heuristics using compiler runtime specifics */
9275 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
9276 #define _HAVE_UINT64_T
9277 typedef long long int64_t;
9278 typedef unsigned long long uint64_t;
9280 #elif !defined __STRICT_ANSI__
9281 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
9282 #define _HAVE_UINT64_T
9283 typedef __int64 int64_t;
9284 typedef unsigned __int64 uint64_t;
9286 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
9287 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
9288 #if !defined _NO_LONGLONG
9289 #define _HAVE_UINT64_T
9290 typedef long long int64_t;
9291 typedef unsigned long long uint64_t;
9294 #elif defined __alpha || (defined __mips && defined _ABIN32)
9295 #if !defined _NO_LONGLONG
9296 typedef long int64_t;
9297 typedef unsigned long uint64_t;
9299 /* compiler/cpu type to define int64_t */
9304 #if defined _STDINT_HAVE_U_INT_TYPES
9305 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
9306 typedef u_int8_t uint8_t;
9307 typedef u_int16_t uint16_t;
9308 typedef u_int32_t uint32_t;
9310 /* glibc compatibility */
9311 #ifndef __int8_t_defined
9312 #define __int8_t_defined
9316 #ifdef _STDINT_NEED_INT_MODEL_T
9317 /* we must guess all the basic types. Apart from byte-adressable system, */
9318 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
9319 /* (btw, those nibble-addressable systems are way off, or so we assume) */
9322 #if defined _STDINT_BYTE_MODEL
9323 #if _STDINT_LONG_MODEL+0 == 242
9324 /* 2:4:2 = IP16 = a normal 16-bit system */
9325 typedef unsigned char uint8_t;
9326 typedef unsigned short uint16_t;
9327 typedef unsigned long uint32_t;
9328 #ifndef __int8_t_defined
9329 #define __int8_t_defined
9330 typedef char int8_t;
9331 typedef short int16_t;
9332 typedef long int32_t;
9334 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
9335 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
9336 /* 4:4:4 = ILP32 = a normal 32-bit system */
9337 typedef unsigned char uint8_t;
9338 typedef unsigned short uint16_t;
9339 typedef unsigned int uint32_t;
9340 #ifndef __int8_t_defined
9341 #define __int8_t_defined
9342 typedef char int8_t;
9343 typedef short int16_t;
9344 typedef int int32_t;
9346 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
9347 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
9348 /* 4:8:8 = LP64 = a normal 64-bit system */
9349 typedef unsigned char uint8_t;
9350 typedef unsigned short uint16_t;
9351 typedef unsigned int uint32_t;
9352 #ifndef __int8_t_defined
9353 #define __int8_t_defined
9354 typedef char int8_t;
9355 typedef short int16_t;
9356 typedef int int32_t;
9358 /* this system has a "long" of 64bit */
9359 #ifndef _HAVE_UINT64_T
9360 #define _HAVE_UINT64_T
9361 typedef unsigned long uint64_t;
9362 typedef long int64_t;
9364 #elif _STDINT_LONG_MODEL+0 == 448
9365 /* LLP64 a 64-bit system derived from a 32-bit system */
9366 typedef unsigned char uint8_t;
9367 typedef unsigned short uint16_t;
9368 typedef unsigned int uint32_t;
9369 #ifndef __int8_t_defined
9370 #define __int8_t_defined
9371 typedef char int8_t;
9372 typedef short int16_t;
9373 typedef int int32_t;
9375 /* assuming the system has a "long long" */
9376 #ifndef _HAVE_UINT64_T
9377 #define _HAVE_UINT64_T
9378 typedef unsigned long long uint64_t;
9379 typedef long long int64_t;
9382 #define _STDINT_NO_INT32_T
9385 #define _STDINT_NO_INT8_T
9386 #define _STDINT_NO_INT32_T
9391 * quote from SunOS-5.8 sys/inttypes.h:
9392 * Use at your own risk. As of February 1996, the committee is squarely
9393 * behind the fixed sized types; the "least" and "fast" types are still being
9394 * discussed. The probability that the "fast" types may be removed before
9395 * the standard is finalized is high enough that they are not currently
9399 #if defined _STDINT_NEED_INT_LEAST_T
9400 typedef int8_t int_least8_t;
9401 typedef int16_t int_least16_t;
9402 typedef int32_t int_least32_t;
9403 #ifdef _HAVE_UINT64_T
9404 typedef int64_t int_least64_t;
9407 typedef uint8_t uint_least8_t;
9408 typedef uint16_t uint_least16_t;
9409 typedef uint32_t uint_least32_t;
9410 #ifdef _HAVE_UINT64_T
9411 typedef uint64_t uint_least64_t;
9416 #if defined _STDINT_NEED_INT_FAST_T
9417 typedef int8_t int_fast8_t;
9418 typedef int int_fast16_t;
9419 typedef int32_t int_fast32_t;
9420 #ifdef _HAVE_UINT64_T
9421 typedef int64_t int_fast64_t;
9424 typedef uint8_t uint_fast8_t;
9425 typedef unsigned uint_fast16_t;
9426 typedef uint32_t uint_fast32_t;
9427 #ifdef _HAVE_UINT64_T
9428 typedef uint64_t uint_fast64_t;
9433 #ifdef _STDINT_NEED_INTMAX_T
9434 #ifdef _HAVE_UINT64_T
9435 typedef int64_t intmax_t;
9436 typedef uint64_t uintmax_t;
9438 typedef long intmax_t;
9439 typedef unsigned long uintmax_t;
9443 #ifdef _STDINT_NEED_INTPTR_T
9444 #ifndef __intptr_t_defined
9445 #define __intptr_t_defined
9446 /* we encourage using "long" to store pointer values, never use "int" ! */
9447 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
9448 typedef unsigned int uintptr_t;
9449 typedef int intptr_t;
9450 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
9451 typedef unsigned long uintptr_t;
9452 typedef long intptr_t;
9453 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
9454 typedef uint64_t uintptr_t;
9455 typedef int64_t intptr_t;
9456 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
9457 typedef unsigned long uintptr_t;
9458 typedef long intptr_t;
9469 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
9471 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
9473 ac_dir=`$as_dirname -- "$ac_stdint_h" ||
9474 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9475 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
9476 X"$ac_stdint_h" : 'X\(//\)$' \| \
9477 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
9478 $as_echo X"$ac_stdint_h" |
9479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9496 as_dir="$ac_dir"; as_fn_mkdir_p
9498 mv $ac_stdint $ac_stdint_h
9508 ac_clean_files=$ac_clean_files_save
9510 test $ac_write_fail = 0 ||
9511 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9514 # configure is writing to config.log, and then calls config.status.
9515 # config.status does its own redirection, appending to config.log.
9516 # Unfortunately, on DOS this fails, as config.log is still kept open
9517 # by configure, so config.status won't be able to write to it; its
9518 # output is simply discarded. So we exec the FD to /dev/null,
9519 # effectively closing config.log, so it can be properly (re)opened and
9520 # appended to by config.status. When coming back to configure, we
9521 # need to make the FD available again.
9522 if test "$no_create" != yes; then
9524 ac_config_status_args=
9525 test "$silent" = yes &&
9526 ac_config_status_args="$ac_config_status_args --quiet"
9528 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9530 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9531 # would make configure fail if this is the last instruction.
9532 $ac_cs_success || as_fn_exit 1
9534 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9536 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
9542 Version: ${PACKAGE_STRING}
9545 Assembly files: ${asm_path:-none}
9546 Install prefix: ${prefix}
9547 Library directory: ${libdir}
9549 Static libraries: ${enable_static}
9550 Shared libraries: ${enable_shared}
9551 Public key crypto: ${enable_public_key}
9552 Using mini-gmp: ${enable_mini_gmp}
9553 Documentation: ${enable_documentation}
9555 $as_echo "$as_me: summary of build options:
9557 Version: ${PACKAGE_STRING}
9560 Assembly files: ${asm_path:-none}
9561 Install prefix: ${prefix}
9562 Library directory: ${libdir}
9564 Static libraries: ${enable_static}
9565 Shared libraries: ${enable_shared}
9566 Public key crypto: ${enable_public_key}
9567 Using mini-gmp: ${enable_mini_gmp}
9568 Documentation: ${enable_documentation}