2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for nettle 2.4.
5 # Report bugs to <nettle-bugs@lists.lysator.liu.se>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: nettle-bugs@lists.lysator.liu.se about your system,
235 $0: including any error possibly output before this
236 $0: message. Then install a modern shell, or manually run
237 $0: the script under such a shell if you do have one."
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
369 as_status=$1; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374 $as_echo "$as_me: error: $2" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
536 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543 ac_default_prefix=/usr/local
545 ac_config_libobj_dir=.
552 # Identity of this package.
553 PACKAGE_NAME='nettle'
554 PACKAGE_TARNAME='nettle'
555 PACKAGE_VERSION='2.4'
556 PACKAGE_STRING='nettle 2.4'
557 PACKAGE_BUGREPORT='nettle-bugs@lists.lysator.liu.se'
560 ac_unique_file="arcfour.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
574 # ifdef HAVE_STDLIB_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
597 ac_subst_vars='LTLIBOBJS
624 ASM_MARK_NOEXEC_STACK
687 program_transform_name
700 enable_option_checking
709 enable_dependency_tracking
711 ac_precious_vars='build_alias
725 # Initialize some variables set by options.
727 ac_init_version=false
728 ac_unrecognized_opts=
730 # The variables have the same names as the options, with
731 # dashes changed to underlines.
739 program_transform_name=s,x,x,
747 # Installation directory options.
748 # These are left unexpanded so users can "make install exec_prefix=/foo"
749 # and all the variables that are supposed to be based on exec_prefix
750 # by default will actually change.
751 # Use braces instead of parens because sh, perl, etc. also accept them.
752 # (The list follows the same order as the GNU Coding Standards.)
753 bindir='${exec_prefix}/bin'
754 sbindir='${exec_prefix}/sbin'
755 libexecdir='${exec_prefix}/libexec'
756 datarootdir='${prefix}/share'
757 datadir='${datarootdir}'
758 sysconfdir='${prefix}/etc'
759 sharedstatedir='${prefix}/com'
760 localstatedir='${prefix}/var'
761 includedir='${prefix}/include'
762 oldincludedir='/usr/include'
763 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
764 infodir='${datarootdir}/info'
769 libdir='${exec_prefix}/lib'
770 localedir='${datarootdir}/locale'
771 mandir='${datarootdir}/man'
777 # If the previous option needs an argument, assign it.
778 if test -n "$ac_prev"; then
779 eval $ac_prev=\$ac_option
785 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
790 # Accept the important Cygnus configure options, so we can diagnose typos.
792 case $ac_dashdash$ac_option in
796 -bindir | --bindir | --bindi | --bind | --bin | --bi)
798 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
801 -build | --build | --buil | --bui | --bu)
802 ac_prev=build_alias ;;
803 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
804 build_alias=$ac_optarg ;;
806 -cache-file | --cache-file | --cache-fil | --cache-fi \
807 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
808 ac_prev=cache_file ;;
809 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
810 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
811 cache_file=$ac_optarg ;;
814 cache_file=config.cache ;;
816 -datadir | --datadir | --datadi | --datad)
818 -datadir=* | --datadir=* | --datadi=* | --datad=*)
819 datadir=$ac_optarg ;;
821 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
822 | --dataroo | --dataro | --datar)
823 ac_prev=datarootdir ;;
824 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
825 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
826 datarootdir=$ac_optarg ;;
828 -disable-* | --disable-*)
829 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
830 # Reject names that are not valid shell variable names.
831 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
832 as_fn_error $? "invalid feature name: $ac_useropt"
833 ac_useropt_orig=$ac_useropt
834 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
835 case $ac_user_opts in
839 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
840 ac_unrecognized_sep=', ';;
842 eval enable_$ac_useropt=no ;;
844 -docdir | --docdir | --docdi | --doc | --do)
846 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
849 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
851 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
854 -enable-* | --enable-*)
855 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
856 # Reject names that are not valid shell variable names.
857 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
858 as_fn_error $? "invalid feature name: $ac_useropt"
859 ac_useropt_orig=$ac_useropt
860 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
861 case $ac_user_opts in
865 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
866 ac_unrecognized_sep=', ';;
868 eval enable_$ac_useropt=\$ac_optarg ;;
870 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
871 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
872 | --exec | --exe | --ex)
873 ac_prev=exec_prefix ;;
874 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
875 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
876 | --exec=* | --exe=* | --ex=*)
877 exec_prefix=$ac_optarg ;;
879 -gas | --gas | --ga | --g)
880 # Obsolete; use --with-gas.
883 -help | --help | --hel | --he | -h)
885 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
886 ac_init_help=recursive ;;
887 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
888 ac_init_help=short ;;
890 -host | --host | --hos | --ho)
891 ac_prev=host_alias ;;
892 -host=* | --host=* | --hos=* | --ho=*)
893 host_alias=$ac_optarg ;;
895 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
897 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
899 htmldir=$ac_optarg ;;
901 -includedir | --includedir | --includedi | --included | --include \
902 | --includ | --inclu | --incl | --inc)
903 ac_prev=includedir ;;
904 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
905 | --includ=* | --inclu=* | --incl=* | --inc=*)
906 includedir=$ac_optarg ;;
908 -infodir | --infodir | --infodi | --infod | --info | --inf)
910 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
911 infodir=$ac_optarg ;;
913 -libdir | --libdir | --libdi | --libd)
915 -libdir=* | --libdir=* | --libdi=* | --libd=*)
918 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
919 | --libexe | --libex | --libe)
920 ac_prev=libexecdir ;;
921 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
922 | --libexe=* | --libex=* | --libe=*)
923 libexecdir=$ac_optarg ;;
925 -localedir | --localedir | --localedi | --localed | --locale)
927 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
928 localedir=$ac_optarg ;;
930 -localstatedir | --localstatedir | --localstatedi | --localstated \
931 | --localstate | --localstat | --localsta | --localst | --locals)
932 ac_prev=localstatedir ;;
933 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
934 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
935 localstatedir=$ac_optarg ;;
937 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
939 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
943 # Obsolete; use --without-fp.
946 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
947 | --no-cr | --no-c | -n)
950 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
951 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
954 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
955 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
956 | --oldin | --oldi | --old | --ol | --o)
957 ac_prev=oldincludedir ;;
958 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
959 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
960 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
961 oldincludedir=$ac_optarg ;;
963 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
965 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
968 -program-prefix | --program-prefix | --program-prefi | --program-pref \
969 | --program-pre | --program-pr | --program-p)
970 ac_prev=program_prefix ;;
971 -program-prefix=* | --program-prefix=* | --program-prefi=* \
972 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
973 program_prefix=$ac_optarg ;;
975 -program-suffix | --program-suffix | --program-suffi | --program-suff \
976 | --program-suf | --program-su | --program-s)
977 ac_prev=program_suffix ;;
978 -program-suffix=* | --program-suffix=* | --program-suffi=* \
979 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
980 program_suffix=$ac_optarg ;;
982 -program-transform-name | --program-transform-name \
983 | --program-transform-nam | --program-transform-na \
984 | --program-transform-n | --program-transform- \
985 | --program-transform | --program-transfor \
986 | --program-transfo | --program-transf \
987 | --program-trans | --program-tran \
988 | --progr-tra | --program-tr | --program-t)
989 ac_prev=program_transform_name ;;
990 -program-transform-name=* | --program-transform-name=* \
991 | --program-transform-nam=* | --program-transform-na=* \
992 | --program-transform-n=* | --program-transform-=* \
993 | --program-transform=* | --program-transfor=* \
994 | --program-transfo=* | --program-transf=* \
995 | --program-trans=* | --program-tran=* \
996 | --progr-tra=* | --program-tr=* | --program-t=*)
997 program_transform_name=$ac_optarg ;;
999 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1001 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1002 pdfdir=$ac_optarg ;;
1004 -psdir | --psdir | --psdi | --psd | --ps)
1006 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1010 | -silent | --silent | --silen | --sile | --sil)
1013 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1015 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1017 sbindir=$ac_optarg ;;
1019 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1020 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1021 | --sharedst | --shareds | --shared | --share | --shar \
1023 ac_prev=sharedstatedir ;;
1024 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1025 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1026 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1028 sharedstatedir=$ac_optarg ;;
1030 -site | --site | --sit)
1032 -site=* | --site=* | --sit=*)
1035 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1037 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1038 srcdir=$ac_optarg ;;
1040 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1041 | --syscon | --sysco | --sysc | --sys | --sy)
1042 ac_prev=sysconfdir ;;
1043 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1044 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1045 sysconfdir=$ac_optarg ;;
1047 -target | --target | --targe | --targ | --tar | --ta | --t)
1048 ac_prev=target_alias ;;
1049 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1050 target_alias=$ac_optarg ;;
1052 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1055 -version | --version | --versio | --versi | --vers | -V)
1056 ac_init_version=: ;;
1059 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062 as_fn_error $? "invalid package name: $ac_useropt"
1063 ac_useropt_orig=$ac_useropt
1064 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1065 case $ac_user_opts in
1069 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1070 ac_unrecognized_sep=', ';;
1072 eval with_$ac_useropt=\$ac_optarg ;;
1074 -without-* | --without-*)
1075 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078 as_fn_error $? "invalid package name: $ac_useropt"
1079 ac_useropt_orig=$ac_useropt
1080 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081 case $ac_user_opts in
1085 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1086 ac_unrecognized_sep=', ';;
1088 eval with_$ac_useropt=no ;;
1091 # Obsolete; use --with-x.
1094 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1095 | --x-incl | --x-inc | --x-in | --x-i)
1096 ac_prev=x_includes ;;
1097 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1098 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1099 x_includes=$ac_optarg ;;
1101 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1102 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1103 ac_prev=x_libraries ;;
1104 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1105 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1106 x_libraries=$ac_optarg ;;
1108 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1109 Try \`$0 --help' for more information"
1113 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1114 # Reject names that are not valid shell variable names.
1115 case $ac_envvar in #(
1116 '' | [0-9]* | *[!_$as_cr_alnum]* )
1117 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1119 eval $ac_envvar=\$ac_optarg
1120 export $ac_envvar ;;
1123 # FIXME: should be removed in autoconf 3.0.
1124 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1125 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1126 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1127 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1133 if test -n "$ac_prev"; then
1134 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1135 as_fn_error $? "missing argument to $ac_option"
1138 if test -n "$ac_unrecognized_opts"; then
1139 case $enable_option_checking in
1141 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1142 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1146 # Check all directory arguments for consistency.
1147 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1148 datadir sysconfdir sharedstatedir localstatedir includedir \
1149 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1150 libdir localedir mandir
1152 eval ac_val=\$$ac_var
1153 # Remove trailing slashes.
1156 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1157 eval $ac_var=\$ac_val;;
1159 # Be sure to have absolute directory names.
1161 [\\/$]* | ?:[\\/]* ) continue;;
1162 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1164 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1167 # There might be people who depend on the old broken behavior: `$host'
1168 # used to hold the argument of --host etc.
1169 # FIXME: To remove some day.
1172 target=$target_alias
1174 # FIXME: To remove some day.
1175 if test "x$host_alias" != x; then
1176 if test "x$build_alias" = x; then
1177 cross_compiling=maybe
1178 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1179 If a cross compiler is detected then cross compile mode will be used" >&2
1180 elif test "x$build_alias" != "x$host_alias"; then
1186 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1188 test "$silent" = yes && exec 6>/dev/null
1191 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1192 ac_ls_di=`ls -di .` &&
1193 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1194 as_fn_error $? "working directory cannot be determined"
1195 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1196 as_fn_error $? "pwd does not report name of working directory"
1199 # Find the source files, if location was not specified.
1200 if test -z "$srcdir"; then
1201 ac_srcdir_defaulted=yes
1202 # Try the directory containing this script, then the parent directory.
1203 ac_confdir=`$as_dirname -- "$as_myself" ||
1204 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1205 X"$as_myself" : 'X\(//\)[^/]' \| \
1206 X"$as_myself" : 'X\(//\)$' \| \
1207 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1208 $as_echo X"$as_myself" |
1209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1227 if test ! -r "$srcdir/$ac_unique_file"; then
1231 ac_srcdir_defaulted=no
1233 if test ! -r "$srcdir/$ac_unique_file"; then
1234 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1235 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1237 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1239 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1241 # When building in place, set srcdir=.
1242 if test "$ac_abs_confdir" = "$ac_pwd"; then
1245 # Remove unnecessary trailing slashes from srcdir.
1246 # Double slashes in file names in object file debugging info
1247 # mess up M-x gdb in Emacs.
1249 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1251 for ac_var in $ac_precious_vars; do
1252 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1253 eval ac_env_${ac_var}_value=\$${ac_var}
1254 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1255 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1259 # Report the --help message.
1261 if test "$ac_init_help" = "long"; then
1262 # Omit some internal or obsolete options to make the list less imposing.
1263 # This message is too long to be a string in the A/UX 3.1 sh.
1265 \`configure' configures nettle 2.4 to adapt to many kinds of systems.
1267 Usage: $0 [OPTION]... [VAR=VALUE]...
1269 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1270 VAR=VALUE. See below for descriptions of some of the useful variables.
1272 Defaults for the options are specified in brackets.
1275 -h, --help display this help and exit
1276 --help=short display options specific to this package
1277 --help=recursive display the short help of all the included packages
1278 -V, --version display version information and exit
1279 -q, --quiet, --silent do not print \`checking ...' messages
1280 --cache-file=FILE cache test results in FILE [disabled]
1281 -C, --config-cache alias for \`--cache-file=config.cache'
1282 -n, --no-create do not create output files
1283 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1285 Installation directories:
1286 --prefix=PREFIX install architecture-independent files in PREFIX
1287 [$ac_default_prefix]
1288 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1291 By default, \`make install' will install all the files in
1292 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1293 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1294 for instance \`--prefix=\$HOME'.
1296 For better control, use the options below.
1298 Fine tuning of the installation directories:
1299 --bindir=DIR user executables [EPREFIX/bin]
1300 --sbindir=DIR system admin executables [EPREFIX/sbin]
1301 --libexecdir=DIR program executables [EPREFIX/libexec]
1302 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1303 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1304 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1305 --libdir=DIR object code libraries [EPREFIX/lib]
1306 --includedir=DIR C header files [PREFIX/include]
1307 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1308 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1309 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1310 --infodir=DIR info documentation [DATAROOTDIR/info]
1311 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1312 --mandir=DIR man documentation [DATAROOTDIR/man]
1313 --docdir=DIR documentation root [DATAROOTDIR/doc/nettle]
1314 --htmldir=DIR html documentation [DOCDIR]
1315 --dvidir=DIR dvi documentation [DOCDIR]
1316 --pdfdir=DIR pdf documentation [DOCDIR]
1317 --psdir=DIR ps documentation [DOCDIR]
1323 --build=BUILD configure for building on BUILD [guessed]
1324 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1328 if test -n "$ac_init_help"; then
1329 case $ac_init_help in
1330 short | recursive ) echo "Configuration of nettle 2.4:";;
1335 --disable-option-checking ignore unrecognized --enable/--with options
1336 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1337 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1338 --disable-public-key Disable public key algorithms
1339 --disable-assembler Disable assembler code
1340 --enable-shared Build a shared library
1341 --disable-pic Do not try to compile library files as position
1343 --disable-openssl Do not include openssl glue in the benchmark program
1344 --enable-gcov Instrument for gcov (requires a modern gcc)
1345 --disable-dependency-tracking
1346 Disable dependency tracking. Dependency tracking
1347 doesn't work with BSD make
1350 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1351 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1352 --with-include-path A colon-separated list of directories to search for
1354 --with-lib-path A colon-separated list of directories to search for
1357 Some influential environment variables:
1358 CC C compiler command
1359 CFLAGS C compiler flags
1360 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1361 nonstandard directory <lib dir>
1362 LIBS libraries to pass to the linker, e.g. -l<library>
1363 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1364 you have headers in a nonstandard directory <include dir>
1365 CXX C++ compiler command
1366 CXXFLAGS C++ compiler flags
1369 Use these variables to override the choices made by `configure' or to help
1370 it to find libraries and programs with nonstandard names/locations.
1372 Report bugs to <nettle-bugs@lists.lysator.liu.se>.
1377 if test "$ac_init_help" = "recursive"; then
1378 # If there are subdirs, report their specific --help.
1379 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1380 test -d "$ac_dir" ||
1381 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1388 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1389 # A ".." for each directory in $ac_dir_suffix.
1390 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1391 case $ac_top_builddir_sub in
1392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1396 ac_abs_top_builddir=$ac_pwd
1397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1398 # for backward compatibility:
1399 ac_top_builddir=$ac_top_build_prefix
1402 .) # We are building in place.
1404 ac_top_srcdir=$ac_top_builddir_sub
1405 ac_abs_top_srcdir=$ac_pwd ;;
1406 [\\/]* | ?:[\\/]* ) # Absolute name.
1407 ac_srcdir=$srcdir$ac_dir_suffix;
1408 ac_top_srcdir=$srcdir
1409 ac_abs_top_srcdir=$srcdir ;;
1411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1412 ac_top_srcdir=$ac_top_build_prefix$srcdir
1413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1417 cd "$ac_dir" || { ac_status=$?; continue; }
1418 # Check for guested configure.
1419 if test -f "$ac_srcdir/configure.gnu"; then
1421 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1422 elif test -f "$ac_srcdir/configure"; then
1424 $SHELL "$ac_srcdir/configure" --help=recursive
1426 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1428 cd "$ac_pwd" || { ac_status=$?; break; }
1432 test -n "$ac_init_help" && exit $ac_status
1433 if $ac_init_version; then
1435 nettle configure 2.4
1436 generated by GNU Autoconf 2.67
1438 Copyright (C) 2010 Free Software Foundation, Inc.
1439 This configure script is free software; the Free Software Foundation
1440 gives unlimited permission to copy, distribute and modify it.
1445 ## ------------------------ ##
1446 ## Autoconf initialization. ##
1447 ## ------------------------ ##
1449 # ac_fn_c_try_compile LINENO
1450 # --------------------------
1451 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1452 ac_fn_c_try_compile ()
1454 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1455 rm -f conftest.$ac_objext
1456 if { { ac_try="$ac_compile"
1458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1459 *) ac_try_echo=$ac_try;;
1461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1462 $as_echo "$ac_try_echo"; } >&5
1463 (eval "$ac_compile") 2>conftest.err
1465 if test -s conftest.err; then
1466 grep -v '^ *+' conftest.err >conftest.er1
1467 cat conftest.er1 >&5
1468 mv -f conftest.er1 conftest.err
1470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1471 test $ac_status = 0; } && {
1472 test -z "$ac_c_werror_flag" ||
1473 test ! -s conftest.err
1474 } && test -s conftest.$ac_objext; then :
1477 $as_echo "$as_me: failed program was:" >&5
1478 sed 's/^/| /' conftest.$ac_ext >&5
1482 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1483 as_fn_set_status $ac_retval
1485 } # ac_fn_c_try_compile
1487 # ac_fn_cxx_try_compile LINENO
1488 # ----------------------------
1489 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1490 ac_fn_cxx_try_compile ()
1492 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1493 rm -f conftest.$ac_objext
1494 if { { ac_try="$ac_compile"
1496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1497 *) ac_try_echo=$ac_try;;
1499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1500 $as_echo "$ac_try_echo"; } >&5
1501 (eval "$ac_compile") 2>conftest.err
1503 if test -s conftest.err; then
1504 grep -v '^ *+' conftest.err >conftest.er1
1505 cat conftest.er1 >&5
1506 mv -f conftest.er1 conftest.err
1508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1509 test $ac_status = 0; } && {
1510 test -z "$ac_cxx_werror_flag" ||
1511 test ! -s conftest.err
1512 } && test -s conftest.$ac_objext; then :
1515 $as_echo "$as_me: failed program was:" >&5
1516 sed 's/^/| /' conftest.$ac_ext >&5
1520 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1521 as_fn_set_status $ac_retval
1523 } # ac_fn_cxx_try_compile
1525 # ac_fn_c_try_cpp LINENO
1526 # ----------------------
1527 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531 if { { ac_try="$ac_cpp conftest.$ac_ext"
1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534 *) ac_try_echo=$ac_try;;
1536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537 $as_echo "$ac_try_echo"; } >&5
1538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1540 if test -s conftest.err; then
1541 grep -v '^ *+' conftest.err >conftest.er1
1542 cat conftest.er1 >&5
1543 mv -f conftest.er1 conftest.err
1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546 test $ac_status = 0; } > conftest.i && {
1547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1548 test ! -s conftest.err
1552 $as_echo "$as_me: failed program was:" >&5
1553 sed 's/^/| /' conftest.$ac_ext >&5
1557 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1558 as_fn_set_status $ac_retval
1562 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1563 # -------------------------------------------
1564 # Tests whether TYPE exists after having included INCLUDES, setting cache
1565 # variable VAR accordingly.
1566 ac_fn_c_check_type ()
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1570 $as_echo_n "checking for $2... " >&6; }
1571 if eval "test \"\${$3+set}\"" = set; then :
1572 $as_echo_n "(cached) " >&6
1575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1576 /* end confdefs.h. */
1587 if ac_fn_c_try_compile "$LINENO"; then :
1588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1589 /* end confdefs.h. */
1600 if ac_fn_c_try_compile "$LINENO"; then :
1605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1611 $as_echo "$ac_res" >&6; }
1612 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1614 } # ac_fn_c_check_type
1616 # ac_fn_c_try_run LINENO
1617 # ----------------------
1618 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1619 # that executables *can* be run.
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 if { { ac_try="$ac_link"
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_link") 2>&5
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1634 { { case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_try") 2>&5
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; }; }; then :
1646 $as_echo "$as_me: program exited with status $ac_status" >&5
1647 $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1650 ac_retval=$ac_status
1652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1653 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1654 as_fn_set_status $ac_retval
1658 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1659 # -------------------------------------------------------
1660 # Tests whether HEADER exists and can be compiled using the include files in
1661 # INCLUDES, setting the cache variable VAR accordingly.
1662 ac_fn_c_check_header_compile ()
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666 $as_echo_n "checking for $2... " >&6; }
1667 if eval "test \"\${$3+set}\"" = set; then :
1668 $as_echo_n "(cached) " >&6
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1675 if ac_fn_c_try_compile "$LINENO"; then :
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; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1687 } # ac_fn_c_check_header_compile
1689 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1690 # --------------------------------------------
1691 # Tries to find the compile-time value of EXPR in a program that includes
1692 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1694 ac_fn_c_compute_int ()
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 if test "$cross_compiling" = yes; then
1698 # Depending upon the size, compute the lo and hi bounds.
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h. */
1705 static int test_array [1 - 2 * !(($2) >= 0)];
1712 if ac_fn_c_try_compile "$LINENO"; then :
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1721 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1728 if ac_fn_c_try_compile "$LINENO"; then :
1729 ac_hi=$ac_mid; break
1731 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1732 if test $ac_lo -le $ac_mid; then
1736 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1747 static int test_array [1 - 2 * !(($2) < 0)];
1754 if ac_fn_c_try_compile "$LINENO"; then :
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1763 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1770 if ac_fn_c_try_compile "$LINENO"; then :
1771 ac_lo=$ac_mid; break
1773 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1774 if test $ac_mid -le $ac_hi; then
1778 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788 # Binary search between lo and hi bounds.
1789 while test "x$ac_lo" != "x$ac_hi"; do
1790 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1797 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1804 if ac_fn_c_try_compile "$LINENO"; then :
1807 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1812 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1819 static long int longval () { return $2; }
1820 static unsigned long int ulongval () { return $2; }
1827 FILE *f = fopen ("conftest.val", "w");
1832 long int i = longval ();
1835 fprintf (f, "%ld", i);
1839 unsigned long int i = ulongval ();
1842 fprintf (f, "%lu", i);
1844 /* Do not output a trailing newline, as this causes \r\n confusion
1845 on some platforms. */
1846 return ferror (f) || fclose (f) != 0;
1852 if ac_fn_c_try_run "$LINENO"; then :
1853 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1858 conftest.$ac_objext conftest.beam conftest.$ac_ext
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863 as_fn_set_status $ac_retval
1865 } # ac_fn_c_compute_int
1867 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1868 # -------------------------------------------------------
1869 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1870 # the include files in INCLUDES and setting the cache variable VAR
1872 ac_fn_c_check_header_mongrel ()
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 if eval "test \"\${$3+set}\"" = set; then :
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877 $as_echo_n "checking for $2... " >&6; }
1878 if eval "test \"\${$3+set}\"" = set; then :
1879 $as_echo_n "(cached) " >&6
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 $as_echo "$ac_res" >&6; }
1885 # Is the header compilable?
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1887 $as_echo_n "checking $2 usability... " >&6; }
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1893 if ac_fn_c_try_compile "$LINENO"; then :
1894 ac_header_compiler=yes
1896 ac_header_compiler=no
1898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1900 $as_echo "$ac_header_compiler" >&6; }
1902 # Is the header present?
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1904 $as_echo_n "checking $2 presence... " >&6; }
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1909 if ac_fn_c_try_cpp "$LINENO"; then :
1910 ac_header_preproc=yes
1912 ac_header_preproc=no
1914 rm -f conftest.err conftest.i conftest.$ac_ext
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1916 $as_echo "$ac_header_preproc" >&6; }
1918 # So? What about this header?
1919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1922 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1924 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1928 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1930 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1932 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1934 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1936 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1937 ( $as_echo "## ----------------------------------------------- ##
1938 ## Report this to nettle-bugs@lists.lysator.liu.se ##
1939 ## ----------------------------------------------- ##"
1940 ) | sed "s/^/$as_me: WARNING: /" >&2
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944 $as_echo_n "checking for $2... " >&6; }
1945 if eval "test \"\${$3+set}\"" = set; then :
1946 $as_echo_n "(cached) " >&6
1948 eval "$3=\$ac_header_compiler"
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952 $as_echo "$ac_res" >&6; }
1954 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1956 } # ac_fn_c_check_header_mongrel
1958 # ac_fn_c_try_link LINENO
1959 # -----------------------
1960 # Try to link conftest.$ac_ext, and return whether this succeeded.
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 rm -f conftest.$ac_objext conftest$ac_exeext
1965 if { { ac_try="$ac_link"
1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968 *) ac_try_echo=$ac_try;;
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_link") 2>conftest.err
1974 if test -s conftest.err; then
1975 grep -v '^ *+' conftest.err >conftest.er1
1976 cat conftest.er1 >&5
1977 mv -f conftest.er1 conftest.err
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; } && {
1981 test -z "$ac_c_werror_flag" ||
1982 test ! -s conftest.err
1983 } && test -s conftest$ac_exeext && {
1984 test "$cross_compiling" = yes ||
1985 $as_test_x conftest$ac_exeext
1989 $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1994 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1995 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1996 # interfere with the next link command; also delete a directory that is
1997 # left behind by Apple's compiler. We do this before executing the actions.
1998 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1999 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2000 as_fn_set_status $ac_retval
2002 } # ac_fn_c_try_link
2004 # ac_fn_c_check_func LINENO FUNC VAR
2005 # ----------------------------------
2006 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2007 ac_fn_c_check_func ()
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2011 $as_echo_n "checking for $2... " >&6; }
2012 if eval "test \"\${$3+set}\"" = set; then :
2013 $as_echo_n "(cached) " >&6
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2017 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2019 #define $2 innocuous_$2
2021 /* System header to define __stub macros and hopefully few prototypes,
2022 which can conflict with char $2 (); below.
2023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2024 <limits.h> exists even on freestanding compilers. */
2027 # include <limits.h>
2029 # include <assert.h>
2034 /* Override any GCC internal prototype to avoid an error.
2035 Use char because int might match the return type of a GCC
2036 builtin and then its argument prototype would still apply. */
2041 /* The GNU C library defines this for functions which it implements
2042 to always fail with ENOSYS. Some functions are actually named
2043 something starting with __ and the normal name is an alias. */
2044 #if defined __stub_$2 || defined __stub___$2
2056 if ac_fn_c_try_link "$LINENO"; then :
2061 rm -f core conftest.err conftest.$ac_objext \
2062 conftest$ac_exeext conftest.$ac_ext
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066 $as_echo "$ac_res" >&6; }
2067 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2069 } # ac_fn_c_check_func
2070 cat >config.log <<_ACEOF
2071 This file contains any messages produced by compilers while
2072 running configure, to aid debugging if configure makes a mistake.
2074 It was created by nettle $as_me 2.4, which was
2075 generated by GNU Autoconf 2.67. Invocation command line was
2087 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2088 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2089 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2090 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2091 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2093 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2094 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2096 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2097 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2098 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2099 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2100 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2101 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2102 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 test -z "$as_dir" && as_dir=.
2111 $as_echo "PATH: $as_dir"
2127 # Keep a trace of the command line.
2128 # Strip out --no-create and --no-recursion so they do not pile up.
2129 # Strip out --silent because we don't want to record it for future runs.
2130 # Also quote any args containing shell meta-characters.
2131 # Make two passes to allow for proper duplicate-argument suppression.
2135 ac_must_keep_next=false
2141 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2143 | -silent | --silent | --silen | --sile | --sil)
2146 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2149 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2151 as_fn_append ac_configure_args1 " '$ac_arg'"
2152 if test $ac_must_keep_next = true; then
2153 ac_must_keep_next=false # Got value, back to normal.
2156 *=* | --config-cache | -C | -disable-* | --disable-* \
2157 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2158 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2159 | -with-* | --with-* | -without-* | --without-* | --x)
2160 case "$ac_configure_args0 " in
2161 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2164 -* ) ac_must_keep_next=true ;;
2167 as_fn_append ac_configure_args " '$ac_arg'"
2172 { ac_configure_args0=; unset ac_configure_args0;}
2173 { ac_configure_args1=; unset ac_configure_args1;}
2175 # When interrupted or exit'd, cleanup temporary files, and complete
2176 # config.log. We remove comments because anyway the quotes in there
2177 # would cause problems or look ugly.
2178 # WARNING: Use '\'' to represent an apostrophe within the trap.
2179 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2180 trap 'exit_status=$?
2181 # Save into config.log some information that might help in debugging.
2185 $as_echo "## ---------------- ##
2186 ## Cache variables. ##
2187 ## ---------------- ##"
2189 # The following way of writing the cache mishandles newlines in values,
2191 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2192 eval ac_val=\$$ac_var
2196 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2197 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2200 _ | IFS | as_nl) ;; #(
2201 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2202 *) { eval $ac_var=; unset $ac_var;} ;;
2207 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2208 *${as_nl}ac_space=\ *)
2210 "s/'\''/'\''\\\\'\'''\''/g;
2211 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2214 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2221 $as_echo "## ----------------- ##
2222 ## Output variables. ##
2223 ## ----------------- ##"
2225 for ac_var in $ac_subst_vars
2227 eval ac_val=\$$ac_var
2229 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2231 $as_echo "$ac_var='\''$ac_val'\''"
2235 if test -n "$ac_subst_files"; then
2236 $as_echo "## ------------------- ##
2237 ## File substitutions. ##
2238 ## ------------------- ##"
2240 for ac_var in $ac_subst_files
2242 eval ac_val=\$$ac_var
2244 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2246 $as_echo "$ac_var='\''$ac_val'\''"
2251 if test -s confdefs.h; then
2252 $as_echo "## ----------- ##
2259 test "$ac_signal" != 0 &&
2260 $as_echo "$as_me: caught signal $ac_signal"
2261 $as_echo "$as_me: exit $exit_status"
2263 rm -f core *.core core.conftest.* &&
2264 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2267 for ac_signal in 1 2 13 15; do
2268 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2272 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2273 rm -f -r conftest* confdefs.h
2275 $as_echo "/* confdefs.h */" > confdefs.h
2277 # Predefined preprocessor variables.
2279 cat >>confdefs.h <<_ACEOF
2280 #define PACKAGE_NAME "$PACKAGE_NAME"
2283 cat >>confdefs.h <<_ACEOF
2284 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2291 cat >>confdefs.h <<_ACEOF
2292 #define PACKAGE_STRING "$PACKAGE_STRING"
2295 cat >>confdefs.h <<_ACEOF
2296 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2299 cat >>confdefs.h <<_ACEOF
2300 #define PACKAGE_URL "$PACKAGE_URL"
2304 # Let the site file select an alternate cache file if it wants to.
2305 # Prefer an explicitly selected file to automatically selected ones.
2308 if test -n "$CONFIG_SITE"; then
2309 # We do not want a PATH search for config.site.
2310 case $CONFIG_SITE in #((
2311 -*) ac_site_file1=./$CONFIG_SITE;;
2312 */*) ac_site_file1=$CONFIG_SITE;;
2313 *) ac_site_file1=./$CONFIG_SITE;;
2315 elif test "x$prefix" != xNONE; then
2316 ac_site_file1=$prefix/share/config.site
2317 ac_site_file2=$prefix/etc/config.site
2319 ac_site_file1=$ac_default_prefix/share/config.site
2320 ac_site_file2=$ac_default_prefix/etc/config.site
2322 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2324 test "x$ac_site_file" = xNONE && continue
2325 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2327 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2328 sed 's/^/| /' "$ac_site_file" >&5
2330 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2332 as_fn_error $? "failed to load site script $ac_site_file
2333 See \`config.log' for more details" "$LINENO" 5 ; }
2337 if test -r "$cache_file"; then
2338 # Some versions of bash will fail to source /dev/null (special files
2339 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2340 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2342 $as_echo "$as_me: loading cache $cache_file" >&6;}
2344 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2345 *) . "./$cache_file";;
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2350 $as_echo "$as_me: creating cache $cache_file" >&6;}
2354 # Check that the precious variables saved in the cache have kept the same
2356 ac_cache_corrupted=false
2357 for ac_var in $ac_precious_vars; do
2358 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2359 eval ac_new_set=\$ac_env_${ac_var}_set
2360 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2361 eval ac_new_val=\$ac_env_${ac_var}_value
2362 case $ac_old_set,$ac_new_set in
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2365 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2366 ac_cache_corrupted=: ;;
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2369 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2370 ac_cache_corrupted=: ;;
2373 if test "x$ac_old_val" != "x$ac_new_val"; then
2374 # differences in whitespace do not lead to failure.
2375 ac_old_val_w=`echo x $ac_old_val`
2376 ac_new_val_w=`echo x $ac_new_val`
2377 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2379 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2380 ac_cache_corrupted=:
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2383 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2384 eval $ac_var=\$ac_old_val
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2387 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2389 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2392 # Pass precious variables to config.status.
2393 if test "$ac_new_set" = set; then
2395 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2396 *) ac_arg=$ac_var=$ac_new_val ;;
2398 case " $ac_configure_args " in
2399 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2400 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2404 if $ac_cache_corrupted; then
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2408 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2409 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2411 ## -------------------- ##
2412 ## Main body of script. ##
2413 ## -------------------- ##
2416 ac_cpp='$CPP $CPPFLAGS'
2417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2424 # Needed to stop autoconf from looking for files in parent directories.
2426 for ac_dir in . "$srcdir"/.; do
2427 if test -f "$ac_dir/install-sh"; then
2429 ac_install_sh="$ac_aux_dir/install-sh -c"
2431 elif test -f "$ac_dir/install.sh"; then
2433 ac_install_sh="$ac_aux_dir/install.sh -c"
2435 elif test -f "$ac_dir/shtool"; then
2437 ac_install_sh="$ac_aux_dir/shtool install -c"
2441 if test -z "$ac_aux_dir"; then
2442 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2445 # These three variables are undocumented and unsupported,
2446 # and are intended to be withdrawn in a future Autoconf release.
2447 # They can cause serious problems if a builder's source tree is in a directory
2448 # whose full name contains unusual characters.
2449 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2450 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2451 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2455 ac_config_headers="$ac_config_headers config.h"
2464 # Make sure we can run config.sub.
2465 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2466 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2469 $as_echo_n "checking build system type... " >&6; }
2470 if test "${ac_cv_build+set}" = set; then :
2471 $as_echo_n "(cached) " >&6
2473 ac_build_alias=$build_alias
2474 test "x$ac_build_alias" = x &&
2475 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2476 test "x$ac_build_alias" = x &&
2477 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2478 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2479 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2483 $as_echo "$ac_cv_build" >&6; }
2484 case $ac_cv_build in
2486 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2489 ac_save_IFS=$IFS; IFS='-'
2495 # Remember, the first character of IFS is used to create $*,
2496 # except with old shells:
2499 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2503 $as_echo_n "checking host system type... " >&6; }
2504 if test "${ac_cv_host+set}" = set; then :
2505 $as_echo_n "(cached) " >&6
2507 if test "x$host_alias" = x; then
2508 ac_cv_host=$ac_cv_build
2510 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2511 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2516 $as_echo "$ac_cv_host" >&6; }
2519 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2522 ac_save_IFS=$IFS; IFS='-'
2528 # Remember, the first character of IFS is used to create $*,
2529 # except with old shells:
2532 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2536 # Command line options
2538 # Check whether --with-include-path was given.
2539 if test "${with_include_path+set}" = set; then :
2540 withval=$with_include_path;
2542 with_include_path=''
2546 if test x$with_include_path != x ; then
2547 CPPFLAGS="$CPPFLAGS -I`echo $with_include_path | sed 's/:/ -I/g'`"
2551 # Check whether --with-lib-path was given.
2552 if test "${with_lib_path+set}" = set; then :
2553 withval=$with_lib_path;
2559 if test x$with_lib_path != x ; then
2560 LDFLAGS="$LDFLAGS -L`echo $with_lib_path | sed 's/:/ -L/g'`"
2563 # Check whether --enable-public-key was given.
2564 if test "${enable_public_key+set}" = set; then :
2565 enableval=$enable_public_key;
2567 enable_public_key=yes
2571 # Check whether --enable-assembler was given.
2572 if test "${enable_assembler+set}" = set; then :
2573 enableval=$enable_assembler;
2575 enable_assembler=yes
2579 # Check whether --enable-shared was given.
2580 if test "${enable_shared+set}" = set; then :
2581 enableval=$enable_shared;
2587 # Check whether --enable-pic was given.
2588 if test "${enable_pic+set}" = set; then :
2589 enableval=$enable_pic;
2595 # Check whether --enable-openssl was given.
2596 if test "${enable_openssl+set}" = set; then :
2597 enableval=$enable_openssl;
2603 # Check whether --enable-gcov was given.
2604 if test "${enable_gcov+set}" = set; then :
2605 enableval=$enable_gcov;
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -R flag" >&5
2612 $as_echo_n "checking for -R flag... " >&6; }
2615 osf1*) RPATHFLAG="-rpath " ;;
2616 irix6.*|irix5.*) RPATHFLAG="-rpath " ;;
2618 if test "$TCC" = "yes"; then
2619 # tcc doesn't know about -R
2625 linux*) RPATHFLAG="-Wl,-rpath," ;;
2629 if test x$RPATHFLAG = x ; then
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
2631 $as_echo "none" >&6; }
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $RPATHFLAG" >&5
2634 $as_echo "using $RPATHFLAG" >&6; }
2637 RPATH_CANDIDATE_REAL_DIRS=''
2638 RPATH_CANDIDATE_DIRS=''
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Searching for libraries" >&5
2641 $as_echo "Searching for libraries" >&6; }
2643 for d in `echo $with_lib_path | sed 's/:/ /g'` \
2644 `echo $exec_prefix | sed "s@^NONE@$prefix/lib@g" | sed "s@^NONE@$ac_default_prefix/lib@g"` \
2645 /usr/local/lib /sw/local/lib /sw/lib \
2646 /usr/gnu/lib /opt/gnu/lib /sw/gnu/lib /usr/freeware/lib /usr/pkg/lib ; do
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $d" >&5
2648 $as_echo_n "checking $d... " >&6; }
2650 if test -d "$d/." ; then
2651 ac_real_dir=`cd $d && pwd`
2652 if test -n "$ac_real_dir" ; then
2654 for old in RPATH_CANDIDATE_REAL_DIRS ; do
2656 if test x$ac_real_dir = x$old ; then
2661 if test $ac_found = yes ; then
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: already added" >&5
2663 $as_echo "already added" >&6; }
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: added" >&5
2666 $as_echo "added" >&6; }
2667 # LDFLAGS="$LDFLAGS -L $d"
2668 RPATH_CANDIDATE_REAL_DIRS="$ac_real_dir $RPATH_CANDIDATE_REAL_DIRS"
2669 RPATH_CANDIDATE_DIRS="$d $RPATH_CANDIDATE_DIRS"
2673 if test $ac_exists = no ; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
2675 $as_echo "not found" >&6; }
2681 # Checks for programs.
2683 ac_cpp='$CPP $CPPFLAGS'
2684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2687 if test -n "$ac_tool_prefix"; then
2688 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2689 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2691 $as_echo_n "checking for $ac_word... " >&6; }
2692 if test "${ac_cv_prog_CC+set}" = set; then :
2693 $as_echo_n "(cached) " >&6
2695 if test -n "$CC"; then
2696 ac_cv_prog_CC="$CC" # Let the user override the test.
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 test -z "$as_dir" && as_dir=.
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2705 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2716 if test -n "$CC"; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2718 $as_echo "$CC" >&6; }
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721 $as_echo "no" >&6; }
2726 if test -z "$ac_cv_prog_CC"; then
2728 # Extract the first word of "gcc", so it can be a program name with args.
2729 set dummy gcc; ac_word=$2
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2731 $as_echo_n "checking for $ac_word... " >&6; }
2732 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2733 $as_echo_n "(cached) " >&6
2735 if test -n "$ac_ct_CC"; then
2736 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 test -z "$as_dir" && as_dir=.
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745 ac_cv_prog_ac_ct_CC="gcc"
2746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2756 if test -n "$ac_ct_CC"; then
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2758 $as_echo "$ac_ct_CC" >&6; }
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761 $as_echo "no" >&6; }
2764 if test "x$ac_ct_CC" = x; then
2767 case $cross_compiling:$ac_tool_warned in
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2771 ac_tool_warned=yes ;;
2779 if test -z "$CC"; then
2780 if test -n "$ac_tool_prefix"; then
2781 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2782 set dummy ${ac_tool_prefix}cc; ac_word=$2
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2784 $as_echo_n "checking for $ac_word... " >&6; }
2785 if test "${ac_cv_prog_CC+set}" = set; then :
2786 $as_echo_n "(cached) " >&6
2788 if test -n "$CC"; then
2789 ac_cv_prog_CC="$CC" # Let the user override the test.
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 test -z "$as_dir" && as_dir=.
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2798 ac_cv_prog_CC="${ac_tool_prefix}cc"
2799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 if test -n "$CC"; then
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2811 $as_echo "$CC" >&6; }
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2814 $as_echo "no" >&6; }
2820 if test -z "$CC"; then
2821 # Extract the first word of "cc", so it can be a program name with args.
2822 set dummy cc; ac_word=$2
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2824 $as_echo_n "checking for $ac_word... " >&6; }
2825 if test "${ac_cv_prog_CC+set}" = set; then :
2826 $as_echo_n "(cached) " >&6
2828 if test -n "$CC"; then
2829 ac_cv_prog_CC="$CC" # Let the user override the test.
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2840 ac_prog_rejected=yes
2844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 if test $ac_prog_rejected = yes; then
2852 # We found a bogon in the path, so make sure we never use it.
2853 set dummy $ac_cv_prog_CC
2855 if test $# != 0; then
2856 # We chose a different compiler from the bogus one.
2857 # However, it has the same basename, so the bogon will be chosen
2858 # first if we set CC to just the basename; use the full file name.
2860 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2866 if test -n "$CC"; then
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2868 $as_echo "$CC" >&6; }
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 $as_echo "no" >&6; }
2876 if test -z "$CC"; then
2877 if test -n "$ac_tool_prefix"; then
2878 for ac_prog in cl.exe
2880 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2881 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if test "${ac_cv_prog_CC+set}" = set; then :
2885 $as_echo_n "(cached) " >&6
2887 if test -n "$CC"; then
2888 ac_cv_prog_CC="$CC" # Let the user override the test.
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 if test -n "$CC"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2910 $as_echo "$CC" >&6; }
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2917 test -n "$CC" && break
2920 if test -z "$CC"; then
2922 for ac_prog in cl.exe
2924 # Extract the first word of "$ac_prog", so it can be a program name with args.
2925 set dummy $ac_prog; ac_word=$2
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927 $as_echo_n "checking for $ac_word... " >&6; }
2928 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2929 $as_echo_n "(cached) " >&6
2931 if test -n "$ac_ct_CC"; then
2932 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941 ac_cv_prog_ac_ct_CC="$ac_prog"
2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2952 if test -n "$ac_ct_CC"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2954 $as_echo "$ac_ct_CC" >&6; }
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 $as_echo "no" >&6; }
2961 test -n "$ac_ct_CC" && break
2964 if test "x$ac_ct_CC" = x; then
2967 case $cross_compiling:$ac_tool_warned in
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2971 ac_tool_warned=yes ;;
2980 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2982 as_fn_error $? "no acceptable C compiler found in \$PATH
2983 See \`config.log' for more details" "$LINENO" 5 ; }
2985 # Provide some information about the compiler.
2986 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2989 for ac_option in --version -v -V -qversion; do
2990 { { ac_try="$ac_compiler $ac_option >&5"
2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993 *) ac_try_echo=$ac_try;;
2995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2996 $as_echo "$ac_try_echo"; } >&5
2997 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2999 if test -s conftest.err; then
3001 ... rest of stderr output deleted ...
3002 10q' conftest.err >conftest.er1
3003 cat conftest.er1 >&5
3005 rm -f conftest.er1 conftest.err
3006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3007 test $ac_status = 0; }
3010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3011 /* end confdefs.h. */
3021 ac_clean_files_save=$ac_clean_files
3022 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3023 # Try to create an executable without -o first, disregard a.out.
3024 # It will help us diagnose broken compilers, and finding out an intuition
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3027 $as_echo_n "checking whether the C compiler works... " >&6; }
3028 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3030 # The possible output files:
3031 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3034 for ac_file in $ac_files
3037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3038 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3043 if { { ac_try="$ac_link_default"
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3049 $as_echo "$ac_try_echo"; } >&5
3050 (eval "$ac_link_default") 2>&5
3052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3053 test $ac_status = 0; }; then :
3054 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3055 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3056 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3057 # so that the user can short-circuit this test for compilers unknown to
3059 for ac_file in $ac_files ''
3061 test -f "$ac_file" || continue
3063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3066 # We found the default executable, but exeext='' is most
3070 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3072 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3074 # We set ac_cv_exeext here because the later test for it is not
3075 # safe: cross compilers may not add the suffix if given an `-o'
3076 # argument, so we may need to know it at that point already.
3077 # Even if this section looks crufty: it has the advantage of
3084 test "$ac_cv_exeext" = no && ac_cv_exeext=
3089 if test -z "$ac_file"; then :
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091 $as_echo "no" >&6; }
3092 $as_echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3097 as_fn_error 77 "C compiler cannot create executables
3098 See \`config.log' for more details" "$LINENO" 5 ; }
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3101 $as_echo "yes" >&6; }
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3104 $as_echo_n "checking for C compiler default output file name... " >&6; }
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3106 $as_echo "$ac_file" >&6; }
3107 ac_exeext=$ac_cv_exeext
3109 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3110 ac_clean_files=$ac_clean_files_save
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3112 $as_echo_n "checking for suffix of executables... " >&6; }
3113 if { { ac_try="$ac_link"
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3119 $as_echo "$ac_try_echo"; } >&5
3120 (eval "$ac_link") 2>&5
3122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3123 test $ac_status = 0; }; then :
3124 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3125 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3126 # work properly (i.e., refer to `conftest.exe'), while it won't with
3128 for ac_file in conftest.exe conftest conftest.*; do
3129 test -f "$ac_file" || continue
3131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3132 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3140 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3141 See \`config.log' for more details" "$LINENO" 5 ; }
3143 rm -f conftest conftest$ac_cv_exeext
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3145 $as_echo "$ac_cv_exeext" >&6; }
3147 rm -f conftest.$ac_ext
3148 EXEEXT=$ac_cv_exeext
3150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3151 /* end confdefs.h. */
3156 FILE *f = fopen ("conftest.out", "w");
3157 return ferror (f) || fclose (f) != 0;
3163 ac_clean_files="$ac_clean_files conftest.out"
3164 # Check that the compiler produces executables we can run. If not, either
3165 # the compiler is broken, or we cross compile.
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3167 $as_echo_n "checking whether we are cross compiling... " >&6; }
3168 if test "$cross_compiling" != yes; then
3169 { { ac_try="$ac_link"
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3175 $as_echo "$ac_try_echo"; } >&5
3176 (eval "$ac_link") 2>&5
3178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3179 test $ac_status = 0; }
3180 if { ac_try='./conftest$ac_cv_exeext'
3181 { { case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3186 $as_echo "$ac_try_echo"; } >&5
3187 (eval "$ac_try") 2>&5
3189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3190 test $ac_status = 0; }; }; then
3193 if test "$cross_compiling" = maybe; then
3196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3198 as_fn_error $? "cannot run C compiled programs.
3199 If you meant to cross compile, use \`--host'.
3200 See \`config.log' for more details" "$LINENO" 5 ; }
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3205 $as_echo "$cross_compiling" >&6; }
3207 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3208 ac_clean_files=$ac_clean_files_save
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3210 $as_echo_n "checking for suffix of object files... " >&6; }
3211 if test "${ac_cv_objext+set}" = set; then :
3212 $as_echo_n "(cached) " >&6
3214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3215 /* end confdefs.h. */
3225 rm -f conftest.o conftest.obj
3226 if { { ac_try="$ac_compile"
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3232 $as_echo "$ac_try_echo"; } >&5
3233 (eval "$ac_compile") 2>&5
3235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3236 test $ac_status = 0; }; then :
3237 for ac_file in conftest.o conftest.obj conftest.*; do
3238 test -f "$ac_file" || continue;
3240 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3241 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3246 $as_echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3249 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3251 as_fn_error $? "cannot compute suffix of object files: cannot compile
3252 See \`config.log' for more details" "$LINENO" 5 ; }
3254 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3257 $as_echo "$ac_cv_objext" >&6; }
3258 OBJEXT=$ac_cv_objext
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3261 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3262 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3263 $as_echo_n "(cached) " >&6
3265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266 /* end confdefs.h. */
3279 if ac_fn_c_try_compile "$LINENO"; then :
3284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3289 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3290 if test $ac_compiler_gnu = yes; then
3295 ac_test_CFLAGS=${CFLAGS+set}
3296 ac_save_CFLAGS=$CFLAGS
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3298 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3299 if test "${ac_cv_prog_cc_g+set}" = set; then :
3300 $as_echo_n "(cached) " >&6
3302 ac_save_c_werror_flag=$ac_c_werror_flag
3303 ac_c_werror_flag=yes
3306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3307 /* end confdefs.h. */
3317 if ac_fn_c_try_compile "$LINENO"; then :
3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322 /* end confdefs.h. */
3332 if ac_fn_c_try_compile "$LINENO"; then :
3335 ac_c_werror_flag=$ac_save_c_werror_flag
3337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3338 /* end confdefs.h. */
3348 if ac_fn_c_try_compile "$LINENO"; then :
3351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356 ac_c_werror_flag=$ac_save_c_werror_flag
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3359 $as_echo "$ac_cv_prog_cc_g" >&6; }
3360 if test "$ac_test_CFLAGS" = set; then
3361 CFLAGS=$ac_save_CFLAGS
3362 elif test $ac_cv_prog_cc_g = yes; then
3363 if test "$GCC" = yes; then
3369 if test "$GCC" = yes; then
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3376 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3377 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3378 $as_echo_n "(cached) " >&6
3380 ac_cv_prog_cc_c89=no
3382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383 /* end confdefs.h. */
3386 #include <sys/types.h>
3387 #include <sys/stat.h>
3388 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3389 struct buf { int x; };
3390 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3391 static char *e (p, i)
3397 static char *f (char * (*g) (char **, int), char **p, ...)
3402 s = g (p, va_arg (v,int));
3407 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3408 function prototypes and stuff, but not '\xHH' hex character constants.
3409 These don't provoke an error unfortunately, instead are silently treated
3410 as 'x'. The following induces an error, until -std is added to get
3411 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3412 array size at least. It's necessary to write '\x00'==0 to get something
3413 that's true only with -std. */
3414 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3416 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3417 inside strings and character constants. */
3419 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3421 int test (int i, double x);
3422 struct s1 {int (*f) (int a);};
3423 struct s2 {int (*f) (double a);};
3424 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3430 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3435 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3436 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3438 CC="$ac_save_CC $ac_arg"
3439 if ac_fn_c_try_compile "$LINENO"; then :
3440 ac_cv_prog_cc_c89=$ac_arg
3442 rm -f core conftest.err conftest.$ac_objext
3443 test "x$ac_cv_prog_cc_c89" != "xno" && break
3445 rm -f conftest.$ac_ext
3450 case "x$ac_cv_prog_cc_c89" in
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3453 $as_echo "none needed" >&6; } ;;
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3456 $as_echo "unsupported" >&6; } ;;
3458 CC="$CC $ac_cv_prog_cc_c89"
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3460 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3462 if test "x$ac_cv_prog_cc_c89" != xno; then :
3467 ac_cpp='$CPP $CPPFLAGS'
3468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3473 # When $CC foo.c -o foo creates both foo and foo.exe, autoconf picks
3474 # up the foo.exe and sets exeext to .exe. That is correct for cygwin,
3475 # which has some kind of magic link from foo to foo.exe, but not for
3476 # rntcl. A better check for the cygwin case would check if the
3477 # contents of foo and foo.exe are equal; in the rntcl case, foo is a
3478 # sh script, and foo.exe is a windows executable.
3480 if test "x$CC" = xrntcl ; then
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with rntcl; clearing EXEEXT and disabling assembler" >&5
3482 $as_echo "$as_me: Compiling with rntcl; clearing EXEEXT and disabling assembler" >&6;}
3489 # Used by the testsuite only
3491 ac_cpp='$CXXCPP $CPPFLAGS'
3492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3495 if test -z "$CXX"; then
3496 if test -n "$CCC"; then
3499 if test -n "$ac_tool_prefix"; then
3500 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3502 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3503 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3505 $as_echo_n "checking for $ac_word... " >&6; }
3506 if test "${ac_cv_prog_CXX+set}" = set; then :
3507 $as_echo_n "(cached) " >&6
3509 if test -n "$CXX"; then
3510 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 test -z "$as_dir" && as_dir=.
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3519 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 if test -n "$CXX"; then
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3532 $as_echo "$CXX" >&6; }
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535 $as_echo "no" >&6; }
3539 test -n "$CXX" && break
3542 if test -z "$CXX"; then
3544 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3546 # Extract the first word of "$ac_prog", so it can be a program name with args.
3547 set dummy $ac_prog; ac_word=$2
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549 $as_echo_n "checking for $ac_word... " >&6; }
3550 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3551 $as_echo_n "(cached) " >&6
3553 if test -n "$ac_ct_CXX"; then
3554 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 test -z "$as_dir" && as_dir=.
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3563 ac_cv_prog_ac_ct_CXX="$ac_prog"
3564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3574 if test -n "$ac_ct_CXX"; then
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3576 $as_echo "$ac_ct_CXX" >&6; }
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 $as_echo "no" >&6; }
3583 test -n "$ac_ct_CXX" && break
3586 if test "x$ac_ct_CXX" = x; then
3589 case $cross_compiling:$ac_tool_warned in
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3593 ac_tool_warned=yes ;;
3601 # Provide some information about the compiler.
3602 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3605 for ac_option in --version -v -V -qversion; do
3606 { { ac_try="$ac_compiler $ac_option >&5"
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612 $as_echo "$ac_try_echo"; } >&5
3613 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3615 if test -s conftest.err; then
3617 ... rest of stderr output deleted ...
3618 10q' conftest.err >conftest.er1
3619 cat conftest.er1 >&5
3621 rm -f conftest.er1 conftest.err
3622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623 test $ac_status = 0; }
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3627 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3628 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3629 $as_echo_n "(cached) " >&6
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3645 if ac_fn_cxx_try_compile "$LINENO"; then :
3650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3655 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3656 if test $ac_compiler_gnu = yes; then
3661 ac_test_CXXFLAGS=${CXXFLAGS+set}
3662 ac_save_CXXFLAGS=$CXXFLAGS
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3664 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3665 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3666 $as_echo_n "(cached) " >&6
3668 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3669 ac_cxx_werror_flag=yes
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h. */
3683 if ac_fn_cxx_try_compile "$LINENO"; then :
3684 ac_cv_prog_cxx_g=yes
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h. */
3698 if ac_fn_cxx_try_compile "$LINENO"; then :
3701 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h. */
3714 if ac_fn_cxx_try_compile "$LINENO"; then :
3715 ac_cv_prog_cxx_g=yes
3717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3725 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3726 if test "$ac_test_CXXFLAGS" = set; then
3727 CXXFLAGS=$ac_save_CXXFLAGS
3728 elif test $ac_cv_prog_cxx_g = yes; then
3729 if test "$GXX" = yes; then
3735 if test "$GXX" = yes; then
3742 ac_cpp='$CPP $CPPFLAGS'
3743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3749 ac_cpp='$CXXCPP $CPPFLAGS'
3750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3766 if ac_fn_cxx_try_compile "$LINENO"; then :
3767 CXX_TESTS='cxx-test$(EXEEXT)'
3771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3774 ac_cpp='$CPP $CPPFLAGS'
3775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3781 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3783 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3784 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3785 $as_echo_n "(cached) " >&6
3787 cat >conftest.make <<\_ACEOF
3790 @echo '@@@%%%=$(MAKE)=@@@%%%'
3792 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3793 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3795 eval ac_cv_prog_make_${ac_make}_set=yes;;
3797 eval ac_cv_prog_make_${ac_make}_set=no;;
3801 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3803 $as_echo "yes" >&6; }
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3807 $as_echo "no" >&6; }
3808 SET_MAKE="MAKE=${MAKE-make}"
3811 if test -n "$ac_tool_prefix"; then
3812 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3813 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815 $as_echo_n "checking for $ac_word... " >&6; }
3816 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3817 $as_echo_n "(cached) " >&6
3819 if test -n "$RANLIB"; then
3820 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826 test -z "$as_dir" && as_dir=.
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3829 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3839 RANLIB=$ac_cv_prog_RANLIB
3840 if test -n "$RANLIB"; then
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3842 $as_echo "$RANLIB" >&6; }
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 $as_echo "no" >&6; }
3850 if test -z "$ac_cv_prog_RANLIB"; then
3851 ac_ct_RANLIB=$RANLIB
3852 # Extract the first word of "ranlib", so it can be a program name with args.
3853 set dummy ranlib; ac_word=$2
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3857 $as_echo_n "(cached) " >&6
3859 if test -n "$ac_ct_RANLIB"; then
3860 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 test -z "$as_dir" && as_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3869 ac_cv_prog_ac_ct_RANLIB="ranlib"
3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3880 if test -n "$ac_ct_RANLIB"; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3882 $as_echo "$ac_ct_RANLIB" >&6; }
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3888 if test "x$ac_ct_RANLIB" = x; then
3891 case $cross_compiling:$ac_tool_warned in
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3895 ac_tool_warned=yes ;;
3897 RANLIB=$ac_ct_RANLIB
3900 RANLIB="$ac_cv_prog_RANLIB"
3903 if test -n "$ac_tool_prefix"; then
3904 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
3905 set dummy ${ac_tool_prefix}nm; ac_word=$2
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3907 $as_echo_n "checking for $ac_word... " >&6; }
3908 if test "${ac_cv_prog_NM+set}" = set; then :
3909 $as_echo_n "(cached) " >&6
3911 if test -n "$NM"; then
3912 ac_cv_prog_NM="$NM" # Let the user override the test.
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 test -z "$as_dir" && as_dir=.
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3921 ac_cv_prog_NM="${ac_tool_prefix}nm"
3922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3932 if test -n "$NM"; then
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
3934 $as_echo "$NM" >&6; }
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937 $as_echo "no" >&6; }
3942 if test -z "$ac_cv_prog_NM"; then
3944 # Extract the first word of "nm", so it can be a program name with args.
3945 set dummy nm; ac_word=$2
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3947 $as_echo_n "checking for $ac_word... " >&6; }
3948 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
3949 $as_echo_n "(cached) " >&6
3951 if test -n "$ac_ct_NM"; then
3952 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 test -z "$as_dir" && as_dir=.
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3961 ac_cv_prog_ac_ct_NM="nm"
3962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3971 ac_ct_NM=$ac_cv_prog_ac_ct_NM
3972 if test -n "$ac_ct_NM"; then
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
3974 $as_echo "$ac_ct_NM" >&6; }
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977 $as_echo "no" >&6; }
3980 if test "x$ac_ct_NM" = x; then
3983 case $cross_compiling:$ac_tool_warned in
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3987 ac_tool_warned=yes ;;
3995 # Used only for the GNU-stack configure test.
3996 if test -n "$ac_tool_prefix"; then
3997 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3998 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000 $as_echo_n "checking for $ac_word... " >&6; }
4001 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4004 if test -n "$OBJDUMP"; then
4005 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011 test -z "$as_dir" && as_dir=.
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4014 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4024 OBJDUMP=$ac_cv_prog_OBJDUMP
4025 if test -n "$OBJDUMP"; then
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4027 $as_echo "$OBJDUMP" >&6; }
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030 $as_echo "no" >&6; }
4035 if test -z "$ac_cv_prog_OBJDUMP"; then
4036 ac_ct_OBJDUMP=$OBJDUMP
4037 # Extract the first word of "objdump", so it can be a program name with args.
4038 set dummy objdump; ac_word=$2
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4040 $as_echo_n "checking for $ac_word... " >&6; }
4041 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4042 $as_echo_n "(cached) " >&6
4044 if test -n "$ac_ct_OBJDUMP"; then
4045 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 test -z "$as_dir" && as_dir=.
4052 for ac_exec_ext in '' $ac_executable_extensions; do
4053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4054 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4064 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4065 if test -n "$ac_ct_OBJDUMP"; then
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4067 $as_echo "$ac_ct_OBJDUMP" >&6; }
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4070 $as_echo "no" >&6; }
4073 if test "x$ac_ct_OBJDUMP" = x; then
4076 case $cross_compiling:$ac_tool_warned in
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4080 ac_tool_warned=yes ;;
4082 OBJDUMP=$ac_ct_OBJDUMP
4085 OBJDUMP="$ac_cv_prog_OBJDUMP"
4089 if test "x$ac_cv_prog_cc_stdc" = xno ; then
4090 as_fn_error $? "the C compiler doesn't handle ANSI-C" "$LINENO" 5 #'
4093 # Find a good install program. We prefer a C program (faster),
4094 # so one script is as good as another. But avoid the broken or
4095 # incompatible versions:
4096 # SysV /etc/install, /usr/sbin/install
4097 # SunOS /usr/etc/install
4098 # IRIX /sbin/install
4100 # AmigaOS /C/install, which installs bootblocks on floppy discs
4101 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4102 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4103 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4104 # OS/2's system install, which has a completely different semantic
4105 # ./install, which can be erroneously created by make from ./install.sh.
4106 # Reject install programs that cannot install multiple files.
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4108 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4109 if test -z "$INSTALL"; then
4110 if test "${ac_cv_path_install+set}" = set; then :
4111 $as_echo_n "(cached) " >&6
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 test -z "$as_dir" && as_dir=.
4118 # Account for people who put trailing slashes in PATH elements.
4119 case $as_dir/ in #((
4120 ./ | .// | /[cC]/* | \
4121 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4122 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4125 # OSF1 and SCO ODT 3.0 have their own names for install.
4126 # Don't use installbsd from OSF since it installs stuff as root
4128 for ac_prog in ginstall scoinst install; do
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4131 if test $ac_prog = install &&
4132 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4133 # AIX install. It has an incompatible calling convention.
4135 elif test $ac_prog = install &&
4136 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4137 # program-specific install script used by HP pwplus--don't use.
4140 rm -rf conftest.one conftest.two conftest.dir
4141 echo one > conftest.one
4142 echo two > conftest.two
4144 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4145 test -s conftest.one && test -s conftest.two &&
4146 test -s conftest.dir/conftest.one &&
4147 test -s conftest.dir/conftest.two
4149 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4162 rm -rf conftest.one conftest.two conftest.dir
4165 if test "${ac_cv_path_install+set}" = set; then
4166 INSTALL=$ac_cv_path_install
4168 # As a last resort, use the slow shell script. Don't cache a
4169 # value for INSTALL within a source directory, because that will
4170 # break other packages using the cache if that directory is
4171 # removed, or if the value is a relative name.
4172 INSTALL=$ac_install_sh
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4176 $as_echo "$INSTALL" >&6; }
4178 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4179 # It thinks the first close brace ends the variable substitution.
4180 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4182 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4184 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4187 # According to the autoconf manual, needs install-sh from
4188 # autoconf-2.60 or automake-1.10 to avoid races.
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4190 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4191 if test -z "$MKDIR_P"; then
4192 if test "${ac_cv_path_mkdir+set}" = set; then :
4193 $as_echo_n "(cached) " >&6
4195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4199 test -z "$as_dir" && as_dir=.
4200 for ac_prog in mkdir gmkdir; do
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4203 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4204 'mkdir (GNU coreutils) '* | \
4205 'mkdir (coreutils) '* | \
4206 'mkdir (fileutils) '4.1*)
4207 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4217 test -d ./--version && rmdir ./--version
4218 if test "${ac_cv_path_mkdir+set}" = set; then
4219 MKDIR_P="$ac_cv_path_mkdir -p"
4221 # As a last resort, use the slow shell script. Don't cache a
4222 # value for MKDIR_P within a source directory, because that will
4223 # break other packages using the cache if that directory is
4224 # removed, or if the value is a relative name.
4225 MKDIR_P="$ac_install_sh -d"
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4229 $as_echo "$MKDIR_P" >&6; }
4232 # Check whether --enable-dependency_tracking was given.
4233 if test "${enable_dependency_tracking+set}" = set; then :
4234 enableval=$enable_dependency_tracking;
4236 enable_dependency_tracking=yes
4242 if test x$enable_dependency_tracking = xyes ; then
4243 if test x$GCC = xyes ; then
4244 gcc_version=`gcc --version | head -1`
4245 case "$gcc_version" in
4247 enable_dependency_tracking=no
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Dependency tracking disabled, gcc-3.x is needed" >&5
4249 $as_echo "$as_me: WARNING: Dependency tracking disabled, gcc-3.x is needed" >&2;}
4252 DEP_FLAGS='-MT $@ -MD -MP -MF $@.d'
4257 enable_dependency_tracking=no
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Dependency tracking disabled" >&5
4259 $as_echo "$as_me: WARNING: Dependency tracking disabled" >&2;}
4263 if test x$enable_dependency_tracking = xyes ; then
4264 DEP_INCLUDE='include '
4273 if test x$enable_dependency_tracking = xyes ; then
4274 # Since the makefiles use include to get the dependency files, we must
4275 # make sure that the files exist. We generate some more files than are
4278 ac_config_commands="$ac_config_commands dummy-dep-files"
4282 # Figure out ABI. Currently, configurable only by setting CFLAGS.
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4291 #if defined(__x86_64__) || defined(__arch64__)
4303 if ac_fn_c_try_compile "$LINENO"; then :
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4318 #if defined(__sparcv9) || defined(__arch64__)
4330 if ac_fn_c_try_compile "$LINENO"; then :
4339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343 if test "x$ABI" != xstandard ; then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler uses $ABI-bit ABI. To change, set CC." >&5
4345 $as_echo "$as_me: Compiler uses $ABI-bit ABI. To change, set CC." >&6;}
4346 if test "$libdir" = '${exec_prefix}/lib' ; then
4347 # Try setting a better default
4348 case "$host_cpu:$host_os:$ABI" in
4349 *:solaris*:32|*:sunos*:32)
4350 libdir='${exec_prefix}/lib'
4352 *:solaris*:64|*:sunos*:64)
4353 libdir='${exec_prefix}/lib/64'
4355 # Linux conventions are a mess... According to the Linux File
4356 # Hierarchy Standard, all architectures except IA64 puts 32-bit
4357 # libraries in lib, and 64-bit in lib64. Some distributions,
4358 # e.g., Fedora and Gentoo, adhere to this standard, while at
4359 # least Debian has decided to put 64-bit libraries in lib and
4360 # 32-bit libraries in lib32.
4362 # We try to figure out the convention, except if we're cross
4363 # compiling. We use lib${ABI} if /usr/lib${ABI} exists and
4364 # appears to not be a symlink to a different name.
4365 *:linux*:32|*:linux*:64)
4366 if test "$cross_compiling" = yes ; then
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cross compiling for linux. Can't guess if libraries go in lib${ABI} or lib." >&5
4368 $as_echo "$as_me: WARNING: Cross compiling for linux. Can't guess if libraries go in lib${ABI} or lib." >&2;}; else
4369 # The dash builtin pwd tries to be "helpful" and remember
4370 # symlink names. Use -P option, and hope it's portable enough.
4371 test -d /usr/lib${ABI} \
4372 && (cd /usr/lib${ABI} && pwd -P | grep >/dev/null "/lib${ABI}"'$') \
4373 && libdir='${exec_prefix}/'"lib${ABI}"
4376 # On freebsd, it seems 32-bit libraries are in lib32,
4377 # and 64-bit in lib. Don't know about "kfreebsd", does
4378 # it follow the Linux fhs conventions?
4380 libdir='${exec_prefix}/lib32'
4383 libdir='${exec_prefix}/lib'
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know where to install $ABI-bit libraries on this system." >&5
4387 $as_echo "$as_me: WARNING: Don't know where to install $ABI-bit libraries on this system." >&2;};
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: Libraries to be installed in $libdir." >&5
4390 $as_echo "$as_me: Libraries to be installed in $libdir." >&6;}
4394 # Select assembler code
4396 if test "x$enable_assembler" = xyes ; then
4398 i?86* | k[5-8]* | pentium* | athlon)
4402 if test "$ABI" = 64 ; then
4409 if test "$ABI" = 64 ; then
4420 # echo "enable_assembler: $enable_assembler, asm_path: $asm_path"
4422 if test "x$enable_assembler" = xyes ; then
4423 if test -n "$asm_path"; then
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: Looking for assembler files in $asm_path/." >&5
4425 $as_echo "$as_me: Looking for assembler files in $asm_path/." >&6;}
4427 for tmp_f in aes-encrypt-internal.asm aes-decrypt-internal.asm \
4428 arcfour-crypt.asm camellia-crypt-internal.asm \
4429 md5-compress.asm memxor.asm \
4430 serpent-encrypt.asm serpent-decrypt.asm \
4431 sha1-compress.asm machine.m4; do
4432 # echo "Looking for $srcdir/$asm_path/$tmp_f"
4433 if test -f "$srcdir/$asm_path/$tmp_f"; then
4436 ac_config_links="$ac_config_links $tmp_f:$asm_path/$tmp_f"
4440 if test "$found" = no; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No assembler files found." >&5
4443 $as_echo "$as_me: WARNING: No assembler files found." >&2;}
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCPIC" >&5
4449 $as_echo_n "checking CCPIC... " >&6; }
4450 if test "${lsh_cv_sys_ccpic+set}" = set; then :
4451 $as_echo_n "(cached) " >&6
4454 if test -z "$CCPIC" ; then
4455 if test "$GCC" = yes ; then
4457 bsdi4.*) CCPIC="-fPIC" ;;
4459 darwin*) CCPIC="-fPIC" ;;
4460 # Could also use -fpic, depending on the number of symbol references
4461 solaris*) CCPIC="-fPIC" ;;
4462 cygwin*) CCPIC="" ;;
4463 mingw32*) CCPIC="" ;;
4468 darwin*) CCPIC="-fPIC" ;;
4469 irix*) CCPIC="-share" ;;
4470 hpux*) CCPIC="+z"; ;;
4471 *freebsd*) CCPIC="-fpic" ;;
4472 sco*|sysv4.*) CCPIC="-KPIC -dy -Bdynamic" ;;
4473 solaris*) CCPIC="-KPIC -Bdynamic" ;;
4474 winnt*) CCPIC="-shared" ;;
4479 OLD_CFLAGS="$CFLAGS"
4480 CFLAGS="$CFLAGS $CCPIC"
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4492 if ac_fn_c_try_compile "$LINENO"; then :
4493 lsh_cv_sys_ccpic="$CCPIC"
4497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498 CFLAGS="$OLD_CFLAGS"
4502 CCPIC="$lsh_cv_sys_ccpic"
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCPIC" >&5
4504 $as_echo "$CCPIC" >&6; }
4507 SHLIBCFLAGS="$CCPIC"
4511 LIBNETTLE_FORLINK='libnettle-$(LIBNETTLE_MAJOR)-$(LIBNETTLE_MINOR).dll'
4513 LIBNETTLE_FILE='libnettle.dll.a'
4514 LIBNETTLE_LINK='$(CC) $(LDFLAGS) -shared -Wl,--out-implib=$(LIBNETTLE_FILE) -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive'
4515 LIBNETTLE_LIBS='-Wl,--no-whole-archive $(LIBS)'
4517 LIBHOGWEED_FORLINK='libhogweed-$(LIBHOGWEED_MAJOR)-$(LIBHOGWEED_MINOR).dll'
4518 LIBHOGWEED_SONAME=''
4519 LIBHOGWEED_FILE='libhogweed.dll.a'
4520 LIBHOGWEED_LINK='$(CC) $(LDFLAGS) -shared -Wl,--out-implib=$(LIBHOGWEED_FILE) -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive'
4521 LIBHOGWEED_LIBS='-Wl,--no-whole-archive $(LIBS) libnettle.dll.a'
4524 LIBNETTLE_FORLINK='cygnettle-$(LIBNETTLE_MAJOR)-$(LIBNETTLE_MINOR).dll'
4526 LIBNETTLE_FILE='libnettle.dll.a'
4527 LIBNETTLE_LINK='$(CC) $(LDFLAGS) -shared -Wl,--out-implib=$(LIBNETTLE_FILE) -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive'
4528 LIBNETTLE_LIBS='-Wl,--no-whole-archive $(LIBS)'
4530 LIBHOGWEED_FORLINK='cyghogweed-$(LIBHOGWEED_MAJOR)-$(LIBHOGWEED_MINOR).dll'
4531 LIBHOGWEED_SONAME=''
4532 LIBHOGWEED_FILE='libhogweed.dll.a'
4533 LIBHOGWEED_LINK='$(CC) $(LDFLAGS) -shared -Wl,--out-implib=$(LIBHOGWEED_FILE) -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive'
4534 LIBHOGWEED_LIBS='-Wl,--no-whole-archive $(LIBS)'
4537 LIBNETTLE_FORLINK=libnettle.dylib
4538 LIBNETTLE_SONAME='$(LIBNETTLE_FORLINK).$(LIBNETTLE_MAJOR)'
4539 LIBNETTLE_FILE='$(LIBNETTLE_SONAME).$(LIBNETTLE_MINOR)'
4540 LIBNETTLE_LINK='$(CC) -dynamiclib $(LDFLAGS)'
4543 LIBHOGWEED_FORLINK=libhogweed.dylib
4544 LIBHOGWEED_SONAME='$(LIBHOGWEED_FORLINK).$(LIBHOGWEED_MAJOR)'
4545 LIBHOGWEED_FILE='$(LIBHOGWEED_SONAME).$(LIBHOGWEED_MINOR)'
4546 LIBHOGWEED_LINK='$(CC) -dynamiclib $(LDFLAGS)'
4550 # Sun's ld uses -h to set the soname, and this option is passed
4551 # through by both Sun's compiler and gcc. Might not work with GNU
4552 # ld, but it's unusual to use GNU ld on Solaris.
4553 LIBNETTLE_FORLINK=libnettle.so
4554 LIBNETTLE_SONAME='$(LIBNETTLE_FORLINK).$(LIBNETTLE_MAJOR)'
4555 LIBNETTLE_FILE='$(LIBNETTLE_SONAME).$(LIBNETTLE_MINOR)'
4556 LIBNETTLE_LINK='$(CC) $(LDFLAGS) -G -h $(LIBNETTLE_SONAME)'
4559 LIBHOGWEED_FORLINK=libhogweed.so
4560 LIBHOGWEED_SONAME='$(LIBHOGWEED_FORLINK).$(LIBHOGWEED_MAJOR)'
4561 LIBHOGWEED_FILE='$(LIBHOGWEED_SONAME).$(LIBHOGWEED_MINOR)'
4562 LIBHOGWEED_LINK='$(CC) $(LDFLAGS) -L. -G -h $(LIBHOGWEED_SONAME)'
4563 LIBHOGWEED_LIBS='-lnettle -lgmp'
4566 LIBNETTLE_FORLINK=libnettle.so
4567 LIBNETTLE_SONAME='$(LIBNETTLE_FORLINK).$(LIBNETTLE_MAJOR)'
4568 LIBNETTLE_FILE='$(LIBNETTLE_SONAME).$(LIBNETTLE_MINOR)'
4569 LIBNETTLE_LINK='$(CC) $(LDFLAGS) -shared -Wl,-soname=$(LIBNETTLE_SONAME)'
4572 LIBHOGWEED_FORLINK=libhogweed.so
4573 LIBHOGWEED_SONAME='$(LIBHOGWEED_FORLINK).$(LIBHOGWEED_MAJOR)'
4574 LIBHOGWEED_FILE='$(LIBHOGWEED_SONAME).$(LIBHOGWEED_MINOR)'
4575 LIBHOGWEED_LINK='$(CC) $(LDFLAGS) -L. -shared -Wl,-soname=$(LIBHOGWEED_SONAME)'
4576 # Requested by debian, to make linking with only -lhogweed work
4577 # (does not work in general, e.g., with static linking all of
4578 # -lhogweed -lgmp -lnettle are still required). Also makes dlopen
4579 # of libhogweed.so work, without having to use RTLD_GLOBAL.
4580 # Depends on -L. above, to locate nettle.so.
4581 LIBHOGWEED_LIBS='-lnettle -lgmp'
4585 if test "x$enable_pic" = xyes; then
4586 CCPIC_MAYBE="$CCPIC"
4592 ASM_SYMBOL_PREFIX=''
4594 ASM_TYPE_FUNCTION=''
4595 ASM_MARK_NOEXEC_STACK=''
4598 if test x$enable_assembler = xyes ; then
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if globals are prefixed by underscore" >&5
4600 $as_echo_n "checking if globals are prefixed by underscore... " >&6; }
4601 if test "${nettle_cv_asm_underscore+set}" = set; then :
4602 $as_echo_n "(cached) " >&6
4604 # Default is no underscore
4605 nettle_cv_asm_underscore=no
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4608 int a_global_symbol;
4610 if ac_fn_c_try_compile "$LINENO"; then :
4611 $NM conftest.$OBJEXT >conftest.out
4612 if grep _a_global_symbol conftest.out >/dev/null ; then
4613 nettle_cv_asm_underscore=yes
4614 elif grep a_global_symbol conftest.out >/dev/null ; then
4615 nettle_cv_asm_underscore=no
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: nm doesn't list a_global_symbol at all" >&5
4618 $as_echo "$as_me: WARNING: nm doesn't list a_global_symbol at all" >&2;}
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: test program with a single global could not be compiled!?" >&5
4622 $as_echo "$as_me: WARNING: test program with a single global could not be compiled!?" >&2;}
4624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_underscore" >&5
4627 $as_echo "$nettle_cv_asm_underscore" >&6; }
4628 if test x$nettle_cv_asm_underscore = xyes ; then
4629 ASM_SYMBOL_PREFIX='_'
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use a .note.GNU-stack section" >&5
4633 $as_echo_n "checking if we should use a .note.GNU-stack section... " >&6; }
4634 if test "${nettle_cv_asm_gnu_stack+set}" = set; then :
4635 $as_echo_n "(cached) " >&6
4638 nettle_cv_asm_gnu_stack=no
4640 cat >conftest.c <<EOF
4641 int foo() { return 0; }
4643 nettle_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >conftest.out 2>&1"
4644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$nettle_compile\""; } >&5
4645 (eval $nettle_compile) 2>&5
4647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4648 test $ac_status = 0; }; then
4649 cat conftest.out >&5
4650 $OBJDUMP -x conftest.o | grep '\.note\.GNU-stack' > /dev/null \
4651 && nettle_cv_asm_gnu_stack=yes
4653 cat conftest.out >&5
4654 echo "configure: failed program was:" >&5
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_gnu_stack" >&5
4660 $as_echo "$nettle_cv_asm_gnu_stack" >&6; }
4661 if test x$nettle_cv_asm_gnu_stack = xyes ; then
4662 ASM_MARK_NOEXEC_STACK='.section .note.GNU-stack,"",@progbits'
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF-style .type,%function pseudo-ops" >&5
4666 $as_echo_n "checking for ELF-style .type,%function pseudo-ops... " >&6; }
4667 if test "${nettle_cv_asm_type_percent_function+set}" = set; then :
4668 $as_echo_n "(cached) " >&6
4670 cat >conftest.s <<EOF
4678 .size foo, .Lend - foo
4681 gmp_assemble="$CC $CFLAGS $CPPFLAGS -c conftest.s >conftest.out 2>&1"
4682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
4683 (eval $gmp_assemble) 2>&5
4685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4686 test $ac_status = 0; }; then
4687 cat conftest.out >&5
4688 nettle_cv_asm_type_percent_function=yes
4690 cat conftest.out >&5
4691 echo "configure: failed program was:" >&5
4693 nettle_cv_asm_type_percent_function=no
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_type_percent_function" >&5
4699 $as_echo "$nettle_cv_asm_type_percent_function" >&6; }
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF-style .type,#function pseudo-ops" >&5
4702 $as_echo_n "checking for ELF-style .type,#function pseudo-ops... " >&6; }
4703 if test "${nettle_cv_asm_type_hash_function+set}" = set; then :
4704 $as_echo_n "(cached) " >&6
4706 cat >conftest.s <<EOF
4714 .size foo, .Lend - foo
4717 gmp_assemble="$CC $CFLAGS $CPPFLAGS -c conftest.s >conftest.out 2>&1"
4718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
4719 (eval $gmp_assemble) 2>&5
4721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4722 test $ac_status = 0; }; then
4723 cat conftest.out >&5
4724 nettle_cv_asm_type_hash_function=yes
4726 cat conftest.out >&5
4727 echo "configure: failed program was:" >&5
4729 nettle_cv_asm_type_hash_function=no
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_type_hash_function" >&5
4735 $as_echo "$nettle_cv_asm_type_hash_function" >&6; }
4737 if test x$nettle_cv_asm_type_percent_function = xyes ; then
4739 ASM_TYPE_FUNCTION='%function'
4741 if test x$nettle_cv_asm_type_hash_function = xyes ; then
4743 ASM_TYPE_FUNCTION='#function'
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .align assembly directive is logarithmic" >&5
4747 $as_echo_n "checking if .align assembly directive is logarithmic... " >&6; }
4748 if test "${nettle_cv_asm_align_log+set}" = set; then :
4749 $as_echo_n "(cached) " >&6
4751 cat >conftest.s <<EOF
4756 gmp_assemble="$CC $CFLAGS $CPPFLAGS -c conftest.s >conftest.out 2>&1"
4757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
4758 (eval $gmp_assemble) 2>&5
4760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4761 test $ac_status = 0; }; then
4762 cat conftest.out >&5
4763 nettle_cv_asm_align_log=yes
4765 cat conftest.out >&5
4766 echo "configure: failed program was:" >&5
4768 nettle_cv_asm_align_log=no
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_align_log" >&5
4774 $as_echo "$nettle_cv_asm_align_log" >&6; }
4775 if test x$nettle_cv_asm_align_log = xyes ; then
4804 # Extract the first word of "m4", so it can be a program name with args.
4805 set dummy m4; ac_word=$2
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807 $as_echo_n "checking for $ac_word... " >&6; }
4808 if test "${ac_cv_path_M4+set}" = set; then :
4809 $as_echo_n "(cached) " >&6
4813 ac_cv_path_M4="$M4" # Let the user override the test with a path.
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823 ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext"
4824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 test -z "$ac_cv_path_M4" && ac_cv_path_M4="m4"
4836 if test -n "$M4"; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
4838 $as_echo "$M4" >&6; }
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841 $as_echo "no" >&6; }
4846 if test "x$enable_gcov" = "xyes"; then
4847 CFLAGS="$CFLAGS -ftest-coverage -fprofile-arcs"
4850 # Checks for typedefs, structures, and compiler characteristics.
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4852 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4853 if test "${ac_cv_c_const+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857 /* end confdefs.h. */
4862 /* FIXME: Include the comments suggested by Paul. */
4864 /* Ultrix mips cc rejects this. */
4865 typedef int charset[2];
4867 /* SunOS 4.1.1 cc rejects this. */
4868 char const *const *pcpcc;
4870 /* NEC SVR4.0.2 mips cc rejects this. */
4871 struct point {int x, y;};
4872 static struct point const zero = {0,0};
4873 /* AIX XL C 1.02.0.0 rejects this.
4874 It does not let you subtract one const X* pointer from another in
4875 an arm of an if-expression whose if-part is not a constant
4877 const char *g = "string";
4878 pcpcc = &g + (g ? g-g : 0);
4879 /* HPUX 7.0 cc rejects these. */
4881 ppc = (char**) pcpcc;
4882 pcpcc = (char const *const *) ppc;
4883 { /* SCO 3.2v4 cc rejects this. */
4885 char const *s = 0 ? (char *) 0 : (char const *) 0;
4890 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4892 const int *foo = &x[0];
4895 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4896 typedef const int *iptr;
4900 { /* AIX XL C 1.02.0.0 rejects this saying
4901 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4902 struct s { int j; const int *ap[3]; };
4903 struct s *b; b->j = 5;
4905 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4909 return !cs[0] && !zero.x;
4916 if ac_fn_c_try_compile "$LINENO"; then :
4921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4924 $as_echo "$ac_cv_c_const" >&6; }
4925 if test $ac_cv_c_const = no; then
4927 $as_echo "#define const /**/" >>confdefs.h
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4932 $as_echo_n "checking for inline... " >&6; }
4933 if test "${ac_cv_c_inline+set}" = set; then :
4934 $as_echo_n "(cached) " >&6
4937 for ac_kw in inline __inline__ __inline; do
4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h. */
4942 static $ac_kw foo_t static_foo () {return 0; }
4943 $ac_kw foo_t foo () {return 0; }
4947 if ac_fn_c_try_compile "$LINENO"; then :
4948 ac_cv_c_inline=$ac_kw
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951 test "$ac_cv_c_inline" != no && break
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4956 $as_echo "$ac_cv_c_inline" >&6; }
4958 case $ac_cv_c_inline in
4961 case $ac_cv_c_inline in
4963 *) ac_val=$ac_cv_c_inline;;
4965 cat >>confdefs.h <<_ACEOF
4967 #define inline $ac_val
4974 ac_cpp='$CPP $CPPFLAGS'
4975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4979 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4980 # On Suns, sometimes $CPP names a directory.
4981 if test -n "$CPP" && test -d "$CPP"; then
4984 if test -z "$CPP"; then
4985 if test "${ac_cv_prog_CPP+set}" = set; then :
4986 $as_echo_n "(cached) " >&6
4988 # Double quotes because CPP needs to be expanded
4989 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4992 for ac_c_preproc_warn_flag in '' yes
4994 # Use a header file that comes with gcc, so configuring glibc
4995 # with a fresh cross-compiler works.
4996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4997 # <limits.h> exists even on freestanding compilers.
4998 # On the NeXT, cc -E runs the code through the compiler's parser,
4999 # not just through cpp. "Syntax error" is here to catch this case.
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5003 # include <limits.h>
5005 # include <assert.h>
5009 if ac_fn_c_try_cpp "$LINENO"; then :
5012 # Broken: fails on valid input.
5015 rm -f conftest.err conftest.i conftest.$ac_ext
5017 # OK, works on sane cases. Now check whether nonexistent headers
5018 # can be detected and how.
5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020 /* end confdefs.h. */
5021 #include <ac_nonexistent.h>
5023 if ac_fn_c_try_cpp "$LINENO"; then :
5024 # Broken: success on invalid input.
5027 # Passes both tests.
5031 rm -f conftest.err conftest.i conftest.$ac_ext
5034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5035 rm -f conftest.i conftest.err conftest.$ac_ext
5036 if $ac_preproc_ok; then :
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5049 $as_echo "$CPP" >&6; }
5051 for ac_c_preproc_warn_flag in '' yes
5053 # Use a header file that comes with gcc, so configuring glibc
5054 # with a fresh cross-compiler works.
5055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5056 # <limits.h> exists even on freestanding compilers.
5057 # On the NeXT, cc -E runs the code through the compiler's parser,
5058 # not just through cpp. "Syntax error" is here to catch this case.
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5062 # include <limits.h>
5064 # include <assert.h>
5068 if ac_fn_c_try_cpp "$LINENO"; then :
5071 # Broken: fails on valid input.
5074 rm -f conftest.err conftest.i conftest.$ac_ext
5076 # OK, works on sane cases. Now check whether nonexistent headers
5077 # can be detected and how.
5078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5079 /* end confdefs.h. */
5080 #include <ac_nonexistent.h>
5082 if ac_fn_c_try_cpp "$LINENO"; then :
5083 # Broken: success on invalid input.
5086 # Passes both tests.
5090 rm -f conftest.err conftest.i conftest.$ac_ext
5093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5094 rm -f conftest.i conftest.err conftest.$ac_ext
5095 if $ac_preproc_ok; then :
5098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5100 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5101 See \`config.log' for more details" "$LINENO" 5 ; }
5105 ac_cpp='$CPP $CPPFLAGS'
5106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5112 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5113 if test "${ac_cv_path_GREP+set}" = set; then :
5114 $as_echo_n "(cached) " >&6
5116 if test -z "$GREP"; then
5117 ac_path_GREP_found=false
5118 # Loop through the user's path and test for each of PROGNAME-LIST
5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5123 test -z "$as_dir" && as_dir=.
5124 for ac_prog in grep ggrep; do
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5127 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5128 # Check for GNU ac_path_GREP and select it if it is found.
5129 # Check for GNU $ac_path_GREP
5130 case `"$ac_path_GREP" --version 2>&1` in
5132 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5135 $as_echo_n 0123456789 >"conftest.in"
5138 cat "conftest.in" "conftest.in" >"conftest.tmp"
5139 mv "conftest.tmp" "conftest.in"
5140 cp "conftest.in" "conftest.nl"
5141 $as_echo 'GREP' >> "conftest.nl"
5142 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5143 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5144 as_fn_arith $ac_count + 1 && ac_count=$as_val
5145 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5146 # Best one so far, save it but keep looking for a better one
5147 ac_cv_path_GREP="$ac_path_GREP"
5148 ac_path_GREP_max=$ac_count
5150 # 10*(2^10) chars as input seems more than enough
5151 test $ac_count -gt 10 && break
5153 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5156 $ac_path_GREP_found && break 3
5161 if test -z "$ac_cv_path_GREP"; then
5162 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5165 ac_cv_path_GREP=$GREP
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5170 $as_echo "$ac_cv_path_GREP" >&6; }
5171 GREP="$ac_cv_path_GREP"
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5175 $as_echo_n "checking for egrep... " >&6; }
5176 if test "${ac_cv_path_EGREP+set}" = set; then :
5177 $as_echo_n "(cached) " >&6
5179 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5180 then ac_cv_path_EGREP="$GREP -E"
5182 if test -z "$EGREP"; then
5183 ac_path_EGREP_found=false
5184 # Loop through the user's path and test for each of PROGNAME-LIST
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5189 test -z "$as_dir" && as_dir=.
5190 for ac_prog in egrep; do
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5193 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5194 # Check for GNU ac_path_EGREP and select it if it is found.
5195 # Check for GNU $ac_path_EGREP
5196 case `"$ac_path_EGREP" --version 2>&1` in
5198 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5201 $as_echo_n 0123456789 >"conftest.in"
5204 cat "conftest.in" "conftest.in" >"conftest.tmp"
5205 mv "conftest.tmp" "conftest.in"
5206 cp "conftest.in" "conftest.nl"
5207 $as_echo 'EGREP' >> "conftest.nl"
5208 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5209 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5210 as_fn_arith $ac_count + 1 && ac_count=$as_val
5211 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5212 # Best one so far, save it but keep looking for a better one
5213 ac_cv_path_EGREP="$ac_path_EGREP"
5214 ac_path_EGREP_max=$ac_count
5216 # 10*(2^10) chars as input seems more than enough
5217 test $ac_count -gt 10 && break
5219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5222 $ac_path_EGREP_found && break 3
5227 if test -z "$ac_cv_path_EGREP"; then
5228 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5231 ac_cv_path_EGREP=$EGREP
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5237 $as_echo "$ac_cv_path_EGREP" >&6; }
5238 EGREP="$ac_cv_path_EGREP"
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5242 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5243 if test "${ac_cv_type_uid_t+set}" = set; then :
5244 $as_echo_n "(cached) " >&6
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h. */
5248 #include <sys/types.h>
5251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5252 $EGREP "uid_t" >/dev/null 2>&1; then :
5253 ac_cv_type_uid_t=yes
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5261 $as_echo "$ac_cv_type_uid_t" >&6; }
5262 if test $ac_cv_type_uid_t = no; then
5264 $as_echo "#define uid_t int" >>confdefs.h
5267 $as_echo "#define gid_t int" >>confdefs.h
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5272 $as_echo_n "checking for ANSI C header files... " >&6; }
5273 if test "${ac_cv_header_stdc+set}" = set; then :
5274 $as_echo_n "(cached) " >&6
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5291 if ac_fn_c_try_compile "$LINENO"; then :
5292 ac_cv_header_stdc=yes
5294 ac_cv_header_stdc=no
5296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5298 if test $ac_cv_header_stdc = yes; then
5299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h. */
5305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5306 $EGREP "memchr" >/dev/null 2>&1; then :
5309 ac_cv_header_stdc=no
5315 if test $ac_cv_header_stdc = yes; then
5316 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318 /* end confdefs.h. */
5322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5323 $EGREP "free" >/dev/null 2>&1; then :
5326 ac_cv_header_stdc=no
5332 if test $ac_cv_header_stdc = yes; then
5333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5334 if test "$cross_compiling" = yes; then :
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h. */
5341 #if ((' ' & 0x0FF) == 0x020)
5342 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5343 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5345 # define ISLOWER(c) \
5346 (('a' <= (c) && (c) <= 'i') \
5347 || ('j' <= (c) && (c) <= 'r') \
5348 || ('s' <= (c) && (c) <= 'z'))
5349 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5352 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5357 for (i = 0; i < 256; i++)
5358 if (XOR (islower (i), ISLOWER (i))
5359 || toupper (i) != TOUPPER (i))
5364 if ac_fn_c_try_run "$LINENO"; then :
5367 ac_cv_header_stdc=no
5369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5370 conftest.$ac_objext conftest.beam conftest.$ac_ext
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5376 $as_echo "$ac_cv_header_stdc" >&6; }
5377 if test $ac_cv_header_stdc = yes; then
5379 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5383 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5384 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5385 inttypes.h stdint.h unistd.h
5387 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5388 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5390 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5391 cat >>confdefs.h <<_ACEOF
5392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5400 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5401 if test "x$ac_cv_type_size_t" = x""yes; then :
5405 cat >>confdefs.h <<_ACEOF
5406 #define size_t unsigned int
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5412 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5413 if test "${ac_cv_header_time+set}" = set; then :
5414 $as_echo_n "(cached) " >&6
5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417 /* end confdefs.h. */
5418 #include <sys/types.h>
5419 #include <sys/time.h>
5425 if ((struct tm *) 0)
5431 if ac_fn_c_try_compile "$LINENO"; then :
5432 ac_cv_header_time=yes
5434 ac_cv_header_time=no
5436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5439 $as_echo "$ac_cv_header_time" >&6; }
5440 if test $ac_cv_header_time = yes; then
5442 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5446 # The cast to long int works around a bug in the HP C Compiler
5447 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5448 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5449 # This bug is HP SR number 8606223364.
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5451 $as_echo_n "checking size of long... " >&6; }
5452 if test "${ac_cv_sizeof_long+set}" = set; then :
5453 $as_echo_n "(cached) " >&6
5455 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5458 if test "$ac_cv_type_long" = yes; then
5459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5461 as_fn_error 77 "cannot compute sizeof (long)
5462 See \`config.log' for more details" "$LINENO" 5 ; }
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5470 $as_echo "$ac_cv_sizeof_long" >&6; }
5474 cat >>confdefs.h <<_ACEOF
5475 #define SIZEOF_LONG $ac_cv_sizeof_long
5480 for ac_header in openssl/blowfish.h openssl/des.h openssl/cast.h openssl/aes.h
5482 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5483 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5484 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5485 cat >>confdefs.h <<_ACEOF
5486 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5497 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5498 # for constant arguments. Useless!
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5500 $as_echo_n "checking for working alloca.h... " >&6; }
5501 if test "${ac_cv_working_alloca_h+set}" = set; then :
5502 $as_echo_n "(cached) " >&6
5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h. */
5510 char *p = (char *) alloca (2 * sizeof (int));
5516 if ac_fn_c_try_link "$LINENO"; then :
5517 ac_cv_working_alloca_h=yes
5519 ac_cv_working_alloca_h=no
5521 rm -f core conftest.err conftest.$ac_objext \
5522 conftest$ac_exeext conftest.$ac_ext
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5525 $as_echo "$ac_cv_working_alloca_h" >&6; }
5526 if test $ac_cv_working_alloca_h = yes; then
5528 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5533 $as_echo_n "checking for alloca... " >&6; }
5534 if test "${ac_cv_func_alloca_works+set}" = set; then :
5535 $as_echo_n "(cached) " >&6
5537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h. */
5540 # define alloca __builtin_alloca
5543 # include <malloc.h>
5544 # define alloca _alloca
5546 # ifdef HAVE_ALLOCA_H
5547 # include <alloca.h>
5552 # ifndef alloca /* predefined by HP cc +Olibcalls */
5563 char *p = (char *) alloca (1);
5569 if ac_fn_c_try_link "$LINENO"; then :
5570 ac_cv_func_alloca_works=yes
5572 ac_cv_func_alloca_works=no
5574 rm -f core conftest.err conftest.$ac_objext \
5575 conftest$ac_exeext conftest.$ac_ext
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5578 $as_echo "$ac_cv_func_alloca_works" >&6; }
5580 if test $ac_cv_func_alloca_works = yes; then
5582 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5585 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5586 # that cause trouble. Some versions do not even contain alloca or
5587 # contain a buggy version. If you still want to use their alloca,
5588 # use ar to extract alloca.o from them instead of compiling alloca.c.
5590 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5592 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5596 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5597 if test "${ac_cv_os_cray+set}" = set; then :
5598 $as_echo_n "(cached) " >&6
5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h. */
5602 #if defined CRAY && ! defined CRAY2
5609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5610 $EGREP "webecray" >/dev/null 2>&1; then :
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5619 $as_echo "$ac_cv_os_cray" >&6; }
5620 if test $ac_cv_os_cray = yes; then
5621 for ac_func in _getb67 GETB67 getb67; do
5622 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5623 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5624 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5626 cat >>confdefs.h <<_ACEOF
5627 #define CRAY_STACKSEG_END $ac_func
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5637 $as_echo_n "checking stack direction for C alloca... " >&6; }
5638 if test "${ac_cv_c_stack_direction+set}" = set; then :
5639 $as_echo_n "(cached) " >&6
5641 if test "$cross_compiling" = yes; then :
5642 ac_cv_c_stack_direction=0
5644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645 /* end confdefs.h. */
5646 $ac_includes_default
5648 find_stack_direction ()
5650 static char *addr = 0;
5655 return find_stack_direction ();
5658 return (&dummy > addr) ? 1 : -1;
5664 return find_stack_direction () < 0;
5667 if ac_fn_c_try_run "$LINENO"; then :
5668 ac_cv_c_stack_direction=1
5670 ac_cv_c_stack_direction=-1
5672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5673 conftest.$ac_objext conftest.beam conftest.$ac_ext
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5678 $as_echo "$ac_cv_c_stack_direction" >&6; }
5679 cat >>confdefs.h <<_ACEOF
5680 #define STACK_DIRECTION $ac_cv_c_stack_direction
5686 for ac_header in malloc.h
5688 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5689 if test "x$ac_cv_header_malloc_h" = x""yes; then :
5690 cat >>confdefs.h <<_ACEOF
5691 #define HAVE_MALLOC_H 1
5699 for ac_func in strerror
5701 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
5702 if test "x$ac_cv_func_strerror" = x""yes; then :
5703 cat >>confdefs.h <<_ACEOF
5704 #define HAVE_STRERROR 1
5712 # Needed by the supplied memcmp.c
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5714 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5715 if test "${ac_cv_c_bigendian+set}" = set; then :
5716 $as_echo_n "(cached) " >&6
5718 ac_cv_c_bigendian=unknown
5719 # See if we're dealing with a universal compiler.
5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h. */
5722 #ifndef __APPLE_CC__
5723 not a universal capable compiler
5728 if ac_fn_c_try_compile "$LINENO"; then :
5730 # Check for potential -arch flags. It is not universal unless
5731 # there are at least two -arch flags with different values.
5734 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5735 if test -n "$ac_prev"; then
5737 i?86 | x86_64 | ppc | ppc64)
5738 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5741 ac_cv_c_bigendian=universal
5747 elif test "x$ac_word" = "x-arch"; then
5752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5753 if test $ac_cv_c_bigendian = unknown; then
5754 # See if sys/param.h defines the BYTE_ORDER macro.
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5757 #include <sys/types.h>
5758 #include <sys/param.h>
5763 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5764 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5773 if ac_fn_c_try_compile "$LINENO"; then :
5774 # It does; now see whether it defined to BIG_ENDIAN or not.
5775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776 /* end confdefs.h. */
5777 #include <sys/types.h>
5778 #include <sys/param.h>
5783 #if BYTE_ORDER != BIG_ENDIAN
5791 if ac_fn_c_try_compile "$LINENO"; then :
5792 ac_cv_c_bigendian=yes
5794 ac_cv_c_bigendian=no
5796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5800 if test $ac_cv_c_bigendian = unknown; then
5801 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803 /* end confdefs.h. */
5809 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5817 if ac_fn_c_try_compile "$LINENO"; then :
5818 # It does; now see whether it defined to _BIG_ENDIAN or not.
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5834 if ac_fn_c_try_compile "$LINENO"; then :
5835 ac_cv_c_bigendian=yes
5837 ac_cv_c_bigendian=no
5839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5843 if test $ac_cv_c_bigendian = unknown; then
5844 # Compile a test program.
5845 if test "$cross_compiling" = yes; then :
5846 # Try to guess by grepping values from an object file.
5847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5848 /* end confdefs.h. */
5849 short int ascii_mm[] =
5850 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5851 short int ascii_ii[] =
5852 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5853 int use_ascii (int i) {
5854 return ascii_mm[i] + ascii_ii[i];
5856 short int ebcdic_ii[] =
5857 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5858 short int ebcdic_mm[] =
5859 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5860 int use_ebcdic (int i) {
5861 return ebcdic_mm[i] + ebcdic_ii[i];
5868 return use_ascii (foo) == use_ebcdic (foo);
5873 if ac_fn_c_try_compile "$LINENO"; then :
5874 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5875 ac_cv_c_bigendian=yes
5877 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5878 if test "$ac_cv_c_bigendian" = unknown; then
5879 ac_cv_c_bigendian=no
5881 # finding both strings is unlikely to happen, but who knows?
5882 ac_cv_c_bigendian=unknown
5886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889 /* end confdefs.h. */
5890 $ac_includes_default
5895 /* Are we little or big endian? From Harbison&Steele. */
5899 char c[sizeof (long int)];
5902 return u.c[sizeof (long int) - 1] == 1;
5908 if ac_fn_c_try_run "$LINENO"; then :
5909 ac_cv_c_bigendian=no
5911 ac_cv_c_bigendian=yes
5913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5914 conftest.$ac_objext conftest.beam conftest.$ac_ext
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5920 $as_echo "$ac_cv_c_bigendian" >&6; }
5921 case $ac_cv_c_bigendian in #(
5923 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5929 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5933 as_fn_error $? "unknown endianness
5934 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5937 ac_fn_c_check_func "$LINENO" "memxor" "ac_cv_func_memxor"
5938 if test "x$ac_cv_func_memxor" = x""yes; then :
5939 $as_echo "#define HAVE_MEMXOR 1" >>confdefs.h
5942 case " $LIBOBJS " in
5943 *" memxor.$ac_objext "* ) ;;
5944 *) LIBOBJS="$LIBOBJS memxor.$ac_objext"
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
5953 $as_echo_n "checking for __attribute__... " >&6; }
5954 if test "${lsh_cv_c_attribute+set}" = set; then :
5955 $as_echo_n "(cached) " >&6
5957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958 /* end confdefs.h. */
5962 static void foo(void) __attribute__ ((noreturn));
5964 static void __attribute__ ((noreturn))
5978 if ac_fn_c_try_compile "$LINENO"; then :
5979 lsh_cv_c_attribute=yes
5981 lsh_cv_c_attribute=no
5983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lsh_cv_c_attribute" >&5
5986 $as_echo "$lsh_cv_c_attribute" >&6; }
5989 if test "x$lsh_cv_c_attribute" = "xyes"; then
5990 $as_echo "#define HAVE_GCC_ATTRIBUTE 1" >>confdefs.h
5996 # According to Simon Josefsson, looking for uint32_t and friends in
5997 # sys/types.h is needed on some systems, in particular cygwin.
5998 # ------ AX CREATE STDINT H -------------------------------------
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
6000 $as_echo_n "checking for stdint types... " >&6; }
6001 ac_stdint_h=`echo nettle-stdint.h`
6002 # try to shortcircuit - if the default include path of the compiler
6003 # can find a "stdint.h" header then we assume that all compilers can.
6004 if test "${ac_cv_header_stdint_t+set}" = set; then :
6005 $as_echo_n "(cached) " >&6
6008 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
6009 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
6010 old_CFLAGS="$CFLAGS" ; CFLAGS=""
6011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h. */
6017 int_least32_t v = 0;
6022 if ac_fn_c_try_compile "$LINENO"; then :
6023 ac_cv_stdint_result="(assuming C99 compatible system)"
6024 ac_cv_header_stdint_t="stdint.h";
6026 ac_cv_header_stdint_t=""
6028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6029 CXXFLAGS="$old_CXXFLAGS"
6030 CPPFLAGS="$old_CPPFLAGS"
6031 CFLAGS="$old_CFLAGS"
6035 v="... $ac_cv_header_stdint_h"
6036 if test "$ac_stdint_h" = "stdint.h" ; then
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
6038 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
6039 elif test "$ac_stdint_h" = "inttypes.h" ; then
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
6041 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
6042 elif test "_$ac_cv_header_stdint_t" = "_" ; then
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
6044 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
6046 ac_cv_header_stdint="$ac_cv_header_stdint_t"
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
6048 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
6051 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
6054 inttype_headers=`echo sys/types.h | sed -e 's/,/ /g'`
6056 ac_cv_stdint_result="(no helpful system typedefs seen)"
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
6058 $as_echo_n "checking for stdint uintptr_t... " >&6; }
6059 if test "${ac_cv_header_stdint_x+set}" = set; then :
6060 $as_echo_n "(cached) " >&6
6063 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
6065 $as_echo "(..)" >&6; }
6066 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
6067 unset ac_cv_type_uintptr_t
6068 unset ac_cv_type_uint64_t
6069 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
6071 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6072 ac_cv_header_stdint_x=$i
6077 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
6079 if test "x$ac_cv_type_uint64_t" = x""yes; then :
6085 ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
6089 $as_echo_n "checking for stdint uintptr_t... " >&6; }
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
6093 $as_echo "$ac_cv_header_stdint_x" >&6; }
6095 if test "_$ac_cv_header_stdint_x" = "_" ; then
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
6097 $as_echo_n "checking for stdint uint32_t... " >&6; }
6098 if test "${ac_cv_header_stdint_o+set}" = set; then :
6099 $as_echo_n "(cached) " >&6
6102 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
6104 $as_echo "(..)" >&6; }
6105 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
6106 unset ac_cv_type_uint32_t
6107 unset ac_cv_type_uint64_t
6108 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
6110 if test "x$ac_cv_type_uint32_t" = x""yes; then :
6111 ac_cv_header_stdint_o=$i
6116 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
6118 if test "x$ac_cv_type_uint64_t" = x""yes; then :
6124 ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
6128 $as_echo_n "checking for stdint uint32_t... " >&6; }
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
6132 $as_echo "$ac_cv_header_stdint_o" >&6; }
6135 if test "_$ac_cv_header_stdint_x" = "_" ; then
6136 if test "_$ac_cv_header_stdint_o" = "_" ; then
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
6138 $as_echo_n "checking for stdint u_int32_t... " >&6; }
6139 if test "${ac_cv_header_stdint_u+set}" = set; then :
6140 $as_echo_n "(cached) " >&6
6143 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
6145 $as_echo "(..)" >&6; }
6146 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
6147 unset ac_cv_type_u_int32_t
6148 unset ac_cv_type_u_int64_t
6149 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
6151 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
6152 ac_cv_header_stdint_u=$i
6157 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
6159 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
6165 ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
6169 $as_echo_n "checking for stdint u_int32_t... " >&6; }
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
6173 $as_echo "$ac_cv_header_stdint_u" >&6; }
6176 if test "_$ac_cv_header_stdint_x" = "_" ; then
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
6178 $as_echo_n "checking for stdint datatype model... " >&6; }
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
6180 $as_echo "(..)" >&6; }
6181 # The cast to long int works around a bug in the HP C Compiler
6182 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6183 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6184 # This bug is HP SR number 8606223364.
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
6186 $as_echo_n "checking size of char... " >&6; }
6187 if test "${ac_cv_sizeof_char+set}" = set; then :
6188 $as_echo_n "(cached) " >&6
6190 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
6193 if test "$ac_cv_type_char" = yes; then
6194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6196 as_fn_error 77 "cannot compute sizeof (char)
6197 See \`config.log' for more details" "$LINENO" 5 ; }
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
6205 $as_echo "$ac_cv_sizeof_char" >&6; }
6209 cat >>confdefs.h <<_ACEOF
6210 #define SIZEOF_CHAR $ac_cv_sizeof_char
6214 # The cast to long int works around a bug in the HP C Compiler
6215 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6216 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6217 # This bug is HP SR number 8606223364.
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6219 $as_echo_n "checking size of short... " >&6; }
6220 if test "${ac_cv_sizeof_short+set}" = set; then :
6221 $as_echo_n "(cached) " >&6
6223 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6226 if test "$ac_cv_type_short" = yes; then
6227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6229 as_fn_error 77 "cannot compute sizeof (short)
6230 See \`config.log' for more details" "$LINENO" 5 ; }
6232 ac_cv_sizeof_short=0
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6238 $as_echo "$ac_cv_sizeof_short" >&6; }
6242 cat >>confdefs.h <<_ACEOF
6243 #define SIZEOF_SHORT $ac_cv_sizeof_short
6247 # The cast to long int works around a bug in the HP C Compiler
6248 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6249 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6250 # This bug is HP SR number 8606223364.
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6252 $as_echo_n "checking size of int... " >&6; }
6253 if test "${ac_cv_sizeof_int+set}" = set; then :
6254 $as_echo_n "(cached) " >&6
6256 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6259 if test "$ac_cv_type_int" = yes; then
6260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6262 as_fn_error 77 "cannot compute sizeof (int)
6263 See \`config.log' for more details" "$LINENO" 5 ; }
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6271 $as_echo "$ac_cv_sizeof_int" >&6; }
6275 cat >>confdefs.h <<_ACEOF
6276 #define SIZEOF_INT $ac_cv_sizeof_int
6280 # The cast to long int works around a bug in the HP C Compiler
6281 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6282 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6283 # This bug is HP SR number 8606223364.
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6285 $as_echo_n "checking size of long... " >&6; }
6286 if test "${ac_cv_sizeof_long+set}" = set; then :
6287 $as_echo_n "(cached) " >&6
6289 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6292 if test "$ac_cv_type_long" = yes; then
6293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6295 as_fn_error 77 "cannot compute sizeof (long)
6296 See \`config.log' for more details" "$LINENO" 5 ; }
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6304 $as_echo "$ac_cv_sizeof_long" >&6; }
6308 cat >>confdefs.h <<_ACEOF
6309 #define SIZEOF_LONG $ac_cv_sizeof_long
6313 # The cast to long int works around a bug in the HP C Compiler
6314 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6315 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6316 # This bug is HP SR number 8606223364.
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
6318 $as_echo_n "checking size of void*... " >&6; }
6319 if test "${ac_cv_sizeof_voidp+set}" = set; then :
6320 $as_echo_n "(cached) " >&6
6322 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
6325 if test "$ac_cv_type_voidp" = yes; then
6326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6328 as_fn_error 77 "cannot compute sizeof (void*)
6329 See \`config.log' for more details" "$LINENO" 5 ; }
6331 ac_cv_sizeof_voidp=0
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
6337 $as_echo "$ac_cv_sizeof_voidp" >&6; }
6341 cat >>confdefs.h <<_ACEOF
6342 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
6346 ac_cv_stdint_char_model=""
6347 ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_char"
6348 ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_short"
6349 ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_int"
6350 ac_cv_stdint_long_model=""
6351 ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_int"
6352 ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_long"
6353 ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_voidp"
6354 name="$ac_cv_stdint_long_model"
6355 case "$ac_cv_stdint_char_model/$ac_cv_stdint_long_model" in
6356 122/242) name="$name, IP16 (standard 16bit machine)" ;;
6357 122/244) name="$name, LP32 (standard 32bit mac/win)" ;;
6358 122/*) name="$name (unusual int16 model)" ;;
6359 124/444) name="$name, ILP32 (standard 32bit unixish)" ;;
6360 124/488) name="$name, LP64 (standard 64bit unixish)" ;;
6361 124/448) name="$name, LLP64 (unusual 64bit unixish)" ;;
6362 124/*) name="$name (unusual int32 model)" ;;
6363 128/888) name="$name, ILP64 (unusual 64bit numeric)" ;;
6364 128/*) name="$name (unusual int64 model)" ;;
6365 222/*|444/*) name="$name (unusual dsptype)" ;;
6366 *) name="$name (very unusal model)" ;;
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: combined for stdint datatype model... $name" >&5
6369 $as_echo "combined for stdint datatype model... $name" >&6; }
6372 if test "_$ac_cv_header_stdint_x" != "_" ; then
6373 ac_cv_header_stdint="$ac_cv_header_stdint_x"
6374 elif test "_$ac_cv_header_stdint_o" != "_" ; then
6375 ac_cv_header_stdint="$ac_cv_header_stdint_o"
6376 elif test "_$ac_cv_header_stdint_u" != "_" ; then
6377 ac_cv_header_stdint="$ac_cv_header_stdint_u"
6379 ac_cv_header_stdint="stddef.h"
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
6383 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
6385 $as_echo "($ac_cv_header_stdint)" >&6; }
6386 unset ac_cv_type_int_least32_t
6387 unset ac_cv_type_int_fast32_t
6388 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
6390 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
6394 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
6396 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
6400 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
6402 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6407 fi # shortcircut to system "stdint.h"
6408 # ------------------ PREPARE VARIABLES ------------------------------
6409 if test "$GCC" = "yes" ; then
6410 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
6412 ac_cv_stdint_message="using $CC"
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
6416 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
6418 # ----------------- DONE inttypes.h checks START header -------------
6419 ac_config_commands="$ac_config_commands $ac_stdint_h"
6423 # Check for file locking. We (AC_PROG_CC?) have already checked for
6424 # sys/types.h and unistd.h.
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcntl file locking" >&5
6426 $as_echo_n "checking for fcntl file locking... " >&6; }
6427 if test "${nettle_cv_fcntl_locking+set}" = set; then :
6428 $as_echo_n "(cached) " >&6
6430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6431 /* end confdefs.h. */
6433 #if HAVE_SYS_TYPES_H
6434 # include <sys/types.h>
6437 # include <unistd.h>
6452 if ac_fn_c_try_compile "$LINENO"; then :
6453 nettle_cv_fcntl_locking=yes
6455 nettle_cv_fcntl_locking=no
6457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_fcntl_locking" >&5
6460 $as_echo "$nettle_cv_fcntl_locking" >&6; }
6463 if test "x$nettle_cv_fcntl_locking" = "xyes" ; then
6464 $as_echo "#define HAVE_FCNTL_LOCKING 1" >>confdefs.h
6468 # Checks for libraries
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_getlimbn in -lgmp" >&5
6470 $as_echo_n "checking for __gmpz_getlimbn in -lgmp... " >&6; }
6471 if test "${ac_cv_lib_gmp___gmpz_getlimbn+set}" = set; then :
6472 $as_echo_n "(cached) " >&6
6474 ac_check_lib_save_LIBS=$LIBS
6476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477 /* end confdefs.h. */
6479 /* Override any GCC internal prototype to avoid an error.
6480 Use char because int might match the return type of a GCC
6481 builtin and then its argument prototype would still apply. */
6485 char __gmpz_getlimbn ();
6489 return __gmpz_getlimbn ();
6494 if ac_fn_c_try_link "$LINENO"; then :
6495 ac_cv_lib_gmp___gmpz_getlimbn=yes
6497 ac_cv_lib_gmp___gmpz_getlimbn=no
6499 rm -f core conftest.err conftest.$ac_objext \
6500 conftest$ac_exeext conftest.$ac_ext
6501 LIBS=$ac_check_lib_save_LIBS
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_getlimbn" >&5
6504 $as_echo "$ac_cv_lib_gmp___gmpz_getlimbn" >&6; }
6505 if test "x$ac_cv_lib_gmp___gmpz_getlimbn" = x""yes; then :
6506 cat >>confdefs.h <<_ACEOF
6507 #define HAVE_LIBGMP 1
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNU MP not found, or not 3.1 or up, see http://gmplib.org/.
6514 Support for public key algorithms will be unavailable." >&5
6515 $as_echo "$as_me: WARNING: GNU MP not found, or not 3.1 or up, see http://gmplib.org/.
6516 Support for public key algorithms will be unavailable." >&2;}
6517 enable_public_key=no
6521 # Add -R flags needed to run programs linked with gmp
6522 if test $cross_compiling = no -a "x$RPATHFLAG" != x ; then
6524 if test "$cross_compiling" = yes; then :
6527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h. */
6529 int main(int argc, char **argv) { return 0; }
6531 if ac_fn_c_try_run "$LINENO"; then :
6536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6537 conftest.$ac_objext conftest.beam conftest.$ac_ext
6541 if test $ac_success = no ; then
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Running simple test program failed. Trying -R flags" >&5
6543 $as_echo_n "checking Running simple test program failed. Trying -R flags... " >&6; }
6544 ac_remaining_dirs=''
6545 ac_rpath_save_LDFLAGS="$LDFLAGS"
6546 for d in $RPATH_CANDIDATE_DIRS ; do
6547 if test $ac_success = yes ; then
6548 ac_remaining_dirs="$ac_remaining_dirs $d"
6550 LDFLAGS="$RPATHFLAG$d $LDFLAGS"
6551 if test "$cross_compiling" = yes; then :
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555 /* end confdefs.h. */
6556 int main(int argc, char **argv) { return 0; }
6558 if ac_fn_c_try_run "$LINENO"; then :
6560 ac_rpath_save_LDFLAGS="$LDFLAGS"
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding $RPATHFLAG$d" >&5
6562 $as_echo "adding $RPATHFLAG$d" >&6; }
6565 ac_remaining_dirs="$ac_remaining_dirs $d"
6567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6568 conftest.$ac_objext conftest.beam conftest.$ac_ext
6571 LDFLAGS="$ac_rpath_save_LDFLAGS"
6574 RPATH_CANDIDATE_DIRS=$ac_remaining_dirs
6576 if test $ac_success = no ; then
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6578 $as_echo "failed" >&6; }
6584 ac_fn_c_check_func "$LINENO" "__gmpz_powm_sec" "ac_cv_func___gmpz_powm_sec"
6585 if test "x$ac_cv_func___gmpz_powm_sec" = x""yes; then :
6586 $as_echo "#define HAVE_MPZ_POWM_SEC 1" >>confdefs.h
6593 if test "x$enable_public_key" = xyes ; then
6594 $as_echo "#define WITH_HOGWEED 1" >>confdefs.h
6601 if test "x$enable_shared" = xyes ; then
6612 # Check for openssl's libcrypto (used only for benchmarking)
6613 if test x$enable_openssl = xyes ; then
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BF_ecb_encrypt in -lcrypto" >&5
6615 $as_echo_n "checking for BF_ecb_encrypt in -lcrypto... " >&6; }
6616 if test "${ac_cv_lib_crypto_BF_ecb_encrypt+set}" = set; then :
6617 $as_echo_n "(cached) " >&6
6619 ac_check_lib_save_LIBS=$LIBS
6620 LIBS="-lcrypto $LIBS"
6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622 /* end confdefs.h. */
6624 /* Override any GCC internal prototype to avoid an error.
6625 Use char because int might match the return type of a GCC
6626 builtin and then its argument prototype would still apply. */
6630 char BF_ecb_encrypt ();
6634 return BF_ecb_encrypt ();
6639 if ac_fn_c_try_link "$LINENO"; then :
6640 ac_cv_lib_crypto_BF_ecb_encrypt=yes
6642 ac_cv_lib_crypto_BF_ecb_encrypt=no
6644 rm -f core conftest.err conftest.$ac_objext \
6645 conftest$ac_exeext conftest.$ac_ext
6646 LIBS=$ac_check_lib_save_LIBS
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BF_ecb_encrypt" >&5
6649 $as_echo "$ac_cv_lib_crypto_BF_ecb_encrypt" >&6; }
6650 if test "x$ac_cv_lib_crypto_BF_ecb_encrypt" = x""yes; then :
6651 OPENSSL_LIBFLAGS='-lcrypto'
6660 if test x$enable_openssl = xyes ; then
6661 $as_echo "#define WITH_OPENSSL 1" >>confdefs.h
6667 # Choose strategy for Camellia round
6670 # clock_gettime is in librt on *-*-osf5.1 and on glibc, so add -lrt to
6671 # BENCH_LIBS if needed. On linux (tested on x86_32, 2.6.26),
6672 # clock_getres reports ns accuracy, while in a quick test on osf
6673 # clock_getres said only 1 millisecond.
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
6677 $as_echo_n "checking for library containing clock_gettime... " >&6; }
6678 if test "${ac_cv_search_clock_gettime+set}" = set; then :
6679 $as_echo_n "(cached) " >&6
6681 ac_func_search_save_LIBS=$LIBS
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6685 /* Override any GCC internal prototype to avoid an error.
6686 Use char because int might match the return type of a GCC
6687 builtin and then its argument prototype would still apply. */
6691 char clock_gettime ();
6695 return clock_gettime ();
6700 for ac_lib in '' rt; do
6701 if test -z "$ac_lib"; then
6702 ac_res="none required"
6705 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6707 if ac_fn_c_try_link "$LINENO"; then :
6708 ac_cv_search_clock_gettime=$ac_res
6710 rm -f core conftest.err conftest.$ac_objext \
6712 if test "${ac_cv_search_clock_gettime+set}" = set; then :
6716 if test "${ac_cv_search_clock_gettime+set}" = set; then :
6719 ac_cv_search_clock_gettime=no
6722 LIBS=$ac_func_search_save_LIBS
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
6725 $as_echo "$ac_cv_search_clock_gettime" >&6; }
6726 ac_res=$ac_cv_search_clock_gettime
6727 if test "$ac_res" != no; then :
6728 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6731 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
6740 # Set these flags *last*, or else the test programs won't compile
6741 if test x$GCC = xyes ; then
6742 # Using -ggdb3 makes (some versions of) Redhat's gcc-2.96 dump core
6743 if $CC --version | grep '^2\.96$' 1>/dev/null 2>&1; then
6746 CFLAGS="$CFLAGS -ggdb3"
6748 # FIXME: It would be better to actually test if this option works and/or is needed.
6749 # Or perhaps use -funsigned-char.
6750 if $CC --version | grep 'gcc.* 4\.' 1>/dev/null 2>&1; then
6751 CFLAGS="$CFLAGS -Wno-pointer-sign"
6753 CFLAGS="$CFLAGS -Wall -W \
6754 -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes \
6755 -Wpointer-arith -Wbad-function-cast -Wnested-externs"
6757 # Don't enable -Wcast-align as it results in tons of warnings in the
6758 # DES code. And when using stdio.
6759 # Don't enable -Waggregate-return, as that causes warnings for glibc
6763 ac_config_files="$ac_config_files config.make config.m4 Makefile"
6765 ac_config_files="$ac_config_files tools/Makefile testsuite/Makefile examples/Makefile"
6767 ac_config_files="$ac_config_files nettle.pc hogweed.pc"
6770 cat >confcache <<\_ACEOF
6771 # This file is a shell script that caches the results of configure
6772 # tests run on this system so they can be shared between configure
6773 # scripts and configure runs, see configure's option --config-cache.
6774 # It is not useful on other systems. If it contains results you don't
6775 # want to keep, you may remove or edit it.
6777 # config.status only pays attention to the cache file if you give it
6778 # the --recheck option to rerun configure.
6780 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6781 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6786 # The following way of writing the cache mishandles newlines in values,
6787 # but we know of no workaround that is simple, portable, and efficient.
6788 # So, we kill variables containing newlines.
6789 # Ultrix sh set writes to stderr and can't be redirected directly,
6790 # and sets the high bit in the cache file unless we assign to the vars.
6792 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6793 eval ac_val=\$$ac_var
6797 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6798 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6801 _ | IFS | as_nl) ;; #(
6802 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6803 *) { eval $ac_var=; unset $ac_var;} ;;
6809 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6810 *${as_nl}ac_space=\ *)
6811 # `set' does not quote correctly, so add quotes: double-quote
6812 # substitution turns \\\\ into \\, and sed turns \\ into \.
6815 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6818 # `set' quotes correctly as required by POSIX, so do not add quotes.
6819 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6828 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6830 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6832 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6833 if test -w "$cache_file"; then
6834 test "x$cache_file" != "x/dev/null" &&
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6836 $as_echo "$as_me: updating cache $cache_file" >&6;}
6837 cat confcache >$cache_file
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6840 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6845 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6846 # Let make expand exec_prefix.
6847 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6849 DEFS=-DHAVE_CONFIG_H
6854 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6855 # 1. Remove the extension, and $U if already installed.
6856 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6857 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6858 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6859 # will be set to the directory where LIBOBJS objects are built.
6860 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6861 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6865 LTLIBOBJS=$ac_ltlibobjs
6870 : ${CONFIG_STATUS=./config.status}
6872 ac_clean_files_save=$ac_clean_files
6873 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6875 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6877 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6879 # Generated by $as_me.
6880 # Run this file to recreate the current configuration.
6881 # Compiler output produced by configure, useful for debugging
6882 # configure, is in config.log if it exists.
6888 SHELL=\${CONFIG_SHELL-$SHELL}
6891 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6892 ## -------------------- ##
6893 ## M4sh Initialization. ##
6894 ## -------------------- ##
6896 # Be more Bourne compatible
6897 DUALCASE=1; export DUALCASE # for MKS sh
6898 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6901 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6902 # is contrary to our usage. Disable this feature.
6903 alias -g '${1+"$@"}'='"$@"'
6904 setopt NO_GLOB_SUBST
6906 case `(set -o) 2>/dev/null` in #(
6918 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6919 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6920 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6921 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6922 # Prefer a ksh shell builtin over an external printf program on Solaris,
6923 # but without wasting forks for bash or zsh.
6924 if test -z "$BASH_VERSION$ZSH_VERSION" \
6925 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6926 as_echo='print -r --'
6927 as_echo_n='print -rn --'
6928 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6929 as_echo='printf %s\n'
6930 as_echo_n='printf %s'
6932 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6933 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6934 as_echo_n='/usr/ucb/echo -n'
6936 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6937 as_echo_n_body='eval
6941 expr "X$arg" : "X\\(.*\\)$as_nl";
6942 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6944 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6946 export as_echo_n_body
6947 as_echo_n='sh -c $as_echo_n_body as_echo'
6950 as_echo='sh -c $as_echo_body as_echo'
6953 # The user is always right.
6954 if test "${PATH_SEPARATOR+set}" != set; then
6956 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6957 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6964 # We need space, tab and new line, in precisely that order. Quoting is
6965 # there to prevent editors from complaining about space-tab.
6966 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6967 # splitting by setting IFS to empty value.)
6970 # Find who we are. Look in the path if we contain no directory separator.
6972 *[\\/]* ) as_myself=$0 ;;
6973 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 test -z "$as_dir" && as_dir=.
6978 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6984 # We did not find ourselves, most probably we were run as `sh COMMAND'
6985 # in which case we are not to be found in the path.
6986 if test "x$as_myself" = x; then
6989 if test ! -f "$as_myself"; then
6990 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6994 # Unset variables that we do not need and which cause bugs (e.g. in
6995 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6996 # suppresses any "Segmentation fault" message there. '((' could
6997 # trigger a bug in pdksh 5.2.14.
6998 for as_var in BASH_ENV ENV MAIL MAILPATH
6999 do eval test x\${$as_var+set} = xset \
7000 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7013 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7016 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7017 # ----------------------------------------
7018 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7019 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7020 # script with STATUS, using 1 if that was 0.
7023 as_status=$1; test $as_status -eq 0 && as_status=1
7025 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7026 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7028 $as_echo "$as_me: error: $2" >&2
7029 as_fn_exit $as_status
7033 # as_fn_set_status STATUS
7034 # -----------------------
7035 # Set $? to STATUS, without forking.
7039 } # as_fn_set_status
7043 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7053 # Portably unset VAR.
7056 { eval $1=; unset $1;}
7058 as_unset=as_fn_unset
7059 # as_fn_append VAR VALUE
7060 # ----------------------
7061 # Append the text in VALUE to the end of the definition contained in VAR. Take
7062 # advantage of any shell optimizations that allow amortized linear growth over
7063 # repeated appends, instead of the typical quadratic growth present in naive
7065 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7066 eval 'as_fn_append ()
7077 # as_fn_arith ARG...
7078 # ------------------
7079 # Perform arithmetic evaluation on the ARGs, and store the result in the
7080 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7081 # must be portable across $(()) and expr.
7082 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7083 eval 'as_fn_arith ()
7090 as_val=`expr "$@" || test $? -eq 1`
7095 if expr a : '\(a\)' >/dev/null 2>&1 &&
7096 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7102 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7103 as_basename=basename
7108 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7114 as_me=`$as_basename -- "$0" ||
7115 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7116 X"$0" : 'X\(//\)$' \| \
7117 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7119 sed '/^.*\/\([^/][^/]*\)\/*$/{
7133 # Avoid depending upon Character Ranges.
7134 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7135 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7136 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7137 as_cr_digits='0123456789'
7138 as_cr_alnum=$as_cr_Letters$as_cr_digits
7140 ECHO_C= ECHO_N= ECHO_T=
7141 case `echo -n x` in #(((((
7143 case `echo 'xy\c'` in
7144 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7146 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7153 rm -f conf$$ conf$$.exe conf$$.file
7154 if test -d conf$$.dir; then
7155 rm -f conf$$.dir/conf$$.file
7158 mkdir conf$$.dir 2>/dev/null
7160 if (echo >conf$$.file) 2>/dev/null; then
7161 if ln -s conf$$.file conf$$ 2>/dev/null; then
7163 # ... but there are two gotchas:
7164 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7165 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7166 # In both cases, we have to default to `cp -p'.
7167 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7169 elif ln conf$$.file conf$$ 2>/dev/null; then
7177 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7178 rmdir conf$$.dir 2>/dev/null
7183 # Create "$as_dir" as a directory, including parents if necessary.
7188 -*) as_dir=./$as_dir;;
7190 test -d "$as_dir" || eval $as_mkdir_p || {
7194 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7195 *) as_qdir=$as_dir;;
7197 as_dirs="'$as_qdir' $as_dirs"
7198 as_dir=`$as_dirname -- "$as_dir" ||
7199 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7200 X"$as_dir" : 'X\(//\)[^/]' \| \
7201 X"$as_dir" : 'X\(//\)$' \| \
7202 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7203 $as_echo X"$as_dir" |
7204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7221 test -d "$as_dir" && break
7223 test -z "$as_dirs" || eval "mkdir $as_dirs"
7224 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7228 if mkdir -p . 2>/dev/null; then
7229 as_mkdir_p='mkdir -p "$as_dir"'
7231 test -d ./-p && rmdir ./-p
7235 if test -x / >/dev/null 2>&1; then
7238 if ls -dL / >/dev/null 2>&1; then
7245 if test -d "$1"; then
7251 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7252 ???[sx]*):;;*)false;;esac;fi
7256 as_executable_p=$as_test_x
7258 # Sed expression to map a string onto a valid CPP name.
7259 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7261 # Sed expression to map a string onto a valid variable name.
7262 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7266 ## ----------------------------------- ##
7267 ## Main body of $CONFIG_STATUS script. ##
7268 ## ----------------------------------- ##
7270 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7273 # Save the log message, to keep $0 and so on meaningful, and to
7274 # report actual input values of CONFIG_FILES etc. instead of their
7275 # values after options handling.
7277 This file was extended by nettle $as_me 2.4, which was
7278 generated by GNU Autoconf 2.67. Invocation command line was
7280 CONFIG_FILES = $CONFIG_FILES
7281 CONFIG_HEADERS = $CONFIG_HEADERS
7282 CONFIG_LINKS = $CONFIG_LINKS
7283 CONFIG_COMMANDS = $CONFIG_COMMANDS
7286 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7291 case $ac_config_files in *"
7292 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7295 case $ac_config_headers in *"
7296 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7301 # Files that config.status was made for.
7302 config_files="$ac_config_files"
7303 config_headers="$ac_config_headers"
7304 config_links="$ac_config_links"
7305 config_commands="$ac_config_commands"
7309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7311 \`$as_me' instantiates files and other configuration actions
7312 from templates according to the current configuration. Unless the files
7313 and actions are specified as TAGs, all are instantiated by default.
7315 Usage: $0 [OPTION]... [TAG]...
7317 -h, --help print this help, then exit
7318 -V, --version print version number and configuration settings, then exit
7319 --config print configuration, then exit
7320 -q, --quiet, --silent
7321 do not print progress messages
7322 -d, --debug don't remove temporary files
7323 --recheck update $as_me by reconfiguring in the same conditions
7324 --file=FILE[:TEMPLATE]
7325 instantiate the configuration file FILE
7326 --header=FILE[:TEMPLATE]
7327 instantiate the configuration header FILE
7329 Configuration files:
7332 Configuration headers:
7335 Configuration links:
7338 Configuration commands:
7341 Report bugs to <nettle-bugs@lists.lysator.liu.se>."
7344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7345 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7347 nettle config.status 2.4
7348 configured by $0, generated by GNU Autoconf 2.67,
7349 with options \\"\$ac_cs_config\\"
7351 Copyright (C) 2010 Free Software Foundation, Inc.
7352 This config.status script is free software; the Free Software Foundation
7353 gives unlimited permission to copy, distribute and modify it."
7359 test -n "\$AWK" || AWK=awk
7362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7363 # The default lists apply if the user does not specify any file.
7369 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7370 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7374 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7386 # Handling of the options.
7387 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7389 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7390 $as_echo "$ac_cs_version"; exit ;;
7391 --config | --confi | --conf | --con | --co | --c )
7392 $as_echo "$ac_cs_config"; exit ;;
7393 --debug | --debu | --deb | --de | --d | -d )
7395 --file | --fil | --fi | --f )
7398 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7399 '') as_fn_error $? "missing file argument" ;;
7401 as_fn_append CONFIG_FILES " '$ac_optarg'"
7402 ac_need_defaults=false;;
7403 --header | --heade | --head | --hea )
7406 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7408 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7409 ac_need_defaults=false;;
7411 # Conflict between --help and --header
7412 as_fn_error $? "ambiguous option: \`$1'
7413 Try \`$0 --help' for more information.";;
7414 --help | --hel | -h )
7415 $as_echo "$ac_cs_usage"; exit ;;
7416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7417 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7421 -*) as_fn_error $? "unrecognized option: \`$1'
7422 Try \`$0 --help' for more information." ;;
7424 *) as_fn_append ac_config_targets " $1"
7425 ac_need_defaults=false ;;
7431 ac_configure_extra_args=
7433 if $ac_cs_silent; then
7435 ac_configure_extra_args="$ac_configure_extra_args --silent"
7439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7440 if \$ac_cs_recheck; then
7441 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7443 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7444 CONFIG_SHELL='$SHELL'
7450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7454 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7455 ## Running $as_me. ##
7461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7465 # variables for create stdint.h replacement
7468 ac_stdint_h="$ac_stdint_h"
7469 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
7470 ac_cv_stdint_message="$ac_cv_stdint_message"
7471 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
7472 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
7473 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
7474 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
7475 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
7476 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
7477 ac_cv_stdint_char_model="$ac_cv_stdint_char_model"
7478 ac_cv_stdint_long_model="$ac_cv_stdint_long_model"
7479 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
7480 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
7481 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
7486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7488 # Handling of arguments.
7489 for ac_config_target in $ac_config_targets
7491 case $ac_config_target in
7492 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7493 "dummy-dep-files") CONFIG_COMMANDS="$CONFIG_COMMANDS dummy-dep-files" ;;
7494 "$tmp_f") CONFIG_LINKS="$CONFIG_LINKS $tmp_f:$asm_path/$tmp_f" ;;
7495 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
7496 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
7497 "config.m4") CONFIG_FILES="$CONFIG_FILES config.m4" ;;
7498 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7499 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
7500 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
7501 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
7502 "nettle.pc") CONFIG_FILES="$CONFIG_FILES nettle.pc" ;;
7503 "hogweed.pc") CONFIG_FILES="$CONFIG_FILES hogweed.pc" ;;
7505 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
7510 # If the user did not use the arguments to specify the items to instantiate,
7511 # then the envvar interface is used. Set only those that are not.
7512 # We use the long form for the default assignment because of an extremely
7513 # bizarre bug on SunOS 4.1.3.
7514 if $ac_need_defaults; then
7515 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7516 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7517 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
7518 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7521 # Have a temporary directory for convenience. Make it in the build tree
7522 # simply because there is no reason against having it here, and in addition,
7523 # creating and moving files from /tmp can sometimes cause problems.
7524 # Hook for its removal unless debugging.
7525 # Note that there is a small window in which the directory will not be cleaned:
7526 # after its creation but before its name has been assigned to `$tmp'.
7530 trap 'exit_status=$?
7531 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7533 trap 'as_fn_exit 1' 1 2 13 15
7535 # Create a (secure) tmp directory for tmp files.
7538 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7539 test -n "$tmp" && test -d "$tmp"
7542 tmp=./conf$$-$RANDOM
7543 (umask 077 && mkdir "$tmp")
7544 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7546 # Set up the scripts for CONFIG_FILES section.
7547 # No need to generate them if there are no CONFIG_FILES.
7548 # This happens for instance with `./config.status config.h'.
7549 if test -n "$CONFIG_FILES"; then
7552 ac_cr=`echo X | tr X '\015'`
7553 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7554 # But we know of no other shell where ac_cr would be empty at this
7555 # point, so we can use a bashism as a fallback.
7556 if test "x$ac_cr" = x; then
7557 eval ac_cr=\$\'\\r\'
7559 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7560 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7566 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7571 echo "cat >conf$$subs.awk <<_ACEOF" &&
7572 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7575 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7576 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7578 for ac_last_try in false false false false false :; do
7579 . ./conf$$subs.sh ||
7580 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7582 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7583 if test $ac_delim_n = $ac_delim_num; then
7585 elif $ac_last_try; then
7586 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7588 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7594 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7598 s/^/S["/; s/!.*/"]=/
7608 s/\(.\{148\}\)..*/\1/
7610 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7615 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7622 s/\(.\{148\}\)..*/\1/
7624 s/["\\]/\\&/g; s/^/"/; s/$/"/
7628 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7633 ' <conf$$subs.awk | sed '
7638 ' >>$CONFIG_STATUS || ac_write_fail=1
7639 rm -f conf$$subs.awk
7640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7642 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7643 for (key in S) S_is_set[key] = 1
7649 nfields = split(line, field, "@")
7651 len = length(field[1])
7652 for (i = 2; i < nfields; i++) {
7654 keylen = length(key)
7655 if (S_is_set[key]) {
7657 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7658 len += length(value) + length(field[++i])
7669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7670 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7671 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7674 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7675 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7678 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7679 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7680 # trailing colons and then remove the whole line if VPATH becomes empty
7681 # (actually we leave an empty line to preserve line numbers).
7682 if test "x$srcdir" = x.; then
7683 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7702 fi # test -n "$CONFIG_FILES"
7704 # Set up the scripts for CONFIG_HEADERS section.
7705 # No need to generate them if there are no CONFIG_HEADERS.
7706 # This happens for instance with `./config.status Makefile'.
7707 if test -n "$CONFIG_HEADERS"; then
7708 cat >"$tmp/defines.awk" <<\_ACAWK ||
7712 # Transform confdefs.h into an awk script `defines.awk', embedded as
7713 # here-document in config.status, that substitutes the proper values into
7714 # config.h.in to produce config.h.
7716 # Create a delimiter string that does not exist in confdefs.h, to ease
7717 # handling of long lines.
7719 for ac_last_try in false false :; do
7720 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7721 if test -z "$ac_t"; then
7723 elif $ac_last_try; then
7724 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7726 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7730 # For the awk script, D is an array of macro values keyed by name,
7731 # likewise P contains macro parameters if any. Preserve backslash
7732 # newline sequences.
7734 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7736 s/.\{148\}/&'"$ac_delim"'/g
7739 s/^[ ]*#[ ]*define[ ][ ]*/ /
7746 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7748 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7752 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7753 D["\1"]=" \3\\\\\\n"\\/p
7755 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7760 s/.\{148\}/&'"$ac_delim"'/g
7765 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7768 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7770 ' <confdefs.h | sed '
7771 s/'"$ac_delim"'/"\\\
7772 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7775 for (key in D) D_is_set[key] = 1
7778 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7780 split(line, arg, " ")
7781 if (arg[1] == "#") {
7785 defundef = substr(arg[1], 2)
7788 split(mac1, mac2, "(") #)
7790 prefix = substr(line, 1, index(line, defundef) - 1)
7791 if (D_is_set[macro]) {
7792 # Preserve the white space surrounding the "#".
7793 print prefix "define", macro P[macro] D[macro]
7796 # Replace #undef with comments. This is necessary, for example,
7797 # in the case of _POSIX_SOURCE, which is predefined and required
7798 # on some systems where configure will not decide to define it.
7799 if (defundef == "undef") {
7800 print "/*", prefix defundef, macro, "*/"
7808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7809 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7810 fi # test -n "$CONFIG_HEADERS"
7813 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
7818 :[FHLC]) ac_mode=$ac_tag; continue;;
7820 case $ac_mode$ac_tag in
7822 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
7823 :[FH]-) ac_tag=-:-;;
7824 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7841 -) ac_f="$tmp/stdin";;
7842 *) # Look for the file first in the build tree, then in the source tree
7843 # (if the path is not absolute). The absolute path cannot be DOS-style,
7844 # because $ac_f cannot contain `:'.
7848 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7850 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
7852 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7853 as_fn_append ac_file_inputs " '$ac_f'"
7856 # Let's still pretend it is `configure' which instantiates (i.e., don't
7857 # use $as_me), people would be surprised to read:
7858 # /* config.h. Generated by config.status. */
7859 configure_input='Generated from '`
7860 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7862 if test x"$ac_file" != x-; then
7863 configure_input="$ac_file. $configure_input"
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7865 $as_echo "$as_me: creating $ac_file" >&6;}
7867 # Neutralize special characters interpreted by sed in replacement strings.
7868 case $configure_input in #(
7869 *\&* | *\|* | *\\* )
7870 ac_sed_conf_input=`$as_echo "$configure_input" |
7871 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7872 *) ac_sed_conf_input=$configure_input;;
7876 *:-:* | *:-) cat >"$tmp/stdin" \
7877 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7882 ac_dir=`$as_dirname -- "$ac_file" ||
7883 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7884 X"$ac_file" : 'X\(//\)[^/]' \| \
7885 X"$ac_file" : 'X\(//\)$' \| \
7886 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7887 $as_echo X"$ac_file" |
7888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7905 as_dir="$ac_dir"; as_fn_mkdir_p
7909 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7911 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7912 # A ".." for each directory in $ac_dir_suffix.
7913 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7914 case $ac_top_builddir_sub in
7915 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7916 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7919 ac_abs_top_builddir=$ac_pwd
7920 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7921 # for backward compatibility:
7922 ac_top_builddir=$ac_top_build_prefix
7925 .) # We are building in place.
7927 ac_top_srcdir=$ac_top_builddir_sub
7928 ac_abs_top_srcdir=$ac_pwd ;;
7929 [\\/]* | ?:[\\/]* ) # Absolute name.
7930 ac_srcdir=$srcdir$ac_dir_suffix;
7931 ac_top_srcdir=$srcdir
7932 ac_abs_top_srcdir=$srcdir ;;
7934 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7935 ac_top_srcdir=$ac_top_build_prefix$srcdir
7936 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7938 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7948 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7949 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7953 [\\/$]* | ?:[\\/]* ) ;;
7954 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7959 # If the template does not know about datarootdir, expand it.
7960 # FIXME: This hack should be removed a few years after 2.60.
7961 ac_datarootdir_hack=; ac_datarootdir_seen=
7972 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7973 *datarootdir*) ac_datarootdir_seen=yes;;
7974 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7976 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7979 ac_datarootdir_hack='
7980 s&@datadir@&$datadir&g
7981 s&@docdir@&$docdir&g
7982 s&@infodir@&$infodir&g
7983 s&@localedir@&$localedir&g
7984 s&@mandir@&$mandir&g
7985 s&\\\${datarootdir}&$datarootdir&g' ;;
7989 # Neutralize VPATH when `$srcdir' = `.'.
7990 # Shell code in configure.ac might set extrasub.
7991 # FIXME: do we really want to maintain this feature?
7992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7993 ac_sed_extra="$ac_vpsub
7996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7998 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7999 s|@configure_input@|$ac_sed_conf_input|;t t
8000 s&@top_builddir@&$ac_top_builddir_sub&;t t
8001 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8002 s&@srcdir@&$ac_srcdir&;t t
8003 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8004 s&@top_srcdir@&$ac_top_srcdir&;t t
8005 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8006 s&@builddir@&$ac_builddir&;t t
8007 s&@abs_builddir@&$ac_abs_builddir&;t t
8008 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8009 s&@INSTALL@&$ac_INSTALL&;t t
8010 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8011 $ac_datarootdir_hack
8013 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8014 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8016 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8017 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8018 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8020 which seems to be undefined. Please make sure it is defined" >&5
8021 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8022 which seems to be undefined. Please make sure it is defined" >&2;}
8026 -) cat "$tmp/out" && rm -f "$tmp/out";;
8027 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8029 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8035 if test x"$ac_file" != x-; then
8037 $as_echo "/* $configure_input */" \
8038 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8039 } >"$tmp/config.h" \
8040 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8041 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8043 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8046 mv "$tmp/config.h" "$ac_file" \
8047 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8050 $as_echo "/* $configure_input */" \
8051 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8052 || as_fn_error $? "could not create -" "$LINENO" 5
8060 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
8063 # Prefer the file from the source tree if names are identical.
8064 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
8065 ac_source=$srcdir/$ac_source
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
8069 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
8071 if test ! -r "$ac_source"; then
8072 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
8076 # Try a relative symlink, then a hard link, then a copy.
8078 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
8079 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
8081 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
8082 ln "$ac_source" "$ac_file" 2>/dev/null ||
8083 cp -p "$ac_source" "$ac_file" ||
8084 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
8087 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8088 $as_echo "$as_me: executing $ac_file commands" >&6;}
8093 case $ac_file$ac_mode in
8094 "dummy-dep-files":C) (cd "$srcdir" && find . -name '*.c' -print) \
8095 | sed 's/\.c$//' | (while read f; do echo > "$f.o.d"; echo > "$f.po.d"; done)
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
8099 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
8100 ac_stdint=$tmp/_stdint.h
8102 echo "#ifndef" $_ac_stdint_h >$ac_stdint
8103 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
8104 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
8105 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
8106 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
8107 if test "_$ac_cv_header_stdint_t" != "_" ; then
8108 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
8111 cat >>$ac_stdint <<STDINT_EOF
8113 /* ................... shortcircuit part ........................... */
8115 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
8120 /* .................... configured part ............................ */
8124 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
8125 if test "_$ac_cv_header_stdint_x" != "_" ; then
8126 ac_header="$ac_cv_header_stdint_x"
8127 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
8129 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
8132 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
8133 if test "_$ac_cv_header_stdint_o" != "_" ; then
8134 ac_header="$ac_cv_header_stdint_o"
8135 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
8137 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
8140 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
8141 if test "_$ac_cv_header_stdint_u" != "_" ; then
8142 ac_header="$ac_cv_header_stdint_u"
8143 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
8145 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
8148 echo "" >>$ac_stdint
8150 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
8151 echo "#include <$ac_header>" >>$ac_stdint
8152 echo "" >>$ac_stdint
8155 echo "/* which 64bit typedef has been found */" >>$ac_stdint
8156 if test "$ac_cv_type_uint64_t" = "yes" ; then
8157 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
8159 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
8161 if test "$ac_cv_type_u_int64_t" = "yes" ; then
8162 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
8164 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
8166 echo "" >>$ac_stdint
8168 echo "/* which type model has been detected */" >>$ac_stdint
8169 if test "_$ac_cv_stdint_char_model" != "_" ; then
8170 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_stdint_char_model" >>$ac_stdint
8171 echo "#define _STDINT_LONG_MODEL" "$ac_cv_stdint_long_model" >>$ac_stdint
8173 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
8174 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
8176 echo "" >>$ac_stdint
8178 echo "/* whether int_least types were detected */" >>$ac_stdint
8179 if test "$ac_cv_type_int_least32_t" = "yes"; then
8180 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
8182 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
8184 echo "/* whether int_fast types were detected */" >>$ac_stdint
8185 if test "$ac_cv_type_int_fast32_t" = "yes"; then
8186 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
8188 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
8190 echo "/* whether intmax_t type was detected */" >>$ac_stdint
8191 if test "$ac_cv_type_intmax_t" = "yes"; then
8192 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
8194 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
8196 echo "" >>$ac_stdint
8198 cat >>$ac_stdint <<STDINT_EOF
8199 /* .................... detections part ............................ */
8201 /* whether we need to define bitspecific types from compiler base types */
8202 #ifndef _STDINT_HEADER_INTPTR
8203 #ifndef _STDINT_HEADER_UINT32
8204 #ifndef _STDINT_HEADER_U_INT32
8205 #define _STDINT_NEED_INT_MODEL_T
8207 #define _STDINT_HAVE_U_INT_TYPES
8212 #ifdef _STDINT_HAVE_U_INT_TYPES
8213 #undef _STDINT_NEED_INT_MODEL_T
8216 #ifdef _STDINT_CHAR_MODEL
8217 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
8218 #ifndef _STDINT_BYTE_MODEL
8219 #define _STDINT_BYTE_MODEL 12
8224 #ifndef _STDINT_HAVE_INT_LEAST32_T
8225 #define _STDINT_NEED_INT_LEAST_T
8228 #ifndef _STDINT_HAVE_INT_FAST32_T
8229 #define _STDINT_NEED_INT_FAST_T
8232 #ifndef _STDINT_HEADER_INTPTR
8233 #define _STDINT_NEED_INTPTR_T
8234 #ifndef _STDINT_HAVE_INTMAX_T
8235 #define _STDINT_NEED_INTMAX_T
8240 /* .................... definition part ............................ */
8242 /* some system headers have good uint64_t */
8243 #ifndef _HAVE_UINT64_T
8244 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
8245 #define _HAVE_UINT64_T
8246 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
8247 #define _HAVE_UINT64_T
8248 typedef u_int64_t uint64_t;
8252 #ifndef _HAVE_UINT64_T
8253 /* .. here are some common heuristics using compiler runtime specifics */
8254 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
8255 #define _HAVE_UINT64_T
8256 typedef long long int64_t;
8257 typedef unsigned long long uint64_t;
8259 #elif !defined __STRICT_ANSI__
8260 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
8261 #define _HAVE_UINT64_T
8262 typedef __int64 int64_t;
8263 typedef unsigned __int64 uint64_t;
8265 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
8266 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
8267 #if !defined _NO_LONGLONG
8268 #define _HAVE_UINT64_T
8269 typedef long long int64_t;
8270 typedef unsigned long long uint64_t;
8273 #elif defined __alpha || (defined __mips && defined _ABIN32)
8274 #if !defined _NO_LONGLONG
8275 typedef long int64_t;
8276 typedef unsigned long uint64_t;
8278 /* compiler/cpu type to define int64_t */
8283 #if defined _STDINT_HAVE_U_INT_TYPES
8284 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
8285 typedef u_int8_t uint8_t;
8286 typedef u_int16_t uint16_t;
8287 typedef u_int32_t uint32_t;
8289 /* glibc compatibility */
8290 #ifndef __int8_t_defined
8291 #define __int8_t_defined
8295 #ifdef _STDINT_NEED_INT_MODEL_T
8296 /* we must guess all the basic types. Apart from byte-adressable system, */
8297 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
8298 /* (btw, those nibble-addressable systems are way off, or so we assume) */
8301 #if defined _STDINT_BYTE_MODEL
8302 #if _STDINT_LONG_MODEL+0 == 242
8303 /* 2:4:2 = IP16 = a normal 16-bit system */
8304 typedef unsigned char uint8_t;
8305 typedef unsigned short uint16_t;
8306 typedef unsigned long uint32_t;
8307 #ifndef __int8_t_defined
8308 #define __int8_t_defined
8309 typedef char int8_t;
8310 typedef short int16_t;
8311 typedef long int32_t;
8313 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
8314 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
8315 /* 4:4:4 = ILP32 = a normal 32-bit system */
8316 typedef unsigned char uint8_t;
8317 typedef unsigned short uint16_t;
8318 typedef unsigned int uint32_t;
8319 #ifndef __int8_t_defined
8320 #define __int8_t_defined
8321 typedef char int8_t;
8322 typedef short int16_t;
8323 typedef int int32_t;
8325 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
8326 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
8327 /* 4:8:8 = LP64 = a normal 64-bit system */
8328 typedef unsigned char uint8_t;
8329 typedef unsigned short uint16_t;
8330 typedef unsigned int uint32_t;
8331 #ifndef __int8_t_defined
8332 #define __int8_t_defined
8333 typedef char int8_t;
8334 typedef short int16_t;
8335 typedef int int32_t;
8337 /* this system has a "long" of 64bit */
8338 #ifndef _HAVE_UINT64_T
8339 #define _HAVE_UINT64_T
8340 typedef unsigned long uint64_t;
8341 typedef long int64_t;
8343 #elif _STDINT_LONG_MODEL+0 == 448
8344 /* LLP64 a 64-bit system derived from a 32-bit system */
8345 typedef unsigned char uint8_t;
8346 typedef unsigned short uint16_t;
8347 typedef unsigned int uint32_t;
8348 #ifndef __int8_t_defined
8349 #define __int8_t_defined
8350 typedef char int8_t;
8351 typedef short int16_t;
8352 typedef int int32_t;
8354 /* assuming the system has a "long long" */
8355 #ifndef _HAVE_UINT64_T
8356 #define _HAVE_UINT64_T
8357 typedef unsigned long long uint64_t;
8358 typedef long long int64_t;
8361 #define _STDINT_NO_INT32_T
8364 #define _STDINT_NO_INT8_T
8365 #define _STDINT_NO_INT32_T
8370 * quote from SunOS-5.8 sys/inttypes.h:
8371 * Use at your own risk. As of February 1996, the committee is squarely
8372 * behind the fixed sized types; the "least" and "fast" types are still being
8373 * discussed. The probability that the "fast" types may be removed before
8374 * the standard is finalized is high enough that they are not currently
8378 #if defined _STDINT_NEED_INT_LEAST_T
8379 typedef int8_t int_least8_t;
8380 typedef int16_t int_least16_t;
8381 typedef int32_t int_least32_t;
8382 #ifdef _HAVE_UINT64_T
8383 typedef int64_t int_least64_t;
8386 typedef uint8_t uint_least8_t;
8387 typedef uint16_t uint_least16_t;
8388 typedef uint32_t uint_least32_t;
8389 #ifdef _HAVE_UINT64_T
8390 typedef uint64_t uint_least64_t;
8395 #if defined _STDINT_NEED_INT_FAST_T
8396 typedef int8_t int_fast8_t;
8397 typedef int int_fast16_t;
8398 typedef int32_t int_fast32_t;
8399 #ifdef _HAVE_UINT64_T
8400 typedef int64_t int_fast64_t;
8403 typedef uint8_t uint_fast8_t;
8404 typedef unsigned uint_fast16_t;
8405 typedef uint32_t uint_fast32_t;
8406 #ifdef _HAVE_UINT64_T
8407 typedef uint64_t uint_fast64_t;
8412 #ifdef _STDINT_NEED_INTMAX_T
8413 #ifdef _HAVE_UINT64_T
8414 typedef int64_t intmax_t;
8415 typedef uint64_t uintmax_t;
8417 typedef long intmax_t;
8418 typedef unsigned long uintmax_t;
8422 #ifdef _STDINT_NEED_INTPTR_T
8423 #ifndef __intptr_t_defined
8424 #define __intptr_t_defined
8425 /* we encourage using "long" to store pointer values, never use "int" ! */
8426 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
8427 typedef unsinged int uintptr_t;
8428 typedef int intptr_t;
8429 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
8430 typedef unsigned long uintptr_t;
8431 typedef long intptr_t;
8432 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
8433 typedef uint64_t uintptr_t;
8434 typedef int64_t intptr_t;
8435 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
8436 typedef unsigned long uintptr_t;
8437 typedef long intptr_t;
8448 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
8450 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
8452 ac_dir=`$as_dirname -- "$ac_stdint_h" ||
8453 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8454 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
8455 X"$ac_stdint_h" : 'X\(//\)$' \| \
8456 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
8457 $as_echo X"$ac_stdint_h" |
8458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8475 as_dir="$ac_dir"; as_fn_mkdir_p
8477 mv $ac_stdint $ac_stdint_h
8487 ac_clean_files=$ac_clean_files_save
8489 test $ac_write_fail = 0 ||
8490 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8493 # configure is writing to config.log, and then calls config.status.
8494 # config.status does its own redirection, appending to config.log.
8495 # Unfortunately, on DOS this fails, as config.log is still kept open
8496 # by configure, so config.status won't be able to write to it; its
8497 # output is simply discarded. So we exec the FD to /dev/null,
8498 # effectively closing config.log, so it can be properly (re)opened and
8499 # appended to by config.status. When coming back to configure, we
8500 # need to make the FD available again.
8501 if test "$no_create" != yes; then
8503 ac_config_status_args=
8504 test "$silent" = yes &&
8505 ac_config_status_args="$ac_config_status_args --quiet"
8507 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8509 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8510 # would make configure fail if this is the last instruction.
8511 $ac_cs_success || as_fn_exit 1
8513 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8515 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
8521 Version: ${PACKAGE_STRING}
8524 Assembly files: ${asm_path:-none}
8525 Install prefix: ${prefix}
8526 Library directory: ${libdir}
8528 Shared libraries: ${enable_shared}
8529 Public key crypto: ${enable_public_key}
8531 $as_echo "$as_me: summary of build options:
8533 Version: ${PACKAGE_STRING}
8536 Assembly files: ${asm_path:-none}
8537 Install prefix: ${prefix}
8538 Library directory: ${libdir}
8540 Shared libraries: ${enable_shared}
8541 Public key crypto: ${enable_public_key}