2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for cryptsetup 2.3.3.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
588 PACKAGE_NAME='cryptsetup'
589 PACKAGE_TARNAME='cryptsetup'
590 PACKAGE_VERSION='2.3.3'
591 PACKAGE_STRING='cryptsetup 2.3.3'
595 ac_unique_file="src/cryptsetup.c"
596 ac_default_prefix=/usr
597 # Factoring default headers for most tests.
598 ac_includes_default="\
600 #ifdef HAVE_SYS_TYPES_H
601 # include <sys/types.h>
603 #ifdef HAVE_SYS_STAT_H
604 # include <sys/stat.h>
610 # ifdef HAVE_STDLIB_H
615 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620 #ifdef HAVE_STRINGS_H
621 # include <strings.h>
623 #ifdef HAVE_INTTYPES_H
624 # include <inttypes.h>
634 ac_subst_vars='am__EXEEXT_FALSE
638 DEFAULT_LUKS2_LOCK_DIR_PERMS
639 DEFAULT_LUKS2_LOCK_PATH
640 CRYPTSETUP_TMPFILE_FALSE
641 CRYPTSETUP_TMPFILE_TRUE
643 LIBCRYPTSETUP_VERSION_INFO
644 LIBCRYPTSETUP_VERSION
649 PWQUALITY_STATIC_LIBS
651 DEVMAPPER_STATIC_LIBS
652 DEVMAPPER_STATIC_CFLAGS
653 HAVE_BLKID_STEP_BACK_FALSE
654 HAVE_BLKID_STEP_BACK_TRUE
655 HAVE_BLKID_WIPE_FALSE
661 CRYPTO_INTERNAL_SSE_ARGON2_FALSE
662 CRYPTO_INTERNAL_SSE_ARGON2_TRUE
663 CRYPTO_INTERNAL_ARGON2_FALSE
664 CRYPTO_INTERNAL_ARGON2_TRUE
667 CRYPTO_INTERNAL_PBKDF2_FALSE
668 CRYPTO_INTERNAL_PBKDF2_TRUE
669 CRYPTO_BACKEND_NETTLE_FALSE
670 CRYPTO_BACKEND_NETTLE_TRUE
671 CRYPTO_BACKEND_KERNEL_FALSE
672 CRYPTO_BACKEND_KERNEL_TRUE
673 CRYPTO_BACKEND_NSS_FALSE
674 CRYPTO_BACKEND_NSS_TRUE
675 CRYPTO_BACKEND_OPENSSL_FALSE
676 CRYPTO_BACKEND_OPENSSL_TRUE
677 CRYPTO_BACKEND_GCRYPT_FALSE
678 CRYPTO_BACKEND_GCRYPT_TRUE
682 OPENSSL_STATIC_CFLAGS
710 XGETTEXT_EXTRA_OPTIONS
718 GETTEXT_MACRO_VERSION
783 INSTALL_STRIP_PROGRAM
830 program_transform_name
844 enable_option_checking
846 enable_dependency_tracking
864 enable_static_cryptsetup
867 enable_cryptsetup_reencrypt
868 enable_integritysetup
874 with_libgcrypt_prefix
875 enable_internal_argon2
877 enable_internal_sse_argon2
888 enable_luks_adjust_xts_keysize
893 with_luks2_parallel_threads
894 with_luks2_keyslot_cipher
895 with_luks2_keyslot_keybits
898 with_keyfile_size_maxkb
899 with_passphrase_size_max
901 with_verity_data_block
902 with_verity_hash_block
903 with_verity_salt_size
904 with_verity_fec_roots
907 with_luks2_lock_dir_perms
908 with_default_luks_format
910 ac_precious_vars='build_alias
931 OPENSSL_STATIC_CFLAGS
939 DEVMAPPER_STATIC_CFLAGS
940 DEVMAPPER_STATIC_LIBS
944 # Initialize some variables set by options.
946 ac_init_version=false
947 ac_unrecognized_opts=
949 # The variables have the same names as the options, with
950 # dashes changed to underlines.
958 program_transform_name=s,x,x,
966 # Installation directory options.
967 # These are left unexpanded so users can "make install exec_prefix=/foo"
968 # and all the variables that are supposed to be based on exec_prefix
969 # by default will actually change.
970 # Use braces instead of parens because sh, perl, etc. also accept them.
971 # (The list follows the same order as the GNU Coding Standards.)
972 bindir='${exec_prefix}/bin'
973 sbindir='${exec_prefix}/sbin'
974 libexecdir='${exec_prefix}/libexec'
975 datarootdir='${prefix}/share'
976 datadir='${datarootdir}'
977 sysconfdir='${prefix}/etc'
978 sharedstatedir='${prefix}/com'
979 localstatedir='${prefix}/var'
980 runstatedir='${localstatedir}/run'
981 includedir='${prefix}/include'
982 oldincludedir='/usr/include'
983 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
984 infodir='${datarootdir}/info'
989 libdir='${exec_prefix}/lib'
990 localedir='${datarootdir}/locale'
991 mandir='${datarootdir}/man'
997 # If the previous option needs an argument, assign it.
998 if test -n "$ac_prev"; then
999 eval $ac_prev=\$ac_option
1005 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010 # Accept the important Cygnus configure options, so we can diagnose typos.
1012 case $ac_dashdash$ac_option in
1016 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1018 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1019 bindir=$ac_optarg ;;
1021 -build | --build | --buil | --bui | --bu)
1022 ac_prev=build_alias ;;
1023 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1024 build_alias=$ac_optarg ;;
1026 -cache-file | --cache-file | --cache-fil | --cache-fi \
1027 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1028 ac_prev=cache_file ;;
1029 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1030 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1031 cache_file=$ac_optarg ;;
1033 --config-cache | -C)
1034 cache_file=config.cache ;;
1036 -datadir | --datadir | --datadi | --datad)
1038 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1039 datadir=$ac_optarg ;;
1041 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1042 | --dataroo | --dataro | --datar)
1043 ac_prev=datarootdir ;;
1044 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1045 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1046 datarootdir=$ac_optarg ;;
1048 -disable-* | --disable-*)
1049 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052 as_fn_error $? "invalid feature name: $ac_useropt"
1053 ac_useropt_orig=$ac_useropt
1054 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055 case $ac_user_opts in
1057 "enable_$ac_useropt"
1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1060 ac_unrecognized_sep=', ';;
1062 eval enable_$ac_useropt=no ;;
1064 -docdir | --docdir | --docdi | --doc | --do)
1066 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1067 docdir=$ac_optarg ;;
1069 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1071 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1072 dvidir=$ac_optarg ;;
1074 -enable-* | --enable-*)
1075 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078 as_fn_error $? "invalid feature name: $ac_useropt"
1079 ac_useropt_orig=$ac_useropt
1080 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081 case $ac_user_opts in
1083 "enable_$ac_useropt"
1085 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1086 ac_unrecognized_sep=', ';;
1088 eval enable_$ac_useropt=\$ac_optarg ;;
1090 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1091 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1092 | --exec | --exe | --ex)
1093 ac_prev=exec_prefix ;;
1094 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1095 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1096 | --exec=* | --exe=* | --ex=*)
1097 exec_prefix=$ac_optarg ;;
1099 -gas | --gas | --ga | --g)
1100 # Obsolete; use --with-gas.
1103 -help | --help | --hel | --he | -h)
1104 ac_init_help=long ;;
1105 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1106 ac_init_help=recursive ;;
1107 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1108 ac_init_help=short ;;
1110 -host | --host | --hos | --ho)
1111 ac_prev=host_alias ;;
1112 -host=* | --host=* | --hos=* | --ho=*)
1113 host_alias=$ac_optarg ;;
1115 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119 htmldir=$ac_optarg ;;
1121 -includedir | --includedir | --includedi | --included | --include \
1122 | --includ | --inclu | --incl | --inc)
1123 ac_prev=includedir ;;
1124 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1125 | --includ=* | --inclu=* | --incl=* | --inc=*)
1126 includedir=$ac_optarg ;;
1128 -infodir | --infodir | --infodi | --infod | --info | --inf)
1130 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1131 infodir=$ac_optarg ;;
1133 -libdir | --libdir | --libdi | --libd)
1135 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1136 libdir=$ac_optarg ;;
1138 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1139 | --libexe | --libex | --libe)
1140 ac_prev=libexecdir ;;
1141 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1142 | --libexe=* | --libex=* | --libe=*)
1143 libexecdir=$ac_optarg ;;
1145 -localedir | --localedir | --localedi | --localed | --locale)
1146 ac_prev=localedir ;;
1147 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1148 localedir=$ac_optarg ;;
1150 -localstatedir | --localstatedir | --localstatedi | --localstated \
1151 | --localstate | --localstat | --localsta | --localst | --locals)
1152 ac_prev=localstatedir ;;
1153 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1154 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1155 localstatedir=$ac_optarg ;;
1157 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1160 mandir=$ac_optarg ;;
1162 -nfp | --nfp | --nf)
1163 # Obsolete; use --without-fp.
1166 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167 | --no-cr | --no-c | -n)
1170 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1175 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1176 | --oldin | --oldi | --old | --ol | --o)
1177 ac_prev=oldincludedir ;;
1178 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1179 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1180 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1181 oldincludedir=$ac_optarg ;;
1183 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1186 prefix=$ac_optarg ;;
1188 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1189 | --program-pre | --program-pr | --program-p)
1190 ac_prev=program_prefix ;;
1191 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1192 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1193 program_prefix=$ac_optarg ;;
1195 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1196 | --program-suf | --program-su | --program-s)
1197 ac_prev=program_suffix ;;
1198 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1199 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1200 program_suffix=$ac_optarg ;;
1202 -program-transform-name | --program-transform-name \
1203 | --program-transform-nam | --program-transform-na \
1204 | --program-transform-n | --program-transform- \
1205 | --program-transform | --program-transfor \
1206 | --program-transfo | --program-transf \
1207 | --program-trans | --program-tran \
1208 | --progr-tra | --program-tr | --program-t)
1209 ac_prev=program_transform_name ;;
1210 -program-transform-name=* | --program-transform-name=* \
1211 | --program-transform-nam=* | --program-transform-na=* \
1212 | --program-transform-n=* | --program-transform-=* \
1213 | --program-transform=* | --program-transfor=* \
1214 | --program-transfo=* | --program-transf=* \
1215 | --program-trans=* | --program-tran=* \
1216 | --progr-tra=* | --program-tr=* | --program-t=*)
1217 program_transform_name=$ac_optarg ;;
1219 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1222 pdfdir=$ac_optarg ;;
1224 -psdir | --psdir | --psdi | --psd | --ps)
1226 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230 | -silent | --silent | --silen | --sile | --sil)
1233 -runstatedir | --runstatedir | --runstatedi | --runstated \
1234 | --runstate | --runstat | --runsta | --runst | --runs \
1235 | --run | --ru | --r)
1236 ac_prev=runstatedir ;;
1237 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1238 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1239 | --run=* | --ru=* | --r=*)
1240 runstatedir=$ac_optarg ;;
1242 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1244 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1246 sbindir=$ac_optarg ;;
1248 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1249 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1250 | --sharedst | --shareds | --shared | --share | --shar \
1252 ac_prev=sharedstatedir ;;
1253 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1254 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1255 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1257 sharedstatedir=$ac_optarg ;;
1259 -site | --site | --sit)
1261 -site=* | --site=* | --sit=*)
1264 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1266 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1267 srcdir=$ac_optarg ;;
1269 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1270 | --syscon | --sysco | --sysc | --sys | --sy)
1271 ac_prev=sysconfdir ;;
1272 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1273 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1274 sysconfdir=$ac_optarg ;;
1276 -target | --target | --targe | --targ | --tar | --ta | --t)
1277 ac_prev=target_alias ;;
1278 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1279 target_alias=$ac_optarg ;;
1281 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1284 -version | --version | --versio | --versi | --vers | -V)
1285 ac_init_version=: ;;
1288 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291 as_fn_error $? "invalid package name: $ac_useropt"
1292 ac_useropt_orig=$ac_useropt
1293 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1294 case $ac_user_opts in
1298 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1299 ac_unrecognized_sep=', ';;
1301 eval with_$ac_useropt=\$ac_optarg ;;
1303 -without-* | --without-*)
1304 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1305 # Reject names that are not valid shell variable names.
1306 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307 as_fn_error $? "invalid package name: $ac_useropt"
1308 ac_useropt_orig=$ac_useropt
1309 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1310 case $ac_user_opts in
1314 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1315 ac_unrecognized_sep=', ';;
1317 eval with_$ac_useropt=no ;;
1320 # Obsolete; use --with-x.
1323 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1324 | --x-incl | --x-inc | --x-in | --x-i)
1325 ac_prev=x_includes ;;
1326 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1327 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1328 x_includes=$ac_optarg ;;
1330 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1331 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1332 ac_prev=x_libraries ;;
1333 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1334 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1335 x_libraries=$ac_optarg ;;
1337 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1338 Try \`$0 --help' for more information"
1342 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1343 # Reject names that are not valid shell variable names.
1344 case $ac_envvar in #(
1345 '' | [0-9]* | *[!_$as_cr_alnum]* )
1346 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1348 eval $ac_envvar=\$ac_optarg
1349 export $ac_envvar ;;
1352 # FIXME: should be removed in autoconf 3.0.
1353 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1354 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1355 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1356 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1362 if test -n "$ac_prev"; then
1363 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1364 as_fn_error $? "missing argument to $ac_option"
1367 if test -n "$ac_unrecognized_opts"; then
1368 case $enable_option_checking in
1370 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1371 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1375 # Check all directory arguments for consistency.
1376 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1377 datadir sysconfdir sharedstatedir localstatedir includedir \
1378 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1379 libdir localedir mandir runstatedir
1381 eval ac_val=\$$ac_var
1382 # Remove trailing slashes.
1385 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1386 eval $ac_var=\$ac_val;;
1388 # Be sure to have absolute directory names.
1390 [\\/$]* | ?:[\\/]* ) continue;;
1391 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1393 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1396 # There might be people who depend on the old broken behavior: `$host'
1397 # used to hold the argument of --host etc.
1398 # FIXME: To remove some day.
1401 target=$target_alias
1403 # FIXME: To remove some day.
1404 if test "x$host_alias" != x; then
1405 if test "x$build_alias" = x; then
1406 cross_compiling=maybe
1407 elif test "x$build_alias" != "x$host_alias"; then
1413 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1415 test "$silent" = yes && exec 6>/dev/null
1418 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1419 ac_ls_di=`ls -di .` &&
1420 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1421 as_fn_error $? "working directory cannot be determined"
1422 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1423 as_fn_error $? "pwd does not report name of working directory"
1426 # Find the source files, if location was not specified.
1427 if test -z "$srcdir"; then
1428 ac_srcdir_defaulted=yes
1429 # Try the directory containing this script, then the parent directory.
1430 ac_confdir=`$as_dirname -- "$as_myself" ||
1431 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1432 X"$as_myself" : 'X\(//\)[^/]' \| \
1433 X"$as_myself" : 'X\(//\)$' \| \
1434 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1435 $as_echo X"$as_myself" |
1436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1458 ac_srcdir_defaulted=no
1460 if test ! -r "$srcdir/$ac_unique_file"; then
1461 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1462 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1464 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1466 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1468 # When building in place, set srcdir=.
1469 if test "$ac_abs_confdir" = "$ac_pwd"; then
1472 # Remove unnecessary trailing slashes from srcdir.
1473 # Double slashes in file names in object file debugging info
1474 # mess up M-x gdb in Emacs.
1476 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1478 for ac_var in $ac_precious_vars; do
1479 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1480 eval ac_env_${ac_var}_value=\$${ac_var}
1481 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1482 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1486 # Report the --help message.
1488 if test "$ac_init_help" = "long"; then
1489 # Omit some internal or obsolete options to make the list less imposing.
1490 # This message is too long to be a string in the A/UX 3.1 sh.
1492 \`configure' configures cryptsetup 2.3.3 to adapt to many kinds of systems.
1494 Usage: $0 [OPTION]... [VAR=VALUE]...
1496 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1497 VAR=VALUE. See below for descriptions of some of the useful variables.
1499 Defaults for the options are specified in brackets.
1502 -h, --help display this help and exit
1503 --help=short display options specific to this package
1504 --help=recursive display the short help of all the included packages
1505 -V, --version display version information and exit
1506 -q, --quiet, --silent do not print \`checking ...' messages
1507 --cache-file=FILE cache test results in FILE [disabled]
1508 -C, --config-cache alias for \`--cache-file=config.cache'
1509 -n, --no-create do not create output files
1510 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1512 Installation directories:
1513 --prefix=PREFIX install architecture-independent files in PREFIX
1514 [$ac_default_prefix]
1515 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1518 By default, \`make install' will install all the files in
1519 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1520 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1521 for instance \`--prefix=\$HOME'.
1523 For better control, use the options below.
1525 Fine tuning of the installation directories:
1526 --bindir=DIR user executables [EPREFIX/bin]
1527 --sbindir=DIR system admin executables [EPREFIX/sbin]
1528 --libexecdir=DIR program executables [EPREFIX/libexec]
1529 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1530 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1531 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1532 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1533 --libdir=DIR object code libraries [EPREFIX/lib]
1534 --includedir=DIR C header files [PREFIX/include]
1535 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1536 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1537 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1538 --infodir=DIR info documentation [DATAROOTDIR/info]
1539 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1540 --mandir=DIR man documentation [DATAROOTDIR/man]
1541 --docdir=DIR documentation root [DATAROOTDIR/doc/cryptsetup]
1542 --htmldir=DIR html documentation [DOCDIR]
1543 --dvidir=DIR dvi documentation [DOCDIR]
1544 --pdfdir=DIR pdf documentation [DOCDIR]
1545 --psdir=DIR ps documentation [DOCDIR]
1551 --program-prefix=PREFIX prepend PREFIX to installed program names
1552 --program-suffix=SUFFIX append SUFFIX to installed program names
1553 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1556 --build=BUILD configure for building on BUILD [guessed]
1557 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1561 if test -n "$ac_init_help"; then
1562 case $ac_init_help in
1563 short | recursive ) echo "Configuration of cryptsetup 2.3.3:";;
1568 --disable-option-checking ignore unrecognized --enable/--with options
1569 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1570 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1571 --enable-silent-rules less verbose build output (undo: "make V=1")
1572 --disable-silent-rules verbose build output (undo: "make V=0")
1573 --enable-dependency-tracking
1574 do not reject slow dependency extractors
1575 --disable-dependency-tracking
1576 speeds up one-time build
1577 --enable-static[=PKGS] build static libraries [default=no]
1578 --enable-shared[=PKGS] build shared libraries [default=yes]
1579 --enable-fast-install[=PKGS]
1580 optimize for fast installation [default=yes]
1581 --disable-libtool-lock avoid locking (might break parallel builds)
1582 --disable-rpath do not hardcode runtime library paths
1583 --disable-keyring disable kernel keyring support and builtin kernel
1585 --disable-largefile omit support for large files
1586 --disable-nls do not use Native Language Support
1587 --enable-fips enable FIPS mode restrictions
1588 --enable-pwquality enable password quality checking using pwquality
1590 --enable-passwdqc[=CONFIG_PATH]
1591 enable password quality checking using passwdqc
1592 library (optionally with CONFIG_PATH)
1593 --enable-static-cryptsetup
1594 enable build of static version of tools
1595 --disable-cryptsetup disable cryptsetup support
1596 --disable-veritysetup disable veritysetup support
1597 --disable-cryptsetup-reencrypt
1598 disable cryptsetup-reencrypt tool
1599 --disable-integritysetup
1600 disable integritysetup support
1601 --disable-selinux disable selinux support [default=auto]
1602 --disable-udev disable udev support
1603 --disable-kernel_crypto disable kernel userspace crypto (no benchmark and
1605 --enable-gcrypt-pbkdf2 force enable internal gcrypt PBKDF2
1606 --disable-internal-argon2
1607 disable internal implementation of Argon2 PBKDF
1608 --enable-libargon2 enable external libargon2 (PHC) library (disables
1609 internal bundled version)
1610 --enable-internal-sse-argon2
1611 enable internal SSE implementation of Argon2 PBKDF
1612 --disable-blkid disable use of blkid for device signature detection
1614 --enable-dev-random use /dev/random by default for key generation
1615 (otherwise use /dev/urandom)
1616 --disable-luks-adjust-xts-keysize
1617 XTS mode requires two keys, double default LUKS
1621 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1622 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1623 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1625 --with-aix-soname=aix|svr4|both
1626 shared library versioning (aka "SONAME") variant to
1627 provide on AIX, [default=aix].
1628 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1629 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1630 compiler's sysroot if not specified).
1631 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1632 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1633 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1634 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1635 --without-libintl-prefix don't search for libintl in includedir and libdir
1636 --with-crypto_backend=BACKEND
1637 crypto backend (gcrypt/openssl/nss/kernel/nettle)
1639 --with-libgcrypt-prefix=PFX
1640 prefix where LIBGCRYPT is installed (optional)
1641 --with-plain-hash default password hashing function for plain mode
1643 --with-plain-cipher default cipher for plain mode [aes]
1644 --with-plain-mode default cipher mode for plain mode
1646 --with-plain-keybits default key length in bits for plain mode [256]
1647 --with-luks1-hash default hash function for LUKS1 header [sha256]
1648 --with-luks1-cipher default cipher for LUKS1 [aes]
1649 --with-luks1-mode default cipher mode for LUKS1 [xts-plain64]
1650 --with-luks1-keybits default key length in bits for LUKS1 [256]
1651 --with-luks2-pbkdf default Default PBKDF algorithm (pbkdf2 or
1652 argon2i/argon2id) for LUKS2 [argon2i]
1653 --with-luks1-iter-time default PBKDF2 iteration time for LUKS1 (in ms)
1655 --with-luks2-iter-time default Argon2 PBKDF iteration time for LUKS2 (in
1657 --with-luks2-memory-kb default Argon2 PBKDF memory cost for LUKS2 (in kB)
1659 --with-luks2-parallel-threads
1660 default Argon2 PBKDF max parallel cost for LUKS2 (if
1662 --with-luks2-keyslot-cipher
1663 default fallback cipher for LUKS2 keyslot (if data
1664 encryption is incompatible) [aes-xts-plain64]
1665 --with-luks2-keyslot-keybits
1666 default fallback key size for LUKS2 keyslot (if data
1667 encryption is incompatible) [512]
1668 --with-loopaes-cipher default cipher for loop-AES mode [aes]
1669 --with-loopaes-keybits default key length in bits for loop-AES mode [256]
1670 --with-keyfile-size-maxkb
1671 default maximum keyfile size (in KiB) [8192]
1672 --with-passphrase-size-max
1673 default maximum keyfile size (in characters) [512]
1674 --with-verity-hash default hash function for verity mode [sha256]
1675 --with-verity-data-block
1676 default data block size for verity mode [4096]
1677 --with-verity-hash-block
1678 default hash block size for verity mode [4096]
1679 --with-verity-salt-size default salt size for verity mode [32]
1680 --with-verity-fec-roots default parity bytes for verity FEC [2]
1681 --with-tmpfilesdir default override default path to directory with
1682 systemd temporary files []
1683 --with-luks2-lock-path default path to directory for LUKSv2 locks
1685 --with-luks2-lock-dir-perms
1686 default default luks2 locking directory permissions
1688 --with-default-luks-format=FORMAT
1689 default LUKS format version (LUKS1/LUKS2) [LUKS2]
1691 Some influential environment variables:
1692 CC C compiler command
1693 CFLAGS C compiler flags
1694 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1695 nonstandard directory <lib dir>
1696 LIBS libraries to pass to the linker, e.g. -l<library>
1697 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1698 you have headers in a nonstandard directory <include dir>
1701 User-defined run-time library search path.
1702 PKG_CONFIG path to pkg-config utility
1704 directories to add to pkg-config's search path
1706 path overriding pkg-config's built-in search path
1708 C compiler flags for PWQUALITY, overriding pkg-config
1710 linker flags for PWQUALITY, overriding pkg-config
1712 C compiler flags for DEVMAPPER, overriding pkg-config
1714 linker flags for DEVMAPPER, overriding pkg-config
1716 C compiler flags for JSON_C, overriding pkg-config
1717 JSON_C_LIBS linker flags for JSON_C, overriding pkg-config
1719 C compiler flags for OPENSSL, overriding pkg-config
1721 linker flags for OPENSSL, overriding pkg-config
1722 OPENSSL_STATIC_CFLAGS
1723 C compiler flags for OPENSSL_STATIC, overriding pkg-config
1725 linker flags for OPENSSL_STATIC, overriding pkg-config
1726 NSS_CFLAGS C compiler flags for NSS, overriding pkg-config
1727 NSS_LIBS linker flags for NSS, overriding pkg-config
1729 C compiler flags for LIBARGON2, overriding pkg-config
1731 linker flags for LIBARGON2, overriding pkg-config
1733 C compiler flags for BLKID, overriding pkg-config
1734 BLKID_LIBS linker flags for BLKID, overriding pkg-config
1735 DEVMAPPER_STATIC_CFLAGS
1736 C compiler flags for DEVMAPPER_STATIC, overriding pkg-config
1737 DEVMAPPER_STATIC_LIBS
1738 linker flags for DEVMAPPER_STATIC, overriding pkg-config
1740 value of tmpfilesdir for systemd, overriding pkg-config
1742 Use these variables to override the choices made by `configure' or to help
1743 it to find libraries and programs with nonstandard names/locations.
1745 Report bugs to the package provider.
1750 if test "$ac_init_help" = "recursive"; then
1751 # If there are subdirs, report their specific --help.
1752 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1753 test -d "$ac_dir" ||
1754 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1759 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1761 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1762 # A ".." for each directory in $ac_dir_suffix.
1763 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1764 case $ac_top_builddir_sub in
1765 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1766 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1769 ac_abs_top_builddir=$ac_pwd
1770 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1771 # for backward compatibility:
1772 ac_top_builddir=$ac_top_build_prefix
1775 .) # We are building in place.
1777 ac_top_srcdir=$ac_top_builddir_sub
1778 ac_abs_top_srcdir=$ac_pwd ;;
1779 [\\/]* | ?:[\\/]* ) # Absolute name.
1780 ac_srcdir=$srcdir$ac_dir_suffix;
1781 ac_top_srcdir=$srcdir
1782 ac_abs_top_srcdir=$srcdir ;;
1784 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1785 ac_top_srcdir=$ac_top_build_prefix$srcdir
1786 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1788 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1790 cd "$ac_dir" || { ac_status=$?; continue; }
1791 # Check for guested configure.
1792 if test -f "$ac_srcdir/configure.gnu"; then
1794 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1795 elif test -f "$ac_srcdir/configure"; then
1797 $SHELL "$ac_srcdir/configure" --help=recursive
1799 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1801 cd "$ac_pwd" || { ac_status=$?; break; }
1805 test -n "$ac_init_help" && exit $ac_status
1806 if $ac_init_version; then
1808 cryptsetup configure 2.3.3
1809 generated by GNU Autoconf 2.69
1811 Copyright (C) 2012 Free Software Foundation, Inc.
1812 This configure script is free software; the Free Software Foundation
1813 gives unlimited permission to copy, distribute and modify it.
1818 ## ------------------------ ##
1819 ## Autoconf initialization. ##
1820 ## ------------------------ ##
1822 # ac_fn_c_try_compile LINENO
1823 # --------------------------
1824 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1825 ac_fn_c_try_compile ()
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 rm -f conftest.$ac_objext
1829 if { { ac_try="$ac_compile"
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_compile") 2>conftest.err
1838 if test -s conftest.err; then
1839 grep -v '^ *+' conftest.err >conftest.er1
1840 cat conftest.er1 >&5
1841 mv -f conftest.er1 conftest.err
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; } && {
1845 test -z "$ac_c_werror_flag" ||
1846 test ! -s conftest.err
1847 } && test -s conftest.$ac_objext; then :
1850 $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856 as_fn_set_status $ac_retval
1858 } # ac_fn_c_try_compile
1860 # ac_fn_c_try_cpp LINENO
1861 # ----------------------
1862 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 if { { ac_try="$ac_cpp conftest.$ac_ext"
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1875 if test -s conftest.err; then
1876 grep -v '^ *+' conftest.err >conftest.er1
1877 cat conftest.er1 >&5
1878 mv -f conftest.er1 conftest.err
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } > conftest.i && {
1882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1883 test ! -s conftest.err
1887 $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893 as_fn_set_status $ac_retval
1897 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1898 # -------------------------------------------------------
1899 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1900 # the include files in INCLUDES and setting the cache variable VAR
1902 ac_fn_c_check_header_mongrel ()
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 if eval \${$3+:} false; then :
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907 $as_echo_n "checking for $2... " >&6; }
1908 if eval \${$3+:} false; then :
1909 $as_echo_n "(cached) " >&6
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913 $as_echo "$ac_res" >&6; }
1915 # Is the header compilable?
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1917 $as_echo_n "checking $2 usability... " >&6; }
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1923 if ac_fn_c_try_compile "$LINENO"; then :
1924 ac_header_compiler=yes
1926 ac_header_compiler=no
1928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1930 $as_echo "$ac_header_compiler" >&6; }
1932 # Is the header present?
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1934 $as_echo_n "checking $2 presence... " >&6; }
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1939 if ac_fn_c_try_cpp "$LINENO"; then :
1940 ac_header_preproc=yes
1942 ac_header_preproc=no
1944 rm -f conftest.err conftest.i conftest.$ac_ext
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1946 $as_echo "$ac_header_preproc" >&6; }
1948 # So? What about this header?
1949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1952 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1954 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1958 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1960 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1962 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1964 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1966 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1970 $as_echo_n "checking for $2... " >&6; }
1971 if eval \${$3+:} false; then :
1972 $as_echo_n "(cached) " >&6
1974 eval "$3=\$ac_header_compiler"
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1978 $as_echo "$ac_res" >&6; }
1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982 } # ac_fn_c_check_header_mongrel
1984 # ac_fn_c_try_run LINENO
1985 # ----------------------
1986 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1987 # that executables *can* be run.
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 if { { ac_try="$ac_link"
1993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994 *) ac_try_echo=$ac_try;;
1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998 (eval "$ac_link") 2>&5
2000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2002 { { case "(($ac_try" in
2003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2004 *) ac_try_echo=$ac_try;;
2006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2007 $as_echo "$ac_try_echo"; } >&5
2008 (eval "$ac_try") 2>&5
2010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2011 test $ac_status = 0; }; }; then :
2014 $as_echo "$as_me: program exited with status $ac_status" >&5
2015 $as_echo "$as_me: failed program was:" >&5
2016 sed 's/^/| /' conftest.$ac_ext >&5
2018 ac_retval=$ac_status
2020 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022 as_fn_set_status $ac_retval
2026 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2027 # -------------------------------------------------------
2028 # Tests whether HEADER exists and can be compiled using the include files in
2029 # INCLUDES, setting the cache variable VAR accordingly.
2030 ac_fn_c_check_header_compile ()
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034 $as_echo_n "checking for $2... " >&6; }
2035 if eval \${$3+:} false; then :
2036 $as_echo_n "(cached) " >&6
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2043 if ac_fn_c_try_compile "$LINENO"; then :
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; }
2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055 } # ac_fn_c_check_header_compile
2057 # ac_fn_c_try_link LINENO
2058 # -----------------------
2059 # Try to link conftest.$ac_ext, and return whether this succeeded.
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 rm -f conftest.$ac_objext conftest$ac_exeext
2064 if { { ac_try="$ac_link"
2066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2067 *) ac_try_echo=$ac_try;;
2069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2070 $as_echo "$ac_try_echo"; } >&5
2071 (eval "$ac_link") 2>conftest.err
2073 if test -s conftest.err; then
2074 grep -v '^ *+' conftest.err >conftest.er1
2075 cat conftest.er1 >&5
2076 mv -f conftest.er1 conftest.err
2078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2079 test $ac_status = 0; } && {
2080 test -z "$ac_c_werror_flag" ||
2081 test ! -s conftest.err
2082 } && test -s conftest$ac_exeext && {
2083 test "$cross_compiling" = yes ||
2084 test -x conftest$ac_exeext
2088 $as_echo "$as_me: failed program was:" >&5
2089 sed 's/^/| /' conftest.$ac_ext >&5
2093 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2094 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2095 # interfere with the next link command; also delete a directory that is
2096 # left behind by Apple's compiler. We do this before executing the actions.
2097 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2098 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099 as_fn_set_status $ac_retval
2101 } # ac_fn_c_try_link
2103 # ac_fn_c_check_func LINENO FUNC VAR
2104 # ----------------------------------
2105 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2106 ac_fn_c_check_func ()
2108 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2110 $as_echo_n "checking for $2... " >&6; }
2111 if eval \${$3+:} false; then :
2112 $as_echo_n "(cached) " >&6
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2116 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2118 #define $2 innocuous_$2
2120 /* System header to define __stub macros and hopefully few prototypes,
2121 which can conflict with char $2 (); below.
2122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2123 <limits.h> exists even on freestanding compilers. */
2126 # include <limits.h>
2128 # include <assert.h>
2133 /* Override any GCC internal prototype to avoid an error.
2134 Use char because int might match the return type of a GCC
2135 builtin and then its argument prototype would still apply. */
2140 /* The GNU C library defines this for functions which it implements
2141 to always fail with ENOSYS. Some functions are actually named
2142 something starting with __ and the normal name is an alias. */
2143 #if defined __stub_$2 || defined __stub___$2
2155 if ac_fn_c_try_link "$LINENO"; then :
2160 rm -f core conftest.err conftest.$ac_objext \
2161 conftest$ac_exeext conftest.$ac_ext
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2165 $as_echo "$ac_res" >&6; }
2166 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168 } # ac_fn_c_check_func
2170 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2171 # ---------------------------------------------
2172 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2174 ac_fn_c_check_decl ()
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 as_decl_name=`echo $2|sed 's/ *(.*//'`
2178 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2180 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2181 if eval \${$3+:} false; then :
2182 $as_echo_n "(cached) " >&6
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2190 #ifndef $as_decl_name
2192 (void) $as_decl_use;
2194 (void) $as_decl_name;
2202 if ac_fn_c_try_compile "$LINENO"; then :
2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2211 $as_echo "$ac_res" >&6; }
2212 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214 } # ac_fn_c_check_decl
2216 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2217 # -------------------------------------------
2218 # Tests whether TYPE exists after having included INCLUDES, setting cache
2219 # variable VAR accordingly.
2220 ac_fn_c_check_type ()
2222 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2224 $as_echo_n "checking for $2... " >&6; }
2225 if eval \${$3+:} false; then :
2226 $as_echo_n "(cached) " >&6
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2241 if ac_fn_c_try_compile "$LINENO"; then :
2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2254 if ac_fn_c_try_compile "$LINENO"; then :
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2265 $as_echo "$ac_res" >&6; }
2266 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2268 } # ac_fn_c_check_type
2269 cat >config.log <<_ACEOF
2270 This file contains any messages produced by compilers while
2271 running configure, to aid debugging if configure makes a mistake.
2273 It was created by cryptsetup $as_me 2.3.3, which was
2274 generated by GNU Autoconf 2.69. Invocation command line was
2286 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2287 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2288 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2289 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2290 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2292 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2293 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2295 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2296 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2297 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2298 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2299 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2300 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2301 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 test -z "$as_dir" && as_dir=.
2310 $as_echo "PATH: $as_dir"
2326 # Keep a trace of the command line.
2327 # Strip out --no-create and --no-recursion so they do not pile up.
2328 # Strip out --silent because we don't want to record it for future runs.
2329 # Also quote any args containing shell meta-characters.
2330 # Make two passes to allow for proper duplicate-argument suppression.
2334 ac_must_keep_next=false
2340 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2342 | -silent | --silent | --silen | --sile | --sil)
2345 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2348 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2350 as_fn_append ac_configure_args1 " '$ac_arg'"
2351 if test $ac_must_keep_next = true; then
2352 ac_must_keep_next=false # Got value, back to normal.
2355 *=* | --config-cache | -C | -disable-* | --disable-* \
2356 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2357 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2358 | -with-* | --with-* | -without-* | --without-* | --x)
2359 case "$ac_configure_args0 " in
2360 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2363 -* ) ac_must_keep_next=true ;;
2366 as_fn_append ac_configure_args " '$ac_arg'"
2371 { ac_configure_args0=; unset ac_configure_args0;}
2372 { ac_configure_args1=; unset ac_configure_args1;}
2374 # When interrupted or exit'd, cleanup temporary files, and complete
2375 # config.log. We remove comments because anyway the quotes in there
2376 # would cause problems or look ugly.
2377 # WARNING: Use '\'' to represent an apostrophe within the trap.
2378 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2379 trap 'exit_status=$?
2380 # Save into config.log some information that might help in debugging.
2384 $as_echo "## ---------------- ##
2385 ## Cache variables. ##
2386 ## ---------------- ##"
2388 # The following way of writing the cache mishandles newlines in values,
2390 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2391 eval ac_val=\$$ac_var
2395 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2396 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2399 _ | IFS | as_nl) ;; #(
2400 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2401 *) { eval $ac_var=; unset $ac_var;} ;;
2406 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2407 *${as_nl}ac_space=\ *)
2409 "s/'\''/'\''\\\\'\'''\''/g;
2410 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2413 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2420 $as_echo "## ----------------- ##
2421 ## Output variables. ##
2422 ## ----------------- ##"
2424 for ac_var in $ac_subst_vars
2426 eval ac_val=\$$ac_var
2428 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2430 $as_echo "$ac_var='\''$ac_val'\''"
2434 if test -n "$ac_subst_files"; then
2435 $as_echo "## ------------------- ##
2436 ## File substitutions. ##
2437 ## ------------------- ##"
2439 for ac_var in $ac_subst_files
2441 eval ac_val=\$$ac_var
2443 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2445 $as_echo "$ac_var='\''$ac_val'\''"
2450 if test -s confdefs.h; then
2451 $as_echo "## ----------- ##
2458 test "$ac_signal" != 0 &&
2459 $as_echo "$as_me: caught signal $ac_signal"
2460 $as_echo "$as_me: exit $exit_status"
2462 rm -f core *.core core.conftest.* &&
2463 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2466 for ac_signal in 1 2 13 15; do
2467 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2471 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2472 rm -f -r conftest* confdefs.h
2474 $as_echo "/* confdefs.h */" > confdefs.h
2476 # Predefined preprocessor variables.
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_NAME "$PACKAGE_NAME"
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2486 cat >>confdefs.h <<_ACEOF
2487 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2490 cat >>confdefs.h <<_ACEOF
2491 #define PACKAGE_STRING "$PACKAGE_STRING"
2494 cat >>confdefs.h <<_ACEOF
2495 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2498 cat >>confdefs.h <<_ACEOF
2499 #define PACKAGE_URL "$PACKAGE_URL"
2503 # Let the site file select an alternate cache file if it wants to.
2504 # Prefer an explicitly selected file to automatically selected ones.
2507 if test -n "$CONFIG_SITE"; then
2508 # We do not want a PATH search for config.site.
2509 case $CONFIG_SITE in #((
2510 -*) ac_site_file1=./$CONFIG_SITE;;
2511 */*) ac_site_file1=$CONFIG_SITE;;
2512 *) ac_site_file1=./$CONFIG_SITE;;
2514 elif test "x$prefix" != xNONE; then
2515 ac_site_file1=$prefix/share/config.site
2516 ac_site_file2=$prefix/etc/config.site
2518 ac_site_file1=$ac_default_prefix/share/config.site
2519 ac_site_file2=$ac_default_prefix/etc/config.site
2521 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2523 test "x$ac_site_file" = xNONE && continue
2524 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2526 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2527 sed 's/^/| /' "$ac_site_file" >&5
2529 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2531 as_fn_error $? "failed to load site script $ac_site_file
2532 See \`config.log' for more details" "$LINENO" 5; }
2536 if test -r "$cache_file"; then
2537 # Some versions of bash will fail to source /dev/null (special files
2538 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2539 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2541 $as_echo "$as_me: loading cache $cache_file" >&6;}
2543 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2544 *) . "./$cache_file";;
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2549 $as_echo "$as_me: creating cache $cache_file" >&6;}
2553 gt_needs="$gt_needs need-ngettext"
2554 # Check that the precious variables saved in the cache have kept the same
2556 ac_cache_corrupted=false
2557 for ac_var in $ac_precious_vars; do
2558 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2559 eval ac_new_set=\$ac_env_${ac_var}_set
2560 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2561 eval ac_new_val=\$ac_env_${ac_var}_value
2562 case $ac_old_set,$ac_new_set in
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2565 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2566 ac_cache_corrupted=: ;;
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2569 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2570 ac_cache_corrupted=: ;;
2573 if test "x$ac_old_val" != "x$ac_new_val"; then
2574 # differences in whitespace do not lead to failure.
2575 ac_old_val_w=`echo x $ac_old_val`
2576 ac_new_val_w=`echo x $ac_new_val`
2577 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2579 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2580 ac_cache_corrupted=:
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2583 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2584 eval $ac_var=\$ac_old_val
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2587 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2589 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2592 # Pass precious variables to config.status.
2593 if test "$ac_new_set" = set; then
2595 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2596 *) ac_arg=$ac_var=$ac_new_val ;;
2598 case " $ac_configure_args " in
2599 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2600 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2604 if $ac_cache_corrupted; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2608 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2609 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2611 ## -------------------- ##
2612 ## Main body of script. ##
2613 ## -------------------- ##
2616 ac_cpp='$CPP $CPPFLAGS'
2617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2623 LIBCRYPTSETUP_VERSION=$(echo $PACKAGE_VERSION | cut -f1 -d-)
2624 LIBCRYPTSETUP_VERSION_INFO=18:0:6
2626 # Check whether --enable-silent-rules was given.
2627 if test "${enable_silent_rules+set}" = set; then :
2628 enableval=$enable_silent_rules;
2631 case $enable_silent_rules in # (((
2632 yes) AM_DEFAULT_VERBOSITY=0;;
2633 no) AM_DEFAULT_VERBOSITY=1;;
2634 *) AM_DEFAULT_VERBOSITY=0;;
2636 am_make=${MAKE-make}
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2638 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2639 if ${am_cv_make_support_nested_variables+:} false; then :
2640 $as_echo_n "(cached) " >&6
2642 if $as_echo 'TRUE=$(BAR$(V))
2648 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2649 am_cv_make_support_nested_variables=yes
2651 am_cv_make_support_nested_variables=no
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2655 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2656 if test $am_cv_make_support_nested_variables = yes; then
2658 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2660 AM_V=$AM_DEFAULT_VERBOSITY
2661 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2668 ac_config_headers="$ac_config_headers config.h:config.h.in"
2671 # We do not want to run test in parallel. Really.
2672 # http://lists.gnu.org/archive/html/automake/2013-01/msg00060.html
2674 # For old automake use this
2675 #AM_INIT_AUTOMAKE(dist-xz subdir-objects)
2676 am__api_version='1.16'
2679 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2680 if test -f "$ac_dir/install-sh"; then
2682 ac_install_sh="$ac_aux_dir/install-sh -c"
2684 elif test -f "$ac_dir/install.sh"; then
2686 ac_install_sh="$ac_aux_dir/install.sh -c"
2688 elif test -f "$ac_dir/shtool"; then
2690 ac_install_sh="$ac_aux_dir/shtool install -c"
2694 if test -z "$ac_aux_dir"; then
2695 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2698 # These three variables are undocumented and unsupported,
2699 # and are intended to be withdrawn in a future Autoconf release.
2700 # They can cause serious problems if a builder's source tree is in a directory
2701 # whose full name contains unusual characters.
2702 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2703 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2704 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2707 # Find a good install program. We prefer a C program (faster),
2708 # so one script is as good as another. But avoid the broken or
2709 # incompatible versions:
2710 # SysV /etc/install, /usr/sbin/install
2711 # SunOS /usr/etc/install
2712 # IRIX /sbin/install
2714 # AmigaOS /C/install, which installs bootblocks on floppy discs
2715 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2716 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2717 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2718 # OS/2's system install, which has a completely different semantic
2719 # ./install, which can be erroneously created by make from ./install.sh.
2720 # Reject install programs that cannot install multiple files.
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2722 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2723 if test -z "$INSTALL"; then
2724 if ${ac_cv_path_install+:} false; then :
2725 $as_echo_n "(cached) " >&6
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 test -z "$as_dir" && as_dir=.
2732 # Account for people who put trailing slashes in PATH elements.
2733 case $as_dir/ in #((
2734 ./ | .// | /[cC]/* | \
2735 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2736 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2739 # OSF1 and SCO ODT 3.0 have their own names for install.
2740 # Don't use installbsd from OSF since it installs stuff as root
2742 for ac_prog in ginstall scoinst install; do
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2745 if test $ac_prog = install &&
2746 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2747 # AIX install. It has an incompatible calling convention.
2749 elif test $ac_prog = install &&
2750 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2751 # program-specific install script used by HP pwplus--don't use.
2754 rm -rf conftest.one conftest.two conftest.dir
2755 echo one > conftest.one
2756 echo two > conftest.two
2758 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2759 test -s conftest.one && test -s conftest.two &&
2760 test -s conftest.dir/conftest.one &&
2761 test -s conftest.dir/conftest.two
2763 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2776 rm -rf conftest.one conftest.two conftest.dir
2779 if test "${ac_cv_path_install+set}" = set; then
2780 INSTALL=$ac_cv_path_install
2782 # As a last resort, use the slow shell script. Don't cache a
2783 # value for INSTALL within a source directory, because that will
2784 # break other packages using the cache if that directory is
2785 # removed, or if the value is a relative name.
2786 INSTALL=$ac_install_sh
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2790 $as_echo "$INSTALL" >&6; }
2792 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2793 # It thinks the first close brace ends the variable substitution.
2794 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2796 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2798 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2801 $as_echo_n "checking whether build environment is sane... " >&6; }
2802 # Reject unsafe characters in $srcdir or the absolute working directory
2803 # name. Accept space and tab only in the latter.
2807 *[\\\"\#\$\&\'\`$am_lf]*)
2808 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2811 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2812 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2815 # Do 'set' in a subshell so we don't clobber the current shell's
2816 # arguments. Must try -L first in case configure is actually a
2817 # symlink; some systems play weird games with the mod time of symlinks
2818 # (eg FreeBSD returns the mod time of the symlink's containing
2822 for am_try in 1 2; do
2823 echo "timestamp, slept: $am_has_slept" > conftest.file
2824 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2825 if test "$*" = "X"; then
2827 set X `ls -t "$srcdir/configure" conftest.file`
2829 if test "$*" != "X $srcdir/configure conftest.file" \
2830 && test "$*" != "X conftest.file $srcdir/configure"; then
2832 # If neither matched, then we have a broken ls. This can happen
2833 # if, for instance, CONFIG_SHELL is bash and it inherits a
2834 # broken ls alias from the environment. This has actually
2835 # happened. Such a system could not be considered "sane".
2836 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2837 alias in your environment" "$LINENO" 5
2839 if test "$2" = conftest.file || test $am_try -eq 2; then
2846 test "$2" = conftest.file
2852 as_fn_error $? "newly created file is older than distributed files!
2853 Check your system clock" "$LINENO" 5
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2856 $as_echo "yes" >&6; }
2857 # If we didn't sleep, we still need to ensure time stamps of config.status and
2858 # generated files are strictly newer.
2860 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2867 test "$program_prefix" != NONE &&
2868 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2869 # Use a double $ so make ignores it.
2870 test "$program_suffix" != NONE &&
2871 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2872 # Double any \ or $.
2873 # By default was `s,x,x', remove it if useless.
2874 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2875 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2877 # Expand $ac_aux_dir to an absolute path.
2878 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2880 if test x"${MISSING+set}" != xset; then
2883 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2885 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2888 # Use eval to expand $SHELL
2889 if eval "$MISSING --is-lightweight"; then
2890 am_missing_run="$MISSING "
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2894 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2897 if test x"${install_sh+set}" != xset; then
2900 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2902 install_sh="\${SHELL} $am_aux_dir/install-sh"
2906 # Installed binaries are usually stripped using 'strip' when the user
2907 # run "make install-strip". However 'strip' might not be the right
2908 # tool to use in cross-compilation environments, therefore Automake
2909 # will honor the 'STRIP' environment variable to overrule this program.
2910 if test "$cross_compiling" != no; then
2911 if test -n "$ac_tool_prefix"; then
2912 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2913 set dummy ${ac_tool_prefix}strip; ac_word=$2
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if ${ac_cv_prog_STRIP+:} false; then :
2917 $as_echo_n "(cached) " >&6
2919 if test -n "$STRIP"; then
2920 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 STRIP=$ac_cv_prog_STRIP
2940 if test -n "$STRIP"; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2942 $as_echo "$STRIP" >&6; }
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945 $as_echo "no" >&6; }
2950 if test -z "$ac_cv_prog_STRIP"; then
2952 # Extract the first word of "strip", so it can be a program name with args.
2953 set dummy strip; ac_word=$2
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2955 $as_echo_n "checking for $ac_word... " >&6; }
2956 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2957 $as_echo_n "(cached) " >&6
2959 if test -n "$ac_ct_STRIP"; then
2960 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 test -z "$as_dir" && as_dir=.
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2969 ac_cv_prog_ac_ct_STRIP="strip"
2970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2980 if test -n "$ac_ct_STRIP"; then
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2982 $as_echo "$ac_ct_STRIP" >&6; }
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985 $as_echo "no" >&6; }
2988 if test "x$ac_ct_STRIP" = x; then
2991 case $cross_compiling:$ac_tool_warned in
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2995 ac_tool_warned=yes ;;
3000 STRIP="$ac_cv_prog_STRIP"
3004 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3007 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3008 if test -z "$MKDIR_P"; then
3009 if ${ac_cv_path_mkdir+:} false; then :
3010 $as_echo_n "(cached) " >&6
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3016 test -z "$as_dir" && as_dir=.
3017 for ac_prog in mkdir gmkdir; do
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3020 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3021 'mkdir (GNU coreutils) '* | \
3022 'mkdir (coreutils) '* | \
3023 'mkdir (fileutils) '4.1*)
3024 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3034 test -d ./--version && rmdir ./--version
3035 if test "${ac_cv_path_mkdir+set}" = set; then
3036 MKDIR_P="$ac_cv_path_mkdir -p"
3038 # As a last resort, use the slow shell script. Don't cache a
3039 # value for MKDIR_P within a source directory, because that will
3040 # break other packages using the cache if that directory is
3041 # removed, or if the value is a relative name.
3042 MKDIR_P="$ac_install_sh -d"
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3046 $as_echo "$MKDIR_P" >&6; }
3048 for ac_prog in gawk mawk nawk awk
3050 # Extract the first word of "$ac_prog", so it can be a program name with args.
3051 set dummy $ac_prog; ac_word=$2
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3053 $as_echo_n "checking for $ac_word... " >&6; }
3054 if ${ac_cv_prog_AWK+:} false; then :
3055 $as_echo_n "(cached) " >&6
3057 if test -n "$AWK"; then
3058 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 test -z "$as_dir" && as_dir=.
3065 for ac_exec_ext in '' $ac_executable_extensions; do
3066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3067 ac_cv_prog_AWK="$ac_prog"
3068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 if test -n "$AWK"; then
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3080 $as_echo "$AWK" >&6; }
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083 $as_echo "no" >&6; }
3087 test -n "$AWK" && break
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3091 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3093 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3094 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3095 $as_echo_n "(cached) " >&6
3097 cat >conftest.make <<\_ACEOF
3100 @echo '@@@%%%=$(MAKE)=@@@%%%'
3102 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3103 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3105 eval ac_cv_prog_make_${ac_make}_set=yes;;
3107 eval ac_cv_prog_make_${ac_make}_set=no;;
3111 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3113 $as_echo "yes" >&6; }
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3118 SET_MAKE="MAKE=${MAKE-make}"
3121 rm -rf .tst 2>/dev/null
3122 mkdir .tst 2>/dev/null
3123 if test -d .tst; then
3128 rmdir .tst 2>/dev/null
3130 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3131 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3132 # is not polluted with repeated "-I."
3133 am__isrc=' -I$(srcdir)'
3134 # test to see if srcdir already configured
3135 if test -f $srcdir/config.status; then
3136 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3140 # test whether we have cygpath
3141 if test -z "$CYGPATH_W"; then
3142 if (cygpath --version) >/dev/null 2>/dev/null; then
3143 CYGPATH_W='cygpath -w'
3150 # Define the identity of the package.
3151 PACKAGE='cryptsetup'
3155 cat >>confdefs.h <<_ACEOF
3156 #define PACKAGE "$PACKAGE"
3160 cat >>confdefs.h <<_ACEOF
3161 #define VERSION "$VERSION"
3164 # Some tools Automake needs.
3166 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3169 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3172 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3175 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3178 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3180 # For better backward compatibility. To be removed once Automake 1.9.x
3181 # dies out for good. For more background, see:
3182 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3183 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3184 mkdir_p='$(MKDIR_P)'
3186 # We need awk for the "check" target (and possibly the TAP driver). The
3187 # system "awk" is bad on some platforms.
3188 # Always define AMTAR for backward compatibility. Yes, it's still used
3189 # in the wild :-( We should find a proper way to deprecate it ...
3193 # We'll loop over all known methods to create a tar archive until one works.
3194 _am_tools='gnutar pax cpio none'
3196 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3203 # POSIX will say in a future version that running "rm -f" with no argument
3204 # is OK; and we want to be able to make that assumption in our Makefile
3205 # recipes. So use an aggressive probe to check that the usage we want is
3206 # actually supported "in the wild" to an acceptable degree.
3207 # See automake bug#10828.
3208 # To make any issue more visible, cause the running configure to be aborted
3209 # by default if the 'rm' program in use doesn't match our expectations; the
3210 # user can still override this though.
3211 if rm -f && rm -fr && rm -rf; then : OK; else
3215 Your 'rm' program seems unable to run without file operands specified
3216 on the command line, even when the '-f' option is present. This is contrary
3217 to the behaviour of most rm programs out there, and not conforming with
3218 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3220 Please tell bug-automake@gnu.org about your system, including the value
3221 of your $PATH and any error possibly output before this message. This
3222 can help us improve future automake versions.
3225 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3226 echo 'Configuration will proceed anyway, since you have set the' >&2
3227 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3231 Aborting the configuration process, to ensure you take notice of the issue.
3233 You can download and install GNU coreutils to get an 'rm' implementation
3234 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3236 If you want to complete the configuration process using your problematic
3237 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3238 to "yes", and re-run configure.
3241 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3246 if test "x$prefix" = "xNONE"; then
3251 # Make sure we can run config.sub.
3252 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3253 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3256 $as_echo_n "checking build system type... " >&6; }
3257 if ${ac_cv_build+:} false; then :
3258 $as_echo_n "(cached) " >&6
3260 ac_build_alias=$build_alias
3261 test "x$ac_build_alias" = x &&
3262 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3263 test "x$ac_build_alias" = x &&
3264 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3265 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3266 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3270 $as_echo "$ac_cv_build" >&6; }
3271 case $ac_cv_build in
3273 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3276 ac_save_IFS=$IFS; IFS='-'
3282 # Remember, the first character of IFS is used to create $*,
3283 # except with old shells:
3286 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3290 $as_echo_n "checking host system type... " >&6; }
3291 if ${ac_cv_host+:} false; then :
3292 $as_echo_n "(cached) " >&6
3294 if test "x$host_alias" = x; then
3295 ac_cv_host=$ac_cv_build
3297 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3298 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3303 $as_echo "$ac_cv_host" >&6; }
3306 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3309 ac_save_IFS=$IFS; IFS='-'
3315 # Remember, the first character of IFS is used to create $*,
3316 # except with old shells:
3319 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3322 DEPDIR="${am__leading_dot}deps"
3324 ac_config_commands="$ac_config_commands depfiles"
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3327 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3328 cat > confinc.mk << 'END'
3330 @echo this is the am__doit target >confinc.out
3335 # BSD make does it like this.
3336 echo '.include "confinc.mk" # ignored' > confmf.BSD
3337 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3338 echo 'include confinc.mk # ignored' > confmf.GNU
3340 for s in GNU BSD; do
3341 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3342 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }
3346 case $?:`cat confinc.out 2>/dev/null` in #(
3347 '0:this is the am__doit target') :
3350 am__include='.include' am__quote='"' ;; #(
3352 am__include='include' am__quote='' ;;
3357 if test "$am__include" != "#"; then
3358 _am_result="yes ($s style)"
3362 rm -f confinc.* confmf.*
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3364 $as_echo "${_am_result}" >&6; }
3366 # Check whether --enable-dependency-tracking was given.
3367 if test "${enable_dependency_tracking+set}" = set; then :
3368 enableval=$enable_dependency_tracking;
3371 if test "x$enable_dependency_tracking" != xno; then
3372 am_depcomp="$ac_aux_dir/depcomp"
3376 if test "x$enable_dependency_tracking" != xno; then
3386 ac_cpp='$CPP $CPPFLAGS'
3387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390 if test -n "$ac_tool_prefix"; then
3391 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3392 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 $as_echo_n "checking for $ac_word... " >&6; }
3395 if ${ac_cv_prog_CC+:} false; then :
3396 $as_echo_n "(cached) " >&6
3398 if test -n "$CC"; then
3399 ac_cv_prog_CC="$CC" # Let the user override the test.
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 test -z "$as_dir" && as_dir=.
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3408 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3419 if test -n "$CC"; then
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3421 $as_echo "$CC" >&6; }
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3429 if test -z "$ac_cv_prog_CC"; then
3431 # Extract the first word of "gcc", so it can be a program name with args.
3432 set dummy gcc; ac_word=$2
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434 $as_echo_n "checking for $ac_word... " >&6; }
3435 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3436 $as_echo_n "(cached) " >&6
3438 if test -n "$ac_ct_CC"; then
3439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3448 ac_cv_prog_ac_ct_CC="gcc"
3449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3458 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3459 if test -n "$ac_ct_CC"; then
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3461 $as_echo "$ac_ct_CC" >&6; }
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464 $as_echo "no" >&6; }
3467 if test "x$ac_ct_CC" = x; then
3470 case $cross_compiling:$ac_tool_warned in
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3474 ac_tool_warned=yes ;;
3482 if test -z "$CC"; then
3483 if test -n "$ac_tool_prefix"; then
3484 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3485 set dummy ${ac_tool_prefix}cc; ac_word=$2
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3487 $as_echo_n "checking for $ac_word... " >&6; }
3488 if ${ac_cv_prog_CC+:} false; then :
3489 $as_echo_n "(cached) " >&6
3491 if test -n "$CC"; then
3492 ac_cv_prog_CC="$CC" # Let the user override the test.
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 test -z "$as_dir" && as_dir=.
3499 for ac_exec_ext in '' $ac_executable_extensions; do
3500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3501 ac_cv_prog_CC="${ac_tool_prefix}cc"
3502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 if test -n "$CC"; then
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3514 $as_echo "$CC" >&6; }
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3517 $as_echo "no" >&6; }
3523 if test -z "$CC"; then
3524 # Extract the first word of "cc", so it can be a program name with args.
3525 set dummy cc; ac_word=$2
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527 $as_echo_n "checking for $ac_word... " >&6; }
3528 if ${ac_cv_prog_CC+:} false; then :
3529 $as_echo_n "(cached) " >&6
3531 if test -n "$CC"; then
3532 ac_cv_prog_CC="$CC" # Let the user override the test.
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 test -z "$as_dir" && as_dir=.
3540 for ac_exec_ext in '' $ac_executable_extensions; do
3541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3542 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3543 ac_prog_rejected=yes
3547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 if test $ac_prog_rejected = yes; then
3555 # We found a bogon in the path, so make sure we never use it.
3556 set dummy $ac_cv_prog_CC
3558 if test $# != 0; then
3559 # We chose a different compiler from the bogus one.
3560 # However, it has the same basename, so the bogon will be chosen
3561 # first if we set CC to just the basename; use the full file name.
3563 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3569 if test -n "$CC"; then
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3571 $as_echo "$CC" >&6; }
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574 $as_echo "no" >&6; }
3579 if test -z "$CC"; then
3580 if test -n "$ac_tool_prefix"; then
3581 for ac_prog in cl.exe
3583 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3584 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3586 $as_echo_n "checking for $ac_word... " >&6; }
3587 if ${ac_cv_prog_CC+:} false; then :
3588 $as_echo_n "(cached) " >&6
3590 if test -n "$CC"; then
3591 ac_cv_prog_CC="$CC" # Let the user override the test.
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 test -z "$as_dir" && as_dir=.
3598 for ac_exec_ext in '' $ac_executable_extensions; do
3599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3600 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 if test -n "$CC"; then
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3613 $as_echo "$CC" >&6; }
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616 $as_echo "no" >&6; }
3620 test -n "$CC" && break
3623 if test -z "$CC"; then
3625 for ac_prog in cl.exe
3627 # Extract the first word of "$ac_prog", so it can be a program name with args.
3628 set dummy $ac_prog; ac_word=$2
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 $as_echo_n "checking for $ac_word... " >&6; }
3631 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3632 $as_echo_n "(cached) " >&6
3634 if test -n "$ac_ct_CC"; then
3635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641 test -z "$as_dir" && as_dir=.
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3644 ac_cv_prog_ac_ct_CC="$ac_prog"
3645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3655 if test -n "$ac_ct_CC"; then
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3657 $as_echo "$ac_ct_CC" >&6; }
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 $as_echo "no" >&6; }
3664 test -n "$ac_ct_CC" && break
3667 if test "x$ac_ct_CC" = x; then
3670 case $cross_compiling:$ac_tool_warned in
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3674 ac_tool_warned=yes ;;
3683 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3685 as_fn_error $? "no acceptable C compiler found in \$PATH
3686 See \`config.log' for more details" "$LINENO" 5; }
3688 # Provide some information about the compiler.
3689 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3692 for ac_option in --version -v -V -qversion; do
3693 { { ac_try="$ac_compiler $ac_option >&5"
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3699 $as_echo "$ac_try_echo"; } >&5
3700 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3702 if test -s conftest.err; then
3704 ... rest of stderr output deleted ...
3705 10q' conftest.err >conftest.er1
3706 cat conftest.er1 >&5
3708 rm -f conftest.er1 conftest.err
3709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3710 test $ac_status = 0; }
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3724 ac_clean_files_save=$ac_clean_files
3725 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3726 # Try to create an executable without -o first, disregard a.out.
3727 # It will help us diagnose broken compilers, and finding out an intuition
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3730 $as_echo_n "checking whether the C compiler works... " >&6; }
3731 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3733 # The possible output files:
3734 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3737 for ac_file in $ac_files
3740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3741 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3746 if { { ac_try="$ac_link_default"
3748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749 *) ac_try_echo=$ac_try;;
3751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3752 $as_echo "$ac_try_echo"; } >&5
3753 (eval "$ac_link_default") 2>&5
3755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3756 test $ac_status = 0; }; then :
3757 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3758 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3759 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3760 # so that the user can short-circuit this test for compilers unknown to
3762 for ac_file in $ac_files ''
3764 test -f "$ac_file" || continue
3766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3769 # We found the default executable, but exeext='' is most
3773 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3775 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3777 # We set ac_cv_exeext here because the later test for it is not
3778 # safe: cross compilers may not add the suffix if given an `-o'
3779 # argument, so we may need to know it at that point already.
3780 # Even if this section looks crufty: it has the advantage of
3787 test "$ac_cv_exeext" = no && ac_cv_exeext=
3792 if test -z "$ac_file"; then :
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 $as_echo "no" >&6; }
3795 $as_echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3800 as_fn_error 77 "C compiler cannot create executables
3801 See \`config.log' for more details" "$LINENO" 5; }
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3804 $as_echo "yes" >&6; }
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3807 $as_echo_n "checking for C compiler default output file name... " >&6; }
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3809 $as_echo "$ac_file" >&6; }
3810 ac_exeext=$ac_cv_exeext
3812 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3813 ac_clean_files=$ac_clean_files_save
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3815 $as_echo_n "checking for suffix of executables... " >&6; }
3816 if { { ac_try="$ac_link"
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3822 $as_echo "$ac_try_echo"; } >&5
3823 (eval "$ac_link") 2>&5
3825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3826 test $ac_status = 0; }; then :
3827 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3828 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3829 # work properly (i.e., refer to `conftest.exe'), while it won't with
3831 for ac_file in conftest.exe conftest conftest.*; do
3832 test -f "$ac_file" || continue
3834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3835 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3841 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3843 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3844 See \`config.log' for more details" "$LINENO" 5; }
3846 rm -f conftest conftest$ac_cv_exeext
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3848 $as_echo "$ac_cv_exeext" >&6; }
3850 rm -f conftest.$ac_ext
3851 EXEEXT=$ac_cv_exeext
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854 /* end confdefs.h. */
3859 FILE *f = fopen ("conftest.out", "w");
3860 return ferror (f) || fclose (f) != 0;
3866 ac_clean_files="$ac_clean_files conftest.out"
3867 # Check that the compiler produces executables we can run. If not, either
3868 # the compiler is broken, or we cross compile.
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3870 $as_echo_n "checking whether we are cross compiling... " >&6; }
3871 if test "$cross_compiling" != yes; then
3872 { { ac_try="$ac_link"
3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875 *) ac_try_echo=$ac_try;;
3877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3878 $as_echo "$ac_try_echo"; } >&5
3879 (eval "$ac_link") 2>&5
3881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3882 test $ac_status = 0; }
3883 if { ac_try='./conftest$ac_cv_exeext'
3884 { { case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3889 $as_echo "$ac_try_echo"; } >&5
3890 (eval "$ac_try") 2>&5
3892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893 test $ac_status = 0; }; }; then
3896 if test "$cross_compiling" = maybe; then
3899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3901 as_fn_error $? "cannot run C compiled programs.
3902 If you meant to cross compile, use \`--host'.
3903 See \`config.log' for more details" "$LINENO" 5; }
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3908 $as_echo "$cross_compiling" >&6; }
3910 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3911 ac_clean_files=$ac_clean_files_save
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3913 $as_echo_n "checking for suffix of object files... " >&6; }
3914 if ${ac_cv_objext+:} false; then :
3915 $as_echo_n "(cached) " >&6
3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h. */
3928 rm -f conftest.o conftest.obj
3929 if { { ac_try="$ac_compile"
3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3935 $as_echo "$ac_try_echo"; } >&5
3936 (eval "$ac_compile") 2>&5
3938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3939 test $ac_status = 0; }; then :
3940 for ac_file in conftest.o conftest.obj conftest.*; do
3941 test -f "$ac_file" || continue;
3943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3944 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3949 $as_echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3954 as_fn_error $? "cannot compute suffix of object files: cannot compile
3955 See \`config.log' for more details" "$LINENO" 5; }
3957 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3960 $as_echo "$ac_cv_objext" >&6; }
3961 OBJEXT=$ac_cv_objext
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3964 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3965 if ${ac_cv_c_compiler_gnu+:} false; then :
3966 $as_echo_n "(cached) " >&6
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h. */
3982 if ac_fn_c_try_compile "$LINENO"; then :
3987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3992 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3993 if test $ac_compiler_gnu = yes; then
3998 ac_test_CFLAGS=${CFLAGS+set}
3999 ac_save_CFLAGS=$CFLAGS
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4001 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4002 if ${ac_cv_prog_cc_g+:} false; then :
4003 $as_echo_n "(cached) " >&6
4005 ac_save_c_werror_flag=$ac_c_werror_flag
4006 ac_c_werror_flag=yes
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4020 if ac_fn_c_try_compile "$LINENO"; then :
4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h. */
4035 if ac_fn_c_try_compile "$LINENO"; then :
4038 ac_c_werror_flag=$ac_save_c_werror_flag
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4051 if ac_fn_c_try_compile "$LINENO"; then :
4054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059 ac_c_werror_flag=$ac_save_c_werror_flag
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4062 $as_echo "$ac_cv_prog_cc_g" >&6; }
4063 if test "$ac_test_CFLAGS" = set; then
4064 CFLAGS=$ac_save_CFLAGS
4065 elif test $ac_cv_prog_cc_g = yes; then
4066 if test "$GCC" = yes; then
4072 if test "$GCC" = yes; then
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4079 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4080 if ${ac_cv_prog_cc_c89+:} false; then :
4081 $as_echo_n "(cached) " >&6
4083 ac_cv_prog_cc_c89=no
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4090 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4091 struct buf { int x; };
4092 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4093 static char *e (p, i)
4099 static char *f (char * (*g) (char **, int), char **p, ...)
4104 s = g (p, va_arg (v,int));
4109 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4110 function prototypes and stuff, but not '\xHH' hex character constants.
4111 These don't provoke an error unfortunately, instead are silently treated
4112 as 'x'. The following induces an error, until -std is added to get
4113 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4114 array size at least. It's necessary to write '\x00'==0 to get something
4115 that's true only with -std. */
4116 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4118 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4119 inside strings and character constants. */
4121 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4123 int test (int i, double x);
4124 struct s1 {int (*f) (int a);};
4125 struct s2 {int (*f) (double a);};
4126 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4132 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4137 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4138 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4140 CC="$ac_save_CC $ac_arg"
4141 if ac_fn_c_try_compile "$LINENO"; then :
4142 ac_cv_prog_cc_c89=$ac_arg
4144 rm -f core conftest.err conftest.$ac_objext
4145 test "x$ac_cv_prog_cc_c89" != "xno" && break
4147 rm -f conftest.$ac_ext
4152 case "x$ac_cv_prog_cc_c89" in
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4155 $as_echo "none needed" >&6; } ;;
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4158 $as_echo "unsupported" >&6; } ;;
4160 CC="$CC $ac_cv_prog_cc_c89"
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4162 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4164 if test "x$ac_cv_prog_cc_c89" != xno; then :
4169 ac_cpp='$CPP $CPPFLAGS'
4170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4175 ac_cpp='$CPP $CPPFLAGS'
4176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4180 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4181 if ${am_cv_prog_cc_c_o+:} false; then :
4182 $as_echo_n "(cached) " >&6
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4195 # Make sure it works both with $CC and with simple cc.
4196 # Following AC_PROG_CC_C_O, we do the test twice because some
4197 # compilers refuse to overwrite an existing .o file with -o,
4198 # though they will create one.
4199 am_cv_prog_cc_c_o=yes
4201 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4202 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); } \
4206 && test -f conftest2.$ac_objext; then
4209 am_cv_prog_cc_c_o=no
4213 rm -f core conftest*
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4217 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4218 if test "$am_cv_prog_cc_c_o" != yes; then
4219 # Losing compiler, so override with the script.
4220 # FIXME: It is wrong to rewrite CC.
4221 # But if we don't then we get into trouble of one sort or another.
4222 # A longer-term fix would be to have automake use am__CC in this case,
4223 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4224 CC="$am_aux_dir/compile $CC"
4227 ac_cpp='$CPP $CPPFLAGS'
4228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4233 depcc="$CC" am_compiler_list=
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4236 $as_echo_n "checking dependency style of $depcc... " >&6; }
4237 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4238 $as_echo_n "(cached) " >&6
4240 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4241 # We make a subdir and do the tests there. Otherwise we can end up
4242 # making bogus files that we don't know about and never remove. For
4243 # instance it was reported that on HP-UX the gcc test will end up
4244 # making a dummy file named 'D' -- because '-MD' means "put the output
4248 # Copy depcomp to subdir because otherwise we won't find it if we're
4249 # using a relative directory.
4250 cp "$am_depcomp" conftest.dir
4252 # We will build objects and dependencies in a subdirectory because
4253 # it helps to detect inapplicable dependency modes. For instance
4254 # both Tru64's cc and ICC support -MD to output dependencies as a
4255 # side effect of compilation, but ICC will put the dependencies in
4256 # the current directory while Tru64 will put them in the object
4260 am_cv_CC_dependencies_compiler_type=none
4261 if test "$am_compiler_list" = ""; then
4262 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4265 case " $depcc " in #(
4266 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4269 for depmode in $am_compiler_list; do
4270 # Setup a source with many dependencies, because some compilers
4271 # like to wrap large dependency lists on column 80 (with \), and
4272 # we should not choose a depcomp mode which is confused by this.
4274 # We need to recreate these files for each test, as the compiler may
4275 # overwrite some of them when testing with obscure command lines.
4276 # This happens at least with the AIX C compiler.
4278 for i in 1 2 3 4 5 6; do
4279 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4280 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4281 # Solaris 10 /bin/sh.
4282 echo '/* dummy */' > sub/conftst$i.h
4284 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4286 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4287 # mode. It turns out that the SunPro C++ compiler does not properly
4288 # handle '-M -o', and we need to detect this. Also, some Intel
4289 # versions had trouble with output in subdirs.
4290 am__obj=sub/conftest.${OBJEXT-o}
4291 am__minus_obj="-o $am__obj"
4294 # This depmode causes a compiler race in universal mode.
4295 test "$am__universal" = false || continue
4298 # After this tag, mechanisms are not by side-effect, so they'll
4299 # only be used when explicitly requested.
4300 if test "x$enable_dependency_tracking" = xyes; then
4306 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4307 # This compiler won't grok '-c -o', but also, the minuso test has
4308 # not run yet. These depmodes are late enough in the game, and
4309 # so weak that their functioning should not be impacted.
4310 am__obj=conftest.${OBJEXT-o}
4315 if depmode=$depmode \
4316 source=sub/conftest.c object=$am__obj \
4317 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4318 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4319 >/dev/null 2>conftest.err &&
4320 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4321 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4322 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4323 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4324 # icc doesn't choke on unknown options, it will just issue warnings
4325 # or remarks (even with -Werror). So we grep stderr for any message
4326 # that says an option was ignored or not supported.
4327 # When given -MP, icc 7.0 and 7.1 complain thusly:
4328 # icc: Command line warning: ignoring option '-M'; no argument required
4329 # The diagnosis changed in icc 8.0:
4330 # icc: Command line remark: option '-MP' not supported
4331 if (grep 'ignoring option' conftest.err ||
4332 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4333 am_cv_CC_dependencies_compiler_type=$depmode
4342 am_cv_CC_dependencies_compiler_type=none
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4347 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4348 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4351 test "x$enable_dependency_tracking" != xno \
4352 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4354 am__fastdepCC_FALSE='#'
4356 am__fastdepCC_TRUE='#'
4357 am__fastdepCC_FALSE=
4363 ac_cpp='$CPP $CPPFLAGS'
4364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4368 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4369 # On Suns, sometimes $CPP names a directory.
4370 if test -n "$CPP" && test -d "$CPP"; then
4373 if test -z "$CPP"; then
4374 if ${ac_cv_prog_CPP+:} false; then :
4375 $as_echo_n "(cached) " >&6
4377 # Double quotes because CPP needs to be expanded
4378 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4381 for ac_c_preproc_warn_flag in '' yes
4383 # Use a header file that comes with gcc, so configuring glibc
4384 # with a fresh cross-compiler works.
4385 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4386 # <limits.h> exists even on freestanding compilers.
4387 # On the NeXT, cc -E runs the code through the compiler's parser,
4388 # not just through cpp. "Syntax error" is here to catch this case.
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h. */
4392 # include <limits.h>
4394 # include <assert.h>
4398 if ac_fn_c_try_cpp "$LINENO"; then :
4401 # Broken: fails on valid input.
4404 rm -f conftest.err conftest.i conftest.$ac_ext
4406 # OK, works on sane cases. Now check whether nonexistent headers
4407 # can be detected and how.
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409 /* end confdefs.h. */
4410 #include <ac_nonexistent.h>
4412 if ac_fn_c_try_cpp "$LINENO"; then :
4413 # Broken: success on invalid input.
4416 # Passes both tests.
4420 rm -f conftest.err conftest.i conftest.$ac_ext
4423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4424 rm -f conftest.i conftest.err conftest.$ac_ext
4425 if $ac_preproc_ok; then :
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4438 $as_echo "$CPP" >&6; }
4440 for ac_c_preproc_warn_flag in '' yes
4442 # Use a header file that comes with gcc, so configuring glibc
4443 # with a fresh cross-compiler works.
4444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4445 # <limits.h> exists even on freestanding compilers.
4446 # On the NeXT, cc -E runs the code through the compiler's parser,
4447 # not just through cpp. "Syntax error" is here to catch this case.
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h. */
4451 # include <limits.h>
4453 # include <assert.h>
4457 if ac_fn_c_try_cpp "$LINENO"; then :
4460 # Broken: fails on valid input.
4463 rm -f conftest.err conftest.i conftest.$ac_ext
4465 # OK, works on sane cases. Now check whether nonexistent headers
4466 # can be detected and how.
4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468 /* end confdefs.h. */
4469 #include <ac_nonexistent.h>
4471 if ac_fn_c_try_cpp "$LINENO"; then :
4472 # Broken: success on invalid input.
4475 # Passes both tests.
4479 rm -f conftest.err conftest.i conftest.$ac_ext
4482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4483 rm -f conftest.i conftest.err conftest.$ac_ext
4484 if $ac_preproc_ok; then :
4487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4489 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4490 See \`config.log' for more details" "$LINENO" 5; }
4494 ac_cpp='$CPP $CPPFLAGS'
4495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4501 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4502 if ${ac_cv_path_GREP+:} false; then :
4503 $as_echo_n "(cached) " >&6
4505 if test -z "$GREP"; then
4506 ac_path_GREP_found=false
4507 # Loop through the user's path and test for each of PROGNAME-LIST
4508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4512 test -z "$as_dir" && as_dir=.
4513 for ac_prog in grep ggrep; do
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4516 as_fn_executable_p "$ac_path_GREP" || continue
4517 # Check for GNU ac_path_GREP and select it if it is found.
4518 # Check for GNU $ac_path_GREP
4519 case `"$ac_path_GREP" --version 2>&1` in
4521 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4524 $as_echo_n 0123456789 >"conftest.in"
4527 cat "conftest.in" "conftest.in" >"conftest.tmp"
4528 mv "conftest.tmp" "conftest.in"
4529 cp "conftest.in" "conftest.nl"
4530 $as_echo 'GREP' >> "conftest.nl"
4531 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4532 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4533 as_fn_arith $ac_count + 1 && ac_count=$as_val
4534 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4535 # Best one so far, save it but keep looking for a better one
4536 ac_cv_path_GREP="$ac_path_GREP"
4537 ac_path_GREP_max=$ac_count
4539 # 10*(2^10) chars as input seems more than enough
4540 test $ac_count -gt 10 && break
4542 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4545 $ac_path_GREP_found && break 3
4550 if test -z "$ac_cv_path_GREP"; then
4551 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4554 ac_cv_path_GREP=$GREP
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4559 $as_echo "$ac_cv_path_GREP" >&6; }
4560 GREP="$ac_cv_path_GREP"
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4564 $as_echo_n "checking for egrep... " >&6; }
4565 if ${ac_cv_path_EGREP+:} false; then :
4566 $as_echo_n "(cached) " >&6
4568 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4569 then ac_cv_path_EGREP="$GREP -E"
4571 if test -z "$EGREP"; then
4572 ac_path_EGREP_found=false
4573 # Loop through the user's path and test for each of PROGNAME-LIST
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4578 test -z "$as_dir" && as_dir=.
4579 for ac_prog in egrep; do
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4582 as_fn_executable_p "$ac_path_EGREP" || continue
4583 # Check for GNU ac_path_EGREP and select it if it is found.
4584 # Check for GNU $ac_path_EGREP
4585 case `"$ac_path_EGREP" --version 2>&1` in
4587 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4590 $as_echo_n 0123456789 >"conftest.in"
4593 cat "conftest.in" "conftest.in" >"conftest.tmp"
4594 mv "conftest.tmp" "conftest.in"
4595 cp "conftest.in" "conftest.nl"
4596 $as_echo 'EGREP' >> "conftest.nl"
4597 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4598 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4599 as_fn_arith $ac_count + 1 && ac_count=$as_val
4600 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4601 # Best one so far, save it but keep looking for a better one
4602 ac_cv_path_EGREP="$ac_path_EGREP"
4603 ac_path_EGREP_max=$ac_count
4605 # 10*(2^10) chars as input seems more than enough
4606 test $ac_count -gt 10 && break
4608 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4611 $ac_path_EGREP_found && break 3
4616 if test -z "$ac_cv_path_EGREP"; then
4617 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4620 ac_cv_path_EGREP=$EGREP
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4626 $as_echo "$ac_cv_path_EGREP" >&6; }
4627 EGREP="$ac_cv_path_EGREP"
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4631 $as_echo_n "checking for ANSI C header files... " >&6; }
4632 if ${ac_cv_header_stdc+:} false; then :
4633 $as_echo_n "(cached) " >&6
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4650 if ac_fn_c_try_compile "$LINENO"; then :
4651 ac_cv_header_stdc=yes
4653 ac_cv_header_stdc=no
4655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4657 if test $ac_cv_header_stdc = yes; then
4658 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h. */
4664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4665 $EGREP "memchr" >/dev/null 2>&1; then :
4668 ac_cv_header_stdc=no
4674 if test $ac_cv_header_stdc = yes; then
4675 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h. */
4681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4682 $EGREP "free" >/dev/null 2>&1; then :
4685 ac_cv_header_stdc=no
4691 if test $ac_cv_header_stdc = yes; then
4692 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4693 if test "$cross_compiling" = yes; then :
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4700 #if ((' ' & 0x0FF) == 0x020)
4701 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4702 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4704 # define ISLOWER(c) \
4705 (('a' <= (c) && (c) <= 'i') \
4706 || ('j' <= (c) && (c) <= 'r') \
4707 || ('s' <= (c) && (c) <= 'z'))
4708 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4711 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4716 for (i = 0; i < 256; i++)
4717 if (XOR (islower (i), ISLOWER (i))
4718 || toupper (i) != TOUPPER (i))
4723 if ac_fn_c_try_run "$LINENO"; then :
4726 ac_cv_header_stdc=no
4728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4729 conftest.$ac_objext conftest.beam conftest.$ac_ext
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4735 $as_echo "$ac_cv_header_stdc" >&6; }
4736 if test $ac_cv_header_stdc = yes; then
4738 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4742 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4743 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4744 inttypes.h stdint.h unistd.h
4746 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4747 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4749 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4750 cat >>confdefs.h <<_ACEOF
4751 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4760 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4761 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4768 if test "$MINIX" = yes; then
4770 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4773 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4776 $as_echo "#define _MINIX 1" >>confdefs.h
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4782 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4783 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4784 $as_echo_n "(cached) " >&6
4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h. */
4789 # define __EXTENSIONS__ 1
4790 $ac_includes_default
4799 if ac_fn_c_try_compile "$LINENO"; then :
4800 ac_cv_safe_to_define___extensions__=yes
4802 ac_cv_safe_to_define___extensions__=no
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4807 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4808 test $ac_cv_safe_to_define___extensions__ = yes &&
4809 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4811 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4813 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4815 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4817 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4821 ac_cpp='$CPP $CPPFLAGS'
4822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4825 if test -n "$ac_tool_prefix"; then
4826 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4827 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829 $as_echo_n "checking for $ac_word... " >&6; }
4830 if ${ac_cv_prog_CC+:} false; then :
4831 $as_echo_n "(cached) " >&6
4833 if test -n "$CC"; then
4834 ac_cv_prog_CC="$CC" # Let the user override the test.
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840 test -z "$as_dir" && as_dir=.
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4843 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4854 if test -n "$CC"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4856 $as_echo "$CC" >&6; }
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4864 if test -z "$ac_cv_prog_CC"; then
4866 # Extract the first word of "gcc", so it can be a program name with args.
4867 set dummy gcc; ac_word=$2
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 $as_echo_n "checking for $ac_word... " >&6; }
4870 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4871 $as_echo_n "(cached) " >&6
4873 if test -n "$ac_ct_CC"; then
4874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4883 ac_cv_prog_ac_ct_CC="gcc"
4884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4894 if test -n "$ac_ct_CC"; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4896 $as_echo "$ac_ct_CC" >&6; }
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4902 if test "x$ac_ct_CC" = x; then
4905 case $cross_compiling:$ac_tool_warned in
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4909 ac_tool_warned=yes ;;
4917 if test -z "$CC"; then
4918 if test -n "$ac_tool_prefix"; then
4919 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4920 set dummy ${ac_tool_prefix}cc; ac_word=$2
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 $as_echo_n "checking for $ac_word... " >&6; }
4923 if ${ac_cv_prog_CC+:} false; then :
4924 $as_echo_n "(cached) " >&6
4926 if test -n "$CC"; then
4927 ac_cv_prog_CC="$CC" # Let the user override the test.
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4936 ac_cv_prog_CC="${ac_tool_prefix}cc"
4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4947 if test -n "$CC"; then
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4949 $as_echo "$CC" >&6; }
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952 $as_echo "no" >&6; }
4958 if test -z "$CC"; then
4959 # Extract the first word of "cc", so it can be a program name with args.
4960 set dummy cc; ac_word=$2
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4962 $as_echo_n "checking for $ac_word... " >&6; }
4963 if ${ac_cv_prog_CC+:} false; then :
4964 $as_echo_n "(cached) " >&6
4966 if test -n "$CC"; then
4967 ac_cv_prog_CC="$CC" # Let the user override the test.
4970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 test -z "$as_dir" && as_dir=.
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4977 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4978 ac_prog_rejected=yes
4982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4989 if test $ac_prog_rejected = yes; then
4990 # We found a bogon in the path, so make sure we never use it.
4991 set dummy $ac_cv_prog_CC
4993 if test $# != 0; then
4994 # We chose a different compiler from the bogus one.
4995 # However, it has the same basename, so the bogon will be chosen
4996 # first if we set CC to just the basename; use the full file name.
4998 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5004 if test -n "$CC"; then
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5006 $as_echo "$CC" >&6; }
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009 $as_echo "no" >&6; }
5014 if test -z "$CC"; then
5015 if test -n "$ac_tool_prefix"; then
5016 for ac_prog in cl.exe
5018 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5019 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5021 $as_echo_n "checking for $ac_word... " >&6; }
5022 if ${ac_cv_prog_CC+:} false; then :
5023 $as_echo_n "(cached) " >&6
5025 if test -n "$CC"; then
5026 ac_cv_prog_CC="$CC" # Let the user override the test.
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 test -z "$as_dir" && as_dir=.
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5035 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 if test -n "$CC"; then
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5048 $as_echo "$CC" >&6; }
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051 $as_echo "no" >&6; }
5055 test -n "$CC" && break
5058 if test -z "$CC"; then
5060 for ac_prog in cl.exe
5062 # Extract the first word of "$ac_prog", so it can be a program name with args.
5063 set dummy $ac_prog; ac_word=$2
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5065 $as_echo_n "checking for $ac_word... " >&6; }
5066 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5067 $as_echo_n "(cached) " >&6
5069 if test -n "$ac_ct_CC"; then
5070 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5079 ac_cv_prog_ac_ct_CC="$ac_prog"
5080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5089 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5090 if test -n "$ac_ct_CC"; then
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5092 $as_echo "$ac_ct_CC" >&6; }
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 $as_echo "no" >&6; }
5099 test -n "$ac_ct_CC" && break
5102 if test "x$ac_ct_CC" = x; then
5105 case $cross_compiling:$ac_tool_warned in
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5109 ac_tool_warned=yes ;;
5118 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5120 as_fn_error $? "no acceptable C compiler found in \$PATH
5121 See \`config.log' for more details" "$LINENO" 5; }
5123 # Provide some information about the compiler.
5124 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5127 for ac_option in --version -v -V -qversion; do
5128 { { ac_try="$ac_compiler $ac_option >&5"
5130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131 *) ac_try_echo=$ac_try;;
5133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5134 $as_echo "$ac_try_echo"; } >&5
5135 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5137 if test -s conftest.err; then
5139 ... rest of stderr output deleted ...
5140 10q' conftest.err >conftest.er1
5141 cat conftest.er1 >&5
5143 rm -f conftest.er1 conftest.err
5144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5145 test $ac_status = 0; }
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5149 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5150 if ${ac_cv_c_compiler_gnu+:} false; then :
5151 $as_echo_n "(cached) " >&6
5153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154 /* end confdefs.h. */
5167 if ac_fn_c_try_compile "$LINENO"; then :
5172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5173 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5177 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5178 if test $ac_compiler_gnu = yes; then
5183 ac_test_CFLAGS=${CFLAGS+set}
5184 ac_save_CFLAGS=$CFLAGS
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5186 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5187 if ${ac_cv_prog_cc_g+:} false; then :
5188 $as_echo_n "(cached) " >&6
5190 ac_save_c_werror_flag=$ac_c_werror_flag
5191 ac_c_werror_flag=yes
5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5205 if ac_fn_c_try_compile "$LINENO"; then :
5209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210 /* end confdefs.h. */
5220 if ac_fn_c_try_compile "$LINENO"; then :
5223 ac_c_werror_flag=$ac_save_c_werror_flag
5225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h. */
5236 if ac_fn_c_try_compile "$LINENO"; then :
5239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5244 ac_c_werror_flag=$ac_save_c_werror_flag
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5247 $as_echo "$ac_cv_prog_cc_g" >&6; }
5248 if test "$ac_test_CFLAGS" = set; then
5249 CFLAGS=$ac_save_CFLAGS
5250 elif test $ac_cv_prog_cc_g = yes; then
5251 if test "$GCC" = yes; then
5257 if test "$GCC" = yes; then
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5264 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5265 if ${ac_cv_prog_cc_c89+:} false; then :
5266 $as_echo_n "(cached) " >&6
5268 ac_cv_prog_cc_c89=no
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5275 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5276 struct buf { int x; };
5277 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5278 static char *e (p, i)
5284 static char *f (char * (*g) (char **, int), char **p, ...)
5289 s = g (p, va_arg (v,int));
5294 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5295 function prototypes and stuff, but not '\xHH' hex character constants.
5296 These don't provoke an error unfortunately, instead are silently treated
5297 as 'x'. The following induces an error, until -std is added to get
5298 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5299 array size at least. It's necessary to write '\x00'==0 to get something
5300 that's true only with -std. */
5301 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5303 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5304 inside strings and character constants. */
5306 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5308 int test (int i, double x);
5309 struct s1 {int (*f) (int a);};
5310 struct s2 {int (*f) (double a);};
5311 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5317 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5322 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5323 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5325 CC="$ac_save_CC $ac_arg"
5326 if ac_fn_c_try_compile "$LINENO"; then :
5327 ac_cv_prog_cc_c89=$ac_arg
5329 rm -f core conftest.err conftest.$ac_objext
5330 test "x$ac_cv_prog_cc_c89" != "xno" && break
5332 rm -f conftest.$ac_ext
5337 case "x$ac_cv_prog_cc_c89" in
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5340 $as_echo "none needed" >&6; } ;;
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5343 $as_echo "unsupported" >&6; } ;;
5345 CC="$CC $ac_cv_prog_cc_c89"
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5347 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5349 if test "x$ac_cv_prog_cc_c89" != xno; then :
5354 ac_cpp='$CPP $CPPFLAGS'
5355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5360 ac_cpp='$CPP $CPPFLAGS'
5361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5365 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5366 if ${am_cv_prog_cc_c_o+:} false; then :
5367 $as_echo_n "(cached) " >&6
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5380 # Make sure it works both with $CC and with simple cc.
5381 # Following AC_PROG_CC_C_O, we do the test twice because some
5382 # compilers refuse to overwrite an existing .o file with -o,
5383 # though they will create one.
5384 am_cv_prog_cc_c_o=yes
5386 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5387 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } \
5391 && test -f conftest2.$ac_objext; then
5394 am_cv_prog_cc_c_o=no
5398 rm -f core conftest*
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5402 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5403 if test "$am_cv_prog_cc_c_o" != yes; then
5404 # Losing compiler, so override with the script.
5405 # FIXME: It is wrong to rewrite CC.
5406 # But if we don't then we get into trouble of one sort or another.
5407 # A longer-term fix would be to have automake use am__CC in this case,
5408 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5409 CC="$am_aux_dir/compile $CC"
5412 ac_cpp='$CPP $CPPFLAGS'
5413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5418 depcc="$CC" am_compiler_list=
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5421 $as_echo_n "checking dependency style of $depcc... " >&6; }
5422 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5423 $as_echo_n "(cached) " >&6
5425 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5426 # We make a subdir and do the tests there. Otherwise we can end up
5427 # making bogus files that we don't know about and never remove. For
5428 # instance it was reported that on HP-UX the gcc test will end up
5429 # making a dummy file named 'D' -- because '-MD' means "put the output
5433 # Copy depcomp to subdir because otherwise we won't find it if we're
5434 # using a relative directory.
5435 cp "$am_depcomp" conftest.dir
5437 # We will build objects and dependencies in a subdirectory because
5438 # it helps to detect inapplicable dependency modes. For instance
5439 # both Tru64's cc and ICC support -MD to output dependencies as a
5440 # side effect of compilation, but ICC will put the dependencies in
5441 # the current directory while Tru64 will put them in the object
5445 am_cv_CC_dependencies_compiler_type=none
5446 if test "$am_compiler_list" = ""; then
5447 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5450 case " $depcc " in #(
5451 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5454 for depmode in $am_compiler_list; do
5455 # Setup a source with many dependencies, because some compilers
5456 # like to wrap large dependency lists on column 80 (with \), and
5457 # we should not choose a depcomp mode which is confused by this.
5459 # We need to recreate these files for each test, as the compiler may
5460 # overwrite some of them when testing with obscure command lines.
5461 # This happens at least with the AIX C compiler.
5463 for i in 1 2 3 4 5 6; do
5464 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5465 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5466 # Solaris 10 /bin/sh.
5467 echo '/* dummy */' > sub/conftst$i.h
5469 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5471 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5472 # mode. It turns out that the SunPro C++ compiler does not properly
5473 # handle '-M -o', and we need to detect this. Also, some Intel
5474 # versions had trouble with output in subdirs.
5475 am__obj=sub/conftest.${OBJEXT-o}
5476 am__minus_obj="-o $am__obj"
5479 # This depmode causes a compiler race in universal mode.
5480 test "$am__universal" = false || continue
5483 # After this tag, mechanisms are not by side-effect, so they'll
5484 # only be used when explicitly requested.
5485 if test "x$enable_dependency_tracking" = xyes; then
5491 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5492 # This compiler won't grok '-c -o', but also, the minuso test has
5493 # not run yet. These depmodes are late enough in the game, and
5494 # so weak that their functioning should not be impacted.
5495 am__obj=conftest.${OBJEXT-o}
5500 if depmode=$depmode \
5501 source=sub/conftest.c object=$am__obj \
5502 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5503 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5504 >/dev/null 2>conftest.err &&
5505 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5506 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5507 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5508 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5509 # icc doesn't choke on unknown options, it will just issue warnings
5510 # or remarks (even with -Werror). So we grep stderr for any message
5511 # that says an option was ignored or not supported.
5512 # When given -MP, icc 7.0 and 7.1 complain thusly:
5513 # icc: Command line warning: ignoring option '-M'; no argument required
5514 # The diagnosis changed in icc 8.0:
5515 # icc: Command line remark: option '-MP' not supported
5516 if (grep 'ignoring option' conftest.err ||
5517 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5518 am_cv_CC_dependencies_compiler_type=$depmode
5527 am_cv_CC_dependencies_compiler_type=none
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5532 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5533 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5536 test "x$enable_dependency_tracking" != xno \
5537 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5539 am__fastdepCC_FALSE='#'
5541 am__fastdepCC_TRUE='#'
5542 am__fastdepCC_FALSE=
5548 ac_cpp='$CPP $CPPFLAGS'
5549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5553 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5554 # On Suns, sometimes $CPP names a directory.
5555 if test -n "$CPP" && test -d "$CPP"; then
5558 if test -z "$CPP"; then
5559 if ${ac_cv_prog_CPP+:} false; then :
5560 $as_echo_n "(cached) " >&6
5562 # Double quotes because CPP needs to be expanded
5563 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5566 for ac_c_preproc_warn_flag in '' yes
5568 # Use a header file that comes with gcc, so configuring glibc
5569 # with a fresh cross-compiler works.
5570 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5571 # <limits.h> exists even on freestanding compilers.
5572 # On the NeXT, cc -E runs the code through the compiler's parser,
5573 # not just through cpp. "Syntax error" is here to catch this case.
5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575 /* end confdefs.h. */
5577 # include <limits.h>
5579 # include <assert.h>
5583 if ac_fn_c_try_cpp "$LINENO"; then :
5586 # Broken: fails on valid input.
5589 rm -f conftest.err conftest.i conftest.$ac_ext
5591 # OK, works on sane cases. Now check whether nonexistent headers
5592 # can be detected and how.
5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5595 #include <ac_nonexistent.h>
5597 if ac_fn_c_try_cpp "$LINENO"; then :
5598 # Broken: success on invalid input.
5601 # Passes both tests.
5605 rm -f conftest.err conftest.i conftest.$ac_ext
5608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5609 rm -f conftest.i conftest.err conftest.$ac_ext
5610 if $ac_preproc_ok; then :
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5623 $as_echo "$CPP" >&6; }
5625 for ac_c_preproc_warn_flag in '' yes
5627 # Use a header file that comes with gcc, so configuring glibc
5628 # with a fresh cross-compiler works.
5629 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5630 # <limits.h> exists even on freestanding compilers.
5631 # On the NeXT, cc -E runs the code through the compiler's parser,
5632 # not just through cpp. "Syntax error" is here to catch this case.
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5636 # include <limits.h>
5638 # include <assert.h>
5642 if ac_fn_c_try_cpp "$LINENO"; then :
5645 # Broken: fails on valid input.
5648 rm -f conftest.err conftest.i conftest.$ac_ext
5650 # OK, works on sane cases. Now check whether nonexistent headers
5651 # can be detected and how.
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5654 #include <ac_nonexistent.h>
5656 if ac_fn_c_try_cpp "$LINENO"; then :
5657 # Broken: success on invalid input.
5660 # Passes both tests.
5664 rm -f conftest.err conftest.i conftest.$ac_ext
5667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5668 rm -f conftest.i conftest.err conftest.$ac_ext
5669 if $ac_preproc_ok; then :
5672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5674 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5675 See \`config.log' for more details" "$LINENO" 5; }
5679 ac_cpp='$CPP $CPPFLAGS'
5680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5686 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5688 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5689 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5690 $as_echo_n "(cached) " >&6
5692 cat >conftest.make <<\_ACEOF
5695 @echo '@@@%%%=$(MAKE)=@@@%%%'
5697 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5698 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5700 eval ac_cv_prog_make_${ac_make}_set=yes;;
5702 eval ac_cv_prog_make_${ac_make}_set=no;;
5706 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5708 $as_echo "yes" >&6; }
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5713 SET_MAKE="MAKE=${MAKE-make}"
5716 # Check whether --enable-static was given.
5717 if test "${enable_static+set}" = set; then :
5718 enableval=$enable_static; p=${PACKAGE-default}
5720 yes) enable_static=yes ;;
5721 no) enable_static=no ;;
5724 # Look at the argument we got. We use all the common list separators.
5725 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
5726 for pkg in $enableval; do
5728 if test "X$pkg" = "X$p"; then
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5750 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5755 macro_version='2.4.6'
5756 macro_revision='2.4.6'
5770 ltmain=$ac_aux_dir/ltmain.sh
5772 # Backslashify metacharacters that are still active within
5773 # double-quoted strings.
5774 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5776 # Same as above, but do not quote variable references.
5777 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5779 # Sed substitution to delay expansion of an escaped shell variable in a
5780 # double_quote_subst'ed string.
5781 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5783 # Sed substitution to delay expansion of an escaped single quote.
5784 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5786 # Sed substitution to avoid accidental globbing in evaled expressions
5787 no_glob_subst='s/\*/\\\*/g'
5789 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5790 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5791 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5794 $as_echo_n "checking how to print strings... " >&6; }
5795 # Test print first, because it will be a builtin if present.
5796 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5797 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5799 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5802 # Use this function as a fallback that always works.
5803 func_fallback_echo ()
5805 eval 'cat <<_LTECHO_EOF
5809 ECHO='func_fallback_echo'
5812 # func_echo_all arg...
5813 # Invoke $ECHO with all args, space-separated.
5820 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5821 $as_echo "printf" >&6; } ;;
5822 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5823 $as_echo "print -r" >&6; } ;;
5824 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5825 $as_echo "cat" >&6; } ;;
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5842 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5843 if ${ac_cv_path_SED+:} false; then :
5844 $as_echo_n "(cached) " >&6
5846 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5847 for ac_i in 1 2 3 4 5 6 7; do
5848 ac_script="$ac_script$as_nl$ac_script"
5850 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5851 { ac_script=; unset ac_script;}
5852 if test -z "$SED"; then
5853 ac_path_SED_found=false
5854 # Loop through the user's path and test for each of PROGNAME-LIST
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 test -z "$as_dir" && as_dir=.
5860 for ac_prog in sed gsed; do
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5863 as_fn_executable_p "$ac_path_SED" || continue
5864 # Check for GNU ac_path_SED and select it if it is found.
5865 # Check for GNU $ac_path_SED
5866 case `"$ac_path_SED" --version 2>&1` in
5868 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5871 $as_echo_n 0123456789 >"conftest.in"
5874 cat "conftest.in" "conftest.in" >"conftest.tmp"
5875 mv "conftest.tmp" "conftest.in"
5876 cp "conftest.in" "conftest.nl"
5877 $as_echo '' >> "conftest.nl"
5878 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5879 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5880 as_fn_arith $ac_count + 1 && ac_count=$as_val
5881 if test $ac_count -gt ${ac_path_SED_max-0}; then
5882 # Best one so far, save it but keep looking for a better one
5883 ac_cv_path_SED="$ac_path_SED"
5884 ac_path_SED_max=$ac_count
5886 # 10*(2^10) chars as input seems more than enough
5887 test $ac_count -gt 10 && break
5889 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5892 $ac_path_SED_found && break 3
5897 if test -z "$ac_cv_path_SED"; then
5898 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5906 $as_echo "$ac_cv_path_SED" >&6; }
5907 SED="$ac_cv_path_SED"
5910 test -z "$SED" && SED=sed
5911 Xsed="$SED -e 1s/^X//"
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5924 $as_echo_n "checking for fgrep... " >&6; }
5925 if ${ac_cv_path_FGREP+:} false; then :
5926 $as_echo_n "(cached) " >&6
5928 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5929 then ac_cv_path_FGREP="$GREP -F"
5931 if test -z "$FGREP"; then
5932 ac_path_FGREP_found=false
5933 # Loop through the user's path and test for each of PROGNAME-LIST
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5938 test -z "$as_dir" && as_dir=.
5939 for ac_prog in fgrep; do
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5942 as_fn_executable_p "$ac_path_FGREP" || continue
5943 # Check for GNU ac_path_FGREP and select it if it is found.
5944 # Check for GNU $ac_path_FGREP
5945 case `"$ac_path_FGREP" --version 2>&1` in
5947 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5950 $as_echo_n 0123456789 >"conftest.in"
5953 cat "conftest.in" "conftest.in" >"conftest.tmp"
5954 mv "conftest.tmp" "conftest.in"
5955 cp "conftest.in" "conftest.nl"
5956 $as_echo 'FGREP' >> "conftest.nl"
5957 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5958 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5959 as_fn_arith $ac_count + 1 && ac_count=$as_val
5960 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5961 # Best one so far, save it but keep looking for a better one
5962 ac_cv_path_FGREP="$ac_path_FGREP"
5963 ac_path_FGREP_max=$ac_count
5965 # 10*(2^10) chars as input seems more than enough
5966 test $ac_count -gt 10 && break
5968 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5971 $ac_path_FGREP_found && break 3
5976 if test -z "$ac_cv_path_FGREP"; then
5977 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5980 ac_cv_path_FGREP=$FGREP
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5986 $as_echo "$ac_cv_path_FGREP" >&6; }
5987 FGREP="$ac_cv_path_FGREP"
5990 test -z "$GREP" && GREP=grep
6010 # Check whether --with-gnu-ld was given.
6011 if test "${with_gnu_ld+set}" = set; then :
6012 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6018 if test yes = "$GCC"; then
6019 # Check if gcc -print-prog-name=ld gives a path.
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6021 $as_echo_n "checking for ld used by $CC... " >&6; }
6024 # gcc leaves a trailing carriage return, which upsets mingw
6025 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6027 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6030 # Accept absolute paths.
6032 re_direlt='/[^/][^/]*/\.\./'
6033 # Canonicalize the pathname of ld
6034 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6035 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6036 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6038 test -z "$LD" && LD=$ac_prog
6041 # If it fails, then pretend we aren't using GCC.
6045 # If it is relative, then search for the first ld in PATH.
6049 elif test yes = "$with_gnu_ld"; then
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6051 $as_echo_n "checking for GNU ld... " >&6; }
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6054 $as_echo_n "checking for non-GNU ld... " >&6; }
6056 if ${lt_cv_path_LD+:} false; then :
6057 $as_echo_n "(cached) " >&6
6059 if test -z "$LD"; then
6060 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6061 for ac_dir in $PATH; do
6063 test -z "$ac_dir" && ac_dir=.
6064 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6065 lt_cv_path_LD=$ac_dir/$ac_prog
6066 # Check to see if the program is GNU ld. I'd rather use --version,
6067 # but apparently some variants of GNU ld only accept -v.
6068 # Break only if it was the GNU/non-GNU ld that we prefer.
6069 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6070 *GNU* | *'with BFD'*)
6071 test no != "$with_gnu_ld" && break
6074 test yes != "$with_gnu_ld" && break
6081 lt_cv_path_LD=$LD # Let the user override the test with a path.
6086 if test -n "$LD"; then
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6088 $as_echo "$LD" >&6; }
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091 $as_echo "no" >&6; }
6093 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6095 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6096 if ${lt_cv_prog_gnu_ld+:} false; then :
6097 $as_echo_n "(cached) " >&6
6099 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6100 case `$LD -v 2>&1 </dev/null` in
6101 *GNU* | *'with BFD'*)
6102 lt_cv_prog_gnu_ld=yes
6105 lt_cv_prog_gnu_ld=no
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6110 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6111 with_gnu_ld=$lt_cv_prog_gnu_ld
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6122 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6123 if ${lt_cv_path_NM+:} false; then :
6124 $as_echo_n "(cached) " >&6
6126 if test -n "$NM"; then
6127 # Let the user override the test.
6130 lt_nm_to_check=${ac_tool_prefix}nm
6131 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6132 lt_nm_to_check="$lt_nm_to_check nm"
6134 for lt_tmp_nm in $lt_nm_to_check; do
6135 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6136 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6138 test -z "$ac_dir" && ac_dir=.
6139 tmp_nm=$ac_dir/$lt_tmp_nm
6140 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6141 # Check to see if the nm accepts a BSD-compat flag.
6142 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6143 # nm: unknown option "B" ignored
6144 # Tru64's nm complains that /dev/null is an invalid object file
6145 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6147 mingw*) lt_bad_file=conftest.nm/nofile ;;
6148 *) lt_bad_file=/dev/null ;;
6150 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6151 *$lt_bad_file* | *'Invalid file or object type'*)
6152 lt_cv_path_NM="$tmp_nm -B"
6156 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6158 lt_cv_path_NM="$tmp_nm -p"
6162 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6163 continue # so that we can try to find one that supports BSD flags
6172 : ${lt_cv_path_NM=no}
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6176 $as_echo "$lt_cv_path_NM" >&6; }
6177 if test no != "$lt_cv_path_NM"; then
6180 # Didn't find any BSD compatible name lister, look for dumpbin.
6181 if test -n "$DUMPBIN"; then :
6182 # Let the user override the test.
6184 if test -n "$ac_tool_prefix"; then
6185 for ac_prog in dumpbin "link -dump"
6187 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6188 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6190 $as_echo_n "checking for $ac_word... " >&6; }
6191 if ${ac_cv_prog_DUMPBIN+:} false; then :
6192 $as_echo_n "(cached) " >&6
6194 if test -n "$DUMPBIN"; then
6195 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6204 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 DUMPBIN=$ac_cv_prog_DUMPBIN
6215 if test -n "$DUMPBIN"; then
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6217 $as_echo "$DUMPBIN" >&6; }
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220 $as_echo "no" >&6; }
6224 test -n "$DUMPBIN" && break
6227 if test -z "$DUMPBIN"; then
6228 ac_ct_DUMPBIN=$DUMPBIN
6229 for ac_prog in dumpbin "link -dump"
6231 # Extract the first word of "$ac_prog", so it can be a program name with args.
6232 set dummy $ac_prog; ac_word=$2
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234 $as_echo_n "checking for $ac_word... " >&6; }
6235 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6236 $as_echo_n "(cached) " >&6
6238 if test -n "$ac_ct_DUMPBIN"; then
6239 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 test -z "$as_dir" && as_dir=.
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6248 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6258 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6259 if test -n "$ac_ct_DUMPBIN"; then
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6261 $as_echo "$ac_ct_DUMPBIN" >&6; }
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264 $as_echo "no" >&6; }
6268 test -n "$ac_ct_DUMPBIN" && break
6271 if test "x$ac_ct_DUMPBIN" = x; then
6274 case $cross_compiling:$ac_tool_warned in
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6278 ac_tool_warned=yes ;;
6280 DUMPBIN=$ac_ct_DUMPBIN
6284 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6286 DUMPBIN="$DUMPBIN -symbols -headers"
6294 if test : != "$DUMPBIN"; then
6298 test -z "$NM" && NM=nm
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6306 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6307 if ${lt_cv_nm_interface+:} false; then :
6308 $as_echo_n "(cached) " >&6
6310 lt_cv_nm_interface="BSD nm"
6311 echo "int some_variable = 0;" > conftest.$ac_ext
6312 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6313 (eval "$ac_compile" 2>conftest.err)
6314 cat conftest.err >&5
6315 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6316 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6317 cat conftest.err >&5
6318 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6319 cat conftest.out >&5
6320 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6321 lt_cv_nm_interface="MS dumpbin"
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6326 $as_echo "$lt_cv_nm_interface" >&6; }
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6329 $as_echo_n "checking whether ln -s works... " >&6; }
6331 if test "$LN_S" = "ln -s"; then
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6333 $as_echo "yes" >&6; }
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6336 $as_echo "no, using $LN_S" >&6; }
6339 # find the maximum length of command line arguments
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6341 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6342 if ${lt_cv_sys_max_cmd_len+:} false; then :
6343 $as_echo_n "(cached) " >&6
6350 # On DJGPP, this test can blow up pretty badly due to problems in libc
6351 # (any single argument exceeding 2000 bytes causes a buffer overrun
6352 # during glob expansion). Even if it were fixed, the result of this
6353 # check would be larger than it should be.
6354 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6358 # Under GNU Hurd, this test is not required because there is
6359 # no limit to the length of command line arguments.
6360 # Libtool will interpret -1 as no limit whatsoever
6361 lt_cv_sys_max_cmd_len=-1;
6364 cygwin* | mingw* | cegcc*)
6365 # On Win9x/ME, this test blows up -- it succeeds, but takes
6366 # about 5 minutes as the teststring grows exponentially.
6367 # Worse, since 9x/ME are not pre-emptively multitasking,
6368 # you end up with a "frozen" computer, even though with patience
6369 # the test eventually succeeds (with a max line length of 256k).
6370 # Instead, let's just punt: use the minimum linelength reported by
6371 # all of the supported platforms: 8192 (on NT/2K/XP).
6372 lt_cv_sys_max_cmd_len=8192;
6376 # On MiNT this can take a long time and run out of memory.
6377 lt_cv_sys_max_cmd_len=8192;
6381 # On AmigaOS with pdksh, this test takes hours, literally.
6382 # So we just punt and use a minimum line length of 8192.
6383 lt_cv_sys_max_cmd_len=8192;
6386 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6387 # This has been around since 386BSD, at least. Likely further.
6388 if test -x /sbin/sysctl; then
6389 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6390 elif test -x /usr/sbin/sysctl; then
6391 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6393 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6395 # And add a safety zone
6396 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6397 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6401 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6402 lt_cv_sys_max_cmd_len=196608
6406 # The test takes a long time on OS/2.
6407 lt_cv_sys_max_cmd_len=8192
6411 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6412 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6413 # nice to cause kernel panics so lets avoid the loop below.
6414 # First set a reasonable default.
6415 lt_cv_sys_max_cmd_len=16384
6417 if test -x /sbin/sysconfig; then
6418 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6419 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6424 lt_cv_sys_max_cmd_len=102400
6426 sysv5* | sco5v6* | sysv4.2uw2*)
6427 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6428 if test -n "$kargmax"; then
6429 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6431 lt_cv_sys_max_cmd_len=32768
6435 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6436 if test -n "$lt_cv_sys_max_cmd_len" && \
6437 test undefined != "$lt_cv_sys_max_cmd_len"; then
6438 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6439 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6441 # Make teststring a little bigger before we do anything with it.
6442 # a 1K string should be a reasonable start.
6443 for i in 1 2 3 4 5 6 7 8; do
6444 teststring=$teststring$teststring
6446 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6447 # If test is not a shell built-in, we'll probably end up computing a
6448 # maximum length that is only half of the actual maximum length, but
6450 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6451 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6452 test 17 != "$i" # 1/2 MB should be enough
6455 teststring=$teststring$teststring
6457 # Only check the string length outside the loop.
6458 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6460 # Add a significant safety factor because C++ compilers can tack on
6461 # massive amounts of additional arguments before passing them to the
6462 # linker. It appears as though 1/2 is a usable value.
6463 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6470 if test -n "$lt_cv_sys_max_cmd_len"; then
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6472 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6475 $as_echo "none" >&6; }
6477 max_cmd_len=$lt_cv_sys_max_cmd_len
6488 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6498 # test EBCDIC or ASCII
6499 case `echo X|tr X '\101'` in
6500 A) # ASCII based system
6501 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6502 lt_SP2NL='tr \040 \012'
6503 lt_NL2SP='tr \015\012 \040\040'
6505 *) # EBCDIC based system
6506 lt_SP2NL='tr \100 \n'
6507 lt_NL2SP='tr \r\n \100\100'
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6520 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6521 if ${lt_cv_to_host_file_cmd+:} false; then :
6522 $as_echo_n "(cached) " >&6
6527 *-*-mingw* ) # actually msys
6528 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6531 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6533 * ) # otherwise, assume *nix
6534 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6540 *-*-mingw* ) # actually msys
6541 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6544 lt_cv_to_host_file_cmd=func_convert_file_noop
6546 * ) # otherwise, assume *nix
6547 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6551 * ) # unhandled hosts (and "normal" native builds)
6552 lt_cv_to_host_file_cmd=func_convert_file_noop
6558 to_host_file_cmd=$lt_cv_to_host_file_cmd
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6560 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6567 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6568 if ${lt_cv_to_tool_file_cmd+:} false; then :
6569 $as_echo_n "(cached) " >&6
6571 #assume ordinary cross tools, or native build.
6572 lt_cv_to_tool_file_cmd=func_convert_file_noop
6576 *-*-mingw* ) # actually msys
6577 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6585 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6587 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6594 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6595 if ${lt_cv_ld_reload_flag+:} false; then :
6596 $as_echo_n "(cached) " >&6
6598 lt_cv_ld_reload_flag='-r'
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6601 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6602 reload_flag=$lt_cv_ld_reload_flag
6603 case $reload_flag in
6605 *) reload_flag=" $reload_flag" ;;
6607 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6609 cygwin* | mingw* | pw32* | cegcc*)
6610 if test yes != "$GCC"; then
6615 if test yes = "$GCC"; then
6616 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6618 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6631 if test -n "$ac_tool_prefix"; then
6632 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6633 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6635 $as_echo_n "checking for $ac_word... " >&6; }
6636 if ${ac_cv_prog_OBJDUMP+:} false; then :
6637 $as_echo_n "(cached) " >&6
6639 if test -n "$OBJDUMP"; then
6640 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646 test -z "$as_dir" && as_dir=.
6647 for ac_exec_ext in '' $ac_executable_extensions; do
6648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6649 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 OBJDUMP=$ac_cv_prog_OBJDUMP
6660 if test -n "$OBJDUMP"; then
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6662 $as_echo "$OBJDUMP" >&6; }
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665 $as_echo "no" >&6; }
6670 if test -z "$ac_cv_prog_OBJDUMP"; then
6671 ac_ct_OBJDUMP=$OBJDUMP
6672 # Extract the first word of "objdump", so it can be a program name with args.
6673 set dummy objdump; ac_word=$2
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675 $as_echo_n "checking for $ac_word... " >&6; }
6676 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6677 $as_echo_n "(cached) " >&6
6679 if test -n "$ac_ct_OBJDUMP"; then
6680 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 test -z "$as_dir" && as_dir=.
6687 for ac_exec_ext in '' $ac_executable_extensions; do
6688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6689 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6700 if test -n "$ac_ct_OBJDUMP"; then
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6702 $as_echo "$ac_ct_OBJDUMP" >&6; }
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705 $as_echo "no" >&6; }
6708 if test "x$ac_ct_OBJDUMP" = x; then
6711 case $cross_compiling:$ac_tool_warned in
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6715 ac_tool_warned=yes ;;
6717 OBJDUMP=$ac_ct_OBJDUMP
6720 OBJDUMP="$ac_cv_prog_OBJDUMP"
6723 test -z "$OBJDUMP" && OBJDUMP=objdump
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6734 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6735 if ${lt_cv_deplibs_check_method+:} false; then :
6736 $as_echo_n "(cached) " >&6
6738 lt_cv_file_magic_cmd='$MAGIC_CMD'
6739 lt_cv_file_magic_test_file=
6740 lt_cv_deplibs_check_method='unknown'
6741 # Need to set the preceding variable on all platforms that support
6742 # interlibrary dependencies.
6743 # 'none' -- dependencies not supported.
6744 # 'unknown' -- same as none, but documents that we really don't know.
6745 # 'pass_all' -- all dependencies passed with no checks.
6746 # 'test_compile' -- check by making test program.
6747 # 'file_magic [[regex]]' -- check by looking for files in library path
6748 # that responds to the $file_magic_cmd with a given extended regex.
6749 # If you have 'file' or equivalent on your system and you're not sure
6750 # whether 'pass_all' will *always* work, you probably want this one.
6754 lt_cv_deplibs_check_method=pass_all
6758 lt_cv_deplibs_check_method=pass_all
6762 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6763 lt_cv_file_magic_cmd='/usr/bin/file -L'
6764 lt_cv_file_magic_test_file=/shlib/libc.so
6768 # func_win32_libid is a shell function defined in ltmain.sh
6769 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6770 lt_cv_file_magic_cmd='func_win32_libid'
6774 # Base MSYS/MinGW do not provide the 'file' command needed by
6775 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6776 # unless we find 'file', for example because we are cross-compiling.
6777 if ( file / ) >/dev/null 2>&1; then
6778 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6779 lt_cv_file_magic_cmd='func_win32_libid'
6781 # Keep this pattern in sync with the one in func_win32_libid.
6782 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6783 lt_cv_file_magic_cmd='$OBJDUMP -f'
6788 # use the weaker test based on 'objdump'. See mingw*.
6789 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6790 lt_cv_file_magic_cmd='$OBJDUMP -f'
6793 darwin* | rhapsody*)
6794 lt_cv_deplibs_check_method=pass_all
6797 freebsd* | dragonfly*)
6798 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6801 # Not sure whether the presence of OpenBSD here was a mistake.
6802 # Let's accept both of them until this is cleared up.
6803 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6804 lt_cv_file_magic_cmd=/usr/bin/file
6805 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6809 lt_cv_deplibs_check_method=pass_all
6814 lt_cv_deplibs_check_method=pass_all
6817 hpux10.20* | hpux11*)
6818 lt_cv_file_magic_cmd=/usr/bin/file
6821 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6822 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6825 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6826 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6829 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6830 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6836 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6837 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6840 irix5* | irix6* | nonstopux*)
6842 *-32|*"-32 ") libmagic=32-bit;;
6843 *-n32|*"-n32 ") libmagic=N32;;
6844 *-64|*"-64 ") libmagic=64-bit;;
6845 *) libmagic=never-match;;
6847 lt_cv_deplibs_check_method=pass_all
6850 # This must be glibc/ELF.
6851 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6852 lt_cv_deplibs_check_method=pass_all
6855 netbsd* | netbsdelf*-gnu)
6856 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6857 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6859 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6864 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6865 lt_cv_file_magic_cmd=/usr/bin/file
6866 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6870 lt_cv_deplibs_check_method=pass_all
6874 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6875 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6877 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6881 osf3* | osf4* | osf5*)
6882 lt_cv_deplibs_check_method=pass_all
6886 lt_cv_deplibs_check_method=pass_all
6890 lt_cv_deplibs_check_method=pass_all
6893 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6894 lt_cv_deplibs_check_method=pass_all
6898 case $host_vendor in
6900 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6901 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6904 lt_cv_deplibs_check_method=pass_all
6907 lt_cv_file_magic_cmd='/bin/file'
6908 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6911 lt_cv_file_magic_cmd='/bin/file'
6912 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6913 lt_cv_file_magic_test_file=/lib/libc.so
6916 lt_cv_deplibs_check_method=pass_all
6919 lt_cv_deplibs_check_method=pass_all
6925 lt_cv_deplibs_check_method=pass_all
6928 lt_cv_deplibs_check_method=pass_all
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6934 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6938 if test "$build" = "$host"; then
6941 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6944 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6950 file_magic_cmd=$lt_cv_file_magic_cmd
6951 deplibs_check_method=$lt_cv_deplibs_check_method
6952 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6975 if test -n "$ac_tool_prefix"; then
6976 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6977 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6979 $as_echo_n "checking for $ac_word... " >&6; }
6980 if ${ac_cv_prog_DLLTOOL+:} false; then :
6981 $as_echo_n "(cached) " >&6
6983 if test -n "$DLLTOOL"; then
6984 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6993 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 DLLTOOL=$ac_cv_prog_DLLTOOL
7004 if test -n "$DLLTOOL"; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7006 $as_echo "$DLLTOOL" >&6; }
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009 $as_echo "no" >&6; }
7014 if test -z "$ac_cv_prog_DLLTOOL"; then
7015 ac_ct_DLLTOOL=$DLLTOOL
7016 # Extract the first word of "dlltool", so it can be a program name with args.
7017 set dummy dlltool; ac_word=$2
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7019 $as_echo_n "checking for $ac_word... " >&6; }
7020 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7021 $as_echo_n "(cached) " >&6
7023 if test -n "$ac_ct_DLLTOOL"; then
7024 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 test -z "$as_dir" && as_dir=.
7031 for ac_exec_ext in '' $ac_executable_extensions; do
7032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7033 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7044 if test -n "$ac_ct_DLLTOOL"; then
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7046 $as_echo "$ac_ct_DLLTOOL" >&6; }
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7049 $as_echo "no" >&6; }
7052 if test "x$ac_ct_DLLTOOL" = x; then
7055 case $cross_compiling:$ac_tool_warned in
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7059 ac_tool_warned=yes ;;
7061 DLLTOOL=$ac_ct_DLLTOOL
7064 DLLTOOL="$ac_cv_prog_DLLTOOL"
7067 test -z "$DLLTOOL" && DLLTOOL=dlltool
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7079 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7080 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7081 $as_echo_n "(cached) " >&6
7083 lt_cv_sharedlib_from_linklib_cmd='unknown'
7086 cygwin* | mingw* | pw32* | cegcc*)
7087 # two different shell functions defined in ltmain.sh;
7088 # decide which one to use based on capabilities of $DLLTOOL
7089 case `$DLLTOOL --help 2>&1` in
7090 *--identify-strict*)
7091 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7094 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7099 # fallback: assume linklib IS sharedlib
7100 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7106 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7107 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7108 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7116 if test -n "$ac_tool_prefix"; then
7119 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7120 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122 $as_echo_n "checking for $ac_word... " >&6; }
7123 if ${ac_cv_prog_AR+:} false; then :
7124 $as_echo_n "(cached) " >&6
7126 if test -n "$AR"; then
7127 ac_cv_prog_AR="$AR" # Let the user override the test.
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7136 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 if test -n "$AR"; then
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7149 $as_echo "$AR" >&6; }
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152 $as_echo "no" >&6; }
7156 test -n "$AR" && break
7159 if test -z "$AR"; then
7163 # Extract the first word of "$ac_prog", so it can be a program name with args.
7164 set dummy $ac_prog; ac_word=$2
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7166 $as_echo_n "checking for $ac_word... " >&6; }
7167 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7168 $as_echo_n "(cached) " >&6
7170 if test -n "$ac_ct_AR"; then
7171 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7180 ac_cv_prog_ac_ct_AR="$ac_prog"
7181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7190 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7191 if test -n "$ac_ct_AR"; then
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7193 $as_echo "$ac_ct_AR" >&6; }
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196 $as_echo "no" >&6; }
7200 test -n "$ac_ct_AR" && break
7203 if test "x$ac_ct_AR" = x; then
7206 case $cross_compiling:$ac_tool_warned in
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7210 ac_tool_warned=yes ;;
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7230 $as_echo_n "checking for archiver @FILE support... " >&6; }
7231 if ${lt_cv_ar_at_file+:} false; then :
7232 $as_echo_n "(cached) " >&6
7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236 /* end confdefs.h. */
7246 if ac_fn_c_try_compile "$LINENO"; then :
7247 echo conftest.$ac_objext > conftest.lst
7248 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7250 (eval $lt_ar_try) 2>&5
7252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7253 test $ac_status = 0; }
7254 if test 0 -eq "$ac_status"; then
7255 # Ensure the archiver fails upon bogus file names.
7256 rm -f conftest.$ac_objext libconftest.a
7257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7258 (eval $lt_ar_try) 2>&5
7260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7261 test $ac_status = 0; }
7262 if test 0 -ne "$ac_status"; then
7266 rm -f conftest.* libconftest.a
7269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7273 $as_echo "$lt_cv_ar_at_file" >&6; }
7275 if test no = "$lt_cv_ar_at_file"; then
7278 archiver_list_spec=$lt_cv_ar_at_file
7287 if test -n "$ac_tool_prefix"; then
7288 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7289 set dummy ${ac_tool_prefix}strip; ac_word=$2
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7291 $as_echo_n "checking for $ac_word... " >&6; }
7292 if ${ac_cv_prog_STRIP+:} false; then :
7293 $as_echo_n "(cached) " >&6
7295 if test -n "$STRIP"; then
7296 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 test -z "$as_dir" && as_dir=.
7303 for ac_exec_ext in '' $ac_executable_extensions; do
7304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7305 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7315 STRIP=$ac_cv_prog_STRIP
7316 if test -n "$STRIP"; then
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7318 $as_echo "$STRIP" >&6; }
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7321 $as_echo "no" >&6; }
7326 if test -z "$ac_cv_prog_STRIP"; then
7328 # Extract the first word of "strip", so it can be a program name with args.
7329 set dummy strip; ac_word=$2
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331 $as_echo_n "checking for $ac_word... " >&6; }
7332 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7333 $as_echo_n "(cached) " >&6
7335 if test -n "$ac_ct_STRIP"; then
7336 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7345 ac_cv_prog_ac_ct_STRIP="strip"
7346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7355 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7356 if test -n "$ac_ct_STRIP"; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7358 $as_echo "$ac_ct_STRIP" >&6; }
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361 $as_echo "no" >&6; }
7364 if test "x$ac_ct_STRIP" = x; then
7367 case $cross_compiling:$ac_tool_warned in
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7371 ac_tool_warned=yes ;;
7376 STRIP="$ac_cv_prog_STRIP"
7379 test -z "$STRIP" && STRIP=:
7386 if test -n "$ac_tool_prefix"; then
7387 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7388 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390 $as_echo_n "checking for $ac_word... " >&6; }
7391 if ${ac_cv_prog_RANLIB+:} false; then :
7392 $as_echo_n "(cached) " >&6
7394 if test -n "$RANLIB"; then
7395 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 RANLIB=$ac_cv_prog_RANLIB
7415 if test -n "$RANLIB"; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7417 $as_echo "$RANLIB" >&6; }
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7425 if test -z "$ac_cv_prog_RANLIB"; then
7426 ac_ct_RANLIB=$RANLIB
7427 # Extract the first word of "ranlib", so it can be a program name with args.
7428 set dummy ranlib; ac_word=$2
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7430 $as_echo_n "checking for $ac_word... " >&6; }
7431 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7432 $as_echo_n "(cached) " >&6
7434 if test -n "$ac_ct_RANLIB"; then
7435 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 test -z "$as_dir" && as_dir=.
7442 for ac_exec_ext in '' $ac_executable_extensions; do
7443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7444 ac_cv_prog_ac_ct_RANLIB="ranlib"
7445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7454 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7455 if test -n "$ac_ct_RANLIB"; then
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7457 $as_echo "$ac_ct_RANLIB" >&6; }
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7460 $as_echo "no" >&6; }
7463 if test "x$ac_ct_RANLIB" = x; then
7466 case $cross_compiling:$ac_tool_warned in
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7470 ac_tool_warned=yes ;;
7472 RANLIB=$ac_ct_RANLIB
7475 RANLIB="$ac_cv_prog_RANLIB"
7478 test -z "$RANLIB" && RANLIB=:
7485 # Determine commands to create old-style static archives.
7486 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7487 old_postinstall_cmds='chmod 644 $oldlib'
7488 old_postuninstall_cmds=
7490 if test -n "$RANLIB"; then
7493 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7496 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7499 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7504 lock_old_archive_extraction=yes ;;
7506 lock_old_archive_extraction=no ;;
7547 # If no C compiler was specified, use CC.
7550 # If no C compiler flags were specified, use CFLAGS.
7551 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7553 # Allow CC to be a program name with arguments.
7557 # Check for command to grab the raw symbol name followed by C symbol from nm.
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7559 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7560 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7561 $as_echo_n "(cached) " >&6
7564 # These are sane defaults that work on at least a few old systems.
7565 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7567 # Character class describing NM global symbol codes.
7568 symcode='[BCDEGRST]'
7570 # Regexp to match symbols that can be accessed directly from C.
7571 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7573 # Define system-specific variables.
7578 cygwin* | mingw* | pw32* | cegcc*)
7579 symcode='[ABCDGISTW]'
7582 if test ia64 = "$host_cpu"; then
7583 symcode='[ABCDEGRST]'
7587 symcode='[BCDEGRST]'
7590 symcode='[BCDEGQRST]'
7601 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7609 # If we're using GNU nm, then use its standard symbol codes.
7610 case `$NM -V 2>&1` in
7611 *GNU* | *'with BFD'*)
7612 symcode='[ABCDGIRSTW]' ;;
7615 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7616 # Gets list of data symbols to import.
7617 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7618 # Adjust the below global symbol transforms to fixup imported variables.
7619 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7620 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7621 lt_c_name_lib_hook="\
7622 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7623 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7625 # Disable hooks by default.
7626 lt_cv_sys_global_symbol_to_import=
7632 # Transform an extracted symbol line into a proper C declaration.
7633 # Some systems (esp. on ia64) link data and code symbols differently,
7634 # so use this general approach.
7635 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7637 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7638 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7640 # Transform an extracted symbol line into symbol name and symbol address
7641 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7643 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7644 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7646 # Transform an extracted symbol line into symbol name with lib prefix and
7648 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7649 $lt_c_name_lib_hook\
7650 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7651 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7652 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7654 # Handle CRLF in mingw tool chain
7658 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7662 # Try without a prefix underscore, then with it.
7663 for ac_symprfx in "" "_"; do
7665 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7666 symxfrm="\\1 $ac_symprfx\\2 \\2"
7668 # Write the raw and C identifiers.
7669 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7670 # Fake it for dumpbin and say T for any non-static function,
7671 # D for any global variable and I for any imported variable.
7672 # Also find C++ and __fastcall symbols from MSVC++,
7673 # which start with @ or ?.
7674 lt_cv_sys_global_symbol_pipe="$AWK '"\
7675 " {last_section=section; section=\$ 3};"\
7676 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7677 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7678 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7679 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7680 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7681 " \$ 0!~/External *\|/{next};"\
7682 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7683 " {if(hide[section]) next};"\
7684 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7685 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7686 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7687 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7688 " ' prfx=^$ac_symprfx"
7690 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7692 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7694 # Check to see that the pipe works correctly.
7698 cat > conftest.$ac_ext <<_LT_EOF
7703 void nm_test_func(void);
7704 void nm_test_func(void){}
7708 int main(){nm_test_var='a';nm_test_func();return(0);}
7711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7712 (eval $ac_compile) 2>&5
7714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7715 test $ac_status = 0; }; then
7716 # Now try to grab the symbols.
7718 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7719 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7720 # Try sorting and uniquifying the output.
7721 if sort "$nlist" | uniq > "$nlist"T; then
7722 mv -f "$nlist"T "$nlist"
7727 # Make sure that we snagged all the symbols we need.
7728 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7729 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7730 cat <<_LT_EOF > conftest.$ac_ext
7731 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7732 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7733 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7734 relocations are performed -- see ld's documentation on pseudo-relocs. */
7735 # define LT_DLSYM_CONST
7736 #elif defined __osf__
7737 /* This system does not cope well with relocations in const data. */
7738 # define LT_DLSYM_CONST
7740 # define LT_DLSYM_CONST const
7748 # Now generate the symbol file.
7749 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7751 cat <<_LT_EOF >> conftest.$ac_ext
7753 /* The mapping between symbol names and symbols. */
7754 LT_DLSYM_CONST struct {
7758 lt__PROGRAM__LTX_preloaded_symbols[] =
7760 { "@PROGRAM@", (void *) 0 },
7762 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7763 cat <<\_LT_EOF >> conftest.$ac_ext
7767 /* This works around a problem in FreeBSD linker */
7768 #ifdef FREEBSD_WORKAROUND
7769 static const void *lt_preloaded_setup() {
7770 return lt__PROGRAM__LTX_preloaded_symbols;
7778 # Now try linking the two files.
7779 mv conftest.$ac_objext conftstm.$ac_objext
7780 lt_globsym_save_LIBS=$LIBS
7781 lt_globsym_save_CFLAGS=$CFLAGS
7782 LIBS=conftstm.$ac_objext
7783 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7785 (eval $ac_link) 2>&5
7787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7788 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7791 LIBS=$lt_globsym_save_LIBS
7792 CFLAGS=$lt_globsym_save_CFLAGS
7794 echo "cannot find nm_test_func in $nlist" >&5
7797 echo "cannot find nm_test_var in $nlist" >&5
7800 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7803 echo "$progname: failed program was:" >&5
7804 cat conftest.$ac_ext >&5
7806 rm -rf conftest* conftst*
7808 # Do not use the global_symbol_pipe unless it works.
7809 if test yes = "$pipe_works"; then
7812 lt_cv_sys_global_symbol_pipe=
7818 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7819 lt_cv_sys_global_symbol_to_cdecl=
7821 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7823 $as_echo "failed" >&6; }
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7826 $as_echo "ok" >&6; }
7829 # Response file support.
7830 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7831 nm_file_list_spec='@'
7832 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7833 nm_file_list_spec='@'
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7873 $as_echo_n "checking for sysroot... " >&6; }
7875 # Check whether --with-sysroot was given.
7876 if test "${with_sysroot+set}" = set; then :
7877 withval=$with_sysroot;
7884 case $with_sysroot in #(
7886 if test yes = "$GCC"; then
7887 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7891 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7897 $as_echo "$with_sysroot" >&6; }
7898 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7903 $as_echo "${lt_sysroot:-no}" >&6; }
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7910 $as_echo_n "checking for a working dd... " >&6; }
7911 if ${ac_cv_path_lt_DD+:} false; then :
7912 $as_echo_n "(cached) " >&6
7914 printf 0123456789abcdef0123456789abcdef >conftest.i
7915 cat conftest.i conftest.i >conftest2.i
7917 if test -z "$lt_DD"; then
7918 ac_path_lt_DD_found=false
7919 # Loop through the user's path and test for each of PROGNAME-LIST
7920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924 test -z "$as_dir" && as_dir=.
7925 for ac_prog in dd; do
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7928 as_fn_executable_p "$ac_path_lt_DD" || continue
7929 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7930 cmp -s conftest.i conftest.out \
7931 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7933 $ac_path_lt_DD_found && break 3
7938 if test -z "$ac_cv_path_lt_DD"; then
7942 ac_cv_path_lt_DD=$lt_DD
7945 rm -f conftest.i conftest2.i conftest.out
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7948 $as_echo "$ac_cv_path_lt_DD" >&6; }
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7952 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7953 if ${lt_cv_truncate_bin+:} false; then :
7954 $as_echo_n "(cached) " >&6
7956 printf 0123456789abcdef0123456789abcdef >conftest.i
7957 cat conftest.i conftest.i >conftest2.i
7959 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7960 cmp -s conftest.i conftest.out \
7961 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7963 rm -f conftest.i conftest2.i conftest.out
7964 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7967 $as_echo "$lt_cv_truncate_bin" >&6; }
7975 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7978 for cc_temp in $*""; do
7980 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7981 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7986 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7989 # Check whether --enable-libtool-lock was given.
7990 if test "${enable_libtool_lock+set}" = set; then :
7991 enableval=$enable_libtool_lock;
7994 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7996 # Some flags need to be propagated to the compiler or linker for good
8000 # Find out what ABI is being produced by ac_compile, and set mode
8001 # options accordingly.
8002 echo 'int i;' > conftest.$ac_ext
8003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8004 (eval $ac_compile) 2>&5
8006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8007 test $ac_status = 0; }; then
8008 case `/usr/bin/file conftest.$ac_objext` in
8020 # Find out what ABI is being produced by ac_compile, and set linker
8021 # options accordingly.
8022 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8024 (eval $ac_compile) 2>&5
8026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8027 test $ac_status = 0; }; then
8028 if test yes = "$lt_cv_prog_gnu_ld"; then
8029 case `/usr/bin/file conftest.$ac_objext` in
8031 LD="${LD-ld} -melf32bsmip"
8034 LD="${LD-ld} -melf32bmipn32"
8037 LD="${LD-ld} -melf64bmip"
8041 case `/usr/bin/file conftest.$ac_objext` in
8058 # Find out what ABI is being produced by ac_compile, and set linker
8059 # options accordingly.
8060 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8062 (eval $ac_compile) 2>&5
8064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8065 test $ac_status = 0; }; then
8067 case `/usr/bin/file conftest.$ac_objext` in
8075 case `/usr/bin/file conftest.$ac_objext` in
8077 emul="${emul}btsmip"
8080 emul="${emul}ltsmip"
8083 case `/usr/bin/file conftest.$ac_objext` in
8088 LD="${LD-ld} -m $emul"
8093 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8094 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8095 # Find out what ABI is being produced by ac_compile, and set linker
8096 # options accordingly. Note that the listed cases only cover the
8097 # situations where additional linker options are needed (such as when
8098 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8099 # vice versa); the common cases where no linker options are needed do
8100 # not appear in the list.
8101 echo 'int i;' > conftest.$ac_ext
8102 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8103 (eval $ac_compile) 2>&5
8105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8106 test $ac_status = 0; }; then
8107 case `/usr/bin/file conftest.o` in
8110 x86_64-*kfreebsd*-gnu)
8111 LD="${LD-ld} -m elf_i386_fbsd"
8114 case `/usr/bin/file conftest.o` in
8116 LD="${LD-ld} -m elf32_x86_64"
8119 LD="${LD-ld} -m elf_i386"
8123 powerpc64le-*linux*)
8124 LD="${LD-ld} -m elf32lppclinux"
8127 LD="${LD-ld} -m elf32ppclinux"
8130 LD="${LD-ld} -m elf_s390"
8133 LD="${LD-ld} -m elf32_sparc"
8139 x86_64-*kfreebsd*-gnu)
8140 LD="${LD-ld} -m elf_x86_64_fbsd"
8143 LD="${LD-ld} -m elf_x86_64"
8146 LD="${LD-ld} -m elf64lppc"
8149 LD="${LD-ld} -m elf64ppc"
8151 s390*-*linux*|s390*-*tpf*)
8152 LD="${LD-ld} -m elf64_s390"
8155 LD="${LD-ld} -m elf64_sparc"
8165 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8167 CFLAGS="$CFLAGS -belf"
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8169 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8170 if ${lt_cv_cc_needs_belf+:} false; then :
8171 $as_echo_n "(cached) " >&6
8174 ac_cpp='$CPP $CPPFLAGS'
8175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h. */
8190 if ac_fn_c_try_link "$LINENO"; then :
8191 lt_cv_cc_needs_belf=yes
8193 lt_cv_cc_needs_belf=no
8195 rm -f core conftest.err conftest.$ac_objext \
8196 conftest$ac_exeext conftest.$ac_ext
8198 ac_cpp='$CPP $CPPFLAGS'
8199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8205 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8206 if test yes != "$lt_cv_cc_needs_belf"; then
8207 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8212 # Find out what ABI is being produced by ac_compile, and set linker
8213 # options accordingly.
8214 echo 'int i;' > conftest.$ac_ext
8215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8216 (eval $ac_compile) 2>&5
8218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8219 test $ac_status = 0; }; then
8220 case `/usr/bin/file conftest.o` in
8222 case $lt_cv_prog_gnu_ld in
8225 i?86-*-solaris*|x86_64-*-solaris*)
8226 LD="${LD-ld} -m elf_x86_64"
8229 LD="${LD-ld} -m elf64_sparc"
8232 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8233 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8238 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8250 need_locks=$enable_libtool_lock
8252 if test -n "$ac_tool_prefix"; then
8253 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8254 set dummy ${ac_tool_prefix}mt; ac_word=$2
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8256 $as_echo_n "checking for $ac_word... " >&6; }
8257 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8258 $as_echo_n "(cached) " >&6
8260 if test -n "$MANIFEST_TOOL"; then
8261 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267 test -z "$as_dir" && as_dir=.
8268 for ac_exec_ext in '' $ac_executable_extensions; do
8269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8270 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8280 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8281 if test -n "$MANIFEST_TOOL"; then
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8283 $as_echo "$MANIFEST_TOOL" >&6; }
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286 $as_echo "no" >&6; }
8291 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8292 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8293 # Extract the first word of "mt", so it can be a program name with args.
8294 set dummy mt; ac_word=$2
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8296 $as_echo_n "checking for $ac_word... " >&6; }
8297 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8298 $as_echo_n "(cached) " >&6
8300 if test -n "$ac_ct_MANIFEST_TOOL"; then
8301 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307 test -z "$as_dir" && as_dir=.
8308 for ac_exec_ext in '' $ac_executable_extensions; do
8309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8310 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8320 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8321 if test -n "$ac_ct_MANIFEST_TOOL"; then
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8323 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8326 $as_echo "no" >&6; }
8329 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8332 case $cross_compiling:$ac_tool_warned in
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8336 ac_tool_warned=yes ;;
8338 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8341 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8344 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8346 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8347 if ${lt_cv_path_mainfest_tool+:} false; then :
8348 $as_echo_n "(cached) " >&6
8350 lt_cv_path_mainfest_tool=no
8351 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8352 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8353 cat conftest.err >&5
8354 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8355 lt_cv_path_mainfest_tool=yes
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8360 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8361 if test yes != "$lt_cv_path_mainfest_tool"; then
8371 rhapsody* | darwin*)
8372 if test -n "$ac_tool_prefix"; then
8373 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8374 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376 $as_echo_n "checking for $ac_word... " >&6; }
8377 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8378 $as_echo_n "(cached) " >&6
8380 if test -n "$DSYMUTIL"; then
8381 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8387 test -z "$as_dir" && as_dir=.
8388 for ac_exec_ext in '' $ac_executable_extensions; do
8389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8390 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8400 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8401 if test -n "$DSYMUTIL"; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8403 $as_echo "$DSYMUTIL" >&6; }
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406 $as_echo "no" >&6; }
8411 if test -z "$ac_cv_prog_DSYMUTIL"; then
8412 ac_ct_DSYMUTIL=$DSYMUTIL
8413 # Extract the first word of "dsymutil", so it can be a program name with args.
8414 set dummy dsymutil; ac_word=$2
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8416 $as_echo_n "checking for $ac_word... " >&6; }
8417 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8418 $as_echo_n "(cached) " >&6
8420 if test -n "$ac_ct_DSYMUTIL"; then
8421 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8427 test -z "$as_dir" && as_dir=.
8428 for ac_exec_ext in '' $ac_executable_extensions; do
8429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8430 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8440 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8441 if test -n "$ac_ct_DSYMUTIL"; then
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8443 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8446 $as_echo "no" >&6; }
8449 if test "x$ac_ct_DSYMUTIL" = x; then
8452 case $cross_compiling:$ac_tool_warned in
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8456 ac_tool_warned=yes ;;
8458 DSYMUTIL=$ac_ct_DSYMUTIL
8461 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8464 if test -n "$ac_tool_prefix"; then
8465 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8466 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8468 $as_echo_n "checking for $ac_word... " >&6; }
8469 if ${ac_cv_prog_NMEDIT+:} false; then :
8470 $as_echo_n "(cached) " >&6
8472 if test -n "$NMEDIT"; then
8473 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479 test -z "$as_dir" && as_dir=.
8480 for ac_exec_ext in '' $ac_executable_extensions; do
8481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8482 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8492 NMEDIT=$ac_cv_prog_NMEDIT
8493 if test -n "$NMEDIT"; then
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8495 $as_echo "$NMEDIT" >&6; }
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498 $as_echo "no" >&6; }
8503 if test -z "$ac_cv_prog_NMEDIT"; then
8504 ac_ct_NMEDIT=$NMEDIT
8505 # Extract the first word of "nmedit", so it can be a program name with args.
8506 set dummy nmedit; ac_word=$2
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8508 $as_echo_n "checking for $ac_word... " >&6; }
8509 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8510 $as_echo_n "(cached) " >&6
8512 if test -n "$ac_ct_NMEDIT"; then
8513 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8519 test -z "$as_dir" && as_dir=.
8520 for ac_exec_ext in '' $ac_executable_extensions; do
8521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8522 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8532 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8533 if test -n "$ac_ct_NMEDIT"; then
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8535 $as_echo "$ac_ct_NMEDIT" >&6; }
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8538 $as_echo "no" >&6; }
8541 if test "x$ac_ct_NMEDIT" = x; then
8544 case $cross_compiling:$ac_tool_warned in
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8548 ac_tool_warned=yes ;;
8550 NMEDIT=$ac_ct_NMEDIT
8553 NMEDIT="$ac_cv_prog_NMEDIT"
8556 if test -n "$ac_tool_prefix"; then
8557 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8558 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8560 $as_echo_n "checking for $ac_word... " >&6; }
8561 if ${ac_cv_prog_LIPO+:} false; then :
8562 $as_echo_n "(cached) " >&6
8564 if test -n "$LIPO"; then
8565 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8571 test -z "$as_dir" && as_dir=.
8572 for ac_exec_ext in '' $ac_executable_extensions; do
8573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8574 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8584 LIPO=$ac_cv_prog_LIPO
8585 if test -n "$LIPO"; then
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8587 $as_echo "$LIPO" >&6; }
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8590 $as_echo "no" >&6; }
8595 if test -z "$ac_cv_prog_LIPO"; then
8597 # Extract the first word of "lipo", so it can be a program name with args.
8598 set dummy lipo; ac_word=$2
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8600 $as_echo_n "checking for $ac_word... " >&6; }
8601 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8602 $as_echo_n "(cached) " >&6
8604 if test -n "$ac_ct_LIPO"; then
8605 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8611 test -z "$as_dir" && as_dir=.
8612 for ac_exec_ext in '' $ac_executable_extensions; do
8613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8614 ac_cv_prog_ac_ct_LIPO="lipo"
8615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8624 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8625 if test -n "$ac_ct_LIPO"; then
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8627 $as_echo "$ac_ct_LIPO" >&6; }
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8630 $as_echo "no" >&6; }
8633 if test "x$ac_ct_LIPO" = x; then
8636 case $cross_compiling:$ac_tool_warned in
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8640 ac_tool_warned=yes ;;
8645 LIPO="$ac_cv_prog_LIPO"
8648 if test -n "$ac_tool_prefix"; then
8649 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8650 set dummy ${ac_tool_prefix}otool; ac_word=$2
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652 $as_echo_n "checking for $ac_word... " >&6; }
8653 if ${ac_cv_prog_OTOOL+:} false; then :
8654 $as_echo_n "(cached) " >&6
8656 if test -n "$OTOOL"; then
8657 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8663 test -z "$as_dir" && as_dir=.
8664 for ac_exec_ext in '' $ac_executable_extensions; do
8665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8666 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8676 OTOOL=$ac_cv_prog_OTOOL
8677 if test -n "$OTOOL"; then
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8679 $as_echo "$OTOOL" >&6; }
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682 $as_echo "no" >&6; }
8687 if test -z "$ac_cv_prog_OTOOL"; then
8689 # Extract the first word of "otool", so it can be a program name with args.
8690 set dummy otool; ac_word=$2
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8692 $as_echo_n "checking for $ac_word... " >&6; }
8693 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8694 $as_echo_n "(cached) " >&6
8696 if test -n "$ac_ct_OTOOL"; then
8697 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703 test -z "$as_dir" && as_dir=.
8704 for ac_exec_ext in '' $ac_executable_extensions; do
8705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8706 ac_cv_prog_ac_ct_OTOOL="otool"
8707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8716 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8717 if test -n "$ac_ct_OTOOL"; then
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8719 $as_echo "$ac_ct_OTOOL" >&6; }
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8722 $as_echo "no" >&6; }
8725 if test "x$ac_ct_OTOOL" = x; then
8728 case $cross_compiling:$ac_tool_warned in
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8732 ac_tool_warned=yes ;;
8737 OTOOL="$ac_cv_prog_OTOOL"
8740 if test -n "$ac_tool_prefix"; then
8741 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8742 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8744 $as_echo_n "checking for $ac_word... " >&6; }
8745 if ${ac_cv_prog_OTOOL64+:} false; then :
8746 $as_echo_n "(cached) " >&6
8748 if test -n "$OTOOL64"; then
8749 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755 test -z "$as_dir" && as_dir=.
8756 for ac_exec_ext in '' $ac_executable_extensions; do
8757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8758 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8768 OTOOL64=$ac_cv_prog_OTOOL64
8769 if test -n "$OTOOL64"; then
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8771 $as_echo "$OTOOL64" >&6; }
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8774 $as_echo "no" >&6; }
8779 if test -z "$ac_cv_prog_OTOOL64"; then
8780 ac_ct_OTOOL64=$OTOOL64
8781 # Extract the first word of "otool64", so it can be a program name with args.
8782 set dummy otool64; ac_word=$2
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8784 $as_echo_n "checking for $ac_word... " >&6; }
8785 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8786 $as_echo_n "(cached) " >&6
8788 if test -n "$ac_ct_OTOOL64"; then
8789 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8795 test -z "$as_dir" && as_dir=.
8796 for ac_exec_ext in '' $ac_executable_extensions; do
8797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8798 ac_cv_prog_ac_ct_OTOOL64="otool64"
8799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8808 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8809 if test -n "$ac_ct_OTOOL64"; then
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8811 $as_echo "$ac_ct_OTOOL64" >&6; }
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8814 $as_echo "no" >&6; }
8817 if test "x$ac_ct_OTOOL64" = x; then
8820 case $cross_compiling:$ac_tool_warned in
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8824 ac_tool_warned=yes ;;
8826 OTOOL64=$ac_ct_OTOOL64
8829 OTOOL64="$ac_cv_prog_OTOOL64"
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8859 $as_echo_n "checking for -single_module linker flag... " >&6; }
8860 if ${lt_cv_apple_cc_single_mod+:} false; then :
8861 $as_echo_n "(cached) " >&6
8863 lt_cv_apple_cc_single_mod=no
8864 if test -z "$LT_MULTI_MODULE"; then
8865 # By default we will add the -single_module flag. You can override
8866 # by either setting the environment variable LT_MULTI_MODULE
8867 # non-empty at configure time, or by adding -multi_module to the
8869 rm -rf libconftest.dylib*
8870 echo "int foo(void){return 1;}" > conftest.c
8871 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8872 -dynamiclib -Wl,-single_module conftest.c" >&5
8873 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8874 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8876 # If there is a non-empty error log, and "single_module"
8877 # appears in it, assume the flag caused a linker warning
8878 if test -s conftest.err && $GREP single_module conftest.err; then
8879 cat conftest.err >&5
8880 # Otherwise, if the output was created with a 0 exit code from
8881 # the compiler, it worked.
8882 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8883 lt_cv_apple_cc_single_mod=yes
8885 cat conftest.err >&5
8887 rm -rf libconftest.dylib*
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8892 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8895 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8896 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8897 $as_echo_n "(cached) " >&6
8899 lt_cv_ld_exported_symbols_list=no
8900 save_LDFLAGS=$LDFLAGS
8901 echo "_main" > conftest.sym
8902 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8914 if ac_fn_c_try_link "$LINENO"; then :
8915 lt_cv_ld_exported_symbols_list=yes
8917 lt_cv_ld_exported_symbols_list=no
8919 rm -f core conftest.err conftest.$ac_objext \
8920 conftest$ac_exeext conftest.$ac_ext
8921 LDFLAGS=$save_LDFLAGS
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8925 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8928 $as_echo_n "checking for -force_load linker flag... " >&6; }
8929 if ${lt_cv_ld_force_load+:} false; then :
8930 $as_echo_n "(cached) " >&6
8932 lt_cv_ld_force_load=no
8933 cat > conftest.c << _LT_EOF
8934 int forced_loaded() { return 2;}
8936 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8937 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8938 echo "$AR cr libconftest.a conftest.o" >&5
8939 $AR cr libconftest.a conftest.o 2>&5
8940 echo "$RANLIB libconftest.a" >&5
8941 $RANLIB libconftest.a 2>&5
8942 cat > conftest.c << _LT_EOF
8943 int main() { return 0;}
8945 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8946 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8948 if test -s conftest.err && $GREP force_load conftest.err; then
8949 cat conftest.err >&5
8950 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8951 lt_cv_ld_force_load=yes
8953 cat conftest.err >&5
8955 rm -f conftest.err libconftest.a conftest conftest.c
8956 rm -rf conftest.dSYM
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8960 $as_echo "$lt_cv_ld_force_load" >&6; }
8962 rhapsody* | darwin1.[012])
8963 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8965 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8966 darwin*) # darwin 5.x on
8967 # if running on 10.5 or later, the deployment target defaults
8968 # to the OS version, if on x86, and 10.4, the deployment
8969 # target defaults to 10.4. Don't you love it?
8970 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8971 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8972 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8974 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8976 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8980 if test yes = "$lt_cv_apple_cc_single_mod"; then
8981 _lt_dar_single_mod='$single_module'
8983 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8984 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8986 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8988 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8989 _lt_dsymutil='~$DSYMUTIL $lib || :'
8996 # func_munge_path_list VARIABLE PATH
8997 # -----------------------------------
8998 # VARIABLE is name of variable containing _space_ separated list of
8999 # directories to be munged by the contents of PATH, which is string
9002 # string "DIR[ DIR]" will be prepended to VARIABLE
9004 # string "DIR[ DIR]" will be appended to VARIABLE
9005 # "DIRP[:DIRP]::[DIRA:]DIRA"
9006 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9007 # "DIRA[ DIRA]" will be appended to VARIABLE
9009 # VARIABLE will be replaced by "DIR[ DIR]"
9010 func_munge_path_list ()
9016 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9019 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9022 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9023 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9026 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9031 for ac_header in dlfcn.h
9033 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9035 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9036 cat >>confdefs.h <<_ACEOF
9037 #define HAVE_DLFCN_H 1
9058 # Check whether --enable-shared was given.
9059 if test "${enable_shared+set}" = set; then :
9060 enableval=$enable_shared; p=${PACKAGE-default}
9062 yes) enable_shared=yes ;;
9063 no) enable_shared=no ;;
9066 # Look at the argument we got. We use all the common list separators.
9067 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9068 for pkg in $enableval; do
9070 if test "X$pkg" = "X$p"; then
9091 # Check whether --with-pic was given.
9092 if test "${with_pic+set}" = set; then :
9093 withval=$with_pic; lt_p=${PACKAGE-default}
9095 yes|no) pic_mode=$withval ;;
9098 # Look at the argument we got. We use all the common list separators.
9099 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9100 for lt_pkg in $withval; do
9102 if test "X$lt_pkg" = "X$lt_p"; then
9120 # Check whether --enable-fast-install was given.
9121 if test "${enable_fast_install+set}" = set; then :
9122 enableval=$enable_fast_install; p=${PACKAGE-default}
9124 yes) enable_fast_install=yes ;;
9125 no) enable_fast_install=no ;;
9127 enable_fast_install=no
9128 # Look at the argument we got. We use all the common list separators.
9129 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9130 for pkg in $enableval; do
9132 if test "X$pkg" = "X$p"; then
9133 enable_fast_install=yes
9140 enable_fast_install=yes
9150 shared_archive_member_spec=
9151 case $host,$enable_shared in
9152 power*-*-aix[5-9]*,yes)
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9154 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9156 # Check whether --with-aix-soname was given.
9157 if test "${with_aix_soname+set}" = set; then :
9158 withval=$with_aix_soname; case $withval in
9162 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9165 lt_cv_with_aix_soname=$with_aix_soname
9167 if ${lt_cv_with_aix_soname+:} false; then :
9168 $as_echo_n "(cached) " >&6
9170 lt_cv_with_aix_soname=aix
9173 with_aix_soname=$lt_cv_with_aix_soname
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9177 $as_echo "$with_aix_soname" >&6; }
9178 if test aix != "$with_aix_soname"; then
9179 # For the AIX way of multilib, we name the shared archive member
9180 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9181 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9182 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9183 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9184 if test 64 = "${OBJECT_MODE-32}"; then
9185 shared_archive_member_spec=shr_64
9187 shared_archive_member_spec=shr
9205 # This can be used to rebuild libtool when needed
9206 LIBTOOL_DEPS=$ltmain
9208 # Always use our own libtool.
9209 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9240 test -z "$LN_S" && LN_S="ln -s"
9255 if test -n "${ZSH_VERSION+set}"; then
9256 setopt NO_GLOB_SUBST
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9260 $as_echo_n "checking for objdir... " >&6; }
9261 if ${lt_cv_objdir+:} false; then :
9262 $as_echo_n "(cached) " >&6
9264 rm -f .libs 2>/dev/null
9265 mkdir .libs 2>/dev/null
9266 if test -d .libs; then
9269 # MS-DOS does not allow filenames that begin with a dot.
9272 rmdir .libs 2>/dev/null
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9275 $as_echo "$lt_cv_objdir" >&6; }
9276 objdir=$lt_cv_objdir
9282 cat >>confdefs.h <<_ACEOF
9283 #define LT_OBJDIR "$lt_cv_objdir/"
9291 # AIX sometimes has problems with the GCC collect2 program. For some
9292 # reason, if we set the COLLECT_NAMES environment variable, the problems
9293 # vanish in a puff of smoke.
9294 if test set != "${COLLECT_NAMES+set}"; then
9296 export COLLECT_NAMES
9303 can_build_shared=yes
9305 # All known linkers require a '.a' archive for static linking (except MSVC,
9306 # which needs '.lib').
9309 with_gnu_ld=$lt_cv_prog_gnu_ld
9314 # Set sane defaults for various variables
9315 test -z "$CC" && CC=cc
9316 test -z "$LTCC" && LTCC=$CC
9317 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9318 test -z "$LD" && LD=ld
9319 test -z "$ac_objext" && ac_objext=o
9321 func_cc_basename $compiler
9322 cc_basename=$func_cc_basename_result
9325 # Only perform the check for file, if the check method requires it
9326 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9327 case $deplibs_check_method in
9329 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9331 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9332 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9333 $as_echo_n "(cached) " >&6
9337 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9340 lt_save_MAGIC_CMD=$MAGIC_CMD
9341 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9342 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9343 for ac_dir in $ac_dummy; do
9345 test -z "$ac_dir" && ac_dir=.
9346 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9347 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9348 if test -n "$file_magic_test_file"; then
9349 case $deplibs_check_method in
9351 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9352 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9353 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9354 $EGREP "$file_magic_regex" > /dev/null; then
9359 *** Warning: the command libtool uses to detect shared libraries,
9360 *** $file_magic_cmd, produces output that libtool cannot recognize.
9361 *** The result is that libtool may fail to recognize shared libraries
9362 *** as such. This will affect the creation of libtool libraries that
9363 *** depend on shared libraries, but programs linked with such libtool
9364 *** libraries will work regardless of this problem. Nevertheless, you
9365 *** may want to report the problem to your system manager and/or to
9366 *** bug-libtool@gnu.org
9376 MAGIC_CMD=$lt_save_MAGIC_CMD
9381 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9382 if test -n "$MAGIC_CMD"; then
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9384 $as_echo "$MAGIC_CMD" >&6; }
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9387 $as_echo "no" >&6; }
9394 if test -z "$lt_cv_path_MAGIC_CMD"; then
9395 if test -n "$ac_tool_prefix"; then
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9397 $as_echo_n "checking for file... " >&6; }
9398 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9399 $as_echo_n "(cached) " >&6
9403 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9406 lt_save_MAGIC_CMD=$MAGIC_CMD
9407 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9408 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9409 for ac_dir in $ac_dummy; do
9411 test -z "$ac_dir" && ac_dir=.
9412 if test -f "$ac_dir/file"; then
9413 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9414 if test -n "$file_magic_test_file"; then
9415 case $deplibs_check_method in
9417 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9418 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9419 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9420 $EGREP "$file_magic_regex" > /dev/null; then
9425 *** Warning: the command libtool uses to detect shared libraries,
9426 *** $file_magic_cmd, produces output that libtool cannot recognize.
9427 *** The result is that libtool may fail to recognize shared libraries
9428 *** as such. This will affect the creation of libtool libraries that
9429 *** depend on shared libraries, but programs linked with such libtool
9430 *** libraries will work regardless of this problem. Nevertheless, you
9431 *** may want to report the problem to your system manager and/or to
9432 *** bug-libtool@gnu.org
9442 MAGIC_CMD=$lt_save_MAGIC_CMD
9447 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9448 if test -n "$MAGIC_CMD"; then
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9450 $as_echo "$MAGIC_CMD" >&6; }
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9453 $as_echo "no" >&6; }
9466 # Use C for the default configuration in the libtool script
9470 ac_cpp='$CPP $CPPFLAGS'
9471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9476 # Source file extension for C test sources.
9479 # Object file extension for compiled C test sources.
9483 # Code to be used in simple compile tests
9484 lt_simple_compile_test_code="int some_variable = 0;"
9486 # Code to be used in simple link tests
9487 lt_simple_link_test_code='int main(){return(0);}'
9495 # If no C compiler was specified, use CC.
9498 # If no C compiler flags were specified, use CFLAGS.
9499 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9501 # Allow CC to be a program name with arguments.
9504 # Save the default compiler, since it gets overwritten when the other
9505 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9506 compiler_DEFAULT=$CC
9508 # save warnings/boilerplate of simple test code
9509 ac_outfile=conftest.$ac_objext
9510 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9511 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9512 _lt_compiler_boilerplate=`cat conftest.err`
9515 ac_outfile=conftest.$ac_objext
9516 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9517 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9518 _lt_linker_boilerplate=`cat conftest.err`
9523 ## There is no encapsulation within the following macros, do not change
9524 ## the running order or otherwise move them around unless you know exactly
9525 ## what you are doing...
9526 if test -n "$compiler"; then
9528 lt_prog_compiler_no_builtin_flag=
9530 if test yes = "$GCC"; then
9531 case $cc_basename in
9533 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9535 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9539 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9540 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9541 $as_echo_n "(cached) " >&6
9543 lt_cv_prog_compiler_rtti_exceptions=no
9544 ac_outfile=conftest.$ac_objext
9545 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9546 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9547 # Insert the option either (1) after the last *FLAGS variable, or
9548 # (2) before a word containing "conftest.", or (3) at the end.
9549 # Note that $ac_compile itself does not contain backslashes and begins
9550 # with a dollar sign (not a hyphen), so the echo should work correctly.
9551 # The option is referenced via a variable to avoid confusing sed.
9552 lt_compile=`echo "$ac_compile" | $SED \
9553 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9554 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9555 -e 's:$: $lt_compiler_flag:'`
9556 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9557 (eval "$lt_compile" 2>conftest.err)
9559 cat conftest.err >&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 if (exit $ac_status) && test -s "$ac_outfile"; then
9562 # The compiler can only warn and ignore the option if not recognized
9563 # So say no if there are warnings other than the usual output.
9564 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9565 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9566 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9567 lt_cv_prog_compiler_rtti_exceptions=yes
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9574 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9576 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9577 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9589 lt_prog_compiler_wl=
9590 lt_prog_compiler_pic=
9591 lt_prog_compiler_static=
9594 if test yes = "$GCC"; then
9595 lt_prog_compiler_wl='-Wl,'
9596 lt_prog_compiler_static='-static'
9600 # All AIX code is PIC.
9601 if test ia64 = "$host_cpu"; then
9602 # AIX 5 now supports IA64 processor
9603 lt_prog_compiler_static='-Bstatic'
9605 lt_prog_compiler_pic='-fPIC'
9611 # see comment about AmigaOS4 .so support
9612 lt_prog_compiler_pic='-fPIC'
9615 # FIXME: we need at least 68020 code to build shared libraries, but
9616 # adding the '-m68020' flag to GCC prevents building anything better,
9618 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9623 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9624 # PIC is the default for these OSes.
9627 mingw* | cygwin* | pw32* | os2* | cegcc*)
9628 # This hack is so that the source file can tell whether it is being
9629 # built for inclusion in a dll (and should export symbols for example).
9630 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9631 # (--disable-auto-import) libraries
9632 lt_prog_compiler_pic='-DDLL_EXPORT'
9635 lt_prog_compiler_static='$wl-static'
9640 darwin* | rhapsody*)
9641 # PIC is the default on this platform
9642 # Common symbols not allowed in MH_DYLIB files
9643 lt_prog_compiler_pic='-fno-common'
9647 # PIC is the default for Haiku.
9648 # The "-static" flag exists, but is broken.
9649 lt_prog_compiler_static=
9653 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9654 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9655 # sets the default TLS model and affects inlining.
9661 lt_prog_compiler_pic='-fPIC'
9667 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9668 # Instead, we relocate shared libraries at runtime.
9672 # Just because we use GCC doesn't mean we suddenly get shared libraries
9673 # on systems that don't support them.
9674 lt_prog_compiler_can_build_shared=no
9679 # QNX uses GNU C++, but need to define -shared option too, otherwise
9681 lt_prog_compiler_pic='-fPIC -shared'
9685 if test -d /usr/nec; then
9686 lt_prog_compiler_pic=-Kconform_pic
9691 lt_prog_compiler_pic='-fPIC'
9695 case $cc_basename in
9696 nvcc*) # Cuda Compiler Driver 2.2
9697 lt_prog_compiler_wl='-Xlinker '
9698 if test -n "$lt_prog_compiler_pic"; then
9699 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9704 # PORTME Check for flag to pass linker flags through the system compiler.
9707 lt_prog_compiler_wl='-Wl,'
9708 if test ia64 = "$host_cpu"; then
9709 # AIX 5 now supports IA64 processor
9710 lt_prog_compiler_static='-Bstatic'
9712 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9716 darwin* | rhapsody*)
9717 # PIC is the default on this platform
9718 # Common symbols not allowed in MH_DYLIB files
9719 lt_prog_compiler_pic='-fno-common'
9720 case $cc_basename in
9722 # NAG Fortran compiler
9723 lt_prog_compiler_wl='-Wl,-Wl,,'
9724 lt_prog_compiler_pic='-PIC'
9725 lt_prog_compiler_static='-Bstatic'
9730 mingw* | cygwin* | pw32* | os2* | cegcc*)
9731 # This hack is so that the source file can tell whether it is being
9732 # built for inclusion in a dll (and should export symbols for example).
9733 lt_prog_compiler_pic='-DDLL_EXPORT'
9736 lt_prog_compiler_static='$wl-static'
9741 hpux9* | hpux10* | hpux11*)
9742 lt_prog_compiler_wl='-Wl,'
9743 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9750 lt_prog_compiler_pic='+Z'
9753 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9754 lt_prog_compiler_static='$wl-a ${wl}archive'
9757 irix5* | irix6* | nonstopux*)
9758 lt_prog_compiler_wl='-Wl,'
9759 # PIC (with -KPIC) is the default.
9760 lt_prog_compiler_static='-non_shared'
9763 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9764 case $cc_basename in
9765 # old Intel for x86_64, which still supported -KPIC.
9767 lt_prog_compiler_wl='-Wl,'
9768 lt_prog_compiler_pic='-KPIC'
9769 lt_prog_compiler_static='-static'
9771 # flang / f18. f95 an alias for gfortran or flang on Debian
9772 flang* | f18* | f95*)
9773 lt_prog_compiler_wl='-Wl,'
9774 lt_prog_compiler_pic='-fPIC'
9775 lt_prog_compiler_static='-static'
9777 # icc used to be incompatible with GCC.
9778 # ICC 10 doesn't accept -KPIC any more.
9780 lt_prog_compiler_wl='-Wl,'
9781 lt_prog_compiler_pic='-fPIC'
9782 lt_prog_compiler_static='-static'
9784 # Lahey Fortran 8.1.
9786 lt_prog_compiler_wl='-Wl,'
9787 lt_prog_compiler_pic='--shared'
9788 lt_prog_compiler_static='--static'
9791 # NAG Fortran compiler
9792 lt_prog_compiler_wl='-Wl,-Wl,,'
9793 lt_prog_compiler_pic='-PIC'
9794 lt_prog_compiler_static='-Bstatic'
9797 # Fabrice Bellard et al's Tiny C Compiler
9798 lt_prog_compiler_wl='-Wl,'
9799 lt_prog_compiler_pic='-fPIC'
9800 lt_prog_compiler_static='-static'
9802 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9803 # Portland Group compilers (*not* the Pentium gcc compiler,
9804 # which looks to be a dead project)
9805 lt_prog_compiler_wl='-Wl,'
9806 lt_prog_compiler_pic='-fpic'
9807 lt_prog_compiler_static='-Bstatic'
9810 lt_prog_compiler_wl='-Wl,'
9811 # All Alpha code is PIC.
9812 lt_prog_compiler_static='-non_shared'
9814 xl* | bgxl* | bgf* | mpixl*)
9815 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9816 lt_prog_compiler_wl='-Wl,'
9817 lt_prog_compiler_pic='-qpic'
9818 lt_prog_compiler_static='-qstaticlink'
9821 case `$CC -V 2>&1 | sed 5q` in
9822 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9823 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9824 lt_prog_compiler_pic='-KPIC'
9825 lt_prog_compiler_static='-Bstatic'
9826 lt_prog_compiler_wl=''
9828 *Sun\ F* | *Sun*Fortran*)
9829 lt_prog_compiler_pic='-KPIC'
9830 lt_prog_compiler_static='-Bstatic'
9831 lt_prog_compiler_wl='-Qoption ld '
9835 lt_prog_compiler_pic='-KPIC'
9836 lt_prog_compiler_static='-Bstatic'
9837 lt_prog_compiler_wl='-Wl,'
9839 *Intel*\ [CF]*Compiler*)
9840 lt_prog_compiler_wl='-Wl,'
9841 lt_prog_compiler_pic='-fPIC'
9842 lt_prog_compiler_static='-static'
9845 lt_prog_compiler_wl='-Wl,'
9846 lt_prog_compiler_pic='-fpic'
9847 lt_prog_compiler_static='-Bstatic'
9855 lt_prog_compiler_pic='-KPIC'
9856 lt_prog_compiler_static='-Bstatic'
9860 # QNX uses GNU C++, but need to define -shared option too, otherwise
9862 lt_prog_compiler_pic='-fPIC -shared'
9865 osf3* | osf4* | osf5*)
9866 lt_prog_compiler_wl='-Wl,'
9867 # All OSF/1 code is PIC.
9868 lt_prog_compiler_static='-non_shared'
9872 lt_prog_compiler_static='-non_shared'
9876 lt_prog_compiler_pic='-KPIC'
9877 lt_prog_compiler_static='-Bstatic'
9878 case $cc_basename in
9879 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9880 lt_prog_compiler_wl='-Qoption ld ';;
9882 lt_prog_compiler_wl='-Wl,';;
9887 lt_prog_compiler_wl='-Qoption ld '
9888 lt_prog_compiler_pic='-PIC'
9889 lt_prog_compiler_static='-Bstatic'
9892 sysv4 | sysv4.2uw2* | sysv4.3*)
9893 lt_prog_compiler_wl='-Wl,'
9894 lt_prog_compiler_pic='-KPIC'
9895 lt_prog_compiler_static='-Bstatic'
9899 if test -d /usr/nec; then
9900 lt_prog_compiler_pic='-Kconform_pic'
9901 lt_prog_compiler_static='-Bstatic'
9905 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9906 lt_prog_compiler_wl='-Wl,'
9907 lt_prog_compiler_pic='-KPIC'
9908 lt_prog_compiler_static='-Bstatic'
9912 lt_prog_compiler_wl='-Wl,'
9913 lt_prog_compiler_can_build_shared=no
9917 lt_prog_compiler_pic='-pic'
9918 lt_prog_compiler_static='-Bstatic'
9922 lt_prog_compiler_can_build_shared=no
9928 # For platforms that do not support PIC, -DPIC is meaningless:
9930 lt_prog_compiler_pic=
9933 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9938 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9939 if ${lt_cv_prog_compiler_pic+:} false; then :
9940 $as_echo_n "(cached) " >&6
9942 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9945 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9946 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9949 # Check to make sure the PIC flag actually works.
9951 if test -n "$lt_prog_compiler_pic"; then
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9953 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9954 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9955 $as_echo_n "(cached) " >&6
9957 lt_cv_prog_compiler_pic_works=no
9958 ac_outfile=conftest.$ac_objext
9959 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9960 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9961 # Insert the option either (1) after the last *FLAGS variable, or
9962 # (2) before a word containing "conftest.", or (3) at the end.
9963 # Note that $ac_compile itself does not contain backslashes and begins
9964 # with a dollar sign (not a hyphen), so the echo should work correctly.
9965 # The option is referenced via a variable to avoid confusing sed.
9966 lt_compile=`echo "$ac_compile" | $SED \
9967 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9968 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9969 -e 's:$: $lt_compiler_flag:'`
9970 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9971 (eval "$lt_compile" 2>conftest.err)
9973 cat conftest.err >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 if (exit $ac_status) && test -s "$ac_outfile"; then
9976 # The compiler can only warn and ignore the option if not recognized
9977 # So say no if there are warnings other than the usual output.
9978 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9979 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9980 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9981 lt_cv_prog_compiler_pic_works=yes
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9988 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9990 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9991 case $lt_prog_compiler_pic in
9993 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9996 lt_prog_compiler_pic=
9997 lt_prog_compiler_can_build_shared=no
10013 # Check to make sure the static flag actually works.
10015 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10017 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10018 if ${lt_cv_prog_compiler_static_works+:} false; then :
10019 $as_echo_n "(cached) " >&6
10021 lt_cv_prog_compiler_static_works=no
10022 save_LDFLAGS=$LDFLAGS
10023 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10024 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10025 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10026 # The linker can only warn and ignore the option if not recognized
10027 # So say no if there are warnings
10028 if test -s conftest.err; then
10029 # Append any errors to the config.log.
10030 cat conftest.err 1>&5
10031 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10032 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10033 if diff conftest.exp conftest.er2 >/dev/null; then
10034 lt_cv_prog_compiler_static_works=yes
10037 lt_cv_prog_compiler_static_works=yes
10041 LDFLAGS=$save_LDFLAGS
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10045 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10047 if test yes = "$lt_cv_prog_compiler_static_works"; then
10050 lt_prog_compiler_static=
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10060 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10061 if ${lt_cv_prog_compiler_c_o+:} false; then :
10062 $as_echo_n "(cached) " >&6
10064 lt_cv_prog_compiler_c_o=no
10065 $RM -r conftest 2>/dev/null
10069 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10071 lt_compiler_flag="-o out/conftest2.$ac_objext"
10072 # Insert the option either (1) after the last *FLAGS variable, or
10073 # (2) before a word containing "conftest.", or (3) at the end.
10074 # Note that $ac_compile itself does not contain backslashes and begins
10075 # with a dollar sign (not a hyphen), so the echo should work correctly.
10076 lt_compile=`echo "$ac_compile" | $SED \
10077 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10079 -e 's:$: $lt_compiler_flag:'`
10080 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10081 (eval "$lt_compile" 2>out/conftest.err)
10083 cat out/conftest.err >&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10087 # The compiler can only warn and ignore the option if not recognized
10088 # So say no if there are warnings
10089 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10090 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10091 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10092 lt_cv_prog_compiler_c_o=yes
10097 # SGI C++ compiler will create directory out/ii_files/ for
10098 # template instantiation
10099 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10100 $RM out/* && rmdir out
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10107 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10115 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10116 if ${lt_cv_prog_compiler_c_o+:} false; then :
10117 $as_echo_n "(cached) " >&6
10119 lt_cv_prog_compiler_c_o=no
10120 $RM -r conftest 2>/dev/null
10124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10126 lt_compiler_flag="-o out/conftest2.$ac_objext"
10127 # Insert the option either (1) after the last *FLAGS variable, or
10128 # (2) before a word containing "conftest.", or (3) at the end.
10129 # Note that $ac_compile itself does not contain backslashes and begins
10130 # with a dollar sign (not a hyphen), so the echo should work correctly.
10131 lt_compile=`echo "$ac_compile" | $SED \
10132 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10134 -e 's:$: $lt_compiler_flag:'`
10135 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10136 (eval "$lt_compile" 2>out/conftest.err)
10138 cat out/conftest.err >&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10142 # The compiler can only warn and ignore the option if not recognized
10143 # So say no if there are warnings
10144 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10145 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10146 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10147 lt_cv_prog_compiler_c_o=yes
10152 # SGI C++ compiler will create directory out/ii_files/ for
10153 # template instantiation
10154 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10155 $RM out/* && rmdir out
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10162 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10167 hard_links=nottested
10168 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10169 # do not overwrite the value of need_locks provided by the user
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10171 $as_echo_n "checking if we can lock with hard links... " >&6; }
10174 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10176 ln conftest.a conftest.b 2>&5 || hard_links=no
10177 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10179 $as_echo "$hard_links" >&6; }
10180 if test no = "$hard_links"; then
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10182 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10195 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10198 allow_undefined_flag=
10199 always_export_symbols=no
10201 archive_expsym_cmds=
10202 compiler_needs_object=no
10203 enable_shared_with_static_runtimes=no
10204 export_dynamic_flag_spec=
10205 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10206 hardcode_automatic=no
10208 hardcode_direct_absolute=no
10209 hardcode_libdir_flag_spec=
10210 hardcode_libdir_separator=
10211 hardcode_minus_L=no
10212 hardcode_shlibpath_var=unsupported
10214 link_all_deplibs=unknown
10216 module_expsym_cmds=
10217 old_archive_from_new_cmds=
10218 old_archive_from_expsyms_cmds=
10219 thread_safe_flag_spec=
10220 whole_archive_flag_spec=
10221 # include_expsyms should be a list of space-separated symbols to be *always*
10222 # included in the symbol list
10224 # exclude_expsyms can be an extended regexp of symbols to exclude
10225 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10226 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10227 # as well as any symbol that contains 'd'.
10228 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10229 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10230 # platforms (ab)use it in PIC code, but their linkers get confused if
10231 # the symbol is explicitly referenced. Since portable code cannot
10232 # rely on this symbol name, it's probably fine to never include it in
10233 # preloaded symbol tables.
10234 # Exclude shared library initialization/finalization symbols.
10235 extract_expsyms_cmds=
10238 cygwin* | mingw* | pw32* | cegcc*)
10239 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10240 # When not using gcc, we currently assume that we are using
10241 # Microsoft Visual C++.
10242 if test yes != "$GCC"; then
10247 # we just hope/assume this is gcc and not c89 (= MSVC++)
10250 openbsd* | bitrig*)
10253 linux* | k*bsd*-gnu | gnu*)
10254 link_all_deplibs=no
10260 # On some targets, GNU ld is compatible enough with the native linker
10261 # that we're better off using the native interface for both.
10262 lt_use_gnu_ld_interface=no
10263 if test yes = "$with_gnu_ld"; then
10266 # The AIX port of GNU ld has always aspired to compatibility
10267 # with the native linker. However, as the warning in the GNU ld
10268 # block says, versions before 2.19.5* couldn't really create working
10269 # shared libraries, regardless of the interface used.
10270 case `$LD -v 2>&1` in
10271 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10272 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10273 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10275 lt_use_gnu_ld_interface=yes
10280 lt_use_gnu_ld_interface=yes
10285 if test yes = "$lt_use_gnu_ld_interface"; then
10286 # If archive_cmds runs LD, not CC, wlarc should be empty
10289 # Set some defaults for GNU ld with shared library support. These
10290 # are reset later if shared libraries are not supported. Putting them
10291 # here allows them to be overridden if necessary.
10292 runpath_var=LD_RUN_PATH
10293 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10294 export_dynamic_flag_spec='$wl--export-dynamic'
10295 # ancient GNU ld didn't support --whole-archive et. al.
10296 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10297 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10299 whole_archive_flag_spec=
10301 supports_anon_versioning=no
10302 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10303 *GNU\ gold*) supports_anon_versioning=yes ;;
10304 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10305 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10306 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10307 *\ 2.11.*) ;; # other 2.11 versions
10308 *) supports_anon_versioning=yes ;;
10311 # See if GNU ld supports shared libraries.
10314 # On AIX/PPC, the GNU linker is very broken
10315 if test ia64 != "$host_cpu"; then
10319 *** Warning: the GNU linker, at least up to release 2.19, is reported
10320 *** to be unable to reliably create shared libraries on AIX.
10321 *** Therefore, libtool is disabling shared libraries support. If you
10322 *** really care for shared libraries, you may want to install binutils
10323 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10324 *** You will then need to restart the configuration process.
10333 # see comment about AmigaOS4 .so support
10334 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10335 archive_expsym_cmds=''
10338 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10339 hardcode_libdir_flag_spec='-L$libdir'
10340 hardcode_minus_L=yes
10346 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10347 allow_undefined_flag=unsupported
10348 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10349 # support --undefined. This deserves some investigation. FIXME
10350 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10356 cygwin* | mingw* | pw32* | cegcc*)
10357 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10358 # as there is no search path for DLLs.
10359 hardcode_libdir_flag_spec='-L$libdir'
10360 export_dynamic_flag_spec='$wl--export-all-symbols'
10361 allow_undefined_flag=unsupported
10362 always_export_symbols=no
10363 enable_shared_with_static_runtimes=yes
10364 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10365 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10367 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10368 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10369 # If the export-symbols file already is a .def file, use it as
10370 # is; otherwise, prepend EXPORTS...
10371 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10372 cp $export_symbols $output_objdir/$soname.def;
10374 echo EXPORTS > $output_objdir/$soname.def;
10375 cat $export_symbols >> $output_objdir/$soname.def;
10377 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10384 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10385 link_all_deplibs=yes
10389 hardcode_libdir_flag_spec='-L$libdir'
10390 hardcode_minus_L=yes
10391 allow_undefined_flag=unsupported
10393 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10394 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10395 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10396 $ECHO EXPORTS >> $output_objdir/$libname.def~
10397 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10398 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10399 emximp -o $lib $output_objdir/$libname.def'
10400 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10401 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10402 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10403 $ECHO EXPORTS >> $output_objdir/$libname.def~
10404 prefix_cmds="$SED"~
10405 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10406 prefix_cmds="$prefix_cmds -e 1d";
10408 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10409 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10410 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10411 emximp -o $lib $output_objdir/$libname.def'
10412 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10413 enable_shared_with_static_runtimes=yes
10418 hardcode_shlibpath_var=no
10419 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10420 export_dynamic_flag_spec='$wl-E'
10421 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10422 # Instead, shared libraries are loaded at an image base (0x10000000 by
10423 # default) and relocated if they conflict, which is a slow very memory
10424 # consuming and fragmenting process. To avoid this, we pick a random,
10425 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10426 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10427 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10428 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10431 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10433 if test linux-dietlibc = "$host_os"; then
10434 case $cc_basename in
10435 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10438 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10439 && test no = "$tmp_diet"
10441 tmp_addflag=' $pic_flag'
10442 tmp_sharedflag='-shared'
10443 case $cc_basename,$host_cpu in
10444 pgcc*) # Portland Group C compiler
10445 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10446 tmp_addflag=' $pic_flag'
10448 pgf77* | pgf90* | pgf95* | pgfortran*)
10449 # Portland Group f77 and f90 compilers
10450 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10451 tmp_addflag=' $pic_flag -Mnomain' ;;
10452 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10453 tmp_addflag=' -i_dynamic' ;;
10454 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10455 tmp_addflag=' -i_dynamic -nofor_main' ;;
10456 ifc* | ifort*) # Intel Fortran compiler
10457 tmp_addflag=' -nofor_main' ;;
10458 lf95*) # Lahey Fortran 8.1
10459 whole_archive_flag_spec=
10460 tmp_sharedflag='--shared' ;;
10461 nagfor*) # NAGFOR 5.3
10462 tmp_sharedflag='-Wl,-shared' ;;
10463 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10464 tmp_sharedflag='-qmkshrobj'
10466 nvcc*) # Cuda Compiler Driver 2.2
10467 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10468 compiler_needs_object=yes
10471 case `$CC -V 2>&1 | sed 5q` in
10472 *Sun\ C*) # Sun C 5.9
10473 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10474 compiler_needs_object=yes
10475 tmp_sharedflag='-G' ;;
10476 *Sun\ F*) # Sun Fortran 8.3
10477 tmp_sharedflag='-G' ;;
10479 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10481 if test yes = "$supports_anon_versioning"; then
10482 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10483 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10484 echo "local: *; };" >> $output_objdir/$libname.ver~
10485 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10488 case $cc_basename in
10490 export_dynamic_flag_spec='-rdynamic'
10492 xlf* | bgf* | bgxlf* | mpixlf*)
10493 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10494 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10495 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10496 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10497 if test yes = "$supports_anon_versioning"; then
10498 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10499 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10500 echo "local: *; };" >> $output_objdir/$libname.ver~
10501 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10510 netbsd* | netbsdelf*-gnu)
10511 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10512 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10515 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10516 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10521 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10525 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10526 *** create shared libraries on Solaris systems. Therefore, libtool
10527 *** is disabling shared libraries support. We urge you to upgrade GNU
10528 *** binutils to release 2.9.1 or newer. Another option is to modify
10529 *** your PATH or compiler configuration so that the native linker is
10530 *** used, and then restart.
10533 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10534 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10535 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10541 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10542 case `$LD -v 2>&1` in
10543 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10547 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10548 *** reliably create shared libraries on SCO systems. Therefore, libtool
10549 *** is disabling shared libraries support. We urge you to upgrade GNU
10550 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10551 *** your PATH or compiler configuration so that the native linker is
10552 *** used, and then restart.
10557 # For security reasons, it is highly recommended that you always
10558 # use absolute paths for naming shared libraries, and exclude the
10559 # DT_RUNPATH tag from executables and libraries. But doing so
10560 # requires that you compile everything twice, which is a pain.
10561 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10562 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10563 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10564 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10573 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10575 hardcode_direct=yes
10576 hardcode_shlibpath_var=no
10580 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10581 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10582 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10589 if test no = "$ld_shlibs"; then
10591 hardcode_libdir_flag_spec=
10592 export_dynamic_flag_spec=
10593 whole_archive_flag_spec=
10596 # PORTME fill in a description of your system's linker (not GNU ld)
10599 allow_undefined_flag=unsupported
10600 always_export_symbols=yes
10601 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10602 # Note: this linker hardcodes the directories in LIBPATH if there
10603 # are no directories specified by -L.
10604 hardcode_minus_L=yes
10605 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10606 # Neither direct hardcoding nor static linking is supported with a
10608 hardcode_direct=unsupported
10613 if test ia64 = "$host_cpu"; then
10614 # On IA64, the linker does run time linking by default, so we don't
10615 # have to do anything special.
10616 aix_use_runtimelinking=no
10617 exp_sym_flag='-Bexport'
10620 # If we're using GNU nm, then we don't want the "-C" option.
10621 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10622 # Without the "-l" option, or with the "-B" option, AIX nm treats
10623 # weak defined symbols like other global defined symbols, whereas
10624 # GNU nm marks them as "W".
10625 # While the 'weak' keyword is ignored in the Export File, we need
10626 # it in the Import File for the 'aix-soname' feature, so we have
10627 # to replace the "-B" option with "-P" for AIX nm.
10628 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10629 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10631 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10633 aix_use_runtimelinking=no
10635 # Test if we are trying to use run time linking or normal
10636 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10637 # have runtime linking enabled, and use it for executables.
10638 # For shared libraries, we enable/disable runtime linking
10639 # depending on the kind of the shared library created -
10640 # when "with_aix_soname,aix_use_runtimelinking" is:
10641 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10642 # "aix,yes" lib.so shared, rtl:yes, for executables
10643 # lib.a static archive
10644 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10645 # lib.a(lib.so.V) shared, rtl:no, for executables
10646 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10647 # lib.a(lib.so.V) shared, rtl:no
10648 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10649 # lib.a static archive
10650 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10651 for ld_flag in $LDFLAGS; do
10652 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10653 aix_use_runtimelinking=yes
10657 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10658 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10659 # so we don't have lib.a shared libs to link our executables.
10660 # We have to force runtime linking in this case.
10661 aix_use_runtimelinking=yes
10662 LDFLAGS="$LDFLAGS -Wl,-brtl"
10667 exp_sym_flag='-bexport'
10668 no_entry_flag='-bnoentry'
10671 # When large executables or shared objects are built, AIX ld can
10672 # have problems creating the table of contents. If linking a library
10673 # or program results in "error TOC overflow" add -mminimal-toc to
10674 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10675 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10678 hardcode_direct=yes
10679 hardcode_direct_absolute=yes
10680 hardcode_libdir_separator=':'
10681 link_all_deplibs=yes
10682 file_list_spec='$wl-f,'
10683 case $with_aix_soname,$aix_use_runtimelinking in
10684 aix,*) ;; # traditional, no import file
10685 svr4,* | *,yes) # use import file
10686 # The Import File defines what to hardcode.
10688 hardcode_direct_absolute=no
10692 if test yes = "$GCC"; then
10693 case $host_os in aix4.[012]|aix4.[012].*)
10694 # We only want to do this on AIX 4.2 and lower, the check
10695 # below for broken collect2 doesn't work under 4.3+
10696 collect2name=`$CC -print-prog-name=collect2`
10697 if test -f "$collect2name" &&
10698 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10700 # We have reworked collect2
10703 # We have old collect2
10704 hardcode_direct=unsupported
10705 # It fails to find uninstalled libraries when the uninstalled
10706 # path is not listed in the libpath. Setting hardcode_minus_L
10707 # to unsupported forces relinking
10708 hardcode_minus_L=yes
10709 hardcode_libdir_flag_spec='-L$libdir'
10710 hardcode_libdir_separator=
10714 shared_flag='-shared'
10715 if test yes = "$aix_use_runtimelinking"; then
10716 shared_flag="$shared_flag "'$wl-G'
10718 # Need to ensure runtime linking is disabled for the traditional
10719 # shared library, or the linker may eventually find shared libraries
10720 # /with/ Import File - we do not want to mix them.
10721 shared_flag_aix='-shared'
10722 shared_flag_svr4='-shared $wl-G'
10725 if test ia64 = "$host_cpu"; then
10726 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10727 # chokes on -Wl,-G. The following line is correct:
10730 if test yes = "$aix_use_runtimelinking"; then
10731 shared_flag='$wl-G'
10733 shared_flag='$wl-bM:SRE'
10735 shared_flag_aix='$wl-bM:SRE'
10736 shared_flag_svr4='$wl-G'
10740 export_dynamic_flag_spec='$wl-bexpall'
10741 # It seems that -bexpall does not export symbols beginning with
10742 # underscore (_), so it is better to generate a list of symbols to export.
10743 always_export_symbols=yes
10744 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10745 # Warning - without using the other runtime loading flags (-brtl),
10746 # -berok will link without error, but may produce a broken library.
10747 allow_undefined_flag='-berok'
10748 # Determine the default libpath from the value encoded in an
10749 # empty executable.
10750 if test set = "${lt_cv_aix_libpath+set}"; then
10751 aix_libpath=$lt_cv_aix_libpath
10753 if ${lt_cv_aix_libpath_+:} false; then :
10754 $as_echo_n "(cached) " >&6
10756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h. */
10767 if ac_fn_c_try_link "$LINENO"; then :
10769 lt_aix_libpath_sed='
10770 /Import File Strings/,/^$/ {
10772 s/^0 *\([^ ]*\) *$/\1/
10776 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10777 # Check for a 64-bit object if we didn't find anything.
10778 if test -z "$lt_cv_aix_libpath_"; then
10779 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10782 rm -f core conftest.err conftest.$ac_objext \
10783 conftest$ac_exeext conftest.$ac_ext
10784 if test -z "$lt_cv_aix_libpath_"; then
10785 lt_cv_aix_libpath_=/usr/lib:/lib
10790 aix_libpath=$lt_cv_aix_libpath_
10793 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10794 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10796 if test ia64 = "$host_cpu"; then
10797 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10798 allow_undefined_flag="-z nodefs"
10799 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
10801 # Determine the default libpath from the value encoded in an
10802 # empty executable.
10803 if test set = "${lt_cv_aix_libpath+set}"; then
10804 aix_libpath=$lt_cv_aix_libpath
10806 if ${lt_cv_aix_libpath_+:} false; then :
10807 $as_echo_n "(cached) " >&6
10809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h. */
10820 if ac_fn_c_try_link "$LINENO"; then :
10822 lt_aix_libpath_sed='
10823 /Import File Strings/,/^$/ {
10825 s/^0 *\([^ ]*\) *$/\1/
10829 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10830 # Check for a 64-bit object if we didn't find anything.
10831 if test -z "$lt_cv_aix_libpath_"; then
10832 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10835 rm -f core conftest.err conftest.$ac_objext \
10836 conftest$ac_exeext conftest.$ac_ext
10837 if test -z "$lt_cv_aix_libpath_"; then
10838 lt_cv_aix_libpath_=/usr/lib:/lib
10843 aix_libpath=$lt_cv_aix_libpath_
10846 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10847 # Warning - without using the other run time loading flags,
10848 # -berok will link without error, but may produce a broken library.
10849 no_undefined_flag=' $wl-bernotok'
10850 allow_undefined_flag=' $wl-berok'
10851 if test yes = "$with_gnu_ld"; then
10852 # We only use this code for GNU lds that support --whole-archive.
10853 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10855 # Exported symbols can be pulled into shared objects from archives
10856 whole_archive_flag_spec='$convenience'
10858 archive_cmds_need_lc=yes
10859 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10860 # -brtl affects multiple linker settings, -berok does not and is overridden later
10861 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10862 if test svr4 != "$with_aix_soname"; then
10863 # This is similar to how AIX traditionally builds its shared libraries.
10864 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10866 if test aix != "$with_aix_soname"; then
10867 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10869 # used by -dlpreopen to get the symbols
10870 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10872 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10880 # see comment about AmigaOS4 .so support
10881 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10882 archive_expsym_cmds=''
10885 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10886 hardcode_libdir_flag_spec='-L$libdir'
10887 hardcode_minus_L=yes
10893 export_dynamic_flag_spec=-rdynamic
10896 cygwin* | mingw* | pw32* | cegcc*)
10897 # When not using gcc, we currently assume that we are using
10898 # Microsoft Visual C++.
10899 # hardcode_libdir_flag_spec is actually meaningless, as there is
10900 # no search path for DLLs.
10901 case $cc_basename in
10904 hardcode_libdir_flag_spec=' '
10905 allow_undefined_flag=unsupported
10906 always_export_symbols=yes
10908 # Tell ltmain to make .lib files, not .a files.
10910 # Tell ltmain to make .dll files, not .so files.
10912 # FIXME: Setting linknames here is a bad hack.
10913 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10914 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10915 cp "$export_symbols" "$output_objdir/$soname.def";
10916 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10918 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10920 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10922 # The linker will not automatically build a static lib if we build a DLL.
10923 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10924 enable_shared_with_static_runtimes=yes
10925 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10926 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10928 old_postinstall_cmds='chmod 644 $oldlib'
10929 postlink_cmds='lt_outputfile="@OUTPUT@"~
10930 lt_tool_outputfile="@TOOL_OUTPUT@"~
10931 case $lt_outputfile in
10934 lt_outputfile=$lt_outputfile.exe
10935 lt_tool_outputfile=$lt_tool_outputfile.exe
10938 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10939 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10940 $RM "$lt_outputfile.manifest";
10944 # Assume MSVC wrapper
10945 hardcode_libdir_flag_spec=' '
10946 allow_undefined_flag=unsupported
10947 # Tell ltmain to make .lib files, not .a files.
10949 # Tell ltmain to make .dll files, not .so files.
10951 # FIXME: Setting linknames here is a bad hack.
10952 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10953 # The linker will automatically build a .lib file if we build a DLL.
10954 old_archive_from_new_cmds='true'
10955 # FIXME: Should let the user specify the lib program.
10956 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10957 enable_shared_with_static_runtimes=yes
10962 darwin* | rhapsody*)
10965 archive_cmds_need_lc=no
10967 hardcode_automatic=yes
10968 hardcode_shlibpath_var=unsupported
10969 if test yes = "$lt_cv_ld_force_load"; then
10970 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10973 whole_archive_flag_spec=''
10975 link_all_deplibs=yes
10976 allow_undefined_flag=$_lt_dar_allow_undefined
10977 case $cc_basename in
10978 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10979 *) _lt_dar_can_shared=$GCC ;;
10981 if test yes = "$_lt_dar_can_shared"; then
10982 output_verbose_link_cmd=func_echo_all
10983 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10984 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10985 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10986 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
10995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10996 hardcode_libdir_flag_spec='-L$libdir'
10997 hardcode_shlibpath_var=no
11000 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11001 # support. Future versions do this automatically, but an explicit c++rt0.o
11002 # does not break anything, and helps significantly (at the cost of a little
11005 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11006 hardcode_libdir_flag_spec='-R$libdir'
11007 hardcode_direct=yes
11008 hardcode_shlibpath_var=no
11011 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11013 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11014 hardcode_direct=yes
11015 hardcode_minus_L=yes
11016 hardcode_shlibpath_var=no
11019 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11020 freebsd* | dragonfly*)
11021 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11022 hardcode_libdir_flag_spec='-R$libdir'
11023 hardcode_direct=yes
11024 hardcode_shlibpath_var=no
11028 if test yes = "$GCC"; then
11029 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11031 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11033 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11034 hardcode_libdir_separator=:
11035 hardcode_direct=yes
11037 # hardcode_minus_L: Not really in the search PATH,
11038 # but as the default location of the library.
11039 hardcode_minus_L=yes
11040 export_dynamic_flag_spec='$wl-E'
11044 if test yes,no = "$GCC,$with_gnu_ld"; then
11045 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11047 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11049 if test no = "$with_gnu_ld"; then
11050 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11051 hardcode_libdir_separator=:
11052 hardcode_direct=yes
11053 hardcode_direct_absolute=yes
11054 export_dynamic_flag_spec='$wl-E'
11055 # hardcode_minus_L: Not really in the search PATH,
11056 # but as the default location of the library.
11057 hardcode_minus_L=yes
11062 if test yes,no = "$GCC,$with_gnu_ld"; then
11065 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11068 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11071 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11077 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11080 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11084 # Older versions of the 11.00 compiler do not understand -b yet
11085 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11087 $as_echo_n "checking if $CC understands -b... " >&6; }
11088 if ${lt_cv_prog_compiler__b+:} false; then :
11089 $as_echo_n "(cached) " >&6
11091 lt_cv_prog_compiler__b=no
11092 save_LDFLAGS=$LDFLAGS
11093 LDFLAGS="$LDFLAGS -b"
11094 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11095 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11096 # The linker can only warn and ignore the option if not recognized
11097 # So say no if there are warnings
11098 if test -s conftest.err; then
11099 # Append any errors to the config.log.
11100 cat conftest.err 1>&5
11101 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11102 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11103 if diff conftest.exp conftest.er2 >/dev/null; then
11104 lt_cv_prog_compiler__b=yes
11107 lt_cv_prog_compiler__b=yes
11111 LDFLAGS=$save_LDFLAGS
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11115 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11117 if test yes = "$lt_cv_prog_compiler__b"; then
11118 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11120 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11126 if test no = "$with_gnu_ld"; then
11127 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11128 hardcode_libdir_separator=:
11133 hardcode_shlibpath_var=no
11136 hardcode_direct=yes
11137 hardcode_direct_absolute=yes
11138 export_dynamic_flag_spec='$wl-E'
11140 # hardcode_minus_L: Not really in the search PATH,
11141 # but as the default location of the library.
11142 hardcode_minus_L=yes
11148 irix5* | irix6* | nonstopux*)
11149 if test yes = "$GCC"; then
11150 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11151 # Try to use the -exported_symbol ld option, if it does not
11152 # work, assume that -exports_file does not work either and
11153 # implicitly export all symbols.
11154 # This should be the same for all languages, so no per-tag cache variable.
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11156 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11157 if ${lt_cv_irix_exported_symbol+:} false; then :
11158 $as_echo_n "(cached) " >&6
11160 save_LDFLAGS=$LDFLAGS
11161 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11163 /* end confdefs.h. */
11164 int foo (void) { return 0; }
11166 if ac_fn_c_try_link "$LINENO"; then :
11167 lt_cv_irix_exported_symbol=yes
11169 lt_cv_irix_exported_symbol=no
11171 rm -f core conftest.err conftest.$ac_objext \
11172 conftest$ac_exeext conftest.$ac_ext
11173 LDFLAGS=$save_LDFLAGS
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11176 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11177 if test yes = "$lt_cv_irix_exported_symbol"; then
11178 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
11180 link_all_deplibs=no
11182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11183 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
11185 archive_cmds_need_lc='no'
11186 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11187 hardcode_libdir_separator=:
11189 link_all_deplibs=yes
11193 case $cc_basename in
11195 # Fabrice Bellard et al's Tiny C Compiler
11197 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11202 netbsd* | netbsdelf*-gnu)
11203 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11204 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11206 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11208 hardcode_libdir_flag_spec='-R$libdir'
11209 hardcode_direct=yes
11210 hardcode_shlibpath_var=no
11214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11215 hardcode_direct=yes
11216 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11217 hardcode_libdir_separator=:
11218 hardcode_shlibpath_var=no
11224 openbsd* | bitrig*)
11225 if test -f /usr/libexec/ld.so; then
11226 hardcode_direct=yes
11227 hardcode_shlibpath_var=no
11228 hardcode_direct_absolute=yes
11229 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11230 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11231 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11232 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11233 export_dynamic_flag_spec='$wl-E'
11235 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11236 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11244 hardcode_libdir_flag_spec='-L$libdir'
11245 hardcode_minus_L=yes
11246 allow_undefined_flag=unsupported
11248 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11249 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11250 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11251 $ECHO EXPORTS >> $output_objdir/$libname.def~
11252 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11253 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11254 emximp -o $lib $output_objdir/$libname.def'
11255 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11256 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11257 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11258 $ECHO EXPORTS >> $output_objdir/$libname.def~
11259 prefix_cmds="$SED"~
11260 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11261 prefix_cmds="$prefix_cmds -e 1d";
11263 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11264 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11265 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11266 emximp -o $lib $output_objdir/$libname.def'
11267 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11268 enable_shared_with_static_runtimes=yes
11272 if test yes = "$GCC"; then
11273 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11274 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11276 allow_undefined_flag=' -expect_unresolved \*'
11277 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11279 archive_cmds_need_lc='no'
11280 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11281 hardcode_libdir_separator=:
11284 osf4* | osf5*) # as osf3* with the addition of -msym flag
11285 if test yes = "$GCC"; then
11286 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11287 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11288 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11290 allow_undefined_flag=' -expect_unresolved \*'
11291 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11292 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11293 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
11295 # Both c and cxx compiler support -rpath directly
11296 hardcode_libdir_flag_spec='-rpath $libdir'
11298 archive_cmds_need_lc='no'
11299 hardcode_libdir_separator=:
11303 no_undefined_flag=' -z defs'
11304 if test yes = "$GCC"; then
11306 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11307 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11308 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11310 case `$CC -V 2>&1` in
11313 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11314 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11315 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11319 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11320 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11321 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11325 hardcode_libdir_flag_spec='-R$libdir'
11326 hardcode_shlibpath_var=no
11328 solaris2.[0-5] | solaris2.[0-5].*) ;;
11330 # The compiler driver will combine and reorder linker options,
11331 # but understands '-z linker_flag'. GCC discards it without '$wl',
11332 # but is careful enough not to reorder.
11333 # Supported since Solaris 2.6 (maybe 2.5.1?)
11334 if test yes = "$GCC"; then
11335 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11337 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11341 link_all_deplibs=yes
11345 if test sequent = "$host_vendor"; then
11346 # Use $CC to link under sequent, because it throws in some extra .o
11347 # files that make .init and .fini sections work.
11348 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11350 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11352 hardcode_libdir_flag_spec='-L$libdir'
11353 hardcode_direct=yes
11354 hardcode_minus_L=yes
11355 hardcode_shlibpath_var=no
11359 case $host_vendor in
11361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11362 hardcode_direct=yes # is this really true???
11365 ## LD is ld it makes a PLAMLIB
11366 ## CC just makes a GrossModule.
11367 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11368 reload_cmds='$CC -r -o $output$reload_objs'
11372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11373 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11376 runpath_var='LD_RUN_PATH'
11377 hardcode_shlibpath_var=no
11381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11382 hardcode_shlibpath_var=no
11383 export_dynamic_flag_spec='-Bexport'
11387 if test -d /usr/nec; then
11388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11389 hardcode_shlibpath_var=no
11390 runpath_var=LD_RUN_PATH
11391 hardcode_runpath_var=yes
11396 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11397 no_undefined_flag='$wl-z,text'
11398 archive_cmds_need_lc=no
11399 hardcode_shlibpath_var=no
11400 runpath_var='LD_RUN_PATH'
11402 if test yes = "$GCC"; then
11403 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11404 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11406 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11407 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11411 sysv5* | sco3.2v5* | sco5v6*)
11412 # Note: We CANNOT use -z defs as we might desire, because we do not
11413 # link with -lc, and that would cause any symbols used from libc to
11414 # always be unresolved, which means just about no library would
11415 # ever link correctly. If we're not using GNU ld we use -z text
11416 # though, which does catch some bad symbols but isn't as heavy-handed
11418 no_undefined_flag='$wl-z,text'
11419 allow_undefined_flag='$wl-z,nodefs'
11420 archive_cmds_need_lc=no
11421 hardcode_shlibpath_var=no
11422 hardcode_libdir_flag_spec='$wl-R,$libdir'
11423 hardcode_libdir_separator=':'
11424 link_all_deplibs=yes
11425 export_dynamic_flag_spec='$wl-Bexport'
11426 runpath_var='LD_RUN_PATH'
11428 if test yes = "$GCC"; then
11429 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11430 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11432 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11433 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11438 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11439 hardcode_libdir_flag_spec='-L$libdir'
11440 hardcode_shlibpath_var=no
11448 if test sni = "$host_vendor"; then
11450 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11451 export_dynamic_flag_spec='$wl-Blargedynsym'
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11458 $as_echo "$ld_shlibs" >&6; }
11459 test no = "$ld_shlibs" && can_build_shared=no
11461 with_gnu_ld=$with_gnu_ld
11478 # Do we need to explicitly link libc?
11480 case "x$archive_cmds_need_lc" in
11482 # Assume -lc should be added
11483 archive_cmds_need_lc=yes
11485 if test yes,yes = "$GCC,$enable_shared"; then
11486 case $archive_cmds in
11488 # FIXME: we may have to deal with multi-command sequences.
11491 # Test whether the compiler implicitly links with -lc since on some
11492 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11493 # to ld, don't add -lc before -lgcc.
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11495 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11496 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11497 $as_echo_n "(cached) " >&6
11500 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11503 (eval $ac_compile) 2>&5
11505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11506 test $ac_status = 0; } 2>conftest.err; then
11509 libobjs=conftest.$ac_objext
11511 wl=$lt_prog_compiler_wl
11512 pic_flag=$lt_prog_compiler_pic
11518 lt_save_allow_undefined_flag=$allow_undefined_flag
11519 allow_undefined_flag=
11520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11521 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11524 test $ac_status = 0; }
11526 lt_cv_archive_cmds_need_lc=no
11528 lt_cv_archive_cmds_need_lc=yes
11530 allow_undefined_flag=$lt_save_allow_undefined_flag
11532 cat conftest.err 1>&5
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11538 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11539 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11698 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11700 if test yes = "$GCC"; then
11702 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11703 *) lt_awk_arg='/^libraries:/' ;;
11706 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11707 *) lt_sed_strip_eq='s|=/|/|g' ;;
11709 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11710 case $lt_search_path_spec in
11712 # if the path contains ";" then we assume it to be the separator
11713 # otherwise default to the standard path separator (i.e. ":") - it is
11714 # assumed that no part of a normal pathname contains ";" but that should
11715 # okay in the real world where ";" in dirpaths is itself problematic.
11716 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11719 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11722 # Ok, now we have the path, separated by spaces, we can step through it
11723 # and add multilib dir if necessary...
11724 lt_tmp_lt_search_path_spec=
11725 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11726 # ...but if some path component already ends with the multilib dir we assume
11727 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11728 case "$lt_multi_os_dir; $lt_search_path_spec " in
11729 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11733 for lt_sys_path in $lt_search_path_spec; do
11734 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11735 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11736 elif test -n "$lt_multi_os_dir"; then
11737 test -d "$lt_sys_path" && \
11738 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11741 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11742 BEGIN {RS = " "; FS = "/|\n";} {
11745 for (lt_i = NF; lt_i > 0; lt_i--) {
11746 if ($lt_i != "" && $lt_i != ".") {
11747 if ($lt_i == "..") {
11750 if (lt_count == 0) {
11751 lt_foo = "/" $lt_i lt_foo;
11758 if (lt_foo != "") { lt_freq[lt_foo]++; }
11759 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11761 # AWK program above erroneously prepends '/' to C:/dos/paths
11764 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11765 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11767 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11769 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11771 library_names_spec=
11772 libname_spec='lib$name'
11776 postuninstall_cmds=
11780 shlibpath_overrides_runpath=unknown
11782 dynamic_linker="$host_os ld.so"
11783 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11784 need_lib_prefix=unknown
11785 hardcode_into_libs=no
11787 # when you set need_version to no, make sure it does not cause -set_version
11788 # flags to be left without arguments
11789 need_version=unknown
11795 version_type=linux # correct to gnu/linux during the next big refactor
11796 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11797 shlibpath_var=LIBPATH
11799 # AIX 3 has no versioning support, so we append a major version to the name.
11800 soname_spec='$libname$release$shared_ext$major'
11804 version_type=linux # correct to gnu/linux during the next big refactor
11807 hardcode_into_libs=yes
11808 if test ia64 = "$host_cpu"; then
11809 # AIX 5 supports IA64
11810 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11811 shlibpath_var=LD_LIBRARY_PATH
11813 # With GCC up to 2.95.x, collect2 would create an import file
11814 # for dependence libraries. The import file would start with
11815 # the line '#! .'. This would cause the generated library to
11816 # depend on '.', always an invalid library. This was fixed in
11817 # development snapshots of GCC prior to 3.0.
11819 aix4 | aix4.[01] | aix4.[01].*)
11820 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11822 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11825 can_build_shared=no
11829 # Using Import Files as archive members, it is possible to support
11830 # filename-based versioning of shared library archives on AIX. While
11831 # this would work for both with and without runtime linking, it will
11832 # prevent static linking of such archives. So we do filename-based
11833 # shared library versioning with .so extension only, which is used
11834 # when both runtime linking and shared linking is enabled.
11835 # Unfortunately, runtime linking may impact performance, so we do
11836 # not want this to be the default eventually. Also, we use the
11837 # versioned .so libs for executables only if there is the -brtl
11838 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11839 # To allow for filename-based versioning support, we need to create
11840 # libNAME.so.V as an archive file, containing:
11841 # *) an Import File, referring to the versioned filename of the
11842 # archive as well as the shared archive member, telling the
11843 # bitwidth (32 or 64) of that shared object, and providing the
11844 # list of exported symbols of that shared object, eventually
11845 # decorated with the 'weak' keyword
11846 # *) the shared object with the F_LOADONLY flag set, to really avoid
11847 # it being seen by the linker.
11848 # At run time we better use the real file rather than another symlink,
11849 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11851 case $with_aix_soname,$aix_use_runtimelinking in
11852 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11853 # soname into executable. Probably we can add versioning support to
11854 # collect2, so additional links can be useful in future.
11855 aix,yes) # traditional libtool
11856 dynamic_linker='AIX unversionable lib.so'
11857 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11858 # instead of lib<name>.a to let people know that these are not
11859 # typical AIX shared libraries.
11860 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11862 aix,no) # traditional AIX only
11863 dynamic_linker='AIX lib.a(lib.so.V)'
11864 # We preserve .a as extension for shared libraries through AIX4.2
11865 # and later when we are not doing run time linking.
11866 library_names_spec='$libname$release.a $libname.a'
11867 soname_spec='$libname$release$shared_ext$major'
11869 svr4,*) # full svr4 only
11870 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11871 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11872 # We do not specify a path in Import Files, so LIBPATH fires.
11873 shlibpath_overrides_runpath=yes
11875 *,yes) # both, prefer svr4
11876 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11877 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11878 # unpreferred sharedlib libNAME.a needs extra handling
11879 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11880 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11881 # We do not specify a path in Import Files, so LIBPATH fires.
11882 shlibpath_overrides_runpath=yes
11884 *,no) # both, prefer aix
11885 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11886 library_names_spec='$libname$release.a $libname.a'
11887 soname_spec='$libname$release$shared_ext$major'
11888 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11889 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11890 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11893 shlibpath_var=LIBPATH
11900 # Since July 2007 AmigaOS4 officially supports .so libraries.
11901 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11902 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11905 library_names_spec='$libname.ixlibrary $libname.a'
11906 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11907 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11913 library_names_spec='$libname$shared_ext'
11914 dynamic_linker="$host_os ld.so"
11915 shlibpath_var=LIBRARY_PATH
11919 version_type=linux # correct to gnu/linux during the next big refactor
11921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11922 soname_spec='$libname$release$shared_ext$major'
11923 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11924 shlibpath_var=LD_LIBRARY_PATH
11925 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11926 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11927 # the default ld.so.conf also contains /usr/contrib/lib and
11928 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11929 # libtool to hard-code these into programs
11932 cygwin* | mingw* | pw32* | cegcc*)
11933 version_type=windows
11938 case $GCC,$cc_basename in
11941 library_names_spec='$libname.dll.a'
11942 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11943 postinstall_cmds='base_file=`basename \$file`~
11944 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11945 dldir=$destdir/`dirname \$dlpath`~
11946 test -d \$dldir || mkdir -p \$dldir~
11947 $install_prog $dir/$dlname \$dldir/$dlname~
11948 chmod a+x \$dldir/$dlname~
11949 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11950 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11952 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11953 dlpath=$dir/\$dldll~
11955 shlibpath_overrides_runpath=yes
11959 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11960 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11962 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11965 # MinGW DLLs use traditional 'lib' prefix
11966 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11969 # pw32 DLLs use 'pw' prefix rather than 'lib'
11970 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11973 dynamic_linker='Win32 ld.exe'
11978 libname_spec='$name'
11979 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11980 library_names_spec='$libname.dll.lib'
11984 sys_lib_search_path_spec=
11987 for lt_path in $LIB
11990 # Let DOS variable expansion print the short 8.3 style file name.
11991 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11992 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11995 # Convert to MSYS style.
11996 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11999 # Convert to unix form, then to dos form, then back to unix form
12000 # but this time dos style (no spaces!) so that the unix form looks
12001 # like /cygdrive/c/PROGRA~1:/cygdr...
12002 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12003 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12004 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12007 sys_lib_search_path_spec=$LIB
12008 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12009 # It is most probably a Windows format PATH.
12010 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12012 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12014 # FIXME: find the short name or the path components, as spaces are
12015 # common. (e.g. "Program Files" -> "PROGRA~1")
12019 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12020 postinstall_cmds='base_file=`basename \$file`~
12021 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12022 dldir=$destdir/`dirname \$dlpath`~
12023 test -d \$dldir || mkdir -p \$dldir~
12024 $install_prog $dir/$dlname \$dldir/$dlname'
12025 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12026 dlpath=$dir/\$dldll~
12028 shlibpath_overrides_runpath=yes
12029 dynamic_linker='Win32 link.exe'
12033 # Assume MSVC wrapper
12034 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12035 dynamic_linker='Win32 ld.exe'
12038 # FIXME: first we should search . and the directory the executable is in
12042 darwin* | rhapsody*)
12043 dynamic_linker="$host_os dyld"
12044 version_type=darwin
12047 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12048 soname_spec='$libname$release$major$shared_ext'
12049 shlibpath_overrides_runpath=yes
12050 shlibpath_var=DYLD_LIBRARY_PATH
12051 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12053 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12054 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12058 version_type=linux # correct to gnu/linux during the next big refactor
12061 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12062 soname_spec='$libname$release$shared_ext$major'
12063 shlibpath_var=LD_LIBRARY_PATH
12066 freebsd* | dragonfly*)
12067 # DragonFly does not have aout. When/if they implement a new
12068 # versioning mechanism, adjust this.
12069 if test -x /usr/bin/objformat; then
12070 objformat=`/usr/bin/objformat`
12073 freebsd[23].*) objformat=aout ;;
12074 *) objformat=elf ;;
12077 version_type=freebsd-$objformat
12078 case $version_type in
12080 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12081 soname_spec='$libname$release$shared_ext$major'
12086 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12090 shlibpath_var=LD_LIBRARY_PATH
12093 shlibpath_overrides_runpath=yes
12095 freebsd3.[01]* | freebsdelf3.[01]*)
12096 shlibpath_overrides_runpath=yes
12097 hardcode_into_libs=yes
12099 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12100 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12101 shlibpath_overrides_runpath=no
12102 hardcode_into_libs=yes
12104 *) # from 4.6 on, and DragonFly
12105 shlibpath_overrides_runpath=yes
12106 hardcode_into_libs=yes
12112 version_type=linux # correct to gnu/linux during the next big refactor
12115 dynamic_linker="$host_os runtime_loader"
12116 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12117 soname_spec='$libname$release$shared_ext$major'
12118 shlibpath_var=LIBRARY_PATH
12119 shlibpath_overrides_runpath=no
12120 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12121 hardcode_into_libs=yes
12124 hpux9* | hpux10* | hpux11*)
12125 # Give a soname corresponding to the major version so that dld.sl refuses to
12126 # link against other versions.
12133 hardcode_into_libs=yes
12134 dynamic_linker="$host_os dld.so"
12135 shlibpath_var=LD_LIBRARY_PATH
12136 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12137 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12138 soname_spec='$libname$release$shared_ext$major'
12139 if test 32 = "$HPUX_IA64_MODE"; then
12140 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12141 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12143 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12144 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12149 hardcode_into_libs=yes
12150 dynamic_linker="$host_os dld.sl"
12151 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12152 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12153 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12154 soname_spec='$libname$release$shared_ext$major'
12155 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12156 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12160 dynamic_linker="$host_os dld.sl"
12161 shlibpath_var=SHLIB_PATH
12162 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12164 soname_spec='$libname$release$shared_ext$major'
12167 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12168 postinstall_cmds='chmod 555 $lib'
12169 # or fails outright, so override atomically:
12170 install_override_mode=555
12174 version_type=linux # correct to gnu/linux during the next big refactor
12177 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12178 soname_spec='$libname$release$shared_ext$major'
12179 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12180 shlibpath_var=LD_LIBRARY_PATH
12181 shlibpath_overrides_runpath=no
12182 hardcode_into_libs=yes
12185 irix5* | irix6* | nonstopux*)
12187 nonstopux*) version_type=nonstopux ;;
12189 if test yes = "$lt_cv_prog_gnu_ld"; then
12190 version_type=linux # correct to gnu/linux during the next big refactor
12197 soname_spec='$libname$release$shared_ext$major'
12198 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12200 irix5* | nonstopux*)
12201 libsuff= shlibsuff=
12204 case $LD in # libtool.m4 will add one of these switches to LD
12205 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12206 libsuff= shlibsuff= libmagic=32-bit;;
12207 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12208 libsuff=32 shlibsuff=N32 libmagic=N32;;
12209 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12210 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12211 *) libsuff= shlibsuff= libmagic=never-match;;
12215 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12216 shlibpath_overrides_runpath=no
12217 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12218 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12219 hardcode_into_libs=yes
12222 # No shared lib support for Linux oldld, aout, or coff.
12223 linux*oldld* | linux*aout* | linux*coff*)
12228 version_type=none # Android doesn't support versioned libraries.
12231 library_names_spec='$libname$release$shared_ext'
12232 soname_spec='$libname$release$shared_ext'
12234 shlibpath_var=LD_LIBRARY_PATH
12235 shlibpath_overrides_runpath=yes
12237 # This implies no fast_install, which is unacceptable.
12238 # Some rework will be needed to allow for fast_install
12239 # before this can be enabled.
12240 hardcode_into_libs=yes
12242 dynamic_linker='Android linker'
12243 # Don't embed -rpath directories since the linker doesn't support them.
12244 hardcode_libdir_flag_spec='-L$libdir'
12247 # This must be glibc/ELF.
12248 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12249 version_type=linux # correct to gnu/linux during the next big refactor
12252 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12253 soname_spec='$libname$release$shared_ext$major'
12254 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12255 shlibpath_var=LD_LIBRARY_PATH
12256 shlibpath_overrides_runpath=no
12258 # Some binutils ld are patched to set DT_RUNPATH
12259 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12260 $as_echo_n "(cached) " >&6
12262 lt_cv_shlibpath_overrides_runpath=no
12263 save_LDFLAGS=$LDFLAGS
12264 save_libdir=$libdir
12265 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12266 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12268 /* end confdefs.h. */
12278 if ac_fn_c_try_link "$LINENO"; then :
12279 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12280 lt_cv_shlibpath_overrides_runpath=yes
12283 rm -f core conftest.err conftest.$ac_objext \
12284 conftest$ac_exeext conftest.$ac_ext
12285 LDFLAGS=$save_LDFLAGS
12286 libdir=$save_libdir
12290 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12292 # This implies no fast_install, which is unacceptable.
12293 # Some rework will be needed to allow for fast_install
12294 # before this can be enabled.
12295 hardcode_into_libs=yes
12297 # Ideally, we could use ldconfig to report *all* directores which are
12298 # searched for libraries, however this is still not possible. Aside from not
12299 # being certain /sbin/ldconfig is available, command
12300 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12301 # even though it is searched at run-time. Try to do the best guess by
12302 # appending ld.so.conf contents (and includes) to the search path.
12303 if test -f /etc/ld.so.conf; then
12304 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12305 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12308 # We used to test for /lib/ld.so.1 and disable shared libraries on
12309 # powerpc, because MkLinux only supported shared libraries with the
12310 # GNU dynamic linker. Since this was broken with cross compilers,
12311 # most powerpc-linux boxes support dynamic linking these days and
12312 # people can always --disable-shared, the test was removed, and we
12313 # assume the GNU/Linux dynamic linker is in use.
12314 dynamic_linker='GNU/Linux ld.so'
12321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12322 soname_spec='${libname}${release}${shared_ext}$major'
12323 shlibpath_var=LD_LIBRARY_PATH
12324 shlibpath_overrides_runpath=no
12325 hardcode_into_libs=yes
12326 dynamic_linker='NetBSD ld.elf_so'
12333 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12334 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12335 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12336 dynamic_linker='NetBSD (a.out) ld.so'
12338 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12339 soname_spec='$libname$release$shared_ext$major'
12340 dynamic_linker='NetBSD ld.elf_so'
12342 shlibpath_var=LD_LIBRARY_PATH
12343 shlibpath_overrides_runpath=yes
12344 hardcode_into_libs=yes
12348 version_type=linux # correct to gnu/linux during the next big refactor
12349 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12350 shlibpath_var=LD_LIBRARY_PATH
12351 shlibpath_overrides_runpath=yes
12358 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12359 soname_spec='$libname$release$shared_ext$major'
12360 shlibpath_var=LD_LIBRARY_PATH
12361 shlibpath_overrides_runpath=no
12362 hardcode_into_libs=yes
12363 dynamic_linker='ldqnx.so'
12366 openbsd* | bitrig*)
12368 sys_lib_dlsearch_path_spec=/usr/lib
12370 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12375 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12377 shlibpath_var=LD_LIBRARY_PATH
12378 shlibpath_overrides_runpath=yes
12382 libname_spec='$name'
12383 version_type=windows
12387 # OS/2 can only load a DLL with a base name of 8 characters or less.
12388 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12389 v=$($ECHO $release$versuffix | tr -d .-);
12390 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12391 $ECHO $n$v`$shared_ext'
12392 library_names_spec='${libname}_dll.$libext'
12393 dynamic_linker='OS/2 ld.exe'
12394 shlibpath_var=BEGINLIBPATH
12395 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12396 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12397 postinstall_cmds='base_file=`basename \$file`~
12398 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12399 dldir=$destdir/`dirname \$dlpath`~
12400 test -d \$dldir || mkdir -p \$dldir~
12401 $install_prog $dir/$dlname \$dldir/$dlname~
12402 chmod a+x \$dldir/$dlname~
12403 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12404 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12406 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12407 dlpath=$dir/\$dldll~
12411 osf3* | osf4* | osf5*)
12415 soname_spec='$libname$release$shared_ext$major'
12416 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12417 shlibpath_var=LD_LIBRARY_PATH
12418 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12419 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12427 version_type=linux # correct to gnu/linux during the next big refactor
12430 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12431 soname_spec='$libname$release$shared_ext$major'
12432 shlibpath_var=LD_LIBRARY_PATH
12433 shlibpath_overrides_runpath=yes
12434 hardcode_into_libs=yes
12435 # ldd complains unless libraries are executable
12436 postinstall_cmds='chmod +x $lib'
12441 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12442 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12443 shlibpath_var=LD_LIBRARY_PATH
12444 shlibpath_overrides_runpath=yes
12445 if test yes = "$with_gnu_ld"; then
12452 version_type=linux # correct to gnu/linux during the next big refactor
12453 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12454 soname_spec='$libname$release$shared_ext$major'
12455 shlibpath_var=LD_LIBRARY_PATH
12456 case $host_vendor in
12458 shlibpath_overrides_runpath=no
12460 runpath_var=LD_RUN_PATH
12468 shlibpath_overrides_runpath=no
12469 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12475 if test -d /usr/nec; then
12476 version_type=linux # correct to gnu/linux during the next big refactor
12477 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12478 soname_spec='$libname$shared_ext.$major'
12479 shlibpath_var=LD_LIBRARY_PATH
12483 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12487 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12488 soname_spec='$libname$release$shared_ext$major'
12489 shlibpath_var=LD_LIBRARY_PATH
12490 shlibpath_overrides_runpath=yes
12491 hardcode_into_libs=yes
12492 if test yes = "$with_gnu_ld"; then
12493 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12495 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12498 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12502 sys_lib_dlsearch_path_spec='/usr/lib'
12506 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12507 version_type=linux # correct to gnu/linux during the next big refactor
12510 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12511 shlibpath_var=LD_LIBRARY_PATH
12512 shlibpath_overrides_runpath=no
12513 hardcode_into_libs=yes
12517 version_type=linux # correct to gnu/linux during the next big refactor
12518 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12519 soname_spec='$libname$release$shared_ext$major'
12520 shlibpath_var=LD_LIBRARY_PATH
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12528 $as_echo "$dynamic_linker" >&6; }
12529 test no = "$dynamic_linker" && can_build_shared=no
12531 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12532 if test yes = "$GCC"; then
12533 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12536 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12537 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12540 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12541 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12544 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12545 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12547 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12548 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12550 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12551 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12650 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12652 if test -n "$hardcode_libdir_flag_spec" ||
12653 test -n "$runpath_var" ||
12654 test yes = "$hardcode_automatic"; then
12656 # We can hardcode non-existent directories.
12657 if test no != "$hardcode_direct" &&
12658 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12659 # have to relink, otherwise we might link with an installed library
12660 # when we should be linking with a yet-to-be-installed one
12661 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12662 test no != "$hardcode_minus_L"; then
12663 # Linking always hardcodes the temporary library directory.
12664 hardcode_action=relink
12666 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12667 hardcode_action=immediate
12670 # We cannot hardcode anything, or else we can only hardcode existing
12672 hardcode_action=unsupported
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12675 $as_echo "$hardcode_action" >&6; }
12677 if test relink = "$hardcode_action" ||
12678 test yes = "$inherit_rpath"; then
12679 # Fast installation is not supported
12680 enable_fast_install=no
12681 elif test yes = "$shlibpath_overrides_runpath" ||
12682 test no = "$enable_shared"; then
12683 # Fast installation is not necessary
12684 enable_fast_install=needless
12692 if test yes != "$enable_dlopen"; then
12693 enable_dlopen=unknown
12694 enable_dlopen_self=unknown
12695 enable_dlopen_self_static=unknown
12702 lt_cv_dlopen=load_add_on
12704 lt_cv_dlopen_self=yes
12707 mingw* | pw32* | cegcc*)
12708 lt_cv_dlopen=LoadLibrary
12713 lt_cv_dlopen=dlopen
12718 # if libdl is installed we need to link against it
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12720 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12721 if ${ac_cv_lib_dl_dlopen+:} false; then :
12722 $as_echo_n "(cached) " >&6
12724 ac_check_lib_save_LIBS=$LIBS
12726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12727 /* end confdefs.h. */
12729 /* Override any GCC internal prototype to avoid an error.
12730 Use char because int might match the return type of a GCC
12731 builtin and then its argument prototype would still apply. */
12744 if ac_fn_c_try_link "$LINENO"; then :
12745 ac_cv_lib_dl_dlopen=yes
12747 ac_cv_lib_dl_dlopen=no
12749 rm -f core conftest.err conftest.$ac_objext \
12750 conftest$ac_exeext conftest.$ac_ext
12751 LIBS=$ac_check_lib_save_LIBS
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12754 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12755 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12756 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12761 lt_cv_dlopen_self=yes
12768 # Don't try to run any link tests for TPF. We know it's impossible
12769 # because TPF is a cross-compiler, and we know how we open DSOs.
12770 lt_cv_dlopen=dlopen
12772 lt_cv_dlopen_self=no
12776 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12777 if test "x$ac_cv_func_shl_load" = xyes; then :
12778 lt_cv_dlopen=shl_load
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12781 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12782 if ${ac_cv_lib_dld_shl_load+:} false; then :
12783 $as_echo_n "(cached) " >&6
12785 ac_check_lib_save_LIBS=$LIBS
12787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12788 /* end confdefs.h. */
12790 /* Override any GCC internal prototype to avoid an error.
12791 Use char because int might match the return type of a GCC
12792 builtin and then its argument prototype would still apply. */
12800 return shl_load ();
12805 if ac_fn_c_try_link "$LINENO"; then :
12806 ac_cv_lib_dld_shl_load=yes
12808 ac_cv_lib_dld_shl_load=no
12810 rm -f core conftest.err conftest.$ac_objext \
12811 conftest$ac_exeext conftest.$ac_ext
12812 LIBS=$ac_check_lib_save_LIBS
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12815 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12816 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12817 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12819 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12820 if test "x$ac_cv_func_dlopen" = xyes; then :
12821 lt_cv_dlopen=dlopen
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12824 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12825 if ${ac_cv_lib_dl_dlopen+:} false; then :
12826 $as_echo_n "(cached) " >&6
12828 ac_check_lib_save_LIBS=$LIBS
12830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12831 /* end confdefs.h. */
12833 /* Override any GCC internal prototype to avoid an error.
12834 Use char because int might match the return type of a GCC
12835 builtin and then its argument prototype would still apply. */
12848 if ac_fn_c_try_link "$LINENO"; then :
12849 ac_cv_lib_dl_dlopen=yes
12851 ac_cv_lib_dl_dlopen=no
12853 rm -f core conftest.err conftest.$ac_objext \
12854 conftest$ac_exeext conftest.$ac_ext
12855 LIBS=$ac_check_lib_save_LIBS
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12858 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12859 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12860 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12863 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12864 if ${ac_cv_lib_svld_dlopen+:} false; then :
12865 $as_echo_n "(cached) " >&6
12867 ac_check_lib_save_LIBS=$LIBS
12868 LIBS="-lsvld $LIBS"
12869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12870 /* end confdefs.h. */
12872 /* Override any GCC internal prototype to avoid an error.
12873 Use char because int might match the return type of a GCC
12874 builtin and then its argument prototype would still apply. */
12887 if ac_fn_c_try_link "$LINENO"; then :
12888 ac_cv_lib_svld_dlopen=yes
12890 ac_cv_lib_svld_dlopen=no
12892 rm -f core conftest.err conftest.$ac_objext \
12893 conftest$ac_exeext conftest.$ac_ext
12894 LIBS=$ac_check_lib_save_LIBS
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12897 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12898 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12899 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12902 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12903 if ${ac_cv_lib_dld_dld_link+:} false; then :
12904 $as_echo_n "(cached) " >&6
12906 ac_check_lib_save_LIBS=$LIBS
12908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12909 /* end confdefs.h. */
12911 /* Override any GCC internal prototype to avoid an error.
12912 Use char because int might match the return type of a GCC
12913 builtin and then its argument prototype would still apply. */
12921 return dld_link ();
12926 if ac_fn_c_try_link "$LINENO"; then :
12927 ac_cv_lib_dld_dld_link=yes
12929 ac_cv_lib_dld_dld_link=no
12931 rm -f core conftest.err conftest.$ac_objext \
12932 conftest$ac_exeext conftest.$ac_ext
12933 LIBS=$ac_check_lib_save_LIBS
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12936 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12937 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12938 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12959 if test no = "$lt_cv_dlopen"; then
12965 case $lt_cv_dlopen in
12967 save_CPPFLAGS=$CPPFLAGS
12968 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12970 save_LDFLAGS=$LDFLAGS
12971 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12974 LIBS="$lt_cv_dlopen_libs $LIBS"
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12977 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12978 if ${lt_cv_dlopen_self+:} false; then :
12979 $as_echo_n "(cached) " >&6
12981 if test yes = "$cross_compiling"; then :
12982 lt_cv_dlopen_self=cross
12984 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12985 lt_status=$lt_dlunknown
12986 cat > conftest.$ac_ext <<_LT_EOF
12987 #line $LINENO "configure"
12988 #include "confdefs.h"
12997 # define LT_DLGLOBAL RTLD_GLOBAL
13000 # define LT_DLGLOBAL DL_GLOBAL
13002 # define LT_DLGLOBAL 0
13006 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13007 find out it does not work in some platform. */
13008 #ifndef LT_DLLAZY_OR_NOW
13010 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13013 # define LT_DLLAZY_OR_NOW DL_LAZY
13016 # define LT_DLLAZY_OR_NOW RTLD_NOW
13019 # define LT_DLLAZY_OR_NOW DL_NOW
13021 # define LT_DLLAZY_OR_NOW 0
13028 /* When -fvisibility=hidden is used, assume the code has been annotated
13029 correspondingly for the symbols needed. */
13030 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13031 int fnord () __attribute__((visibility("default")));
13034 int fnord () { return 42; }
13037 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13038 int status = $lt_dlunknown;
13042 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13045 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13046 else puts (dlerror ());
13048 /* dlclose (self); */
13056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13057 (eval $ac_link) 2>&5
13059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13060 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13061 (./conftest; exit; ) >&5 2>/dev/null
13063 case x$lt_status in
13064 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13065 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13066 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13069 # compilation failed
13070 lt_cv_dlopen_self=no
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13078 $as_echo "$lt_cv_dlopen_self" >&6; }
13080 if test yes = "$lt_cv_dlopen_self"; then
13081 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13083 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13084 if ${lt_cv_dlopen_self_static+:} false; then :
13085 $as_echo_n "(cached) " >&6
13087 if test yes = "$cross_compiling"; then :
13088 lt_cv_dlopen_self_static=cross
13090 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13091 lt_status=$lt_dlunknown
13092 cat > conftest.$ac_ext <<_LT_EOF
13093 #line $LINENO "configure"
13094 #include "confdefs.h"
13103 # define LT_DLGLOBAL RTLD_GLOBAL
13106 # define LT_DLGLOBAL DL_GLOBAL
13108 # define LT_DLGLOBAL 0
13112 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13113 find out it does not work in some platform. */
13114 #ifndef LT_DLLAZY_OR_NOW
13116 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13119 # define LT_DLLAZY_OR_NOW DL_LAZY
13122 # define LT_DLLAZY_OR_NOW RTLD_NOW
13125 # define LT_DLLAZY_OR_NOW DL_NOW
13127 # define LT_DLLAZY_OR_NOW 0
13134 /* When -fvisibility=hidden is used, assume the code has been annotated
13135 correspondingly for the symbols needed. */
13136 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13137 int fnord () __attribute__((visibility("default")));
13140 int fnord () { return 42; }
13143 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13144 int status = $lt_dlunknown;
13148 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13151 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13152 else puts (dlerror ());
13154 /* dlclose (self); */
13162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13163 (eval $ac_link) 2>&5
13165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13166 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13167 (./conftest; exit; ) >&5 2>/dev/null
13169 case x$lt_status in
13170 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13171 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13172 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13175 # compilation failed
13176 lt_cv_dlopen_self_static=no
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13184 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13187 CPPFLAGS=$save_CPPFLAGS
13188 LDFLAGS=$save_LDFLAGS
13193 case $lt_cv_dlopen_self in
13194 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13195 *) enable_dlopen_self=unknown ;;
13198 case $lt_cv_dlopen_self_static in
13199 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13200 *) enable_dlopen_self_static=unknown ;;
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13223 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13224 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13225 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13226 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13228 $as_echo "yes" >&6; }
13230 # FIXME - insert some real tests, host_os isn't really good enough
13233 if test -n "$STRIP"; then
13234 striplib="$STRIP -x"
13235 old_striplib="$STRIP -S"
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13237 $as_echo "yes" >&6; }
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13240 $as_echo "no" >&6; }
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13245 $as_echo "no" >&6; }
13261 # Report what library types will actually be built
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13263 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13265 $as_echo "$can_build_shared" >&6; }
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13268 $as_echo_n "checking whether to build shared libraries... " >&6; }
13269 test no = "$can_build_shared" && enable_shared=no
13271 # On AIX, shared libraries and static libraries use the same namespace, and
13272 # are all built from PIC.
13275 test yes = "$enable_shared" && enable_static=no
13276 if test -n "$RANLIB"; then
13277 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13278 postinstall_cmds='$RANLIB $lib'
13283 if test ia64 != "$host_cpu"; then
13284 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13285 yes,aix,yes) ;; # shared object as lib.so file only
13286 yes,svr4,*) ;; # shared object as lib.so archive member only
13287 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13293 $as_echo "$enable_shared" >&6; }
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13296 $as_echo_n "checking whether to build static libraries... " >&6; }
13297 # Make sure either enable_shared or enable_static is yes.
13298 test yes = "$enable_shared" || enable_static=yes
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13300 $as_echo "$enable_static" >&6; }
13307 ac_cpp='$CPP $CPPFLAGS'
13308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13328 ac_config_commands="$ac_config_commands libtool"
13333 # Only expand once:
13343 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13344 if test -n "$ac_tool_prefix"; then
13345 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13346 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13348 $as_echo_n "checking for $ac_word... " >&6; }
13349 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13350 $as_echo_n "(cached) " >&6
13352 case $PKG_CONFIG in
13354 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13358 for as_dir in $PATH
13361 test -z "$as_dir" && as_dir=.
13362 for ac_exec_ext in '' $ac_executable_extensions; do
13363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13364 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13375 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13376 if test -n "$PKG_CONFIG"; then
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13378 $as_echo "$PKG_CONFIG" >&6; }
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381 $as_echo "no" >&6; }
13386 if test -z "$ac_cv_path_PKG_CONFIG"; then
13387 ac_pt_PKG_CONFIG=$PKG_CONFIG
13388 # Extract the first word of "pkg-config", so it can be a program name with args.
13389 set dummy pkg-config; ac_word=$2
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13391 $as_echo_n "checking for $ac_word... " >&6; }
13392 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13393 $as_echo_n "(cached) " >&6
13395 case $ac_pt_PKG_CONFIG in
13397 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13401 for as_dir in $PATH
13404 test -z "$as_dir" && as_dir=.
13405 for ac_exec_ext in '' $ac_executable_extensions; do
13406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13407 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13418 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13419 if test -n "$ac_pt_PKG_CONFIG"; then
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13421 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13424 $as_echo "no" >&6; }
13427 if test "x$ac_pt_PKG_CONFIG" = x; then
13430 case $cross_compiling:$ac_tool_warned in
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13434 ac_tool_warned=yes ;;
13436 PKG_CONFIG=$ac_pt_PKG_CONFIG
13439 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13443 if test -n "$PKG_CONFIG"; then
13444 _pkg_min_version=0.9.0
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13446 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13447 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13449 $as_echo "yes" >&6; }
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13452 $as_echo "no" >&6; }
13457 if test "X$prefix" = "XNONE"; then
13458 acl_final_prefix="$ac_default_prefix"
13460 acl_final_prefix="$prefix"
13462 if test "X$exec_prefix" = "XNONE"; then
13463 acl_final_exec_prefix='${prefix}'
13465 acl_final_exec_prefix="$exec_prefix"
13467 acl_save_prefix="$prefix"
13468 prefix="$acl_final_prefix"
13469 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13470 prefix="$acl_save_prefix"
13474 # Check whether --with-gnu-ld was given.
13475 if test "${with_gnu_ld+set}" = set; then :
13476 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13481 # Prepare PATH_SEPARATOR.
13482 # The user is always right.
13483 if test "${PATH_SEPARATOR+set}" != set; then
13484 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13485 # contains only /bin. Note that ksh looks also at the FPATH variable,
13486 # so we have to set that as well for the test.
13488 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13489 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13490 || PATH_SEPARATOR=';'
13495 if test "$GCC" = yes; then
13496 # Check if gcc -print-prog-name=ld gives a path.
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13498 $as_echo_n "checking for ld used by $CC... " >&6; }
13501 # gcc leaves a trailing carriage return which upsets mingw
13502 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13504 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13507 # Accept absolute paths.
13509 re_direlt='/[^/][^/]*/\.\./'
13510 # Canonicalize the pathname of ld
13511 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
13512 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
13513 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13515 test -z "$LD" && LD="$ac_prog"
13518 # If it fails, then pretend we aren't using GCC.
13522 # If it is relative, then search for the first ld in PATH.
13523 with_gnu_ld=unknown
13526 elif test "$with_gnu_ld" = yes; then
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13528 $as_echo_n "checking for GNU ld... " >&6; }
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13531 $as_echo_n "checking for non-GNU ld... " >&6; }
13533 if ${acl_cv_path_LD+:} false; then :
13534 $as_echo_n "(cached) " >&6
13536 if test -z "$LD"; then
13537 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13538 for ac_dir in $PATH; do
13539 IFS="$acl_save_ifs"
13540 test -z "$ac_dir" && ac_dir=.
13541 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13542 acl_cv_path_LD="$ac_dir/$ac_prog"
13543 # Check to see if the program is GNU ld. I'd rather use --version,
13544 # but apparently some variants of GNU ld only accept -v.
13545 # Break only if it was the GNU/non-GNU ld that we prefer.
13546 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
13547 *GNU* | *'with BFD'*)
13548 test "$with_gnu_ld" != no && break
13551 test "$with_gnu_ld" != yes && break
13556 IFS="$acl_save_ifs"
13558 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13562 LD="$acl_cv_path_LD"
13563 if test -n "$LD"; then
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13565 $as_echo "$LD" >&6; }
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13568 $as_echo "no" >&6; }
13570 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13572 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13573 if ${acl_cv_prog_gnu_ld+:} false; then :
13574 $as_echo_n "(cached) " >&6
13576 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13577 case `$LD -v 2>&1 </dev/null` in
13578 *GNU* | *'with BFD'*)
13579 acl_cv_prog_gnu_ld=yes
13582 acl_cv_prog_gnu_ld=no
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13587 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13588 with_gnu_ld=$acl_cv_prog_gnu_ld
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13594 $as_echo_n "checking for shared library run path origin... " >&6; }
13595 if ${acl_cv_rpath+:} false; then :
13596 $as_echo_n "(cached) " >&6
13599 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13600 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13602 rm -f ./conftest.sh
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13607 $as_echo "$acl_cv_rpath" >&6; }
13609 acl_libext="$acl_cv_libext"
13610 acl_shlibext="$acl_cv_shlibext"
13611 acl_libname_spec="$acl_cv_libname_spec"
13612 acl_library_names_spec="$acl_cv_library_names_spec"
13613 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13614 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13615 acl_hardcode_direct="$acl_cv_hardcode_direct"
13616 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13617 # Check whether --enable-rpath was given.
13618 if test "${enable_rpath+set}" = set; then :
13619 enableval=$enable_rpath; :
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
13632 $as_echo_n "checking for 64-bit host... " >&6; }
13633 if ${gl_cv_solaris_64bit+:} false; then :
13634 $as_echo_n "(cached) " >&6
13636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13637 /* end confdefs.h. */
13644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13645 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
13646 gl_cv_solaris_64bit=yes
13648 gl_cv_solaris_64bit=no
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
13655 $as_echo "$gl_cv_solaris_64bit" >&6; }
13656 if test $gl_cv_solaris_64bit = yes; then
13657 acl_libdirstem=lib/64
13658 case "$host_cpu" in
13659 sparc*) acl_libdirstem2=lib/sparcv9 ;;
13660 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
13665 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13666 if test -n "$searchpath"; then
13667 acl_save_IFS="${IFS= }"; IFS=":"
13668 for searchdir in $searchpath; do
13669 if test -d "$searchdir"; then
13670 case "$searchdir" in
13671 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13673 # Better ignore directories of this form. They are misleading.
13675 *) searchdir=`cd "$searchdir" && pwd`
13676 case "$searchdir" in
13677 */lib64 ) acl_libdirstem=lib64 ;;
13682 IFS="$acl_save_IFS"
13686 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
13701 acl_save_prefix="$prefix"
13702 prefix="$acl_final_prefix"
13703 acl_save_exec_prefix="$exec_prefix"
13704 exec_prefix="$acl_final_exec_prefix"
13706 eval additional_includedir=\"$includedir\"
13707 eval additional_libdir=\"$libdir\"
13709 exec_prefix="$acl_save_exec_prefix"
13710 prefix="$acl_save_prefix"
13713 # Check whether --with-libiconv-prefix was given.
13714 if test "${with_libiconv_prefix+set}" = set; then :
13715 withval=$with_libiconv_prefix;
13716 if test "X$withval" = "Xno"; then
13719 if test "X$withval" = "X"; then
13721 acl_save_prefix="$prefix"
13722 prefix="$acl_final_prefix"
13723 acl_save_exec_prefix="$exec_prefix"
13724 exec_prefix="$acl_final_exec_prefix"
13726 eval additional_includedir=\"$includedir\"
13727 eval additional_libdir=\"$libdir\"
13729 exec_prefix="$acl_save_exec_prefix"
13730 prefix="$acl_save_prefix"
13733 additional_includedir="$withval/include"
13734 additional_libdir="$withval/$acl_libdirstem"
13735 if test "$acl_libdirstem2" != "$acl_libdirstem" \
13736 && ! test -d "$withval/$acl_libdirstem"; then
13737 additional_libdir="$withval/$acl_libdirstem2"
13751 names_already_handled=
13752 names_next_round='iconv '
13753 while test -n "$names_next_round"; do
13754 names_this_round="$names_next_round"
13756 for name in $names_this_round; do
13758 for n in $names_already_handled; do
13759 if test "$n" = "$name"; then
13760 already_handled=yes
13764 if test -z "$already_handled"; then
13765 names_already_handled="$names_already_handled $name"
13766 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
13767 eval value=\"\$HAVE_LIB$uppername\"
13768 if test -n "$value"; then
13769 if test "$value" = yes; then
13770 eval value=\"\$LIB$uppername\"
13771 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13772 eval value=\"\$LTLIB$uppername\"
13773 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13782 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13783 if test -n "$acl_shlibext"; then
13784 shrext=".$acl_shlibext" # typically: shrext=.so
13788 if test $use_additional = yes; then
13789 dir="$additional_libdir"
13790 if test -n "$acl_shlibext"; then
13791 if test -f "$dir/$libname$shrext"; then
13793 found_so="$dir/$libname$shrext"
13795 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13796 ver=`(cd "$dir" && \
13797 for f in "$libname$shrext".*; do echo "$f"; done \
13798 | sed -e "s,^$libname$shrext\\\\.,," \
13799 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13800 | sed 1q ) 2>/dev/null`
13801 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13803 found_so="$dir/$libname$shrext.$ver"
13806 eval library_names=\"$acl_library_names_spec\"
13807 for f in $library_names; do
13808 if test -f "$dir/$f"; then
13817 if test "X$found_dir" = "X"; then
13818 if test -f "$dir/$libname.$acl_libext"; then
13820 found_a="$dir/$libname.$acl_libext"
13823 if test "X$found_dir" != "X"; then
13824 if test -f "$dir/$libname.la"; then
13825 found_la="$dir/$libname.la"
13829 if test "X$found_dir" = "X"; then
13830 for x in $LDFLAGS $LTLIBICONV; do
13832 acl_save_prefix="$prefix"
13833 prefix="$acl_final_prefix"
13834 acl_save_exec_prefix="$exec_prefix"
13835 exec_prefix="$acl_final_exec_prefix"
13837 exec_prefix="$acl_save_exec_prefix"
13838 prefix="$acl_save_prefix"
13842 dir=`echo "X$x" | sed -e 's/^X-L//'`
13843 if test -n "$acl_shlibext"; then
13844 if test -f "$dir/$libname$shrext"; then
13846 found_so="$dir/$libname$shrext"
13848 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13849 ver=`(cd "$dir" && \
13850 for f in "$libname$shrext".*; do echo "$f"; done \
13851 | sed -e "s,^$libname$shrext\\\\.,," \
13852 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13853 | sed 1q ) 2>/dev/null`
13854 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13856 found_so="$dir/$libname$shrext.$ver"
13859 eval library_names=\"$acl_library_names_spec\"
13860 for f in $library_names; do
13861 if test -f "$dir/$f"; then
13870 if test "X$found_dir" = "X"; then
13871 if test -f "$dir/$libname.$acl_libext"; then
13873 found_a="$dir/$libname.$acl_libext"
13876 if test "X$found_dir" != "X"; then
13877 if test -f "$dir/$libname.la"; then
13878 found_la="$dir/$libname.la"
13883 if test "X$found_dir" != "X"; then
13888 if test "X$found_dir" != "X"; then
13889 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13890 if test "X$found_so" != "X"; then
13891 if test "$enable_rpath" = no \
13892 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13893 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13894 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13897 for x in $ltrpathdirs; do
13898 if test "X$x" = "X$found_dir"; then
13903 if test -z "$haveit"; then
13904 ltrpathdirs="$ltrpathdirs $found_dir"
13906 if test "$acl_hardcode_direct" = yes; then
13907 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13909 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13910 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13912 for x in $rpathdirs; do
13913 if test "X$x" = "X$found_dir"; then
13918 if test -z "$haveit"; then
13919 rpathdirs="$rpathdirs $found_dir"
13923 for x in $LDFLAGS $LIBICONV; do
13925 acl_save_prefix="$prefix"
13926 prefix="$acl_final_prefix"
13927 acl_save_exec_prefix="$exec_prefix"
13928 exec_prefix="$acl_final_exec_prefix"
13930 exec_prefix="$acl_save_exec_prefix"
13931 prefix="$acl_save_prefix"
13933 if test "X$x" = "X-L$found_dir"; then
13938 if test -z "$haveit"; then
13939 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13941 if test "$acl_hardcode_minus_L" != no; then
13942 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13944 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13950 if test "X$found_a" != "X"; then
13951 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13953 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13956 additional_includedir=
13957 case "$found_dir" in
13958 */$acl_libdirstem | */$acl_libdirstem/)
13959 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13960 if test "$name" = 'iconv'; then
13961 LIBICONV_PREFIX="$basedir"
13963 additional_includedir="$basedir/include"
13965 */$acl_libdirstem2 | */$acl_libdirstem2/)
13966 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13967 if test "$name" = 'iconv'; then
13968 LIBICONV_PREFIX="$basedir"
13970 additional_includedir="$basedir/include"
13973 if test "X$additional_includedir" != "X"; then
13974 if test "X$additional_includedir" != "X/usr/include"; then
13976 if test "X$additional_includedir" = "X/usr/local/include"; then
13977 if test -n "$GCC"; then
13979 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13983 if test -z "$haveit"; then
13984 for x in $CPPFLAGS $INCICONV; do
13986 acl_save_prefix="$prefix"
13987 prefix="$acl_final_prefix"
13988 acl_save_exec_prefix="$exec_prefix"
13989 exec_prefix="$acl_final_exec_prefix"
13991 exec_prefix="$acl_save_exec_prefix"
13992 prefix="$acl_save_prefix"
13994 if test "X$x" = "X-I$additional_includedir"; then
13999 if test -z "$haveit"; then
14000 if test -d "$additional_includedir"; then
14001 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14007 if test -n "$found_la"; then
14008 save_libdir="$libdir"
14009 case "$found_la" in
14010 */* | *\\*) . "$found_la" ;;
14011 *) . "./$found_la" ;;
14013 libdir="$save_libdir"
14014 for dep in $dependency_libs; do
14017 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14018 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14019 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14021 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14022 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14023 if test -n "$GCC"; then
14025 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14029 if test -z "$haveit"; then
14031 for x in $LDFLAGS $LIBICONV; do
14033 acl_save_prefix="$prefix"
14034 prefix="$acl_final_prefix"
14035 acl_save_exec_prefix="$exec_prefix"
14036 exec_prefix="$acl_final_exec_prefix"
14038 exec_prefix="$acl_save_exec_prefix"
14039 prefix="$acl_save_prefix"
14041 if test "X$x" = "X-L$additional_libdir"; then
14046 if test -z "$haveit"; then
14047 if test -d "$additional_libdir"; then
14048 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14052 for x in $LDFLAGS $LTLIBICONV; do
14054 acl_save_prefix="$prefix"
14055 prefix="$acl_final_prefix"
14056 acl_save_exec_prefix="$exec_prefix"
14057 exec_prefix="$acl_final_exec_prefix"
14059 exec_prefix="$acl_save_exec_prefix"
14060 prefix="$acl_save_prefix"
14062 if test "X$x" = "X-L$additional_libdir"; then
14067 if test -z "$haveit"; then
14068 if test -d "$additional_libdir"; then
14069 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14076 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14077 if test "$enable_rpath" != no; then
14079 for x in $rpathdirs; do
14080 if test "X$x" = "X$dir"; then
14085 if test -z "$haveit"; then
14086 rpathdirs="$rpathdirs $dir"
14089 for x in $ltrpathdirs; do
14090 if test "X$x" = "X$dir"; then
14095 if test -z "$haveit"; then
14096 ltrpathdirs="$ltrpathdirs $dir"
14101 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14104 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14107 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14108 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14114 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14115 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14121 if test "X$rpathdirs" != "X"; then
14122 if test -n "$acl_hardcode_libdir_separator"; then
14124 for found_dir in $rpathdirs; do
14125 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14127 acl_save_libdir="$libdir"
14129 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14130 libdir="$acl_save_libdir"
14131 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14133 for found_dir in $rpathdirs; do
14134 acl_save_libdir="$libdir"
14135 libdir="$found_dir"
14136 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14137 libdir="$acl_save_libdir"
14138 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14142 if test "X$ltrpathdirs" != "X"; then
14143 for found_dir in $ltrpathdirs; do
14144 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14159 am_save_CPPFLAGS="$CPPFLAGS"
14161 for element in $INCICONV; do
14163 for x in $CPPFLAGS; do
14165 acl_save_prefix="$prefix"
14166 prefix="$acl_final_prefix"
14167 acl_save_exec_prefix="$exec_prefix"
14168 exec_prefix="$acl_final_exec_prefix"
14170 exec_prefix="$acl_save_exec_prefix"
14171 prefix="$acl_save_prefix"
14173 if test "X$x" = "X$element"; then
14178 if test -z "$haveit"; then
14179 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14185 $as_echo_n "checking for iconv... " >&6; }
14186 if ${am_cv_func_iconv+:} false; then :
14187 $as_echo_n "(cached) " >&6
14190 am_cv_func_iconv="no, consider installing GNU libiconv"
14192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14193 /* end confdefs.h. */
14195 #include <stdlib.h>
14201 iconv_t cd = iconv_open("","");
14202 iconv(cd,NULL,NULL,NULL,NULL);
14208 if ac_fn_c_try_link "$LINENO"; then :
14209 am_cv_func_iconv=yes
14211 rm -f core conftest.err conftest.$ac_objext \
14212 conftest$ac_exeext conftest.$ac_ext
14213 if test "$am_cv_func_iconv" != yes; then
14214 am_save_LIBS="$LIBS"
14215 LIBS="$LIBS $LIBICONV"
14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14217 /* end confdefs.h. */
14219 #include <stdlib.h>
14225 iconv_t cd = iconv_open("","");
14226 iconv(cd,NULL,NULL,NULL,NULL);
14232 if ac_fn_c_try_link "$LINENO"; then :
14233 am_cv_lib_iconv=yes
14234 am_cv_func_iconv=yes
14236 rm -f core conftest.err conftest.$ac_objext \
14237 conftest$ac_exeext conftest.$ac_ext
14238 LIBS="$am_save_LIBS"
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14243 $as_echo "$am_cv_func_iconv" >&6; }
14244 if test "$am_cv_func_iconv" = yes; then
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14246 $as_echo_n "checking for working iconv... " >&6; }
14247 if ${am_cv_func_iconv_works+:} false; then :
14248 $as_echo_n "(cached) " >&6
14251 am_save_LIBS="$LIBS"
14252 if test $am_cv_lib_iconv = yes; then
14253 LIBS="$LIBS $LIBICONV"
14255 if test "$cross_compiling" = yes; then :
14258 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14259 *) am_cv_func_iconv_works="guessing yes" ;;
14263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14264 /* end confdefs.h. */
14267 #include <string.h>
14271 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
14274 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14275 if (cd_utf8_to_88591 != (iconv_t)(-1))
14277 static const char input[] = "\342\202\254"; /* EURO SIGN */
14279 const char *inptr = input;
14280 size_t inbytesleft = strlen (input);
14281 char *outptr = buf;
14282 size_t outbytesleft = sizeof (buf);
14283 size_t res = iconv (cd_utf8_to_88591,
14284 (char **) &inptr, &inbytesleft,
14285 &outptr, &outbytesleft);
14288 iconv_close (cd_utf8_to_88591);
14291 /* Test against Solaris 10 bug: Failures are not distinguishable from
14292 successful returns. */
14294 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14295 if (cd_ascii_to_88591 != (iconv_t)(-1))
14297 static const char input[] = "\263";
14299 const char *inptr = input;
14300 size_t inbytesleft = strlen (input);
14301 char *outptr = buf;
14302 size_t outbytesleft = sizeof (buf);
14303 size_t res = iconv (cd_ascii_to_88591,
14304 (char **) &inptr, &inbytesleft,
14305 &outptr, &outbytesleft);
14308 iconv_close (cd_ascii_to_88591);
14311 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
14313 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14314 if (cd_88591_to_utf8 != (iconv_t)(-1))
14316 static const char input[] = "\304";
14317 static char buf[2] = { (char)0xDE, (char)0xAD };
14318 const char *inptr = input;
14319 size_t inbytesleft = 1;
14320 char *outptr = buf;
14321 size_t outbytesleft = 1;
14322 size_t res = iconv (cd_88591_to_utf8,
14323 (char **) &inptr, &inbytesleft,
14324 &outptr, &outbytesleft);
14325 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14327 iconv_close (cd_88591_to_utf8);
14330 #if 0 /* This bug could be worked around by the caller. */
14331 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14333 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14334 if (cd_88591_to_utf8 != (iconv_t)(-1))
14336 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14338 const char *inptr = input;
14339 size_t inbytesleft = strlen (input);
14340 char *outptr = buf;
14341 size_t outbytesleft = sizeof (buf);
14342 size_t res = iconv (cd_88591_to_utf8,
14343 (char **) &inptr, &inbytesleft,
14344 &outptr, &outbytesleft);
14347 iconv_close (cd_88591_to_utf8);
14351 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14353 if (/* Try standardized names. */
14354 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
14355 /* Try IRIX, OSF/1 names. */
14356 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
14357 /* Try AIX names. */
14358 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
14359 /* Try HP-UX names. */
14360 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
14365 if ac_fn_c_try_run "$LINENO"; then :
14366 am_cv_func_iconv_works=yes
14368 am_cv_func_iconv_works=no
14370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14371 conftest.$ac_objext conftest.beam conftest.$ac_ext
14374 LIBS="$am_save_LIBS"
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14378 $as_echo "$am_cv_func_iconv_works" >&6; }
14379 case "$am_cv_func_iconv_works" in
14380 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14381 *) am_func_iconv=yes ;;
14384 am_func_iconv=no am_cv_lib_iconv=no
14386 if test "$am_func_iconv" = yes; then
14388 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14391 if test "$am_cv_lib_iconv" = yes; then
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14393 $as_echo_n "checking how to link with libiconv... " >&6; }
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14395 $as_echo "$LIBICONV" >&6; }
14397 CPPFLAGS="$am_save_CPPFLAGS"
14404 if test "$am_cv_func_iconv" = yes; then
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14406 $as_echo_n "checking for iconv declaration... " >&6; }
14407 if ${am_cv_proto_iconv+:} false; then :
14408 $as_echo_n "(cached) " >&6
14411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14412 /* end confdefs.h. */
14414 #include <stdlib.h>
14420 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
14421 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14434 if ac_fn_c_try_compile "$LINENO"; then :
14435 am_cv_proto_iconv_arg1=""
14437 am_cv_proto_iconv_arg1="const"
14439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14440 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14443 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
14445 $am_cv_proto_iconv" >&5
14447 $am_cv_proto_iconv" >&6; }
14449 cat >>confdefs.h <<_ACEOF
14450 #define ICONV_CONST $am_cv_proto_iconv_arg1
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14461 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14462 if ${ac_cv_c_restrict+:} false; then :
14463 $as_echo_n "(cached) " >&6
14465 ac_cv_c_restrict=no
14466 # The order here caters to the fact that C++ does not require restrict.
14467 for ac_kw in __restrict __restrict__ _Restrict restrict; do
14468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14469 /* end confdefs.h. */
14470 typedef int * int_ptr;
14471 int foo (int_ptr $ac_kw ip) {
14478 int * $ac_kw t = s;
14485 if ac_fn_c_try_compile "$LINENO"; then :
14486 ac_cv_c_restrict=$ac_kw
14488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14489 test "$ac_cv_c_restrict" != no && break
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14494 $as_echo "$ac_cv_c_restrict" >&6; }
14496 case $ac_cv_c_restrict in
14498 no) $as_echo "#define restrict /**/" >>confdefs.h
14500 *) cat >>confdefs.h <<_ACEOF
14501 #define restrict $ac_cv_c_restrict
14507 ac_header_dirent=no
14508 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14509 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
14511 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
14512 if eval \${$as_ac_Header+:} false; then :
14513 $as_echo_n "(cached) " >&6
14515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14516 /* end confdefs.h. */
14517 #include <sys/types.h>
14529 if ac_fn_c_try_compile "$LINENO"; then :
14530 eval "$as_ac_Header=yes"
14532 eval "$as_ac_Header=no"
14534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14536 eval ac_res=\$$as_ac_Header
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14538 $as_echo "$ac_res" >&6; }
14539 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14540 cat >>confdefs.h <<_ACEOF
14541 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14544 ac_header_dirent=$ac_hdr; break
14548 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14549 if test $ac_header_dirent = dirent.h; then
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14551 $as_echo_n "checking for library containing opendir... " >&6; }
14552 if ${ac_cv_search_opendir+:} false; then :
14553 $as_echo_n "(cached) " >&6
14555 ac_func_search_save_LIBS=$LIBS
14556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14557 /* end confdefs.h. */
14559 /* Override any GCC internal prototype to avoid an error.
14560 Use char because int might match the return type of a GCC
14561 builtin and then its argument prototype would still apply. */
14574 for ac_lib in '' dir; do
14575 if test -z "$ac_lib"; then
14576 ac_res="none required"
14579 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14581 if ac_fn_c_try_link "$LINENO"; then :
14582 ac_cv_search_opendir=$ac_res
14584 rm -f core conftest.err conftest.$ac_objext \
14586 if ${ac_cv_search_opendir+:} false; then :
14590 if ${ac_cv_search_opendir+:} false; then :
14593 ac_cv_search_opendir=no
14595 rm conftest.$ac_ext
14596 LIBS=$ac_func_search_save_LIBS
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14599 $as_echo "$ac_cv_search_opendir" >&6; }
14600 ac_res=$ac_cv_search_opendir
14601 if test "$ac_res" != no; then :
14602 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14608 $as_echo_n "checking for library containing opendir... " >&6; }
14609 if ${ac_cv_search_opendir+:} false; then :
14610 $as_echo_n "(cached) " >&6
14612 ac_func_search_save_LIBS=$LIBS
14613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14614 /* end confdefs.h. */
14616 /* Override any GCC internal prototype to avoid an error.
14617 Use char because int might match the return type of a GCC
14618 builtin and then its argument prototype would still apply. */
14631 for ac_lib in '' x; do
14632 if test -z "$ac_lib"; then
14633 ac_res="none required"
14636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14638 if ac_fn_c_try_link "$LINENO"; then :
14639 ac_cv_search_opendir=$ac_res
14641 rm -f core conftest.err conftest.$ac_objext \
14643 if ${ac_cv_search_opendir+:} false; then :
14647 if ${ac_cv_search_opendir+:} false; then :
14650 ac_cv_search_opendir=no
14652 rm conftest.$ac_ext
14653 LIBS=$ac_func_search_save_LIBS
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14656 $as_echo "$ac_cv_search_opendir" >&6; }
14657 ac_res=$ac_cv_search_opendir
14658 if test "$ac_res" != no; then :
14659 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14666 $as_echo_n "checking for ANSI C header files... " >&6; }
14667 if ${ac_cv_header_stdc+:} false; then :
14668 $as_echo_n "(cached) " >&6
14670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14671 /* end confdefs.h. */
14672 #include <stdlib.h>
14673 #include <stdarg.h>
14674 #include <string.h>
14685 if ac_fn_c_try_compile "$LINENO"; then :
14686 ac_cv_header_stdc=yes
14688 ac_cv_header_stdc=no
14690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14692 if test $ac_cv_header_stdc = yes; then
14693 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14695 /* end confdefs.h. */
14696 #include <string.h>
14699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14700 $EGREP "memchr" >/dev/null 2>&1; then :
14703 ac_cv_header_stdc=no
14709 if test $ac_cv_header_stdc = yes; then
14710 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14712 /* end confdefs.h. */
14713 #include <stdlib.h>
14716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14717 $EGREP "free" >/dev/null 2>&1; then :
14720 ac_cv_header_stdc=no
14726 if test $ac_cv_header_stdc = yes; then
14727 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14728 if test "$cross_compiling" = yes; then :
14731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14732 /* end confdefs.h. */
14734 #include <stdlib.h>
14735 #if ((' ' & 0x0FF) == 0x020)
14736 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14737 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14739 # define ISLOWER(c) \
14740 (('a' <= (c) && (c) <= 'i') \
14741 || ('j' <= (c) && (c) <= 'r') \
14742 || ('s' <= (c) && (c) <= 'z'))
14743 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14746 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14751 for (i = 0; i < 256; i++)
14752 if (XOR (islower (i), ISLOWER (i))
14753 || toupper (i) != TOUPPER (i))
14758 if ac_fn_c_try_run "$LINENO"; then :
14761 ac_cv_header_stdc=no
14763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14764 conftest.$ac_objext conftest.beam conftest.$ac_ext
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14770 $as_echo "$ac_cv_header_stdc" >&6; }
14771 if test $ac_cv_header_stdc = yes; then
14773 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14777 for ac_header in fcntl.h malloc.h inttypes.h sys/ioctl.h sys/mman.h \
14778 sys/sysmacros.h sys/statvfs.h ctype.h unistd.h locale.h byteswap.h endian.h stdint.h
14780 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14781 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14782 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14783 cat >>confdefs.h <<_ACEOF
14784 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14791 ac_fn_c_check_decl "$LINENO" "O_CLOEXEC" "ac_cv_have_decl_O_CLOEXEC" "
14792 #ifdef HAVE_FCNTL_H
14793 # include <fcntl.h>
14797 if test "x$ac_cv_have_decl_O_CLOEXEC" = xyes; then :
14803 cat >>confdefs.h <<_ACEOF
14804 #define HAVE_DECL_O_CLOEXEC $ac_have_decl
14806 if test $ac_have_decl = 1; then :
14810 $as_echo "#define O_CLOEXEC 0" >>confdefs.h
14815 for ac_header in uuid/uuid.h
14817 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
14818 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
14819 cat >>confdefs.h <<_ACEOF
14820 #define HAVE_UUID_UUID_H 1
14824 as_fn_error $? "You need the uuid library." "$LINENO" 5
14829 ac_fn_c_check_header_mongrel "$LINENO" "libdevmapper.h" "ac_cv_header_libdevmapper_h" "$ac_includes_default"
14830 if test "x$ac_cv_header_libdevmapper_h" = xyes; then :
14833 as_fn_error $? "You need the device-mapper library." "$LINENO" 5
14838 # Check whether --enable-keyring was given.
14839 if test "${enable_keyring+set}" = set; then :
14840 enableval=$enable_keyring;
14845 if test "x$enable_keyring" = "xyes"; then
14846 for ac_header in linux/keyctl.h
14848 ac_fn_c_check_header_mongrel "$LINENO" "linux/keyctl.h" "ac_cv_header_linux_keyctl_h" "$ac_includes_default"
14849 if test "x$ac_cv_header_linux_keyctl_h" = xyes; then :
14850 cat >>confdefs.h <<_ACEOF
14851 #define HAVE_LINUX_KEYCTL_H 1
14855 as_fn_error $? "You need Linux kernel headers with kernel keyring service compiled." "$LINENO" 5
14861 ac_fn_c_check_decl "$LINENO" "__NR_add_key" "ac_cv_have_decl___NR_add_key" "#include <syscall.h>
14863 if test "x$ac_cv_have_decl___NR_add_key" = xyes; then :
14866 as_fn_error $? "The kernel is missing add_key syscall." "$LINENO" 5
14869 ac_fn_c_check_decl "$LINENO" "__NR_keyctl" "ac_cv_have_decl___NR_keyctl" "#include <syscall.h>
14871 if test "x$ac_cv_have_decl___NR_keyctl" = xyes; then :
14874 as_fn_error $? "The kernel is missing keyctl syscall." "$LINENO" 5
14877 ac_fn_c_check_decl "$LINENO" "__NR_request_key" "ac_cv_have_decl___NR_request_key" "#include <syscall.h>
14879 if test "x$ac_cv_have_decl___NR_request_key" = xyes; then :
14882 as_fn_error $? "The kernel is missing request_key syscall." "$LINENO" 5
14886 ac_fn_c_check_type "$LINENO" "key_serial_t" "ac_cv_type_key_serial_t" "
14887 $ac_includes_default
14888 #ifdef HAVE_LINUX_KEYCTL_H
14889 # include <linux/keyctl.h>
14893 if test "x$ac_cv_type_key_serial_t" = xyes; then :
14895 cat >>confdefs.h <<_ACEOF
14896 #define HAVE_KEY_SERIAL_T 1
14904 $as_echo "#define KERNEL_KEYRING 1" >>confdefs.h
14907 if test "x$enable_keyring" = "xyes"; then
14908 KERNEL_KEYRING_TRUE=
14909 KERNEL_KEYRING_FALSE='#'
14911 KERNEL_KEYRING_TRUE='#'
14912 KERNEL_KEYRING_FALSE=
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_clear in -luuid" >&5
14918 $as_echo_n "checking for uuid_clear in -luuid... " >&6; }
14919 if ${ac_cv_lib_uuid_uuid_clear+:} false; then :
14920 $as_echo_n "(cached) " >&6
14922 ac_check_lib_save_LIBS=$LIBS
14923 LIBS="-luuid $LIBS"
14924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14925 /* end confdefs.h. */
14927 /* Override any GCC internal prototype to avoid an error.
14928 Use char because int might match the return type of a GCC
14929 builtin and then its argument prototype would still apply. */
14933 char uuid_clear ();
14937 return uuid_clear ();
14942 if ac_fn_c_try_link "$LINENO"; then :
14943 ac_cv_lib_uuid_uuid_clear=yes
14945 ac_cv_lib_uuid_uuid_clear=no
14947 rm -f core conftest.err conftest.$ac_objext \
14948 conftest$ac_exeext conftest.$ac_ext
14949 LIBS=$ac_check_lib_save_LIBS
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_clear" >&5
14952 $as_echo "$ac_cv_lib_uuid_uuid_clear" >&6; }
14953 if test "x$ac_cv_lib_uuid_uuid_clear" = xyes; then :
14954 cat >>confdefs.h <<_ACEOF
14955 #define HAVE_LIBUUID 1
14958 LIBS="-luuid $LIBS"
14961 as_fn_error $? "You need the uuid library." "$LINENO" 5
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14969 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14970 if ${ac_cv_search_clock_gettime+:} false; then :
14971 $as_echo_n "(cached) " >&6
14973 ac_func_search_save_LIBS=$LIBS
14974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14975 /* end confdefs.h. */
14977 /* Override any GCC internal prototype to avoid an error.
14978 Use char because int might match the return type of a GCC
14979 builtin and then its argument prototype would still apply. */
14983 char clock_gettime ();
14987 return clock_gettime ();
14992 for ac_lib in '' rt posix4; do
14993 if test -z "$ac_lib"; then
14994 ac_res="none required"
14997 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14999 if ac_fn_c_try_link "$LINENO"; then :
15000 ac_cv_search_clock_gettime=$ac_res
15002 rm -f core conftest.err conftest.$ac_objext \
15004 if ${ac_cv_search_clock_gettime+:} false; then :
15008 if ${ac_cv_search_clock_gettime+:} false; then :
15011 ac_cv_search_clock_gettime=no
15013 rm conftest.$ac_ext
15014 LIBS=$ac_func_search_save_LIBS
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
15017 $as_echo "$ac_cv_search_clock_gettime" >&6; }
15018 ac_res=$ac_cv_search_clock_gettime
15019 if test "$ac_res" != no; then :
15020 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15024 for ac_func in posix_memalign clock_gettime posix_fallocate explicit_bzero
15026 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15027 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15028 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15029 cat >>confdefs.h <<_ACEOF
15030 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15037 if test "x$enable_largefile" = "xno"; then
15038 as_fn_error $? "Building with --disable-largefile is not supported, it can cause data corruption." "$LINENO" 5
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15042 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15043 if ${ac_cv_c_const+:} false; then :
15044 $as_echo_n "(cached) " >&6
15046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15047 /* end confdefs.h. */
15053 #ifndef __cplusplus
15054 /* Ultrix mips cc rejects this sort of thing. */
15055 typedef int charset[2];
15056 const charset cs = { 0, 0 };
15057 /* SunOS 4.1.1 cc rejects this. */
15058 char const *const *pcpcc;
15060 /* NEC SVR4.0.2 mips cc rejects this. */
15061 struct point {int x, y;};
15062 static struct point const zero = {0,0};
15063 /* AIX XL C 1.02.0.0 rejects this.
15064 It does not let you subtract one const X* pointer from another in
15065 an arm of an if-expression whose if-part is not a constant
15067 const char *g = "string";
15068 pcpcc = &g + (g ? g-g : 0);
15069 /* HPUX 7.0 cc rejects these. */
15071 ppc = (char**) pcpcc;
15072 pcpcc = (char const *const *) ppc;
15073 { /* SCO 3.2v4 cc rejects this sort of thing. */
15076 char const *s = 0 ? (char *) 0 : (char const *) 0;
15081 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15082 int x[] = {25, 17};
15083 const int *foo = &x[0];
15086 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15087 typedef const int *iptr;
15091 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
15092 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15093 struct s { int j; const int *ap[3]; } bx;
15094 struct s *b = &bx; b->j = 5;
15096 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15097 const int foo = 10;
15098 if (!foo) return 0;
15100 return !cs[0] && !zero.x;
15107 if ac_fn_c_try_compile "$LINENO"; then :
15112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15115 $as_echo "$ac_cv_c_const" >&6; }
15116 if test $ac_cv_c_const = no; then
15118 $as_echo "#define const /**/" >>confdefs.h
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15123 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15124 if ${ac_cv_c_bigendian+:} false; then :
15125 $as_echo_n "(cached) " >&6
15127 ac_cv_c_bigendian=unknown
15128 # See if we're dealing with a universal compiler.
15129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15130 /* end confdefs.h. */
15131 #ifndef __APPLE_CC__
15132 not a universal capable compiler
15137 if ac_fn_c_try_compile "$LINENO"; then :
15139 # Check for potential -arch flags. It is not universal unless
15140 # there are at least two -arch flags with different values.
15143 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15144 if test -n "$ac_prev"; then
15146 i?86 | x86_64 | ppc | ppc64)
15147 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15150 ac_cv_c_bigendian=universal
15156 elif test "x$ac_word" = "x-arch"; then
15161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15162 if test $ac_cv_c_bigendian = unknown; then
15163 # See if sys/param.h defines the BYTE_ORDER macro.
15164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15165 /* end confdefs.h. */
15166 #include <sys/types.h>
15167 #include <sys/param.h>
15172 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15173 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15175 bogus endian macros
15182 if ac_fn_c_try_compile "$LINENO"; then :
15183 # It does; now see whether it defined to BIG_ENDIAN or not.
15184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15185 /* end confdefs.h. */
15186 #include <sys/types.h>
15187 #include <sys/param.h>
15192 #if BYTE_ORDER != BIG_ENDIAN
15200 if ac_fn_c_try_compile "$LINENO"; then :
15201 ac_cv_c_bigendian=yes
15203 ac_cv_c_bigendian=no
15205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15209 if test $ac_cv_c_bigendian = unknown; then
15210 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15212 /* end confdefs.h. */
15213 #include <limits.h>
15218 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15219 bogus endian macros
15226 if ac_fn_c_try_compile "$LINENO"; then :
15227 # It does; now see whether it defined to _BIG_ENDIAN or not.
15228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229 /* end confdefs.h. */
15230 #include <limits.h>
15235 #ifndef _BIG_ENDIAN
15243 if ac_fn_c_try_compile "$LINENO"; then :
15244 ac_cv_c_bigendian=yes
15246 ac_cv_c_bigendian=no
15248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15252 if test $ac_cv_c_bigendian = unknown; then
15253 # Compile a test program.
15254 if test "$cross_compiling" = yes; then :
15255 # Try to guess by grepping values from an object file.
15256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15257 /* end confdefs.h. */
15258 short int ascii_mm[] =
15259 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15260 short int ascii_ii[] =
15261 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15262 int use_ascii (int i) {
15263 return ascii_mm[i] + ascii_ii[i];
15265 short int ebcdic_ii[] =
15266 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15267 short int ebcdic_mm[] =
15268 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15269 int use_ebcdic (int i) {
15270 return ebcdic_mm[i] + ebcdic_ii[i];
15277 return use_ascii (foo) == use_ebcdic (foo);
15282 if ac_fn_c_try_compile "$LINENO"; then :
15283 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15284 ac_cv_c_bigendian=yes
15286 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15287 if test "$ac_cv_c_bigendian" = unknown; then
15288 ac_cv_c_bigendian=no
15290 # finding both strings is unlikely to happen, but who knows?
15291 ac_cv_c_bigendian=unknown
15295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15298 /* end confdefs.h. */
15299 $ac_includes_default
15304 /* Are we little or big endian? From Harbison&Steele. */
15308 char c[sizeof (long int)];
15311 return u.c[sizeof (long int) - 1] == 1;
15317 if ac_fn_c_try_run "$LINENO"; then :
15318 ac_cv_c_bigendian=no
15320 ac_cv_c_bigendian=yes
15322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15323 conftest.$ac_objext conftest.beam conftest.$ac_ext
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15329 $as_echo "$ac_cv_c_bigendian" >&6; }
15330 case $ac_cv_c_bigendian in #(
15332 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15338 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15342 as_fn_error $? "unknown endianness
15343 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15346 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15347 if test "x$ac_cv_type_off_t" = xyes; then :
15351 cat >>confdefs.h <<_ACEOF
15352 #define off_t long int
15357 # Check whether --enable-largefile was given.
15358 if test "${enable_largefile+set}" = set; then :
15359 enableval=$enable_largefile;
15362 if test "$enable_largefile" != no; then
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15365 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15366 if ${ac_cv_sys_largefile_CC+:} false; then :
15367 $as_echo_n "(cached) " >&6
15369 ac_cv_sys_largefile_CC=no
15370 if test "$GCC" != yes; then
15373 # IRIX 6.2 and later do not support large files by default,
15374 # so use the C compiler's -n32 option if that helps.
15375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15376 /* end confdefs.h. */
15377 #include <sys/types.h>
15378 /* Check that off_t can represent 2**63 - 1 correctly.
15379 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15380 since some C++ compilers masquerading as C compilers
15381 incorrectly reject 9223372036854775807. */
15382 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
15383 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15384 && LARGE_OFF_T % 2147483647 == 1)
15394 if ac_fn_c_try_compile "$LINENO"; then :
15397 rm -f core conftest.err conftest.$ac_objext
15399 if ac_fn_c_try_compile "$LINENO"; then :
15400 ac_cv_sys_largefile_CC=' -n32'; break
15402 rm -f core conftest.err conftest.$ac_objext
15406 rm -f conftest.$ac_ext
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15410 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15411 if test "$ac_cv_sys_largefile_CC" != no; then
15412 CC=$CC$ac_cv_sys_largefile_CC
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15416 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15417 if ${ac_cv_sys_file_offset_bits+:} false; then :
15418 $as_echo_n "(cached) " >&6
15421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15422 /* end confdefs.h. */
15423 #include <sys/types.h>
15424 /* Check that off_t can represent 2**63 - 1 correctly.
15425 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15426 since some C++ compilers masquerading as C compilers
15427 incorrectly reject 9223372036854775807. */
15428 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
15429 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15430 && LARGE_OFF_T % 2147483647 == 1)
15440 if ac_fn_c_try_compile "$LINENO"; then :
15441 ac_cv_sys_file_offset_bits=no; break
15443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15445 /* end confdefs.h. */
15446 #define _FILE_OFFSET_BITS 64
15447 #include <sys/types.h>
15448 /* Check that off_t can represent 2**63 - 1 correctly.
15449 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15450 since some C++ compilers masquerading as C compilers
15451 incorrectly reject 9223372036854775807. */
15452 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
15453 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15454 && LARGE_OFF_T % 2147483647 == 1)
15464 if ac_fn_c_try_compile "$LINENO"; then :
15465 ac_cv_sys_file_offset_bits=64; break
15467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15468 ac_cv_sys_file_offset_bits=unknown
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15473 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15474 case $ac_cv_sys_file_offset_bits in #(
15477 cat >>confdefs.h <<_ACEOF
15478 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15483 if test $ac_cv_sys_file_offset_bits = unknown; then
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15485 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15486 if ${ac_cv_sys_large_files+:} false; then :
15487 $as_echo_n "(cached) " >&6
15490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15491 /* end confdefs.h. */
15492 #include <sys/types.h>
15493 /* Check that off_t can represent 2**63 - 1 correctly.
15494 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15495 since some C++ compilers masquerading as C compilers
15496 incorrectly reject 9223372036854775807. */
15497 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
15498 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15499 && LARGE_OFF_T % 2147483647 == 1)
15509 if ac_fn_c_try_compile "$LINENO"; then :
15510 ac_cv_sys_large_files=no; break
15512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15514 /* end confdefs.h. */
15515 #define _LARGE_FILES 1
15516 #include <sys/types.h>
15517 /* Check that off_t can represent 2**63 - 1 correctly.
15518 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15519 since some C++ compilers masquerading as C compilers
15520 incorrectly reject 9223372036854775807. */
15521 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
15522 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15523 && LARGE_OFF_T % 2147483647 == 1)
15533 if ac_fn_c_try_compile "$LINENO"; then :
15534 ac_cv_sys_large_files=1; break
15536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15537 ac_cv_sys_large_files=unknown
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15542 $as_echo "$ac_cv_sys_large_files" >&6; }
15543 case $ac_cv_sys_large_files in #(
15546 cat >>confdefs.h <<_ACEOF
15547 #define _LARGE_FILES $ac_cv_sys_large_files
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15558 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15559 if ${ac_cv_sys_largefile_source+:} false; then :
15560 $as_echo_n "(cached) " >&6
15563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15564 /* end confdefs.h. */
15565 #include <sys/types.h> /* for off_t */
15570 int (*fp) (FILE *, off_t, int) = fseeko;
15571 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15576 if ac_fn_c_try_link "$LINENO"; then :
15577 ac_cv_sys_largefile_source=no; break
15579 rm -f core conftest.err conftest.$ac_objext \
15580 conftest$ac_exeext conftest.$ac_ext
15581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15582 /* end confdefs.h. */
15583 #define _LARGEFILE_SOURCE 1
15584 #include <sys/types.h> /* for off_t */
15589 int (*fp) (FILE *, off_t, int) = fseeko;
15590 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15595 if ac_fn_c_try_link "$LINENO"; then :
15596 ac_cv_sys_largefile_source=1; break
15598 rm -f core conftest.err conftest.$ac_objext \
15599 conftest$ac_exeext conftest.$ac_ext
15600 ac_cv_sys_largefile_source=unknown
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15605 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15606 case $ac_cv_sys_largefile_source in #(
15609 cat >>confdefs.h <<_ACEOF
15610 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15616 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15617 # in glibc 2.1.3, but that breaks too many other things.
15618 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15619 if test $ac_cv_sys_largefile_source != unknown; then
15621 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15625 if test $ac_cv_c_compiler_gnu = yes; then
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
15627 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
15628 if ${ac_cv_prog_gcc_traditional+:} false; then :
15629 $as_echo_n "(cached) " >&6
15631 ac_pattern="Autoconf.*'x'"
15632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15633 /* end confdefs.h. */
15637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15638 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
15639 ac_cv_prog_gcc_traditional=yes
15641 ac_cv_prog_gcc_traditional=no
15646 if test $ac_cv_prog_gcc_traditional = no; then
15647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15648 /* end confdefs.h. */
15649 #include <termio.h>
15652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15653 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
15654 ac_cv_prog_gcc_traditional=yes
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
15661 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
15662 if test $ac_cv_prog_gcc_traditional = yes; then
15663 CC="$CC -traditional"
15667 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
15668 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
15674 cat >>confdefs.h <<_ACEOF
15675 #define HAVE_DECL_STRERROR_R $ac_have_decl
15678 for ac_func in strerror_r
15680 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
15681 if test "x$ac_cv_func_strerror_r" = xyes; then :
15682 cat >>confdefs.h <<_ACEOF
15683 #define HAVE_STRERROR_R 1
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
15690 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
15691 if ${ac_cv_func_strerror_r_char_p+:} false; then :
15692 $as_echo_n "(cached) " >&6
15695 ac_cv_func_strerror_r_char_p=no
15696 if test $ac_cv_have_decl_strerror_r = yes; then
15697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15698 /* end confdefs.h. */
15699 $ac_includes_default
15705 char x = *strerror_r (0, buf, sizeof buf);
15706 char *p = strerror_r (0, buf, sizeof buf);
15713 if ac_fn_c_try_compile "$LINENO"; then :
15714 ac_cv_func_strerror_r_char_p=yes
15716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15718 # strerror_r is not declared. Choose between
15719 # systems that have relatively inaccessible declarations for the
15720 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
15721 # former has a strerror_r that returns char*, while the latter
15722 # has a strerror_r that returns `int'.
15723 # This test should segfault on the DEC system.
15724 if test "$cross_compiling" = yes; then :
15727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15728 /* end confdefs.h. */
15729 $ac_includes_default
15730 extern char *strerror_r ();
15735 char x = *strerror_r (0, buf, sizeof buf);
15736 return ! isalpha (x);
15741 if ac_fn_c_try_run "$LINENO"; then :
15742 ac_cv_func_strerror_r_char_p=yes
15744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15745 conftest.$ac_objext conftest.beam conftest.$ac_ext
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
15752 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
15753 if test $ac_cv_func_strerror_r_char_p = yes; then
15755 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15763 $as_echo_n "checking whether NLS is requested... " >&6; }
15764 # Check whether --enable-nls was given.
15765 if test "${enable_nls+set}" = set; then :
15766 enableval=$enable_nls; USE_NLS=$enableval
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15772 $as_echo "$USE_NLS" >&6; }
15777 GETTEXT_MACRO_VERSION=0.18
15782 # Prepare PATH_SEPARATOR.
15783 # The user is always right.
15784 if test "${PATH_SEPARATOR+set}" != set; then
15785 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15786 # contains only /bin. Note that ksh looks also at the FPATH variable,
15787 # so we have to set that as well for the test.
15789 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15790 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15791 || PATH_SEPARATOR=';'
15795 # Find out how to test for executable files. Don't use a zero-byte file,
15796 # as systems may use methods other than mode bits to determine executability.
15797 cat >conf$$.file <<_ASEOF
15801 chmod +x conf$$.file
15802 if test -x conf$$.file >/dev/null 2>&1; then
15803 ac_executable_p="test -x"
15805 ac_executable_p="test -f"
15809 # Extract the first word of "msgfmt", so it can be a program name with args.
15810 set dummy msgfmt; ac_word=$2
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15812 $as_echo_n "checking for $ac_word... " >&6; }
15813 if ${ac_cv_path_MSGFMT+:} false; then :
15814 $as_echo_n "(cached) " >&6
15818 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15821 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15822 for ac_dir in $PATH; do
15824 test -z "$ac_dir" && ac_dir=.
15825 for ac_exec_ext in '' $ac_executable_extensions; do
15826 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15827 echo "$as_me: trying $ac_dir/$ac_word..." >&5
15828 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
15829 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15830 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15837 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15841 MSGFMT="$ac_cv_path_MSGFMT"
15842 if test "$MSGFMT" != ":"; then
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15844 $as_echo "$MSGFMT" >&6; }
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15847 $as_echo "no" >&6; }
15850 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15851 set dummy gmsgfmt; ac_word=$2
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15853 $as_echo_n "checking for $ac_word... " >&6; }
15854 if ${ac_cv_path_GMSGFMT+:} false; then :
15855 $as_echo_n "(cached) " >&6
15859 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15863 for as_dir in $PATH
15866 test -z "$as_dir" && as_dir=.
15867 for ac_exec_ext in '' $ac_executable_extensions; do
15868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15869 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15877 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15881 GMSGFMT=$ac_cv_path_GMSGFMT
15882 if test -n "$GMSGFMT"; then
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15884 $as_echo "$GMSGFMT" >&6; }
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15887 $as_echo "no" >&6; }
15892 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15893 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
15894 *) MSGFMT_015=$MSGFMT ;;
15897 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15898 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
15899 *) GMSGFMT_015=$GMSGFMT ;;
15904 # Prepare PATH_SEPARATOR.
15905 # The user is always right.
15906 if test "${PATH_SEPARATOR+set}" != set; then
15907 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15908 # contains only /bin. Note that ksh looks also at the FPATH variable,
15909 # so we have to set that as well for the test.
15911 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15912 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15913 || PATH_SEPARATOR=';'
15917 # Find out how to test for executable files. Don't use a zero-byte file,
15918 # as systems may use methods other than mode bits to determine executability.
15919 cat >conf$$.file <<_ASEOF
15923 chmod +x conf$$.file
15924 if test -x conf$$.file >/dev/null 2>&1; then
15925 ac_executable_p="test -x"
15927 ac_executable_p="test -f"
15931 # Extract the first word of "xgettext", so it can be a program name with args.
15932 set dummy xgettext; ac_word=$2
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15934 $as_echo_n "checking for $ac_word... " >&6; }
15935 if ${ac_cv_path_XGETTEXT+:} false; then :
15936 $as_echo_n "(cached) " >&6
15938 case "$XGETTEXT" in
15940 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15943 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15944 for ac_dir in $PATH; do
15946 test -z "$ac_dir" && ac_dir=.
15947 for ac_exec_ext in '' $ac_executable_extensions; do
15948 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15949 echo "$as_me: trying $ac_dir/$ac_word..." >&5
15950 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
15951 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15952 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15959 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15963 XGETTEXT="$ac_cv_path_XGETTEXT"
15964 if test "$XGETTEXT" != ":"; then
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15966 $as_echo "$XGETTEXT" >&6; }
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15969 $as_echo "no" >&6; }
15974 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15975 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
15976 *) XGETTEXT_015=$XGETTEXT ;;
15981 # Prepare PATH_SEPARATOR.
15982 # The user is always right.
15983 if test "${PATH_SEPARATOR+set}" != set; then
15984 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15985 # contains only /bin. Note that ksh looks also at the FPATH variable,
15986 # so we have to set that as well for the test.
15988 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15989 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15990 || PATH_SEPARATOR=';'
15994 # Find out how to test for executable files. Don't use a zero-byte file,
15995 # as systems may use methods other than mode bits to determine executability.
15996 cat >conf$$.file <<_ASEOF
16000 chmod +x conf$$.file
16001 if test -x conf$$.file >/dev/null 2>&1; then
16002 ac_executable_p="test -x"
16004 ac_executable_p="test -f"
16008 # Extract the first word of "msgmerge", so it can be a program name with args.
16009 set dummy msgmerge; ac_word=$2
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16011 $as_echo_n "checking for $ac_word... " >&6; }
16012 if ${ac_cv_path_MSGMERGE+:} false; then :
16013 $as_echo_n "(cached) " >&6
16015 case "$MSGMERGE" in
16017 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16020 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16021 for ac_dir in $PATH; do
16023 test -z "$ac_dir" && ac_dir=.
16024 for ac_exec_ext in '' $ac_executable_extensions; do
16025 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16026 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16027 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16028 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16035 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16039 MSGMERGE="$ac_cv_path_MSGMERGE"
16040 if test "$MSGMERGE" != ":"; then
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16042 $as_echo "$MSGMERGE" >&6; }
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16045 $as_echo "no" >&6; }
16049 test -n "$localedir" || localedir='${datadir}/locale'
16052 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
16055 ac_config_commands="$ac_config_commands po-directories"
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16083 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16084 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
16085 $as_echo_n "(cached) " >&6
16087 gt_save_LIBS="$LIBS"
16088 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
16089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16090 /* end confdefs.h. */
16091 #include <CoreFoundation/CFPreferences.h>
16095 CFPreferencesCopyAppValue(NULL, NULL)
16100 if ac_fn_c_try_link "$LINENO"; then :
16101 gt_cv_func_CFPreferencesCopyAppValue=yes
16103 gt_cv_func_CFPreferencesCopyAppValue=no
16105 rm -f core conftest.err conftest.$ac_objext \
16106 conftest$ac_exeext conftest.$ac_ext
16107 LIBS="$gt_save_LIBS"
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16110 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16111 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16113 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
16117 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
16118 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
16119 $as_echo_n "(cached) " >&6
16121 gt_save_LIBS="$LIBS"
16122 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
16123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16124 /* end confdefs.h. */
16125 #include <CoreFoundation/CFLocale.h>
16129 CFLocaleCopyCurrent();
16134 if ac_fn_c_try_link "$LINENO"; then :
16135 gt_cv_func_CFLocaleCopyCurrent=yes
16137 gt_cv_func_CFLocaleCopyCurrent=no
16139 rm -f core conftest.err conftest.$ac_objext \
16140 conftest$ac_exeext conftest.$ac_ext
16141 LIBS="$gt_save_LIBS"
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16144 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16145 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16147 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
16151 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16152 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16164 case " $gt_needs " in
16165 *" need-formatstring-macros "*) gt_api_version=3 ;;
16166 *" need-ngettext "*) gt_api_version=2 ;;
16167 *) gt_api_version=1 ;;
16169 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
16170 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
16172 if test "$USE_NLS" = "yes"; then
16173 gt_use_preinstalled_gnugettext=no
16176 if test $gt_api_version -ge 3; then
16177 gt_revision_test_code='
16178 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
16179 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
16181 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
16184 gt_revision_test_code=
16186 if test $gt_api_version -ge 2; then
16187 gt_expression_test_code=' + * ngettext ("", "", 0)'
16189 gt_expression_test_code=
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
16193 $as_echo_n "checking for GNU gettext in libc... " >&6; }
16194 if eval \${$gt_func_gnugettext_libc+:} false; then :
16195 $as_echo_n "(cached) " >&6
16197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16198 /* end confdefs.h. */
16200 #include <libintl.h>
16201 $gt_revision_test_code
16202 extern int _nl_msg_cat_cntr;
16203 extern int *_nl_domain_bindings;
16209 bindtextdomain ("", "");
16210 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
16216 if ac_fn_c_try_link "$LINENO"; then :
16217 eval "$gt_func_gnugettext_libc=yes"
16219 eval "$gt_func_gnugettext_libc=no"
16221 rm -f core conftest.err conftest.$ac_objext \
16222 conftest$ac_exeext conftest.$ac_ext
16224 eval ac_res=\$$gt_func_gnugettext_libc
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16226 $as_echo "$ac_res" >&6; }
16228 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
16234 am_save_CPPFLAGS="$CPPFLAGS"
16236 for element in $INCICONV; do
16238 for x in $CPPFLAGS; do
16240 acl_save_prefix="$prefix"
16241 prefix="$acl_final_prefix"
16242 acl_save_exec_prefix="$exec_prefix"
16243 exec_prefix="$acl_final_exec_prefix"
16245 exec_prefix="$acl_save_exec_prefix"
16246 prefix="$acl_save_prefix"
16248 if test "X$x" = "X$element"; then
16253 if test -z "$haveit"; then
16254 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
16260 $as_echo_n "checking for iconv... " >&6; }
16261 if ${am_cv_func_iconv+:} false; then :
16262 $as_echo_n "(cached) " >&6
16265 am_cv_func_iconv="no, consider installing GNU libiconv"
16267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16268 /* end confdefs.h. */
16270 #include <stdlib.h>
16276 iconv_t cd = iconv_open("","");
16277 iconv(cd,NULL,NULL,NULL,NULL);
16283 if ac_fn_c_try_link "$LINENO"; then :
16284 am_cv_func_iconv=yes
16286 rm -f core conftest.err conftest.$ac_objext \
16287 conftest$ac_exeext conftest.$ac_ext
16288 if test "$am_cv_func_iconv" != yes; then
16289 am_save_LIBS="$LIBS"
16290 LIBS="$LIBS $LIBICONV"
16291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16292 /* end confdefs.h. */
16294 #include <stdlib.h>
16300 iconv_t cd = iconv_open("","");
16301 iconv(cd,NULL,NULL,NULL,NULL);
16307 if ac_fn_c_try_link "$LINENO"; then :
16308 am_cv_lib_iconv=yes
16309 am_cv_func_iconv=yes
16311 rm -f core conftest.err conftest.$ac_objext \
16312 conftest$ac_exeext conftest.$ac_ext
16313 LIBS="$am_save_LIBS"
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
16318 $as_echo "$am_cv_func_iconv" >&6; }
16319 if test "$am_cv_func_iconv" = yes; then
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
16321 $as_echo_n "checking for working iconv... " >&6; }
16322 if ${am_cv_func_iconv_works+:} false; then :
16323 $as_echo_n "(cached) " >&6
16326 am_save_LIBS="$LIBS"
16327 if test $am_cv_lib_iconv = yes; then
16328 LIBS="$LIBS $LIBICONV"
16330 if test "$cross_compiling" = yes; then :
16333 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
16334 *) am_cv_func_iconv_works="guessing yes" ;;
16338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16339 /* end confdefs.h. */
16342 #include <string.h>
16346 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
16349 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
16350 if (cd_utf8_to_88591 != (iconv_t)(-1))
16352 static const char input[] = "\342\202\254"; /* EURO SIGN */
16354 const char *inptr = input;
16355 size_t inbytesleft = strlen (input);
16356 char *outptr = buf;
16357 size_t outbytesleft = sizeof (buf);
16358 size_t res = iconv (cd_utf8_to_88591,
16359 (char **) &inptr, &inbytesleft,
16360 &outptr, &outbytesleft);
16363 iconv_close (cd_utf8_to_88591);
16366 /* Test against Solaris 10 bug: Failures are not distinguishable from
16367 successful returns. */
16369 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
16370 if (cd_ascii_to_88591 != (iconv_t)(-1))
16372 static const char input[] = "\263";
16374 const char *inptr = input;
16375 size_t inbytesleft = strlen (input);
16376 char *outptr = buf;
16377 size_t outbytesleft = sizeof (buf);
16378 size_t res = iconv (cd_ascii_to_88591,
16379 (char **) &inptr, &inbytesleft,
16380 &outptr, &outbytesleft);
16383 iconv_close (cd_ascii_to_88591);
16386 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
16388 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
16389 if (cd_88591_to_utf8 != (iconv_t)(-1))
16391 static const char input[] = "\304";
16392 static char buf[2] = { (char)0xDE, (char)0xAD };
16393 const char *inptr = input;
16394 size_t inbytesleft = 1;
16395 char *outptr = buf;
16396 size_t outbytesleft = 1;
16397 size_t res = iconv (cd_88591_to_utf8,
16398 (char **) &inptr, &inbytesleft,
16399 &outptr, &outbytesleft);
16400 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
16402 iconv_close (cd_88591_to_utf8);
16405 #if 0 /* This bug could be worked around by the caller. */
16406 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
16408 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
16409 if (cd_88591_to_utf8 != (iconv_t)(-1))
16411 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
16413 const char *inptr = input;
16414 size_t inbytesleft = strlen (input);
16415 char *outptr = buf;
16416 size_t outbytesleft = sizeof (buf);
16417 size_t res = iconv (cd_88591_to_utf8,
16418 (char **) &inptr, &inbytesleft,
16419 &outptr, &outbytesleft);
16422 iconv_close (cd_88591_to_utf8);
16426 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
16428 if (/* Try standardized names. */
16429 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
16430 /* Try IRIX, OSF/1 names. */
16431 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
16432 /* Try AIX names. */
16433 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
16434 /* Try HP-UX names. */
16435 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
16440 if ac_fn_c_try_run "$LINENO"; then :
16441 am_cv_func_iconv_works=yes
16443 am_cv_func_iconv_works=no
16445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16446 conftest.$ac_objext conftest.beam conftest.$ac_ext
16449 LIBS="$am_save_LIBS"
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
16453 $as_echo "$am_cv_func_iconv_works" >&6; }
16454 case "$am_cv_func_iconv_works" in
16455 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
16456 *) am_func_iconv=yes ;;
16459 am_func_iconv=no am_cv_lib_iconv=no
16461 if test "$am_func_iconv" = yes; then
16463 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
16466 if test "$am_cv_lib_iconv" = yes; then
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16468 $as_echo_n "checking how to link with libiconv... " >&6; }
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16470 $as_echo "$LIBICONV" >&6; }
16472 CPPFLAGS="$am_save_CPPFLAGS"
16489 acl_save_prefix="$prefix"
16490 prefix="$acl_final_prefix"
16491 acl_save_exec_prefix="$exec_prefix"
16492 exec_prefix="$acl_final_exec_prefix"
16494 eval additional_includedir=\"$includedir\"
16495 eval additional_libdir=\"$libdir\"
16497 exec_prefix="$acl_save_exec_prefix"
16498 prefix="$acl_save_prefix"
16501 # Check whether --with-libintl-prefix was given.
16502 if test "${with_libintl_prefix+set}" = set; then :
16503 withval=$with_libintl_prefix;
16504 if test "X$withval" = "Xno"; then
16507 if test "X$withval" = "X"; then
16509 acl_save_prefix="$prefix"
16510 prefix="$acl_final_prefix"
16511 acl_save_exec_prefix="$exec_prefix"
16512 exec_prefix="$acl_final_exec_prefix"
16514 eval additional_includedir=\"$includedir\"
16515 eval additional_libdir=\"$libdir\"
16517 exec_prefix="$acl_save_exec_prefix"
16518 prefix="$acl_save_prefix"
16521 additional_includedir="$withval/include"
16522 additional_libdir="$withval/$acl_libdirstem"
16523 if test "$acl_libdirstem2" != "$acl_libdirstem" \
16524 && ! test -d "$withval/$acl_libdirstem"; then
16525 additional_libdir="$withval/$acl_libdirstem2"
16539 names_already_handled=
16540 names_next_round='intl '
16541 while test -n "$names_next_round"; do
16542 names_this_round="$names_next_round"
16544 for name in $names_this_round; do
16546 for n in $names_already_handled; do
16547 if test "$n" = "$name"; then
16548 already_handled=yes
16552 if test -z "$already_handled"; then
16553 names_already_handled="$names_already_handled $name"
16554 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
16555 eval value=\"\$HAVE_LIB$uppername\"
16556 if test -n "$value"; then
16557 if test "$value" = yes; then
16558 eval value=\"\$LIB$uppername\"
16559 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
16560 eval value=\"\$LTLIB$uppername\"
16561 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
16570 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
16571 if test -n "$acl_shlibext"; then
16572 shrext=".$acl_shlibext" # typically: shrext=.so
16576 if test $use_additional = yes; then
16577 dir="$additional_libdir"
16578 if test -n "$acl_shlibext"; then
16579 if test -f "$dir/$libname$shrext"; then
16581 found_so="$dir/$libname$shrext"
16583 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16584 ver=`(cd "$dir" && \
16585 for f in "$libname$shrext".*; do echo "$f"; done \
16586 | sed -e "s,^$libname$shrext\\\\.,," \
16587 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16588 | sed 1q ) 2>/dev/null`
16589 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16591 found_so="$dir/$libname$shrext.$ver"
16594 eval library_names=\"$acl_library_names_spec\"
16595 for f in $library_names; do
16596 if test -f "$dir/$f"; then
16605 if test "X$found_dir" = "X"; then
16606 if test -f "$dir/$libname.$acl_libext"; then
16608 found_a="$dir/$libname.$acl_libext"
16611 if test "X$found_dir" != "X"; then
16612 if test -f "$dir/$libname.la"; then
16613 found_la="$dir/$libname.la"
16617 if test "X$found_dir" = "X"; then
16618 for x in $LDFLAGS $LTLIBINTL; do
16620 acl_save_prefix="$prefix"
16621 prefix="$acl_final_prefix"
16622 acl_save_exec_prefix="$exec_prefix"
16623 exec_prefix="$acl_final_exec_prefix"
16625 exec_prefix="$acl_save_exec_prefix"
16626 prefix="$acl_save_prefix"
16630 dir=`echo "X$x" | sed -e 's/^X-L//'`
16631 if test -n "$acl_shlibext"; then
16632 if test -f "$dir/$libname$shrext"; then
16634 found_so="$dir/$libname$shrext"
16636 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16637 ver=`(cd "$dir" && \
16638 for f in "$libname$shrext".*; do echo "$f"; done \
16639 | sed -e "s,^$libname$shrext\\\\.,," \
16640 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16641 | sed 1q ) 2>/dev/null`
16642 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16644 found_so="$dir/$libname$shrext.$ver"
16647 eval library_names=\"$acl_library_names_spec\"
16648 for f in $library_names; do
16649 if test -f "$dir/$f"; then
16658 if test "X$found_dir" = "X"; then
16659 if test -f "$dir/$libname.$acl_libext"; then
16661 found_a="$dir/$libname.$acl_libext"
16664 if test "X$found_dir" != "X"; then
16665 if test -f "$dir/$libname.la"; then
16666 found_la="$dir/$libname.la"
16671 if test "X$found_dir" != "X"; then
16676 if test "X$found_dir" != "X"; then
16677 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
16678 if test "X$found_so" != "X"; then
16679 if test "$enable_rpath" = no \
16680 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16681 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16682 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16685 for x in $ltrpathdirs; do
16686 if test "X$x" = "X$found_dir"; then
16691 if test -z "$haveit"; then
16692 ltrpathdirs="$ltrpathdirs $found_dir"
16694 if test "$acl_hardcode_direct" = yes; then
16695 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16697 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16698 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16700 for x in $rpathdirs; do
16701 if test "X$x" = "X$found_dir"; then
16706 if test -z "$haveit"; then
16707 rpathdirs="$rpathdirs $found_dir"
16711 for x in $LDFLAGS $LIBINTL; do
16713 acl_save_prefix="$prefix"
16714 prefix="$acl_final_prefix"
16715 acl_save_exec_prefix="$exec_prefix"
16716 exec_prefix="$acl_final_exec_prefix"
16718 exec_prefix="$acl_save_exec_prefix"
16719 prefix="$acl_save_prefix"
16721 if test "X$x" = "X-L$found_dir"; then
16726 if test -z "$haveit"; then
16727 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
16729 if test "$acl_hardcode_minus_L" != no; then
16730 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16732 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16738 if test "X$found_a" != "X"; then
16739 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
16741 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
16744 additional_includedir=
16745 case "$found_dir" in
16746 */$acl_libdirstem | */$acl_libdirstem/)
16747 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16748 if test "$name" = 'intl'; then
16749 LIBINTL_PREFIX="$basedir"
16751 additional_includedir="$basedir/include"
16753 */$acl_libdirstem2 | */$acl_libdirstem2/)
16754 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16755 if test "$name" = 'intl'; then
16756 LIBINTL_PREFIX="$basedir"
16758 additional_includedir="$basedir/include"
16761 if test "X$additional_includedir" != "X"; then
16762 if test "X$additional_includedir" != "X/usr/include"; then
16764 if test "X$additional_includedir" = "X/usr/local/include"; then
16765 if test -n "$GCC"; then
16767 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16771 if test -z "$haveit"; then
16772 for x in $CPPFLAGS $INCINTL; do
16774 acl_save_prefix="$prefix"
16775 prefix="$acl_final_prefix"
16776 acl_save_exec_prefix="$exec_prefix"
16777 exec_prefix="$acl_final_exec_prefix"
16779 exec_prefix="$acl_save_exec_prefix"
16780 prefix="$acl_save_prefix"
16782 if test "X$x" = "X-I$additional_includedir"; then
16787 if test -z "$haveit"; then
16788 if test -d "$additional_includedir"; then
16789 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
16795 if test -n "$found_la"; then
16796 save_libdir="$libdir"
16797 case "$found_la" in
16798 */* | *\\*) . "$found_la" ;;
16799 *) . "./$found_la" ;;
16801 libdir="$save_libdir"
16802 for dep in $dependency_libs; do
16805 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16806 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16807 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16809 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16810 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16811 if test -n "$GCC"; then
16813 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16817 if test -z "$haveit"; then
16819 for x in $LDFLAGS $LIBINTL; do
16821 acl_save_prefix="$prefix"
16822 prefix="$acl_final_prefix"
16823 acl_save_exec_prefix="$exec_prefix"
16824 exec_prefix="$acl_final_exec_prefix"
16826 exec_prefix="$acl_save_exec_prefix"
16827 prefix="$acl_save_prefix"
16829 if test "X$x" = "X-L$additional_libdir"; then
16834 if test -z "$haveit"; then
16835 if test -d "$additional_libdir"; then
16836 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
16840 for x in $LDFLAGS $LTLIBINTL; do
16842 acl_save_prefix="$prefix"
16843 prefix="$acl_final_prefix"
16844 acl_save_exec_prefix="$exec_prefix"
16845 exec_prefix="$acl_final_exec_prefix"
16847 exec_prefix="$acl_save_exec_prefix"
16848 prefix="$acl_save_prefix"
16850 if test "X$x" = "X-L$additional_libdir"; then
16855 if test -z "$haveit"; then
16856 if test -d "$additional_libdir"; then
16857 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
16864 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16865 if test "$enable_rpath" != no; then
16867 for x in $rpathdirs; do
16868 if test "X$x" = "X$dir"; then
16873 if test -z "$haveit"; then
16874 rpathdirs="$rpathdirs $dir"
16877 for x in $ltrpathdirs; do
16878 if test "X$x" = "X$dir"; then
16883 if test -z "$haveit"; then
16884 ltrpathdirs="$ltrpathdirs $dir"
16889 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16892 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16895 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
16896 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
16902 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16903 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
16909 if test "X$rpathdirs" != "X"; then
16910 if test -n "$acl_hardcode_libdir_separator"; then
16912 for found_dir in $rpathdirs; do
16913 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16915 acl_save_libdir="$libdir"
16917 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16918 libdir="$acl_save_libdir"
16919 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16921 for found_dir in $rpathdirs; do
16922 acl_save_libdir="$libdir"
16923 libdir="$found_dir"
16924 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16925 libdir="$acl_save_libdir"
16926 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16930 if test "X$ltrpathdirs" != "X"; then
16931 for found_dir in $ltrpathdirs; do
16932 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
16942 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
16943 if eval \${$gt_func_gnugettext_libintl+:} false; then :
16944 $as_echo_n "(cached) " >&6
16946 gt_save_CPPFLAGS="$CPPFLAGS"
16947 CPPFLAGS="$CPPFLAGS $INCINTL"
16948 gt_save_LIBS="$LIBS"
16949 LIBS="$LIBS $LIBINTL"
16950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16951 /* end confdefs.h. */
16953 #include <libintl.h>
16954 $gt_revision_test_code
16955 extern int _nl_msg_cat_cntr;
16960 const char *_nl_expand_alias (const char *);
16966 bindtextdomain ("", "");
16967 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16973 if ac_fn_c_try_link "$LINENO"; then :
16974 eval "$gt_func_gnugettext_libintl=yes"
16976 eval "$gt_func_gnugettext_libintl=no"
16978 rm -f core conftest.err conftest.$ac_objext \
16979 conftest$ac_exeext conftest.$ac_ext
16980 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
16981 LIBS="$LIBS $LIBICONV"
16982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16983 /* end confdefs.h. */
16985 #include <libintl.h>
16986 $gt_revision_test_code
16987 extern int _nl_msg_cat_cntr;
16992 const char *_nl_expand_alias (const char *);
16998 bindtextdomain ("", "");
16999 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17005 if ac_fn_c_try_link "$LINENO"; then :
17006 LIBINTL="$LIBINTL $LIBICONV"
17007 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17008 eval "$gt_func_gnugettext_libintl=yes"
17011 rm -f core conftest.err conftest.$ac_objext \
17012 conftest$ac_exeext conftest.$ac_ext
17014 CPPFLAGS="$gt_save_CPPFLAGS"
17015 LIBS="$gt_save_LIBS"
17017 eval ac_res=\$$gt_func_gnugettext_libintl
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17019 $as_echo "$ac_res" >&6; }
17022 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
17023 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
17024 && test "$PACKAGE" != gettext-runtime \
17025 && test "$PACKAGE" != gettext-tools; }; then
17026 gt_use_preinstalled_gnugettext=yes
17035 if test -n "$INTL_MACOSX_LIBS"; then
17036 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17037 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17038 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17039 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17043 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17044 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17046 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17054 $as_echo_n "checking whether to use NLS... " >&6; }
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17056 $as_echo "$USE_NLS" >&6; }
17057 if test "$USE_NLS" = "yes"; then
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17059 $as_echo_n "checking where the gettext function comes from... " >&6; }
17060 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17061 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
17062 gt_source="external libintl"
17067 gt_source="included intl directory"
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17070 $as_echo "$gt_source" >&6; }
17073 if test "$USE_NLS" = "yes"; then
17075 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17076 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17078 $as_echo_n "checking how to link with libintl... " >&6; }
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17080 $as_echo "$LIBINTL" >&6; }
17082 for element in $INCINTL; do
17084 for x in $CPPFLAGS; do
17086 acl_save_prefix="$prefix"
17087 prefix="$acl_final_prefix"
17088 acl_save_exec_prefix="$exec_prefix"
17089 exec_prefix="$acl_final_exec_prefix"
17091 exec_prefix="$acl_save_exec_prefix"
17092 prefix="$acl_save_prefix"
17094 if test "X$x" = "X$element"; then
17099 if test -z "$haveit"; then
17100 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17107 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17110 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17119 INTLLIBS="$LIBINTL"
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poptConfigFileToString in -lpopt" >&5
17131 $as_echo_n "checking for poptConfigFileToString in -lpopt... " >&6; }
17132 if ${ac_cv_lib_popt_poptConfigFileToString+:} false; then :
17133 $as_echo_n "(cached) " >&6
17135 ac_check_lib_save_LIBS=$LIBS
17136 LIBS="-lpopt $LIBS"
17137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17138 /* end confdefs.h. */
17140 /* Override any GCC internal prototype to avoid an error.
17141 Use char because int might match the return type of a GCC
17142 builtin and then its argument prototype would still apply. */
17146 char poptConfigFileToString ();
17150 return poptConfigFileToString ();
17155 if ac_fn_c_try_link "$LINENO"; then :
17156 ac_cv_lib_popt_poptConfigFileToString=yes
17158 ac_cv_lib_popt_poptConfigFileToString=no
17160 rm -f core conftest.err conftest.$ac_objext \
17161 conftest$ac_exeext conftest.$ac_ext
17162 LIBS=$ac_check_lib_save_LIBS
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_popt_poptConfigFileToString" >&5
17165 $as_echo "$ac_cv_lib_popt_poptConfigFileToString" >&6; }
17166 if test "x$ac_cv_lib_popt_poptConfigFileToString" = xyes; then :
17167 cat >>confdefs.h <<_ACEOF
17168 #define HAVE_LIBPOPT 1
17171 LIBS="-lpopt $LIBS"
17174 as_fn_error $? "You need popt 1.7 or newer to compile." "$LINENO" 5
17181 # Check whether --enable-fips was given.
17182 if test "${enable_fips+set}" = set; then :
17183 enableval=$enable_fips;
17186 if test "x$enable_fips" = "xyes"; then
17188 $as_echo "#define ENABLE_FIPS 1" >>confdefs.h
17191 if test "x$enable_static" = "xyes" -o "x$enable_static_cryptsetup" = "xyes" ; then
17192 as_fn_error $? "Static build is not compatible with FIPS." "$LINENO" 5
17198 # Check whether --enable-pwquality was given.
17199 if test "${enable_pwquality+set}" = set; then :
17200 enableval=$enable_pwquality;
17204 if test "x$enable_pwquality" = "xyes"; then
17206 $as_echo "#define ENABLE_PWQUALITY 1" >>confdefs.h
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pwquality >= 1.0.0" >&5
17211 $as_echo_n "checking for pwquality >= 1.0.0... " >&6; }
17213 if test -n "$PWQUALITY_CFLAGS"; then
17214 pkg_cv_PWQUALITY_CFLAGS="$PWQUALITY_CFLAGS"
17215 elif test -n "$PKG_CONFIG"; then
17216 if test -n "$PKG_CONFIG" && \
17217 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pwquality >= 1.0.0\""; } >&5
17218 ($PKG_CONFIG --exists --print-errors "pwquality >= 1.0.0") 2>&5
17220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17221 test $ac_status = 0; }; then
17222 pkg_cv_PWQUALITY_CFLAGS=`$PKG_CONFIG --cflags "pwquality >= 1.0.0" 2>/dev/null`
17223 test "x$?" != "x0" && pkg_failed=yes
17230 if test -n "$PWQUALITY_LIBS"; then
17231 pkg_cv_PWQUALITY_LIBS="$PWQUALITY_LIBS"
17232 elif test -n "$PKG_CONFIG"; then
17233 if test -n "$PKG_CONFIG" && \
17234 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pwquality >= 1.0.0\""; } >&5
17235 ($PKG_CONFIG --exists --print-errors "pwquality >= 1.0.0") 2>&5
17237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17238 test $ac_status = 0; }; then
17239 pkg_cv_PWQUALITY_LIBS=`$PKG_CONFIG --libs "pwquality >= 1.0.0" 2>/dev/null`
17240 test "x$?" != "x0" && pkg_failed=yes
17250 if test $pkg_failed = yes; then
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17252 $as_echo "no" >&6; }
17254 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17255 _pkg_short_errors_supported=yes
17257 _pkg_short_errors_supported=no
17259 if test $_pkg_short_errors_supported = yes; then
17260 PWQUALITY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pwquality >= 1.0.0" 2>&1`
17262 PWQUALITY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pwquality >= 1.0.0" 2>&1`
17264 # Put the nasty error message in config.log where it belongs
17265 echo "$PWQUALITY_PKG_ERRORS" >&5
17267 as_fn_error $? "You need pwquality library." "$LINENO" 5
17268 elif test $pkg_failed = untried; then
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17270 $as_echo "no" >&6; }
17271 as_fn_error $? "You need pwquality library." "$LINENO" 5
17273 PWQUALITY_CFLAGS=$pkg_cv_PWQUALITY_CFLAGS
17274 PWQUALITY_LIBS=$pkg_cv_PWQUALITY_LIBS
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17276 $as_echo "yes" >&6; }
17280 PWQUALITY_STATIC_LIBS="$PWQUALITY_LIBS -lcrack -lz"
17283 # Check whether --enable-passwdqc was given.
17284 if test "${enable_passwdqc+set}" = set; then :
17285 enableval=$enable_passwdqc;
17289 case "$enable_passwdqc" in
17290 ""|yes|no) use_passwdqc_config="" ;;
17291 /*) use_passwdqc_config="$enable_passwdqc"; enable_passwdqc=yes ;;
17292 *) as_fn_error $? "Unrecognized --enable-passwdqc parameter." "$LINENO" 5 ;;
17295 cat >>confdefs.h <<_ACEOF
17296 #define PASSWDQC_CONFIG_FILE "$use_passwdqc_config"
17300 if test "x$enable_passwdqc" = "xyes"; then
17302 $as_echo "#define ENABLE_PASSWDQC 1" >>confdefs.h
17305 PASSWDQC_LIBS="-lpasswdqc"
17308 if test "x$enable_pwquality$enable_passwdqc" = "xyesyes"; then
17309 as_fn_error $? "--enable-pwquality and --enable-passwdqc are mutually incompatible." "$LINENO" 5
17325 # Check whether --enable-static-cryptsetup was given.
17326 if test "${enable_static_cryptsetup+set}" = set; then :
17327 enableval=$enable_static_cryptsetup;
17330 if test "x$enable_static_cryptsetup" = "xyes"; then
17331 if test "x$enable_static" = "xno"; then
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Requested static cryptsetup build, enabling static library." >&5
17333 $as_echo "$as_me: WARNING: Requested static cryptsetup build, enabling static library." >&2;}
17337 if test "x$enable_static_cryptsetup" = "xyes"; then
17339 STATIC_TOOLS_FALSE='#'
17341 STATIC_TOOLS_TRUE='#'
17342 STATIC_TOOLS_FALSE=
17346 # Check whether --enable-cryptsetup was given.
17347 if test "${enable_cryptsetup+set}" = set; then :
17348 enableval=$enable_cryptsetup;
17350 enable_cryptsetup=yes
17353 if test "x$enable_cryptsetup" = "xyes"; then
17355 CRYPTSETUP_FALSE='#'
17357 CRYPTSETUP_TRUE='#'
17362 # Check whether --enable-veritysetup was given.
17363 if test "${enable_veritysetup+set}" = set; then :
17364 enableval=$enable_veritysetup;
17366 enable_veritysetup=yes
17369 if test "x$enable_veritysetup" = "xyes"; then
17371 VERITYSETUP_FALSE='#'
17373 VERITYSETUP_TRUE='#'
17378 # Check whether --enable-cryptsetup-reencrypt was given.
17379 if test "${enable_cryptsetup_reencrypt+set}" = set; then :
17380 enableval=$enable_cryptsetup_reencrypt;
17382 enable_cryptsetup_reencrypt=yes
17385 if test "x$enable_cryptsetup_reencrypt" = "xyes"; then
17387 REENCRYPT_FALSE='#'
17394 # Check whether --enable-integritysetup was given.
17395 if test "${enable_integritysetup+set}" = set; then :
17396 enableval=$enable_integritysetup;
17398 enable_integritysetup=yes
17401 if test "x$enable_integritysetup" = "xyes"; then
17402 INTEGRITYSETUP_TRUE=
17403 INTEGRITYSETUP_FALSE='#'
17405 INTEGRITYSETUP_TRUE='#'
17406 INTEGRITYSETUP_FALSE=
17410 # Check whether --enable-selinux was given.
17411 if test "${enable_selinux+set}" = set; then :
17412 enableval=$enable_selinux;
17418 # Check whether --enable-udev was given.
17419 if test "${enable_udev+set}" = set; then :
17420 enableval=$enable_udev;
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devmapper >= 1.02.03" >&5
17429 $as_echo_n "checking for devmapper >= 1.02.03... " >&6; }
17431 if test -n "$DEVMAPPER_CFLAGS"; then
17432 pkg_cv_DEVMAPPER_CFLAGS="$DEVMAPPER_CFLAGS"
17433 elif test -n "$PKG_CONFIG"; then
17434 if test -n "$PKG_CONFIG" && \
17435 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"devmapper >= 1.02.03\""; } >&5
17436 ($PKG_CONFIG --exists --print-errors "devmapper >= 1.02.03") 2>&5
17438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17439 test $ac_status = 0; }; then
17440 pkg_cv_DEVMAPPER_CFLAGS=`$PKG_CONFIG --cflags "devmapper >= 1.02.03" 2>/dev/null`
17441 test "x$?" != "x0" && pkg_failed=yes
17448 if test -n "$DEVMAPPER_LIBS"; then
17449 pkg_cv_DEVMAPPER_LIBS="$DEVMAPPER_LIBS"
17450 elif test -n "$PKG_CONFIG"; then
17451 if test -n "$PKG_CONFIG" && \
17452 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"devmapper >= 1.02.03\""; } >&5
17453 ($PKG_CONFIG --exists --print-errors "devmapper >= 1.02.03") 2>&5
17455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17456 test $ac_status = 0; }; then
17457 pkg_cv_DEVMAPPER_LIBS=`$PKG_CONFIG --libs "devmapper >= 1.02.03" 2>/dev/null`
17458 test "x$?" != "x0" && pkg_failed=yes
17468 if test $pkg_failed = yes; then
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17470 $as_echo "no" >&6; }
17472 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17473 _pkg_short_errors_supported=yes
17475 _pkg_short_errors_supported=no
17477 if test $_pkg_short_errors_supported = yes; then
17478 DEVMAPPER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "devmapper >= 1.02.03" 2>&1`
17480 DEVMAPPER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "devmapper >= 1.02.03" 2>&1`
17482 # Put the nasty error message in config.log where it belongs
17483 echo "$DEVMAPPER_PKG_ERRORS" >&5
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_name in -ldevmapper" >&5
17487 $as_echo_n "checking for dm_task_set_name in -ldevmapper... " >&6; }
17488 if ${ac_cv_lib_devmapper_dm_task_set_name+:} false; then :
17489 $as_echo_n "(cached) " >&6
17491 ac_check_lib_save_LIBS=$LIBS
17492 LIBS="-ldevmapper $LIBS"
17493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17494 /* end confdefs.h. */
17496 /* Override any GCC internal prototype to avoid an error.
17497 Use char because int might match the return type of a GCC
17498 builtin and then its argument prototype would still apply. */
17502 char dm_task_set_name ();
17506 return dm_task_set_name ();
17511 if ac_fn_c_try_link "$LINENO"; then :
17512 ac_cv_lib_devmapper_dm_task_set_name=yes
17514 ac_cv_lib_devmapper_dm_task_set_name=no
17516 rm -f core conftest.err conftest.$ac_objext \
17517 conftest$ac_exeext conftest.$ac_ext
17518 LIBS=$ac_check_lib_save_LIBS
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_name" >&5
17521 $as_echo "$ac_cv_lib_devmapper_dm_task_set_name" >&6; }
17522 if test "x$ac_cv_lib_devmapper_dm_task_set_name" = xyes; then :
17523 cat >>confdefs.h <<_ACEOF
17524 #define HAVE_LIBDEVMAPPER 1
17527 LIBS="-ldevmapper $LIBS"
17530 as_fn_error $? "You need the device-mapper library." "$LINENO" 5
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_message in -ldevmapper" >&5
17534 $as_echo_n "checking for dm_task_set_message in -ldevmapper... " >&6; }
17535 if ${ac_cv_lib_devmapper_dm_task_set_message+:} false; then :
17536 $as_echo_n "(cached) " >&6
17538 ac_check_lib_save_LIBS=$LIBS
17539 LIBS="-ldevmapper $LIBS"
17540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17541 /* end confdefs.h. */
17543 /* Override any GCC internal prototype to avoid an error.
17544 Use char because int might match the return type of a GCC
17545 builtin and then its argument prototype would still apply. */
17549 char dm_task_set_message ();
17553 return dm_task_set_message ();
17558 if ac_fn_c_try_link "$LINENO"; then :
17559 ac_cv_lib_devmapper_dm_task_set_message=yes
17561 ac_cv_lib_devmapper_dm_task_set_message=no
17563 rm -f core conftest.err conftest.$ac_objext \
17564 conftest$ac_exeext conftest.$ac_ext
17565 LIBS=$ac_check_lib_save_LIBS
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_message" >&5
17568 $as_echo "$ac_cv_lib_devmapper_dm_task_set_message" >&6; }
17569 if test "x$ac_cv_lib_devmapper_dm_task_set_message" = xyes; then :
17570 cat >>confdefs.h <<_ACEOF
17571 #define HAVE_LIBDEVMAPPER 1
17574 LIBS="-ldevmapper $LIBS"
17577 as_fn_error $? "The device-mapper library on your system is too old." "$LINENO" 5
17580 DEVMAPPER_LIBS=$LIBS
17582 elif test $pkg_failed = untried; then
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17584 $as_echo "no" >&6; }
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_name in -ldevmapper" >&5
17587 $as_echo_n "checking for dm_task_set_name in -ldevmapper... " >&6; }
17588 if ${ac_cv_lib_devmapper_dm_task_set_name+:} false; then :
17589 $as_echo_n "(cached) " >&6
17591 ac_check_lib_save_LIBS=$LIBS
17592 LIBS="-ldevmapper $LIBS"
17593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17594 /* end confdefs.h. */
17596 /* Override any GCC internal prototype to avoid an error.
17597 Use char because int might match the return type of a GCC
17598 builtin and then its argument prototype would still apply. */
17602 char dm_task_set_name ();
17606 return dm_task_set_name ();
17611 if ac_fn_c_try_link "$LINENO"; then :
17612 ac_cv_lib_devmapper_dm_task_set_name=yes
17614 ac_cv_lib_devmapper_dm_task_set_name=no
17616 rm -f core conftest.err conftest.$ac_objext \
17617 conftest$ac_exeext conftest.$ac_ext
17618 LIBS=$ac_check_lib_save_LIBS
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_name" >&5
17621 $as_echo "$ac_cv_lib_devmapper_dm_task_set_name" >&6; }
17622 if test "x$ac_cv_lib_devmapper_dm_task_set_name" = xyes; then :
17623 cat >>confdefs.h <<_ACEOF
17624 #define HAVE_LIBDEVMAPPER 1
17627 LIBS="-ldevmapper $LIBS"
17630 as_fn_error $? "You need the device-mapper library." "$LINENO" 5
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_message in -ldevmapper" >&5
17634 $as_echo_n "checking for dm_task_set_message in -ldevmapper... " >&6; }
17635 if ${ac_cv_lib_devmapper_dm_task_set_message+:} false; then :
17636 $as_echo_n "(cached) " >&6
17638 ac_check_lib_save_LIBS=$LIBS
17639 LIBS="-ldevmapper $LIBS"
17640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17641 /* end confdefs.h. */
17643 /* Override any GCC internal prototype to avoid an error.
17644 Use char because int might match the return type of a GCC
17645 builtin and then its argument prototype would still apply. */
17649 char dm_task_set_message ();
17653 return dm_task_set_message ();
17658 if ac_fn_c_try_link "$LINENO"; then :
17659 ac_cv_lib_devmapper_dm_task_set_message=yes
17661 ac_cv_lib_devmapper_dm_task_set_message=no
17663 rm -f core conftest.err conftest.$ac_objext \
17664 conftest$ac_exeext conftest.$ac_ext
17665 LIBS=$ac_check_lib_save_LIBS
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_message" >&5
17668 $as_echo "$ac_cv_lib_devmapper_dm_task_set_message" >&6; }
17669 if test "x$ac_cv_lib_devmapper_dm_task_set_message" = xyes; then :
17670 cat >>confdefs.h <<_ACEOF
17671 #define HAVE_LIBDEVMAPPER 1
17674 LIBS="-ldevmapper $LIBS"
17677 as_fn_error $? "The device-mapper library on your system is too old." "$LINENO" 5
17680 DEVMAPPER_LIBS=$LIBS
17683 DEVMAPPER_CFLAGS=$pkg_cv_DEVMAPPER_CFLAGS
17684 DEVMAPPER_LIBS=$pkg_cv_DEVMAPPER_LIBS
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17686 $as_echo "yes" >&6; }
17691 LIBS="$LIBS $DEVMAPPER_LIBS"
17692 ac_fn_c_check_decl "$LINENO" "dm_task_secure_data" "ac_cv_have_decl_dm_task_secure_data" "#include <libdevmapper.h>
17694 if test "x$ac_cv_have_decl_dm_task_secure_data" = xyes; then :
17700 cat >>confdefs.h <<_ACEOF
17701 #define HAVE_DECL_DM_TASK_SECURE_DATA $ac_have_decl
17704 ac_fn_c_check_decl "$LINENO" "dm_task_retry_remove" "ac_cv_have_decl_dm_task_retry_remove" "#include <libdevmapper.h>
17706 if test "x$ac_cv_have_decl_dm_task_retry_remove" = xyes; then :
17712 cat >>confdefs.h <<_ACEOF
17713 #define HAVE_DECL_DM_TASK_RETRY_REMOVE $ac_have_decl
17716 ac_fn_c_check_decl "$LINENO" "dm_task_deferred_remove" "ac_cv_have_decl_dm_task_deferred_remove" "#include <libdevmapper.h>
17718 if test "x$ac_cv_have_decl_dm_task_deferred_remove" = xyes; then :
17724 cat >>confdefs.h <<_ACEOF
17725 #define HAVE_DECL_DM_TASK_DEFERRED_REMOVE $ac_have_decl
17728 ac_fn_c_check_decl "$LINENO" "dm_device_has_mounted_fs" "ac_cv_have_decl_dm_device_has_mounted_fs" "#include <libdevmapper.h>
17730 if test "x$ac_cv_have_decl_dm_device_has_mounted_fs" = xyes; then :
17736 cat >>confdefs.h <<_ACEOF
17737 #define HAVE_DECL_DM_DEVICE_HAS_MOUNTED_FS $ac_have_decl
17740 ac_fn_c_check_decl "$LINENO" "dm_device_has_holders" "ac_cv_have_decl_dm_device_has_holders" "#include <libdevmapper.h>
17742 if test "x$ac_cv_have_decl_dm_device_has_holders" = xyes; then :
17748 cat >>confdefs.h <<_ACEOF
17749 #define HAVE_DECL_DM_DEVICE_HAS_HOLDERS $ac_have_decl
17752 ac_fn_c_check_decl "$LINENO" "dm_device_get_name" "ac_cv_have_decl_dm_device_get_name" "#include <libdevmapper.h>
17754 if test "x$ac_cv_have_decl_dm_device_get_name" = xyes; then :
17760 cat >>confdefs.h <<_ACEOF
17761 #define HAVE_DECL_DM_DEVICE_GET_NAME $ac_have_decl
17764 ac_fn_c_check_decl "$LINENO" "DM_DEVICE_GET_TARGET_VERSION" "ac_cv_have_decl_DM_DEVICE_GET_TARGET_VERSION" "#include <libdevmapper.h>
17766 if test "x$ac_cv_have_decl_DM_DEVICE_GET_TARGET_VERSION" = xyes; then :
17772 cat >>confdefs.h <<_ACEOF
17773 #define HAVE_DECL_DM_DEVICE_GET_TARGET_VERSION $ac_have_decl
17776 ac_fn_c_check_decl "$LINENO" "DM_UDEV_DISABLE_DISK_RULES_FLAG" "ac_cv_have_decl_DM_UDEV_DISABLE_DISK_RULES_FLAG" "#include <libdevmapper.h>
17778 if test "x$ac_cv_have_decl_DM_UDEV_DISABLE_DISK_RULES_FLAG" = xyes; then :
17784 cat >>confdefs.h <<_ACEOF
17785 #define HAVE_DECL_DM_UDEV_DISABLE_DISK_RULES_FLAG $ac_have_decl
17787 if test $ac_have_decl = 1; then :
17793 if test "x$enable_udev" = xyes; then
17794 if test "x$have_cookie" = xno; then
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The device-mapper library on your system has no udev support, udev support disabled." >&5
17796 $as_echo "$as_me: WARNING: The device-mapper library on your system has no udev support, udev support disabled." >&2;}
17799 $as_echo "#define USE_UDEV 1" >>confdefs.h
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json-c" >&5
17808 $as_echo_n "checking for json-c... " >&6; }
17810 if test -n "$JSON_C_CFLAGS"; then
17811 pkg_cv_JSON_C_CFLAGS="$JSON_C_CFLAGS"
17812 elif test -n "$PKG_CONFIG"; then
17813 if test -n "$PKG_CONFIG" && \
17814 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
17815 ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
17817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17818 test $ac_status = 0; }; then
17819 pkg_cv_JSON_C_CFLAGS=`$PKG_CONFIG --cflags "json-c" 2>/dev/null`
17820 test "x$?" != "x0" && pkg_failed=yes
17827 if test -n "$JSON_C_LIBS"; then
17828 pkg_cv_JSON_C_LIBS="$JSON_C_LIBS"
17829 elif test -n "$PKG_CONFIG"; then
17830 if test -n "$PKG_CONFIG" && \
17831 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
17832 ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
17834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17835 test $ac_status = 0; }; then
17836 pkg_cv_JSON_C_LIBS=`$PKG_CONFIG --libs "json-c" 2>/dev/null`
17837 test "x$?" != "x0" && pkg_failed=yes
17847 if test $pkg_failed = yes; then
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17849 $as_echo "no" >&6; }
17851 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17852 _pkg_short_errors_supported=yes
17854 _pkg_short_errors_supported=no
17856 if test $_pkg_short_errors_supported = yes; then
17857 JSON_C_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c" 2>&1`
17859 JSON_C_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c" 2>&1`
17861 # Put the nasty error message in config.log where it belongs
17862 echo "$JSON_C_PKG_ERRORS" >&5
17864 as_fn_error $? "Package requirements (json-c) were not met:
17868 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17869 installed software in a non-standard prefix.
17871 Alternatively, you may set the environment variables JSON_C_CFLAGS
17872 and JSON_C_LIBS to avoid the need to call pkg-config.
17873 See the pkg-config man page for more details." "$LINENO" 5
17874 elif test $pkg_failed = untried; then
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17876 $as_echo "no" >&6; }
17877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17879 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17880 is in your PATH or set the PKG_CONFIG environment variable to the full
17881 path to pkg-config.
17883 Alternatively, you may set the environment variables JSON_C_CFLAGS
17884 and JSON_C_LIBS to avoid the need to call pkg-config.
17885 See the pkg-config man page for more details.
17887 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17888 See \`config.log' for more details" "$LINENO" 5; }
17890 JSON_C_CFLAGS=$pkg_cv_JSON_C_CFLAGS
17891 JSON_C_LIBS=$pkg_cv_JSON_C_LIBS
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17893 $as_echo "yes" >&6; }
17896 ac_fn_c_check_decl "$LINENO" "json_object_object_add_ex" "ac_cv_have_decl_json_object_object_add_ex" "#include <json-c/json.h>
17898 if test "x$ac_cv_have_decl_json_object_object_add_ex" = xyes; then :
17904 cat >>confdefs.h <<_ACEOF
17905 #define HAVE_DECL_JSON_OBJECT_OBJECT_ADD_EX $ac_have_decl
17908 ac_fn_c_check_decl "$LINENO" "json_object_deep_copy" "ac_cv_have_decl_json_object_deep_copy" "#include <json-c/json.h>
17910 if test "x$ac_cv_have_decl_json_object_deep_copy" = xyes; then :
17916 cat >>confdefs.h <<_ACEOF
17917 #define HAVE_DECL_JSON_OBJECT_DEEP_COPY $ac_have_decl
17922 # Check whether --with-crypto_backend was given.
17923 if test "${with_crypto_backend+set}" = set; then :
17924 withval=$with_crypto_backend;
17926 with_crypto_backend=openssl
17930 # Check whether --enable-kernel_crypto was given.
17931 if test "${enable_kernel_crypto+set}" = set; then :
17932 enableval=$enable_kernel_crypto;
17934 enable_kernel_crypto=yes
17938 if test "x$enable_kernel_crypto" = "xyes"; then
17939 for ac_header in linux/if_alg.h
17941 ac_fn_c_check_header_mongrel "$LINENO" "linux/if_alg.h" "ac_cv_header_linux_if_alg_h" "$ac_includes_default"
17942 if test "x$ac_cv_header_linux_if_alg_h" = xyes; then :
17943 cat >>confdefs.h <<_ACEOF
17944 #define HAVE_LINUX_IF_ALG_H 1
17948 as_fn_error $? "You need Linux kernel headers with userspace crypto interface. (Or use --disable-kernel_crypto.)" "$LINENO" 5
17954 $as_echo "#define ENABLE_AF_ALG 1" >>confdefs.h
17958 case $with_crypto_backend in
17960 if test "x$enable_fips" = "xyes"; then
17961 GCRYPT_REQ_VERSION=1.4.5
17963 GCRYPT_REQ_VERSION=1.1.42
17967 # Check whether --enable-gcrypt-pbkdf2 was given.
17968 if test "${enable_gcrypt_pbkdf2+set}" = set; then :
17969 enableval=$enable_gcrypt_pbkdf2; if test "x$enableval" = "xyes"; then
17970 use_internal_pbkdf2=0
17972 use_internal_pbkdf2=1
17977 # Check whether --with-libgcrypt-prefix was given.
17978 if test "${with_libgcrypt_prefix+set}" = set; then :
17979 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
17981 libgcrypt_config_prefix=""
17984 if test x"${LIBGCRYPT_CONFIG}" = x ; then
17985 if test x"${libgcrypt_config_prefix}" != x ; then
17986 LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config"
17990 use_gpgrt_config=""
17991 if test x"${LIBGCRYPT_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
17992 if $GPGRT_CONFIG libgcrypt --exists; then
17993 LIBGCRYPT_CONFIG="$GPGRT_CONFIG libgcrypt"
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libgcrypt-config" >&5
17995 $as_echo "$as_me: Use gpgrt-config as libgcrypt-config" >&6;}
17996 use_gpgrt_config=yes
17999 if test -z "$use_gpgrt_config"; then
18000 if test x"${LIBGCRYPT_CONFIG}" = x ; then
18001 case "${SYSROOT}" in
18003 if test -x "${SYSROOT}/bin/libgcrypt-config" ; then
18004 LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config"
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
18011 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
18015 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
18016 set dummy libgcrypt-config; ac_word=$2
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18018 $as_echo_n "checking for $ac_word... " >&6; }
18019 if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
18020 $as_echo_n "(cached) " >&6
18022 case $LIBGCRYPT_CONFIG in
18024 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
18027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18028 for as_dir in $PATH
18031 test -z "$as_dir" && as_dir=.
18032 for ac_exec_ext in '' $ac_executable_extensions; do
18033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18034 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18042 test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
18046 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
18047 if test -n "$LIBGCRYPT_CONFIG"; then
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
18049 $as_echo "$LIBGCRYPT_CONFIG" >&6; }
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18052 $as_echo "no" >&6; }
18059 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
18060 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
18061 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
18063 req_libgcrypt_api=0
18064 min_libgcrypt_version="$tmp"
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
18068 $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
18070 if test "$LIBGCRYPT_CONFIG" != "no" ; then
18071 req_major=`echo $min_libgcrypt_version | \
18072 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
18073 req_minor=`echo $min_libgcrypt_version | \
18074 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
18075 req_micro=`echo $min_libgcrypt_version | \
18076 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
18077 if test -z "$use_gpgrt_config"; then
18078 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
18080 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --modversion`
18082 major=`echo $libgcrypt_config_version | \
18083 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
18084 minor=`echo $libgcrypt_config_version | \
18085 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
18086 micro=`echo $libgcrypt_config_version | \
18087 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
18088 if test "$major" -gt "$req_major"; then
18091 if test "$major" -eq "$req_major"; then
18092 if test "$minor" -gt "$req_minor"; then
18095 if test "$minor" -eq "$req_minor"; then
18096 if test "$micro" -ge "$req_micro"; then
18104 if test $ok = yes; then
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
18106 $as_echo "yes ($libgcrypt_config_version)" >&6; }
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18109 $as_echo "no" >&6; }
18111 if test $ok = yes; then
18112 # If we have a recent libgcrypt, we should also check that the
18113 # API is compatible
18114 if test "$req_libgcrypt_api" -gt 0 ; then
18115 if test -z "$use_gpgrt_config"; then
18116 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
18118 tmp=`$LIBGCRYPT_CONFIG --variable=api_version 2>/dev/null || echo 0`
18120 if test "$tmp" -gt 0 ; then
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
18122 $as_echo_n "checking LIBGCRYPT API version... " >&6; }
18123 if test "$req_libgcrypt_api" -eq "$tmp" ; then
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
18125 $as_echo "okay" >&6; }
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
18129 $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
18134 if test $ok = yes; then
18135 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
18136 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
18137 use_internal_pbkdf2=0
18138 if test -z "$use_gpgrt_config"; then
18139 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
18141 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --variable=host 2>/dev/null || echo none`
18143 if test x"$libgcrypt_config_host" != xnone ; then
18144 if test x"$libgcrypt_config_host" != x"$host" ; then
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18147 *** The config script \"$LIBGCRYPT_CONFIG\" was
18148 *** built for $libgcrypt_config_host and thus may not match the
18149 *** used host $host.
18150 *** You may want to use the configure option --with-libgcrypt-prefix
18151 *** to specify a matching config script or use \$SYSROOT.
18153 $as_echo "$as_me: WARNING:
18155 *** The config script \"$LIBGCRYPT_CONFIG\" was
18156 *** built for $libgcrypt_config_host and thus may not match the
18157 *** used host $host.
18158 *** You may want to use the configure option --with-libgcrypt-prefix
18159 *** to specify a matching config script or use \$SYSROOT.
18161 gpg_config_script_warn="$gpg_config_script_warn libgcrypt"
18165 LIBGCRYPT_CFLAGS=""
18167 use_internal_pbkdf2=1
18176 # Check whether --with-libgcrypt-prefix was given.
18177 if test "${with_libgcrypt_prefix+set}" = set; then :
18178 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
18180 libgcrypt_config_prefix=""
18183 if test x"${LIBGCRYPT_CONFIG}" = x ; then
18184 if test x"${libgcrypt_config_prefix}" != x ; then
18185 LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config"
18189 use_gpgrt_config=""
18190 if test x"${LIBGCRYPT_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
18191 if $GPGRT_CONFIG libgcrypt --exists; then
18192 LIBGCRYPT_CONFIG="$GPGRT_CONFIG libgcrypt"
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libgcrypt-config" >&5
18194 $as_echo "$as_me: Use gpgrt-config as libgcrypt-config" >&6;}
18195 use_gpgrt_config=yes
18198 if test -z "$use_gpgrt_config"; then
18199 if test x"${LIBGCRYPT_CONFIG}" = x ; then
18200 case "${SYSROOT}" in
18202 if test -x "${SYSROOT}/bin/libgcrypt-config" ; then
18203 LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config"
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
18210 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
18214 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
18215 set dummy libgcrypt-config; ac_word=$2
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18217 $as_echo_n "checking for $ac_word... " >&6; }
18218 if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
18219 $as_echo_n "(cached) " >&6
18221 case $LIBGCRYPT_CONFIG in
18223 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
18226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18227 for as_dir in $PATH
18230 test -z "$as_dir" && as_dir=.
18231 for ac_exec_ext in '' $ac_executable_extensions; do
18232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18233 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18241 test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
18245 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
18246 if test -n "$LIBGCRYPT_CONFIG"; then
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
18248 $as_echo "$LIBGCRYPT_CONFIG" >&6; }
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18251 $as_echo "no" >&6; }
18257 tmp=$GCRYPT_REQ_VERSION
18258 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
18259 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
18260 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
18262 req_libgcrypt_api=0
18263 min_libgcrypt_version="$tmp"
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
18267 $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
18269 if test "$LIBGCRYPT_CONFIG" != "no" ; then
18270 req_major=`echo $min_libgcrypt_version | \
18271 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
18272 req_minor=`echo $min_libgcrypt_version | \
18273 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
18274 req_micro=`echo $min_libgcrypt_version | \
18275 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
18276 if test -z "$use_gpgrt_config"; then
18277 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
18279 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --modversion`
18281 major=`echo $libgcrypt_config_version | \
18282 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
18283 minor=`echo $libgcrypt_config_version | \
18284 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
18285 micro=`echo $libgcrypt_config_version | \
18286 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
18287 if test "$major" -gt "$req_major"; then
18290 if test "$major" -eq "$req_major"; then
18291 if test "$minor" -gt "$req_minor"; then
18294 if test "$minor" -eq "$req_minor"; then
18295 if test "$micro" -ge "$req_micro"; then
18303 if test $ok = yes; then
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
18305 $as_echo "yes ($libgcrypt_config_version)" >&6; }
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18308 $as_echo "no" >&6; }
18310 if test $ok = yes; then
18311 # If we have a recent libgcrypt, we should also check that the
18312 # API is compatible
18313 if test "$req_libgcrypt_api" -gt 0 ; then
18314 if test -z "$use_gpgrt_config"; then
18315 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
18317 tmp=`$LIBGCRYPT_CONFIG --variable=api_version 2>/dev/null || echo 0`
18319 if test "$tmp" -gt 0 ; then
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
18321 $as_echo_n "checking LIBGCRYPT API version... " >&6; }
18322 if test "$req_libgcrypt_api" -eq "$tmp" ; then
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
18324 $as_echo "okay" >&6; }
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
18328 $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
18333 if test $ok = yes; then
18334 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
18335 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
18337 if test -z "$use_gpgrt_config"; then
18338 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
18340 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --variable=host 2>/dev/null || echo none`
18342 if test x"$libgcrypt_config_host" != xnone ; then
18343 if test x"$libgcrypt_config_host" != x"$host" ; then
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18346 *** The config script \"$LIBGCRYPT_CONFIG\" was
18347 *** built for $libgcrypt_config_host and thus may not match the
18348 *** used host $host.
18349 *** You may want to use the configure option --with-libgcrypt-prefix
18350 *** to specify a matching config script or use \$SYSROOT.
18352 $as_echo "$as_me: WARNING:
18354 *** The config script \"$LIBGCRYPT_CONFIG\" was
18355 *** built for $libgcrypt_config_host and thus may not match the
18356 *** used host $host.
18357 *** You may want to use the configure option --with-libgcrypt-prefix
18358 *** to specify a matching config script or use \$SYSROOT.
18360 gpg_config_script_warn="$gpg_config_script_warn libgcrypt"
18364 LIBGCRYPT_CFLAGS=""
18366 as_fn_error $? "You need the gcrypt library." "$LINENO" 5
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if internal cryptsetup PBKDF2 is compiled-in" >&5
18373 $as_echo_n "checking if internal cryptsetup PBKDF2 is compiled-in... " >&6; }
18374 if test $use_internal_pbkdf2 = 0; then
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18376 $as_echo "no" >&6; }
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18379 $as_echo "yes" >&6; }
18381 if test "x$enable_fips" = "xyes"; then
18382 as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5
18387 ac_fn_c_check_decl "$LINENO" "GCRY_CIPHER_MODE_XTS" "ac_cv_have_decl_GCRY_CIPHER_MODE_XTS" "#include <gcrypt.h>
18389 if test "x$ac_cv_have_decl_GCRY_CIPHER_MODE_XTS" = xyes; then :
18395 cat >>confdefs.h <<_ACEOF
18396 #define HAVE_DECL_GCRY_CIPHER_MODE_XTS $ac_have_decl
18400 if test "x$enable_static_cryptsetup" = "xyes"; then
18402 LIBS="$saved_LIBS $LIBGCRYPT_LIBS -static"
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_check_version in -lgcrypt" >&5
18404 $as_echo_n "checking for gcry_check_version in -lgcrypt... " >&6; }
18405 if ${ac_cv_lib_gcrypt_gcry_check_version+:} false; then :
18406 $as_echo_n "(cached) " >&6
18408 ac_check_lib_save_LIBS=$LIBS
18409 LIBS="-lgcrypt -lgpg-error $LIBS"
18410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18411 /* end confdefs.h. */
18413 /* Override any GCC internal prototype to avoid an error.
18414 Use char because int might match the return type of a GCC
18415 builtin and then its argument prototype would still apply. */
18419 char gcry_check_version ();
18423 return gcry_check_version ();
18428 if ac_fn_c_try_link "$LINENO"; then :
18429 ac_cv_lib_gcrypt_gcry_check_version=yes
18431 ac_cv_lib_gcrypt_gcry_check_version=no
18433 rm -f core conftest.err conftest.$ac_objext \
18434 conftest$ac_exeext conftest.$ac_ext
18435 LIBS=$ac_check_lib_save_LIBS
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_check_version" >&5
18438 $as_echo "$ac_cv_lib_gcrypt_gcry_check_version" >&6; }
18439 if test "x$ac_cv_lib_gcrypt_gcry_check_version" = xyes; then :
18440 cat >>confdefs.h <<_ACEOF
18441 #define HAVE_LIBGCRYPT 1
18444 LIBS="-lgcrypt $LIBS"
18447 as_fn_error $? "Cannot find static gcrypt library." "$LINENO" 5
18450 LIBGCRYPT_STATIC_LIBS="$LIBGCRYPT_LIBS -lgpg-error"
18454 CRYPTO_CFLAGS=$LIBGCRYPT_CFLAGS
18455 CRYPTO_LIBS=$LIBGCRYPT_LIBS
18456 CRYPTO_STATIC_LIBS=$LIBGCRYPT_STATIC_LIBS
18459 cat >>confdefs.h <<_ACEOF
18460 #define GCRYPT_REQ_VERSION "$GCRYPT_REQ_VERSION"
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl >= 0.9.8" >&5
18468 $as_echo_n "checking for openssl >= 0.9.8... " >&6; }
18470 if test -n "$OPENSSL_CFLAGS"; then
18471 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
18472 elif test -n "$PKG_CONFIG"; then
18473 if test -n "$PKG_CONFIG" && \
18474 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.8\""; } >&5
18475 ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.8") 2>&5
18477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18478 test $ac_status = 0; }; then
18479 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.9.8" 2>/dev/null`
18480 test "x$?" != "x0" && pkg_failed=yes
18487 if test -n "$OPENSSL_LIBS"; then
18488 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
18489 elif test -n "$PKG_CONFIG"; then
18490 if test -n "$PKG_CONFIG" && \
18491 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.8\""; } >&5
18492 ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.8") 2>&5
18494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18495 test $ac_status = 0; }; then
18496 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 0.9.8" 2>/dev/null`
18497 test "x$?" != "x0" && pkg_failed=yes
18507 if test $pkg_failed = yes; then
18508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18509 $as_echo "no" >&6; }
18511 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18512 _pkg_short_errors_supported=yes
18514 _pkg_short_errors_supported=no
18516 if test $_pkg_short_errors_supported = yes; then
18517 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 0.9.8" 2>&1`
18519 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 0.9.8" 2>&1`
18521 # Put the nasty error message in config.log where it belongs
18522 echo "$OPENSSL_PKG_ERRORS" >&5
18524 as_fn_error $? "You need openssl library." "$LINENO" 5
18525 elif test $pkg_failed = untried; then
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18527 $as_echo "no" >&6; }
18528 as_fn_error $? "You need openssl library." "$LINENO" 5
18530 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
18531 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18533 $as_echo "yes" >&6; }
18536 CRYPTO_CFLAGS=$OPENSSL_CFLAGS
18537 CRYPTO_LIBS=$OPENSSL_LIBS
18538 use_internal_pbkdf2=0
18540 if test "x$enable_static_cryptsetup" = "xyes"; then
18541 saved_PKG_CONFIG=$PKG_CONFIG
18542 PKG_CONFIG="$PKG_CONFIG --static"
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5
18546 $as_echo_n "checking for openssl... " >&6; }
18548 if test -n "$OPENSSL_STATIC_CFLAGS"; then
18549 pkg_cv_OPENSSL_STATIC_CFLAGS="$OPENSSL_STATIC_CFLAGS"
18550 elif test -n "$PKG_CONFIG"; then
18551 if test -n "$PKG_CONFIG" && \
18552 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
18553 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
18555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18556 test $ac_status = 0; }; then
18557 pkg_cv_OPENSSL_STATIC_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
18558 test "x$?" != "x0" && pkg_failed=yes
18565 if test -n "$OPENSSL_STATIC_LIBS"; then
18566 pkg_cv_OPENSSL_STATIC_LIBS="$OPENSSL_STATIC_LIBS"
18567 elif test -n "$PKG_CONFIG"; then
18568 if test -n "$PKG_CONFIG" && \
18569 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
18570 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
18572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18573 test $ac_status = 0; }; then
18574 pkg_cv_OPENSSL_STATIC_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
18575 test "x$?" != "x0" && pkg_failed=yes
18585 if test $pkg_failed = yes; then
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18587 $as_echo "no" >&6; }
18589 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18590 _pkg_short_errors_supported=yes
18592 _pkg_short_errors_supported=no
18594 if test $_pkg_short_errors_supported = yes; then
18595 OPENSSL_STATIC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
18597 OPENSSL_STATIC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
18599 # Put the nasty error message in config.log where it belongs
18600 echo "$OPENSSL_STATIC_PKG_ERRORS" >&5
18602 as_fn_error $? "Package requirements (openssl) were not met:
18604 $OPENSSL_STATIC_PKG_ERRORS
18606 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18607 installed software in a non-standard prefix.
18609 Alternatively, you may set the environment variables OPENSSL_STATIC_CFLAGS
18610 and OPENSSL_STATIC_LIBS to avoid the need to call pkg-config.
18611 See the pkg-config man page for more details." "$LINENO" 5
18612 elif test $pkg_failed = untried; then
18613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18614 $as_echo "no" >&6; }
18615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18617 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18618 is in your PATH or set the PKG_CONFIG environment variable to the full
18619 path to pkg-config.
18621 Alternatively, you may set the environment variables OPENSSL_STATIC_CFLAGS
18622 and OPENSSL_STATIC_LIBS to avoid the need to call pkg-config.
18623 See the pkg-config man page for more details.
18625 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18626 See \`config.log' for more details" "$LINENO" 5; }
18628 OPENSSL_STATIC_CFLAGS=$pkg_cv_OPENSSL_STATIC_CFLAGS
18629 OPENSSL_STATIC_LIBS=$pkg_cv_OPENSSL_STATIC_LIBS
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18631 $as_echo "yes" >&6; }
18634 CRYPTO_STATIC_LIBS=$OPENSSL_STATIC_LIBS
18635 PKG_CONFIG=$saved_PKG_CONFIG
18639 if test "x$enable_static_cryptsetup" = "xyes"; then
18640 as_fn_error $? "Static build of cryptsetup is not supported with NSS." "$LINENO" 5
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NSS backend does NOT provide backward compatibility (missing ripemd160 hash)." >&5
18644 $as_echo "$as_me: WARNING: NSS backend does NOT provide backward compatibility (missing ripemd160 hash)." >&2;}
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss" >&5
18649 $as_echo_n "checking for nss... " >&6; }
18651 if test -n "$NSS_CFLAGS"; then
18652 pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
18653 elif test -n "$PKG_CONFIG"; then
18654 if test -n "$PKG_CONFIG" && \
18655 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
18656 ($PKG_CONFIG --exists --print-errors "nss") 2>&5
18658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18659 test $ac_status = 0; }; then
18660 pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null`
18661 test "x$?" != "x0" && pkg_failed=yes
18668 if test -n "$NSS_LIBS"; then
18669 pkg_cv_NSS_LIBS="$NSS_LIBS"
18670 elif test -n "$PKG_CONFIG"; then
18671 if test -n "$PKG_CONFIG" && \
18672 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
18673 ($PKG_CONFIG --exists --print-errors "nss") 2>&5
18675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18676 test $ac_status = 0; }; then
18677 pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null`
18678 test "x$?" != "x0" && pkg_failed=yes
18688 if test $pkg_failed = yes; then
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18690 $as_echo "no" >&6; }
18692 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18693 _pkg_short_errors_supported=yes
18695 _pkg_short_errors_supported=no
18697 if test $_pkg_short_errors_supported = yes; then
18698 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss" 2>&1`
18700 NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss" 2>&1`
18702 # Put the nasty error message in config.log where it belongs
18703 echo "$NSS_PKG_ERRORS" >&5
18705 as_fn_error $? "You need nss library." "$LINENO" 5
18706 elif test $pkg_failed = untried; then
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18708 $as_echo "no" >&6; }
18709 as_fn_error $? "You need nss library." "$LINENO" 5
18711 NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
18712 NSS_LIBS=$pkg_cv_NSS_LIBS
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18714 $as_echo "yes" >&6; }
18718 saved_CFLAGS=$CFLAGS
18719 CFLAGS="$CFLAGS $NSS_CFLAGS"
18720 ac_fn_c_check_decl "$LINENO" "NSS_GetVersion" "ac_cv_have_decl_NSS_GetVersion" "#include <nss.h>
18722 if test "x$ac_cv_have_decl_NSS_GetVersion" = xyes; then :
18728 cat >>confdefs.h <<_ACEOF
18729 #define HAVE_DECL_NSS_GETVERSION $ac_have_decl
18732 CFLAGS=$saved_CFLAGS
18734 CRYPTO_CFLAGS=$NSS_CFLAGS
18735 CRYPTO_LIBS=$NSS_LIBS
18736 use_internal_pbkdf2=1
18738 if test "x$enable_fips" = "xyes"; then
18739 as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5
18744 for ac_header in linux/if_alg.h
18746 ac_fn_c_check_header_mongrel "$LINENO" "linux/if_alg.h" "ac_cv_header_linux_if_alg_h" "$ac_includes_default"
18747 if test "x$ac_cv_header_linux_if_alg_h" = xyes; then :
18748 cat >>confdefs.h <<_ACEOF
18749 #define HAVE_LINUX_IF_ALG_H 1
18753 as_fn_error $? "You need Linux kernel headers with userspace crypto interface." "$LINENO" 5
18758 # AC_CHECK_DECLS([AF_ALG],,
18759 # [AC_MSG_ERROR([You need Linux kernel with userspace crypto interface.])],
18760 # [#include <sys/socket.h>])
18761 use_internal_pbkdf2=1
18763 if test "x$enable_fips" = "xyes"; then
18764 as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5
18769 for ac_header in nettle/sha.h
18771 ac_fn_c_check_header_mongrel "$LINENO" "nettle/sha.h" "ac_cv_header_nettle_sha_h" "$ac_includes_default"
18772 if test "x$ac_cv_header_nettle_sha_h" = xyes; then :
18773 cat >>confdefs.h <<_ACEOF
18774 #define HAVE_NETTLE_SHA_H 1
18778 as_fn_error $? "You need Nettle cryptographic library." "$LINENO" 5
18783 for ac_header in nettle/version.h
18785 ac_fn_c_check_header_mongrel "$LINENO" "nettle/version.h" "ac_cv_header_nettle_version_h" "$ac_includes_default"
18786 if test "x$ac_cv_header_nettle_version_h" = xyes; then :
18787 cat >>confdefs.h <<_ACEOF
18788 #define HAVE_NETTLE_VERSION_H 1
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_pbkdf2_hmac_sha256 in -lnettle" >&5
18798 $as_echo_n "checking for nettle_pbkdf2_hmac_sha256 in -lnettle... " >&6; }
18799 if ${ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256+:} false; then :
18800 $as_echo_n "(cached) " >&6
18802 ac_check_lib_save_LIBS=$LIBS
18803 LIBS="-lnettle $LIBS"
18804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18805 /* end confdefs.h. */
18807 /* Override any GCC internal prototype to avoid an error.
18808 Use char because int might match the return type of a GCC
18809 builtin and then its argument prototype would still apply. */
18813 char nettle_pbkdf2_hmac_sha256 ();
18817 return nettle_pbkdf2_hmac_sha256 ();
18822 if ac_fn_c_try_link "$LINENO"; then :
18823 ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256=yes
18825 ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256=no
18827 rm -f core conftest.err conftest.$ac_objext \
18828 conftest$ac_exeext conftest.$ac_ext
18829 LIBS=$ac_check_lib_save_LIBS
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256" >&5
18832 $as_echo "$ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256" >&6; }
18833 if test "x$ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256" = xyes; then :
18834 cat >>confdefs.h <<_ACEOF
18835 #define HAVE_LIBNETTLE 1
18838 LIBS="-lnettle $LIBS"
18841 as_fn_error $? "You need Nettle library version 2.6 or more recent." "$LINENO" 5
18847 CRYPTO_STATIC_LIBS=$CRYPTO_LIBS
18848 use_internal_pbkdf2=0
18850 if test "x$enable_fips" = "xyes"; then
18851 as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5
18855 *) as_fn_error $? "Unknown crypto backend." "$LINENO" 5 ;;
18857 if test "$with_crypto_backend" = "gcrypt"; then
18858 CRYPTO_BACKEND_GCRYPT_TRUE=
18859 CRYPTO_BACKEND_GCRYPT_FALSE='#'
18861 CRYPTO_BACKEND_GCRYPT_TRUE='#'
18862 CRYPTO_BACKEND_GCRYPT_FALSE=
18865 if test "$with_crypto_backend" = "openssl"; then
18866 CRYPTO_BACKEND_OPENSSL_TRUE=
18867 CRYPTO_BACKEND_OPENSSL_FALSE='#'
18869 CRYPTO_BACKEND_OPENSSL_TRUE='#'
18870 CRYPTO_BACKEND_OPENSSL_FALSE=
18873 if test "$with_crypto_backend" = "nss"; then
18874 CRYPTO_BACKEND_NSS_TRUE=
18875 CRYPTO_BACKEND_NSS_FALSE='#'
18877 CRYPTO_BACKEND_NSS_TRUE='#'
18878 CRYPTO_BACKEND_NSS_FALSE=
18881 if test "$with_crypto_backend" = "kernel"; then
18882 CRYPTO_BACKEND_KERNEL_TRUE=
18883 CRYPTO_BACKEND_KERNEL_FALSE='#'
18885 CRYPTO_BACKEND_KERNEL_TRUE='#'
18886 CRYPTO_BACKEND_KERNEL_FALSE=
18889 if test "$with_crypto_backend" = "nettle"; then
18890 CRYPTO_BACKEND_NETTLE_TRUE=
18891 CRYPTO_BACKEND_NETTLE_FALSE='#'
18893 CRYPTO_BACKEND_NETTLE_TRUE='#'
18894 CRYPTO_BACKEND_NETTLE_FALSE=
18898 if test $use_internal_pbkdf2 = 1; then
18899 CRYPTO_INTERNAL_PBKDF2_TRUE=
18900 CRYPTO_INTERNAL_PBKDF2_FALSE='#'
18902 CRYPTO_INTERNAL_PBKDF2_TRUE='#'
18903 CRYPTO_INTERNAL_PBKDF2_FALSE=
18907 cat >>confdefs.h <<_ACEOF
18908 #define USE_INTERNAL_PBKDF2 $use_internal_pbkdf2
18912 # Check whether --enable-internal-argon2 was given.
18913 if test "${enable_internal_argon2+set}" = set; then :
18914 enableval=$enable_internal_argon2;
18916 enable_internal_argon2=yes
18920 # Check whether --enable-libargon2 was given.
18921 if test "${enable_libargon2+set}" = set; then :
18922 enableval=$enable_libargon2;
18926 if test "x$enable_libargon2" = "xyes" ; then
18927 for ac_header in argon2.h
18929 ac_fn_c_check_header_mongrel "$LINENO" "argon2.h" "ac_cv_header_argon2_h" "$ac_includes_default"
18930 if test "x$ac_cv_header_argon2_h" = xyes; then :
18931 cat >>confdefs.h <<_ACEOF
18932 #define HAVE_ARGON2_H 1
18936 as_fn_error $? "You need libargon2 development library installed." "$LINENO" 5
18941 ac_fn_c_check_decl "$LINENO" "Argon2_id" "ac_cv_have_decl_Argon2_id" "#include <argon2.h>
18943 if test "x$ac_cv_have_decl_Argon2_id" = xyes; then :
18946 as_fn_error $? "You need more recent Argon2 library with support for Argon2id." "$LINENO" 5
18951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libargon2" >&5
18952 $as_echo_n "checking for libargon2... " >&6; }
18954 if test -n "$LIBARGON2_CFLAGS"; then
18955 pkg_cv_LIBARGON2_CFLAGS="$LIBARGON2_CFLAGS"
18956 elif test -n "$PKG_CONFIG"; then
18957 if test -n "$PKG_CONFIG" && \
18958 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libargon2\""; } >&5
18959 ($PKG_CONFIG --exists --print-errors "libargon2") 2>&5
18961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18962 test $ac_status = 0; }; then
18963 pkg_cv_LIBARGON2_CFLAGS=`$PKG_CONFIG --cflags "libargon2" 2>/dev/null`
18964 test "x$?" != "x0" && pkg_failed=yes
18971 if test -n "$LIBARGON2_LIBS"; then
18972 pkg_cv_LIBARGON2_LIBS="$LIBARGON2_LIBS"
18973 elif test -n "$PKG_CONFIG"; then
18974 if test -n "$PKG_CONFIG" && \
18975 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libargon2\""; } >&5
18976 ($PKG_CONFIG --exists --print-errors "libargon2") 2>&5
18978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18979 test $ac_status = 0; }; then
18980 pkg_cv_LIBARGON2_LIBS=`$PKG_CONFIG --libs "libargon2" 2>/dev/null`
18981 test "x$?" != "x0" && pkg_failed=yes
18991 if test $pkg_failed = yes; then
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18993 $as_echo "no" >&6; }
18995 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18996 _pkg_short_errors_supported=yes
18998 _pkg_short_errors_supported=no
19000 if test $_pkg_short_errors_supported = yes; then
19001 LIBARGON2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libargon2" 2>&1`
19003 LIBARGON2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libargon2" 2>&1`
19005 # Put the nasty error message in config.log where it belongs
19006 echo "$LIBARGON2_PKG_ERRORS" >&5
19008 LIBARGON2_LIBS="-largon2"
19009 elif test $pkg_failed = untried; then
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19011 $as_echo "no" >&6; }
19012 LIBARGON2_LIBS="-largon2"
19014 LIBARGON2_CFLAGS=$pkg_cv_LIBARGON2_CFLAGS
19015 LIBARGON2_LIBS=$pkg_cv_LIBARGON2_LIBS
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19017 $as_echo "yes" >&6; }
19020 enable_internal_argon2=no
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Argon2 bundled (slow) reference implementation will be used, please consider to use system library with --enable-libargon2." >&5
19023 $as_echo "$as_me: WARNING: Argon2 bundled (slow) reference implementation will be used, please consider to use system library with --enable-libargon2." >&2;}
19025 # Check whether --enable-internal-sse-argon2 was given.
19026 if test "${enable_internal_sse_argon2+set}" = set; then :
19027 enableval=$enable_internal_sse_argon2;
19031 if test "x$enable_internal_sse_argon2" = "xyes"; then
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Argon2 SSE optimization can be used" >&5
19033 $as_echo_n "checking if Argon2 SSE optimization can be used... " >&6; }
19034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19035 /* end confdefs.h. */
19037 #include <emmintrin.h>
19038 __m128i testfunc(__m128i *a, __m128i *b) {
19039 return _mm_xor_si128(_mm_loadu_si128(a), _mm_loadu_si128(b));
19050 if ac_fn_c_try_link "$LINENO"; then :
19053 enable_internal_sse_argon2=no
19055 rm -f core conftest.err conftest.$ac_objext \
19056 conftest$ac_exeext conftest.$ac_ext
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_internal_sse_argon2" >&5
19058 $as_echo "$enable_internal_sse_argon2" >&6; }
19062 if test "x$enable_internal_argon2" = "xyes"; then
19064 $as_echo "#define USE_INTERNAL_ARGON2 1" >>confdefs.h
19067 if test "x$enable_internal_argon2" = "xyes"; then
19068 CRYPTO_INTERNAL_ARGON2_TRUE=
19069 CRYPTO_INTERNAL_ARGON2_FALSE='#'
19071 CRYPTO_INTERNAL_ARGON2_TRUE='#'
19072 CRYPTO_INTERNAL_ARGON2_FALSE=
19075 if test "x$enable_internal_sse_argon2" = "xyes"; then
19076 CRYPTO_INTERNAL_SSE_ARGON2_TRUE=
19077 CRYPTO_INTERNAL_SSE_ARGON2_FALSE='#'
19079 CRYPTO_INTERNAL_SSE_ARGON2_TRUE='#'
19080 CRYPTO_INTERNAL_SSE_ARGON2_FALSE=
19084 # Check whether --enable-blkid was given.
19085 if test "${enable_blkid+set}" = set; then :
19086 enableval=$enable_blkid;
19092 if test "x$enable_blkid" = "xyes"; then
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid" >&5
19096 $as_echo_n "checking for blkid... " >&6; }
19098 if test -n "$BLKID_CFLAGS"; then
19099 pkg_cv_BLKID_CFLAGS="$BLKID_CFLAGS"
19100 elif test -n "$PKG_CONFIG"; then
19101 if test -n "$PKG_CONFIG" && \
19102 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid\""; } >&5
19103 ($PKG_CONFIG --exists --print-errors "blkid") 2>&5
19105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19106 test $ac_status = 0; }; then
19107 pkg_cv_BLKID_CFLAGS=`$PKG_CONFIG --cflags "blkid" 2>/dev/null`
19108 test "x$?" != "x0" && pkg_failed=yes
19115 if test -n "$BLKID_LIBS"; then
19116 pkg_cv_BLKID_LIBS="$BLKID_LIBS"
19117 elif test -n "$PKG_CONFIG"; then
19118 if test -n "$PKG_CONFIG" && \
19119 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid\""; } >&5
19120 ($PKG_CONFIG --exists --print-errors "blkid") 2>&5
19122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19123 test $ac_status = 0; }; then
19124 pkg_cv_BLKID_LIBS=`$PKG_CONFIG --libs "blkid" 2>/dev/null`
19125 test "x$?" != "x0" && pkg_failed=yes
19135 if test $pkg_failed = yes; then
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19137 $as_echo "no" >&6; }
19139 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19140 _pkg_short_errors_supported=yes
19142 _pkg_short_errors_supported=no
19144 if test $_pkg_short_errors_supported = yes; then
19145 BLKID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "blkid" 2>&1`
19147 BLKID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "blkid" 2>&1`
19149 # Put the nasty error message in config.log where it belongs
19150 echo "$BLKID_PKG_ERRORS" >&5
19152 LIBBLKID_LIBS="-lblkid"
19153 elif test $pkg_failed = untried; then
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19155 $as_echo "no" >&6; }
19156 LIBBLKID_LIBS="-lblkid"
19158 BLKID_CFLAGS=$pkg_cv_BLKID_CFLAGS
19159 BLKID_LIBS=$pkg_cv_BLKID_LIBS
19160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19161 $as_echo "yes" >&6; }
19163 $as_echo "#define HAVE_BLKID 1" >>confdefs.h
19167 for ac_header in blkid/blkid.h
19169 ac_fn_c_check_header_mongrel "$LINENO" "blkid/blkid.h" "ac_cv_header_blkid_blkid_h" "$ac_includes_default"
19170 if test "x$ac_cv_header_blkid_blkid_h" = xyes; then :
19171 cat >>confdefs.h <<_ACEOF
19172 #define HAVE_BLKID_BLKID_H 1
19176 as_fn_error $? "You need blkid development library installed." "$LINENO" 5
19181 ac_fn_c_check_decl "$LINENO" "blkid_do_wipe" "ac_cv_have_decl_blkid_do_wipe" "#include <blkid/blkid.h>
19183 if test "x$ac_cv_have_decl_blkid_do_wipe" = xyes; then :
19185 $as_echo "#define HAVE_BLKID_WIPE 1" >>confdefs.h
19187 enable_blkid_wipe=yes
19191 ac_fn_c_check_decl "$LINENO" "blkid_probe_step_back" "ac_cv_have_decl_blkid_probe_step_back" "#include <blkid/blkid.h>
19193 if test "x$ac_cv_have_decl_blkid_probe_step_back" = xyes; then :
19195 $as_echo "#define HAVE_BLKID_STEP_BACK 1" >>confdefs.h
19197 enable_blkid_step_back=yes
19201 ac_fn_c_check_decl "$LINENO" "blkid_reset_probe" "ac_cv_have_decl_blkid_reset_probe" "#include <blkid/blkid.h>
19203 if test "x$ac_cv_have_decl_blkid_reset_probe" = xyes; then :
19209 cat >>confdefs.h <<_ACEOF
19210 #define HAVE_DECL_BLKID_RESET_PROBE $ac_have_decl
19212 if test $ac_have_decl = 1; then :
19215 as_fn_error $? "Can not compile with blkid support, disable it by --disable-blkid." "$LINENO" 5
19217 ac_fn_c_check_decl "$LINENO" "blkid_probe_set_device" "ac_cv_have_decl_blkid_probe_set_device" "#include <blkid/blkid.h>
19219 if test "x$ac_cv_have_decl_blkid_probe_set_device" = xyes; then :
19225 cat >>confdefs.h <<_ACEOF
19226 #define HAVE_DECL_BLKID_PROBE_SET_DEVICE $ac_have_decl
19228 if test $ac_have_decl = 1; then :
19231 as_fn_error $? "Can not compile with blkid support, disable it by --disable-blkid." "$LINENO" 5
19233 ac_fn_c_check_decl "$LINENO" "blkid_probe_filter_superblocks_type" "ac_cv_have_decl_blkid_probe_filter_superblocks_type" "#include <blkid/blkid.h>
19235 if test "x$ac_cv_have_decl_blkid_probe_filter_superblocks_type" = xyes; then :
19241 cat >>confdefs.h <<_ACEOF
19242 #define HAVE_DECL_BLKID_PROBE_FILTER_SUPERBLOCKS_TYPE $ac_have_decl
19244 if test $ac_have_decl = 1; then :
19247 as_fn_error $? "Can not compile with blkid support, disable it by --disable-blkid." "$LINENO" 5
19249 ac_fn_c_check_decl "$LINENO" "blkid_do_safeprobe" "ac_cv_have_decl_blkid_do_safeprobe" "#include <blkid/blkid.h>
19251 if test "x$ac_cv_have_decl_blkid_do_safeprobe" = xyes; then :
19257 cat >>confdefs.h <<_ACEOF
19258 #define HAVE_DECL_BLKID_DO_SAFEPROBE $ac_have_decl
19260 if test $ac_have_decl = 1; then :
19263 as_fn_error $? "Can not compile with blkid support, disable it by --disable-blkid." "$LINENO" 5
19265 ac_fn_c_check_decl "$LINENO" "blkid_do_probe" "ac_cv_have_decl_blkid_do_probe" "#include <blkid/blkid.h>
19267 if test "x$ac_cv_have_decl_blkid_do_probe" = xyes; then :
19273 cat >>confdefs.h <<_ACEOF
19274 #define HAVE_DECL_BLKID_DO_PROBE $ac_have_decl
19276 if test $ac_have_decl = 1; then :
19279 as_fn_error $? "Can not compile with blkid support, disable it by --disable-blkid." "$LINENO" 5
19281 ac_fn_c_check_decl "$LINENO" "blkid_probe_lookup_value
19282 " "ac_cv_have_decl_blkid_probe_lookup_value__________" "#include <blkid/blkid.h>
19284 if test "x$ac_cv_have_decl_blkid_probe_lookup_value__________" = xyes; then :
19290 cat >>confdefs.h <<_ACEOF
19291 #define HAVE_DECL_BLKID_PROBE_LOOKUP_VALUE__________ $ac_have_decl
19293 if test $ac_have_decl = 1; then :
19296 as_fn_error $? "Can not compile with blkid support, disable it by --disable-blkid." "$LINENO" 5
19300 if test "x$enable_blkid" = "xyes"; then
19302 HAVE_BLKID_FALSE='#'
19304 HAVE_BLKID_TRUE='#'
19308 if test "x$enable_blkid_wipe" = "xyes"; then
19309 HAVE_BLKID_WIPE_TRUE=
19310 HAVE_BLKID_WIPE_FALSE='#'
19312 HAVE_BLKID_WIPE_TRUE='#'
19313 HAVE_BLKID_WIPE_FALSE=
19316 if test "x$enable_blkid_step_back" = "xyes"; then
19317 HAVE_BLKID_STEP_BACK_TRUE=
19318 HAVE_BLKID_STEP_BACK_FALSE='#'
19320 HAVE_BLKID_STEP_BACK_TRUE='#'
19321 HAVE_BLKID_STEP_BACK_FALSE=
19325 if test "x$enable_static_cryptsetup" = "xyes"; then
19326 saved_PKG_CONFIG=$PKG_CONFIG
19327 PKG_CONFIG="$PKG_CONFIG --static"
19329 LIBS="$saved_LIBS -static"
19330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poptGetContext in -lpopt" >&5
19331 $as_echo_n "checking for poptGetContext in -lpopt... " >&6; }
19332 if ${ac_cv_lib_popt_poptGetContext+:} false; then :
19333 $as_echo_n "(cached) " >&6
19335 ac_check_lib_save_LIBS=$LIBS
19336 LIBS="-lpopt $LIBS"
19337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19338 /* end confdefs.h. */
19340 /* Override any GCC internal prototype to avoid an error.
19341 Use char because int might match the return type of a GCC
19342 builtin and then its argument prototype would still apply. */
19346 char poptGetContext ();
19350 return poptGetContext ();
19355 if ac_fn_c_try_link "$LINENO"; then :
19356 ac_cv_lib_popt_poptGetContext=yes
19358 ac_cv_lib_popt_poptGetContext=no
19360 rm -f core conftest.err conftest.$ac_objext \
19361 conftest$ac_exeext conftest.$ac_ext
19362 LIBS=$ac_check_lib_save_LIBS
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_popt_poptGetContext" >&5
19365 $as_echo "$ac_cv_lib_popt_poptGetContext" >&6; }
19366 if test "x$ac_cv_lib_popt_poptGetContext" = xyes; then :
19367 cat >>confdefs.h <<_ACEOF
19368 #define HAVE_LIBPOPT 1
19371 LIBS="-lpopt $LIBS"
19374 as_fn_error $? "Cannot find static popt library." "$LINENO" 5
19378 LIBS="$saved_LIBS -static"
19381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devmapper >= 1.02.27" >&5
19382 $as_echo_n "checking for devmapper >= 1.02.27... " >&6; }
19384 if test -n "$DEVMAPPER_STATIC_CFLAGS"; then
19385 pkg_cv_DEVMAPPER_STATIC_CFLAGS="$DEVMAPPER_STATIC_CFLAGS"
19386 elif test -n "$PKG_CONFIG"; then
19387 if test -n "$PKG_CONFIG" && \
19388 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"devmapper >= 1.02.27\""; } >&5
19389 ($PKG_CONFIG --exists --print-errors "devmapper >= 1.02.27") 2>&5
19391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19392 test $ac_status = 0; }; then
19393 pkg_cv_DEVMAPPER_STATIC_CFLAGS=`$PKG_CONFIG --cflags "devmapper >= 1.02.27" 2>/dev/null`
19394 test "x$?" != "x0" && pkg_failed=yes
19401 if test -n "$DEVMAPPER_STATIC_LIBS"; then
19402 pkg_cv_DEVMAPPER_STATIC_LIBS="$DEVMAPPER_STATIC_LIBS"
19403 elif test -n "$PKG_CONFIG"; then
19404 if test -n "$PKG_CONFIG" && \
19405 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"devmapper >= 1.02.27\""; } >&5
19406 ($PKG_CONFIG --exists --print-errors "devmapper >= 1.02.27") 2>&5
19408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19409 test $ac_status = 0; }; then
19410 pkg_cv_DEVMAPPER_STATIC_LIBS=`$PKG_CONFIG --libs "devmapper >= 1.02.27" 2>/dev/null`
19411 test "x$?" != "x0" && pkg_failed=yes
19421 if test $pkg_failed = yes; then
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19423 $as_echo "no" >&6; }
19425 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19426 _pkg_short_errors_supported=yes
19428 _pkg_short_errors_supported=no
19430 if test $_pkg_short_errors_supported = yes; then
19431 DEVMAPPER_STATIC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "devmapper >= 1.02.27" 2>&1`
19433 DEVMAPPER_STATIC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "devmapper >= 1.02.27" 2>&1`
19435 # Put the nasty error message in config.log where it belongs
19436 echo "$DEVMAPPER_STATIC_PKG_ERRORS" >&5
19439 DEVMAPPER_STATIC_LIBS=$DEVMAPPER_LIBS
19440 if test "x$enable_selinux" = "xyes"; then
19441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_bool_set in -lsepol" >&5
19442 $as_echo_n "checking for sepol_bool_set in -lsepol... " >&6; }
19443 if ${ac_cv_lib_sepol_sepol_bool_set+:} false; then :
19444 $as_echo_n "(cached) " >&6
19446 ac_check_lib_save_LIBS=$LIBS
19447 LIBS="-lsepol $LIBS"
19448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19449 /* end confdefs.h. */
19451 /* Override any GCC internal prototype to avoid an error.
19452 Use char because int might match the return type of a GCC
19453 builtin and then its argument prototype would still apply. */
19457 char sepol_bool_set ();
19461 return sepol_bool_set ();
19466 if ac_fn_c_try_link "$LINENO"; then :
19467 ac_cv_lib_sepol_sepol_bool_set=yes
19469 ac_cv_lib_sepol_sepol_bool_set=no
19471 rm -f core conftest.err conftest.$ac_objext \
19472 conftest$ac_exeext conftest.$ac_ext
19473 LIBS=$ac_check_lib_save_LIBS
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_bool_set" >&5
19476 $as_echo "$ac_cv_lib_sepol_sepol_bool_set" >&6; }
19477 if test "x$ac_cv_lib_sepol_sepol_bool_set" = xyes; then :
19478 cat >>confdefs.h <<_ACEOF
19479 #define HAVE_LIBSEPOL 1
19482 LIBS="-lsepol $LIBS"
19486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
19487 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
19488 if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
19489 $as_echo_n "(cached) " >&6
19491 ac_check_lib_save_LIBS=$LIBS
19492 LIBS="-lselinux $LIBS"
19493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19494 /* end confdefs.h. */
19496 /* Override any GCC internal prototype to avoid an error.
19497 Use char because int might match the return type of a GCC
19498 builtin and then its argument prototype would still apply. */
19502 char is_selinux_enabled ();
19506 return is_selinux_enabled ();
19511 if ac_fn_c_try_link "$LINENO"; then :
19512 ac_cv_lib_selinux_is_selinux_enabled=yes
19514 ac_cv_lib_selinux_is_selinux_enabled=no
19516 rm -f core conftest.err conftest.$ac_objext \
19517 conftest$ac_exeext conftest.$ac_ext
19518 LIBS=$ac_check_lib_save_LIBS
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
19521 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
19522 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
19523 cat >>confdefs.h <<_ACEOF
19524 #define HAVE_LIBSELINUX 1
19527 LIBS="-lselinux $LIBS"
19531 DEVMAPPER_STATIC_LIBS="$DEVMAPPER_STATIC_LIBS $LIBS"
19534 elif test $pkg_failed = untried; then
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19536 $as_echo "no" >&6; }
19538 DEVMAPPER_STATIC_LIBS=$DEVMAPPER_LIBS
19539 if test "x$enable_selinux" = "xyes"; then
19540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_bool_set in -lsepol" >&5
19541 $as_echo_n "checking for sepol_bool_set in -lsepol... " >&6; }
19542 if ${ac_cv_lib_sepol_sepol_bool_set+:} false; then :
19543 $as_echo_n "(cached) " >&6
19545 ac_check_lib_save_LIBS=$LIBS
19546 LIBS="-lsepol $LIBS"
19547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19548 /* end confdefs.h. */
19550 /* Override any GCC internal prototype to avoid an error.
19551 Use char because int might match the return type of a GCC
19552 builtin and then its argument prototype would still apply. */
19556 char sepol_bool_set ();
19560 return sepol_bool_set ();
19565 if ac_fn_c_try_link "$LINENO"; then :
19566 ac_cv_lib_sepol_sepol_bool_set=yes
19568 ac_cv_lib_sepol_sepol_bool_set=no
19570 rm -f core conftest.err conftest.$ac_objext \
19571 conftest$ac_exeext conftest.$ac_ext
19572 LIBS=$ac_check_lib_save_LIBS
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_bool_set" >&5
19575 $as_echo "$ac_cv_lib_sepol_sepol_bool_set" >&6; }
19576 if test "x$ac_cv_lib_sepol_sepol_bool_set" = xyes; then :
19577 cat >>confdefs.h <<_ACEOF
19578 #define HAVE_LIBSEPOL 1
19581 LIBS="-lsepol $LIBS"
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
19586 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
19587 if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
19588 $as_echo_n "(cached) " >&6
19590 ac_check_lib_save_LIBS=$LIBS
19591 LIBS="-lselinux $LIBS"
19592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19593 /* end confdefs.h. */
19595 /* Override any GCC internal prototype to avoid an error.
19596 Use char because int might match the return type of a GCC
19597 builtin and then its argument prototype would still apply. */
19601 char is_selinux_enabled ();
19605 return is_selinux_enabled ();
19610 if ac_fn_c_try_link "$LINENO"; then :
19611 ac_cv_lib_selinux_is_selinux_enabled=yes
19613 ac_cv_lib_selinux_is_selinux_enabled=no
19615 rm -f core conftest.err conftest.$ac_objext \
19616 conftest$ac_exeext conftest.$ac_ext
19617 LIBS=$ac_check_lib_save_LIBS
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
19620 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
19621 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
19622 cat >>confdefs.h <<_ACEOF
19623 #define HAVE_LIBSELINUX 1
19626 LIBS="-lselinux $LIBS"
19630 DEVMAPPER_STATIC_LIBS="$DEVMAPPER_STATIC_LIBS $LIBS"
19634 DEVMAPPER_STATIC_CFLAGS=$pkg_cv_DEVMAPPER_STATIC_CFLAGS
19635 DEVMAPPER_STATIC_LIBS=$pkg_cv_DEVMAPPER_STATIC_LIBS
19636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19637 $as_echo "yes" >&6; }
19640 LIBS="$saved_LIBS $DEVMAPPER_STATIC_LIBS"
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_uuid in -ldevmapper" >&5
19642 $as_echo_n "checking for dm_task_set_uuid in -ldevmapper... " >&6; }
19643 if ${ac_cv_lib_devmapper_dm_task_set_uuid+:} false; then :
19644 $as_echo_n "(cached) " >&6
19646 ac_check_lib_save_LIBS=$LIBS
19647 LIBS="-ldevmapper $LIBS"
19648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19649 /* end confdefs.h. */
19651 /* Override any GCC internal prototype to avoid an error.
19652 Use char because int might match the return type of a GCC
19653 builtin and then its argument prototype would still apply. */
19657 char dm_task_set_uuid ();
19661 return dm_task_set_uuid ();
19666 if ac_fn_c_try_link "$LINENO"; then :
19667 ac_cv_lib_devmapper_dm_task_set_uuid=yes
19669 ac_cv_lib_devmapper_dm_task_set_uuid=no
19671 rm -f core conftest.err conftest.$ac_objext \
19672 conftest$ac_exeext conftest.$ac_ext
19673 LIBS=$ac_check_lib_save_LIBS
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_uuid" >&5
19676 $as_echo "$ac_cv_lib_devmapper_dm_task_set_uuid" >&6; }
19677 if test "x$ac_cv_lib_devmapper_dm_task_set_uuid" = xyes; then :
19678 cat >>confdefs.h <<_ACEOF
19679 #define HAVE_LIBDEVMAPPER 1
19682 LIBS="-ldevmapper $LIBS"
19685 as_fn_error $? "Cannot link with static device-mapper library." "$LINENO" 5
19689 LIBS="$saved_LIBS -static"
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
19691 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
19692 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
19693 $as_echo_n "(cached) " >&6
19695 ac_check_lib_save_LIBS=$LIBS
19696 LIBS="-luuid $LIBS"
19697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19698 /* end confdefs.h. */
19700 /* Override any GCC internal prototype to avoid an error.
19701 Use char because int might match the return type of a GCC
19702 builtin and then its argument prototype would still apply. */
19706 char uuid_generate ();
19710 return uuid_generate ();
19715 if ac_fn_c_try_link "$LINENO"; then :
19716 ac_cv_lib_uuid_uuid_generate=yes
19718 ac_cv_lib_uuid_uuid_generate=no
19720 rm -f core conftest.err conftest.$ac_objext \
19721 conftest$ac_exeext conftest.$ac_ext
19722 LIBS=$ac_check_lib_save_LIBS
19724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
19725 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
19726 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
19727 cat >>confdefs.h <<_ACEOF
19728 #define HAVE_LIBUUID 1
19731 LIBS="-luuid $LIBS"
19734 as_fn_error $? "Cannot find static uuid library." "$LINENO" 5
19739 PKG_CONFIG=$saved_PKG_CONFIG
19742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd tmpfiles config directory" >&5
19743 $as_echo_n "checking for systemd tmpfiles config directory... " >&6; }
19745 if test -n "$systemd_tmpfilesdir"; then
19746 pkg_cv_systemd_tmpfilesdir="$systemd_tmpfilesdir"
19747 elif test -n "$PKG_CONFIG"; then
19748 if test -n "$PKG_CONFIG" && \
19749 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
19750 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
19752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19753 test $ac_status = 0; }; then
19754 pkg_cv_systemd_tmpfilesdir=`$PKG_CONFIG --variable="tmpfilesdir" "systemd" 2>/dev/null`
19755 test "x$?" != "x0" && pkg_failed=yes
19762 systemd_tmpfilesdir=$pkg_cv_systemd_tmpfilesdir
19764 if test "x$systemd_tmpfilesdir" = x""; then :
19765 systemd_tmpfilesdir=no
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $systemd_tmpfilesdir" >&5
19768 $as_echo "$systemd_tmpfilesdir" >&6; }
19789 # Check whether --enable-dev-random was given.
19790 if test "${enable_dev_random+set}" = set; then :
19791 enableval=$enable_dev_random;
19794 if test "x$enable_dev_random" = "xyes"; then
19795 default_rng=/dev/random
19797 default_rng=/dev/urandom
19800 cat >>confdefs.h <<_ACEOF
19801 #define DEFAULT_RNG "$default_rng"
19814 # Check whether --with-plain-hash was given.
19815 if test "${with_plain_hash+set}" = set; then :
19816 withval=$with_plain_hash;
19817 cat >>confdefs.h <<_ACEOF
19818 #define DEFAULT_PLAIN_HASH "$withval"
19824 cat >>confdefs.h <<_ACEOF
19825 #define DEFAULT_PLAIN_HASH "ripemd160"
19833 # Check whether --with-plain-cipher was given.
19834 if test "${with_plain_cipher+set}" = set; then :
19835 withval=$with_plain_cipher;
19836 cat >>confdefs.h <<_ACEOF
19837 #define DEFAULT_PLAIN_CIPHER "$withval"
19843 cat >>confdefs.h <<_ACEOF
19844 #define DEFAULT_PLAIN_CIPHER "aes"
19852 # Check whether --with-plain-mode was given.
19853 if test "${with_plain_mode+set}" = set; then :
19854 withval=$with_plain_mode;
19855 cat >>confdefs.h <<_ACEOF
19856 #define DEFAULT_PLAIN_MODE "$withval"
19862 cat >>confdefs.h <<_ACEOF
19863 #define DEFAULT_PLAIN_MODE "cbc-essiv:sha256"
19871 # Check whether --with-plain-keybits was given.
19872 if test "${with_plain_keybits+set}" = set; then :
19873 withval=$with_plain_keybits;
19874 cat >>confdefs.h <<_ACEOF
19875 #define DEFAULT_PLAIN_KEYBITS $withval
19881 cat >>confdefs.h <<_ACEOF
19882 #define DEFAULT_PLAIN_KEYBITS 256
19891 # Check whether --with-luks1-hash was given.
19892 if test "${with_luks1_hash+set}" = set; then :
19893 withval=$with_luks1_hash;
19894 cat >>confdefs.h <<_ACEOF
19895 #define DEFAULT_LUKS1_HASH "$withval"
19901 cat >>confdefs.h <<_ACEOF
19902 #define DEFAULT_LUKS1_HASH "sha256"
19910 # Check whether --with-luks1-cipher was given.
19911 if test "${with_luks1_cipher+set}" = set; then :
19912 withval=$with_luks1_cipher;
19913 cat >>confdefs.h <<_ACEOF
19914 #define DEFAULT_LUKS1_CIPHER "$withval"
19920 cat >>confdefs.h <<_ACEOF
19921 #define DEFAULT_LUKS1_CIPHER "aes"
19929 # Check whether --with-luks1-mode was given.
19930 if test "${with_luks1_mode+set}" = set; then :
19931 withval=$with_luks1_mode;
19932 cat >>confdefs.h <<_ACEOF
19933 #define DEFAULT_LUKS1_MODE "$withval"
19939 cat >>confdefs.h <<_ACEOF
19940 #define DEFAULT_LUKS1_MODE "xts-plain64"
19948 # Check whether --with-luks1-keybits was given.
19949 if test "${with_luks1_keybits+set}" = set; then :
19950 withval=$with_luks1_keybits;
19951 cat >>confdefs.h <<_ACEOF
19952 #define DEFAULT_LUKS1_KEYBITS $withval
19958 cat >>confdefs.h <<_ACEOF
19959 #define DEFAULT_LUKS1_KEYBITS 256
19967 # Check whether --enable-luks_adjust_xts_keysize was given.
19968 if test "${enable_luks_adjust_xts_keysize+set}" = set; then :
19969 enableval=$enable_luks_adjust_xts_keysize;
19971 enable_luks_adjust_xts_keysize=yes
19974 if test "x$enable_luks_adjust_xts_keysize" = "xyes"; then
19976 $as_echo "#define ENABLE_LUKS_ADJUST_XTS_KEYSIZE 1" >>confdefs.h
19981 # Check whether --with-luks2-pbkdf was given.
19982 if test "${with_luks2_pbkdf+set}" = set; then :
19983 withval=$with_luks2_pbkdf;
19984 cat >>confdefs.h <<_ACEOF
19985 #define DEFAULT_LUKS2_PBKDF "$withval"
19991 cat >>confdefs.h <<_ACEOF
19992 #define DEFAULT_LUKS2_PBKDF "argon2i"
20000 # Check whether --with-luks1-iter-time was given.
20001 if test "${with_luks1_iter_time+set}" = set; then :
20002 withval=$with_luks1_iter_time;
20003 cat >>confdefs.h <<_ACEOF
20004 #define DEFAULT_LUKS1_ITER_TIME $withval
20010 cat >>confdefs.h <<_ACEOF
20011 #define DEFAULT_LUKS1_ITER_TIME 2000
20019 # Check whether --with-luks2-iter-time was given.
20020 if test "${with_luks2_iter_time+set}" = set; then :
20021 withval=$with_luks2_iter_time;
20022 cat >>confdefs.h <<_ACEOF
20023 #define DEFAULT_LUKS2_ITER_TIME $withval
20029 cat >>confdefs.h <<_ACEOF
20030 #define DEFAULT_LUKS2_ITER_TIME 2000
20038 # Check whether --with-luks2-memory-kb was given.
20039 if test "${with_luks2_memory_kb+set}" = set; then :
20040 withval=$with_luks2_memory_kb;
20041 cat >>confdefs.h <<_ACEOF
20042 #define DEFAULT_LUKS2_MEMORY_KB $withval
20048 cat >>confdefs.h <<_ACEOF
20049 #define DEFAULT_LUKS2_MEMORY_KB 1048576
20057 # Check whether --with-luks2-parallel-threads was given.
20058 if test "${with_luks2_parallel_threads+set}" = set; then :
20059 withval=$with_luks2_parallel_threads;
20060 cat >>confdefs.h <<_ACEOF
20061 #define DEFAULT_LUKS2_PARALLEL_THREADS $withval
20067 cat >>confdefs.h <<_ACEOF
20068 #define DEFAULT_LUKS2_PARALLEL_THREADS 4
20077 # Check whether --with-luks2-keyslot-cipher was given.
20078 if test "${with_luks2_keyslot_cipher+set}" = set; then :
20079 withval=$with_luks2_keyslot_cipher;
20080 cat >>confdefs.h <<_ACEOF
20081 #define DEFAULT_LUKS2_KEYSLOT_CIPHER "$withval"
20087 cat >>confdefs.h <<_ACEOF
20088 #define DEFAULT_LUKS2_KEYSLOT_CIPHER "aes-xts-plain64"
20096 # Check whether --with-luks2-keyslot-keybits was given.
20097 if test "${with_luks2_keyslot_keybits+set}" = set; then :
20098 withval=$with_luks2_keyslot_keybits;
20099 cat >>confdefs.h <<_ACEOF
20100 #define DEFAULT_LUKS2_KEYSLOT_KEYBITS $withval
20106 cat >>confdefs.h <<_ACEOF
20107 #define DEFAULT_LUKS2_KEYSLOT_KEYBITS 512
20116 # Check whether --with-loopaes-cipher was given.
20117 if test "${with_loopaes_cipher+set}" = set; then :
20118 withval=$with_loopaes_cipher;
20119 cat >>confdefs.h <<_ACEOF
20120 #define DEFAULT_LOOPAES_CIPHER "$withval"
20126 cat >>confdefs.h <<_ACEOF
20127 #define DEFAULT_LOOPAES_CIPHER "aes"
20135 # Check whether --with-loopaes-keybits was given.
20136 if test "${with_loopaes_keybits+set}" = set; then :
20137 withval=$with_loopaes_keybits;
20138 cat >>confdefs.h <<_ACEOF
20139 #define DEFAULT_LOOPAES_KEYBITS $withval
20145 cat >>confdefs.h <<_ACEOF
20146 #define DEFAULT_LOOPAES_KEYBITS 256
20155 # Check whether --with-keyfile-size-maxkb was given.
20156 if test "${with_keyfile_size_maxkb+set}" = set; then :
20157 withval=$with_keyfile_size_maxkb;
20158 cat >>confdefs.h <<_ACEOF
20159 #define DEFAULT_KEYFILE_SIZE_MAXKB $withval
20165 cat >>confdefs.h <<_ACEOF
20166 #define DEFAULT_KEYFILE_SIZE_MAXKB 8192
20174 # Check whether --with-passphrase-size-max was given.
20175 if test "${with_passphrase_size_max+set}" = set; then :
20176 withval=$with_passphrase_size_max;
20177 cat >>confdefs.h <<_ACEOF
20178 #define DEFAULT_PASSPHRASE_SIZE_MAX $withval
20184 cat >>confdefs.h <<_ACEOF
20185 #define DEFAULT_PASSPHRASE_SIZE_MAX 512
20194 # Check whether --with-verity-hash was given.
20195 if test "${with_verity_hash+set}" = set; then :
20196 withval=$with_verity_hash;
20197 cat >>confdefs.h <<_ACEOF
20198 #define DEFAULT_VERITY_HASH "$withval"
20204 cat >>confdefs.h <<_ACEOF
20205 #define DEFAULT_VERITY_HASH "sha256"
20213 # Check whether --with-verity-data-block was given.
20214 if test "${with_verity_data_block+set}" = set; then :
20215 withval=$with_verity_data_block;
20216 cat >>confdefs.h <<_ACEOF
20217 #define DEFAULT_VERITY_DATA_BLOCK $withval
20223 cat >>confdefs.h <<_ACEOF
20224 #define DEFAULT_VERITY_DATA_BLOCK 4096
20232 # Check whether --with-verity-hash-block was given.
20233 if test "${with_verity_hash_block+set}" = set; then :
20234 withval=$with_verity_hash_block;
20235 cat >>confdefs.h <<_ACEOF
20236 #define DEFAULT_VERITY_HASH_BLOCK $withval
20242 cat >>confdefs.h <<_ACEOF
20243 #define DEFAULT_VERITY_HASH_BLOCK 4096
20251 # Check whether --with-verity-salt-size was given.
20252 if test "${with_verity_salt_size+set}" = set; then :
20253 withval=$with_verity_salt_size;
20254 cat >>confdefs.h <<_ACEOF
20255 #define DEFAULT_VERITY_SALT_SIZE $withval
20261 cat >>confdefs.h <<_ACEOF
20262 #define DEFAULT_VERITY_SALT_SIZE 32
20270 # Check whether --with-verity-fec-roots was given.
20271 if test "${with_verity_fec_roots+set}" = set; then :
20272 withval=$with_verity_fec_roots;
20273 cat >>confdefs.h <<_ACEOF
20274 #define DEFAULT_VERITY_FEC_ROOTS $withval
20280 cat >>confdefs.h <<_ACEOF
20281 #define DEFAULT_VERITY_FEC_ROOTS 2
20290 # Check whether --with-tmpfilesdir was given.
20291 if test "${with_tmpfilesdir+set}" = set; then :
20292 withval=$with_tmpfilesdir;
20293 cat >>confdefs.h <<_ACEOF
20294 #define DEFAULT_TMPFILESDIR "$withval"
20300 cat >>confdefs.h <<_ACEOF
20301 #define DEFAULT_TMPFILESDIR ""
20308 test -z "$with_tmpfilesdir" && with_tmpfilesdir=$systemd_tmpfilesdir
20309 test "x$with_tmpfilesdir" = "xno" || {
20311 case "${with_tmpfilesdir}" in
20313 *) as_fn_error $? "with-tmpfilesdir argument must be an absolute path." "$LINENO" 5;;
20316 DEFAULT_TMPFILESDIR=$with_tmpfilesdir
20319 if test -n "$DEFAULT_TMPFILESDIR"; then
20320 CRYPTSETUP_TMPFILE_TRUE=
20321 CRYPTSETUP_TMPFILE_FALSE='#'
20323 CRYPTSETUP_TMPFILE_TRUE='#'
20324 CRYPTSETUP_TMPFILE_FALSE=
20329 # Check whether --with-luks2-lock-path was given.
20330 if test "${with_luks2_lock_path+set}" = set; then :
20331 withval=$with_luks2_lock_path;
20332 cat >>confdefs.h <<_ACEOF
20333 #define DEFAULT_LUKS2_LOCK_PATH "$withval"
20339 cat >>confdefs.h <<_ACEOF
20340 #define DEFAULT_LUKS2_LOCK_PATH "/run/cryptsetup"
20347 test -z "$with_luks2_lock_path" && with_luks2_lock_path=/run/cryptsetup
20349 case "${with_luks2_lock_path}" in
20351 *) as_fn_error $? "with-luks2-lock-path argument must be an absolute path." "$LINENO" 5;;
20354 DEFAULT_LUKS2_LOCK_PATH=$with_luks2_lock_path
20358 # Check whether --with-luks2-lock-dir-perms was given.
20359 if test "${with_luks2_lock_dir_perms+set}" = set; then :
20360 withval=$with_luks2_lock_dir_perms;
20361 cat >>confdefs.h <<_ACEOF
20362 #define DEFAULT_LUKS2_LOCK_DIR_PERMS $withval
20368 cat >>confdefs.h <<_ACEOF
20369 #define DEFAULT_LUKS2_LOCK_DIR_PERMS 0700
20376 test -z "$with_luks2_lock_dir_perms" && with_luks2_lock_dir_perms=0700
20377 DEFAULT_LUKS2_LOCK_DIR_PERMS=$with_luks2_lock_dir_perms
20381 # Check whether --with-default_luks_format was given.
20382 if test "${with_default_luks_format+set}" = set; then :
20383 withval=$with_default_luks_format;
20385 with_default_luks_format=LUKS2
20389 case $with_default_luks_format in
20390 LUKS1) default_luks=CRYPT_LUKS1 ;;
20391 LUKS2) default_luks=CRYPT_LUKS2 ;;
20392 *) as_fn_error $? "Unknown default LUKS format. Use LUKS1 or LUKS2 only." "$LINENO" 5 ;;
20395 cat >>confdefs.h <<_ACEOF
20396 #define DEFAULT_LUKS_FORMAT $default_luks
20401 ac_config_files="$ac_config_files Makefile lib/libcryptsetup.pc po/Makefile.in scripts/cryptsetup.conf tests/Makefile"
20403 cat >confcache <<\_ACEOF
20404 # This file is a shell script that caches the results of configure
20405 # tests run on this system so they can be shared between configure
20406 # scripts and configure runs, see configure's option --config-cache.
20407 # It is not useful on other systems. If it contains results you don't
20408 # want to keep, you may remove or edit it.
20410 # config.status only pays attention to the cache file if you give it
20411 # the --recheck option to rerun configure.
20413 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20414 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20415 # following values.
20419 # The following way of writing the cache mishandles newlines in values,
20420 # but we know of no workaround that is simple, portable, and efficient.
20421 # So, we kill variables containing newlines.
20422 # Ultrix sh set writes to stderr and can't be redirected directly,
20423 # and sets the high bit in the cache file unless we assign to the vars.
20425 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20426 eval ac_val=\$$ac_var
20430 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20431 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20434 _ | IFS | as_nl) ;; #(
20435 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20436 *) { eval $ac_var=; unset $ac_var;} ;;
20442 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20443 *${as_nl}ac_space=\ *)
20444 # `set' does not quote correctly, so add quotes: double-quote
20445 # substitution turns \\\\ into \\, and sed turns \\ into \.
20448 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20451 # `set' quotes correctly as required by POSIX, so do not add quotes.
20452 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20461 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20463 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20465 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20466 if test -w "$cache_file"; then
20467 if test "x$cache_file" != "x/dev/null"; then
20468 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20469 $as_echo "$as_me: updating cache $cache_file" >&6;}
20470 if test ! -f "$cache_file" || test -h "$cache_file"; then
20471 cat confcache >"$cache_file"
20473 case $cache_file in #(
20475 mv -f confcache "$cache_file"$$ &&
20476 mv -f "$cache_file"$$ "$cache_file" ;; #(
20478 mv -f confcache "$cache_file" ;;
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20484 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20489 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20490 # Let make expand exec_prefix.
20491 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20493 DEFS=-DHAVE_CONFIG_H
20498 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20499 # 1. Remove the extension, and $U if already installed.
20500 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20501 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20502 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20503 # will be set to the directory where LIBOBJS objects are built.
20504 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20505 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20507 LIBOBJS=$ac_libobjs
20509 LTLIBOBJS=$ac_ltlibobjs
20512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20513 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20514 if test -n "$am_sleep_pid"; then
20515 # Hide warnings about reused PIDs.
20516 wait $am_sleep_pid 2>/dev/null
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20519 $as_echo "done" >&6; }
20520 if test -n "$EXEEXT"; then
20522 am__EXEEXT_FALSE='#'
20524 am__EXEEXT_TRUE='#'
20528 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20529 as_fn_error $? "conditional \"AMDEP\" was never defined.
20530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20532 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20533 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20536 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20537 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20540 if test -z "${KERNEL_KEYRING_TRUE}" && test -z "${KERNEL_KEYRING_FALSE}"; then
20541 as_fn_error $? "conditional \"KERNEL_KEYRING\" was never defined.
20542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20545 if test -z "${STATIC_TOOLS_TRUE}" && test -z "${STATIC_TOOLS_FALSE}"; then
20546 as_fn_error $? "conditional \"STATIC_TOOLS\" was never defined.
20547 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20549 if test -z "${CRYPTSETUP_TRUE}" && test -z "${CRYPTSETUP_FALSE}"; then
20550 as_fn_error $? "conditional \"CRYPTSETUP\" was never defined.
20551 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20553 if test -z "${VERITYSETUP_TRUE}" && test -z "${VERITYSETUP_FALSE}"; then
20554 as_fn_error $? "conditional \"VERITYSETUP\" was never defined.
20555 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20557 if test -z "${REENCRYPT_TRUE}" && test -z "${REENCRYPT_FALSE}"; then
20558 as_fn_error $? "conditional \"REENCRYPT\" was never defined.
20559 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20561 if test -z "${INTEGRITYSETUP_TRUE}" && test -z "${INTEGRITYSETUP_FALSE}"; then
20562 as_fn_error $? "conditional \"INTEGRITYSETUP\" was never defined.
20563 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20565 if test -z "${CRYPTO_BACKEND_GCRYPT_TRUE}" && test -z "${CRYPTO_BACKEND_GCRYPT_FALSE}"; then
20566 as_fn_error $? "conditional \"CRYPTO_BACKEND_GCRYPT\" was never defined.
20567 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20569 if test -z "${CRYPTO_BACKEND_OPENSSL_TRUE}" && test -z "${CRYPTO_BACKEND_OPENSSL_FALSE}"; then
20570 as_fn_error $? "conditional \"CRYPTO_BACKEND_OPENSSL\" was never defined.
20571 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20573 if test -z "${CRYPTO_BACKEND_NSS_TRUE}" && test -z "${CRYPTO_BACKEND_NSS_FALSE}"; then
20574 as_fn_error $? "conditional \"CRYPTO_BACKEND_NSS\" was never defined.
20575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20577 if test -z "${CRYPTO_BACKEND_KERNEL_TRUE}" && test -z "${CRYPTO_BACKEND_KERNEL_FALSE}"; then
20578 as_fn_error $? "conditional \"CRYPTO_BACKEND_KERNEL\" was never defined.
20579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20581 if test -z "${CRYPTO_BACKEND_NETTLE_TRUE}" && test -z "${CRYPTO_BACKEND_NETTLE_FALSE}"; then
20582 as_fn_error $? "conditional \"CRYPTO_BACKEND_NETTLE\" was never defined.
20583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20585 if test -z "${CRYPTO_INTERNAL_PBKDF2_TRUE}" && test -z "${CRYPTO_INTERNAL_PBKDF2_FALSE}"; then
20586 as_fn_error $? "conditional \"CRYPTO_INTERNAL_PBKDF2\" was never defined.
20587 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20589 if test -z "${CRYPTO_INTERNAL_ARGON2_TRUE}" && test -z "${CRYPTO_INTERNAL_ARGON2_FALSE}"; then
20590 as_fn_error $? "conditional \"CRYPTO_INTERNAL_ARGON2\" was never defined.
20591 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20593 if test -z "${CRYPTO_INTERNAL_SSE_ARGON2_TRUE}" && test -z "${CRYPTO_INTERNAL_SSE_ARGON2_FALSE}"; then
20594 as_fn_error $? "conditional \"CRYPTO_INTERNAL_SSE_ARGON2\" was never defined.
20595 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20597 if test -z "${HAVE_BLKID_TRUE}" && test -z "${HAVE_BLKID_FALSE}"; then
20598 as_fn_error $? "conditional \"HAVE_BLKID\" was never defined.
20599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20601 if test -z "${HAVE_BLKID_WIPE_TRUE}" && test -z "${HAVE_BLKID_WIPE_FALSE}"; then
20602 as_fn_error $? "conditional \"HAVE_BLKID_WIPE\" was never defined.
20603 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20605 if test -z "${HAVE_BLKID_STEP_BACK_TRUE}" && test -z "${HAVE_BLKID_STEP_BACK_FALSE}"; then
20606 as_fn_error $? "conditional \"HAVE_BLKID_STEP_BACK\" was never defined.
20607 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20609 if test -z "${CRYPTSETUP_TMPFILE_TRUE}" && test -z "${CRYPTSETUP_TMPFILE_FALSE}"; then
20610 as_fn_error $? "conditional \"CRYPTSETUP_TMPFILE\" was never defined.
20611 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20614 : "${CONFIG_STATUS=./config.status}"
20616 ac_clean_files_save=$ac_clean_files
20617 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20618 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20619 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20621 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20623 # Generated by $as_me.
20624 # Run this file to recreate the current configuration.
20625 # Compiler output produced by configure, useful for debugging
20626 # configure, is in config.log if it exists.
20629 ac_cs_recheck=false
20632 SHELL=\${CONFIG_SHELL-$SHELL}
20635 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20636 ## -------------------- ##
20637 ## M4sh Initialization. ##
20638 ## -------------------- ##
20640 # Be more Bourne compatible
20641 DUALCASE=1; export DUALCASE # for MKS sh
20642 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20645 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20646 # is contrary to our usage. Disable this feature.
20647 alias -g '${1+"$@"}'='"$@"'
20648 setopt NO_GLOB_SUBST
20650 case `(set -o) 2>/dev/null` in #(
20662 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20663 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20664 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20665 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20666 # Prefer a ksh shell builtin over an external printf program on Solaris,
20667 # but without wasting forks for bash or zsh.
20668 if test -z "$BASH_VERSION$ZSH_VERSION" \
20669 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20670 as_echo='print -r --'
20671 as_echo_n='print -rn --'
20672 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20673 as_echo='printf %s\n'
20674 as_echo_n='printf %s'
20676 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20677 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20678 as_echo_n='/usr/ucb/echo -n'
20680 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20681 as_echo_n_body='eval
20685 expr "X$arg" : "X\\(.*\\)$as_nl";
20686 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20688 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20690 export as_echo_n_body
20691 as_echo_n='sh -c $as_echo_n_body as_echo'
20693 export as_echo_body
20694 as_echo='sh -c $as_echo_body as_echo'
20697 # The user is always right.
20698 if test "${PATH_SEPARATOR+set}" != set; then
20700 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20701 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20708 # We need space, tab and new line, in precisely that order. Quoting is
20709 # there to prevent editors from complaining about space-tab.
20710 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20711 # splitting by setting IFS to empty value.)
20714 # Find who we are. Look in the path if we contain no directory separator.
20717 *[\\/]* ) as_myself=$0 ;;
20718 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20719 for as_dir in $PATH
20722 test -z "$as_dir" && as_dir=.
20723 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20729 # We did not find ourselves, most probably we were run as `sh COMMAND'
20730 # in which case we are not to be found in the path.
20731 if test "x$as_myself" = x; then
20734 if test ! -f "$as_myself"; then
20735 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20739 # Unset variables that we do not need and which cause bugs (e.g. in
20740 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20741 # suppresses any "Segmentation fault" message there. '((' could
20742 # trigger a bug in pdksh 5.2.14.
20743 for as_var in BASH_ENV ENV MAIL MAILPATH
20744 do eval test x\${$as_var+set} = xset \
20745 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20758 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20761 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20762 # ----------------------------------------
20763 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20764 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20765 # script with STATUS, using 1 if that was 0.
20768 as_status=$1; test $as_status -eq 0 && as_status=1
20770 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20771 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20773 $as_echo "$as_me: error: $2" >&2
20774 as_fn_exit $as_status
20778 # as_fn_set_status STATUS
20779 # -----------------------
20780 # Set $? to STATUS, without forking.
20781 as_fn_set_status ()
20784 } # as_fn_set_status
20786 # as_fn_exit STATUS
20787 # -----------------
20788 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20792 as_fn_set_status $1
20798 # Portably unset VAR.
20801 { eval $1=; unset $1;}
20803 as_unset=as_fn_unset
20804 # as_fn_append VAR VALUE
20805 # ----------------------
20806 # Append the text in VALUE to the end of the definition contained in VAR. Take
20807 # advantage of any shell optimizations that allow amortized linear growth over
20808 # repeated appends, instead of the typical quadratic growth present in naive
20810 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20811 eval 'as_fn_append ()
20822 # as_fn_arith ARG...
20823 # ------------------
20824 # Perform arithmetic evaluation on the ARGs, and store the result in the
20825 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20826 # must be portable across $(()) and expr.
20827 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20828 eval 'as_fn_arith ()
20835 as_val=`expr "$@" || test $? -eq 1`
20840 if expr a : '\(a\)' >/dev/null 2>&1 &&
20841 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20847 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20848 as_basename=basename
20853 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20859 as_me=`$as_basename -- "$0" ||
20860 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20861 X"$0" : 'X\(//\)$' \| \
20862 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20864 sed '/^.*\/\([^/][^/]*\)\/*$/{
20878 # Avoid depending upon Character Ranges.
20879 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20880 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20881 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20882 as_cr_digits='0123456789'
20883 as_cr_alnum=$as_cr_Letters$as_cr_digits
20885 ECHO_C= ECHO_N= ECHO_T=
20886 case `echo -n x` in #(((((
20888 case `echo 'xy\c'` in
20889 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20891 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20898 rm -f conf$$ conf$$.exe conf$$.file
20899 if test -d conf$$.dir; then
20900 rm -f conf$$.dir/conf$$.file
20903 mkdir conf$$.dir 2>/dev/null
20905 if (echo >conf$$.file) 2>/dev/null; then
20906 if ln -s conf$$.file conf$$ 2>/dev/null; then
20908 # ... but there are two gotchas:
20909 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20910 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20911 # In both cases, we have to default to `cp -pR'.
20912 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20914 elif ln conf$$.file conf$$ 2>/dev/null; then
20922 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20923 rmdir conf$$.dir 2>/dev/null
20928 # Create "$as_dir" as a directory, including parents if necessary.
20933 -*) as_dir=./$as_dir;;
20935 test -d "$as_dir" || eval $as_mkdir_p || {
20939 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20940 *) as_qdir=$as_dir;;
20942 as_dirs="'$as_qdir' $as_dirs"
20943 as_dir=`$as_dirname -- "$as_dir" ||
20944 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20945 X"$as_dir" : 'X\(//\)[^/]' \| \
20946 X"$as_dir" : 'X\(//\)$' \| \
20947 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20948 $as_echo X"$as_dir" |
20949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20953 /^X\(\/\/\)[^/].*/{
20966 test -d "$as_dir" && break
20968 test -z "$as_dirs" || eval "mkdir $as_dirs"
20969 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20973 if mkdir -p . 2>/dev/null; then
20974 as_mkdir_p='mkdir -p "$as_dir"'
20976 test -d ./-p && rmdir ./-p
20981 # as_fn_executable_p FILE
20982 # -----------------------
20983 # Test if FILE is an executable regular file.
20984 as_fn_executable_p ()
20986 test -f "$1" && test -x "$1"
20987 } # as_fn_executable_p
20988 as_test_x='test -x'
20989 as_executable_p=as_fn_executable_p
20991 # Sed expression to map a string onto a valid CPP name.
20992 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20994 # Sed expression to map a string onto a valid variable name.
20995 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20999 ## ----------------------------------- ##
21000 ## Main body of $CONFIG_STATUS script. ##
21001 ## ----------------------------------- ##
21003 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21006 # Save the log message, to keep $0 and so on meaningful, and to
21007 # report actual input values of CONFIG_FILES etc. instead of their
21008 # values after options handling.
21010 This file was extended by cryptsetup $as_me 2.3.3, which was
21011 generated by GNU Autoconf 2.69. Invocation command line was
21013 CONFIG_FILES = $CONFIG_FILES
21014 CONFIG_HEADERS = $CONFIG_HEADERS
21015 CONFIG_LINKS = $CONFIG_LINKS
21016 CONFIG_COMMANDS = $CONFIG_COMMANDS
21019 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21024 case $ac_config_files in *"
21025 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21028 case $ac_config_headers in *"
21029 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21034 # Files that config.status was made for.
21035 config_files="$ac_config_files"
21036 config_headers="$ac_config_headers"
21037 config_commands="$ac_config_commands"
21041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21043 \`$as_me' instantiates files and other configuration actions
21044 from templates according to the current configuration. Unless the files
21045 and actions are specified as TAGs, all are instantiated by default.
21047 Usage: $0 [OPTION]... [TAG]...
21049 -h, --help print this help, then exit
21050 -V, --version print version number and configuration settings, then exit
21051 --config print configuration, then exit
21052 -q, --quiet, --silent
21053 do not print progress messages
21054 -d, --debug don't remove temporary files
21055 --recheck update $as_me by reconfiguring in the same conditions
21056 --file=FILE[:TEMPLATE]
21057 instantiate the configuration file FILE
21058 --header=FILE[:TEMPLATE]
21059 instantiate the configuration header FILE
21061 Configuration files:
21064 Configuration headers:
21067 Configuration commands:
21070 Report bugs to the package provider."
21073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21074 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21076 cryptsetup config.status 2.3.3
21077 configured by $0, generated by GNU Autoconf 2.69,
21078 with options \\"\$ac_cs_config\\"
21080 Copyright (C) 2012 Free Software Foundation, Inc.
21081 This config.status script is free software; the Free Software Foundation
21082 gives unlimited permission to copy, distribute and modify it."
21089 test -n "\$AWK" || AWK=awk
21092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21093 # The default lists apply if the user does not specify any file.
21099 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21100 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21104 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21116 # Handling of the options.
21117 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21119 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21120 $as_echo "$ac_cs_version"; exit ;;
21121 --config | --confi | --conf | --con | --co | --c )
21122 $as_echo "$ac_cs_config"; exit ;;
21123 --debug | --debu | --deb | --de | --d | -d )
21125 --file | --fil | --fi | --f )
21128 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21129 '') as_fn_error $? "missing file argument" ;;
21131 as_fn_append CONFIG_FILES " '$ac_optarg'"
21132 ac_need_defaults=false;;
21133 --header | --heade | --head | --hea )
21136 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21138 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21139 ac_need_defaults=false;;
21141 # Conflict between --help and --header
21142 as_fn_error $? "ambiguous option: \`$1'
21143 Try \`$0 --help' for more information.";;
21144 --help | --hel | -h )
21145 $as_echo "$ac_cs_usage"; exit ;;
21146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21147 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21150 # This is an error.
21151 -*) as_fn_error $? "unrecognized option: \`$1'
21152 Try \`$0 --help' for more information." ;;
21154 *) as_fn_append ac_config_targets " $1"
21155 ac_need_defaults=false ;;
21161 ac_configure_extra_args=
21163 if $ac_cs_silent; then
21165 ac_configure_extra_args="$ac_configure_extra_args --silent"
21169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21170 if \$ac_cs_recheck; then
21171 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21173 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21174 CONFIG_SHELL='$SHELL'
21175 export CONFIG_SHELL
21180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21184 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21185 ## Running $as_me. ##
21191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21195 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21198 # The HP-UX ksh and POSIX shell print the target directory to stdout
21199 # if CDPATH is set.
21200 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21202 sed_quote_subst='$sed_quote_subst'
21203 double_quote_subst='$double_quote_subst'
21204 delay_variable_subst='$delay_variable_subst'
21205 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21206 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21207 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21208 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21209 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21210 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21211 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21212 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21213 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21214 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21215 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21216 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21217 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21218 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21219 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21220 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21221 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21222 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21223 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21224 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21225 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21226 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21227 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21228 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21229 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21230 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21231 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21232 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21233 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21234 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21235 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21236 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21237 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21238 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21239 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21240 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21241 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21242 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21243 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21244 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21245 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21246 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21247 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21248 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21249 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21250 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21251 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21252 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21253 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21254 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21255 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21256 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21257 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21258 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21259 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21260 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21261 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21262 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21263 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
21264 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21265 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21266 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21267 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21268 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21269 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21270 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21271 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21272 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21273 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21274 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21275 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21276 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21277 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21278 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21279 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21280 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21281 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21282 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21283 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21284 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21285 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21286 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21287 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21288 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21289 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21290 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21291 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21292 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21293 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21294 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21295 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21296 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21297 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21298 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21299 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21300 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21301 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21302 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21303 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21304 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21305 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21306 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21307 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21308 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21309 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21310 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21311 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21312 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21313 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21314 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21315 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21316 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21317 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21318 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21319 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21320 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21321 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21322 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21323 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21324 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21325 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21326 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21327 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21328 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21329 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21330 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21331 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21332 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21333 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21334 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21335 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21336 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21337 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21338 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21339 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21342 LTCFLAGS='$LTCFLAGS'
21343 compiler='$compiler_DEFAULT'
21345 # A function that is used when there is no print builtin or printf.
21346 func_fallback_echo ()
21348 eval 'cat <<_LTECHO_EOF
21353 # Quote evaled strings.
21368 deplibs_check_method \
21373 sharedlib_from_linklib_cmd \
21376 archiver_list_spec \
21382 lt_cv_sys_global_symbol_pipe \
21383 lt_cv_sys_global_symbol_to_cdecl \
21384 lt_cv_sys_global_symbol_to_import \
21385 lt_cv_sys_global_symbol_to_c_name_address \
21386 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21387 lt_cv_nm_interface \
21388 nm_file_list_spec \
21389 lt_cv_truncate_bin \
21390 lt_prog_compiler_no_builtin_flag \
21391 lt_prog_compiler_pic \
21392 lt_prog_compiler_wl \
21393 lt_prog_compiler_static \
21394 lt_cv_prog_compiler_c_o \
21403 export_dynamic_flag_spec \
21404 whole_archive_flag_spec \
21405 compiler_needs_object \
21407 allow_undefined_flag \
21408 no_undefined_flag \
21409 hardcode_libdir_flag_spec \
21410 hardcode_libdir_separator \
21414 variables_saved_for_relink \
21416 library_names_spec \
21418 install_override_mode \
21422 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21423 *[\\\\\\\`\\"\\\$]*)
21424 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21427 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21432 # Double-quote double-evaled strings.
21433 for var in reload_cmds \
21434 old_postinstall_cmds \
21435 old_postuninstall_cmds \
21437 extract_expsyms_cmds \
21438 old_archive_from_new_cmds \
21439 old_archive_from_expsyms_cmds \
21441 archive_expsym_cmds \
21443 module_expsym_cmds \
21444 export_symbols_cmds \
21448 postuninstall_cmds \
21450 sys_lib_search_path_spec \
21451 configure_time_dlsearch_path \
21452 configure_time_lt_sys_library_path; do
21453 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21454 *[\\\\\\\`\\"\\\$]*)
21455 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21458 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21463 ac_aux_dir='$ac_aux_dir'
21465 # See if we are running on zsh, and set the options that allow our
21466 # commands through without removal of \ escapes INIT.
21467 if test -n "\${ZSH_VERSION+set}"; then
21468 setopt NO_GLOB_SUBST
21479 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
21480 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
21481 # from automake < 1.5.
21482 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21483 # Capture the value of LINGUAS because we need it to compute CATALOGS.
21484 LINGUAS="${LINGUAS-%UNSET%}"
21489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21491 # Handling of arguments.
21492 for ac_config_target in $ac_config_targets
21494 case $ac_config_target in
21495 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
21496 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21497 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21498 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
21499 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21500 "lib/libcryptsetup.pc") CONFIG_FILES="$CONFIG_FILES lib/libcryptsetup.pc" ;;
21501 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21502 "scripts/cryptsetup.conf") CONFIG_FILES="$CONFIG_FILES scripts/cryptsetup.conf" ;;
21503 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21505 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21510 # If the user did not use the arguments to specify the items to instantiate,
21511 # then the envvar interface is used. Set only those that are not.
21512 # We use the long form for the default assignment because of an extremely
21513 # bizarre bug on SunOS 4.1.3.
21514 if $ac_need_defaults; then
21515 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21516 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21517 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21520 # Have a temporary directory for convenience. Make it in the build tree
21521 # simply because there is no reason against having it here, and in addition,
21522 # creating and moving files from /tmp can sometimes cause problems.
21523 # Hook for its removal unless debugging.
21524 # Note that there is a small window in which the directory will not be cleaned:
21525 # after its creation but before its name has been assigned to `$tmp'.
21529 trap 'exit_status=$?
21530 : "${ac_tmp:=$tmp}"
21531 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21533 trap 'as_fn_exit 1' 1 2 13 15
21535 # Create a (secure) tmp directory for tmp files.
21538 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21542 tmp=./conf$$-$RANDOM
21543 (umask 077 && mkdir "$tmp")
21544 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21547 # Set up the scripts for CONFIG_FILES section.
21548 # No need to generate them if there are no CONFIG_FILES.
21549 # This happens for instance with `./config.status config.h'.
21550 if test -n "$CONFIG_FILES"; then
21553 ac_cr=`echo X | tr X '\015'`
21554 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21555 # But we know of no other shell where ac_cr would be empty at this
21556 # point, so we can use a bashism as a fallback.
21557 if test "x$ac_cr" = x; then
21558 eval ac_cr=\$\'\\r\'
21560 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21561 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21564 ac_cs_awk_cr=$ac_cr
21567 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21572 echo "cat >conf$$subs.awk <<_ACEOF" &&
21573 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21575 } >conf$$subs.sh ||
21576 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21577 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21579 for ac_last_try in false false false false false :; do
21580 . ./conf$$subs.sh ||
21581 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21583 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21584 if test $ac_delim_n = $ac_delim_num; then
21586 elif $ac_last_try; then
21587 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21589 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21592 rm -f conf$$subs.sh
21594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21595 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21599 s/^/S["/; s/!.*/"]=/
21609 s/\(.\{148\}\)..*/\1/
21611 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21616 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21623 s/\(.\{148\}\)..*/\1/
21625 s/["\\]/\\&/g; s/^/"/; s/$/"/
21629 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21634 ' <conf$$subs.awk | sed '
21639 ' >>$CONFIG_STATUS || ac_write_fail=1
21640 rm -f conf$$subs.awk
21641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21643 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21644 for (key in S) S_is_set[key] = 1
21650 nfields = split(line, field, "@")
21652 len = length(field[1])
21653 for (i = 2; i < nfields; i++) {
21655 keylen = length(key)
21656 if (S_is_set[key]) {
21658 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21659 len += length(value) + length(field[++i])
21670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21671 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21672 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21675 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21676 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21679 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21680 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21681 # trailing colons and then remove the whole line if VPATH becomes empty
21682 # (actually we leave an empty line to preserve line numbers).
21683 if test "x$srcdir" = x.; then
21684 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21703 fi # test -n "$CONFIG_FILES"
21705 # Set up the scripts for CONFIG_HEADERS section.
21706 # No need to generate them if there are no CONFIG_HEADERS.
21707 # This happens for instance with `./config.status Makefile'.
21708 if test -n "$CONFIG_HEADERS"; then
21709 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21713 # Transform confdefs.h into an awk script `defines.awk', embedded as
21714 # here-document in config.status, that substitutes the proper values into
21715 # config.h.in to produce config.h.
21717 # Create a delimiter string that does not exist in confdefs.h, to ease
21718 # handling of long lines.
21720 for ac_last_try in false false :; do
21721 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21722 if test -z "$ac_tt"; then
21724 elif $ac_last_try; then
21725 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21727 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21731 # For the awk script, D is an array of macro values keyed by name,
21732 # likewise P contains macro parameters if any. Preserve backslash
21733 # newline sequences.
21735 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21737 s/.\{148\}/&'"$ac_delim"'/g
21740 s/^[ ]*#[ ]*define[ ][ ]*/ /
21747 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21749 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21753 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21754 D["\1"]=" \3\\\\\\n"\\/p
21756 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21761 s/.\{148\}/&'"$ac_delim"'/g
21766 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21769 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21771 ' <confdefs.h | sed '
21772 s/'"$ac_delim"'/"\\\
21773 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21776 for (key in D) D_is_set[key] = 1
21779 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21781 split(line, arg, " ")
21782 if (arg[1] == "#") {
21786 defundef = substr(arg[1], 2)
21789 split(mac1, mac2, "(") #)
21791 prefix = substr(line, 1, index(line, defundef) - 1)
21792 if (D_is_set[macro]) {
21793 # Preserve the white space surrounding the "#".
21794 print prefix "define", macro P[macro] D[macro]
21797 # Replace #undef with comments. This is necessary, for example,
21798 # in the case of _POSIX_SOURCE, which is predefined and required
21799 # on some systems where configure will not decide to define it.
21800 if (defundef == "undef") {
21801 print "/*", prefix defundef, macro, "*/"
21809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21810 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21811 fi # test -n "$CONFIG_HEADERS"
21814 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21819 :[FHLC]) ac_mode=$ac_tag; continue;;
21821 case $ac_mode$ac_tag in
21823 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21824 :[FH]-) ac_tag=-:-;;
21825 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21842 -) ac_f="$ac_tmp/stdin";;
21843 *) # Look for the file first in the build tree, then in the source tree
21844 # (if the path is not absolute). The absolute path cannot be DOS-style,
21845 # because $ac_f cannot contain `:'.
21849 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21851 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21853 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21854 as_fn_append ac_file_inputs " '$ac_f'"
21857 # Let's still pretend it is `configure' which instantiates (i.e., don't
21858 # use $as_me), people would be surprised to read:
21859 # /* config.h. Generated by config.status. */
21860 configure_input='Generated from '`
21861 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21863 if test x"$ac_file" != x-; then
21864 configure_input="$ac_file. $configure_input"
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21866 $as_echo "$as_me: creating $ac_file" >&6;}
21868 # Neutralize special characters interpreted by sed in replacement strings.
21869 case $configure_input in #(
21870 *\&* | *\|* | *\\* )
21871 ac_sed_conf_input=`$as_echo "$configure_input" |
21872 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21873 *) ac_sed_conf_input=$configure_input;;
21877 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21878 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21883 ac_dir=`$as_dirname -- "$ac_file" ||
21884 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21885 X"$ac_file" : 'X\(//\)[^/]' \| \
21886 X"$ac_file" : 'X\(//\)$' \| \
21887 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21888 $as_echo X"$ac_file" |
21889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21893 /^X\(\/\/\)[^/].*/{
21906 as_dir="$ac_dir"; as_fn_mkdir_p
21910 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21912 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21913 # A ".." for each directory in $ac_dir_suffix.
21914 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21915 case $ac_top_builddir_sub in
21916 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21917 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21920 ac_abs_top_builddir=$ac_pwd
21921 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21922 # for backward compatibility:
21923 ac_top_builddir=$ac_top_build_prefix
21926 .) # We are building in place.
21928 ac_top_srcdir=$ac_top_builddir_sub
21929 ac_abs_top_srcdir=$ac_pwd ;;
21930 [\\/]* | ?:[\\/]* ) # Absolute name.
21931 ac_srcdir=$srcdir$ac_dir_suffix;
21932 ac_top_srcdir=$srcdir
21933 ac_abs_top_srcdir=$srcdir ;;
21934 *) # Relative name.
21935 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21936 ac_top_srcdir=$ac_top_build_prefix$srcdir
21937 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21939 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21949 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21950 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21952 ac_MKDIR_P=$MKDIR_P
21954 [\\/$]* | ?:[\\/]* ) ;;
21955 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21960 # If the template does not know about datarootdir, expand it.
21961 # FIXME: This hack should be removed a few years after 2.60.
21962 ac_datarootdir_hack=; ac_datarootdir_seen=
21973 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21974 *datarootdir*) ac_datarootdir_seen=yes;;
21975 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21977 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21980 ac_datarootdir_hack='
21981 s&@datadir@&$datadir&g
21982 s&@docdir@&$docdir&g
21983 s&@infodir@&$infodir&g
21984 s&@localedir@&$localedir&g
21985 s&@mandir@&$mandir&g
21986 s&\\\${datarootdir}&$datarootdir&g' ;;
21990 # Neutralize VPATH when `$srcdir' = `.'.
21991 # Shell code in configure.ac might set extrasub.
21992 # FIXME: do we really want to maintain this feature?
21993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21994 ac_sed_extra="$ac_vpsub
21997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21999 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22000 s|@configure_input@|$ac_sed_conf_input|;t t
22001 s&@top_builddir@&$ac_top_builddir_sub&;t t
22002 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22003 s&@srcdir@&$ac_srcdir&;t t
22004 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22005 s&@top_srcdir@&$ac_top_srcdir&;t t
22006 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22007 s&@builddir@&$ac_builddir&;t t
22008 s&@abs_builddir@&$ac_abs_builddir&;t t
22009 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22010 s&@INSTALL@&$ac_INSTALL&;t t
22011 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22012 $ac_datarootdir_hack
22014 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22015 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22017 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22018 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22019 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22020 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22022 which seems to be undefined. Please make sure it is defined" >&5
22023 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22024 which seems to be undefined. Please make sure it is defined" >&2;}
22026 rm -f "$ac_tmp/stdin"
22028 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22029 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22031 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22037 if test x"$ac_file" != x-; then
22039 $as_echo "/* $configure_input */" \
22040 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22041 } >"$ac_tmp/config.h" \
22042 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22043 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22045 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22048 mv "$ac_tmp/config.h" "$ac_file" \
22049 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22052 $as_echo "/* $configure_input */" \
22053 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22054 || as_fn_error $? "could not create -" "$LINENO" 5
22056 # Compute "$ac_file"'s index in $config_headers.
22059 for _am_header in $config_headers :; do
22060 case $_am_header in
22061 $_am_arg | $_am_arg:* )
22064 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22067 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22068 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22069 X"$_am_arg" : 'X\(//\)[^/]' \| \
22070 X"$_am_arg" : 'X\(//\)$' \| \
22071 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22072 $as_echo X"$_am_arg" |
22073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22077 /^X\(\/\/\)[^/].*/{
22089 s/.*/./; q'`/stamp-h$_am_stamp_count
22092 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22093 $as_echo "$as_me: executing $ac_file commands" >&6;}
22098 case $ac_file$ac_mode in
22099 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22100 # Older Autoconf quotes --file arguments for eval, but not when files
22101 # are listed without --file. Let's play safe and only enable the eval
22102 # if we detect the quoting.
22103 # TODO: see whether this extra hack can be removed once we start
22104 # requiring Autoconf 2.70 or later.
22105 case $CONFIG_FILES in #(
22107 eval set x "$CONFIG_FILES" ;; #(
22109 set x $CONFIG_FILES ;; #(
22114 # Used to flag and report bootstrapping failures.
22118 # Strip MF so we end up with the name of the file.
22119 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
22120 # Check whether this is an Automake generated Makefile which includes
22121 # dependency-tracking related rules and includes.
22122 # Grep'ing the whole file directly is not great: AIX grep has a line
22123 # limit of 2048, but all sed's we know have understand at least 4000.
22124 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22126 am_dirpart=`$as_dirname -- "$am_mf" ||
22127 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22128 X"$am_mf" : 'X\(//\)[^/]' \| \
22129 X"$am_mf" : 'X\(//\)$' \| \
22130 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22131 $as_echo X"$am_mf" |
22132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22136 /^X\(\/\/\)[^/].*/{
22149 am_filepart=`$as_basename -- "$am_mf" ||
22150 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22151 X"$am_mf" : 'X\(//\)$' \| \
22152 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22153 $as_echo X/"$am_mf" |
22154 sed '/^.*\/\([^/][^/]*\)\/*$/{
22167 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22168 && sed -e '/# am--include-marker/d' "$am_filepart" \
22169 | $MAKE -f - am--depfiles" >&5
22170 (cd "$am_dirpart" \
22171 && sed -e '/# am--include-marker/d' "$am_filepart" \
22172 | $MAKE -f - am--depfiles) >&5 2>&5
22174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175 (exit $ac_status); } || am_rc=$?
22177 if test $am_rc -ne 0; then
22178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22180 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22181 for automatic dependency tracking. If GNU make was not used, consider
22182 re-running the configure script with MAKE=\"gmake\" (or whatever is
22183 necessary). You can also try re-running configure with the
22184 '--disable-dependency-tracking' option to at least be able to build
22185 the package (albeit without support for automatic dependency tracking).
22186 See \`config.log' for more details" "$LINENO" 5; }
22188 { am_dirpart=; unset am_dirpart;}
22189 { am_filepart=; unset am_filepart;}
22190 { am_mf=; unset am_mf;}
22191 { am_rc=; unset am_rc;}
22192 rm -f conftest-deps.mk
22197 # See if we are running on zsh, and set the options that allow our
22198 # commands through without removal of \ escapes.
22199 if test -n "${ZSH_VERSION+set}"; then
22200 setopt NO_GLOB_SUBST
22204 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22207 cat <<_LT_EOF >> "$cfgfile"
22209 # Generated automatically by $as_me ($PACKAGE) $VERSION
22210 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22212 # Provide generalized library-building support services.
22213 # Written by Gordon Matzigkeit, 1996
22215 # Copyright (C) 2014 Free Software Foundation, Inc.
22216 # This is free software; see the source for copying conditions. There is NO
22217 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22219 # GNU Libtool is free software; you can redistribute it and/or modify
22220 # it under the terms of the GNU General Public License as published by
22221 # the Free Software Foundation; either version 2 of of the License, or
22222 # (at your option) any later version.
22224 # As a special exception to the GNU General Public License, if you
22225 # distribute this file as part of a program or library that is built
22226 # using GNU Libtool, you may include this file under the same
22227 # distribution terms that you use for the rest of that program.
22229 # GNU Libtool is distributed in the hope that it will be useful, but
22230 # WITHOUT ANY WARRANTY; without even the implied warranty of
22231 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22232 # GNU General Public License for more details.
22234 # You should have received a copy of the GNU General Public License
22235 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22238 # The names of the tagged configurations supported by this script.
22241 # Configured defaults for sys_lib_dlsearch_path munging.
22242 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22244 # ### BEGIN LIBTOOL CONFIG
22246 # Whether or not to build static libraries.
22247 build_old_libs=$enable_static
22249 # Which release of libtool.m4 was used?
22250 macro_version=$macro_version
22251 macro_revision=$macro_revision
22253 # Whether or not to build shared libraries.
22254 build_libtool_libs=$enable_shared
22256 # What type of objects to build.
22259 # Whether or not to optimize for fast installation.
22260 fast_install=$enable_fast_install
22262 # Shared archive member basename,for filename based shared library versioning on AIX.
22263 shared_archive_member_spec=$shared_archive_member_spec
22265 # Shell to use when invoking shell scripts.
22268 # An echo program that protects backslashes.
22271 # The PATH separator for the build system.
22272 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22275 host_alias=$host_alias
22279 # The build system.
22280 build_alias=$build_alias
22284 # A sed program that does not truncate output.
22287 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22288 Xsed="\$SED -e 1s/^X//"
22290 # A grep program that handles long lines.
22296 # A literal string matcher.
22299 # A BSD- or MS-compatible name lister.
22302 # Whether we need soft or hard links.
22305 # What is the maximum length of a command?
22306 max_cmd_len=$max_cmd_len
22308 # Object file suffix (normally "o").
22311 # Executable file suffix (normally "").
22314 # whether the shell understands "unset".
22317 # turn spaces into newlines.
22320 # turn newlines into spaces.
22323 # convert \$build file names to \$host format.
22324 to_host_file_cmd=$lt_cv_to_host_file_cmd
22326 # convert \$build files to toolchain format.
22327 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22329 # An object symbol dumper.
22330 OBJDUMP=$lt_OBJDUMP
22332 # Method to check whether dependent libraries are shared objects.
22333 deplibs_check_method=$lt_deplibs_check_method
22335 # Command to use when deplibs_check_method = "file_magic".
22336 file_magic_cmd=$lt_file_magic_cmd
22338 # How to find potential files when deplibs_check_method = "file_magic".
22339 file_magic_glob=$lt_file_magic_glob
22341 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22342 want_nocaseglob=$lt_want_nocaseglob
22344 # DLL creation program.
22345 DLLTOOL=$lt_DLLTOOL
22347 # Command to associate shared and link libraries.
22348 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22353 # Flags to create an archive.
22354 AR_FLAGS=$lt_AR_FLAGS
22356 # How to feed a file listing to the archiver.
22357 archiver_list_spec=$lt_archiver_list_spec
22359 # A symbol stripping program.
22362 # Commands used to install an old-style archive.
22364 old_postinstall_cmds=$lt_old_postinstall_cmds
22365 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22367 # Whether to use a lock for old archive extraction.
22368 lock_old_archive_extraction=$lock_old_archive_extraction
22373 # LTCC compiler flags.
22374 LTCFLAGS=$lt_CFLAGS
22376 # Take the output of nm and produce a listing of raw symbols and C names.
22377 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22379 # Transform the output of nm in a proper C declaration.
22380 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22382 # Transform the output of nm into a list of symbols to manually relocate.
22383 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22385 # Transform the output of nm in a C name address pair.
22386 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22388 # Transform the output of nm in a C name address pair when lib prefix is needed.
22389 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22391 # The name lister interface.
22392 nm_interface=$lt_lt_cv_nm_interface
22394 # Specify filename containing input files for \$NM.
22395 nm_file_list_spec=$lt_nm_file_list_spec
22397 # The root where to search for dependent libraries,and where our libraries should be installed.
22398 lt_sysroot=$lt_sysroot
22400 # Command to truncate a binary pipe.
22401 lt_truncate_bin=$lt_lt_cv_truncate_bin
22403 # The name of the directory that contains temporary libtool files.
22406 # Used to examine libraries when file_magic_cmd begins with "file".
22407 MAGIC_CMD=$MAGIC_CMD
22409 # Must we lock files when doing compilation?
22410 need_locks=$lt_need_locks
22413 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22415 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22416 DSYMUTIL=$lt_DSYMUTIL
22418 # Tool to change global to local symbols on Mac OS X.
22421 # Tool to manipulate fat objects and archives on Mac OS X.
22424 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22427 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22428 OTOOL64=$lt_OTOOL64
22430 # Old archive suffix (normally "a").
22433 # Shared library suffix (normally ".so").
22434 shrext_cmds=$lt_shrext_cmds
22436 # The commands to extract the exported symbol list from a shared archive.
22437 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22439 # Variables whose values should be saved in libtool wrapper scripts and
22440 # restored at link time.
22441 variables_saved_for_relink=$lt_variables_saved_for_relink
22443 # Do we need the "lib" prefix for modules?
22444 need_lib_prefix=$need_lib_prefix
22446 # Do we need a version for libraries?
22447 need_version=$need_version
22449 # Library versioning type.
22450 version_type=$version_type
22452 # Shared library runtime path variable.
22453 runpath_var=$runpath_var
22455 # Shared library path variable.
22456 shlibpath_var=$shlibpath_var
22458 # Is shlibpath searched before the hard-coded library search path?
22459 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22461 # Format of library name prefix.
22462 libname_spec=$lt_libname_spec
22464 # List of archive names. First name is the real one, the rest are links.
22465 # The last name is the one that the linker finds with -lNAME
22466 library_names_spec=$lt_library_names_spec
22468 # The coded name of the library, if different from the real name.
22469 soname_spec=$lt_soname_spec
22471 # Permission mode override for installation of shared libraries.
22472 install_override_mode=$lt_install_override_mode
22474 # Command to use after installation of a shared archive.
22475 postinstall_cmds=$lt_postinstall_cmds
22477 # Command to use after uninstallation of a shared archive.
22478 postuninstall_cmds=$lt_postuninstall_cmds
22480 # Commands used to finish a libtool library installation in a directory.
22481 finish_cmds=$lt_finish_cmds
22483 # As "finish_cmds", except a single script fragment to be evaled but
22485 finish_eval=$lt_finish_eval
22487 # Whether we should hardcode library paths into libraries.
22488 hardcode_into_libs=$hardcode_into_libs
22490 # Compile-time system search path for libraries.
22491 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22493 # Detected run-time system search path for libraries.
22494 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22496 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22497 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22499 # Whether dlopen is supported.
22500 dlopen_support=$enable_dlopen
22502 # Whether dlopen of programs is supported.
22503 dlopen_self=$enable_dlopen_self
22505 # Whether dlopen of statically linked programs is supported.
22506 dlopen_self_static=$enable_dlopen_self_static
22508 # Commands to strip libraries.
22509 old_striplib=$lt_old_striplib
22510 striplib=$lt_striplib
22513 # The linker used to build libraries.
22516 # How to create reloadable object files.
22517 reload_flag=$lt_reload_flag
22518 reload_cmds=$lt_reload_cmds
22520 # Commands used to build an old-style archive.
22521 old_archive_cmds=$lt_old_archive_cmds
22523 # A language specific compiler.
22526 # Is the compiler the GNU compiler?
22529 # Compiler flag to turn off builtin functions.
22530 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22532 # Additional compiler flags for building library objects.
22533 pic_flag=$lt_lt_prog_compiler_pic
22535 # How to pass a linker flag through the compiler.
22536 wl=$lt_lt_prog_compiler_wl
22538 # Compiler flag to prevent dynamic linking.
22539 link_static_flag=$lt_lt_prog_compiler_static
22541 # Does compiler simultaneously support -c and -o options?
22542 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22544 # Whether or not to add -lc for building shared libraries.
22545 build_libtool_need_lc=$archive_cmds_need_lc
22547 # Whether or not to disallow shared libs when runtime libs are static.
22548 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22550 # Compiler flag to allow reflexive dlopens.
22551 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22553 # Compiler flag to generate shared objects directly from archives.
22554 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22556 # Whether the compiler copes with passing no objects directly.
22557 compiler_needs_object=$lt_compiler_needs_object
22559 # Create an old-style archive from a shared archive.
22560 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22562 # Create a temporary old-style archive to link instead of a shared archive.
22563 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22565 # Commands used to build a shared archive.
22566 archive_cmds=$lt_archive_cmds
22567 archive_expsym_cmds=$lt_archive_expsym_cmds
22569 # Commands used to build a loadable module if different from building
22570 # a shared archive.
22571 module_cmds=$lt_module_cmds
22572 module_expsym_cmds=$lt_module_expsym_cmds
22574 # Whether we are building with GNU ld or not.
22575 with_gnu_ld=$lt_with_gnu_ld
22577 # Flag that allows shared libraries with undefined symbols to be built.
22578 allow_undefined_flag=$lt_allow_undefined_flag
22580 # Flag that enforces no undefined symbols.
22581 no_undefined_flag=$lt_no_undefined_flag
22583 # Flag to hardcode \$libdir into a binary during linking.
22584 # This must work even if \$libdir does not exist
22585 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22587 # Whether we need a single "-rpath" flag with a separated argument.
22588 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22590 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22591 # DIR into the resulting binary.
22592 hardcode_direct=$hardcode_direct
22594 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22595 # DIR into the resulting binary and the resulting library dependency is
22596 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22597 # library is relocated.
22598 hardcode_direct_absolute=$hardcode_direct_absolute
22600 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22601 # into the resulting binary.
22602 hardcode_minus_L=$hardcode_minus_L
22604 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22605 # into the resulting binary.
22606 hardcode_shlibpath_var=$hardcode_shlibpath_var
22608 # Set to "yes" if building a shared library automatically hardcodes DIR
22609 # into the library and all subsequent libraries and executables linked
22611 hardcode_automatic=$hardcode_automatic
22613 # Set to yes if linker adds runtime paths of dependent libraries
22614 # to runtime path list.
22615 inherit_rpath=$inherit_rpath
22617 # Whether libtool must link a program against all its dependency libraries.
22618 link_all_deplibs=$link_all_deplibs
22620 # Set to "yes" if exported symbols are required.
22621 always_export_symbols=$always_export_symbols
22623 # The commands to list exported symbols.
22624 export_symbols_cmds=$lt_export_symbols_cmds
22626 # Symbols that should not be listed in the preloaded symbols.
22627 exclude_expsyms=$lt_exclude_expsyms
22629 # Symbols that must always be exported.
22630 include_expsyms=$lt_include_expsyms
22632 # Commands necessary for linking programs (against libraries) with templates.
22633 prelink_cmds=$lt_prelink_cmds
22635 # Commands necessary for finishing linking programs.
22636 postlink_cmds=$lt_postlink_cmds
22638 # Specify filename containing input files.
22639 file_list_spec=$lt_file_list_spec
22641 # How to hardcode a shared library path into an executable.
22642 hardcode_action=$hardcode_action
22644 # ### END LIBTOOL CONFIG
22648 cat <<'_LT_EOF' >> "$cfgfile"
22650 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22652 # func_munge_path_list VARIABLE PATH
22653 # -----------------------------------
22654 # VARIABLE is name of variable containing _space_ separated list of
22655 # directories to be munged by the contents of PATH, which is string
22658 # string "DIR[ DIR]" will be prepended to VARIABLE
22660 # string "DIR[ DIR]" will be appended to VARIABLE
22661 # "DIRP[:DIRP]::[DIRA:]DIRA"
22662 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22663 # "DIRA[ DIRA]" will be appended to VARIABLE
22665 # VARIABLE will be replaced by "DIR[ DIR]"
22666 func_munge_path_list ()
22672 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22675 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22678 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22679 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22682 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22688 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22689 func_cc_basename ()
22691 for cc_temp in $*""; do
22693 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22694 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22699 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22703 # ### END FUNCTIONS SHARED WITH CONFIGURE
22709 cat <<\_LT_EOF >> "$cfgfile"
22710 # AIX sometimes has problems with the GCC collect2 program. For some
22711 # reason, if we set the COLLECT_NAMES environment variable, the problems
22712 # vanish in a puff of smoke.
22713 if test set != "${COLLECT_NAMES+set}"; then
22715 export COLLECT_NAMES
22722 ltmain=$ac_aux_dir/ltmain.sh
22725 # We use sed instead of cat because bash on DJGPP gets confused if
22726 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22727 # text mode, it properly converts lines to CR/LF. This bash problem
22728 # is reportedly fixed, but why not run on old versions too?
22729 sed '$q' "$ltmain" >> "$cfgfile" \
22730 || (rm -f "$cfgfile"; exit 1)
22732 mv -f "$cfgfile" "$ofile" ||
22733 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22737 "po-directories":C)
22738 for ac_file in $CONFIG_FILES; do
22739 # Support "outfile[:infile[:infile...]]"
22741 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22743 # PO directories have a Makefile.in generated from Makefile.in.in.
22744 case "$ac_file" in */Makefile.in)
22745 # Adjust a relative srcdir.
22746 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22747 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
22748 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22749 # In autoconf-2.13 it is called $ac_given_srcdir.
22750 # In autoconf-2.50 it is called $srcdir.
22751 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22752 case "$ac_given_srcdir" in
22753 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22754 /*) top_srcdir="$ac_given_srcdir" ;;
22755 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22757 # Treat a directory as a PO directory if and only if it has a
22758 # POTFILES.in file. This allows packages to have multiple PO
22759 # directories under different names or in different locations.
22760 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22761 rm -f "$ac_dir/POTFILES"
22762 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22763 gt_tab=`printf '\t'`
22764 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22765 POMAKEFILEDEPS="POTFILES.in"
22766 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
22767 # on $ac_dir but don't depend on user-specified configuration
22769 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22770 # The LINGUAS file contains the set of available languages.
22771 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22772 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22774 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22775 # Hide the ALL_LINGUAS assignment from automake < 1.5.
22776 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22777 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22779 # The set of available languages was given in configure.in.
22780 # Hide the ALL_LINGUAS assignment from automake < 1.5.
22781 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22784 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
22785 # Compute UPDATEPOFILES
22786 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
22787 # Compute DUMMYPOFILES
22788 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
22790 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
22791 case "$ac_given_srcdir" in
22793 *) srcdirpre='$(srcdir)/' ;;
22799 for lang in $ALL_LINGUAS; do
22800 POFILES="$POFILES $srcdirpre$lang.po"
22801 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22802 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22803 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22805 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22806 # environment variable.
22808 if test -n "$ALL_LINGUAS"; then
22809 for presentlang in $ALL_LINGUAS; do
22811 if test "%UNSET%" != "$LINGUAS"; then
22812 desiredlanguages="$LINGUAS"
22814 desiredlanguages="$ALL_LINGUAS"
22816 for desiredlang in $desiredlanguages; do
22817 # Use the presentlang catalog if desiredlang is
22818 # a. equal to presentlang, or
22819 # b. a variant of presentlang (because in this case,
22820 # presentlang can be used as a fallback for messages
22821 # which are not translated in the desiredlang catalog).
22822 case "$desiredlang" in
22823 "$presentlang"*) useit=yes;;
22826 if test $useit = yes; then
22827 INST_LINGUAS="$INST_LINGUAS $presentlang"
22832 if test -n "$INST_LINGUAS"; then
22833 for lang in $INST_LINGUAS; do
22834 CATALOGS="$CATALOGS $lang.gmo"
22837 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22838 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
22839 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22840 if test -f "$f"; then
22842 *.orig | *.bak | *~) ;;
22843 *) cat "$f" >> "$ac_dir/Makefile" ;;
22858 ac_clean_files=$ac_clean_files_save
22860 test $ac_write_fail = 0 ||
22861 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22864 # configure is writing to config.log, and then calls config.status.
22865 # config.status does its own redirection, appending to config.log.
22866 # Unfortunately, on DOS this fails, as config.log is still kept open
22867 # by configure, so config.status won't be able to write to it; its
22868 # output is simply discarded. So we exec the FD to /dev/null,
22869 # effectively closing config.log, so it can be properly (re)opened and
22870 # appended to by config.status. When coming back to configure, we
22871 # need to make the FD available again.
22872 if test "$no_create" != yes; then
22874 ac_config_status_args=
22875 test "$silent" = yes &&
22876 ac_config_status_args="$ac_config_status_args --quiet"
22878 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22880 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22881 # would make configure fail if this is the last instruction.
22882 $ac_cs_success || as_fn_exit 1
22884 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22886 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}