2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for nettle 2.7.1.
5 # Report bugs to <nettle-bugs@lists.lysator.liu.se>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
140 _as_can_reexec
=no
; export _as_can_reexec
;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec
=; unset _as_can_reexec
;}
162 if test "x$CONFIG_SHELL" = x
; then
163 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required
="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev
/null
; then :
207 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
212 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir
=.
219 for as_base
in sh bash ksh sh5
; do
220 # Try only shells that exist, to save several forks.
221 as_shell
=$as_dir/$as_base
222 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
224 CONFIG_SHELL
=$as_shell as_have_required
=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
233 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
235 CONFIG_SHELL
=$SHELL as_have_required
=yes
240 if test "x$CONFIG_SHELL" != x
; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
250 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x
$as_have_required = xno
; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x
${ZSH_VERSION+set} = xset
; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: nettle-bugs@lists.lysator.liu.se about your system,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
279 SHELL
=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE
= GREP_OPTIONS
=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir
=.
/$as_dir;;
324 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
328 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs
="'$as_qdir' $as_dirs"
332 as_dir
=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
358 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p
()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
401 as_val
=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status
=$1; test $as_status -eq 0 && as_status
=1
415 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit
$as_status
422 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
429 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
441 as_me
=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits
='0123456789'
465 as_cr_alnum
=$as_cr_Letters$as_cr_digits
468 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
469 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x
"$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec
=no
; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C
= ECHO_N
= ECHO_T
=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
516 rm -f conf$$ conf$$.exe conf$$.
file
517 if test -d conf$$.dir
; then
518 rm -f conf$$.dir
/conf$$.
file
521 mkdir conf$$.dir
2>/dev
/null
523 if (echo >conf$$.
file) 2>/dev
/null
; then
524 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
532 elif ln conf$$.
file conf$$
2>/dev
/null
; then
540 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
541 rmdir conf$$.dir
2>/dev
/null
543 if mkdir
-p .
2>/dev
/null
; then
544 as_mkdir_p
='mkdir -p "$as_dir"'
546 test -d .
/-p && rmdir .
/-p
551 as_executable_p
=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix
=/usr
/local
573 ac_config_libobj_dir
=.
580 # Identity of this package.
581 PACKAGE_NAME
='nettle'
582 PACKAGE_TARNAME
='nettle'
583 PACKAGE_VERSION
='2.7.1'
584 PACKAGE_STRING
='nettle 2.7.1'
585 PACKAGE_BUGREPORT
='nettle-bugs@lists.lysator.liu.se'
588 ac_unique_file
="arcfour.c"
589 # Factoring default headers for most tests.
590 ac_includes_default
="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
625 ac_subst_vars
='LTLIBOBJS
662 ASM_MARK_NOEXEC_STACK
731 program_transform_name
744 enable_option_checking
756 enable_dependency_tracking
758 ac_precious_vars
='build_alias
773 # Initialize some variables set by options.
775 ac_init_version
=false
776 ac_unrecognized_opts
=
778 # The variables have the same names as the options, with
779 # dashes changed to underlines.
787 program_transform_name
=s
,x
,x
,
795 # Installation directory options.
796 # These are left unexpanded so users can "make install exec_prefix=/foo"
797 # and all the variables that are supposed to be based on exec_prefix
798 # by default will actually change.
799 # Use braces instead of parens because sh, perl, etc. also accept them.
800 # (The list follows the same order as the GNU Coding Standards.)
801 bindir
='${exec_prefix}/bin'
802 sbindir
='${exec_prefix}/sbin'
803 libexecdir
='${exec_prefix}/libexec'
804 datarootdir
='${prefix}/share'
805 datadir
='${datarootdir}'
806 sysconfdir
='${prefix}/etc'
807 sharedstatedir
='${prefix}/com'
808 localstatedir
='${prefix}/var'
809 includedir
='${prefix}/include'
810 oldincludedir
='/usr/include'
811 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
812 infodir
='${datarootdir}/info'
817 libdir
='${exec_prefix}/lib'
818 localedir
='${datarootdir}/locale'
819 mandir
='${datarootdir}/man'
825 # If the previous option needs an argument, assign it.
826 if test -n "$ac_prev"; then
827 eval $ac_prev=\
$ac_option
833 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
838 # Accept the important Cygnus configure options, so we can diagnose typos.
840 case $ac_dashdash$ac_option in
844 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
846 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
849 -build |
--build |
--buil |
--bui |
--bu)
850 ac_prev
=build_alias
;;
851 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
852 build_alias
=$ac_optarg ;;
854 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
855 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
856 ac_prev
=cache_file
;;
857 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
858 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
859 cache_file
=$ac_optarg ;;
862 cache_file
=config.cache
;;
864 -datadir |
--datadir |
--datadi |
--datad)
866 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
867 datadir
=$ac_optarg ;;
869 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
870 |
--dataroo |
--dataro |
--datar)
871 ac_prev
=datarootdir
;;
872 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
873 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
874 datarootdir
=$ac_optarg ;;
876 -disable-* |
--disable-*)
877 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
878 # Reject names that are not valid shell variable names.
879 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
880 as_fn_error $?
"invalid feature name: $ac_useropt"
881 ac_useropt_orig
=$ac_useropt
882 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
883 case $ac_user_opts in
887 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
888 ac_unrecognized_sep
=', ';;
890 eval enable_
$ac_useropt=no
;;
892 -docdir |
--docdir |
--docdi |
--doc |
--do)
894 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
897 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
899 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
902 -enable-* |
--enable-*)
903 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
906 as_fn_error $?
"invalid feature name: $ac_useropt"
907 ac_useropt_orig
=$ac_useropt
908 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
913 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
914 ac_unrecognized_sep
=', ';;
916 eval enable_
$ac_useropt=\
$ac_optarg ;;
918 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
919 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
920 |
--exec |
--exe |
--ex)
921 ac_prev
=exec_prefix
;;
922 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
923 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
924 |
--exec=* |
--exe=* |
--ex=*)
925 exec_prefix
=$ac_optarg ;;
927 -gas |
--gas |
--ga |
--g)
928 # Obsolete; use --with-gas.
931 -help |
--help |
--hel |
--he |
-h)
933 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
934 ac_init_help
=recursive
;;
935 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
936 ac_init_help
=short
;;
938 -host |
--host |
--hos |
--ho)
939 ac_prev
=host_alias
;;
940 -host=* |
--host=* |
--hos=* |
--ho=*)
941 host_alias
=$ac_optarg ;;
943 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
945 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
947 htmldir
=$ac_optarg ;;
949 -includedir |
--includedir |
--includedi |
--included |
--include \
950 |
--includ |
--inclu |
--incl |
--inc)
951 ac_prev
=includedir
;;
952 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
953 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
954 includedir
=$ac_optarg ;;
956 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
958 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
959 infodir
=$ac_optarg ;;
961 -libdir |
--libdir |
--libdi |
--libd)
963 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
966 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
967 |
--libexe |
--libex |
--libe)
968 ac_prev
=libexecdir
;;
969 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
970 |
--libexe=* |
--libex=* |
--libe=*)
971 libexecdir
=$ac_optarg ;;
973 -localedir |
--localedir |
--localedi |
--localed |
--locale)
975 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
976 localedir
=$ac_optarg ;;
978 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
979 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
980 ac_prev
=localstatedir
;;
981 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
982 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
983 localstatedir
=$ac_optarg ;;
985 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
987 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
991 # Obsolete; use --without-fp.
994 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
995 |
--no-cr |
--no-c |
-n)
998 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
999 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1002 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1003 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1004 |
--oldin |
--oldi |
--old |
--ol |
--o)
1005 ac_prev
=oldincludedir
;;
1006 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1007 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1008 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1009 oldincludedir
=$ac_optarg ;;
1011 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1013 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1014 prefix
=$ac_optarg ;;
1016 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1017 |
--program-pre |
--program-pr |
--program-p)
1018 ac_prev
=program_prefix
;;
1019 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1020 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1021 program_prefix
=$ac_optarg ;;
1023 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1024 |
--program-suf |
--program-su |
--program-s)
1025 ac_prev
=program_suffix
;;
1026 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1027 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1028 program_suffix
=$ac_optarg ;;
1030 -program-transform-name |
--program-transform-name \
1031 |
--program-transform-nam |
--program-transform-na \
1032 |
--program-transform-n |
--program-transform- \
1033 |
--program-transform |
--program-transfor \
1034 |
--program-transfo |
--program-transf \
1035 |
--program-trans |
--program-tran \
1036 |
--progr-tra |
--program-tr |
--program-t)
1037 ac_prev
=program_transform_name
;;
1038 -program-transform-name=* |
--program-transform-name=* \
1039 |
--program-transform-nam=* |
--program-transform-na=* \
1040 |
--program-transform-n=* |
--program-transform-=* \
1041 |
--program-transform=* |
--program-transfor=* \
1042 |
--program-transfo=* |
--program-transf=* \
1043 |
--program-trans=* |
--program-tran=* \
1044 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1045 program_transform_name
=$ac_optarg ;;
1047 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1049 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1050 pdfdir
=$ac_optarg ;;
1052 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1054 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1057 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1058 |
-silent |
--silent |
--silen |
--sile |
--sil)
1061 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1063 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1065 sbindir
=$ac_optarg ;;
1067 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1068 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1069 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1071 ac_prev
=sharedstatedir
;;
1072 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1073 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1074 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1076 sharedstatedir
=$ac_optarg ;;
1078 -site |
--site |
--sit)
1080 -site=* |
--site=* |
--sit=*)
1083 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1085 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1086 srcdir
=$ac_optarg ;;
1088 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1089 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1090 ac_prev
=sysconfdir
;;
1091 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1092 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1093 sysconfdir
=$ac_optarg ;;
1095 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1096 ac_prev
=target_alias
;;
1097 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1098 target_alias
=$ac_optarg ;;
1100 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1103 -version |
--version |
--versio |
--versi |
--vers |
-V)
1104 ac_init_version
=: ;;
1107 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1110 as_fn_error $?
"invalid package name: $ac_useropt"
1111 ac_useropt_orig
=$ac_useropt
1112 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1117 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1118 ac_unrecognized_sep
=', ';;
1120 eval with_
$ac_useropt=\
$ac_optarg ;;
1122 -without-* |
--without-*)
1123 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1126 as_fn_error $?
"invalid package name: $ac_useropt"
1127 ac_useropt_orig
=$ac_useropt
1128 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1133 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1134 ac_unrecognized_sep
=', ';;
1136 eval with_
$ac_useropt=no
;;
1139 # Obsolete; use --with-x.
1142 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1143 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1144 ac_prev
=x_includes
;;
1145 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1146 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1147 x_includes
=$ac_optarg ;;
1149 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1150 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1151 ac_prev
=x_libraries
;;
1152 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1153 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1154 x_libraries
=$ac_optarg ;;
1156 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1157 Try \`$0 --help' for more information"
1161 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1162 # Reject names that are not valid shell variable names.
1163 case $ac_envvar in #(
1164 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1165 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1167 eval $ac_envvar=\
$ac_optarg
1168 export $ac_envvar ;;
1171 # FIXME: should be removed in autoconf 3.0.
1172 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1174 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1181 if test -n "$ac_prev"; then
1182 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1183 as_fn_error $?
"missing argument to $ac_option"
1186 if test -n "$ac_unrecognized_opts"; then
1187 case $enable_option_checking in
1189 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1190 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1194 # Check all directory arguments for consistency.
1195 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1196 datadir sysconfdir sharedstatedir localstatedir includedir \
1197 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1198 libdir localedir mandir
1200 eval ac_val
=\$
$ac_var
1201 # Remove trailing slashes.
1204 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1205 eval $ac_var=\
$ac_val;;
1207 # Be sure to have absolute directory names.
1209 [\\/$
]* | ?
:[\\/]* ) continue;;
1210 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1212 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1215 # There might be people who depend on the old broken behavior: `$host'
1216 # used to hold the argument of --host etc.
1217 # FIXME: To remove some day.
1220 target
=$target_alias
1222 # FIXME: To remove some day.
1223 if test "x$host_alias" != x
; then
1224 if test "x$build_alias" = x
; then
1225 cross_compiling
=maybe
1226 elif test "x$build_alias" != "x$host_alias"; then
1232 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1234 test "$silent" = yes && exec 6>/dev
/null
1237 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1238 ac_ls_di
=`ls -di .` &&
1239 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1240 as_fn_error $?
"working directory cannot be determined"
1241 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1242 as_fn_error $?
"pwd does not report name of working directory"
1245 # Find the source files, if location was not specified.
1246 if test -z "$srcdir"; then
1247 ac_srcdir_defaulted
=yes
1248 # Try the directory containing this script, then the parent directory.
1249 ac_confdir
=`$as_dirname -- "$as_myself" ||
1250 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251 X"$as_myself" : 'X\(//\)[^/]' \| \
1252 X"$as_myself" : 'X\(//\)$' \| \
1253 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1254 $as_echo X"$as_myself" |
1255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273 if test ! -r "$srcdir/$ac_unique_file"; then
1277 ac_srcdir_defaulted
=no
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1281 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1283 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1285 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1287 # When building in place, set srcdir=.
1288 if test "$ac_abs_confdir" = "$ac_pwd"; then
1291 # Remove unnecessary trailing slashes from srcdir.
1292 # Double slashes in file names in object file debugging info
1293 # mess up M-x gdb in Emacs.
1295 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297 for ac_var
in $ac_precious_vars; do
1298 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1299 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1300 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1301 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1305 # Report the --help message.
1307 if test "$ac_init_help" = "long"; then
1308 # Omit some internal or obsolete options to make the list less imposing.
1309 # This message is too long to be a string in the A/UX 3.1 sh.
1311 \`configure' configures nettle 2.7.1 to adapt to many kinds of systems.
1313 Usage: $0 [OPTION]... [VAR=VALUE]...
1315 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316 VAR=VALUE. See below for descriptions of some of the useful variables.
1318 Defaults for the options are specified in brackets.
1321 -h, --help display this help and exit
1322 --help=short display options specific to this package
1323 --help=recursive display the short help of all the included packages
1324 -V, --version display version information and exit
1325 -q, --quiet, --silent do not print \`checking ...' messages
1326 --cache-file=FILE cache test results in FILE [disabled]
1327 -C, --config-cache alias for \`--cache-file=config.cache'
1328 -n, --no-create do not create output files
1329 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1331 Installation directories:
1332 --prefix=PREFIX install architecture-independent files in PREFIX
1333 [$ac_default_prefix]
1334 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1337 By default, \`make install' will install all the files in
1338 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1339 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340 for instance \`--prefix=\$HOME'.
1342 For better control, use the options below.
1344 Fine tuning of the installation directories:
1345 --bindir=DIR user executables [EPREFIX/bin]
1346 --sbindir=DIR system admin executables [EPREFIX/sbin]
1347 --libexecdir=DIR program executables [EPREFIX/libexec]
1348 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1349 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1350 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1351 --libdir=DIR object code libraries [EPREFIX/lib]
1352 --includedir=DIR C header files [PREFIX/include]
1353 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1354 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1355 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1356 --infodir=DIR info documentation [DATAROOTDIR/info]
1357 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1358 --mandir=DIR man documentation [DATAROOTDIR/man]
1359 --docdir=DIR documentation root [DATAROOTDIR/doc/nettle]
1360 --htmldir=DIR html documentation [DOCDIR]
1361 --dvidir=DIR dvi documentation [DOCDIR]
1362 --pdfdir=DIR pdf documentation [DOCDIR]
1363 --psdir=DIR ps documentation [DOCDIR]
1369 --build=BUILD configure
for building on BUILD
[guessed
]
1370 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1374 if test -n "$ac_init_help"; then
1375 case $ac_init_help in
1376 short | recursive
) echo "Configuration of nettle 2.7.1:";;
1381 --disable-option-checking ignore unrecognized
--enable/--with options
1382 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1383 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1384 --disable-public-key Disable public key algorithms
1385 --disable-assembler Disable assembler code
1386 --disable-static Do not build any static library
1387 --disable-shared Do not build any shared library
1388 --disable-pic Do not try to compile library files as position
1390 --disable-openssl Do not include openssl glue
in the benchmark program
1391 --enable-gcov Instrument
for gcov
(requires a modern gcc
)
1392 --disable-documentation Omit building and installing the documentation.
1394 --enable-arm-neon Enable ARM Neon assembly.
(default
=auto
)
1395 --disable-dependency-tracking
1396 Disable dependency tracking. Dependency tracking
1397 doesn
't work with BSD make
1400 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1401 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1402 --with-include-path A colon-separated list of directories to search for
1404 --with-lib-path A colon-separated list of directories to search for
1407 Some influential environment variables:
1408 CC C compiler command
1409 CFLAGS C compiler flags
1410 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1411 nonstandard directory <lib dir>
1412 LIBS libraries to pass to the linker, e.g. -l<library>
1413 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1414 you have headers in a nonstandard directory <include dir>
1415 CXX C++ compiler command
1416 CXXFLAGS C++ compiler flags
1418 build system C compiler
1421 Use these variables to override the choices made by `configure' or to
help
1422 it to
find libraries and programs with nonstandard names
/locations.
1424 Report bugs to
<nettle-bugs@lists.lysator.liu.se
>.
1429 if test "$ac_init_help" = "recursive"; then
1430 # If there are subdirs, report their specific --help.
1431 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1432 test -d "$ac_dir" ||
1433 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1438 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1440 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1441 # A ".." for each directory in $ac_dir_suffix.
1442 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1443 case $ac_top_builddir_sub in
1444 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1445 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1448 ac_abs_top_builddir
=$ac_pwd
1449 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1450 # for backward compatibility:
1451 ac_top_builddir
=$ac_top_build_prefix
1454 .
) # We are building in place.
1456 ac_top_srcdir
=$ac_top_builddir_sub
1457 ac_abs_top_srcdir
=$ac_pwd ;;
1458 [\\/]* | ?
:[\\/]* ) # Absolute name.
1459 ac_srcdir
=$srcdir$ac_dir_suffix;
1460 ac_top_srcdir
=$srcdir
1461 ac_abs_top_srcdir
=$srcdir ;;
1463 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1464 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1465 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1467 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1469 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1470 # Check for guested configure.
1471 if test -f "$ac_srcdir/configure.gnu"; then
1473 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1474 elif test -f "$ac_srcdir/configure"; then
1476 $SHELL "$ac_srcdir/configure" --help=recursive
1478 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1480 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1484 test -n "$ac_init_help" && exit $ac_status
1485 if $ac_init_version; then
1487 nettle configure
2.7.1
1488 generated by GNU Autoconf
2.69
1490 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1491 This configure
script is free software
; the Free Software Foundation
1492 gives unlimited permission to copy
, distribute and modify it.
1497 ## ------------------------ ##
1498 ## Autoconf initialization. ##
1499 ## ------------------------ ##
1501 # ac_fn_c_try_compile LINENO
1502 # --------------------------
1503 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1504 ac_fn_c_try_compile
()
1506 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1507 rm -f conftest.
$ac_objext
1508 if { { ac_try
="$ac_compile"
1510 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1511 *) ac_try_echo=$ac_try;;
1513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1514 $as_echo "$ac_try_echo"; } >&5
1515 (eval "$ac_compile") 2>conftest.err
1517 if test -s conftest.err; then
1518 grep -v '^ *+' conftest.err >conftest.er1
1519 cat conftest.er1 >&5
1520 mv -f conftest.er1 conftest.err
1522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1523 test $ac_status = 0; } && {
1524 test -z "$ac_c_werror_flag" ||
1525 test ! -s conftest.err
1526 } && test -s conftest.$ac_objext; then :
1529 $as_echo "$as_me: failed program was:" >&5
1530 sed 's/^/| /' conftest.$ac_ext >&5
1534 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1535 as_fn_set_status $ac_retval
1537 } # ac_fn_c_try_compile
1539 # ac_fn_cxx_try_compile LINENO
1540 # ----------------------------
1541 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1542 ac_fn_cxx_try_compile ()
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 rm -f conftest.$ac_objext
1546 if { { ac_try="$ac_compile"
1548 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1549 *) ac_try_echo
=$ac_try;;
1551 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552 $as_echo "$ac_try_echo"; } >&5
1553 (eval "$ac_compile") 2>conftest.err
1555 if test -s conftest.err
; then
1556 grep -v '^ *+' conftest.err
>conftest.er1
1557 cat conftest.er1
>&5
1558 mv -f conftest.er1 conftest.err
1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561 test $ac_status = 0; } && {
1562 test -z "$ac_cxx_werror_flag" ||
1563 test ! -s conftest.err
1564 } && test -s conftest.
$ac_objext; then :
1567 $as_echo "$as_me: failed program was:" >&5
1568 sed 's/^/| /' conftest.
$ac_ext >&5
1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573 as_fn_set_status
$ac_retval
1575 } # ac_fn_cxx_try_compile
1577 # ac_fn_c_try_cpp LINENO
1578 # ----------------------
1579 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1582 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1583 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } > conftest.i && {
1599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1604 $as_echo "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.$ac_ext >&5
1609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610 as_fn_set_status $ac_retval
1614 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1615 # -------------------------------------------
1616 # Tests whether TYPE exists after having included INCLUDES, setting cache
1617 # variable VAR accordingly.
1618 ac_fn_c_check_type ()
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1622 $as_echo_n "checking for $2... " >&6; }
1623 if eval \${$3+:} false; then :
1624 $as_echo_n "(cached) " >&6
1627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1628 /* end confdefs.h. */
1639 if ac_fn_c_try_compile "$LINENO"; then :
1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641 /* end confdefs.h. */
1652 if ac_fn_c_try_compile "$LINENO"; then :
1657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1663 $as_echo "$ac_res" >&6; }
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 } # ac_fn_c_check_type
1668 # ac_fn_c_try_run LINENO
1669 # ----------------------
1670 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1671 # that executables *can* be run.
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 if { { ac_try="$ac_link"
1677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1678 *) ac_try_echo
=$ac_try;;
1680 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_link") 2>&5
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1686 { { case "(($ac_try" in
1687 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_try") 2>&5
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; }; }; then :
1698 $as_echo "$as_me: program exited with status $ac_status" >&5
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1702 ac_retval=$ac_status
1704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1710 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1711 # -------------------------------------------------------
1712 # Tests whether HEADER exists and can be compiled using the include files in
1713 # INCLUDES, setting the cache variable VAR accordingly.
1714 ac_fn_c_check_header_compile ()
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1718 $as_echo_n "checking for $2... " >&6; }
1719 if eval \${$3+:} false; then :
1720 $as_echo_n "(cached) " >&6
1722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723 /* end confdefs.h. */
1727 if ac_fn_c_try_compile "$LINENO"; then :
1732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736 $as_echo "$ac_res" >&6; }
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 } # ac_fn_c_check_header_compile
1741 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1742 # --------------------------------------------
1743 # Tries to find the compile-time value of EXPR in a program that includes
1744 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1746 ac_fn_c_compute_int ()
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 if test "$cross_compiling" = yes; then
1750 # Depending upon the size, compute the lo and hi bounds.
1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752 /* end confdefs.h. */
1757 static int test_array [1 - 2 * !(($2) >= 0)];
1759 return test_array [0];
1765 if ac_fn_c_try_compile "$LINENO"; then :
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1774 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1776 return test_array [0];
1782 if ac_fn_c_try_compile "$LINENO"; then :
1783 ac_hi=$ac_mid; break
1785 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1786 if test $ac_lo -le $ac_mid; then
1790 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1801 static int test_array [1 - 2 * !(($2) < 0)];
1803 return test_array [0];
1809 if ac_fn_c_try_compile "$LINENO"; then :
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1818 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1820 return test_array [0];
1826 if ac_fn_c_try_compile "$LINENO"; then :
1827 ac_lo=$ac_mid; break
1829 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1830 if test $ac_mid -le $ac_hi; then
1834 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1844 # Binary search between lo and hi bounds.
1845 while test "x$ac_lo" != "x$ac_hi"; do
1846 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h. */
1853 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1855 return test_array [0];
1861 if ac_fn_c_try_compile "$LINENO"; then :
1864 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1876 static long int longval () { return $2; }
1877 static unsigned long int ulongval () { return $2; }
1884 FILE *f = fopen ("conftest.val", "w");
1889 long int i = longval ();
1892 fprintf (f, "%ld", i);
1896 unsigned long int i = ulongval ();
1899 fprintf (f, "%lu", i);
1901 /* Do not output a trailing newline, as this causes \r\n confusion
1902 on some platforms. */
1903 return ferror (f) || fclose (f) != 0;
1909 if ac_fn_c_try_run "$LINENO"; then :
1910 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1915 conftest.$ac_objext conftest.beam conftest.$ac_ext
1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920 as_fn_set_status $ac_retval
1922 } # ac_fn_c_compute_int
1924 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1925 # -------------------------------------------------------
1926 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1927 # the include files in INCLUDES and setting the cache variable VAR
1929 ac_fn_c_check_header_mongrel ()
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 if eval \${$3+:} false; then :
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1934 $as_echo_n "checking for $2... " >&6; }
1935 if eval \${$3+:} false; then :
1936 $as_echo_n "(cached) " >&6
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1942 # Is the header compilable?
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1944 $as_echo_n "checking $2 usability... " >&6; }
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1950 if ac_fn_c_try_compile "$LINENO"; then :
1951 ac_header_compiler=yes
1953 ac_header_compiler=no
1955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1957 $as_echo "$ac_header_compiler" >&6; }
1959 # Is the header present?
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1961 $as_echo_n "checking $2 presence... " >&6; }
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1966 if ac_fn_c_try_cpp "$LINENO"; then :
1967 ac_header_preproc=yes
1969 ac_header_preproc=no
1971 rm -f conftest.err conftest.i conftest.$ac_ext
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1973 $as_echo "$ac_header_preproc" >&6; }
1975 # So? What about this header?
1976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1979 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1981 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1985 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1987 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1989 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1991 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1993 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1994 ( $as_echo "## ----------------------------------------------- ##
1995 ## Report this to nettle-bugs@lists.lysator.liu.se ##
1996 ## ----------------------------------------------- ##"
1997 ) | sed "s/^/$as_me: WARNING: /" >&2
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2001 $as_echo_n "checking for $2... " >&6; }
2002 if eval \${$3+:} false; then :
2003 $as_echo_n "(cached) " >&6
2005 eval "$3=\$ac_header_compiler"
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 } # ac_fn_c_check_header_mongrel
2015 # ac_fn_c_try_link LINENO
2016 # -----------------------
2017 # Try to link conftest.$ac_ext, and return whether this succeeded.
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 rm -f conftest.$ac_objext conftest$ac_exeext
2022 if { { ac_try="$ac_link"
2024 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2025 *) ac_try_echo
=$ac_try;;
2027 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029 (eval "$ac_link") 2>conftest.err
2031 if test -s conftest.err
; then
2032 grep -v '^ *+' conftest.err
>conftest.er1
2033 cat conftest.er1
>&5
2034 mv -f conftest.er1 conftest.err
2036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2037 test $ac_status = 0; } && {
2038 test -z "$ac_c_werror_flag" ||
2039 test ! -s conftest.err
2040 } && test -s conftest
$ac_exeext && {
2041 test "$cross_compiling" = yes ||
2042 test -x conftest
$ac_exeext
2046 $as_echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.
$ac_ext >&5
2051 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2052 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2053 # interfere with the next link command; also delete a directory that is
2054 # left behind by Apple's compiler. We do this before executing the actions.
2055 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2056 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057 as_fn_set_status
$ac_retval
2059 } # ac_fn_c_try_link
2061 # ac_fn_c_check_func LINENO FUNC VAR
2062 # ----------------------------------
2063 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2064 ac_fn_c_check_func
()
2066 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2068 $as_echo_n "checking for $2... " >&6; }
2069 if eval \
${$3+:} false
; then :
2070 $as_echo_n "(cached) " >&6
2072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2074 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2076 #define $2 innocuous_$2
2078 /* System header to define __stub macros and hopefully few prototypes,
2079 which can conflict with char $2 (); below.
2080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2081 <limits.h> exists even on freestanding compilers. */
2084 # include <limits.h>
2086 # include <assert.h>
2091 /* Override any GCC internal prototype to avoid an error.
2092 Use char because int might match the return type of a GCC
2093 builtin and then its argument prototype would still apply. */
2098 /* The GNU C library defines this for functions which it implements
2099 to always fail with ENOSYS. Some functions are actually named
2100 something starting with __ and the normal name is an alias. */
2101 #if defined __stub_$2 || defined __stub___$2
2113 if ac_fn_c_try_link
"$LINENO"; then :
2118 rm -f core conftest.err conftest.
$ac_objext \
2119 conftest
$ac_exeext conftest.
$ac_ext
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123 $as_echo "$ac_res" >&6; }
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126 } # ac_fn_c_check_func
2127 cat >config.log
<<_ACEOF
2128 This file contains any messages produced by compilers while
2129 running configure, to aid debugging if configure makes a mistake.
2131 It was created by nettle $as_me 2.7.1, which was
2132 generated by GNU Autoconf 2.69. Invocation command line was
2144 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2145 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2146 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2147 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2148 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2150 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2151 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2153 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2154 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2155 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2156 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2157 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2158 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2159 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2167 test -z "$as_dir" && as_dir
=.
2168 $as_echo "PATH: $as_dir"
2184 # Keep a trace of the command line.
2185 # Strip out --no-create and --no-recursion so they do not pile up.
2186 # Strip out --silent because we don't want to record it for future runs.
2187 # Also quote any args containing shell meta-characters.
2188 # Make two passes to allow for proper duplicate-argument suppression.
2192 ac_must_keep_next
=false
2198 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2199 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2200 |
-silent |
--silent |
--silen |
--sile |
--sil)
2203 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2206 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2208 as_fn_append ac_configure_args1
" '$ac_arg'"
2209 if test $ac_must_keep_next = true
; then
2210 ac_must_keep_next
=false
# Got value, back to normal.
2213 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2214 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2215 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2216 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2217 case "$ac_configure_args0 " in
2218 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2221 -* ) ac_must_keep_next
=true
;;
2224 as_fn_append ac_configure_args
" '$ac_arg'"
2229 { ac_configure_args0
=; unset ac_configure_args0
;}
2230 { ac_configure_args1
=; unset ac_configure_args1
;}
2232 # When interrupted or exit'd, cleanup temporary files, and complete
2233 # config.log. We remove comments because anyway the quotes in there
2234 # would cause problems or look ugly.
2235 # WARNING: Use '\'' to represent an apostrophe within the trap.
2236 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2237 trap 'exit_status=$?
2238 # Save into config.log some information that might help in debugging.
2242 $as_echo "## ---------------- ##
2243 ## Cache variables. ##
2244 ## ---------------- ##"
2246 # The following way of writing the cache mishandles newlines in values,
2248 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2249 eval ac_val=\$$ac_var
2253 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2254 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2257 _ | IFS | as_nl) ;; #(
2258 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2259 *) { eval $ac_var=; unset $ac_var;} ;;
2264 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2265 *${as_nl}ac_space=\ *)
2267 "s/'\''/'\''\\\\'\'''\''/g;
2268 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2271 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2278 $as_echo "## ----------------- ##
2279 ## Output variables. ##
2280 ## ----------------- ##"
2282 for ac_var in $ac_subst_vars
2284 eval ac_val=\$$ac_var
2286 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2288 $as_echo "$ac_var='\''$ac_val'\''"
2292 if test -n "$ac_subst_files"; then
2293 $as_echo "## ------------------- ##
2294 ## File substitutions. ##
2295 ## ------------------- ##"
2297 for ac_var
in $ac_subst_files
2299 eval ac_val
=\$
$ac_var
2301 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2303 $as_echo "$ac_var='\''$ac_val'\''"
2308 if test -s confdefs.h; then
2309 $as_echo "## ----------- ##
2316 test "$ac_signal" != 0 &&
2317 $as_echo "$as_me: caught signal $ac_signal"
2318 $as_echo "$as_me: exit $exit_status"
2320 rm -f core *.core core.conftest.* &&
2321 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2324 for ac_signal
in 1 2 13 15; do
2325 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2329 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2330 rm -f -r conftest
* confdefs.h
2332 $as_echo "/* confdefs.h */" > confdefs.h
2334 # Predefined preprocessor variables.
2336 cat >>confdefs.h
<<_ACEOF
2337 #define PACKAGE_NAME "$PACKAGE_NAME"
2340 cat >>confdefs.h
<<_ACEOF
2341 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2344 cat >>confdefs.h
<<_ACEOF
2345 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2348 cat >>confdefs.h
<<_ACEOF
2349 #define PACKAGE_STRING "$PACKAGE_STRING"
2352 cat >>confdefs.h
<<_ACEOF
2353 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2356 cat >>confdefs.h
<<_ACEOF
2357 #define PACKAGE_URL "$PACKAGE_URL"
2361 # Let the site file select an alternate cache file if it wants to.
2362 # Prefer an explicitly selected file to automatically selected ones.
2365 if test -n "$CONFIG_SITE"; then
2366 # We do not want a PATH search for config.site.
2367 case $CONFIG_SITE in #((
2368 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2369 */*) ac_site_file1
=$CONFIG_SITE;;
2370 *) ac_site_file1
=.
/$CONFIG_SITE;;
2372 elif test "x$prefix" != xNONE
; then
2373 ac_site_file1
=$prefix/share
/config.site
2374 ac_site_file2
=$prefix/etc
/config.site
2376 ac_site_file1
=$ac_default_prefix/share
/config.site
2377 ac_site_file2
=$ac_default_prefix/etc
/config.site
2379 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2381 test "x$ac_site_file" = xNONE
&& continue
2382 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2384 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2385 sed 's/^/| /' "$ac_site_file" >&5
2387 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2389 as_fn_error $?
"failed to load site script $ac_site_file
2390 See \`config.log' for more details" "$LINENO" 5; }
2394 if test -r "$cache_file"; then
2395 # Some versions of bash will fail to source /dev/null (special files
2396 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2397 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2399 $as_echo "$as_me: loading cache $cache_file" >&6;}
2401 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2402 *) .
"./$cache_file";;
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2407 $as_echo "$as_me: creating cache $cache_file" >&6;}
2411 # Check that the precious variables saved in the cache have kept the same
2413 ac_cache_corrupted
=false
2414 for ac_var
in $ac_precious_vars; do
2415 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2416 eval ac_new_set
=\
$ac_env_${ac_var}_set
2417 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2418 eval ac_new_val
=\
$ac_env_${ac_var}_value
2419 case $ac_old_set,$ac_new_set in
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2422 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2423 ac_cache_corrupted
=: ;;
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2426 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2427 ac_cache_corrupted
=: ;;
2430 if test "x$ac_old_val" != "x$ac_new_val"; then
2431 # differences in whitespace do not lead to failure.
2432 ac_old_val_w
=`echo x $ac_old_val`
2433 ac_new_val_w
=`echo x $ac_new_val`
2434 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2436 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2437 ac_cache_corrupted
=:
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2440 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2441 eval $ac_var=\
$ac_old_val
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2444 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2446 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2449 # Pass precious variables to config.status.
2450 if test "$ac_new_set" = set; then
2452 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2453 *) ac_arg
=$ac_var=$ac_new_val ;;
2455 case " $ac_configure_args " in
2456 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2457 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2461 if $ac_cache_corrupted; then
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2465 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2466 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2468 ## -------------------- ##
2469 ## Main body of script. ##
2470 ## -------------------- ##
2473 ac_cpp
='$CPP $CPPFLAGS'
2474 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2475 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2476 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2481 # Needed to stop autoconf from looking for files in parent directories.
2483 for ac_dir
in .
"$srcdir"/.
; do
2484 if test -f "$ac_dir/install-sh"; then
2486 ac_install_sh
="$ac_aux_dir/install-sh -c"
2488 elif test -f "$ac_dir/install.sh"; then
2490 ac_install_sh
="$ac_aux_dir/install.sh -c"
2492 elif test -f "$ac_dir/shtool"; then
2494 ac_install_sh
="$ac_aux_dir/shtool install -c"
2498 if test -z "$ac_aux_dir"; then
2499 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2502 # These three variables are undocumented and unsupported,
2503 # and are intended to be withdrawn in a future Autoconf release.
2504 # They can cause serious problems if a builder's source tree is in a directory
2505 # whose full name contains unusual characters.
2506 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2507 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2508 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2512 ac_config_headers
="$ac_config_headers config.h"
2521 # Make sure we can run config.sub.
2522 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2523 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2526 $as_echo_n "checking build system type... " >&6; }
2527 if ${ac_cv_build+:} false
; then :
2528 $as_echo_n "(cached) " >&6
2530 ac_build_alias
=$build_alias
2531 test "x$ac_build_alias" = x
&&
2532 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2533 test "x$ac_build_alias" = x
&&
2534 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2535 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2536 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2540 $as_echo "$ac_cv_build" >&6; }
2541 case $ac_cv_build in
2543 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2546 ac_save_IFS
=$IFS; IFS
='-'
2552 # Remember, the first character of IFS is used to create $*,
2553 # except with old shells:
2556 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2560 $as_echo_n "checking host system type... " >&6; }
2561 if ${ac_cv_host+:} false
; then :
2562 $as_echo_n "(cached) " >&6
2564 if test "x$host_alias" = x
; then
2565 ac_cv_host
=$ac_cv_build
2567 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2568 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2573 $as_echo "$ac_cv_host" >&6; }
2576 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2579 ac_save_IFS
=$IFS; IFS
='-'
2585 # Remember, the first character of IFS is used to create $*,
2586 # except with old shells:
2589 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2593 # Command line options
2595 # Check whether --with-include-path was given.
2596 if test "${with_include_path+set}" = set; then :
2597 withval
=$with_include_path;
2599 with_include_path
=''
2603 if test x
$with_include_path != x
; then
2604 CPPFLAGS
="$CPPFLAGS -I`echo $with_include_path | sed 's/:/ -I/g'`"
2608 # Check whether --with-lib-path was given.
2609 if test "${with_lib_path+set}" = set; then :
2610 withval
=$with_lib_path;
2616 if test x
$with_lib_path != x
; then
2617 LDFLAGS
="$LDFLAGS -L`echo $with_lib_path | sed 's/:/ -L/g'`"
2620 # Check whether --enable-public-key was given.
2621 if test "${enable_public_key+set}" = set; then :
2622 enableval
=$enable_public_key;
2624 enable_public_key
=yes
2628 # Check whether --enable-assembler was given.
2629 if test "${enable_assembler+set}" = set; then :
2630 enableval
=$enable_assembler;
2632 enable_assembler
=yes
2636 # Check whether --enable-static was given.
2637 if test "${enable_static+set}" = set; then :
2638 enableval
=$enable_static;
2644 # Check whether --enable-shared was given.
2645 if test "${enable_shared+set}" = set; then :
2646 enableval
=$enable_shared;
2652 # Check whether --enable-pic was given.
2653 if test "${enable_pic+set}" = set; then :
2654 enableval
=$enable_pic;
2660 # Check whether --enable-openssl was given.
2661 if test "${enable_openssl+set}" = set; then :
2662 enableval
=$enable_openssl;
2668 # Check whether --enable-gcov was given.
2669 if test "${enable_gcov+set}" = set; then :
2670 enableval
=$enable_gcov;
2676 # Check whether --enable-documentation was given.
2677 if test "${enable_documentation+set}" = set; then :
2678 enableval
=$enable_documentation;
2680 enable_documentation
=auto
2684 # Check whether --enable-arm-neon was given.
2685 if test "${enable_arm_neon+set}" = set; then :
2686 enableval
=$enable_arm_neon;
2688 enable_arm_neon
=auto
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -R flag" >&5
2693 $as_echo_n "checking for -R flag... " >&6; }
2696 osf1
*) RPATHFLAG
="-rpath " ;;
2697 irix6.
*|irix5.
*) RPATHFLAG
="-rpath " ;;
2699 if test "$TCC" = "yes"; then
2700 # tcc doesn't know about -R
2706 linux
*) RPATHFLAG
="-Wl,-rpath," ;;
2710 if test x
$RPATHFLAG = x
; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
2712 $as_echo "none" >&6; }
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $RPATHFLAG" >&5
2715 $as_echo "using $RPATHFLAG" >&6; }
2718 RPATH_CANDIDATE_REAL_DIRS
=''
2719 RPATH_CANDIDATE_DIRS
=''
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Searching for libraries" >&5
2722 $as_echo "Searching for libraries" >&6; }
2724 for d
in `echo $with_lib_path | sed 's/:/ /g'` \
2725 `echo $exec_prefix | sed "s@^NONE@$prefix/lib@g" | sed "s@^NONE@$ac_default_prefix/lib@g"` \
2726 /usr
/local
/lib
/sw
/local
/lib
/sw
/lib \
2727 /usr
/gnu
/lib
/opt
/gnu
/lib
/sw
/gnu
/lib
/usr
/freeware
/lib
/usr
/pkg
/lib
; do
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $d" >&5
2729 $as_echo_n "checking $d... " >&6; }
2731 if test -d "$d/." ; then
2732 ac_real_dir
=`cd $d && pwd`
2733 if test -n "$ac_real_dir" ; then
2735 for old
in RPATH_CANDIDATE_REAL_DIRS
; do
2737 if test x
$ac_real_dir = x
$old ; then
2742 if test $ac_found = yes ; then
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: already added" >&5
2744 $as_echo "already added" >&6; }
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: added" >&5
2747 $as_echo "added" >&6; }
2748 # LDFLAGS="$LDFLAGS -L $d"
2749 RPATH_CANDIDATE_REAL_DIRS
="$ac_real_dir $RPATH_CANDIDATE_REAL_DIRS"
2750 RPATH_CANDIDATE_DIRS
="$d $RPATH_CANDIDATE_DIRS"
2754 if test $ac_exists = no
; then
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
2756 $as_echo "not found" >&6; }
2762 # Checks for programs.
2764 ac_cpp
='$CPP $CPPFLAGS'
2765 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2768 if test -n "$ac_tool_prefix"; then
2769 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2770 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772 $as_echo_n "checking for $ac_word... " >&6; }
2773 if ${ac_cv_prog_CC+:} false
; then :
2774 $as_echo_n "(cached) " >&6
2776 if test -n "$CC"; then
2777 ac_cv_prog_CC
="$CC" # Let the user override the test.
2779 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2783 test -z "$as_dir" && as_dir
=.
2784 for ac_exec_ext
in '' $ac_executable_extensions; do
2785 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2786 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 if test -n "$CC"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2799 $as_echo "$CC" >&6; }
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2807 if test -z "$ac_cv_prog_CC"; then
2809 # Extract the first word of "gcc", so it can be a program name with args.
2810 set dummy gcc
; ac_word
=$2
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812 $as_echo_n "checking for $ac_word... " >&6; }
2813 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2814 $as_echo_n "(cached) " >&6
2816 if test -n "$ac_ct_CC"; then
2817 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir
=.
2824 for ac_exec_ext
in '' $ac_executable_extensions; do
2825 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_ac_ct_CC
="gcc"
2827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2837 if test -n "$ac_ct_CC"; then
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2839 $as_echo "$ac_ct_CC" >&6; }
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842 $as_echo "no" >&6; }
2845 if test "x$ac_ct_CC" = x
; then
2848 case $cross_compiling:$ac_tool_warned in
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2852 ac_tool_warned
=yes ;;
2860 if test -z "$CC"; then
2861 if test -n "$ac_tool_prefix"; then
2862 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2863 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if ${ac_cv_prog_CC+:} false
; then :
2867 $as_echo_n "(cached) " >&6
2869 if test -n "$CC"; then
2870 ac_cv_prog_CC
="$CC" # Let the user override the test.
2872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2876 test -z "$as_dir" && as_dir
=.
2877 for ac_exec_ext
in '' $ac_executable_extensions; do
2878 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2879 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 if test -n "$CC"; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2892 $as_echo "$CC" >&6; }
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2901 if test -z "$CC"; then
2902 # Extract the first word of "cc", so it can be a program name with args.
2903 set dummy cc
; ac_word
=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if ${ac_cv_prog_CC+:} false
; then :
2907 $as_echo_n "(cached) " >&6
2909 if test -n "$CC"; then
2910 ac_cv_prog_CC
="$CC" # Let the user override the test.
2913 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2917 test -z "$as_dir" && as_dir
=.
2918 for ac_exec_ext
in '' $ac_executable_extensions; do
2919 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2920 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2921 ac_prog_rejected
=yes
2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 if test $ac_prog_rejected = yes; then
2933 # We found a bogon in the path, so make sure we never use it.
2934 set dummy
$ac_cv_prog_CC
2936 if test $# != 0; then
2937 # We chose a different compiler from the bogus one.
2938 # However, it has the same basename, so the bogon will be chosen
2939 # first if we set CC to just the basename; use the full file name.
2941 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2947 if test -n "$CC"; then
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2949 $as_echo "$CC" >&6; }
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952 $as_echo "no" >&6; }
2957 if test -z "$CC"; then
2958 if test -n "$ac_tool_prefix"; then
2959 for ac_prog
in cl.exe
2961 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2962 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
2965 if ${ac_cv_prog_CC+:} false
; then :
2966 $as_echo_n "(cached) " >&6
2968 if test -n "$CC"; then
2969 ac_cv_prog_CC
="$CC" # Let the user override the test.
2971 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2975 test -z "$as_dir" && as_dir
=.
2976 for ac_exec_ext
in '' $ac_executable_extensions; do
2977 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2978 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 if test -n "$CC"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2991 $as_echo "$CC" >&6; }
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 $as_echo "no" >&6; }
2998 test -n "$CC" && break
3001 if test -z "$CC"; then
3003 for ac_prog
in cl.exe
3005 # Extract the first word of "$ac_prog", so it can be a program name with args.
3006 set dummy
$ac_prog; ac_word
=$2
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3010 $as_echo_n "(cached) " >&6
3012 if test -n "$ac_ct_CC"; then
3013 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3015 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3019 test -z "$as_dir" && as_dir
=.
3020 for ac_exec_ext
in '' $ac_executable_extensions; do
3021 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3022 ac_cv_prog_ac_ct_CC
="$ac_prog"
3023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3033 if test -n "$ac_ct_CC"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3035 $as_echo "$ac_ct_CC" >&6; }
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3042 test -n "$ac_ct_CC" && break
3045 if test "x$ac_ct_CC" = x
; then
3048 case $cross_compiling:$ac_tool_warned in
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3052 ac_tool_warned
=yes ;;
3061 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3063 as_fn_error $?
"no acceptable C compiler found in \$PATH
3064 See \`config.log' for more details" "$LINENO" 5; }
3066 # Provide some information about the compiler.
3067 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3070 for ac_option
in --version -v -V -qversion; do
3071 { { ac_try
="$ac_compiler $ac_option >&5"
3073 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3077 $as_echo "$ac_try_echo"; } >&5
3078 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3080 if test -s conftest.err; then
3082 ... rest of stderr output deleted ...
3083 10q' conftest.err >conftest.er1
3084 cat conftest.er1 >&5
3086 rm -f conftest.er1 conftest.err
3087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3088 test $ac_status = 0; }
3091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3092 /* end confdefs.h. */
3102 ac_clean_files_save=$ac_clean_files
3103 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3104 # Try to create an executable without -o first, disregard a.out.
3105 # It will help us diagnose broken compilers, and finding out an intuition
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3108 $as_echo_n "checking whether the C compiler works... " >&6; }
3109 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3111 # The possible output files:
3112 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3115 for ac_file in $ac_files
3118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3119 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3124 if { { ac_try="$ac_link_default"
3126 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3127 *) ac_try_echo
=$ac_try;;
3129 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3130 $as_echo "$ac_try_echo"; } >&5
3131 (eval "$ac_link_default") 2>&5
3133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3134 test $ac_status = 0; }; then :
3135 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3136 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3137 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3138 # so that the user can short-circuit this test for compilers unknown to
3140 for ac_file
in $ac_files ''
3142 test -f "$ac_file" ||
continue
3144 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3147 # We found the default executable, but exeext='' is most
3151 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3153 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3155 # We set ac_cv_exeext here because the later test for it is not
3156 # safe: cross compilers may not add the suffix if given an `-o'
3157 # argument, so we may need to know it at that point already.
3158 # Even if this section looks crufty: it has the advantage of
3165 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3170 if test -z "$ac_file"; then :
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3173 $as_echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.
$ac_ext >&5
3176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178 as_fn_error
77 "C compiler cannot create executables
3179 See \`config.log' for more details" "$LINENO" 5; }
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3182 $as_echo "yes" >&6; }
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3185 $as_echo_n "checking for C compiler default output file name... " >&6; }
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3187 $as_echo "$ac_file" >&6; }
3188 ac_exeext
=$ac_cv_exeext
3190 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3191 ac_clean_files
=$ac_clean_files_save
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3193 $as_echo_n "checking for suffix of executables... " >&6; }
3194 if { { ac_try
="$ac_link"
3196 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200 $as_echo "$ac_try_echo"; } >&5
3201 (eval "$ac_link") 2>&5
3203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204 test $ac_status = 0; }; then :
3205 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3206 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3207 # work properly (i.e., refer to `conftest.exe'), while it won't with
3209 for ac_file
in conftest.exe conftest conftest.
*; do
3210 test -f "$ac_file" ||
continue
3212 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3213 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3221 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3222 See \`config.log' for more details" "$LINENO" 5; }
3224 rm -f conftest conftest
$ac_cv_exeext
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3226 $as_echo "$ac_cv_exeext" >&6; }
3228 rm -f conftest.
$ac_ext
3229 EXEEXT
=$ac_cv_exeext
3231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3237 FILE *f = fopen ("conftest.out", "w");
3238 return ferror (f) || fclose (f) != 0;
3244 ac_clean_files
="$ac_clean_files conftest.out"
3245 # Check that the compiler produces executables we can run. If not, either
3246 # the compiler is broken, or we cross compile.
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3248 $as_echo_n "checking whether we are cross compiling... " >&6; }
3249 if test "$cross_compiling" != yes; then
3250 { { ac_try
="$ac_link"
3252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3256 $as_echo "$ac_try_echo"; } >&5
3257 (eval "$ac_link") 2>&5
3259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260 test $ac_status = 0; }
3261 if { ac_try='./conftest$ac_cv_exeext'
3262 { { case "(($ac_try" in
3263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3264 *) ac_try_echo
=$ac_try;;
3266 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3267 $as_echo "$ac_try_echo"; } >&5
3268 (eval "$ac_try") 2>&5
3270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3271 test $ac_status = 0; }; }; then
3274 if test "$cross_compiling" = maybe
; then
3277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279 as_fn_error $?
"cannot run C compiled programs.
3280 If you meant to cross compile, use \`--host'.
3281 See \`config.log' for more details" "$LINENO" 5; }
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3286 $as_echo "$cross_compiling" >&6; }
3288 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3289 ac_clean_files
=$ac_clean_files_save
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3291 $as_echo_n "checking for suffix of object files... " >&6; }
3292 if ${ac_cv_objext+:} false
; then :
3293 $as_echo_n "(cached) " >&6
3295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3296 /* end confdefs.h. */
3306 rm -f conftest.o conftest.obj
3307 if { { ac_try
="$ac_compile"
3309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313 $as_echo "$ac_try_echo"; } >&5
3314 (eval "$ac_compile") 2>&5
3316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3317 test $ac_status = 0; }; then :
3318 for ac_file in conftest.o conftest.obj conftest.*; do
3319 test -f "$ac_file" || continue;
3321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3322 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3327 $as_echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3332 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3333 See \
`config.log' for more details" "$LINENO" 5; }
3335 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3338 $as_echo "$ac_cv_objext" >&6; }
3339 OBJEXT=$ac_cv_objext
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3342 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3343 if ${ac_cv_c_compiler_gnu+:} false; then :
3344 $as_echo_n "(cached) " >&6
3346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347 /* end confdefs.h. */
3360 if ac_fn_c_try_compile "$LINENO"; then :
3365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3366 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3370 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3371 if test $ac_compiler_gnu = yes; then
3376 ac_test_CFLAGS=${CFLAGS+set}
3377 ac_save_CFLAGS=$CFLAGS
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3379 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3380 if ${ac_cv_prog_cc_g+:} false; then :
3381 $as_echo_n "(cached) " >&6
3383 ac_save_c_werror_flag=$ac_c_werror_flag
3384 ac_c_werror_flag=yes
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3398 if ac_fn_c_try_compile "$LINENO"; then :
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403 /* end confdefs.h. */
3413 if ac_fn_c_try_compile "$LINENO"; then :
3416 ac_c_werror_flag=$ac_save_c_werror_flag
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h. */
3429 if ac_fn_c_try_compile "$LINENO"; then :
3432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3437 ac_c_werror_flag=$ac_save_c_werror_flag
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3440 $as_echo "$ac_cv_prog_cc_g" >&6; }
3441 if test "$ac_test_CFLAGS" = set; then
3442 CFLAGS=$ac_save_CFLAGS
3443 elif test $ac_cv_prog_cc_g = yes; then
3444 if test "$GCC" = yes; then
3450 if test "$GCC" = yes; then
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3457 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3458 if ${ac_cv_prog_cc_c89+:} false; then :
3459 $as_echo_n "(cached) " >&6
3461 ac_cv_prog_cc_c89=no
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3468 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3469 struct buf { int x; };
3470 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3471 static char *e (p, i)
3477 static char *f (char * (*g) (char **, int), char **p, ...)
3482 s = g (p, va_arg (v,int));
3487 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3488 function prototypes and stuff, but not '\xHH' hex character constants.
3489 These don't provoke an error unfortunately, instead are silently treated
3490 as 'x'. The following induces an error, until -std is added to get
3491 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3492 array size at least. It's necessary to write '\x00'==0 to get something
3493 that's true only with -std. */
3494 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3496 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3497 inside strings and character constants. */
3499 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3501 int test (int i, double x);
3502 struct s1 {int (*f) (int a);};
3503 struct s2 {int (*f) (double a);};
3504 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3510 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3515 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3516 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3518 CC="$ac_save_CC $ac_arg"
3519 if ac_fn_c_try_compile "$LINENO"; then :
3520 ac_cv_prog_cc_c89=$ac_arg
3522 rm -f core conftest.err conftest.$ac_objext
3523 test "x$ac_cv_prog_cc_c89" != "xno" && break
3525 rm -f conftest.$ac_ext
3530 case "x$ac_cv_prog_cc_c89" in
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3533 $as_echo "none needed" >&6; } ;;
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3536 $as_echo "unsupported" >&6; } ;;
3538 CC="$CC $ac_cv_prog_cc_c89"
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3540 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3542 if test "x$ac_cv_prog_cc_c89" != xno; then :
3547 ac_cpp='$CPP $CPPFLAGS'
3548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3553 # When $CC foo.c -o foo creates both foo and foo.exe, autoconf picks
3554 # up the foo.exe and sets exeext to .exe. That is correct for cygwin,
3555 # which has some kind of magic link from foo to foo.exe, but not for
3556 # rntcl. A better check for the cygwin case would check if the
3557 # contents of foo and foo.exe are equal; in the rntcl case, foo is a
3558 # sh script, and foo.exe is a windows executable.
3560 if test "x$CC" = xrntcl ; then
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with rntcl; clearing EXEEXT and disabling assembler" >&5
3562 $as_echo "$as_me: Compiling with rntcl; clearing EXEEXT and disabling assembler" >&6;}
3569 # Used by the testsuite only
3571 ac_cpp='$CXXCPP $CPPFLAGS'
3572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3575 if test -z "$CXX"; then
3576 if test -n "$CCC"; then
3579 if test -n "$ac_tool_prefix"; then
3580 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585 $as_echo_n "checking for $ac_word... " >&6; }
3586 if ${ac_cv_prog_CXX+:} false; then :
3587 $as_echo_n "(cached) " >&6
3589 if test -n "$CXX"; then
3590 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 test -z "$as_dir" && as_dir=.
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3599 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 if test -n "$CXX"; then
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3612 $as_echo "$CXX" >&6; }
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615 $as_echo "no" >&6; }
3619 test -n "$CXX" && break
3622 if test -z "$CXX"; then
3624 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3626 # Extract the first word of "$ac_prog", so it can be a program name with args.
3627 set dummy $ac_prog; ac_word=$2
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3631 $as_echo_n "(cached) " >&6
3633 if test -n "$ac_ct_CXX"; then
3634 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3643 ac_cv_prog_ac_ct_CXX="$ac_prog"
3644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3653 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3654 if test -n "$ac_ct_CXX"; then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3656 $as_echo "$ac_ct_CXX" >&6; }
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3663 test -n "$ac_ct_CXX" && break
3666 if test "x$ac_ct_CXX" = x; then
3669 case $cross_compiling:$ac_tool_warned in
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3673 ac_tool_warned=yes ;;
3681 # Provide some information about the compiler.
3682 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3685 for ac_option in --version -v -V -qversion; do
3686 { { ac_try="$ac_compiler $ac_option >&5"
3688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3689 *) ac_try_echo
=$ac_try;;
3691 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3692 $as_echo "$ac_try_echo"; } >&5
3693 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3695 if test -s conftest.err
; then
3697 ... rest of stderr output deleted ...
3698 10q' conftest.err
>conftest.er1
3699 cat conftest.er1
>&5
3701 rm -f conftest.er1 conftest.err
3702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3703 test $ac_status = 0; }
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3707 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3708 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3709 $as_echo_n "(cached) " >&6
3711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3725 if ac_fn_cxx_try_compile
"$LINENO"; then :
3730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3731 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3735 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3736 if test $ac_compiler_gnu = yes; then
3741 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3742 ac_save_CXXFLAGS
=$CXXFLAGS
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3744 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3745 if ${ac_cv_prog_cxx_g+:} false
; then :
3746 $as_echo_n "(cached) " >&6
3748 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3749 ac_cxx_werror_flag
=yes
3752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3763 if ac_fn_cxx_try_compile
"$LINENO"; then :
3764 ac_cv_prog_cxx_g
=yes
3767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3778 if ac_fn_cxx_try_compile
"$LINENO"; then :
3781 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h. */
3794 if ac_fn_cxx_try_compile
"$LINENO"; then :
3795 ac_cv_prog_cxx_g
=yes
3797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3799 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3802 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3805 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3806 if test "$ac_test_CXXFLAGS" = set; then
3807 CXXFLAGS
=$ac_save_CXXFLAGS
3808 elif test $ac_cv_prog_cxx_g = yes; then
3809 if test "$GXX" = yes; then
3815 if test "$GXX" = yes; then
3822 ac_cpp
='$CPP $CPPFLAGS'
3823 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3829 ac_cpp
='$CXXCPP $CPPFLAGS'
3830 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3846 if ac_fn_cxx_try_compile
"$LINENO"; then :
3851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3854 ac_cpp
='$CPP $CPPFLAGS'
3855 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3861 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3863 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3864 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3865 $as_echo_n "(cached) " >&6
3867 cat >conftest.
make <<\_ACEOF
3870 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3872 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3873 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3875 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3877 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3881 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3883 $as_echo "yes" >&6; }
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887 $as_echo "no" >&6; }
3888 SET_MAKE
="MAKE=${MAKE-make}"
3891 if test -n "$ac_tool_prefix"; then
3892 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3893 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if ${ac_cv_prog_RANLIB+:} false
; then :
3897 $as_echo_n "(cached) " >&6
3899 if test -n "$RANLIB"; then
3900 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3906 test -z "$as_dir" && as_dir
=.
3907 for ac_exec_ext
in '' $ac_executable_extensions; do
3908 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3909 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3919 RANLIB
=$ac_cv_prog_RANLIB
3920 if test -n "$RANLIB"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3922 $as_echo "$RANLIB" >&6; }
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3930 if test -z "$ac_cv_prog_RANLIB"; then
3931 ac_ct_RANLIB
=$RANLIB
3932 # Extract the first word of "ranlib", so it can be a program name with args.
3933 set dummy ranlib
; ac_word
=$2
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935 $as_echo_n "checking for $ac_word... " >&6; }
3936 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
3937 $as_echo_n "(cached) " >&6
3939 if test -n "$ac_ct_RANLIB"; then
3940 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3946 test -z "$as_dir" && as_dir
=.
3947 for ac_exec_ext
in '' $ac_executable_extensions; do
3948 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3949 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3959 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3960 if test -n "$ac_ct_RANLIB"; then
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3962 $as_echo "$ac_ct_RANLIB" >&6; }
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 $as_echo "no" >&6; }
3968 if test "x$ac_ct_RANLIB" = x
; then
3971 case $cross_compiling:$ac_tool_warned in
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3975 ac_tool_warned
=yes ;;
3977 RANLIB
=$ac_ct_RANLIB
3980 RANLIB
="$ac_cv_prog_RANLIB"
3983 if test -n "$ac_tool_prefix"; then
3984 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
3985 set dummy
${ac_tool_prefix}nm
; ac_word
=$2
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987 $as_echo_n "checking for $ac_word... " >&6; }
3988 if ${ac_cv_prog_NM+:} false
; then :
3989 $as_echo_n "(cached) " >&6
3991 if test -n "$NM"; then
3992 ac_cv_prog_NM
="$NM" # Let the user override the test.
3994 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3998 test -z "$as_dir" && as_dir
=.
3999 for ac_exec_ext
in '' $ac_executable_extensions; do
4000 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4001 ac_cv_prog_NM
="${ac_tool_prefix}nm"
4002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4012 if test -n "$NM"; then
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
4014 $as_echo "$NM" >&6; }
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 $as_echo "no" >&6; }
4022 if test -z "$ac_cv_prog_NM"; then
4024 # Extract the first word of "nm", so it can be a program name with args.
4025 set dummy nm
; ac_word
=$2
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027 $as_echo_n "checking for $ac_word... " >&6; }
4028 if ${ac_cv_prog_ac_ct_NM+:} false
; then :
4029 $as_echo_n "(cached) " >&6
4031 if test -n "$ac_ct_NM"; then
4032 ac_cv_prog_ac_ct_NM
="$ac_ct_NM" # Let the user override the test.
4034 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4038 test -z "$as_dir" && as_dir
=.
4039 for ac_exec_ext
in '' $ac_executable_extensions; do
4040 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4041 ac_cv_prog_ac_ct_NM
="nm"
4042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4051 ac_ct_NM
=$ac_cv_prog_ac_ct_NM
4052 if test -n "$ac_ct_NM"; then
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
4054 $as_echo "$ac_ct_NM" >&6; }
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057 $as_echo "no" >&6; }
4060 if test "x$ac_ct_NM" = x
; then
4063 case $cross_compiling:$ac_tool_warned in
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4067 ac_tool_warned
=yes ;;
4075 # Used only for the GNU-stack configure test.
4076 if test -n "$ac_tool_prefix"; then
4077 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4078 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4080 $as_echo_n "checking for $ac_word... " >&6; }
4081 if ${ac_cv_prog_OBJDUMP+:} false
; then :
4082 $as_echo_n "(cached) " >&6
4084 if test -n "$OBJDUMP"; then
4085 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
4087 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4091 test -z "$as_dir" && as_dir
=.
4092 for ac_exec_ext
in '' $ac_executable_extensions; do
4093 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4094 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
4095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4104 OBJDUMP
=$ac_cv_prog_OBJDUMP
4105 if test -n "$OBJDUMP"; then
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4107 $as_echo "$OBJDUMP" >&6; }
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4110 $as_echo "no" >&6; }
4115 if test -z "$ac_cv_prog_OBJDUMP"; then
4116 ac_ct_OBJDUMP
=$OBJDUMP
4117 # Extract the first word of "objdump", so it can be a program name with args.
4118 set dummy objdump
; ac_word
=$2
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4120 $as_echo_n "checking for $ac_word... " >&6; }
4121 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false
; then :
4122 $as_echo_n "(cached) " >&6
4124 if test -n "$ac_ct_OBJDUMP"; then
4125 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
4127 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4131 test -z "$as_dir" && as_dir
=.
4132 for ac_exec_ext
in '' $ac_executable_extensions; do
4133 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4134 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
4135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
4145 if test -n "$ac_ct_OBJDUMP"; then
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4147 $as_echo "$ac_ct_OBJDUMP" >&6; }
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150 $as_echo "no" >&6; }
4153 if test "x$ac_ct_OBJDUMP" = x
; then
4156 case $cross_compiling:$ac_tool_warned in
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4160 ac_tool_warned
=yes ;;
4162 OBJDUMP
=$ac_ct_OBJDUMP
4165 OBJDUMP
="$ac_cv_prog_OBJDUMP"
4168 if test -n "$ac_tool_prefix"; then
4169 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4170 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172 $as_echo_n "checking for $ac_word... " >&6; }
4173 if ${ac_cv_prog_AR+:} false
; then :
4174 $as_echo_n "(cached) " >&6
4176 if test -n "$AR"; then
4177 ac_cv_prog_AR
="$AR" # Let the user override the test.
4179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4183 test -z "$as_dir" && as_dir
=.
4184 for ac_exec_ext
in '' $ac_executable_extensions; do
4185 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4186 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4197 if test -n "$AR"; then
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4199 $as_echo "$AR" >&6; }
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202 $as_echo "no" >&6; }
4207 if test -z "$ac_cv_prog_AR"; then
4209 # Extract the first word of "ar", so it can be a program name with args.
4210 set dummy
ar; ac_word
=$2
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212 $as_echo_n "checking for $ac_word... " >&6; }
4213 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
4214 $as_echo_n "(cached) " >&6
4216 if test -n "$ac_ct_AR"; then
4217 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4219 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4223 test -z "$as_dir" && as_dir
=.
4224 for ac_exec_ext
in '' $ac_executable_extensions; do
4225 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4226 ac_cv_prog_ac_ct_AR
="ar"
4227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4236 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4237 if test -n "$ac_ct_AR"; then
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4239 $as_echo "$ac_ct_AR" >&6; }
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242 $as_echo "no" >&6; }
4245 if test "x$ac_ct_AR" = x
; then
4248 case $cross_compiling:$ac_tool_warned in
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4252 ac_tool_warned
=yes ;;
4261 if test "x$ac_cv_prog_cc_stdc" = xno
; then
4262 as_fn_error $?
"the C compiler doesn't handle ANSI-C" "$LINENO" 5 #'
4265 # Find a good install program. We prefer a C program (faster),
4266 # so one script is as good as another. But avoid the broken or
4267 # incompatible versions:
4268 # SysV /etc/install, /usr/sbin/install
4269 # SunOS /usr/etc/install
4270 # IRIX /sbin/install
4272 # AmigaOS /C/install, which installs bootblocks on floppy discs
4273 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4274 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4275 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4276 # OS/2's system install, which has a completely different semantic
4277 # ./install, which can be erroneously created by make from ./install.sh.
4278 # Reject install programs that cannot install multiple files.
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4280 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4281 if test -z "$INSTALL"; then
4282 if ${ac_cv_path_install+:} false
; then :
4283 $as_echo_n "(cached) " >&6
4285 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4289 test -z "$as_dir" && as_dir
=.
4290 # Account for people who put trailing slashes in PATH elements.
4291 case $as_dir/ in #((
4292 .
/ | .
// |
/[cC
]/* | \
4293 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4294 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4297 # OSF1 and SCO ODT 3.0 have their own names for install.
4298 # Don't use installbsd from OSF since it installs stuff as root
4300 for ac_prog
in ginstall scoinst
install; do
4301 for ac_exec_ext
in '' $ac_executable_extensions; do
4302 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
4303 if test $ac_prog = install &&
4304 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4305 # AIX install. It has an incompatible calling convention.
4307 elif test $ac_prog = install &&
4308 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4309 # program-specific install script used by HP pwplus--don't use.
4312 rm -rf conftest.one conftest.two conftest.dir
4313 echo one
> conftest.one
4314 echo two
> conftest.two
4316 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4317 test -s conftest.one
&& test -s conftest.two
&&
4318 test -s conftest.dir
/conftest.one
&&
4319 test -s conftest.dir
/conftest.two
4321 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4334 rm -rf conftest.one conftest.two conftest.dir
4337 if test "${ac_cv_path_install+set}" = set; then
4338 INSTALL
=$ac_cv_path_install
4340 # As a last resort, use the slow shell script. Don't cache a
4341 # value for INSTALL within a source directory, because that will
4342 # break other packages using the cache if that directory is
4343 # removed, or if the value is a relative name.
4344 INSTALL
=$ac_install_sh
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4348 $as_echo "$INSTALL" >&6; }
4350 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4351 # It thinks the first close brace ends the variable substitution.
4352 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4354 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4356 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4359 # According to the autoconf manual, needs install-sh from
4360 # autoconf-2.60 or automake-1.10 to avoid races.
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4362 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4363 if test -z "$MKDIR_P"; then
4364 if ${ac_cv_path_mkdir+:} false
; then :
4365 $as_echo_n "(cached) " >&6
4367 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4368 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
4371 test -z "$as_dir" && as_dir
=.
4372 for ac_prog
in mkdir gmkdir
; do
4373 for ac_exec_ext
in '' $ac_executable_extensions; do
4374 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
4375 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4376 'mkdir (GNU coreutils) '* | \
4377 'mkdir (coreutils) '* | \
4378 'mkdir (fileutils) '4.1*)
4379 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
4389 test -d .
/--version && rmdir .
/--version
4390 if test "${ac_cv_path_mkdir+set}" = set; then
4391 MKDIR_P
="$ac_cv_path_mkdir -p"
4393 # As a last resort, use the slow shell script. Don't cache a
4394 # value for MKDIR_P within a source directory, because that will
4395 # break other packages using the cache if that directory is
4396 # removed, or if the value is a relative name.
4397 MKDIR_P
="$ac_install_sh -d"
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4401 $as_echo "$MKDIR_P" >&6; }
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4405 $as_echo_n "checking whether ln -s works... " >&6; }
4407 if test "$LN_S" = "ln -s"; then
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4409 $as_echo "yes" >&6; }
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4412 $as_echo "no, using $LN_S" >&6; }
4416 # Compiler tests for the build system
4418 if test -n "$CC_FOR_BUILD"; then
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $CC_FOR_BUILD" >&5
4420 $as_echo_n "checking build system compiler $CC_FOR_BUILD... " >&6; }
4421 # remove anything that might look like compiler output to our "||" expression
4422 rm -f conftest
* a.out b.out a.exe a_out.exe
4423 cat >conftest.c
<<EOF
4430 gmp_compile
="$CC_FOR_BUILD conftest.c"
4431 cc_for_build_works
=no
4432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
4433 (eval $gmp_compile) 2>&5
4435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4436 test $ac_status = 0; }; then
4437 if (.
/a.out || .
/b.out || .
/a.exe || .
/a_out.exe || .
/conftest
) >&5 2>&1; then
4438 cc_for_build_works
=yes
4441 rm -f conftest
* a.out b.out a.exe a_out.exe
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
4443 $as_echo "$cc_for_build_works" >&6; }
4444 if test "$cc_for_build_works" = yes; then
4447 as_fn_error $?
"Specified CC_FOR_BUILD doesn't seem to work" "$LINENO" 5
4450 elif test -n "$HOST_CC"; then
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $HOST_CC" >&5
4452 $as_echo_n "checking build system compiler $HOST_CC... " >&6; }
4453 # remove anything that might look like compiler output to our "||" expression
4454 rm -f conftest
* a.out b.out a.exe a_out.exe
4455 cat >conftest.c
<<EOF
4462 gmp_compile
="$HOST_CC conftest.c"
4463 cc_for_build_works
=no
4464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
4465 (eval $gmp_compile) 2>&5
4467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4468 test $ac_status = 0; }; then
4469 if (.
/a.out || .
/b.out || .
/a.exe || .
/a_out.exe || .
/conftest
) >&5 2>&1; then
4470 cc_for_build_works
=yes
4473 rm -f conftest
* a.out b.out a.exe a_out.exe
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
4475 $as_echo "$cc_for_build_works" >&6; }
4476 if test "$cc_for_build_works" = yes; then
4477 CC_FOR_BUILD
=$HOST_CC
4479 as_fn_error $?
"Specified HOST_CC doesn't seem to work" "$LINENO" 5
4482 elif test $cross_compiling = no
; then
4485 for i
in cc gcc c89 c99
; do
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $i" >&5
4487 $as_echo_n "checking build system compiler $i... " >&6; }
4488 # remove anything that might look like compiler output to our "||" expression
4489 rm -f conftest
* a.out b.out a.exe a_out.exe
4490 cat >conftest.c
<<EOF
4497 gmp_compile
="$i conftest.c"
4498 cc_for_build_works
=no
4499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
4500 (eval $gmp_compile) 2>&5
4502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4503 test $ac_status = 0; }; then
4504 if (.
/a.out || .
/b.out || .
/a.exe || .
/a_out.exe || .
/conftest
) >&5 2>&1; then
4505 cc_for_build_works
=yes
4508 rm -f conftest
* a.out b.out a.exe a_out.exe
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
4510 $as_echo "$cc_for_build_works" >&6; }
4511 if test "$cc_for_build_works" = yes; then
4519 if test -z "$CC_FOR_BUILD"; then
4520 as_fn_error $?
"Cannot find a build system compiler" "$LINENO" 5
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
4529 $as_echo_n "checking for build system executable suffix... " >&6; }
4530 if ${gmp_cv_prog_exeext_for_build+:} false
; then :
4531 $as_echo_n "(cached) " >&6
4533 if test $cross_compiling = no
; then
4534 gmp_cv_prog_exeext_for_build
="$EXEEXT"
4536 cat >conftest.c
<<EOF
4543 for i
in .exe
,ff8
""; do
4544 gmp_compile
="$CC_FOR_BUILD conftest.c -o conftest$i"
4545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
4546 (eval $gmp_compile) 2>&5
4548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4549 test $ac_status = 0; }; then
4550 if (.
/conftest
) 2>&5; then
4551 gmp_cv_prog_exeext_for_build
=$i
4557 if test "${gmp_cv_prog_exeext_for_build+set}" != set; then
4558 as_fn_error $?
"Cannot determine executable suffix" "$LINENO" 5
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_prog_exeext_for_build" >&5
4564 $as_echo "$gmp_cv_prog_exeext_for_build" >&6; }
4565 EXEEXT_FOR_BUILD
=$gmp_cv_prog_exeext_for_build
4569 # Check whether --enable-dependency_tracking was given.
4570 if test "${enable_dependency_tracking+set}" = set; then :
4571 enableval
=$enable_dependency_tracking;
4573 enable_dependency_tracking
=yes
4579 if test x
$enable_dependency_tracking = xyes
; then
4580 if test x
$GCC = xyes
; then
4581 gcc_version
=`gcc --version | head -1`
4582 case "$gcc_version" in
4584 enable_dependency_tracking
=no
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Dependency tracking disabled, gcc-3.x is needed" >&5
4586 $as_echo "$as_me: WARNING: Dependency tracking disabled, gcc-3.x is needed" >&2;}
4589 DEP_FLAGS
='-MT $@ -MD -MP -MF $@.d'
4594 enable_dependency_tracking
=no
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Dependency tracking disabled" >&5
4596 $as_echo "$as_me: WARNING: Dependency tracking disabled" >&2;}
4600 if test x
$enable_dependency_tracking = xyes
; then
4601 DEP_INCLUDE
='include '
4610 if test x
$enable_dependency_tracking = xyes
; then
4611 # Since the makefiles use include to get the dependency files, we must
4612 # make sure that the files exist. We generate some more files than are
4615 ac_config_commands
="$ac_config_commands dummy-dep-files"
4619 # Figure out ABI. Currently, configurable only by setting CFLAGS.
4625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h. */
4628 #if defined(__x86_64__) || defined(__arch64__)
4640 if ac_fn_c_try_compile
"$LINENO"; then :
4649 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4655 #if defined(__sparcv9) || defined(__arch64__)
4667 if ac_fn_c_try_compile
"$LINENO"; then :
4676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4680 if test "x$ABI" != xstandard
; then
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler uses $ABI-bit ABI. To change, set CC." >&5
4682 $as_echo "$as_me: Compiler uses $ABI-bit ABI. To change, set CC." >&6;}
4683 if test "$libdir" = '${exec_prefix}/lib' ; then
4684 # Try setting a better default
4685 case "$host_cpu:$host_os:$ABI" in
4686 *:solaris
*:32|
*:sunos
*:32)
4687 libdir
='${exec_prefix}/lib'
4689 *:solaris
*:64|
*:sunos
*:64)
4690 libdir
='${exec_prefix}/lib/64'
4692 # Linux conventions are a mess... According to the Linux File
4693 # Hierarchy Standard, all architectures except IA64 puts 32-bit
4694 # libraries in lib, and 64-bit in lib64. Some distributions,
4695 # e.g., Fedora and Gentoo, adhere to this standard, while at
4696 # least Debian has decided to put 64-bit libraries in lib and
4697 # 32-bit libraries in lib32.
4699 # We try to figure out the convention, except if we're cross
4700 # compiling. We use lib${ABI} if /usr/lib${ABI} exists and
4701 # appears to not be a symlink to a different name.
4702 *:linux
*:32|
*:linux
*:64)
4703 if test "$cross_compiling" = yes ; then
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cross compiling for linux. Can't guess if libraries go in lib${ABI} or lib." >&5
4705 $as_echo "$as_me: WARNING: Cross compiling for linux. Can't guess if libraries go in lib${ABI} or lib." >&2;}; else
4706 # The dash builtin pwd tries to be "helpful" and remember
4707 # symlink names. Use -P option, and hope it's portable enough.
4708 test -d /usr
/lib
${ABI} \
4709 && (cd /usr
/lib
${ABI} && pwd -P |
grep >/dev
/null
"/lib${ABI}"'$') \
4710 && libdir
='${exec_prefix}/'"lib${ABI}"
4713 # On freebsd, it seems 32-bit libraries are in lib32,
4714 # and 64-bit in lib. Don't know about "kfreebsd", does
4715 # it follow the Linux fhs conventions?
4717 libdir
='${exec_prefix}/lib32'
4720 libdir
='${exec_prefix}/lib'
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know where to install $ABI-bit libraries on this system." >&5
4724 $as_echo "$as_me: WARNING: Don't know where to install $ABI-bit libraries on this system." >&2;};
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: Libraries to be installed in $libdir." >&5
4727 $as_echo "$as_me: Libraries to be installed in $libdir." >&6;}
4731 # Select assembler code
4733 if test "x$enable_assembler" = xyes
; then
4735 i?
86* | k
[5-8]* | pentium
* | athlon
)
4739 if test "$ABI" = 64 ; then
4746 if test "$ABI" = 64 ; then
4753 if test "$enable_arm_neon" = auto
; then
4754 if test "$cross_compiling" = yes ; then
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler accepts Neon instructions" >&5
4756 $as_echo_n "checking if assembler accepts Neon instructions... " >&6; }
4757 if ${nettle_cv_asm_arm_neon+:} false
; then :
4758 $as_echo_n "(cached) " >&6
4760 cat >conftest.s
<<EOF
4764 vmlal.u32 q1, d0, d1
4767 gmp_assemble
="$CC $CFLAGS $CPPFLAGS -c conftest.s >conftest.out 2>&1"
4768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
4769 (eval $gmp_assemble) 2>&5
4771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4772 test $ac_status = 0; }; then
4773 cat conftest.out
>&5
4774 nettle_cv_asm_arm_neon
=yes
4776 cat conftest.out
>&5
4777 echo "configure: failed program was:" >&5
4779 nettle_cv_asm_arm_neon
=no
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_arm_neon" >&5
4785 $as_echo "$nettle_cv_asm_arm_neon" >&6; }
4786 enable_arm_neon
="$nettle_cv_asm_arm_neon"
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if /proc/cpuinfo claims neon support" >&5
4789 $as_echo_n "checking if /proc/cpuinfo claims neon support... " >&6; }
4790 if grep '^Features.*:.* neon' /proc
/cpuinfo
>/dev
/null
; then
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_arm_neon" >&5
4796 $as_echo "$enable_arm_neon" >&6; }
4801 asm_path
="arm/v6 arm"
4803 if test "x$enable_arm_neon" = xyes
; then
4804 asm_path
="arm/neon $asm_path"
4816 # Files which replace a C source file (or otherwise don't correspond
4817 # to a new object file).
4818 asm_replace_list
="aes-encrypt-internal.asm aes-decrypt-internal.asm \
4819 arcfour-crypt.asm camellia-crypt-internal.asm \
4820 md5-compress.asm memxor.asm \
4821 salsa20-crypt.asm salsa20-core-internal.asm \
4822 serpent-encrypt.asm serpent-decrypt.asm \
4823 sha1-compress.asm sha256-compress.asm sha512-compress.asm \
4824 sha3-permute.asm umac-nh.asm umac-nh-n.asm machine.m4"
4826 # Assembler files which generate additional object files if they are used.
4827 asm_optional_list
=""
4829 if test "x$enable_public_key" = "xyes" ; then
4830 asm_optional_list
="ecc-192-modp.asm ecc-224-modp.asm ecc-256-redc.asm \
4831 ecc-384-modp.asm ecc-521-modp.asm"
4838 if test "x$enable_assembler" = xyes
; then
4839 if test -n "$asm_path"; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: Looking for assembler files in $asm_path." >&5
4841 $as_echo "$as_me: Looking for assembler files in $asm_path." >&6;}
4842 for tmp_f
in $asm_replace_list ; do
4843 for asm_dir
in $asm_path ; do
4844 if test -f "$srcdir/$asm_dir/$tmp_f"; then
4845 asm_file_list
="$asm_file_list $tmp_f"
4846 ac_config_links
="$ac_config_links $tmp_f:$asm_dir/$tmp_f"
4852 for tmp_o
in $asm_optional_list ; do
4853 for asm_dir
in $asm_path ; do
4854 if test -f "$srcdir/$asm_dir/$tmp_o"; then
4855 asm_file_list
="$asm_file_list $tmp_o"
4856 ac_config_links
="$ac_config_links $tmp_o:$asm_dir/$tmp_o"
4858 while read tmp_func
; do
4859 cat >>confdefs.h
<<_ACEOF
4860 #define HAVE_NATIVE_$tmp_func 1
4863 eval HAVE_NATIVE_
$tmp_func=yes
4865 `sed -n 's/[^ ]*PROLOGUE(_*\(nettle_\)*\([^)]*\)).*$/\2/p' < "$srcdir/$asm_dir/$tmp_o"`
4867 OPT_ASM_SOURCES
="$OPT_ASM_SOURCES $tmp_o"
4872 if test -z "$asm_file_list"; then
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No assembler files found." >&5
4875 $as_echo "$as_me: WARNING: No assembler files found." >&2;}
4884 # Besides getting correct dependencies, the explicit rules also tell
4885 # make that the .s files "ought to exist", so they are preferred over
4887 ac_config_commands
="$ac_config_commands asm.d"
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCPIC" >&5
4891 $as_echo_n "checking CCPIC... " >&6; }
4892 if ${lsh_cv_sys_ccpic+:} false
; then :
4893 $as_echo_n "(cached) " >&6
4896 if test -z "$CCPIC" ; then
4897 if test "$GCC" = yes ; then
4899 bsdi4.
*) CCPIC
="-fPIC" ;;
4901 darwin
*) CCPIC
="-fPIC" ;;
4902 # Could also use -fpic, depending on the number of symbol references
4903 solaris
*) CCPIC
="-fPIC" ;;
4904 cygwin
*) CCPIC
="" ;;
4905 mingw32
*) CCPIC
="" ;;
4910 darwin
*) CCPIC
="-fPIC" ;;
4911 irix
*) CCPIC
="-share" ;;
4912 hpux
*) CCPIC
="+z"; ;;
4913 *freebsd
*) CCPIC
="-fpic" ;;
4914 sco
*|sysv4.
*) CCPIC
="-KPIC -dy -Bdynamic" ;;
4915 solaris
*) CCPIC
="-KPIC -Bdynamic" ;;
4916 winnt
*) CCPIC
="-shared" ;;
4921 OLD_CFLAGS
="$CFLAGS"
4922 CFLAGS
="$CFLAGS $CCPIC"
4923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4924 /* end confdefs.h. */
4934 if ac_fn_c_try_compile
"$LINENO"; then :
4935 lsh_cv_sys_ccpic
="$CCPIC"
4939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4940 CFLAGS
="$OLD_CFLAGS"
4944 CCPIC
="$lsh_cv_sys_ccpic"
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCPIC" >&5
4946 $as_echo "$CCPIC" >&6; }
4949 SHLIBCFLAGS
="$CCPIC"
4952 LIBNETTLE_FILE_SRC
='$(LIBNETTLE_FORLINK)'
4953 LIBHOGWEED_FILE_SRC
='$(LIBHOGWEED_FORLINK)'
4959 # The actual DLLs, e.g. libnettle-$major-$minor.dll, are normally
4960 # installed into the bin dir (or more exactly $libdir/../bin, for
4961 # automake), while libnettle.dll.a, which is a stub file for
4962 # linking to the DLL, is installed into the lib dir.
4965 LIBNETTLE_FORLINK
='libnettle-$(LIBNETTLE_MAJOR)-$(LIBNETTLE_MINOR).dll'
4966 LIBHOGWEED_FORLINK
='libhogweed-$(LIBHOGWEED_MAJOR)-$(LIBHOGWEED_MINOR).dll'
4969 LIBNETTLE_FORLINK
='cygnettle-$(LIBNETTLE_MAJOR)-$(LIBNETTLE_MINOR).dll'
4970 LIBHOGWEED_FORLINK
='cyghogweed-$(LIBHOGWEED_MAJOR)-$(LIBHOGWEED_MINOR).dll'
4973 if test "x$cross_compiling" = xyes
; then
4983 if test "x$ABI" = x64
; then
4987 LIBNETTLE_FILE
='libnettle.dll.a'
4988 LIBNETTLE_FILE_SRC
='$(LIBNETTLE_FILE)'
4989 LIBNETTLE_LINK
='$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,--out-implib=$(LIBNETTLE_FILE) -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive'
4990 LIBNETTLE_LIBS
='-Wl,--no-whole-archive $(LIBS)'
4992 LIBHOGWEED_SONAME
=''
4993 LIBHOGWEED_FILE
='libhogweed.dll.a'
4994 LIBHOGWEED_FILE_SRC
='$(LIBHOGWEED_FILE)'
4995 LIBHOGWEED_LINK
='$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,--out-implib=$(LIBHOGWEED_FILE) -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive'
4996 LIBHOGWEED_LIBS
='-Wl,--no-whole-archive $(LIBS) libnettle.dll.a'
5000 LIBNETTLE_FORLINK
=libnettle.dylib
5001 LIBNETTLE_SONAME
='libnettle.$(LIBNETTLE_MAJOR).dylib'
5002 LIBNETTLE_FILE
='libnettle.$(LIBNETTLE_MAJOR).$(LIBNETTLE_MINOR).dylib'
5003 LIBNETTLE_LINK
='$(CC) $(CFLAGS) -dynamiclib $(LDFLAGS) -install_name ${libdir}/$(LIBNETTLE_SONAME) -compatibility_version $(LIBNETTLE_MAJOR) -current_version $(LIBNETTLE_MAJOR).$(LIBNETTLE_MINOR)'
5006 LIBHOGWEED_FORLINK
=libhogweed.dylib
5007 LIBHOGWEED_SONAME
='libhogweed.$(LIBHOGWEED_MAJOR).dylib'
5008 LIBHOGWEED_FILE
='libhogweed.$(LIBHOGWEED_MAJOR).$(LIBHOGWEED_MINOR).dylib'
5009 LIBHOGWEED_LINK
='$(CC) $(CFLAGS) -dynamiclib -L. $(LDFLAGS) -install_name ${libdir}/$(LIBHOGWEED_SONAME) -compatibility_version $(LIBHOGWEED_MAJOR) -current_version $(LIBHOGWEED_MAJOR).$(LIBHOGWEED_MINOR)'
5010 LIBHOGWEED_LIBS
='-lnettle -lgmp'
5013 # Sun's ld uses -h to set the soname, and this option is passed
5014 # through by both Sun's compiler and gcc. Might not work with GNU
5015 # ld, but it's unusual to use GNU ld on Solaris.
5016 LIBNETTLE_FORLINK
=libnettle.so
5017 LIBNETTLE_SONAME
='$(LIBNETTLE_FORLINK).$(LIBNETTLE_MAJOR)'
5018 LIBNETTLE_FILE
='$(LIBNETTLE_SONAME).$(LIBNETTLE_MINOR)'
5019 LIBNETTLE_LINK
='$(CC) $(CFLAGS) $(LDFLAGS) -G -h $(LIBNETTLE_SONAME)'
5022 LIBHOGWEED_FORLINK
=libhogweed.so
5023 LIBHOGWEED_SONAME
='$(LIBHOGWEED_FORLINK).$(LIBHOGWEED_MAJOR)'
5024 LIBHOGWEED_FILE
='$(LIBHOGWEED_SONAME).$(LIBHOGWEED_MINOR)'
5025 LIBHOGWEED_LINK
='$(CC) $(CFLAGS) $(LDFLAGS) -L. -G -h $(LIBHOGWEED_SONAME)'
5026 LIBHOGWEED_LIBS
='-lnettle -lgmp'
5029 LIBNETTLE_FORLINK
=libnettle.so
5030 LIBNETTLE_SONAME
='$(LIBNETTLE_FORLINK).$(LIBNETTLE_MAJOR)'
5031 LIBNETTLE_FILE
='$(LIBNETTLE_SONAME).$(LIBNETTLE_MINOR)'
5032 LIBNETTLE_LINK
='$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-soname=$(LIBNETTLE_SONAME)'
5035 LIBHOGWEED_FORLINK
=libhogweed.so
5036 LIBHOGWEED_SONAME
='$(LIBHOGWEED_FORLINK).$(LIBHOGWEED_MAJOR)'
5037 LIBHOGWEED_FILE
='$(LIBHOGWEED_SONAME).$(LIBHOGWEED_MINOR)'
5038 LIBHOGWEED_LINK
='$(CC) $(CFLAGS) $(LDFLAGS) -L. -shared -Wl,-soname=$(LIBHOGWEED_SONAME)'
5039 # Requested by debian, to make linking with only -lhogweed work
5040 # (does not work in general, e.g., with static linking all of
5041 # -lhogweed -lgmp -lnettle are still required). Also makes dlopen
5042 # of libhogweed.so work, without having to use RTLD_GLOBAL.
5043 # Depends on -L. above, to locate nettle.so.
5044 LIBHOGWEED_LIBS
='-lnettle -lgmp'
5048 if test "x$enable_pic" = xyes
; then
5049 CCPIC_MAYBE
="$CCPIC"
5055 ASM_SYMBOL_PREFIX
=''
5057 # GNU as default is to use @
5058 ASM_TYPE_FUNCTION
='@function'
5059 ASM_TYPE_PROGBITS
='@progbits'
5060 ASM_MARK_NOEXEC_STACK
=''
5063 if test x
$enable_assembler = xyes
; then
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if globals are prefixed by underscore" >&5
5065 $as_echo_n "checking if globals are prefixed by underscore... " >&6; }
5066 if ${nettle_cv_asm_underscore+:} false
; then :
5067 $as_echo_n "(cached) " >&6
5069 # Default is no underscore
5070 nettle_cv_asm_underscore
=no
5071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5072 /* end confdefs.h. */
5073 int a_global_symbol;
5075 if ac_fn_c_try_compile
"$LINENO"; then :
5076 $NM conftest.
$OBJEXT >conftest.out
5077 if grep _a_global_symbol conftest.out
>/dev
/null
; then
5078 nettle_cv_asm_underscore
=yes
5079 elif grep a_global_symbol conftest.out
>/dev
/null
; then
5080 nettle_cv_asm_underscore
=no
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: nm doesn't list a_global_symbol at all" >&5
5083 $as_echo "$as_me: WARNING: nm doesn't list a_global_symbol at all" >&2;}
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: test program with a single global could not be compiled!?" >&5
5087 $as_echo "$as_me: WARNING: test program with a single global could not be compiled!?" >&2;}
5089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_underscore" >&5
5092 $as_echo "$nettle_cv_asm_underscore" >&6; }
5093 if test x
$nettle_cv_asm_underscore = xyes
; then
5094 ASM_SYMBOL_PREFIX
='_'
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF-style .type,%function pseudo-ops" >&5
5098 $as_echo_n "checking for ELF-style .type,%function pseudo-ops... " >&6; }
5099 if ${nettle_cv_asm_type_percent_function+:} false
; then :
5100 $as_echo_n "(cached) " >&6
5102 cat >conftest.s
<<EOF
5110 .size foo, .Lend - foo
5113 gmp_assemble
="$CC $CFLAGS $CPPFLAGS -c conftest.s >conftest.out 2>&1"
5114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
5115 (eval $gmp_assemble) 2>&5
5117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5118 test $ac_status = 0; }; then
5119 cat conftest.out
>&5
5120 nettle_cv_asm_type_percent_function
=yes
5122 cat conftest.out
>&5
5123 echo "configure: failed program was:" >&5
5125 nettle_cv_asm_type_percent_function
=no
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_type_percent_function" >&5
5131 $as_echo "$nettle_cv_asm_type_percent_function" >&6; }
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF-style .type,#function pseudo-ops" >&5
5134 $as_echo_n "checking for ELF-style .type,#function pseudo-ops... " >&6; }
5135 if ${nettle_cv_asm_type_hash_function+:} false
; then :
5136 $as_echo_n "(cached) " >&6
5138 cat >conftest.s
<<EOF
5146 .size foo, .Lend - foo
5149 gmp_assemble
="$CC $CFLAGS $CPPFLAGS -c conftest.s >conftest.out 2>&1"
5150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
5151 (eval $gmp_assemble) 2>&5
5153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5154 test $ac_status = 0; }; then
5155 cat conftest.out
>&5
5156 nettle_cv_asm_type_hash_function
=yes
5158 cat conftest.out
>&5
5159 echo "configure: failed program was:" >&5
5161 nettle_cv_asm_type_hash_function
=no
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_type_hash_function" >&5
5167 $as_echo "$nettle_cv_asm_type_hash_function" >&6; }
5169 if test x
$nettle_cv_asm_type_percent_function = xyes
; then
5171 ASM_TYPE_FUNCTION
='%function'
5172 ASM_TYPE_PROGBITS
='%progbits'
5174 if test x
$nettle_cv_asm_type_hash_function = xyes
; then
5176 ASM_TYPE_FUNCTION
='#function'
5177 ASM_TYPE_PROGBITS
='#progbits'
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use a .note.GNU-stack section" >&5
5182 $as_echo_n "checking if we should use a .note.GNU-stack section... " >&6; }
5183 if ${nettle_cv_asm_gnu_stack+:} false
; then :
5184 $as_echo_n "(cached) " >&6
5187 nettle_cv_asm_gnu_stack
=no
5189 cat >conftest.c
<<EOF
5190 int foo() { return 0; }
5192 nettle_compile
="$CC $CFLAGS $CPPFLAGS -c conftest.c >conftest.out 2>&1"
5193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$nettle_compile\""; } >&5
5194 (eval $nettle_compile) 2>&5
5196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5197 test $ac_status = 0; }; then
5198 cat conftest.out
>&5
5199 $OBJDUMP -x conftest.o |
grep '\.note\.GNU-stack' > /dev
/null \
5200 && nettle_cv_asm_gnu_stack
=yes
5202 cat conftest.out
>&5
5203 echo "configure: failed program was:" >&5
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_gnu_stack" >&5
5209 $as_echo "$nettle_cv_asm_gnu_stack" >&6; }
5210 if test x
$nettle_cv_asm_gnu_stack = xyes
; then
5211 ASM_MARK_NOEXEC_STACK
='.section .note.GNU-stack,"",TYPE_PROGBITS'
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .align assembly directive is logarithmic" >&5
5215 $as_echo_n "checking if .align assembly directive is logarithmic... " >&6; }
5216 if ${nettle_cv_asm_align_log+:} false
; then :
5217 $as_echo_n "(cached) " >&6
5219 cat >conftest.s
<<EOF
5224 gmp_assemble
="$CC $CFLAGS $CPPFLAGS -c conftest.s >conftest.out 2>&1"
5225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
5226 (eval $gmp_assemble) 2>&5
5228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5229 test $ac_status = 0; }; then
5230 cat conftest.out
>&5
5231 nettle_cv_asm_align_log
=yes
5233 cat conftest.out
>&5
5234 echo "configure: failed program was:" >&5
5236 nettle_cv_asm_align_log
=no
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_align_log" >&5
5242 $as_echo "$nettle_cv_asm_align_log" >&6; }
5243 ASM_ALIGN_LOG
="$nettle_cv_asm_align_log"
5275 # Extract the first word of "m4", so it can be a program name with args.
5276 set dummy
m4; ac_word
=$2
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5278 $as_echo_n "checking for $ac_word... " >&6; }
5279 if ${ac_cv_path_M4+:} false
; then :
5280 $as_echo_n "(cached) " >&6
5284 ac_cv_path_M4
="$M4" # Let the user override the test with a path.
5287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5291 test -z "$as_dir" && as_dir
=.
5292 for ac_exec_ext
in '' $ac_executable_extensions; do
5293 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5294 ac_cv_path_M4
="$as_dir/$ac_word$ac_exec_ext"
5295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 test -z "$ac_cv_path_M4" && ac_cv_path_M4
="m4"
5307 if test -n "$M4"; then
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
5309 $as_echo "$M4" >&6; }
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312 $as_echo "no" >&6; }
5317 if test "x$enable_gcov" = "xyes"; then
5318 CFLAGS
="$CFLAGS -ftest-coverage -fprofile-arcs"
5321 # Checks for typedefs, structures, and compiler characteristics.
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5323 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5324 if ${ac_cv_c_const+:} false
; then :
5325 $as_echo_n "(cached) " >&6
5327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5335 /* Ultrix mips cc rejects this sort of thing. */
5336 typedef int charset[2];
5337 const charset cs = { 0, 0 };
5338 /* SunOS 4.1.1 cc rejects this. */
5339 char const *const *pcpcc;
5341 /* NEC SVR4.0.2 mips cc rejects this. */
5342 struct point {int x, y;};
5343 static struct point const zero = {0,0};
5344 /* AIX XL C 1.02.0.0 rejects this.
5345 It does not let you subtract one const X* pointer from another in
5346 an arm of an if-expression whose if-part is not a constant
5348 const char *g = "string";
5349 pcpcc = &g + (g ? g-g : 0);
5350 /* HPUX 7.0 cc rejects these. */
5352 ppc = (char**) pcpcc;
5353 pcpcc = (char const *const *) ppc;
5354 { /* SCO 3.2v4 cc rejects this sort of thing. */
5357 char const *s = 0 ? (char *) 0 : (char const *) 0;
5362 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5364 const int *foo = &x[0];
5367 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5368 typedef const int *iptr;
5372 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5373 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5374 struct s { int j; const int *ap[3]; } bx;
5375 struct s *b = &bx; b->j = 5;
5377 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5381 return !cs[0] && !zero.x;
5388 if ac_fn_c_try_compile
"$LINENO"; then :
5393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5396 $as_echo "$ac_cv_c_const" >&6; }
5397 if test $ac_cv_c_const = no
; then
5399 $as_echo "#define const /**/" >>confdefs.h
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5404 $as_echo_n "checking for inline... " >&6; }
5405 if ${ac_cv_c_inline+:} false
; then :
5406 $as_echo_n "(cached) " >&6
5409 for ac_kw
in inline __inline__ __inline
; do
5410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h. */
5414 static $ac_kw foo_t static_foo () {return 0; }
5415 $ac_kw foo_t foo () {return 0; }
5419 if ac_fn_c_try_compile
"$LINENO"; then :
5420 ac_cv_c_inline
=$ac_kw
5422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5423 test "$ac_cv_c_inline" != no
&& break
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5428 $as_echo "$ac_cv_c_inline" >&6; }
5430 case $ac_cv_c_inline in
5433 case $ac_cv_c_inline in
5435 *) ac_val
=$ac_cv_c_inline;;
5437 cat >>confdefs.h
<<_ACEOF
5439 #define inline $ac_val
5446 ac_cpp
='$CPP $CPPFLAGS'
5447 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5448 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5449 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5451 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5452 # On Suns, sometimes $CPP names a directory.
5453 if test -n "$CPP" && test -d "$CPP"; then
5456 if test -z "$CPP"; then
5457 if ${ac_cv_prog_CPP+:} false
; then :
5458 $as_echo_n "(cached) " >&6
5460 # Double quotes because CPP needs to be expanded
5461 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5464 for ac_c_preproc_warn_flag
in '' yes
5466 # Use a header file that comes with gcc, so configuring glibc
5467 # with a fresh cross-compiler works.
5468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5469 # <limits.h> exists even on freestanding compilers.
5470 # On the NeXT, cc -E runs the code through the compiler's parser,
5471 # not just through cpp. "Syntax error" is here to catch this case.
5472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5473 /* end confdefs.h. */
5475 # include <limits.h>
5477 # include <assert.h>
5481 if ac_fn_c_try_cpp
"$LINENO"; then :
5484 # Broken: fails on valid input.
5487 rm -f conftest.err conftest.i conftest.
$ac_ext
5489 # OK, works on sane cases. Now check whether nonexistent headers
5490 # can be detected and how.
5491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h. */
5493 #include <ac_nonexistent.h>
5495 if ac_fn_c_try_cpp
"$LINENO"; then :
5496 # Broken: success on invalid input.
5499 # Passes both tests.
5503 rm -f conftest.err conftest.i conftest.
$ac_ext
5506 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5507 rm -f conftest.i conftest.err conftest.
$ac_ext
5508 if $ac_preproc_ok; then :
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5521 $as_echo "$CPP" >&6; }
5523 for ac_c_preproc_warn_flag
in '' yes
5525 # Use a header file that comes with gcc, so configuring glibc
5526 # with a fresh cross-compiler works.
5527 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5528 # <limits.h> exists even on freestanding compilers.
5529 # On the NeXT, cc -E runs the code through the compiler's parser,
5530 # not just through cpp. "Syntax error" is here to catch this case.
5531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5534 # include <limits.h>
5536 # include <assert.h>
5540 if ac_fn_c_try_cpp
"$LINENO"; then :
5543 # Broken: fails on valid input.
5546 rm -f conftest.err conftest.i conftest.
$ac_ext
5548 # OK, works on sane cases. Now check whether nonexistent headers
5549 # can be detected and how.
5550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h. */
5552 #include <ac_nonexistent.h>
5554 if ac_fn_c_try_cpp
"$LINENO"; then :
5555 # Broken: success on invalid input.
5558 # Passes both tests.
5562 rm -f conftest.err conftest.i conftest.
$ac_ext
5565 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5566 rm -f conftest.i conftest.err conftest.
$ac_ext
5567 if $ac_preproc_ok; then :
5570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5572 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5573 See \`config.log' for more details" "$LINENO" 5; }
5577 ac_cpp
='$CPP $CPPFLAGS'
5578 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5579 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5580 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5584 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5585 if ${ac_cv_path_GREP+:} false
; then :
5586 $as_echo_n "(cached) " >&6
5588 if test -z "$GREP"; then
5589 ac_path_GREP_found
=false
5590 # Loop through the user's path and test for each of PROGNAME-LIST
5591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5592 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5595 test -z "$as_dir" && as_dir
=.
5596 for ac_prog
in grep ggrep
; do
5597 for ac_exec_ext
in '' $ac_executable_extensions; do
5598 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5599 as_fn_executable_p
"$ac_path_GREP" ||
continue
5600 # Check for GNU ac_path_GREP and select it if it is found.
5601 # Check for GNU $ac_path_GREP
5602 case `"$ac_path_GREP" --version 2>&1` in
5604 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5607 $as_echo_n 0123456789 >"conftest.in"
5610 cat "conftest.in" "conftest.in" >"conftest.tmp"
5611 mv "conftest.tmp" "conftest.in"
5612 cp "conftest.in" "conftest.nl"
5613 $as_echo 'GREP' >> "conftest.nl"
5614 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5615 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5616 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5617 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5618 # Best one so far, save it but keep looking for a better one
5619 ac_cv_path_GREP
="$ac_path_GREP"
5620 ac_path_GREP_max
=$ac_count
5622 # 10*(2^10) chars as input seems more than enough
5623 test $ac_count -gt 10 && break
5625 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5628 $ac_path_GREP_found && break 3
5633 if test -z "$ac_cv_path_GREP"; then
5634 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5637 ac_cv_path_GREP
=$GREP
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5642 $as_echo "$ac_cv_path_GREP" >&6; }
5643 GREP
="$ac_cv_path_GREP"
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5647 $as_echo_n "checking for egrep... " >&6; }
5648 if ${ac_cv_path_EGREP+:} false
; then :
5649 $as_echo_n "(cached) " >&6
5651 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5652 then ac_cv_path_EGREP
="$GREP -E"
5654 if test -z "$EGREP"; then
5655 ac_path_EGREP_found
=false
5656 # Loop through the user's path and test for each of PROGNAME-LIST
5657 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5658 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5661 test -z "$as_dir" && as_dir
=.
5662 for ac_prog
in egrep; do
5663 for ac_exec_ext
in '' $ac_executable_extensions; do
5664 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5665 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5666 # Check for GNU ac_path_EGREP and select it if it is found.
5667 # Check for GNU $ac_path_EGREP
5668 case `"$ac_path_EGREP" --version 2>&1` in
5670 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5673 $as_echo_n 0123456789 >"conftest.in"
5676 cat "conftest.in" "conftest.in" >"conftest.tmp"
5677 mv "conftest.tmp" "conftest.in"
5678 cp "conftest.in" "conftest.nl"
5679 $as_echo 'EGREP' >> "conftest.nl"
5680 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5681 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5682 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5683 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5684 # Best one so far, save it but keep looking for a better one
5685 ac_cv_path_EGREP
="$ac_path_EGREP"
5686 ac_path_EGREP_max
=$ac_count
5688 # 10*(2^10) chars as input seems more than enough
5689 test $ac_count -gt 10 && break
5691 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5694 $ac_path_EGREP_found && break 3
5699 if test -z "$ac_cv_path_EGREP"; then
5700 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5703 ac_cv_path_EGREP
=$EGREP
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5709 $as_echo "$ac_cv_path_EGREP" >&6; }
5710 EGREP
="$ac_cv_path_EGREP"
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5714 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5715 if ${ac_cv_type_uid_t+:} false
; then :
5716 $as_echo_n "(cached) " >&6
5718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5719 /* end confdefs.h. */
5720 #include <sys/types.h>
5723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5724 $EGREP "uid_t" >/dev
/null
2>&1; then :
5725 ac_cv_type_uid_t
=yes
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5733 $as_echo "$ac_cv_type_uid_t" >&6; }
5734 if test $ac_cv_type_uid_t = no
; then
5736 $as_echo "#define uid_t int" >>confdefs.h
5739 $as_echo "#define gid_t int" >>confdefs.h
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5744 $as_echo_n "checking for ANSI C header files... " >&6; }
5745 if ${ac_cv_header_stdc+:} false
; then :
5746 $as_echo_n "(cached) " >&6
5748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5763 if ac_fn_c_try_compile
"$LINENO"; then :
5764 ac_cv_header_stdc
=yes
5766 ac_cv_header_stdc
=no
5768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5770 if test $ac_cv_header_stdc = yes; then
5771 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h. */
5777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5778 $EGREP "memchr" >/dev
/null
2>&1; then :
5781 ac_cv_header_stdc
=no
5787 if test $ac_cv_header_stdc = yes; then
5788 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5795 $EGREP "free" >/dev
/null
2>&1; then :
5798 ac_cv_header_stdc
=no
5804 if test $ac_cv_header_stdc = yes; then
5805 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5806 if test "$cross_compiling" = yes; then :
5809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5810 /* end confdefs.h. */
5813 #if ((' ' & 0x0FF) == 0x020)
5814 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5815 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5817 # define ISLOWER(c) \
5818 (('a' <= (c) && (c) <= 'i') \
5819 || ('j' <= (c) && (c) <= 'r') \
5820 || ('s' <= (c) && (c) <= 'z'))
5821 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5824 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5829 for (i = 0; i < 256; i++)
5830 if (XOR (islower (i), ISLOWER (i))
5831 || toupper (i) != TOUPPER (i))
5836 if ac_fn_c_try_run
"$LINENO"; then :
5839 ac_cv_header_stdc
=no
5841 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5842 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5848 $as_echo "$ac_cv_header_stdc" >&6; }
5849 if test $ac_cv_header_stdc = yes; then
5851 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5855 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5856 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5857 inttypes.h stdint.h unistd.h
5859 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5860 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5862 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5863 cat >>confdefs.h
<<_ACEOF
5864 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5872 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5873 if test "x$ac_cv_type_size_t" = xyes
; then :
5877 cat >>confdefs.h
<<_ACEOF
5878 #define size_t unsigned int
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5884 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5885 if ${ac_cv_header_time+:} false
; then :
5886 $as_echo_n "(cached) " >&6
5888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5889 /* end confdefs.h. */
5890 #include <sys/types.h>
5891 #include <sys/time.h>
5897 if ((struct tm *) 0)
5903 if ac_fn_c_try_compile
"$LINENO"; then :
5904 ac_cv_header_time
=yes
5906 ac_cv_header_time
=no
5908 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5911 $as_echo "$ac_cv_header_time" >&6; }
5912 if test $ac_cv_header_time = yes; then
5914 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5918 # The cast to long int works around a bug in the HP C Compiler
5919 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5920 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5921 # This bug is HP SR number 8606223364.
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5923 $as_echo_n "checking size of long... " >&6; }
5924 if ${ac_cv_sizeof_long+:} false
; then :
5925 $as_echo_n "(cached) " >&6
5927 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5930 if test "$ac_cv_type_long" = yes; then
5931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5933 as_fn_error
77 "cannot compute sizeof (long)
5934 See \`config.log' for more details" "$LINENO" 5; }
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5942 $as_echo "$ac_cv_sizeof_long" >&6; }
5946 cat >>confdefs.h
<<_ACEOF
5947 #define SIZEOF_LONG $ac_cv_sizeof_long
5951 # The cast to long int works around a bug in the HP C Compiler,
5952 # see AC_CHECK_SIZEOF for more information.
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of uint64_t" >&5
5954 $as_echo_n "checking alignment of uint64_t... " >&6; }
5955 if ${ac_cv_alignof_uint64_t+:} false
; then :
5956 $as_echo_n "(cached) " >&6
5958 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_uint64_t" "$ac_includes_default
5960 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
5962 typedef struct { char x; uint64_t y; } ac__type_alignof_;"; then :
5965 if test "$ac_cv_type_uint64_t" = yes; then
5966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5968 as_fn_error
77 "cannot compute alignment of uint64_t
5969 See \`config.log' for more details" "$LINENO" 5; }
5971 ac_cv_alignof_uint64_t
=0
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_uint64_t" >&5
5977 $as_echo "$ac_cv_alignof_uint64_t" >&6; }
5981 cat >>confdefs.h
<<_ACEOF
5982 #define ALIGNOF_UINT64_T $ac_cv_alignof_uint64_t
5987 ALIGNOF_UINT64_T
="$ac_cv_alignof_uint64_t"
5990 for ac_header
in openssl
/blowfish.h openssl
/des.h openssl
/cast.h openssl
/aes.h
5992 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5993 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5994 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5995 cat >>confdefs.h
<<_ACEOF
5996 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6007 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6008 # for constant arguments. Useless!
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6010 $as_echo_n "checking for working alloca.h... " >&6; }
6011 if ${ac_cv_working_alloca_h+:} false
; then :
6012 $as_echo_n "(cached) " >&6
6014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6015 /* end confdefs.h. */
6020 char *p = (char *) alloca (2 * sizeof (int));
6026 if ac_fn_c_try_link
"$LINENO"; then :
6027 ac_cv_working_alloca_h
=yes
6029 ac_cv_working_alloca_h
=no
6031 rm -f core conftest.err conftest.
$ac_objext \
6032 conftest
$ac_exeext conftest.
$ac_ext
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6035 $as_echo "$ac_cv_working_alloca_h" >&6; }
6036 if test $ac_cv_working_alloca_h = yes; then
6038 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6043 $as_echo_n "checking for alloca... " >&6; }
6044 if ${ac_cv_func_alloca_works+:} false
; then :
6045 $as_echo_n "(cached) " >&6
6047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6048 /* end confdefs.h. */
6050 # define alloca __builtin_alloca
6053 # include <malloc.h>
6054 # define alloca _alloca
6056 # ifdef HAVE_ALLOCA_H
6057 # include <alloca.h>
6062 # ifndef alloca /* predefined by HP cc +Olibcalls */
6063 void *alloca (size_t);
6073 char *p = (char *) alloca (1);
6079 if ac_fn_c_try_link
"$LINENO"; then :
6080 ac_cv_func_alloca_works
=yes
6082 ac_cv_func_alloca_works
=no
6084 rm -f core conftest.err conftest.
$ac_objext \
6085 conftest
$ac_exeext conftest.
$ac_ext
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6088 $as_echo "$ac_cv_func_alloca_works" >&6; }
6090 if test $ac_cv_func_alloca_works = yes; then
6092 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6095 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6096 # that cause trouble. Some versions do not even contain alloca or
6097 # contain a buggy version. If you still want to use their alloca,
6098 # use ar to extract alloca.o from them instead of compiling alloca.c.
6100 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6102 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6106 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6107 if ${ac_cv_os_cray+:} false
; then :
6108 $as_echo_n "(cached) " >&6
6110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h. */
6112 #if defined CRAY && ! defined CRAY2
6119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6120 $EGREP "webecray" >/dev
/null
2>&1; then :
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6129 $as_echo "$ac_cv_os_cray" >&6; }
6130 if test $ac_cv_os_cray = yes; then
6131 for ac_func
in _getb67 GETB67 getb67
; do
6132 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6133 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6134 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6136 cat >>confdefs.h
<<_ACEOF
6137 #define CRAY_STACKSEG_END $ac_func
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6147 $as_echo_n "checking stack direction for C alloca... " >&6; }
6148 if ${ac_cv_c_stack_direction+:} false
; then :
6149 $as_echo_n "(cached) " >&6
6151 if test "$cross_compiling" = yes; then :
6152 ac_cv_c_stack_direction
=0
6154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6156 $ac_includes_default
6158 find_stack_direction (int *addr, int depth)
6163 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6164 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6169 main (int argc, char **argv)
6171 return find_stack_direction (0, argc + !argv + 20) < 0;
6174 if ac_fn_c_try_run
"$LINENO"; then :
6175 ac_cv_c_stack_direction
=1
6177 ac_cv_c_stack_direction
=-1
6179 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6180 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6185 $as_echo "$ac_cv_c_stack_direction" >&6; }
6186 cat >>confdefs.h
<<_ACEOF
6187 #define STACK_DIRECTION $ac_cv_c_stack_direction
6193 for ac_header
in malloc.h
6195 ac_fn_c_check_header_mongrel
"$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
6196 if test "x$ac_cv_header_malloc_h" = xyes
; then :
6197 cat >>confdefs.h
<<_ACEOF
6198 #define HAVE_MALLOC_H 1
6206 for ac_func
in strerror
6208 ac_fn_c_check_func
"$LINENO" "strerror" "ac_cv_func_strerror"
6209 if test "x$ac_cv_func_strerror" = xyes
; then :
6210 cat >>confdefs.h
<<_ACEOF
6211 #define HAVE_STRERROR 1
6219 # Needed by the supplied memcmp.c
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6221 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6222 if ${ac_cv_c_bigendian+:} false
; then :
6223 $as_echo_n "(cached) " >&6
6225 ac_cv_c_bigendian
=unknown
6226 # See if we're dealing with a universal compiler.
6227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6228 /* end confdefs.h. */
6229 #ifndef __APPLE_CC__
6230 not a universal capable compiler
6235 if ac_fn_c_try_compile
"$LINENO"; then :
6237 # Check for potential -arch flags. It is not universal unless
6238 # there are at least two -arch flags with different values.
6241 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6242 if test -n "$ac_prev"; then
6244 i?
86 | x86_64 | ppc | ppc64
)
6245 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
6248 ac_cv_c_bigendian
=universal
6254 elif test "x$ac_word" = "x-arch"; then
6259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6260 if test $ac_cv_c_bigendian = unknown
; then
6261 # See if sys/param.h defines the BYTE_ORDER macro.
6262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6264 #include <sys/types.h>
6265 #include <sys/param.h>
6270 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6271 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6280 if ac_fn_c_try_compile
"$LINENO"; then :
6281 # It does; now see whether it defined to BIG_ENDIAN or not.
6282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6283 /* end confdefs.h. */
6284 #include <sys/types.h>
6285 #include <sys/param.h>
6290 #if BYTE_ORDER != BIG_ENDIAN
6298 if ac_fn_c_try_compile
"$LINENO"; then :
6299 ac_cv_c_bigendian
=yes
6301 ac_cv_c_bigendian
=no
6303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6307 if test $ac_cv_c_bigendian = unknown
; then
6308 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6310 /* end confdefs.h. */
6316 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6324 if ac_fn_c_try_compile
"$LINENO"; then :
6325 # It does; now see whether it defined to _BIG_ENDIAN or not.
6326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6327 /* end confdefs.h. */
6341 if ac_fn_c_try_compile
"$LINENO"; then :
6342 ac_cv_c_bigendian
=yes
6344 ac_cv_c_bigendian
=no
6346 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6350 if test $ac_cv_c_bigendian = unknown
; then
6351 # Compile a test program.
6352 if test "$cross_compiling" = yes; then :
6353 # Try to guess by grepping values from an object file.
6354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6356 short int ascii_mm[] =
6357 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6358 short int ascii_ii[] =
6359 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6360 int use_ascii (int i) {
6361 return ascii_mm[i] + ascii_ii[i];
6363 short int ebcdic_ii[] =
6364 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6365 short int ebcdic_mm[] =
6366 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6367 int use_ebcdic (int i) {
6368 return ebcdic_mm[i] + ebcdic_ii[i];
6375 return use_ascii (foo) == use_ebcdic (foo);
6380 if ac_fn_c_try_compile
"$LINENO"; then :
6381 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
6382 ac_cv_c_bigendian
=yes
6384 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
6385 if test "$ac_cv_c_bigendian" = unknown
; then
6386 ac_cv_c_bigendian
=no
6388 # finding both strings is unlikely to happen, but who knows?
6389 ac_cv_c_bigendian
=unknown
6393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6396 /* end confdefs.h. */
6397 $ac_includes_default
6402 /* Are we little or big endian? From Harbison&Steele. */
6406 char c[sizeof (long int)];
6409 return u.c[sizeof (long int) - 1] == 1;
6415 if ac_fn_c_try_run
"$LINENO"; then :
6416 ac_cv_c_bigendian
=no
6418 ac_cv_c_bigendian
=yes
6420 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6421 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6427 $as_echo "$ac_cv_c_bigendian" >&6; }
6428 case $ac_cv_c_bigendian in #(
6430 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6436 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6440 as_fn_error $?
"unknown endianness
6441 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6444 ac_fn_c_check_func
"$LINENO" "memxor" "ac_cv_func_memxor"
6445 if test "x$ac_cv_func_memxor" = xyes
; then :
6446 $as_echo "#define HAVE_MEMXOR 1" >>confdefs.h
6449 case " $LIBOBJS " in
6450 *" memxor.$ac_objext "* ) ;;
6451 *) LIBOBJS
="$LIBOBJS memxor.$ac_objext"
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
6460 $as_echo_n "checking for __attribute__... " >&6; }
6461 if ${lsh_cv_c_attribute+:} false
; then :
6462 $as_echo_n "(cached) " >&6
6464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6465 /* end confdefs.h. */
6469 static void foo(void) __attribute__ ((noreturn));
6471 static void __attribute__ ((noreturn))
6485 if ac_fn_c_try_compile
"$LINENO"; then :
6486 lsh_cv_c_attribute
=yes
6488 lsh_cv_c_attribute
=no
6490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lsh_cv_c_attribute" >&5
6493 $as_echo "$lsh_cv_c_attribute" >&6; }
6496 if test "x$lsh_cv_c_attribute" = "xyes"; then
6497 $as_echo "#define HAVE_GCC_ATTRIBUTE 1" >>confdefs.h
6503 # According to Simon Josefsson, looking for uint32_t and friends in
6504 # sys/types.h is needed on some systems, in particular cygwin.
6505 # ------ AX CREATE STDINT H -------------------------------------
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
6507 $as_echo_n "checking for stdint types... " >&6; }
6508 ac_stdint_h
=`echo nettle-stdint.h`
6509 # try to shortcircuit - if the default include path of the compiler
6510 # can find a "stdint.h" header then we assume that all compilers can.
6511 if ${ac_cv_header_stdint_t+:} false
; then :
6512 $as_echo_n "(cached) " >&6
6515 old_CXXFLAGS
="$CXXFLAGS" ; CXXFLAGS
=""
6516 old_CPPFLAGS
="$CPPFLAGS" ; CPPFLAGS
=""
6517 old_CFLAGS
="$CFLAGS" ; CFLAGS
=""
6518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h. */
6524 int_least32_t v = 0;
6529 if ac_fn_c_try_compile
"$LINENO"; then :
6530 ac_cv_stdint_result
="(assuming C99 compatible system)"
6531 ac_cv_header_stdint_t
="stdint.h";
6533 ac_cv_header_stdint_t
=""
6535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6536 CXXFLAGS
="$old_CXXFLAGS"
6537 CPPFLAGS
="$old_CPPFLAGS"
6538 CFLAGS
="$old_CFLAGS"
6542 v
="... $ac_cv_header_stdint_h"
6543 if test "$ac_stdint_h" = "stdint.h" ; then
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
6545 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
6546 elif test "$ac_stdint_h" = "inttypes.h" ; then
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
6548 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
6549 elif test "_$ac_cv_header_stdint_t" = "_" ; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
6551 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
6553 ac_cv_header_stdint
="$ac_cv_header_stdint_t"
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
6555 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
6558 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
6561 inttype_headers
=`echo sys/types.h | sed -e 's/,/ /g'`
6563 ac_cv_stdint_result
="(no helpful system typedefs seen)"
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
6565 $as_echo_n "checking for stdint uintptr_t... " >&6; }
6566 if ${ac_cv_header_stdint_x+:} false
; then :
6567 $as_echo_n "(cached) " >&6
6570 ac_cv_header_stdint_x
="" # the 1997 typedefs (inttypes.h)
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
6572 $as_echo "(..)" >&6; }
6573 for i
in stdint.h inttypes.h sys
/inttypes.h
$inttype_headers ; do
6574 unset ac_cv_type_uintptr_t
6575 unset ac_cv_type_uint64_t
6576 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
6578 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6579 ac_cv_header_stdint_x
=$i
6584 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
6586 if test "x$ac_cv_type_uint64_t" = xyes
; then :
6592 ac_cv_stdint_result
="(seen uintptr_t$and64 in $i)"
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
6596 $as_echo_n "checking for stdint uintptr_t... " >&6; }
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
6600 $as_echo "$ac_cv_header_stdint_x" >&6; }
6602 if test "_$ac_cv_header_stdint_x" = "_" ; then
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
6604 $as_echo_n "checking for stdint uint32_t... " >&6; }
6605 if ${ac_cv_header_stdint_o+:} false
; then :
6606 $as_echo_n "(cached) " >&6
6609 ac_cv_header_stdint_o
="" # the 1995 typedefs (sys/inttypes.h)
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
6611 $as_echo "(..)" >&6; }
6612 for i
in inttypes.h sys
/inttypes.h stdint.h
$inttype_headers ; do
6613 unset ac_cv_type_uint32_t
6614 unset ac_cv_type_uint64_t
6615 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
6617 if test "x$ac_cv_type_uint32_t" = xyes
; then :
6618 ac_cv_header_stdint_o
=$i
6623 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
6625 if test "x$ac_cv_type_uint64_t" = xyes
; then :
6631 ac_cv_stdint_result
="(seen uint32_t$and64 in $i)"
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
6635 $as_echo_n "checking for stdint uint32_t... " >&6; }
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
6639 $as_echo "$ac_cv_header_stdint_o" >&6; }
6642 if test "_$ac_cv_header_stdint_x" = "_" ; then
6643 if test "_$ac_cv_header_stdint_o" = "_" ; then
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
6645 $as_echo_n "checking for stdint u_int32_t... " >&6; }
6646 if ${ac_cv_header_stdint_u+:} false
; then :
6647 $as_echo_n "(cached) " >&6
6650 ac_cv_header_stdint_u
="" # the BSD typedefs (sys/types.h)
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
6652 $as_echo "(..)" >&6; }
6653 for i
in sys
/types.h inttypes.h sys
/inttypes.h
$inttype_headers ; do
6654 unset ac_cv_type_u_int32_t
6655 unset ac_cv_type_u_int64_t
6656 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
6658 if test "x$ac_cv_type_u_int32_t" = xyes
; then :
6659 ac_cv_header_stdint_u
=$i
6664 ac_fn_c_check_type
"$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
6666 if test "x$ac_cv_type_u_int64_t" = xyes
; then :
6672 ac_cv_stdint_result
="(seen u_int32_t$and64 in $i)"
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
6676 $as_echo_n "checking for stdint u_int32_t... " >&6; }
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
6680 $as_echo "$ac_cv_header_stdint_u" >&6; }
6683 if test "_$ac_cv_header_stdint_x" = "_" ; then
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
6685 $as_echo_n "checking for stdint datatype model... " >&6; }
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
6687 $as_echo "(..)" >&6; }
6688 # The cast to long int works around a bug in the HP C Compiler
6689 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6690 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6691 # This bug is HP SR number 8606223364.
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
6693 $as_echo_n "checking size of char... " >&6; }
6694 if ${ac_cv_sizeof_char+:} false
; then :
6695 $as_echo_n "(cached) " >&6
6697 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
6700 if test "$ac_cv_type_char" = yes; then
6701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6703 as_fn_error
77 "cannot compute sizeof (char)
6704 See \`config.log' for more details" "$LINENO" 5; }
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
6712 $as_echo "$ac_cv_sizeof_char" >&6; }
6716 cat >>confdefs.h
<<_ACEOF
6717 #define SIZEOF_CHAR $ac_cv_sizeof_char
6721 # The cast to long int works around a bug in the HP C Compiler
6722 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6723 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6724 # This bug is HP SR number 8606223364.
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6726 $as_echo_n "checking size of short... " >&6; }
6727 if ${ac_cv_sizeof_short+:} false
; then :
6728 $as_echo_n "(cached) " >&6
6730 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6733 if test "$ac_cv_type_short" = yes; then
6734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6736 as_fn_error
77 "cannot compute sizeof (short)
6737 See \`config.log' for more details" "$LINENO" 5; }
6739 ac_cv_sizeof_short
=0
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6745 $as_echo "$ac_cv_sizeof_short" >&6; }
6749 cat >>confdefs.h
<<_ACEOF
6750 #define SIZEOF_SHORT $ac_cv_sizeof_short
6754 # The cast to long int works around a bug in the HP C Compiler
6755 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6756 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6757 # This bug is HP SR number 8606223364.
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6759 $as_echo_n "checking size of int... " >&6; }
6760 if ${ac_cv_sizeof_int+:} false
; then :
6761 $as_echo_n "(cached) " >&6
6763 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6766 if test "$ac_cv_type_int" = yes; then
6767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6769 as_fn_error
77 "cannot compute sizeof (int)
6770 See \`config.log' for more details" "$LINENO" 5; }
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6778 $as_echo "$ac_cv_sizeof_int" >&6; }
6782 cat >>confdefs.h
<<_ACEOF
6783 #define SIZEOF_INT $ac_cv_sizeof_int
6787 # The cast to long int works around a bug in the HP C Compiler
6788 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6789 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6790 # This bug is HP SR number 8606223364.
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6792 $as_echo_n "checking size of long... " >&6; }
6793 if ${ac_cv_sizeof_long+:} false
; then :
6794 $as_echo_n "(cached) " >&6
6796 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6799 if test "$ac_cv_type_long" = yes; then
6800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6802 as_fn_error
77 "cannot compute sizeof (long)
6803 See \`config.log' for more details" "$LINENO" 5; }
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6811 $as_echo "$ac_cv_sizeof_long" >&6; }
6815 cat >>confdefs.h
<<_ACEOF
6816 #define SIZEOF_LONG $ac_cv_sizeof_long
6820 # The cast to long int works around a bug in the HP C Compiler
6821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6823 # This bug is HP SR number 8606223364.
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
6825 $as_echo_n "checking size of void*... " >&6; }
6826 if ${ac_cv_sizeof_voidp+:} false
; then :
6827 $as_echo_n "(cached) " >&6
6829 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
6832 if test "$ac_cv_type_voidp" = yes; then
6833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6835 as_fn_error
77 "cannot compute sizeof (void*)
6836 See \`config.log' for more details" "$LINENO" 5; }
6838 ac_cv_sizeof_voidp
=0
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
6844 $as_echo "$ac_cv_sizeof_voidp" >&6; }
6848 cat >>confdefs.h
<<_ACEOF
6849 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
6853 ac_cv_stdint_char_model
=""
6854 ac_cv_stdint_char_model
="$ac_cv_stdint_char_model$ac_cv_sizeof_char"
6855 ac_cv_stdint_char_model
="$ac_cv_stdint_char_model$ac_cv_sizeof_short"
6856 ac_cv_stdint_char_model
="$ac_cv_stdint_char_model$ac_cv_sizeof_int"
6857 ac_cv_stdint_long_model
=""
6858 ac_cv_stdint_long_model
="$ac_cv_stdint_long_model$ac_cv_sizeof_int"
6859 ac_cv_stdint_long_model
="$ac_cv_stdint_long_model$ac_cv_sizeof_long"
6860 ac_cv_stdint_long_model
="$ac_cv_stdint_long_model$ac_cv_sizeof_voidp"
6861 name
="$ac_cv_stdint_long_model"
6862 case "$ac_cv_stdint_char_model/$ac_cv_stdint_long_model" in
6863 122/242) name
="$name, IP16 (standard 16bit machine)" ;;
6864 122/244) name
="$name, LP32 (standard 32bit mac/win)" ;;
6865 122/*) name
="$name (unusual int16 model)" ;;
6866 124/444) name
="$name, ILP32 (standard 32bit unixish)" ;;
6867 124/488) name
="$name, LP64 (standard 64bit unixish)" ;;
6868 124/448) name
="$name, LLP64 (unusual 64bit unixish)" ;;
6869 124/*) name
="$name (unusual int32 model)" ;;
6870 128/888) name
="$name, ILP64 (unusual 64bit numeric)" ;;
6871 128/*) name
="$name (unusual int64 model)" ;;
6872 222/*|
444/*) name
="$name (unusual dsptype)" ;;
6873 *) name
="$name (very unusal model)" ;;
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: combined for stdint datatype model... $name" >&5
6876 $as_echo "combined for stdint datatype model... $name" >&6; }
6879 if test "_$ac_cv_header_stdint_x" != "_" ; then
6880 ac_cv_header_stdint
="$ac_cv_header_stdint_x"
6881 elif test "_$ac_cv_header_stdint_o" != "_" ; then
6882 ac_cv_header_stdint
="$ac_cv_header_stdint_o"
6883 elif test "_$ac_cv_header_stdint_u" != "_" ; then
6884 ac_cv_header_stdint
="$ac_cv_header_stdint_u"
6886 ac_cv_header_stdint
="stddef.h"
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
6890 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
6892 $as_echo "($ac_cv_header_stdint)" >&6; }
6893 unset ac_cv_type_int_least32_t
6894 unset ac_cv_type_int_fast32_t
6895 ac_fn_c_check_type
"$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
6897 if test "x$ac_cv_type_int_least32_t" = xyes
; then :
6901 ac_fn_c_check_type
"$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
6903 if test "x$ac_cv_type_int_fast32_t" = xyes
; then :
6907 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
6909 if test "x$ac_cv_type_intmax_t" = xyes
; then :
6914 fi # shortcircut to system "stdint.h"
6915 # ------------------ PREPARE VARIABLES ------------------------------
6916 if test "$GCC" = "yes" ; then
6917 ac_cv_stdint_message
="using gnu compiler "`$CC --version | head -1`
6919 ac_cv_stdint_message
="using $CC"
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
6923 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
6925 # ----------------- DONE inttypes.h checks START header -------------
6926 ac_config_commands
="$ac_config_commands $ac_stdint_h"
6930 # Check for file locking. We (AC_PROG_CC?) have already checked for
6931 # sys/types.h and unistd.h.
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcntl file locking" >&5
6933 $as_echo_n "checking for fcntl file locking... " >&6; }
6934 if ${nettle_cv_fcntl_locking+:} false
; then :
6935 $as_echo_n "(cached) " >&6
6937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6938 /* end confdefs.h. */
6940 #if HAVE_SYS_TYPES_H
6941 # include <sys/types.h>
6944 # include <unistd.h>
6959 if ac_fn_c_try_compile
"$LINENO"; then :
6960 nettle_cv_fcntl_locking
=yes
6962 nettle_cv_fcntl_locking
=no
6964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_fcntl_locking" >&5
6967 $as_echo "$nettle_cv_fcntl_locking" >&6; }
6970 if test "x$nettle_cv_fcntl_locking" = "xyes" ; then
6971 $as_echo "#define HAVE_FCNTL_LOCKING 1" >>confdefs.h
6975 # Checks for libraries
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_getlimbn in -lgmp" >&5
6977 $as_echo_n "checking for __gmpz_getlimbn in -lgmp... " >&6; }
6978 if ${ac_cv_lib_gmp___gmpz_getlimbn+:} false
; then :
6979 $as_echo_n "(cached) " >&6
6981 ac_check_lib_save_LIBS
=$LIBS
6983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h. */
6986 /* Override any GCC internal prototype to avoid an error.
6987 Use char because int might match the return type of a GCC
6988 builtin and then its argument prototype would still apply. */
6992 char __gmpz_getlimbn ();
6996 return __gmpz_getlimbn ();
7001 if ac_fn_c_try_link
"$LINENO"; then :
7002 ac_cv_lib_gmp___gmpz_getlimbn
=yes
7004 ac_cv_lib_gmp___gmpz_getlimbn
=no
7006 rm -f core conftest.err conftest.
$ac_objext \
7007 conftest
$ac_exeext conftest.
$ac_ext
7008 LIBS
=$ac_check_lib_save_LIBS
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_getlimbn" >&5
7011 $as_echo "$ac_cv_lib_gmp___gmpz_getlimbn" >&6; }
7012 if test "x$ac_cv_lib_gmp___gmpz_getlimbn" = xyes
; then :
7013 cat >>confdefs.h
<<_ACEOF
7014 #define HAVE_LIBGMP 1
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNU MP not found, or not 3.1 or up, see http://gmplib.org/.
7021 Support for public key algorithms will be unavailable." >&5
7022 $as_echo "$as_me: WARNING: GNU MP not found, or not 3.1 or up, see http://gmplib.org/.
7023 Support for public key algorithms will be unavailable." >&2;}
7024 enable_public_key
=no
7028 # Add -R flags needed to run programs linked with gmp
7029 if test $cross_compiling = no
-a "x$RPATHFLAG" != x
; then
7031 if test "$cross_compiling" = yes; then :
7034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h. */
7036 int main(int argc, char **argv) { return 0; }
7038 if ac_fn_c_try_run
"$LINENO"; then :
7043 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7044 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7048 if test $ac_success = no
; then
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Running simple test program failed. Trying -R flags" >&5
7050 $as_echo_n "checking Running simple test program failed. Trying -R flags... " >&6; }
7051 ac_remaining_dirs
=''
7052 ac_rpath_save_LDFLAGS
="$LDFLAGS"
7053 for d
in $RPATH_CANDIDATE_DIRS ; do
7054 if test $ac_success = yes ; then
7055 ac_remaining_dirs
="$ac_remaining_dirs $d"
7057 LDFLAGS
="$RPATHFLAG$d $LDFLAGS"
7058 if test "$cross_compiling" = yes; then :
7061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7062 /* end confdefs.h. */
7063 int main(int argc, char **argv) { return 0; }
7065 if ac_fn_c_try_run
"$LINENO"; then :
7067 ac_rpath_save_LDFLAGS
="$LDFLAGS"
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding $RPATHFLAG$d" >&5
7069 $as_echo "adding $RPATHFLAG$d" >&6; }
7072 ac_remaining_dirs
="$ac_remaining_dirs $d"
7074 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7075 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7078 LDFLAGS
="$ac_rpath_save_LDFLAGS"
7081 RPATH_CANDIDATE_DIRS
=$ac_remaining_dirs
7083 if test $ac_success = no
; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7085 $as_echo "failed" >&6; }
7090 # Check for gmp limb size
7091 nettle_cv_gmp_numb_bits
=0
7092 if test "$enable_public_key" = yes; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMP limb size" >&5
7094 $as_echo_n "checking for GMP limb size... " >&6; }
7095 if ac_fn_c_compute_int
"$LINENO" "GMP_NUMB_BITS" "nettle_cv_gmp_numb_bits" "#include <gmp.h>"; then :
7098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7100 as_fn_error $?
"cannot find value of GMP_NUMB_BITS
7101 See \`config.log' for more details" "$LINENO" 5; }
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_gmp_numb_bits bits" >&5
7106 $as_echo "$nettle_cv_gmp_numb_bits bits" >&6; }
7109 GMP_NUMB_BITS
="$nettle_cv_gmp_numb_bits"
7113 ac_fn_c_check_func
"$LINENO" "__gmpz_powm_sec" "ac_cv_func___gmpz_powm_sec"
7114 if test "x$ac_cv_func___gmpz_powm_sec" = xyes
; then :
7115 $as_echo "#define HAVE_MPZ_POWM_SEC 1" >>confdefs.h
7122 if test "x$enable_public_key" = xyes
; then
7123 $as_echo "#define WITH_HOGWEED 1" >>confdefs.h
7130 if test "x$enable_static" = xyes
; then
7136 if test "x$enable_shared" = xyes
; then
7142 # Documentation tools
7143 if test "x$enable_documentation" != "xno"; then
7144 # Extract the first word of "makeinfo", so it can be a program name with args.
7145 set dummy makeinfo
; ac_word
=$2
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7147 $as_echo_n "checking for $ac_word... " >&6; }
7148 if ${ac_cv_path_MAKEINFO+:} false
; then :
7149 $as_echo_n "(cached) " >&6
7153 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
7156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7160 test -z "$as_dir" && as_dir
=.
7161 for ac_exec_ext
in '' $ac_executable_extensions; do
7162 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7163 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
7164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7171 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="not-found"
7175 MAKEINFO
=$ac_cv_path_MAKEINFO
7176 if test -n "$MAKEINFO"; then
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7178 $as_echo "$MAKEINFO" >&6; }
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181 $as_echo "no" >&6; }
7186 if test "x$MAKEINFO" != "xnot-found"; then
7187 enable_documentation
=yes
7190 if test "x$enable_documentation" == "xauto" ; then
7191 enable_documentation
=no
7193 as_fn_error $?
"Cannot find 'makeinfo', required for documentation." "$LINENO" 5
7198 if test "x$enable_documentation" = "xyes" ; then
7201 IF_DOCUMENTATION
='#'
7212 # Check for openssl's libcrypto (used only for benchmarking)
7213 if test x
$enable_openssl = xyes
; then
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BF_ecb_encrypt in -lcrypto" >&5
7215 $as_echo_n "checking for BF_ecb_encrypt in -lcrypto... " >&6; }
7216 if ${ac_cv_lib_crypto_BF_ecb_encrypt+:} false
; then :
7217 $as_echo_n "(cached) " >&6
7219 ac_check_lib_save_LIBS
=$LIBS
7220 LIBS
="-lcrypto $LIBS"
7221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7222 /* end confdefs.h. */
7224 /* Override any GCC internal prototype to avoid an error.
7225 Use char because int might match the return type of a GCC
7226 builtin and then its argument prototype would still apply. */
7230 char BF_ecb_encrypt ();
7234 return BF_ecb_encrypt ();
7239 if ac_fn_c_try_link
"$LINENO"; then :
7240 ac_cv_lib_crypto_BF_ecb_encrypt
=yes
7242 ac_cv_lib_crypto_BF_ecb_encrypt
=no
7244 rm -f core conftest.err conftest.
$ac_objext \
7245 conftest
$ac_exeext conftest.
$ac_ext
7246 LIBS
=$ac_check_lib_save_LIBS
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BF_ecb_encrypt" >&5
7249 $as_echo "$ac_cv_lib_crypto_BF_ecb_encrypt" >&6; }
7250 if test "x$ac_cv_lib_crypto_BF_ecb_encrypt" = xyes
; then :
7251 OPENSSL_LIBFLAGS
='-lcrypto'
7259 if test x
$enable_openssl = xyes
; then
7260 $as_echo "#define WITH_OPENSSL 1" >>confdefs.h
7268 # clock_gettime is in librt on *-*-osf5.1 and on glibc, so add -lrt to
7269 # BENCH_LIBS if needed. On linux (tested on x86_32, 2.6.26),
7270 # clock_getres reports ns accuracy, while in a quick test on osf
7271 # clock_getres said only 1 millisecond.
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
7275 $as_echo_n "checking for library containing clock_gettime... " >&6; }
7276 if ${ac_cv_search_clock_gettime+:} false
; then :
7277 $as_echo_n "(cached) " >&6
7279 ac_func_search_save_LIBS
=$LIBS
7280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7281 /* end confdefs.h. */
7283 /* Override any GCC internal prototype to avoid an error.
7284 Use char because int might match the return type of a GCC
7285 builtin and then its argument prototype would still apply. */
7289 char clock_gettime ();
7293 return clock_gettime ();
7298 for ac_lib
in '' rt
; do
7299 if test -z "$ac_lib"; then
7300 ac_res
="none required"
7303 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7305 if ac_fn_c_try_link
"$LINENO"; then :
7306 ac_cv_search_clock_gettime
=$ac_res
7308 rm -f core conftest.err conftest.
$ac_objext \
7310 if ${ac_cv_search_clock_gettime+:} false
; then :
7314 if ${ac_cv_search_clock_gettime+:} false
; then :
7317 ac_cv_search_clock_gettime
=no
7320 LIBS
=$ac_func_search_save_LIBS
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
7323 $as_echo "$ac_cv_search_clock_gettime" >&6; }
7324 ac_res
=$ac_cv_search_clock_gettime
7325 if test "$ac_res" != no
; then :
7326 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7329 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
7338 # Set these flags *last*, or else the test programs won't compile
7339 if test x
$GCC = xyes
; then
7340 # Using -ggdb3 makes (some versions of) Redhat's gcc-2.96 dump core
7341 if $CC --version |
grep '^2\.96$' 1>/dev
/null
2>&1; then
7344 CFLAGS
="$CFLAGS -ggdb3"
7346 # FIXME: It would be better to actually test if this option works and/or is needed.
7347 # Or perhaps use -funsigned-char.
7348 if $CC --version |
grep 'gcc.* 4\.' 1>/dev
/null
2>&1; then
7349 CFLAGS
="$CFLAGS -Wno-pointer-sign"
7351 CFLAGS
="$CFLAGS -Wall -W \
7352 -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes \
7353 -Wpointer-arith -Wbad-function-cast -Wnested-externs"
7355 # Don't enable -Wcast-align as it results in tons of warnings in the
7356 # DES code. And when using stdio.
7357 # Don't enable -Waggregate-return, as that causes warnings for glibc
7361 ac_config_files
="$ac_config_files config.make config.m4 Makefile"
7363 ac_config_files
="$ac_config_files tools/Makefile testsuite/Makefile examples/Makefile"
7365 ac_config_files
="$ac_config_files nettle.pc hogweed.pc"
7368 cat >confcache
<<\_ACEOF
7369 # This file is a shell script that caches the results of configure
7370 # tests run on this system so they can be shared between configure
7371 # scripts and configure runs, see configure's option --config-cache.
7372 # It is not useful on other systems. If it contains results you don't
7373 # want to keep, you may remove or edit it.
7375 # config.status only pays attention to the cache file if you give it
7376 # the --recheck option to rerun configure.
7378 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7379 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7384 # The following way of writing the cache mishandles newlines in values,
7385 # but we know of no workaround that is simple, portable, and efficient.
7386 # So, we kill variables containing newlines.
7387 # Ultrix sh set writes to stderr and can't be redirected directly,
7388 # and sets the high bit in the cache file unless we assign to the vars.
7390 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7391 eval ac_val
=\$
$ac_var
7395 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7396 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7399 _ | IFS | as_nl
) ;; #(
7400 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7401 *) { eval $ac_var=; unset $ac_var;} ;;
7407 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7408 *${as_nl}ac_space
=\
*)
7409 # `set' does not quote correctly, so add quotes: double-quote
7410 # substitution turns \\\\ into \\, and sed turns \\ into \.
7413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7416 # `set' quotes correctly as required by POSIX, so do not add quotes.
7417 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7426 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7428 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7430 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7431 if test -w "$cache_file"; then
7432 if test "x$cache_file" != "x/dev/null"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7434 $as_echo "$as_me: updating cache $cache_file" >&6;}
7435 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
7436 cat confcache
>"$cache_file"
7438 case $cache_file in #(
7440 mv -f confcache
"$cache_file"$$
&&
7441 mv -f "$cache_file"$$
"$cache_file" ;; #(
7443 mv -f confcache
"$cache_file" ;;
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7449 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7454 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7455 # Let make expand exec_prefix.
7456 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7458 DEFS
=-DHAVE_CONFIG_H
7463 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7464 # 1. Remove the extension, and $U if already installed.
7465 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7466 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7467 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7468 # will be set to the directory where LIBOBJS objects are built.
7469 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7470 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7474 LTLIBOBJS
=$ac_ltlibobjs
7479 : "${CONFIG_STATUS=./config.status}"
7481 ac_clean_files_save
=$ac_clean_files
7482 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7484 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7486 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7488 # Generated by $as_me.
7489 # Run this file to recreate the current configuration.
7490 # Compiler output produced by configure, useful for debugging
7491 # configure, is in config.log if it exists.
7497 SHELL=\${CONFIG_SHELL-$SHELL}
7500 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7501 ## -------------------- ##
7502 ## M4sh Initialization. ##
7503 ## -------------------- ##
7505 # Be more Bourne compatible
7506 DUALCASE
=1; export DUALCASE
# for MKS sh
7507 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7510 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7511 # is contrary to our usage. Disable this feature.
7512 alias -g '${1+"$@"}'='"$@"'
7513 setopt NO_GLOB_SUBST
7515 case `(set -o) 2>/dev/null` in #(
7527 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7528 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7529 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7530 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7531 # Prefer a ksh shell builtin over an external printf program on Solaris,
7532 # but without wasting forks for bash or zsh.
7533 if test -z "$BASH_VERSION$ZSH_VERSION" \
7534 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7535 as_echo='print
-r --'
7536 as_echo_n='print
-rn --'
7537 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7538 as_echo='printf %s
\n'
7539 as_echo_n='printf %s
'
7541 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7542 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7543 as_echo_n='/usr
/ucb
/echo -n'
7545 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7546 as_echo_n_body='eval
7550 expr "X$arg" : "X\\(.*\\)$as_nl";
7551 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7553 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7555 export as_echo_n_body
7556 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7559 as_echo='sh
-c $as_echo_body as_echo
'
7562 # The user is always right.
7563 if test "${PATH_SEPARATOR+set}" != set; then
7565 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7566 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7573 # We need space, tab and new line, in precisely that order. Quoting is
7574 # there to prevent editors from complaining about space-tab.
7575 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7576 # splitting by setting IFS to empty value.)
7579 # Find who we are. Look in the path if we contain no directory separator.
7582 *[\\/]* ) as_myself=$0 ;;
7583 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 test -z "$as_dir" && as_dir=.
7588 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7594 # We did not find ourselves, most probably we were run as `sh COMMAND'
7595 # in which case we are not to be found in the path.
7596 if test "x$as_myself" = x
; then
7599 if test ! -f "$as_myself"; then
7600 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7604 # Unset variables that we do not need and which cause bugs (e.g. in
7605 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7606 # suppresses any "Segmentation fault" message there. '((' could
7607 # trigger a bug in pdksh 5.2.14.
7608 for as_var
in BASH_ENV ENV MAIL MAILPATH
7609 do eval test x\
${$as_var+set} = xset \
7610 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7623 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7626 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7627 # ----------------------------------------
7628 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7629 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7630 # script with STATUS, using 1 if that was 0.
7633 as_status
=$1; test $as_status -eq 0 && as_status
=1
7635 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7636 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7638 $as_echo "$as_me: error: $2" >&2
7639 as_fn_exit
$as_status
7643 # as_fn_set_status STATUS
7644 # -----------------------
7645 # Set $? to STATUS, without forking.
7649 } # as_fn_set_status
7653 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7663 # Portably unset VAR.
7666 { eval $1=; unset $1;}
7668 as_unset
=as_fn_unset
7669 # as_fn_append VAR VALUE
7670 # ----------------------
7671 # Append the text in VALUE to the end of the definition contained in VAR. Take
7672 # advantage of any shell optimizations that allow amortized linear growth over
7673 # repeated appends, instead of the typical quadratic growth present in naive
7675 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7676 eval 'as_fn_append ()
7687 # as_fn_arith ARG...
7688 # ------------------
7689 # Perform arithmetic evaluation on the ARGs, and store the result in the
7690 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7691 # must be portable across $(()) and expr.
7692 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7693 eval 'as_fn_arith ()
7700 as_val
=`expr "$@" || test $? -eq 1`
7705 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7706 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7712 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7713 as_basename
=basename
7718 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7724 as_me
=`$as_basename -- "$0" ||
7725 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7726 X"$0" : 'X\(//\)$' \| \
7727 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7729 sed '/^.*\/\([^/][^/]*\)\/*$/{
7743 # Avoid depending upon Character Ranges.
7744 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7745 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7746 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7747 as_cr_digits
='0123456789'
7748 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7750 ECHO_C
= ECHO_N
= ECHO_T
=
7751 case `echo -n x` in #(((((
7753 case `echo 'xy\c'` in
7754 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7756 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7763 rm -f conf$$ conf$$.exe conf$$.
file
7764 if test -d conf$$.dir
; then
7765 rm -f conf$$.dir
/conf$$.
file
7768 mkdir conf$$.dir
2>/dev
/null
7770 if (echo >conf$$.
file) 2>/dev
/null
; then
7771 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7773 # ... but there are two gotchas:
7774 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7775 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7776 # In both cases, we have to default to `cp -pR'.
7777 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7779 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7787 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7788 rmdir conf$$.dir
2>/dev
/null
7793 # Create "$as_dir" as a directory, including parents if necessary.
7798 -*) as_dir
=.
/$as_dir;;
7800 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7804 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7805 *) as_qdir
=$as_dir;;
7807 as_dirs
="'$as_qdir' $as_dirs"
7808 as_dir
=`$as_dirname -- "$as_dir" ||
7809 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7810 X"$as_dir" : 'X\(//\)[^/]' \| \
7811 X"$as_dir" : 'X\(//\)$' \| \
7812 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7813 $as_echo X"$as_dir" |
7814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7831 test -d "$as_dir" && break
7833 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7834 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
7838 if mkdir
-p .
2>/dev
/null
; then
7839 as_mkdir_p
='mkdir -p "$as_dir"'
7841 test -d .
/-p && rmdir .
/-p
7846 # as_fn_executable_p FILE
7847 # -----------------------
7848 # Test if FILE is an executable regular file.
7849 as_fn_executable_p
()
7851 test -f "$1" && test -x "$1"
7852 } # as_fn_executable_p
7854 as_executable_p
=as_fn_executable_p
7856 # Sed expression to map a string onto a valid CPP name.
7857 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7859 # Sed expression to map a string onto a valid variable name.
7860 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7864 ## ----------------------------------- ##
7865 ## Main body of $CONFIG_STATUS script. ##
7866 ## ----------------------------------- ##
7868 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
7870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7871 # Save the log message, to keep $0 and so on meaningful, and to
7872 # report actual input values of CONFIG_FILES etc. instead of their
7873 # values after options handling.
7875 This file was extended by nettle $as_me 2.7.1, which was
7876 generated by GNU Autoconf 2.69. Invocation command line was
7878 CONFIG_FILES = $CONFIG_FILES
7879 CONFIG_HEADERS = $CONFIG_HEADERS
7880 CONFIG_LINKS = $CONFIG_LINKS
7881 CONFIG_COMMANDS = $CONFIG_COMMANDS
7884 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7889 case $ac_config_files in *"
7890 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
7893 case $ac_config_headers in *"
7894 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
7898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7899 # Files that config.status was made for.
7900 config_files="$ac_config_files"
7901 config_headers="$ac_config_headers"
7902 config_links="$ac_config_links"
7903 config_commands="$ac_config_commands"
7907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7909 \`$as_me' instantiates files and other configuration actions
7910 from templates according to the current configuration. Unless the files
7911 and actions are specified as TAGs, all are instantiated by default.
7913 Usage: $0 [OPTION]... [TAG]...
7915 -h, --help print this help, then exit
7916 -V, --version print version number and configuration settings, then exit
7917 --config print configuration, then exit
7918 -q, --quiet, --silent
7919 do not print progress messages
7920 -d, --debug don't remove temporary files
7921 --recheck update $as_me by reconfiguring in the same conditions
7922 --file=FILE[:TEMPLATE]
7923 instantiate the configuration file FILE
7924 --header=FILE[:TEMPLATE]
7925 instantiate the configuration header FILE
7927 Configuration files:
7930 Configuration headers:
7933 Configuration links:
7936 Configuration commands:
7939 Report bugs to <nettle-bugs@lists.lysator.liu.se>."
7942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7943 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7945 nettle config.status 2.7.1
7946 configured by $0, generated by GNU Autoconf 2.69,
7947 with options \\"\$ac_cs_config\\"
7949 Copyright (C) 2012 Free Software Foundation, Inc.
7950 This config.status script is free software; the Free Software Foundation
7951 gives unlimited permission to copy, distribute and modify it."
7957 test -n "\$AWK" || AWK=awk
7960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7961 # The default lists apply if the user does not specify any file.
7967 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7968 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
7972 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7984 # Handling of the options.
7985 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7987 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
7988 $as_echo "$ac_cs_version"; exit ;;
7989 --config |
--confi |
--conf |
--con |
--co |
--c )
7990 $as_echo "$ac_cs_config"; exit ;;
7991 --debug |
--debu |
--deb |
--de |
--d |
-d )
7993 --file |
--fil |
--fi |
--f )
7996 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7997 '') as_fn_error $?
"missing file argument" ;;
7999 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8000 ac_need_defaults
=false
;;
8001 --header |
--heade |
--head |
--hea )
8004 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8006 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8007 ac_need_defaults
=false
;;
8009 # Conflict between --help and --header
8010 as_fn_error $?
"ambiguous option: \`$1'
8011 Try \`$0 --help' for more information.";;
8012 --help |
--hel |
-h )
8013 $as_echo "$ac_cs_usage"; exit ;;
8014 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8015 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8019 -*) as_fn_error $?
"unrecognized option: \`$1'
8020 Try \`$0 --help' for more information." ;;
8022 *) as_fn_append ac_config_targets
" $1"
8023 ac_need_defaults
=false
;;
8029 ac_configure_extra_args
=
8031 if $ac_cs_silent; then
8033 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8038 if \$ac_cs_recheck; then
8039 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8041 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8042 CONFIG_SHELL='$SHELL'
8048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8052 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8053 ## Running $as_me. ##
8059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8063 asm_file_list="$asm_file_list"
8065 # variables for create stdint.h replacement
8068 ac_stdint_h="$ac_stdint_h"
8069 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
8070 ac_cv_stdint_message="$ac_cv_stdint_message"
8071 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
8072 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
8073 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
8074 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
8075 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
8076 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
8077 ac_cv_stdint_char_model="$ac_cv_stdint_char_model"
8078 ac_cv_stdint_long_model="$ac_cv_stdint_long_model"
8079 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
8080 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
8081 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
8086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8088 # Handling of arguments.
8089 for ac_config_target
in $ac_config_targets
8091 case $ac_config_target in
8092 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
8093 "dummy-dep-files") CONFIG_COMMANDS
="$CONFIG_COMMANDS dummy-dep-files" ;;
8094 "$tmp_f") CONFIG_LINKS
="$CONFIG_LINKS $tmp_f:$asm_dir/$tmp_f" ;;
8095 "$tmp_o") CONFIG_LINKS
="$CONFIG_LINKS $tmp_o:$asm_dir/$tmp_o" ;;
8096 "asm.d") CONFIG_COMMANDS
="$CONFIG_COMMANDS asm.d" ;;
8097 "$ac_stdint_h") CONFIG_COMMANDS
="$CONFIG_COMMANDS $ac_stdint_h" ;;
8098 "config.make") CONFIG_FILES
="$CONFIG_FILES config.make" ;;
8099 "config.m4") CONFIG_FILES
="$CONFIG_FILES config.m4" ;;
8100 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8101 "tools/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/Makefile" ;;
8102 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
8103 "examples/Makefile") CONFIG_FILES
="$CONFIG_FILES examples/Makefile" ;;
8104 "nettle.pc") CONFIG_FILES
="$CONFIG_FILES nettle.pc" ;;
8105 "hogweed.pc") CONFIG_FILES
="$CONFIG_FILES hogweed.pc" ;;
8107 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8112 # If the user did not use the arguments to specify the items to instantiate,
8113 # then the envvar interface is used. Set only those that are not.
8114 # We use the long form for the default assignment because of an extremely
8115 # bizarre bug on SunOS 4.1.3.
8116 if $ac_need_defaults; then
8117 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8118 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8119 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
8120 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8123 # Have a temporary directory for convenience. Make it in the build tree
8124 # simply because there is no reason against having it here, and in addition,
8125 # creating and moving files from /tmp can sometimes cause problems.
8126 # Hook for its removal unless debugging.
8127 # Note that there is a small window in which the directory will not be cleaned:
8128 # after its creation but before its name has been assigned to `$tmp'.
8132 trap 'exit_status=$?
8134 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8136 trap 'as_fn_exit 1' 1 2 13 15
8138 # Create a (secure) tmp directory for tmp files.
8141 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8145 tmp
=.
/conf$$
-$RANDOM
8146 (umask 077 && mkdir
"$tmp")
8147 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
8150 # Set up the scripts for CONFIG_FILES section.
8151 # No need to generate them if there are no CONFIG_FILES.
8152 # This happens for instance with `./config.status config.h'.
8153 if test -n "$CONFIG_FILES"; then
8156 ac_cr
=`echo X | tr X '\015'`
8157 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8158 # But we know of no other shell where ac_cr would be empty at this
8159 # point, so we can use a bashism as a fallback.
8160 if test "x$ac_cr" = x
; then
8161 eval ac_cr
=\$
\'\\r
\'
8163 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8164 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8170 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8175 echo "cat >conf$$subs.awk <<_ACEOF" &&
8176 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8179 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8180 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8182 for ac_last_try in false false false false false :; do
8183 . ./conf$$subs.sh ||
8184 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8186 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8187 if test $ac_delim_n = $ac_delim_num; then
8189 elif $ac_last_try; then
8190 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8192 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8198 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
8202 s/^/S["/; s
/!.
*/"]=/
8212 s/\(.\{148\}\)..*/\1/
8214 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8219 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8226 s/\(.\{148\}\)..*/\1/
8228 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8232 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8237 ' <conf$$subs.awk | sed '
8242 ' >>$CONFIG_STATUS || ac_write_fail=1
8243 rm -f conf$$subs.awk
8244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8246 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
8247 for (key in S) S_is_set[key] = 1
8253 nfields = split(line, field, "@
")
8255 len = length(field[1])
8256 for (i = 2; i < nfields; i++) {
8258 keylen = length(key)
8259 if (S_is_set[key]) {
8261 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8262 len += length(value) + length(field[++i])
8273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8274 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8275 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8278 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
8279 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
8282 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8283 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
8284 # trailing colons and then remove the whole line if VPATH becomes empty
8285 # (actually we leave an empty line to preserve line numbers).
8286 if test "x
$srcdir" = x.; then
8287 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8306 fi # test -n "$CONFIG_FILES"
8308 # Set up the scripts for CONFIG_HEADERS section.
8309 # No need to generate them if there are no CONFIG_HEADERS.
8310 # This happens for instance with `./config.status Makefile'.
8311 if test -n "$CONFIG_HEADERS"; then
8312 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
8316 # Transform confdefs.h into an awk script `defines.awk', embedded as
8317 # here-document in config.status, that substitutes the proper values into
8318 # config.h.in to produce config.h.
8320 # Create a delimiter string that does not exist in confdefs.h, to ease
8321 # handling of long lines.
8323 for ac_last_try in false false :; do
8324 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
8325 if test -z "$ac_tt"; then
8327 elif $ac_last_try; then
8328 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
8330 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8334 # For the awk script, D is an array of macro values keyed by name,
8335 # likewise P contains macro parameters if any. Preserve backslash
8336 # newline sequences.
8338 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8340 s/.\{148\}/&'"$ac_delim"'/g
8343 s/^[ ]*#[ ]*define[ ][ ]*/ /
8350 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8352 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8356 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8357 D["\
1"]=" \
3\\\\\\n
"\\/p
8359 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8364 s/.\{148\}/&'"$ac_delim"'/g
8369 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8372 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8374 ' <confdefs.h | sed '
8375 s/'"$ac_delim"'/"\\\
8376 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8379 for (key in D) D_is_set[key] = 1
8382 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8384 split(line, arg, " ")
8385 if (arg[1] == "#") {
8389 defundef
= substr
(arg
[1], 2)
8392 split(mac1
, mac2
, "(") #)
8394 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8395 if (D_is_set
[macro
]) {
8396 # Preserve the white space surrounding the "#".
8397 print prefix
"define", macro P
[macro
] D
[macro
]
8400 # Replace #undef with comments. This is necessary, for example,
8401 # in the case of _POSIX_SOURCE, which is predefined and required
8402 # on some systems where configure will not decide to define it.
8403 if (defundef
== "undef") {
8404 print
"/*", prefix defundef
, macro
, "*/"
8412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8413 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
8414 fi # test -n "$CONFIG_HEADERS"
8417 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
8422 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8424 case $ac_mode$ac_tag in
8426 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8427 :[FH
]-) ac_tag
=-:-;;
8428 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8445 -) ac_f
="$ac_tmp/stdin";;
8446 *) # Look for the file first in the build tree, then in the source tree
8447 # (if the path is not absolute). The absolute path cannot be DOS-style,
8448 # because $ac_f cannot contain `:'.
8452 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8454 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8456 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8457 as_fn_append ac_file_inputs
" '$ac_f'"
8460 # Let's still pretend it is `configure' which instantiates (i.e., don't
8461 # use $as_me), people would be surprised to read:
8462 # /* config.h. Generated by config.status. */
8463 configure_input
='Generated from '`
8464 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8466 if test x
"$ac_file" != x-
; then
8467 configure_input
="$ac_file. $configure_input"
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8469 $as_echo "$as_me: creating $ac_file" >&6;}
8471 # Neutralize special characters interpreted by sed in replacement strings.
8472 case $configure_input in #(
8473 *\
&* |
*\|
* |
*\\* )
8474 ac_sed_conf_input
=`$as_echo "$configure_input" |
8475 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8476 *) ac_sed_conf_input
=$configure_input;;
8480 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
8481 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
8486 ac_dir
=`$as_dirname -- "$ac_file" ||
8487 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8488 X"$ac_file" : 'X\(//\)[^/]' \| \
8489 X"$ac_file" : 'X\(//\)$' \| \
8490 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8491 $as_echo X"$ac_file" |
8492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8509 as_dir
="$ac_dir"; as_fn_mkdir_p
8513 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8515 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8516 # A ".." for each directory in $ac_dir_suffix.
8517 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8518 case $ac_top_builddir_sub in
8519 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8520 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8523 ac_abs_top_builddir
=$ac_pwd
8524 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8525 # for backward compatibility:
8526 ac_top_builddir
=$ac_top_build_prefix
8529 .
) # We are building in place.
8531 ac_top_srcdir
=$ac_top_builddir_sub
8532 ac_abs_top_srcdir
=$ac_pwd ;;
8533 [\\/]* | ?
:[\\/]* ) # Absolute name.
8534 ac_srcdir
=$srcdir$ac_dir_suffix;
8535 ac_top_srcdir
=$srcdir
8536 ac_abs_top_srcdir
=$srcdir ;;
8538 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8539 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8540 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8542 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8552 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8553 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8557 [\\/$
]* | ?
:[\\/]* ) ;;
8558 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
8562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8563 # If the template does not know about datarootdir, expand it.
8564 # FIXME: This hack should be removed a few years after 2.60.
8565 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8576 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8577 *datarootdir
*) ac_datarootdir_seen
=yes;;
8578 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8580 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8583 ac_datarootdir_hack='
8584 s&@datadir@&$datadir&g
8585 s&@docdir@&$docdir&g
8586 s&@infodir@&$infodir&g
8587 s&@localedir@&$localedir&g
8588 s&@mandir@&$mandir&g
8589 s&\\\${datarootdir}&$datarootdir&g' ;;
8593 # Neutralize VPATH when `$srcdir' = `.'.
8594 # Shell code in configure.ac might set extrasub.
8595 # FIXME: do we really want to maintain this feature?
8596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8597 ac_sed_extra="$ac_vpsub
8600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8602 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8603 s|@configure_input@|
$ac_sed_conf_input|
;t t
8604 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8605 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8606 s
&@srcdir@
&$ac_srcdir&;t t
8607 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8608 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8609 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8610 s
&@builddir@
&$ac_builddir&;t t
8611 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8612 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8613 s
&@INSTALL@
&$ac_INSTALL&;t t
8614 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
8615 $ac_datarootdir_hack
8617 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
8618 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8620 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8621 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
8622 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8623 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8625 which seems to be undefined. Please make sure it is defined" >&5
8626 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8627 which seems to be undefined. Please make sure it is defined" >&2;}
8629 rm -f "$ac_tmp/stdin"
8631 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8632 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8634 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8640 if test x"$ac_file" != x-; then
8642 $as_echo "/* $configure_input */" \
8643 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8644 } >"$ac_tmp/config.h" \
8645 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8646 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8648 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8651 mv "$ac_tmp/config.h" "$ac_file" \
8652 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8655 $as_echo "/* $configure_input */" \
8656 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8657 || as_fn_error $? "could not create -" "$LINENO" 5
8665 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
8668 # Prefer the file from the source tree if names are identical.
8669 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
8670 ac_source=$srcdir/$ac_source
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
8674 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
8676 if test ! -r "$ac_source"; then
8677 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
8681 # Try a relative symlink, then a hard link, then a copy.
8683 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
8684 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
8686 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
8687 ln "$ac_source" "$ac_file" 2>/dev/null ||
8688 cp -p "$ac_source" "$ac_file" ||
8689 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
8692 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8693 $as_echo "$as_me: executing $ac_file commands" >&6;}
8698 case $ac_file$ac_mode in
8699 "dummy-dep-files":C) (cd "$srcdir" && find . '(' -name '*.c
' -o -name '*.cxx
' ')' -print) \
8700 | sed 's
/\.c\
(xx\
)\
{0,1\
}$
//' | (while read f; do echo > "$f.o.d"; echo > "$f.po.d"; done)
8702 "asm.d":C) for f in $asm_file_list
8706 echo "`basename $f .asm`.s : $f "'$
(srcdir
)/asm.
m4 machine.
m4 config.
m4'
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
8713 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
8714 ac_stdint=$tmp/_stdint.h
8716 echo "#ifndef" $_ac_stdint_h >$ac_stdint
8717 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
8718 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
8719 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
8720 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
8721 if test "_$ac_cv_header_stdint_t" != "_" ; then
8722 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
8725 cat >>$ac_stdint <<STDINT_EOF
8727 /* ................... shortcircuit part ........................... */
8729 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
8734 /* .................... configured part ............................ */
8738 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
8739 if test "_$ac_cv_header_stdint_x" != "_" ; then
8740 ac_header="$ac_cv_header_stdint_x"
8741 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
8743 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
8746 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
8747 if test "_$ac_cv_header_stdint_o" != "_" ; then
8748 ac_header="$ac_cv_header_stdint_o"
8749 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
8751 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
8754 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
8755 if test "_$ac_cv_header_stdint_u" != "_" ; then
8756 ac_header="$ac_cv_header_stdint_u"
8757 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
8759 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
8762 echo "" >>$ac_stdint
8764 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
8765 echo "#include <$ac_header>" >>$ac_stdint
8766 echo "" >>$ac_stdint
8769 echo "/* which 64bit typedef has been found */" >>$ac_stdint
8770 if test "$ac_cv_type_uint64_t" = "yes" ; then
8771 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
8773 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
8775 if test "$ac_cv_type_u_int64_t" = "yes" ; then
8776 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
8778 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
8780 echo "" >>$ac_stdint
8782 echo "/* which type model has been detected */" >>$ac_stdint
8783 if test "_$ac_cv_stdint_char_model" != "_" ; then
8784 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_stdint_char_model" >>$ac_stdint
8785 echo "#define _STDINT_LONG_MODEL" "$ac_cv_stdint_long_model" >>$ac_stdint
8787 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
8788 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
8790 echo "" >>$ac_stdint
8792 echo "/* whether int_least types were detected */" >>$ac_stdint
8793 if test "$ac_cv_type_int_least32_t" = "yes"; then
8794 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
8796 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
8798 echo "/* whether int_fast types were detected */" >>$ac_stdint
8799 if test "$ac_cv_type_int_fast32_t" = "yes"; then
8800 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
8802 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
8804 echo "/* whether intmax_t type was detected */" >>$ac_stdint
8805 if test "$ac_cv_type_intmax_t" = "yes"; then
8806 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
8808 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
8810 echo "" >>$ac_stdint
8812 cat >>$ac_stdint <<STDINT_EOF
8813 /* .................... detections part ............................ */
8815 /* whether we need to define bitspecific types from compiler base types */
8816 #ifndef _STDINT_HEADER_INTPTR
8817 #ifndef _STDINT_HEADER_UINT32
8818 #ifndef _STDINT_HEADER_U_INT32
8819 #define _STDINT_NEED_INT_MODEL_T
8821 #define _STDINT_HAVE_U_INT_TYPES
8826 #ifdef _STDINT_HAVE_U_INT_TYPES
8827 #undef _STDINT_NEED_INT_MODEL_T
8830 #ifdef _STDINT_CHAR_MODEL
8831 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
8832 #ifndef _STDINT_BYTE_MODEL
8833 #define _STDINT_BYTE_MODEL 12
8838 #ifndef _STDINT_HAVE_INT_LEAST32_T
8839 #define _STDINT_NEED_INT_LEAST_T
8842 #ifndef _STDINT_HAVE_INT_FAST32_T
8843 #define _STDINT_NEED_INT_FAST_T
8846 #ifndef _STDINT_HEADER_INTPTR
8847 #define _STDINT_NEED_INTPTR_T
8848 #ifndef _STDINT_HAVE_INTMAX_T
8849 #define _STDINT_NEED_INTMAX_T
8854 /* .................... definition part ............................ */
8856 /* some system headers have good uint64_t */
8857 #ifndef _HAVE_UINT64_T
8858 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
8859 #define _HAVE_UINT64_T
8860 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
8861 #define _HAVE_UINT64_T
8862 typedef u_int64_t uint64_t;
8866 #ifndef _HAVE_UINT64_T
8867 /* .. here are some common heuristics using compiler runtime specifics */
8868 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
8869 #define _HAVE_UINT64_T
8870 typedef long long int64_t;
8871 typedef unsigned long long uint64_t;
8873 #elif !defined __STRICT_ANSI__
8874 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
8875 #define _HAVE_UINT64_T
8876 typedef __int64 int64_t;
8877 typedef unsigned __int64 uint64_t;
8879 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
8880 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
8881 #if !defined _NO_LONGLONG
8882 #define _HAVE_UINT64_T
8883 typedef long long int64_t;
8884 typedef unsigned long long uint64_t;
8887 #elif defined __alpha || (defined __mips && defined _ABIN32)
8888 #if !defined _NO_LONGLONG
8889 typedef long int64_t;
8890 typedef unsigned long uint64_t;
8892 /* compiler/cpu type to define int64_t */
8897 #if defined _STDINT_HAVE_U_INT_TYPES
8898 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
8899 typedef u_int8_t uint8_t;
8900 typedef u_int16_t uint16_t;
8901 typedef u_int32_t uint32_t;
8903 /* glibc compatibility */
8904 #ifndef __int8_t_defined
8905 #define __int8_t_defined
8909 #ifdef _STDINT_NEED_INT_MODEL_T
8910 /* we must guess all the basic types. Apart from byte-adressable system, */
8911 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
8912 /* (btw, those nibble-addressable systems are way off, or so we assume) */
8915 #if defined _STDINT_BYTE_MODEL
8916 #if _STDINT_LONG_MODEL+0 == 242
8917 /* 2:4:2 = IP16 = a normal 16-bit system */
8918 typedef unsigned char uint8_t;
8919 typedef unsigned short uint16_t;
8920 typedef unsigned long uint32_t;
8921 #ifndef __int8_t_defined
8922 #define __int8_t_defined
8923 typedef char int8_t;
8924 typedef short int16_t;
8925 typedef long int32_t;
8927 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
8928 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
8929 /* 4:4:4 = ILP32 = a normal 32-bit system */
8930 typedef unsigned char uint8_t;
8931 typedef unsigned short uint16_t;
8932 typedef unsigned int uint32_t;
8933 #ifndef __int8_t_defined
8934 #define __int8_t_defined
8935 typedef char int8_t;
8936 typedef short int16_t;
8937 typedef int int32_t;
8939 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
8940 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
8941 /* 4:8:8 = LP64 = a normal 64-bit system */
8942 typedef unsigned char uint8_t;
8943 typedef unsigned short uint16_t;
8944 typedef unsigned int uint32_t;
8945 #ifndef __int8_t_defined
8946 #define __int8_t_defined
8947 typedef char int8_t;
8948 typedef short int16_t;
8949 typedef int int32_t;
8951 /* this system has a "long" of 64bit */
8952 #ifndef _HAVE_UINT64_T
8953 #define _HAVE_UINT64_T
8954 typedef unsigned long uint64_t;
8955 typedef long int64_t;
8957 #elif _STDINT_LONG_MODEL+0 == 448
8958 /* LLP64 a 64-bit system derived from a 32-bit system */
8959 typedef unsigned char uint8_t;
8960 typedef unsigned short uint16_t;
8961 typedef unsigned int uint32_t;
8962 #ifndef __int8_t_defined
8963 #define __int8_t_defined
8964 typedef char int8_t;
8965 typedef short int16_t;
8966 typedef int int32_t;
8968 /* assuming the system has a "long long" */
8969 #ifndef _HAVE_UINT64_T
8970 #define _HAVE_UINT64_T
8971 typedef unsigned long long uint64_t;
8972 typedef long long int64_t;
8975 #define _STDINT_NO_INT32_T
8978 #define _STDINT_NO_INT8_T
8979 #define _STDINT_NO_INT32_T
8984 * quote from SunOS-5.8 sys/inttypes.h:
8985 * Use at your own risk. As of February 1996, the committee is squarely
8986 * behind the fixed sized types; the "least" and "fast" types are still being
8987 * discussed. The probability that the "fast" types may be removed before
8988 * the standard is finalized is high enough that they are not currently
8992 #if defined _STDINT_NEED_INT_LEAST_T
8993 typedef int8_t int_least8_t;
8994 typedef int16_t int_least16_t;
8995 typedef int32_t int_least32_t;
8996 #ifdef _HAVE_UINT64_T
8997 typedef int64_t int_least64_t;
9000 typedef uint8_t uint_least8_t;
9001 typedef uint16_t uint_least16_t;
9002 typedef uint32_t uint_least32_t;
9003 #ifdef _HAVE_UINT64_T
9004 typedef uint64_t uint_least64_t;
9009 #if defined _STDINT_NEED_INT_FAST_T
9010 typedef int8_t int_fast8_t;
9011 typedef int int_fast16_t;
9012 typedef int32_t int_fast32_t;
9013 #ifdef _HAVE_UINT64_T
9014 typedef int64_t int_fast64_t;
9017 typedef uint8_t uint_fast8_t;
9018 typedef unsigned uint_fast16_t;
9019 typedef uint32_t uint_fast32_t;
9020 #ifdef _HAVE_UINT64_T
9021 typedef uint64_t uint_fast64_t;
9026 #ifdef _STDINT_NEED_INTMAX_T
9027 #ifdef _HAVE_UINT64_T
9028 typedef int64_t intmax_t;
9029 typedef uint64_t uintmax_t;
9031 typedef long intmax_t;
9032 typedef unsigned long uintmax_t;
9036 #ifdef _STDINT_NEED_INTPTR_T
9037 #ifndef __intptr_t_defined
9038 #define __intptr_t_defined
9039 /* we encourage using "long" to store pointer values, never use "int" ! */
9040 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
9041 typedef unsinged int uintptr_t;
9042 typedef int intptr_t;
9043 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
9044 typedef unsigned long uintptr_t;
9045 typedef long intptr_t;
9046 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
9047 typedef uint64_t uintptr_t;
9048 typedef int64_t intptr_t;
9049 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
9050 typedef unsigned long uintptr_t;
9051 typedef long intptr_t;
9062 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
9064 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
9066 ac_dir=`$as_dirname -- "$ac_stdint_h" ||
9067 $as_expr X"$ac_stdint_h" : 'X\
(.
*[^
/]\
)//*[^
/][^
/]*/*$
' \| \
9068 X"$ac_stdint_h" : 'X\
(//\
)[^
/]' \| \
9069 X"$ac_stdint_h" : 'X\
(//\
)$
' \| \
9070 X"$ac_stdint_h" : 'X\
(/\
)' \| . 2>/dev/null ||
9071 $as_echo X"$ac_stdint_h" |
9072 sed '/^X\
(.
*[^
/]\
)\
/\
/*[^
/][^
/]*\
/*$
/{
9089 as_dir="$ac_dir"; as_fn_mkdir_p
9091 mv $ac_stdint $ac_stdint_h
9101 ac_clean_files=$ac_clean_files_save
9103 test $ac_write_fail = 0 ||
9104 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9107 # configure is writing to config.log, and then calls config.status.
9108 # config.status does its own redirection, appending to config.log.
9109 # Unfortunately, on DOS this fails, as config.log is still kept open
9110 # by configure, so config.status won't be able to
write to it
; its
9111 # output is simply discarded. So we exec the FD to /dev/null,
9112 # effectively closing config.log, so it can be properly (re)opened and
9113 # appended to by config.status. When coming back to configure, we
9114 # need to make the FD available again.
9115 if test "$no_create" != yes; then
9117 ac_config_status_args
=
9118 test "$silent" = yes &&
9119 ac_config_status_args
="$ac_config_status_args --quiet"
9121 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9123 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9124 # would make configure fail if this is the last instruction.
9125 $ac_cs_success || as_fn_exit
1
9127 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9129 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
9135 Version: ${PACKAGE_STRING}
9138 Assembly files: ${asm_path:-none}
9139 Install prefix: ${prefix}
9140 Library directory: ${libdir}
9142 Static libraries: ${enable_static}
9143 Shared libraries: ${enable_shared}
9144 Public key crypto: ${enable_public_key}
9145 Documentation: ${enable_documentation}
9147 $as_echo "$as_me: summary of build options:
9149 Version: ${PACKAGE_STRING}
9152 Assembly files: ${asm_path:-none}
9153 Install prefix: ${prefix}
9154 Library directory: ${libdir}
9156 Static libraries: ${enable_static}
9157 Shared libraries: ${enable_shared}
9158 Public key crypto: ${enable_public_key}
9159 Documentation: ${enable_documentation}