2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ecryptfs-utils 104.
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='ecryptfs-utils'
589 PACKAGE_TARNAME='ecryptfs-utils'
590 PACKAGE_VERSION='104'
591 PACKAGE_STRING='ecryptfs-utils 104'
595 ac_unique_file="src/libecryptfs"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars='am__EXEEXT_FALSE
654 BUILD_PKCS11_HELPER_FALSE
655 BUILD_PKCS11_HELPER_TRUE
672 INTLTOOL_SERVICE_RULE
674 INTLTOOL_SCHEMAS_RULE
676 INTLTOOL_XML_NOMERGE_RULE
681 INTLTOOL_SOUNDLIST_RULE
688 INTLTOOL_DIRECTORY_RULE
689 INTLTOOL_DESKTOP_RULE
690 intltool__v_merge_options_0
691 intltool__v_merge_options_
692 INTLTOOL_V_MERGE_OPTIONS
797 LIBECRYPTFS_LT_REVISION
798 LIBECRYPTFS_LT_CURRENT
812 INSTALL_STRIP_PROGRAM
866 program_transform_name
879 enable_option_checking
896 with_ecryptfskeymoddir
897 enable_dependency_tracking
907 ac_precious_vars='build_alias
937 # Initialize some variables set by options.
939 ac_init_version=false
940 ac_unrecognized_opts=
942 # The variables have the same names as the options, with
943 # dashes changed to underlines.
951 program_transform_name=s,x,x,
959 # Installation directory options.
960 # These are left unexpanded so users can "make install exec_prefix=/foo"
961 # and all the variables that are supposed to be based on exec_prefix
962 # by default will actually change.
963 # Use braces instead of parens because sh, perl, etc. also accept them.
964 # (The list follows the same order as the GNU Coding Standards.)
965 bindir='${exec_prefix}/bin'
966 sbindir='${exec_prefix}/sbin'
967 libexecdir='${exec_prefix}/libexec'
968 datarootdir='${prefix}/share'
969 datadir='${datarootdir}'
970 sysconfdir='${prefix}/etc'
971 sharedstatedir='${prefix}/com'
972 localstatedir='${prefix}/var'
973 includedir='${prefix}/include'
974 oldincludedir='/usr/include'
975 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
976 infodir='${datarootdir}/info'
981 libdir='${exec_prefix}/lib'
982 localedir='${datarootdir}/locale'
983 mandir='${datarootdir}/man'
989 # If the previous option needs an argument, assign it.
990 if test -n "$ac_prev"; then
991 eval $ac_prev=\$ac_option
997 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1002 # Accept the important Cygnus configure options, so we can diagnose typos.
1004 case $ac_dashdash$ac_option in
1008 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1010 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1011 bindir=$ac_optarg ;;
1013 -build | --build | --buil | --bui | --bu)
1014 ac_prev=build_alias ;;
1015 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1016 build_alias=$ac_optarg ;;
1018 -cache-file | --cache-file | --cache-fil | --cache-fi \
1019 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1020 ac_prev=cache_file ;;
1021 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1022 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1023 cache_file=$ac_optarg ;;
1025 --config-cache | -C)
1026 cache_file=config.cache ;;
1028 -datadir | --datadir | --datadi | --datad)
1030 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1031 datadir=$ac_optarg ;;
1033 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1034 | --dataroo | --dataro | --datar)
1035 ac_prev=datarootdir ;;
1036 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1037 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1038 datarootdir=$ac_optarg ;;
1040 -disable-* | --disable-*)
1041 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044 as_fn_error $? "invalid feature name: $ac_useropt"
1045 ac_useropt_orig=$ac_useropt
1046 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1049 "enable_$ac_useropt"
1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1052 ac_unrecognized_sep=', ';;
1054 eval enable_$ac_useropt=no ;;
1056 -docdir | --docdir | --docdi | --doc | --do)
1058 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1059 docdir=$ac_optarg ;;
1061 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1063 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1064 dvidir=$ac_optarg ;;
1066 -enable-* | --enable-*)
1067 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070 as_fn_error $? "invalid feature name: $ac_useropt"
1071 ac_useropt_orig=$ac_useropt
1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073 case $ac_user_opts in
1075 "enable_$ac_useropt"
1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1078 ac_unrecognized_sep=', ';;
1080 eval enable_$ac_useropt=\$ac_optarg ;;
1082 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1083 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1084 | --exec | --exe | --ex)
1085 ac_prev=exec_prefix ;;
1086 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1087 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1088 | --exec=* | --exe=* | --ex=*)
1089 exec_prefix=$ac_optarg ;;
1091 -gas | --gas | --ga | --g)
1092 # Obsolete; use --with-gas.
1095 -help | --help | --hel | --he | -h)
1096 ac_init_help=long ;;
1097 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1098 ac_init_help=recursive ;;
1099 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1100 ac_init_help=short ;;
1102 -host | --host | --hos | --ho)
1103 ac_prev=host_alias ;;
1104 -host=* | --host=* | --hos=* | --ho=*)
1105 host_alias=$ac_optarg ;;
1107 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1109 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1111 htmldir=$ac_optarg ;;
1113 -includedir | --includedir | --includedi | --included | --include \
1114 | --includ | --inclu | --incl | --inc)
1115 ac_prev=includedir ;;
1116 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1117 | --includ=* | --inclu=* | --incl=* | --inc=*)
1118 includedir=$ac_optarg ;;
1120 -infodir | --infodir | --infodi | --infod | --info | --inf)
1122 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1123 infodir=$ac_optarg ;;
1125 -libdir | --libdir | --libdi | --libd)
1127 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1128 libdir=$ac_optarg ;;
1130 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1131 | --libexe | --libex | --libe)
1132 ac_prev=libexecdir ;;
1133 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1134 | --libexe=* | --libex=* | --libe=*)
1135 libexecdir=$ac_optarg ;;
1137 -localedir | --localedir | --localedi | --localed | --locale)
1138 ac_prev=localedir ;;
1139 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1140 localedir=$ac_optarg ;;
1142 -localstatedir | --localstatedir | --localstatedi | --localstated \
1143 | --localstate | --localstat | --localsta | --localst | --locals)
1144 ac_prev=localstatedir ;;
1145 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1146 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1147 localstatedir=$ac_optarg ;;
1149 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1151 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1152 mandir=$ac_optarg ;;
1154 -nfp | --nfp | --nf)
1155 # Obsolete; use --without-fp.
1158 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1159 | --no-cr | --no-c | -n)
1162 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1163 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1166 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1167 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1168 | --oldin | --oldi | --old | --ol | --o)
1169 ac_prev=oldincludedir ;;
1170 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1171 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1172 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1173 oldincludedir=$ac_optarg ;;
1175 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1177 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1178 prefix=$ac_optarg ;;
1180 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1181 | --program-pre | --program-pr | --program-p)
1182 ac_prev=program_prefix ;;
1183 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1184 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1185 program_prefix=$ac_optarg ;;
1187 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1188 | --program-suf | --program-su | --program-s)
1189 ac_prev=program_suffix ;;
1190 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1191 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1192 program_suffix=$ac_optarg ;;
1194 -program-transform-name | --program-transform-name \
1195 | --program-transform-nam | --program-transform-na \
1196 | --program-transform-n | --program-transform- \
1197 | --program-transform | --program-transfor \
1198 | --program-transfo | --program-transf \
1199 | --program-trans | --program-tran \
1200 | --progr-tra | --program-tr | --program-t)
1201 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1211 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1213 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1214 pdfdir=$ac_optarg ;;
1216 -psdir | --psdir | --psdi | --psd | --ps)
1218 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222 | -silent | --silent | --silen | --sile | --sil)
1225 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1227 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1229 sbindir=$ac_optarg ;;
1231 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1232 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1233 | --sharedst | --shareds | --shared | --share | --shar \
1235 ac_prev=sharedstatedir ;;
1236 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1237 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1238 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1240 sharedstatedir=$ac_optarg ;;
1242 -site | --site | --sit)
1244 -site=* | --site=* | --sit=*)
1247 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1249 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1250 srcdir=$ac_optarg ;;
1252 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1253 | --syscon | --sysco | --sysc | --sys | --sy)
1254 ac_prev=sysconfdir ;;
1255 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1256 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1257 sysconfdir=$ac_optarg ;;
1259 -target | --target | --targe | --targ | --tar | --ta | --t)
1260 ac_prev=target_alias ;;
1261 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1262 target_alias=$ac_optarg ;;
1264 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1267 -version | --version | --versio | --versi | --vers | -V)
1268 ac_init_version=: ;;
1271 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274 as_fn_error $? "invalid package name: $ac_useropt"
1275 ac_useropt_orig=$ac_useropt
1276 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277 case $ac_user_opts in
1281 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1282 ac_unrecognized_sep=', ';;
1284 eval with_$ac_useropt=\$ac_optarg ;;
1286 -without-* | --without-*)
1287 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1290 as_fn_error $? "invalid package name: $ac_useropt"
1291 ac_useropt_orig=$ac_useropt
1292 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1293 case $ac_user_opts in
1297 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1298 ac_unrecognized_sep=', ';;
1300 eval with_$ac_useropt=no ;;
1303 # Obsolete; use --with-x.
1306 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1307 | --x-incl | --x-inc | --x-in | --x-i)
1308 ac_prev=x_includes ;;
1309 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1310 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1311 x_includes=$ac_optarg ;;
1313 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1314 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1315 ac_prev=x_libraries ;;
1316 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1317 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1318 x_libraries=$ac_optarg ;;
1320 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1321 Try \`$0 --help' for more information"
1325 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1326 # Reject names that are not valid shell variable names.
1327 case $ac_envvar in #(
1328 '' | [0-9]* | *[!_$as_cr_alnum]* )
1329 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1331 eval $ac_envvar=\$ac_optarg
1332 export $ac_envvar ;;
1335 # FIXME: should be removed in autoconf 3.0.
1336 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1337 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1338 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1339 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1345 if test -n "$ac_prev"; then
1346 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1347 as_fn_error $? "missing argument to $ac_option"
1350 if test -n "$ac_unrecognized_opts"; then
1351 case $enable_option_checking in
1353 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1354 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1358 # Check all directory arguments for consistency.
1359 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1360 datadir sysconfdir sharedstatedir localstatedir includedir \
1361 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1362 libdir localedir mandir
1364 eval ac_val=\$$ac_var
1365 # Remove trailing slashes.
1368 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1369 eval $ac_var=\$ac_val;;
1371 # Be sure to have absolute directory names.
1373 [\\/$]* | ?:[\\/]* ) continue;;
1374 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1376 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1379 # There might be people who depend on the old broken behavior: `$host'
1380 # used to hold the argument of --host etc.
1381 # FIXME: To remove some day.
1384 target=$target_alias
1386 # FIXME: To remove some day.
1387 if test "x$host_alias" != x; then
1388 if test "x$build_alias" = x; then
1389 cross_compiling=maybe
1390 elif test "x$build_alias" != "x$host_alias"; then
1396 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1398 test "$silent" = yes && exec 6>/dev/null
1401 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1402 ac_ls_di=`ls -di .` &&
1403 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1404 as_fn_error $? "working directory cannot be determined"
1405 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1406 as_fn_error $? "pwd does not report name of working directory"
1409 # Find the source files, if location was not specified.
1410 if test -z "$srcdir"; then
1411 ac_srcdir_defaulted=yes
1412 # Try the directory containing this script, then the parent directory.
1413 ac_confdir=`$as_dirname -- "$as_myself" ||
1414 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1415 X"$as_myself" : 'X\(//\)[^/]' \| \
1416 X"$as_myself" : 'X\(//\)$' \| \
1417 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1418 $as_echo X"$as_myself" |
1419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1441 ac_srcdir_defaulted=no
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1444 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1445 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1447 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1449 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1451 # When building in place, set srcdir=.
1452 if test "$ac_abs_confdir" = "$ac_pwd"; then
1455 # Remove unnecessary trailing slashes from srcdir.
1456 # Double slashes in file names in object file debugging info
1457 # mess up M-x gdb in Emacs.
1459 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1461 for ac_var in $ac_precious_vars; do
1462 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_env_${ac_var}_value=\$${ac_var}
1464 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1465 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1469 # Report the --help message.
1471 if test "$ac_init_help" = "long"; then
1472 # Omit some internal or obsolete options to make the list less imposing.
1473 # This message is too long to be a string in the A/UX 3.1 sh.
1475 \`configure' configures ecryptfs-utils 104 to adapt to many kinds of systems.
1477 Usage: $0 [OPTION]... [VAR=VALUE]...
1479 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1480 VAR=VALUE. See below for descriptions of some of the useful variables.
1482 Defaults for the options are specified in brackets.
1485 -h, --help display this help and exit
1486 --help=short display options specific to this package
1487 --help=recursive display the short help of all the included packages
1488 -V, --version display version information and exit
1489 -q, --quiet, --silent do not print \`checking ...' messages
1490 --cache-file=FILE cache test results in FILE [disabled]
1491 -C, --config-cache alias for \`--cache-file=config.cache'
1492 -n, --no-create do not create output files
1493 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1495 Installation directories:
1496 --prefix=PREFIX install architecture-independent files in PREFIX
1497 [$ac_default_prefix]
1498 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1501 By default, \`make install' will install all the files in
1502 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1503 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1504 for instance \`--prefix=\$HOME'.
1506 For better control, use the options below.
1508 Fine tuning of the installation directories:
1509 --bindir=DIR user executables [EPREFIX/bin]
1510 --sbindir=DIR system admin executables [EPREFIX/sbin]
1511 --libexecdir=DIR program executables [EPREFIX/libexec]
1512 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1513 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1514 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1515 --libdir=DIR object code libraries [EPREFIX/lib]
1516 --includedir=DIR C header files [PREFIX/include]
1517 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1518 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1519 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1520 --infodir=DIR info documentation [DATAROOTDIR/info]
1521 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1522 --mandir=DIR man documentation [DATAROOTDIR/man]
1523 --docdir=DIR documentation root [DATAROOTDIR/doc/ecryptfs-utils]
1524 --htmldir=DIR html documentation [DOCDIR]
1525 --dvidir=DIR dvi documentation [DOCDIR]
1526 --pdfdir=DIR pdf documentation [DOCDIR]
1527 --psdir=DIR ps documentation [DOCDIR]
1533 --program-prefix=PREFIX prepend PREFIX to installed program names
1534 --program-suffix=SUFFIX append SUFFIX to installed program names
1535 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1538 --build=BUILD configure for building on BUILD [guessed]
1539 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1540 --target=TARGET configure for building compilers for TARGET [HOST]
1544 if test -n "$ac_init_help"; then
1545 case $ac_init_help in
1546 short | recursive ) echo "Configuration of ecryptfs-utils 104:";;
1551 --disable-option-checking ignore unrecognized --enable/--with options
1552 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1553 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1554 --enable-silent-rules less verbose build output (undo: "make V=1")
1555 --disable-silent-rules verbose build output (undo: "make V=0")
1556 --enable-static[=PKGS] build static libraries [default=no]
1557 --disable-nss Build against gcrypt rather than NSS
1558 --disable-pywrap Disable build of libecryptfs Python wrappers
1559 --disable-openssl Disable build of OpenSSL key module
1560 --enable-pkcs11-helper Build pkcs11-helper key module
1561 --enable-tspi Build TrouSerS key module
1562 --enable-gpg Build GnuPG key module
1563 --disable-pam Disable build of PAM module
1564 --enable-gui Enable building of GUI components
1565 --enable-docs Enable installing document
1566 --enable-docs-gen Enable generating documents
1567 --enable-tests Enable system specific tests
1568 --enable-mudflap Build with -fmudflap gcc option
1569 --enable-dependency-tracking
1570 do not reject slow dependency extractors
1571 --disable-dependency-tracking
1572 speeds up one-time build
1573 --enable-shared[=PKGS] build shared libraries [default=yes]
1574 --enable-fast-install[=PKGS]
1575 optimize for fast installation [default=yes]
1576 --disable-libtool-lock avoid locking (might break parallel builds)
1577 --disable-largefile omit support for large files
1578 --disable-nls do not use Native Language Support
1581 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1582 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1583 --with-gpgme-prefix=PATH
1584 Specify the directory where gpgme install, default
1586 --with-pamdir=PATH Specify the directory where PAM modules are stored
1587 --with-ecryptfskeymoddir=PATH
1588 Specify the directory where key modules are stored
1589 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1591 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1592 --with-sysroot=DIR Search for dependent libraries within DIR
1593 (or the compiler's sysroot if not specified).
1595 Some influential environment variables:
1596 CC C compiler command
1597 CFLAGS C compiler flags
1598 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1599 nonstandard directory <lib dir>
1600 LIBS libraries to pass to the linker, e.g. -l<library>
1601 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1602 you have headers in a nonstandard directory <include dir>
1604 PKG_CONFIG path to pkg-config utility
1606 directories to add to pkg-config's search path
1608 path overriding pkg-config's built-in search path
1610 C compiler flags for keyutils
1612 linker flags for keyutils
1614 C compiler flags for OPENSSL, overriding pkg-config
1616 linker flags for OPENSSL, overriding pkg-config
1617 NSS_CFLAGS C compiler flags for NSS, overriding pkg-config
1618 NSS_LIBS linker flags for NSS, overriding pkg-config
1619 PYTHON the Python interpreter
1621 The installed Python version to use, for example '2.3'. This
1622 string will be appended to the Python interpreter canonical
1624 PKCS11_HELPER_CFLAGS
1625 C compiler flags for PKCS11_HELPER, overriding pkg-config
1627 linker flags for PKCS11_HELPER, overriding pkg-config
1628 TSPI_CFLAGS C compiler flags for tspi
1629 TSPI_LIBS linker flags for tspi
1630 PAM_CFLAGS C compiler flags for pam
1631 PAM_LIBS linker flags for pam
1633 Use these variables to override the choices made by `configure' or to help
1634 it to find libraries and programs with nonstandard names/locations.
1636 Report bugs to the package provider.
1641 if test "$ac_init_help" = "recursive"; then
1642 # If there are subdirs, report their specific --help.
1643 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1644 test -d "$ac_dir" ||
1645 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1650 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1652 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1653 # A ".." for each directory in $ac_dir_suffix.
1654 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1655 case $ac_top_builddir_sub in
1656 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1660 ac_abs_top_builddir=$ac_pwd
1661 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1662 # for backward compatibility:
1663 ac_top_builddir=$ac_top_build_prefix
1666 .) # We are building in place.
1668 ac_top_srcdir=$ac_top_builddir_sub
1669 ac_abs_top_srcdir=$ac_pwd ;;
1670 [\\/]* | ?:[\\/]* ) # Absolute name.
1671 ac_srcdir=$srcdir$ac_dir_suffix;
1672 ac_top_srcdir=$srcdir
1673 ac_abs_top_srcdir=$srcdir ;;
1675 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1676 ac_top_srcdir=$ac_top_build_prefix$srcdir
1677 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1679 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1681 cd "$ac_dir" || { ac_status=$?; continue; }
1682 # Check for guested configure.
1683 if test -f "$ac_srcdir/configure.gnu"; then
1685 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1686 elif test -f "$ac_srcdir/configure"; then
1688 $SHELL "$ac_srcdir/configure" --help=recursive
1690 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1692 cd "$ac_pwd" || { ac_status=$?; break; }
1696 test -n "$ac_init_help" && exit $ac_status
1697 if $ac_init_version; then
1699 ecryptfs-utils configure 104
1700 generated by GNU Autoconf 2.69
1702 Copyright (C) 2012 Free Software Foundation, Inc.
1703 This configure script is free software; the Free Software Foundation
1704 gives unlimited permission to copy, distribute and modify it.
1709 ## ------------------------ ##
1710 ## Autoconf initialization. ##
1711 ## ------------------------ ##
1713 # ac_fn_c_try_compile LINENO
1714 # --------------------------
1715 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1716 ac_fn_c_try_compile ()
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 rm -f conftest.$ac_objext
1720 if { { ac_try="$ac_compile"
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_compile") 2>conftest.err
1729 if test -s conftest.err; then
1730 grep -v '^ *+' conftest.err >conftest.er1
1731 cat conftest.er1 >&5
1732 mv -f conftest.er1 conftest.err
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && {
1736 test -z "$ac_c_werror_flag" ||
1737 test ! -s conftest.err
1738 } && test -s conftest.$ac_objext; then :
1741 $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747 as_fn_set_status $ac_retval
1749 } # ac_fn_c_try_compile
1751 # ac_fn_c_try_cpp LINENO
1752 # ----------------------
1753 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 if { { ac_try="$ac_cpp conftest.$ac_ext"
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } > conftest.i && {
1773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1774 test ! -s conftest.err
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 as_fn_set_status $ac_retval
1788 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1789 # -------------------------------------------------------
1790 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1791 # the include files in INCLUDES and setting the cache variable VAR
1793 ac_fn_c_check_header_mongrel ()
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 if eval \${$3+:} false; then :
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if eval \${$3+:} false; then :
1800 $as_echo_n "(cached) " >&6
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1806 # Is the header compilable?
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1808 $as_echo_n "checking $2 usability... " >&6; }
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1814 if ac_fn_c_try_compile "$LINENO"; then :
1815 ac_header_compiler=yes
1817 ac_header_compiler=no
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1821 $as_echo "$ac_header_compiler" >&6; }
1823 # Is the header present?
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1825 $as_echo_n "checking $2 presence... " >&6; }
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1830 if ac_fn_c_try_cpp "$LINENO"; then :
1831 ac_header_preproc=yes
1833 ac_header_preproc=no
1835 rm -f conftest.err conftest.i conftest.$ac_ext
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1837 $as_echo "$ac_header_preproc" >&6; }
1839 # So? What about this header?
1840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1843 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1845 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1849 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1851 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1853 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1855 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if eval \${$3+:} false; then :
1863 $as_echo_n "(cached) " >&6
1865 eval "$3=\$ac_header_compiler"
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 } # ac_fn_c_check_header_mongrel
1875 # ac_fn_c_try_run LINENO
1876 # ----------------------
1877 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1878 # that executables *can* be run.
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 if { { ac_try="$ac_link"
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_link") 2>&5
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1893 { { case "(($ac_try" in
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_try") 2>&5
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; }; }; then :
1905 $as_echo "$as_me: program exited with status $ac_status" >&5
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1909 ac_retval=$ac_status
1911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status $ac_retval
1917 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1918 # -------------------------------------------------------
1919 # Tests whether HEADER exists and can be compiled using the include files in
1920 # INCLUDES, setting the cache variable VAR accordingly.
1921 ac_fn_c_check_header_compile ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if eval \${$3+:} false; then :
1927 $as_echo_n "(cached) " >&6
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1934 if ac_fn_c_try_compile "$LINENO"; then :
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943 $as_echo "$ac_res" >&6; }
1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946 } # ac_fn_c_check_header_compile
1948 # ac_fn_c_try_link LINENO
1949 # -----------------------
1950 # Try to link conftest.$ac_ext, and return whether this succeeded.
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 rm -f conftest.$ac_objext conftest$ac_exeext
1955 if { { ac_try="$ac_link"
1957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958 *) ac_try_echo=$ac_try;;
1960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961 $as_echo "$ac_try_echo"; } >&5
1962 (eval "$ac_link") 2>conftest.err
1964 if test -s conftest.err; then
1965 grep -v '^ *+' conftest.err >conftest.er1
1966 cat conftest.er1 >&5
1967 mv -f conftest.er1 conftest.err
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970 test $ac_status = 0; } && {
1971 test -z "$ac_c_werror_flag" ||
1972 test ! -s conftest.err
1973 } && test -s conftest$ac_exeext && {
1974 test "$cross_compiling" = yes ||
1975 test -x conftest$ac_exeext
1979 $as_echo "$as_me: failed program was:" >&5
1980 sed 's/^/| /' conftest.$ac_ext >&5
1984 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1985 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1986 # interfere with the next link command; also delete a directory that is
1987 # left behind by Apple's compiler. We do this before executing the actions.
1988 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990 as_fn_set_status $ac_retval
1992 } # ac_fn_c_try_link
1994 # ac_fn_c_check_func LINENO FUNC VAR
1995 # ----------------------------------
1996 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1997 ac_fn_c_check_func ()
1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2001 $as_echo_n "checking for $2... " >&6; }
2002 if eval \${$3+:} false; then :
2003 $as_echo_n "(cached) " >&6
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2007 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2009 #define $2 innocuous_$2
2011 /* System header to define __stub macros and hopefully few prototypes,
2012 which can conflict with char $2 (); below.
2013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2014 <limits.h> exists even on freestanding compilers. */
2017 # include <limits.h>
2019 # include <assert.h>
2024 /* Override any GCC internal prototype to avoid an error.
2025 Use char because int might match the return type of a GCC
2026 builtin and then its argument prototype would still apply. */
2031 /* The GNU C library defines this for functions which it implements
2032 to always fail with ENOSYS. Some functions are actually named
2033 something starting with __ and the normal name is an alias. */
2034 #if defined __stub_$2 || defined __stub___$2
2046 if ac_fn_c_try_link "$LINENO"; then :
2051 rm -f core conftest.err conftest.$ac_objext \
2052 conftest$ac_exeext conftest.$ac_ext
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056 $as_echo "$ac_res" >&6; }
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059 } # ac_fn_c_check_func
2060 cat >config.log <<_ACEOF
2061 This file contains any messages produced by compilers while
2062 running configure, to aid debugging if configure makes a mistake.
2064 It was created by ecryptfs-utils $as_me 104, which was
2065 generated by GNU Autoconf 2.69. Invocation command line was
2077 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2078 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2079 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2080 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2081 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2083 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2084 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2086 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2087 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2088 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2089 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2090 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2091 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2092 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 test -z "$as_dir" && as_dir=.
2101 $as_echo "PATH: $as_dir"
2117 # Keep a trace of the command line.
2118 # Strip out --no-create and --no-recursion so they do not pile up.
2119 # Strip out --silent because we don't want to record it for future runs.
2120 # Also quote any args containing shell meta-characters.
2121 # Make two passes to allow for proper duplicate-argument suppression.
2125 ac_must_keep_next=false
2131 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2133 | -silent | --silent | --silen | --sile | --sil)
2136 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2139 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2141 as_fn_append ac_configure_args1 " '$ac_arg'"
2142 if test $ac_must_keep_next = true; then
2143 ac_must_keep_next=false # Got value, back to normal.
2146 *=* | --config-cache | -C | -disable-* | --disable-* \
2147 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2148 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2149 | -with-* | --with-* | -without-* | --without-* | --x)
2150 case "$ac_configure_args0 " in
2151 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2154 -* ) ac_must_keep_next=true ;;
2157 as_fn_append ac_configure_args " '$ac_arg'"
2162 { ac_configure_args0=; unset ac_configure_args0;}
2163 { ac_configure_args1=; unset ac_configure_args1;}
2165 # When interrupted or exit'd, cleanup temporary files, and complete
2166 # config.log. We remove comments because anyway the quotes in there
2167 # would cause problems or look ugly.
2168 # WARNING: Use '\'' to represent an apostrophe within the trap.
2169 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2170 trap 'exit_status=$?
2171 # Save into config.log some information that might help in debugging.
2175 $as_echo "## ---------------- ##
2176 ## Cache variables. ##
2177 ## ---------------- ##"
2179 # The following way of writing the cache mishandles newlines in values,
2181 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2182 eval ac_val=\$$ac_var
2186 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2187 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2190 _ | IFS | as_nl) ;; #(
2191 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2192 *) { eval $ac_var=; unset $ac_var;} ;;
2197 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2198 *${as_nl}ac_space=\ *)
2200 "s/'\''/'\''\\\\'\'''\''/g;
2201 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2204 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2211 $as_echo "## ----------------- ##
2212 ## Output variables. ##
2213 ## ----------------- ##"
2215 for ac_var in $ac_subst_vars
2217 eval ac_val=\$$ac_var
2219 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2221 $as_echo "$ac_var='\''$ac_val'\''"
2225 if test -n "$ac_subst_files"; then
2226 $as_echo "## ------------------- ##
2227 ## File substitutions. ##
2228 ## ------------------- ##"
2230 for ac_var in $ac_subst_files
2232 eval ac_val=\$$ac_var
2234 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2236 $as_echo "$ac_var='\''$ac_val'\''"
2241 if test -s confdefs.h; then
2242 $as_echo "## ----------- ##
2249 test "$ac_signal" != 0 &&
2250 $as_echo "$as_me: caught signal $ac_signal"
2251 $as_echo "$as_me: exit $exit_status"
2253 rm -f core *.core core.conftest.* &&
2254 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2257 for ac_signal in 1 2 13 15; do
2258 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2262 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2263 rm -f -r conftest* confdefs.h
2265 $as_echo "/* confdefs.h */" > confdefs.h
2267 # Predefined preprocessor variables.
2269 cat >>confdefs.h <<_ACEOF
2270 #define PACKAGE_NAME "$PACKAGE_NAME"
2273 cat >>confdefs.h <<_ACEOF
2274 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2277 cat >>confdefs.h <<_ACEOF
2278 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2281 cat >>confdefs.h <<_ACEOF
2282 #define PACKAGE_STRING "$PACKAGE_STRING"
2285 cat >>confdefs.h <<_ACEOF
2286 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2289 cat >>confdefs.h <<_ACEOF
2290 #define PACKAGE_URL "$PACKAGE_URL"
2294 # Let the site file select an alternate cache file if it wants to.
2295 # Prefer an explicitly selected file to automatically selected ones.
2298 if test -n "$CONFIG_SITE"; then
2299 # We do not want a PATH search for config.site.
2300 case $CONFIG_SITE in #((
2301 -*) ac_site_file1=./$CONFIG_SITE;;
2302 */*) ac_site_file1=$CONFIG_SITE;;
2303 *) ac_site_file1=./$CONFIG_SITE;;
2305 elif test "x$prefix" != xNONE; then
2306 ac_site_file1=$prefix/share/config.site
2307 ac_site_file2=$prefix/etc/config.site
2309 ac_site_file1=$ac_default_prefix/share/config.site
2310 ac_site_file2=$ac_default_prefix/etc/config.site
2312 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2314 test "x$ac_site_file" = xNONE && continue
2315 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2317 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2318 sed 's/^/| /' "$ac_site_file" >&5
2320 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2322 as_fn_error $? "failed to load site script $ac_site_file
2323 See \`config.log' for more details" "$LINENO" 5; }
2327 if test -r "$cache_file"; then
2328 # Some versions of bash will fail to source /dev/null (special files
2329 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2330 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2332 $as_echo "$as_me: loading cache $cache_file" >&6;}
2334 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2335 *) . "./$cache_file";;
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2340 $as_echo "$as_me: creating cache $cache_file" >&6;}
2344 # Check that the precious variables saved in the cache have kept the same
2346 ac_cache_corrupted=false
2347 for ac_var in $ac_precious_vars; do
2348 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2349 eval ac_new_set=\$ac_env_${ac_var}_set
2350 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2351 eval ac_new_val=\$ac_env_${ac_var}_value
2352 case $ac_old_set,$ac_new_set in
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2355 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2356 ac_cache_corrupted=: ;;
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2359 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2360 ac_cache_corrupted=: ;;
2363 if test "x$ac_old_val" != "x$ac_new_val"; then
2364 # differences in whitespace do not lead to failure.
2365 ac_old_val_w=`echo x $ac_old_val`
2366 ac_new_val_w=`echo x $ac_new_val`
2367 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2369 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2370 ac_cache_corrupted=:
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2373 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2374 eval $ac_var=\$ac_old_val
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2377 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2379 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2382 # Pass precious variables to config.status.
2383 if test "$ac_new_set" = set; then
2385 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2386 *) ac_arg=$ac_var=$ac_new_val ;;
2388 case " $ac_configure_args " in
2389 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2390 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2394 if $ac_cache_corrupted; then
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2398 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2399 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2401 ## -------------------- ##
2402 ## Main body of script. ##
2403 ## -------------------- ##
2406 ac_cpp='$CPP $CPPFLAGS'
2407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2413 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2414 if test -f "$ac_dir/install-sh"; then
2416 ac_install_sh="$ac_aux_dir/install-sh -c"
2418 elif test -f "$ac_dir/install.sh"; then
2420 ac_install_sh="$ac_aux_dir/install.sh -c"
2422 elif test -f "$ac_dir/shtool"; then
2424 ac_install_sh="$ac_aux_dir/shtool install -c"
2428 if test -z "$ac_aux_dir"; then
2429 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2432 # These three variables are undocumented and unsupported,
2433 # and are intended to be withdrawn in a future Autoconf release.
2434 # They can cause serious problems if a builder's source tree is in a directory
2435 # whose full name contains unusual characters.
2436 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2437 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2438 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2441 # Make sure we can run config.sub.
2442 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2443 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2446 $as_echo_n "checking build system type... " >&6; }
2447 if ${ac_cv_build+:} false; then :
2448 $as_echo_n "(cached) " >&6
2450 ac_build_alias=$build_alias
2451 test "x$ac_build_alias" = x &&
2452 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2453 test "x$ac_build_alias" = x &&
2454 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2455 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2456 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2460 $as_echo "$ac_cv_build" >&6; }
2461 case $ac_cv_build in
2463 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2466 ac_save_IFS=$IFS; IFS='-'
2472 # Remember, the first character of IFS is used to create $*,
2473 # except with old shells:
2476 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2480 $as_echo_n "checking host system type... " >&6; }
2481 if ${ac_cv_host+:} false; then :
2482 $as_echo_n "(cached) " >&6
2484 if test "x$host_alias" = x; then
2485 ac_cv_host=$ac_cv_build
2487 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2488 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2493 $as_echo "$ac_cv_host" >&6; }
2496 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2499 ac_save_IFS=$IFS; IFS='-'
2505 # Remember, the first character of IFS is used to create $*,
2506 # except with old shells:
2509 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2513 $as_echo_n "checking target system type... " >&6; }
2514 if ${ac_cv_target+:} false; then :
2515 $as_echo_n "(cached) " >&6
2517 if test "x$target_alias" = x; then
2518 ac_cv_target=$ac_cv_host
2520 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2521 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2526 $as_echo "$ac_cv_target" >&6; }
2527 case $ac_cv_target in
2529 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2531 target=$ac_cv_target
2532 ac_save_IFS=$IFS; IFS='-'
2538 # Remember, the first character of IFS is used to create $*,
2539 # except with old shells:
2542 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2545 # The aliases save the names the user supplied, while $host etc.
2546 # will get canonicalized.
2547 test -n "$target_alias" &&
2548 test "$program_prefix$program_suffix$program_transform_name" = \
2550 program_prefix=${target_alias}-
2551 am__api_version='1.13'
2553 # Find a good install program. We prefer a C program (faster),
2554 # so one script is as good as another. But avoid the broken or
2555 # incompatible versions:
2556 # SysV /etc/install, /usr/sbin/install
2557 # SunOS /usr/etc/install
2558 # IRIX /sbin/install
2560 # AmigaOS /C/install, which installs bootblocks on floppy discs
2561 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2562 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2563 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2564 # OS/2's system install, which has a completely different semantic
2565 # ./install, which can be erroneously created by make from ./install.sh.
2566 # Reject install programs that cannot install multiple files.
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2568 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2569 if test -z "$INSTALL"; then
2570 if ${ac_cv_path_install+:} false; then :
2571 $as_echo_n "(cached) " >&6
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 test -z "$as_dir" && as_dir=.
2578 # Account for people who put trailing slashes in PATH elements.
2579 case $as_dir/ in #((
2580 ./ | .// | /[cC]/* | \
2581 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2582 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2585 # OSF1 and SCO ODT 3.0 have their own names for install.
2586 # Don't use installbsd from OSF since it installs stuff as root
2588 for ac_prog in ginstall scoinst install; do
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2591 if test $ac_prog = install &&
2592 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2593 # AIX install. It has an incompatible calling convention.
2595 elif test $ac_prog = install &&
2596 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2597 # program-specific install script used by HP pwplus--don't use.
2600 rm -rf conftest.one conftest.two conftest.dir
2601 echo one > conftest.one
2602 echo two > conftest.two
2604 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2605 test -s conftest.one && test -s conftest.two &&
2606 test -s conftest.dir/conftest.one &&
2607 test -s conftest.dir/conftest.two
2609 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2622 rm -rf conftest.one conftest.two conftest.dir
2625 if test "${ac_cv_path_install+set}" = set; then
2626 INSTALL=$ac_cv_path_install
2628 # As a last resort, use the slow shell script. Don't cache a
2629 # value for INSTALL within a source directory, because that will
2630 # break other packages using the cache if that directory is
2631 # removed, or if the value is a relative name.
2632 INSTALL=$ac_install_sh
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2636 $as_echo "$INSTALL" >&6; }
2638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2639 # It thinks the first close brace ends the variable substitution.
2640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2642 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2644 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2647 $as_echo_n "checking whether build environment is sane... " >&6; }
2648 # Reject unsafe characters in $srcdir or the absolute working directory
2649 # name. Accept space and tab only in the latter.
2653 *[\\\"\#\$\&\'\`$am_lf]*)
2654 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2657 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2658 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2661 # Do 'set' in a subshell so we don't clobber the current shell's
2662 # arguments. Must try -L first in case configure is actually a
2663 # symlink; some systems play weird games with the mod time of symlinks
2664 # (eg FreeBSD returns the mod time of the symlink's containing
2668 for am_try in 1 2; do
2669 echo "timestamp, slept: $am_has_slept" > conftest.file
2670 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2671 if test "$*" = "X"; then
2673 set X `ls -t "$srcdir/configure" conftest.file`
2675 if test "$*" != "X $srcdir/configure conftest.file" \
2676 && test "$*" != "X conftest.file $srcdir/configure"; then
2678 # If neither matched, then we have a broken ls. This can happen
2679 # if, for instance, CONFIG_SHELL is bash and it inherits a
2680 # broken ls alias from the environment. This has actually
2681 # happened. Such a system could not be considered "sane".
2682 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2683 alias in your environment" "$LINENO" 5
2685 if test "$2" = conftest.file || test $am_try -eq 2; then
2692 test "$2" = conftest.file
2698 as_fn_error $? "newly created file is older than distributed files!
2699 Check your system clock" "$LINENO" 5
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2702 $as_echo "yes" >&6; }
2703 # If we didn't sleep, we still need to ensure time stamps of config.status and
2704 # generated files are strictly newer.
2706 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2713 test "$program_prefix" != NONE &&
2714 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2715 # Use a double $ so make ignores it.
2716 test "$program_suffix" != NONE &&
2717 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2718 # Double any \ or $.
2719 # By default was `s,x,x', remove it if useless.
2720 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2721 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2723 # expand $ac_aux_dir to an absolute path
2724 am_aux_dir=`cd $ac_aux_dir && pwd`
2726 if test x"${MISSING+set}" != xset; then
2729 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2731 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2734 # Use eval to expand $SHELL
2735 if eval "$MISSING --is-lightweight"; then
2736 am_missing_run="$MISSING "
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2740 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2743 if test x"${install_sh}" != xset; then
2746 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2748 install_sh="\${SHELL} $am_aux_dir/install-sh"
2752 # Installed binaries are usually stripped using 'strip' when the user
2753 # run "make install-strip". However 'strip' might not be the right
2754 # tool to use in cross-compilation environments, therefore Automake
2755 # will honor the 'STRIP' environment variable to overrule this program.
2756 if test "$cross_compiling" != no; then
2757 if test -n "$ac_tool_prefix"; then
2758 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2759 set dummy ${ac_tool_prefix}strip; ac_word=$2
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2761 $as_echo_n "checking for $ac_word... " >&6; }
2762 if ${ac_cv_prog_STRIP+:} false; then :
2763 $as_echo_n "(cached) " >&6
2765 if test -n "$STRIP"; then
2766 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2775 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 STRIP=$ac_cv_prog_STRIP
2786 if test -n "$STRIP"; then
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2788 $as_echo "$STRIP" >&6; }
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791 $as_echo "no" >&6; }
2796 if test -z "$ac_cv_prog_STRIP"; then
2798 # Extract the first word of "strip", so it can be a program name with args.
2799 set dummy strip; ac_word=$2
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801 $as_echo_n "checking for $ac_word... " >&6; }
2802 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2803 $as_echo_n "(cached) " >&6
2805 if test -n "$ac_ct_STRIP"; then
2806 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2815 ac_cv_prog_ac_ct_STRIP="strip"
2816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2826 if test -n "$ac_ct_STRIP"; then
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2828 $as_echo "$ac_ct_STRIP" >&6; }
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831 $as_echo "no" >&6; }
2834 if test "x$ac_ct_STRIP" = x; then
2837 case $cross_compiling:$ac_tool_warned in
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2841 ac_tool_warned=yes ;;
2846 STRIP="$ac_cv_prog_STRIP"
2850 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2853 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2854 if test -z "$MKDIR_P"; then
2855 if ${ac_cv_path_mkdir+:} false; then :
2856 $as_echo_n "(cached) " >&6
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2862 test -z "$as_dir" && as_dir=.
2863 for ac_prog in mkdir gmkdir; do
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2866 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2867 'mkdir (GNU coreutils) '* | \
2868 'mkdir (coreutils) '* | \
2869 'mkdir (fileutils) '4.1*)
2870 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2880 test -d ./--version && rmdir ./--version
2881 if test "${ac_cv_path_mkdir+set}" = set; then
2882 MKDIR_P="$ac_cv_path_mkdir -p"
2884 # As a last resort, use the slow shell script. Don't cache a
2885 # value for MKDIR_P within a source directory, because that will
2886 # break other packages using the cache if that directory is
2887 # removed, or if the value is a relative name.
2888 MKDIR_P="$ac_install_sh -d"
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2892 $as_echo "$MKDIR_P" >&6; }
2894 for ac_prog in gawk mawk nawk awk
2896 # Extract the first word of "$ac_prog", so it can be a program name with args.
2897 set dummy $ac_prog; ac_word=$2
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899 $as_echo_n "checking for $ac_word... " >&6; }
2900 if ${ac_cv_prog_AWK+:} false; then :
2901 $as_echo_n "(cached) " >&6
2903 if test -n "$AWK"; then
2904 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913 ac_cv_prog_AWK="$ac_prog"
2914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 if test -n "$AWK"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2926 $as_echo "$AWK" >&6; }
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 $as_echo "no" >&6; }
2933 test -n "$AWK" && break
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2937 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2939 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2940 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2941 $as_echo_n "(cached) " >&6
2943 cat >conftest.make <<\_ACEOF
2946 @echo '@@@%%%=$(MAKE)=@@@%%%'
2948 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2949 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2951 eval ac_cv_prog_make_${ac_make}_set=yes;;
2953 eval ac_cv_prog_make_${ac_make}_set=no;;
2957 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2959 $as_echo "yes" >&6; }
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2964 SET_MAKE="MAKE=${MAKE-make}"
2967 rm -rf .tst 2>/dev/null
2968 mkdir .tst 2>/dev/null
2969 if test -d .tst; then
2974 rmdir .tst 2>/dev/null
2976 # Check whether --enable-silent-rules was given.
2977 if test "${enable_silent_rules+set}" = set; then :
2978 enableval=$enable_silent_rules;
2981 case $enable_silent_rules in # (((
2982 yes) AM_DEFAULT_VERBOSITY=0;;
2983 no) AM_DEFAULT_VERBOSITY=1;;
2984 *) AM_DEFAULT_VERBOSITY=1;;
2986 am_make=${MAKE-make}
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2988 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2989 if ${am_cv_make_support_nested_variables+:} false; then :
2990 $as_echo_n "(cached) " >&6
2992 if $as_echo 'TRUE=$(BAR$(V))
2998 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2999 am_cv_make_support_nested_variables=yes
3001 am_cv_make_support_nested_variables=no
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3005 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3006 if test $am_cv_make_support_nested_variables = yes; then
3008 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3010 AM_V=$AM_DEFAULT_VERBOSITY
3011 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3015 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3016 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3017 # is not polluted with repeated "-I."
3018 am__isrc=' -I$(srcdir)'
3019 # test to see if srcdir already configured
3020 if test -f $srcdir/config.status; then
3021 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3025 # test whether we have cygpath
3026 if test -z "$CYGPATH_W"; then
3027 if (cygpath --version) >/dev/null 2>/dev/null; then
3028 CYGPATH_W='cygpath -w'
3035 # Define the identity of the package.
3037 PACKAGE=${PACKAGE_NAME}
3038 VERSION=${PACKAGE_VERSION}
3041 cat >>confdefs.h <<_ACEOF
3042 #define PACKAGE "$PACKAGE"
3046 cat >>confdefs.h <<_ACEOF
3047 #define VERSION "$VERSION"
3050 # Some tools Automake needs.
3052 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3055 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3058 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3061 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3064 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3066 # For better backward compatibility. To be removed once Automake 1.9.x
3067 # dies out for good. For more background, see:
3068 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3069 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3070 mkdir_p='$(MKDIR_P)'
3072 # We need awk for the "check" target. The system "awk" is bad on
3074 # Always define AMTAR for backward compatibility. Yes, it's still used
3075 # in the wild :-( We should find a proper way to deprecate it ...
3079 # We'll loop over all known methods to create a tar archive until one works.
3080 _am_tools='gnutar pax cpio none'
3082 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3090 ac_config_headers="$ac_config_headers config.h"
3092 AM_CPPFLAGS='-include $(top_builddir)/config.h'
3096 # Check whether --enable-static was given.
3097 if test "${enable_static+set}" = set; then :
3098 enableval=$enable_static; p=${PACKAGE-default}
3100 yes) enable_static=yes ;;
3101 no) enable_static=no ;;
3104 # Look at the argument we got. We use all the common list separators.
3105 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3106 for pkg in $enableval; do
3108 if test "X$pkg" = "X$p"; then
3128 # libecryptfs versioning instructions
3130 # Update the version information only once per public release of
3131 # ecryptfs-utils. More frequent updates are unnecessary, and only guarantee
3132 # that the current interface number gets larger faster.
3134 # 1. If the library source code has changed at all since the last update, then
3135 # increment LIBECRYPTFS_LT_REVISION.
3136 # 2. If any interfaces have been added, removed, or changed since the last
3137 # update, increment LIBECRYPTFS_LT_CURRENT, and set LIBECRYPTFS_LT_REVISION to 0.
3138 # 3. If any interfaces have been added since the last public release, then
3139 # increment LIBECRYPTFS_LT_AGE.
3140 # 4. If any interfaces have been removed or changed since the last public
3141 # release, then set LIBECRYPTFS_LT_AGE to 0.
3144 # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
3145 LIBECRYPTFS_LT_CURRENT="1"
3146 LIBECRYPTFS_LT_REVISION="0"
3147 LIBECRYPTFS_LT_AGE="0"
3152 # Check whether --enable-nss was given.
3153 if test "${enable_nss+set}" = set; then :
3154 enableval=$enable_nss;
3161 # Check whether --enable-pywrap was given.
3162 if test "${enable_pywrap+set}" = set; then :
3163 enableval=$enable_pywrap;
3165 enable_pywrap="detect"
3170 # Check whether --enable-openssl was given.
3171 if test "${enable_openssl+set}" = set; then :
3172 enableval=$enable_openssl;
3174 enable_openssl="detect"
3179 # Check whether --enable-pkcs11-helper was given.
3180 if test "${enable_pkcs11_helper+set}" = set; then :
3181 enableval=$enable_pkcs11_helper;
3183 enable_pkcs11_helper="no"
3188 # Check whether --enable-tspi was given.
3189 if test "${enable_tspi+set}" = set; then :
3190 enableval=$enable_tspi;
3197 # Check whether --enable-gpg was given.
3198 if test "${enable_gpg+set}" = set; then :
3199 enableval=$enable_gpg;
3206 # Check whether --enable-pam was given.
3207 if test "${enable_pam+set}" = set; then :
3208 enableval=$enable_pam;
3215 # Check whether --enable-gui was given.
3216 if test "${enable_gui+set}" = set; then :
3217 enableval=$enable_gui;
3224 # Check whether --enable-docs was given.
3225 if test "${enable_docs+set}" = set; then :
3226 enableval=$enable_docs;
3233 # Check whether --enable-docs-gen was given.
3234 if test "${enable_docs_gen+set}" = set; then :
3235 enableval=$enable_docs_gen;
3237 enable_docs_gen="no"
3241 test "${enable_docs_gen}" = "yes" && enable_docs="yes"
3243 # Check whether --enable-tests was given.
3244 if test "${enable_tests+set}" = set; then :
3245 enableval=$enable_tests;
3252 # Check whether --enable-mudflap was given.
3253 if test "${enable_mudflap+set}" = set; then :
3254 enableval=$enable_mudflap;
3255 if "${enableval}" = "yes"; then
3256 CFLAGS="$CFLAGS -fmudflap"
3257 LDFLAGS="$LDFLAGS -lmudflap"
3265 # Check whether --with-gpgme-prefix was given.
3266 if test "${with_gpgme_prefix+set}" = set; then :
3267 withval=$with_gpgme_prefix;
3269 with_gpgme_prefix="/usr"
3275 # Check whether --with-pamdir was given.
3276 if test "${with_pamdir+set}" = set; then :
3277 withval=$with_pamdir; pamdir="${withval}"
3280 if test "${prefix}" = "/usr"; then
3281 pamdir="/lib${libdir##*/lib}/security"
3283 pamdir="\$(libdir)/security"
3291 # Check whether --with-ecryptfskeymoddir was given.
3292 if test "${with_ecryptfskeymoddir+set}" = set; then :
3293 withval=$with_ecryptfskeymoddir;
3294 ecryptfskeymoddir="${withval}"
3295 full_ecryptfskeymoddir="${ecryptfskeymoddir}"
3299 full_ecryptfskeymoddir=`eval eval eval eval eval echo "${libdir}/ecryptfs" | sed "s#NONE#${prefix}#" | sed "s#NONE#${ac_default_prefix}#"`
3300 ecryptfskeymoddir="\$(libdir)/ecryptfs"
3306 cat >>confdefs.h <<_ACEOF
3307 #define ECRYPTFS_DEFAULT_KEY_MOD_DIR "$full_ecryptfskeymoddir"
3311 DEPDIR="${am__leading_dot}deps"
3313 ac_config_commands="$ac_config_commands depfiles"
3316 am_make=${MAKE-make}
3317 cat > confinc << 'END'
3319 @echo this is the am__doit target
3322 # If we don't find an include directive, just comment out the code.
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3324 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3328 # First try GNU make style include.
3329 echo "include confinc" > confmf
3330 # Ignore all kinds of additional output from 'make'.
3331 case `$am_make -s -f confmf 2> /dev/null` in #(
3332 *the\ am__doit\ target*)
3338 # Now try BSD make style include.
3339 if test "$am__include" = "#"; then
3340 echo '.include "confinc"' > confmf
3341 case `$am_make -s -f confmf 2> /dev/null` in #(
3342 *the\ am__doit\ target*)
3343 am__include=.include
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3352 $as_echo "$_am_result" >&6; }
3353 rm -f confinc confmf
3355 # Check whether --enable-dependency-tracking was given.
3356 if test "${enable_dependency_tracking+set}" = set; then :
3357 enableval=$enable_dependency_tracking;
3360 if test "x$enable_dependency_tracking" != xno; then
3361 am_depcomp="$ac_aux_dir/depcomp"
3365 if test "x$enable_dependency_tracking" != xno; then
3375 ac_cpp='$CPP $CPPFLAGS'
3376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3379 if test -n "$ac_tool_prefix"; then
3380 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3381 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383 $as_echo_n "checking for $ac_word... " >&6; }
3384 if ${ac_cv_prog_CC+:} false; then :
3385 $as_echo_n "(cached) " >&6
3387 if test -n "$CC"; then
3388 ac_cv_prog_CC="$CC" # Let the user override the test.
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 test -z "$as_dir" && as_dir=.
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3408 if test -n "$CC"; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3410 $as_echo "$CC" >&6; }
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 $as_echo "no" >&6; }
3418 if test -z "$ac_cv_prog_CC"; then
3420 # Extract the first word of "gcc", so it can be a program name with args.
3421 set dummy gcc; ac_word=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3425 $as_echo_n "(cached) " >&6
3427 if test -n "$ac_ct_CC"; then
3428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437 ac_cv_prog_ac_ct_CC="gcc"
3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3448 if test -n "$ac_ct_CC"; then
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3450 $as_echo "$ac_ct_CC" >&6; }
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3456 if test "x$ac_ct_CC" = x; then
3459 case $cross_compiling:$ac_tool_warned in
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3463 ac_tool_warned=yes ;;
3471 if test -z "$CC"; then
3472 if test -n "$ac_tool_prefix"; then
3473 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3474 set dummy ${ac_tool_prefix}cc; ac_word=$2
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476 $as_echo_n "checking for $ac_word... " >&6; }
3477 if ${ac_cv_prog_CC+:} false; then :
3478 $as_echo_n "(cached) " >&6
3480 if test -n "$CC"; then
3481 ac_cv_prog_CC="$CC" # Let the user override the test.
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487 test -z "$as_dir" && as_dir=.
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3490 ac_cv_prog_CC="${ac_tool_prefix}cc"
3491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3501 if test -n "$CC"; then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3503 $as_echo "$CC" >&6; }
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506 $as_echo "no" >&6; }
3512 if test -z "$CC"; then
3513 # Extract the first word of "cc", so it can be a program name with args.
3514 set dummy cc; ac_word=$2
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3516 $as_echo_n "checking for $ac_word... " >&6; }
3517 if ${ac_cv_prog_CC+:} false; then :
3518 $as_echo_n "(cached) " >&6
3520 if test -n "$CC"; then
3521 ac_cv_prog_CC="$CC" # Let the user override the test.
3524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528 test -z "$as_dir" && as_dir=.
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3531 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3532 ac_prog_rejected=yes
3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3543 if test $ac_prog_rejected = yes; then
3544 # We found a bogon in the path, so make sure we never use it.
3545 set dummy $ac_cv_prog_CC
3547 if test $# != 0; then
3548 # We chose a different compiler from the bogus one.
3549 # However, it has the same basename, so the bogon will be chosen
3550 # first if we set CC to just the basename; use the full file name.
3552 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3558 if test -n "$CC"; then
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3560 $as_echo "$CC" >&6; }
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 $as_echo "no" >&6; }
3568 if test -z "$CC"; then
3569 if test -n "$ac_tool_prefix"; then
3570 for ac_prog in cl.exe
3572 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3573 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3575 $as_echo_n "checking for $ac_word... " >&6; }
3576 if ${ac_cv_prog_CC+:} false; then :
3577 $as_echo_n "(cached) " >&6
3579 if test -n "$CC"; then
3580 ac_cv_prog_CC="$CC" # Let the user override the test.
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 test -z "$as_dir" && as_dir=.
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3589 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 if test -n "$CC"; then
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3602 $as_echo "$CC" >&6; }
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3605 $as_echo "no" >&6; }
3609 test -n "$CC" && break
3612 if test -z "$CC"; then
3614 for ac_prog in cl.exe
3616 # Extract the first word of "$ac_prog", so it can be a program name with args.
3617 set dummy $ac_prog; ac_word=$2
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3619 $as_echo_n "checking for $ac_word... " >&6; }
3620 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3621 $as_echo_n "(cached) " >&6
3623 if test -n "$ac_ct_CC"; then
3624 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 test -z "$as_dir" && as_dir=.
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633 ac_cv_prog_ac_ct_CC="$ac_prog"
3634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3643 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3644 if test -n "$ac_ct_CC"; then
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3646 $as_echo "$ac_ct_CC" >&6; }
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3649 $as_echo "no" >&6; }
3653 test -n "$ac_ct_CC" && break
3656 if test "x$ac_ct_CC" = x; then
3659 case $cross_compiling:$ac_tool_warned in
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3663 ac_tool_warned=yes ;;
3672 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3674 as_fn_error $? "no acceptable C compiler found in \$PATH
3675 See \`config.log' for more details" "$LINENO" 5; }
3677 # Provide some information about the compiler.
3678 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3681 for ac_option in --version -v -V -qversion; do
3682 { { ac_try="$ac_compiler $ac_option >&5"
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3691 if test -s conftest.err; then
3693 ... rest of stderr output deleted ...
3694 10q' conftest.err >conftest.er1
3695 cat conftest.er1 >&5
3697 rm -f conftest.er1 conftest.err
3698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3699 test $ac_status = 0; }
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3713 ac_clean_files_save=$ac_clean_files
3714 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3715 # Try to create an executable without -o first, disregard a.out.
3716 # It will help us diagnose broken compilers, and finding out an intuition
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3719 $as_echo_n "checking whether the C compiler works... " >&6; }
3720 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3722 # The possible output files:
3723 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3726 for ac_file in $ac_files
3729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3730 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3735 if { { ac_try="$ac_link_default"
3737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738 *) ac_try_echo=$ac_try;;
3740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3741 $as_echo "$ac_try_echo"; } >&5
3742 (eval "$ac_link_default") 2>&5
3744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3745 test $ac_status = 0; }; then :
3746 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3747 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3748 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3749 # so that the user can short-circuit this test for compilers unknown to
3751 for ac_file in $ac_files ''
3753 test -f "$ac_file" || continue
3755 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3758 # We found the default executable, but exeext='' is most
3762 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3764 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3766 # We set ac_cv_exeext here because the later test for it is not
3767 # safe: cross compilers may not add the suffix if given an `-o'
3768 # argument, so we may need to know it at that point already.
3769 # Even if this section looks crufty: it has the advantage of
3776 test "$ac_cv_exeext" = no && ac_cv_exeext=
3781 if test -z "$ac_file"; then :
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783 $as_echo "no" >&6; }
3784 $as_echo "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3787 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789 as_fn_error 77 "C compiler cannot create executables
3790 See \`config.log' for more details" "$LINENO" 5; }
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3793 $as_echo "yes" >&6; }
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3796 $as_echo_n "checking for C compiler default output file name... " >&6; }
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3798 $as_echo "$ac_file" >&6; }
3799 ac_exeext=$ac_cv_exeext
3801 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3802 ac_clean_files=$ac_clean_files_save
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3804 $as_echo_n "checking for suffix of executables... " >&6; }
3805 if { { ac_try="$ac_link"
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3811 $as_echo "$ac_try_echo"; } >&5
3812 (eval "$ac_link") 2>&5
3814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3815 test $ac_status = 0; }; then :
3816 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3817 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3818 # work properly (i.e., refer to `conftest.exe'), while it won't with
3820 for ac_file in conftest.exe conftest conftest.*; do
3821 test -f "$ac_file" || continue
3823 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3824 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3830 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3832 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3833 See \`config.log' for more details" "$LINENO" 5; }
3835 rm -f conftest conftest$ac_cv_exeext
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3837 $as_echo "$ac_cv_exeext" >&6; }
3839 rm -f conftest.$ac_ext
3840 EXEEXT=$ac_cv_exeext
3842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3843 /* end confdefs.h. */
3848 FILE *f = fopen ("conftest.out", "w");
3849 return ferror (f) || fclose (f) != 0;
3855 ac_clean_files="$ac_clean_files conftest.out"
3856 # Check that the compiler produces executables we can run. If not, either
3857 # the compiler is broken, or we cross compile.
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3859 $as_echo_n "checking whether we are cross compiling... " >&6; }
3860 if test "$cross_compiling" != yes; then
3861 { { ac_try="$ac_link"
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3867 $as_echo "$ac_try_echo"; } >&5
3868 (eval "$ac_link") 2>&5
3870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3871 test $ac_status = 0; }
3872 if { ac_try='./conftest$ac_cv_exeext'
3873 { { case "(($ac_try" in
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_try") 2>&5
3881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3882 test $ac_status = 0; }; }; then
3885 if test "$cross_compiling" = maybe; then
3888 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3890 as_fn_error $? "cannot run C compiled programs.
3891 If you meant to cross compile, use \`--host'.
3892 See \`config.log' for more details" "$LINENO" 5; }
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3897 $as_echo "$cross_compiling" >&6; }
3899 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3900 ac_clean_files=$ac_clean_files_save
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3902 $as_echo_n "checking for suffix of object files... " >&6; }
3903 if ${ac_cv_objext+:} false; then :
3904 $as_echo_n "(cached) " >&6
3906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h. */
3917 rm -f conftest.o conftest.obj
3918 if { { ac_try="$ac_compile"
3920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921 *) ac_try_echo=$ac_try;;
3923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3924 $as_echo "$ac_try_echo"; } >&5
3925 (eval "$ac_compile") 2>&5
3927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3928 test $ac_status = 0; }; then :
3929 for ac_file in conftest.o conftest.obj conftest.*; do
3930 test -f "$ac_file" || continue;
3932 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3933 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3938 $as_echo "$as_me: failed program was:" >&5
3939 sed 's/^/| /' conftest.$ac_ext >&5
3941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3943 as_fn_error $? "cannot compute suffix of object files: cannot compile
3944 See \`config.log' for more details" "$LINENO" 5; }
3946 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3949 $as_echo "$ac_cv_objext" >&6; }
3950 OBJEXT=$ac_cv_objext
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3953 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3954 if ${ac_cv_c_compiler_gnu+:} false; then :
3955 $as_echo_n "(cached) " >&6
3957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h. */
3971 if ac_fn_c_try_compile "$LINENO"; then :
3976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3977 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3981 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3982 if test $ac_compiler_gnu = yes; then
3987 ac_test_CFLAGS=${CFLAGS+set}
3988 ac_save_CFLAGS=$CFLAGS
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3990 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3991 if ${ac_cv_prog_cc_g+:} false; then :
3992 $as_echo_n "(cached) " >&6
3994 ac_save_c_werror_flag=$ac_c_werror_flag
3995 ac_c_werror_flag=yes
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4009 if ac_fn_c_try_compile "$LINENO"; then :
4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h. */
4024 if ac_fn_c_try_compile "$LINENO"; then :
4027 ac_c_werror_flag=$ac_save_c_werror_flag
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4040 if ac_fn_c_try_compile "$LINENO"; then :
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4048 ac_c_werror_flag=$ac_save_c_werror_flag
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4051 $as_echo "$ac_cv_prog_cc_g" >&6; }
4052 if test "$ac_test_CFLAGS" = set; then
4053 CFLAGS=$ac_save_CFLAGS
4054 elif test $ac_cv_prog_cc_g = yes; then
4055 if test "$GCC" = yes; then
4061 if test "$GCC" = yes; then
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4068 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4069 if ${ac_cv_prog_cc_c89+:} false; then :
4070 $as_echo_n "(cached) " >&6
4072 ac_cv_prog_cc_c89=no
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4079 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4080 struct buf { int x; };
4081 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4082 static char *e (p, i)
4088 static char *f (char * (*g) (char **, int), char **p, ...)
4093 s = g (p, va_arg (v,int));
4098 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4099 function prototypes and stuff, but not '\xHH' hex character constants.
4100 These don't provoke an error unfortunately, instead are silently treated
4101 as 'x'. The following induces an error, until -std is added to get
4102 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4103 array size at least. It's necessary to write '\x00'==0 to get something
4104 that's true only with -std. */
4105 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4107 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4108 inside strings and character constants. */
4110 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4112 int test (int i, double x);
4113 struct s1 {int (*f) (int a);};
4114 struct s2 {int (*f) (double a);};
4115 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4121 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4126 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4127 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4129 CC="$ac_save_CC $ac_arg"
4130 if ac_fn_c_try_compile "$LINENO"; then :
4131 ac_cv_prog_cc_c89=$ac_arg
4133 rm -f core conftest.err conftest.$ac_objext
4134 test "x$ac_cv_prog_cc_c89" != "xno" && break
4136 rm -f conftest.$ac_ext
4141 case "x$ac_cv_prog_cc_c89" in
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4144 $as_echo "none needed" >&6; } ;;
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4147 $as_echo "unsupported" >&6; } ;;
4149 CC="$CC $ac_cv_prog_cc_c89"
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4151 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4153 if test "x$ac_cv_prog_cc_c89" != xno; then :
4158 ac_cpp='$CPP $CPPFLAGS'
4159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4163 depcc="$CC" am_compiler_list=
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4166 $as_echo_n "checking dependency style of $depcc... " >&6; }
4167 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4168 $as_echo_n "(cached) " >&6
4170 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4171 # We make a subdir and do the tests there. Otherwise we can end up
4172 # making bogus files that we don't know about and never remove. For
4173 # instance it was reported that on HP-UX the gcc test will end up
4174 # making a dummy file named 'D' -- because '-MD' means "put the output
4178 # Copy depcomp to subdir because otherwise we won't find it if we're
4179 # using a relative directory.
4180 cp "$am_depcomp" conftest.dir
4182 # We will build objects and dependencies in a subdirectory because
4183 # it helps to detect inapplicable dependency modes. For instance
4184 # both Tru64's cc and ICC support -MD to output dependencies as a
4185 # side effect of compilation, but ICC will put the dependencies in
4186 # the current directory while Tru64 will put them in the object
4190 am_cv_CC_dependencies_compiler_type=none
4191 if test "$am_compiler_list" = ""; then
4192 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4195 case " $depcc " in #(
4196 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4199 for depmode in $am_compiler_list; do
4200 # Setup a source with many dependencies, because some compilers
4201 # like to wrap large dependency lists on column 80 (with \), and
4202 # we should not choose a depcomp mode which is confused by this.
4204 # We need to recreate these files for each test, as the compiler may
4205 # overwrite some of them when testing with obscure command lines.
4206 # This happens at least with the AIX C compiler.
4208 for i in 1 2 3 4 5 6; do
4209 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4210 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4211 # Solaris 10 /bin/sh.
4212 echo '/* dummy */' > sub/conftst$i.h
4214 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4216 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4217 # mode. It turns out that the SunPro C++ compiler does not properly
4218 # handle '-M -o', and we need to detect this. Also, some Intel
4219 # versions had trouble with output in subdirs.
4220 am__obj=sub/conftest.${OBJEXT-o}
4221 am__minus_obj="-o $am__obj"
4224 # This depmode causes a compiler race in universal mode.
4225 test "$am__universal" = false || continue
4228 # After this tag, mechanisms are not by side-effect, so they'll
4229 # only be used when explicitly requested.
4230 if test "x$enable_dependency_tracking" = xyes; then
4236 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4237 # This compiler won't grok '-c -o', but also, the minuso test has
4238 # not run yet. These depmodes are late enough in the game, and
4239 # so weak that their functioning should not be impacted.
4240 am__obj=conftest.${OBJEXT-o}
4245 if depmode=$depmode \
4246 source=sub/conftest.c object=$am__obj \
4247 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4248 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4249 >/dev/null 2>conftest.err &&
4250 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4251 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4252 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4253 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4254 # icc doesn't choke on unknown options, it will just issue warnings
4255 # or remarks (even with -Werror). So we grep stderr for any message
4256 # that says an option was ignored or not supported.
4257 # When given -MP, icc 7.0 and 7.1 complain thusly:
4258 # icc: Command line warning: ignoring option '-M'; no argument required
4259 # The diagnosis changed in icc 8.0:
4260 # icc: Command line remark: option '-MP' not supported
4261 if (grep 'ignoring option' conftest.err ||
4262 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4263 am_cv_CC_dependencies_compiler_type=$depmode
4272 am_cv_CC_dependencies_compiler_type=none
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4277 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4278 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4281 test "x$enable_dependency_tracking" != xno \
4282 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4284 am__fastdepCC_FALSE='#'
4286 am__fastdepCC_TRUE='#'
4287 am__fastdepCC_FALSE=
4293 ac_cpp='$CPP $CPPFLAGS'
4294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4298 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4299 # On Suns, sometimes $CPP names a directory.
4300 if test -n "$CPP" && test -d "$CPP"; then
4303 if test -z "$CPP"; then
4304 if ${ac_cv_prog_CPP+:} false; then :
4305 $as_echo_n "(cached) " >&6
4307 # Double quotes because CPP needs to be expanded
4308 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4311 for ac_c_preproc_warn_flag in '' yes
4313 # Use a header file that comes with gcc, so configuring glibc
4314 # with a fresh cross-compiler works.
4315 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4316 # <limits.h> exists even on freestanding compilers.
4317 # On the NeXT, cc -E runs the code through the compiler's parser,
4318 # not just through cpp. "Syntax error" is here to catch this case.
4319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320 /* end confdefs.h. */
4322 # include <limits.h>
4324 # include <assert.h>
4328 if ac_fn_c_try_cpp "$LINENO"; then :
4331 # Broken: fails on valid input.
4334 rm -f conftest.err conftest.i conftest.$ac_ext
4336 # OK, works on sane cases. Now check whether nonexistent headers
4337 # can be detected and how.
4338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339 /* end confdefs.h. */
4340 #include <ac_nonexistent.h>
4342 if ac_fn_c_try_cpp "$LINENO"; then :
4343 # Broken: success on invalid input.
4346 # Passes both tests.
4350 rm -f conftest.err conftest.i conftest.$ac_ext
4353 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4354 rm -f conftest.i conftest.err conftest.$ac_ext
4355 if $ac_preproc_ok; then :
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4368 $as_echo "$CPP" >&6; }
4370 for ac_c_preproc_warn_flag in '' yes
4372 # Use a header file that comes with gcc, so configuring glibc
4373 # with a fresh cross-compiler works.
4374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4375 # <limits.h> exists even on freestanding compilers.
4376 # On the NeXT, cc -E runs the code through the compiler's parser,
4377 # not just through cpp. "Syntax error" is here to catch this case.
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4381 # include <limits.h>
4383 # include <assert.h>
4387 if ac_fn_c_try_cpp "$LINENO"; then :
4390 # Broken: fails on valid input.
4393 rm -f conftest.err conftest.i conftest.$ac_ext
4395 # OK, works on sane cases. Now check whether nonexistent headers
4396 # can be detected and how.
4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h. */
4399 #include <ac_nonexistent.h>
4401 if ac_fn_c_try_cpp "$LINENO"; then :
4402 # Broken: success on invalid input.
4405 # Passes both tests.
4409 rm -f conftest.err conftest.i conftest.$ac_ext
4412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4413 rm -f conftest.i conftest.err conftest.$ac_ext
4414 if $ac_preproc_ok; then :
4417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4419 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4420 See \`config.log' for more details" "$LINENO" 5; }
4424 ac_cpp='$CPP $CPPFLAGS'
4425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4431 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4432 if ${ac_cv_path_GREP+:} false; then :
4433 $as_echo_n "(cached) " >&6
4435 if test -z "$GREP"; then
4436 ac_path_GREP_found=false
4437 # Loop through the user's path and test for each of PROGNAME-LIST
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4442 test -z "$as_dir" && as_dir=.
4443 for ac_prog in grep ggrep; do
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4446 as_fn_executable_p "$ac_path_GREP" || continue
4447 # Check for GNU ac_path_GREP and select it if it is found.
4448 # Check for GNU $ac_path_GREP
4449 case `"$ac_path_GREP" --version 2>&1` in
4451 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4454 $as_echo_n 0123456789 >"conftest.in"
4457 cat "conftest.in" "conftest.in" >"conftest.tmp"
4458 mv "conftest.tmp" "conftest.in"
4459 cp "conftest.in" "conftest.nl"
4460 $as_echo 'GREP' >> "conftest.nl"
4461 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4462 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4463 as_fn_arith $ac_count + 1 && ac_count=$as_val
4464 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4465 # Best one so far, save it but keep looking for a better one
4466 ac_cv_path_GREP="$ac_path_GREP"
4467 ac_path_GREP_max=$ac_count
4469 # 10*(2^10) chars as input seems more than enough
4470 test $ac_count -gt 10 && break
4472 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4475 $ac_path_GREP_found && break 3
4480 if test -z "$ac_cv_path_GREP"; then
4481 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4484 ac_cv_path_GREP=$GREP
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4489 $as_echo "$ac_cv_path_GREP" >&6; }
4490 GREP="$ac_cv_path_GREP"
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4494 $as_echo_n "checking for egrep... " >&6; }
4495 if ${ac_cv_path_EGREP+:} false; then :
4496 $as_echo_n "(cached) " >&6
4498 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4499 then ac_cv_path_EGREP="$GREP -E"
4501 if test -z "$EGREP"; then
4502 ac_path_EGREP_found=false
4503 # Loop through the user's path and test for each of PROGNAME-LIST
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4508 test -z "$as_dir" && as_dir=.
4509 for ac_prog in egrep; do
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4512 as_fn_executable_p "$ac_path_EGREP" || continue
4513 # Check for GNU ac_path_EGREP and select it if it is found.
4514 # Check for GNU $ac_path_EGREP
4515 case `"$ac_path_EGREP" --version 2>&1` in
4517 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4520 $as_echo_n 0123456789 >"conftest.in"
4523 cat "conftest.in" "conftest.in" >"conftest.tmp"
4524 mv "conftest.tmp" "conftest.in"
4525 cp "conftest.in" "conftest.nl"
4526 $as_echo 'EGREP' >> "conftest.nl"
4527 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4528 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4529 as_fn_arith $ac_count + 1 && ac_count=$as_val
4530 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4531 # Best one so far, save it but keep looking for a better one
4532 ac_cv_path_EGREP="$ac_path_EGREP"
4533 ac_path_EGREP_max=$ac_count
4535 # 10*(2^10) chars as input seems more than enough
4536 test $ac_count -gt 10 && break
4538 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4541 $ac_path_EGREP_found && break 3
4546 if test -z "$ac_cv_path_EGREP"; then
4547 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4550 ac_cv_path_EGREP=$EGREP
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4556 $as_echo "$ac_cv_path_EGREP" >&6; }
4557 EGREP="$ac_cv_path_EGREP"
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4561 $as_echo_n "checking for ANSI C header files... " >&6; }
4562 if ${ac_cv_header_stdc+:} false; then :
4563 $as_echo_n "(cached) " >&6
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4580 if ac_fn_c_try_compile "$LINENO"; then :
4581 ac_cv_header_stdc=yes
4583 ac_cv_header_stdc=no
4585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4587 if test $ac_cv_header_stdc = yes; then
4588 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4595 $EGREP "memchr" >/dev/null 2>&1; then :
4598 ac_cv_header_stdc=no
4604 if test $ac_cv_header_stdc = yes; then
4605 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4612 $EGREP "free" >/dev/null 2>&1; then :
4615 ac_cv_header_stdc=no
4621 if test $ac_cv_header_stdc = yes; then
4622 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4623 if test "$cross_compiling" = yes; then :
4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627 /* end confdefs.h. */
4630 #if ((' ' & 0x0FF) == 0x020)
4631 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4632 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4634 # define ISLOWER(c) \
4635 (('a' <= (c) && (c) <= 'i') \
4636 || ('j' <= (c) && (c) <= 'r') \
4637 || ('s' <= (c) && (c) <= 'z'))
4638 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4641 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4646 for (i = 0; i < 256; i++)
4647 if (XOR (islower (i), ISLOWER (i))
4648 || toupper (i) != TOUPPER (i))
4653 if ac_fn_c_try_run "$LINENO"; then :
4656 ac_cv_header_stdc=no
4658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4659 conftest.$ac_objext conftest.beam conftest.$ac_ext
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4665 $as_echo "$ac_cv_header_stdc" >&6; }
4666 if test $ac_cv_header_stdc = yes; then
4668 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4672 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4673 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4674 inttypes.h stdint.h unistd.h
4676 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4677 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4679 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4680 cat >>confdefs.h <<_ACEOF
4681 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4690 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4691 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4698 if test "$MINIX" = yes; then
4700 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4703 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4706 $as_echo "#define _MINIX 1" >>confdefs.h
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4712 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4713 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4714 $as_echo_n "(cached) " >&6
4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h. */
4719 # define __EXTENSIONS__ 1
4720 $ac_includes_default
4729 if ac_fn_c_try_compile "$LINENO"; then :
4730 ac_cv_safe_to_define___extensions__=yes
4732 ac_cv_safe_to_define___extensions__=no
4734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4737 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4738 test $ac_cv_safe_to_define___extensions__ = yes &&
4739 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4741 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4743 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4745 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4747 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4753 ac_cpp='$CPP $CPPFLAGS'
4754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4757 if test -n "$ac_tool_prefix"; then
4758 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4759 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761 $as_echo_n "checking for $ac_word... " >&6; }
4762 if ${ac_cv_prog_CC+:} false; then :
4763 $as_echo_n "(cached) " >&6
4765 if test -n "$CC"; then
4766 ac_cv_prog_CC="$CC" # Let the user override the test.
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 test -z "$as_dir" && as_dir=.
4773 for ac_exec_ext in '' $ac_executable_extensions; do
4774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4775 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 if test -n "$CC"; then
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4788 $as_echo "$CC" >&6; }
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791 $as_echo "no" >&6; }
4796 if test -z "$ac_cv_prog_CC"; then
4798 # Extract the first word of "gcc", so it can be a program name with args.
4799 set dummy gcc; ac_word=$2
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4801 $as_echo_n "checking for $ac_word... " >&6; }
4802 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4803 $as_echo_n "(cached) " >&6
4805 if test -n "$ac_ct_CC"; then
4806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 test -z "$as_dir" && as_dir=.
4813 for ac_exec_ext in '' $ac_executable_extensions; do
4814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4815 ac_cv_prog_ac_ct_CC="gcc"
4816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4826 if test -n "$ac_ct_CC"; then
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4828 $as_echo "$ac_ct_CC" >&6; }
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831 $as_echo "no" >&6; }
4834 if test "x$ac_ct_CC" = x; then
4837 case $cross_compiling:$ac_tool_warned in
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4841 ac_tool_warned=yes ;;
4849 if test -z "$CC"; then
4850 if test -n "$ac_tool_prefix"; then
4851 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4852 set dummy ${ac_tool_prefix}cc; ac_word=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if ${ac_cv_prog_CC+:} false; then :
4856 $as_echo_n "(cached) " >&6
4858 if test -n "$CC"; then
4859 ac_cv_prog_CC="$CC" # Let the user override the test.
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4868 ac_cv_prog_CC="${ac_tool_prefix}cc"
4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 if test -n "$CC"; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4881 $as_echo "$CC" >&6; }
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4890 if test -z "$CC"; then
4891 # Extract the first word of "cc", so it can be a program name with args.
4892 set dummy cc; ac_word=$2
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894 $as_echo_n "checking for $ac_word... " >&6; }
4895 if ${ac_cv_prog_CC+:} false; then :
4896 $as_echo_n "(cached) " >&6
4898 if test -n "$CC"; then
4899 ac_cv_prog_CC="$CC" # Let the user override the test.
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4909 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4910 ac_prog_rejected=yes
4914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 if test $ac_prog_rejected = yes; then
4922 # We found a bogon in the path, so make sure we never use it.
4923 set dummy $ac_cv_prog_CC
4925 if test $# != 0; then
4926 # We chose a different compiler from the bogus one.
4927 # However, it has the same basename, so the bogon will be chosen
4928 # first if we set CC to just the basename; use the full file name.
4930 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4936 if test -n "$CC"; then
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4938 $as_echo "$CC" >&6; }
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941 $as_echo "no" >&6; }
4946 if test -z "$CC"; then
4947 if test -n "$ac_tool_prefix"; then
4948 for ac_prog in cl.exe
4950 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4951 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if ${ac_cv_prog_CC+:} false; then :
4955 $as_echo_n "(cached) " >&6
4957 if test -n "$CC"; then
4958 ac_cv_prog_CC="$CC" # Let the user override the test.
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964 test -z "$as_dir" && as_dir=.
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4967 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4978 if test -n "$CC"; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4980 $as_echo "$CC" >&6; }
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4987 test -n "$CC" && break
4990 if test -z "$CC"; then
4992 for ac_prog in cl.exe
4994 # Extract the first word of "$ac_prog", so it can be a program name with args.
4995 set dummy $ac_prog; ac_word=$2
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997 $as_echo_n "checking for $ac_word... " >&6; }
4998 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4999 $as_echo_n "(cached) " >&6
5001 if test -n "$ac_ct_CC"; then
5002 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008 test -z "$as_dir" && as_dir=.
5009 for ac_exec_ext in '' $ac_executable_extensions; do
5010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5011 ac_cv_prog_ac_ct_CC="$ac_prog"
5012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5022 if test -n "$ac_ct_CC"; then
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5024 $as_echo "$ac_ct_CC" >&6; }
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027 $as_echo "no" >&6; }
5031 test -n "$ac_ct_CC" && break
5034 if test "x$ac_ct_CC" = x; then
5037 case $cross_compiling:$ac_tool_warned in
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5041 ac_tool_warned=yes ;;
5050 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5052 as_fn_error $? "no acceptable C compiler found in \$PATH
5053 See \`config.log' for more details" "$LINENO" 5; }
5055 # Provide some information about the compiler.
5056 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5059 for ac_option in --version -v -V -qversion; do
5060 { { ac_try="$ac_compiler $ac_option >&5"
5062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5063 *) ac_try_echo=$ac_try;;
5065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5066 $as_echo "$ac_try_echo"; } >&5
5067 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5069 if test -s conftest.err; then
5071 ... rest of stderr output deleted ...
5072 10q' conftest.err >conftest.er1
5073 cat conftest.er1 >&5
5075 rm -f conftest.er1 conftest.err
5076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5077 test $ac_status = 0; }
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5081 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5082 if ${ac_cv_c_compiler_gnu+:} false; then :
5083 $as_echo_n "(cached) " >&6
5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086 /* end confdefs.h. */
5099 if ac_fn_c_try_compile "$LINENO"; then :
5104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5109 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5110 if test $ac_compiler_gnu = yes; then
5115 ac_test_CFLAGS=${CFLAGS+set}
5116 ac_save_CFLAGS=$CFLAGS
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5118 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5119 if ${ac_cv_prog_cc_g+:} false; then :
5120 $as_echo_n "(cached) " >&6
5122 ac_save_c_werror_flag=$ac_c_werror_flag
5123 ac_c_werror_flag=yes
5126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127 /* end confdefs.h. */
5137 if ac_fn_c_try_compile "$LINENO"; then :
5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142 /* end confdefs.h. */
5152 if ac_fn_c_try_compile "$LINENO"; then :
5155 ac_c_werror_flag=$ac_save_c_werror_flag
5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158 /* end confdefs.h. */
5168 if ac_fn_c_try_compile "$LINENO"; then :
5171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5176 ac_c_werror_flag=$ac_save_c_werror_flag
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5179 $as_echo "$ac_cv_prog_cc_g" >&6; }
5180 if test "$ac_test_CFLAGS" = set; then
5181 CFLAGS=$ac_save_CFLAGS
5182 elif test $ac_cv_prog_cc_g = yes; then
5183 if test "$GCC" = yes; then
5189 if test "$GCC" = yes; then
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5196 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5197 if ${ac_cv_prog_cc_c89+:} false; then :
5198 $as_echo_n "(cached) " >&6
5200 ac_cv_prog_cc_c89=no
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5207 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5208 struct buf { int x; };
5209 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5210 static char *e (p, i)
5216 static char *f (char * (*g) (char **, int), char **p, ...)
5221 s = g (p, va_arg (v,int));
5226 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5227 function prototypes and stuff, but not '\xHH' hex character constants.
5228 These don't provoke an error unfortunately, instead are silently treated
5229 as 'x'. The following induces an error, until -std is added to get
5230 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5231 array size at least. It's necessary to write '\x00'==0 to get something
5232 that's true only with -std. */
5233 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5235 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5236 inside strings and character constants. */
5238 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5240 int test (int i, double x);
5241 struct s1 {int (*f) (int a);};
5242 struct s2 {int (*f) (double a);};
5243 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5249 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5254 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5255 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5257 CC="$ac_save_CC $ac_arg"
5258 if ac_fn_c_try_compile "$LINENO"; then :
5259 ac_cv_prog_cc_c89=$ac_arg
5261 rm -f core conftest.err conftest.$ac_objext
5262 test "x$ac_cv_prog_cc_c89" != "xno" && break
5264 rm -f conftest.$ac_ext
5269 case "x$ac_cv_prog_cc_c89" in
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5272 $as_echo "none needed" >&6; } ;;
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5275 $as_echo "unsupported" >&6; } ;;
5277 CC="$CC $ac_cv_prog_cc_c89"
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5279 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5281 if test "x$ac_cv_prog_cc_c89" != xno; then :
5286 ac_cpp='$CPP $CPPFLAGS'
5287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5291 depcc="$CC" am_compiler_list=
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5294 $as_echo_n "checking dependency style of $depcc... " >&6; }
5295 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5296 $as_echo_n "(cached) " >&6
5298 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5299 # We make a subdir and do the tests there. Otherwise we can end up
5300 # making bogus files that we don't know about and never remove. For
5301 # instance it was reported that on HP-UX the gcc test will end up
5302 # making a dummy file named 'D' -- because '-MD' means "put the output
5306 # Copy depcomp to subdir because otherwise we won't find it if we're
5307 # using a relative directory.
5308 cp "$am_depcomp" conftest.dir
5310 # We will build objects and dependencies in a subdirectory because
5311 # it helps to detect inapplicable dependency modes. For instance
5312 # both Tru64's cc and ICC support -MD to output dependencies as a
5313 # side effect of compilation, but ICC will put the dependencies in
5314 # the current directory while Tru64 will put them in the object
5318 am_cv_CC_dependencies_compiler_type=none
5319 if test "$am_compiler_list" = ""; then
5320 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5323 case " $depcc " in #(
5324 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5327 for depmode in $am_compiler_list; do
5328 # Setup a source with many dependencies, because some compilers
5329 # like to wrap large dependency lists on column 80 (with \), and
5330 # we should not choose a depcomp mode which is confused by this.
5332 # We need to recreate these files for each test, as the compiler may
5333 # overwrite some of them when testing with obscure command lines.
5334 # This happens at least with the AIX C compiler.
5336 for i in 1 2 3 4 5 6; do
5337 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5338 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5339 # Solaris 10 /bin/sh.
5340 echo '/* dummy */' > sub/conftst$i.h
5342 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5344 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5345 # mode. It turns out that the SunPro C++ compiler does not properly
5346 # handle '-M -o', and we need to detect this. Also, some Intel
5347 # versions had trouble with output in subdirs.
5348 am__obj=sub/conftest.${OBJEXT-o}
5349 am__minus_obj="-o $am__obj"
5352 # This depmode causes a compiler race in universal mode.
5353 test "$am__universal" = false || continue
5356 # After this tag, mechanisms are not by side-effect, so they'll
5357 # only be used when explicitly requested.
5358 if test "x$enable_dependency_tracking" = xyes; then
5364 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5365 # This compiler won't grok '-c -o', but also, the minuso test has
5366 # not run yet. These depmodes are late enough in the game, and
5367 # so weak that their functioning should not be impacted.
5368 am__obj=conftest.${OBJEXT-o}
5373 if depmode=$depmode \
5374 source=sub/conftest.c object=$am__obj \
5375 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5376 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5377 >/dev/null 2>conftest.err &&
5378 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5379 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5380 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5381 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5382 # icc doesn't choke on unknown options, it will just issue warnings
5383 # or remarks (even with -Werror). So we grep stderr for any message
5384 # that says an option was ignored or not supported.
5385 # When given -MP, icc 7.0 and 7.1 complain thusly:
5386 # icc: Command line warning: ignoring option '-M'; no argument required
5387 # The diagnosis changed in icc 8.0:
5388 # icc: Command line remark: option '-MP' not supported
5389 if (grep 'ignoring option' conftest.err ||
5390 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5391 am_cv_CC_dependencies_compiler_type=$depmode
5400 am_cv_CC_dependencies_compiler_type=none
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5405 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5406 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5409 test "x$enable_dependency_tracking" != xno \
5410 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5412 am__fastdepCC_FALSE='#'
5414 am__fastdepCC_TRUE='#'
5415 am__fastdepCC_FALSE=
5420 if test "x$CC" != xcc; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5422 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5425 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5427 set dummy $CC; ac_cc=`$as_echo "$2" |
5428 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5429 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5430 $as_echo_n "(cached) " >&6
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h. */
5443 # Make sure it works both with $CC and with simple cc.
5444 # We do the test twice because some compilers refuse to overwrite an
5445 # existing .o file with -o, though they will create one.
5446 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5448 if { { case "(($ac_try" in
5449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450 *) ac_try_echo=$ac_try;;
5452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5453 $as_echo "$ac_try_echo"; } >&5
5454 (eval "$ac_try") 2>&5
5456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5457 test $ac_status = 0; } &&
5458 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460 *) ac_try_echo=$ac_try;;
5462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5463 $as_echo "$ac_try_echo"; } >&5
5464 (eval "$ac_try") 2>&5
5466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5467 test $ac_status = 0; };
5469 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5470 if test "x$CC" != xcc; then
5471 # Test first that cc exists at all.
5472 if { ac_try='cc -c conftest.$ac_ext >&5'
5473 { { case "(($ac_try" in
5474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475 *) ac_try_echo=$ac_try;;
5477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5478 $as_echo "$ac_try_echo"; } >&5
5479 (eval "$ac_try") 2>&5
5481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5482 test $ac_status = 0; }; }; then
5483 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5485 if { { case "(($ac_try" in
5486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5487 *) ac_try_echo=$ac_try;;
5489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5490 $as_echo "$ac_try_echo"; } >&5
5491 (eval "$ac_try") 2>&5
5493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5494 test $ac_status = 0; } &&
5495 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5497 *) ac_try_echo=$ac_try;;
5499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5500 $as_echo "$ac_try_echo"; } >&5
5501 (eval "$ac_try") 2>&5
5503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5504 test $ac_status = 0; };
5509 # cc exists but doesn't like -o.
5510 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5515 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5517 rm -f core conftest*
5520 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5522 $as_echo "yes" >&6; }
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5527 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5531 # FIXME: we rely on the cache variable name because
5532 # there is no other way.
5534 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5535 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5536 if test "$am_t" != yes; then
5537 # Losing compiler, so override with the script.
5538 # FIXME: It is wrong to rewrite CC.
5539 # But if we don't then we get into trouble of one sort or another.
5540 # A longer-term fix would be to have automake use am__CC in this case,
5541 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5542 CC="$am_aux_dir/compile $CC"
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5547 $as_echo_n "checking whether ln -s works... " >&6; }
5549 if test "$LN_S" = "ln -s"; then
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5551 $as_echo "yes" >&6; }
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5554 $as_echo "no, using $LN_S" >&6; }
5564 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5565 if test -n "$ac_tool_prefix"; then
5566 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5567 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5569 $as_echo_n "checking for $ac_word... " >&6; }
5570 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5571 $as_echo_n "(cached) " >&6
5575 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 test -z "$as_dir" && as_dir=.
5583 for ac_exec_ext in '' $ac_executable_extensions; do
5584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5585 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5596 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5597 if test -n "$PKG_CONFIG"; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5599 $as_echo "$PKG_CONFIG" >&6; }
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5607 if test -z "$ac_cv_path_PKG_CONFIG"; then
5608 ac_pt_PKG_CONFIG=$PKG_CONFIG
5609 # Extract the first word of "pkg-config", so it can be a program name with args.
5610 set dummy pkg-config; ac_word=$2
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612 $as_echo_n "checking for $ac_word... " >&6; }
5613 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5614 $as_echo_n "(cached) " >&6
5616 case $ac_pt_PKG_CONFIG in
5618 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 test -z "$as_dir" && as_dir=.
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5628 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5639 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5640 if test -n "$ac_pt_PKG_CONFIG"; then
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5642 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5645 $as_echo "no" >&6; }
5648 if test "x$ac_pt_PKG_CONFIG" = x; then
5651 case $cross_compiling:$ac_tool_warned in
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5655 ac_tool_warned=yes ;;
5657 PKG_CONFIG=$ac_pt_PKG_CONFIG
5660 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5664 if test -n "$PKG_CONFIG"; then
5665 _pkg_min_version=0.9.0
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5667 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5668 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5670 $as_echo "yes" >&6; }
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673 $as_echo "no" >&6; }
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5681 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5686 macro_version='2.4.2'
5687 macro_revision='1.3337'
5701 ltmain="$ac_aux_dir/ltmain.sh"
5703 # Backslashify metacharacters that are still active within
5704 # double-quoted strings.
5705 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5707 # Same as above, but do not quote variable references.
5708 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5710 # Sed substitution to delay expansion of an escaped shell variable in a
5711 # double_quote_subst'ed string.
5712 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5714 # Sed substitution to delay expansion of an escaped single quote.
5715 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5717 # Sed substitution to avoid accidental globbing in evaled expressions
5718 no_glob_subst='s/\*/\\\*/g'
5720 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5721 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5722 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5725 $as_echo_n "checking how to print strings... " >&6; }
5726 # Test print first, because it will be a builtin if present.
5727 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5728 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5730 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5733 # Use this function as a fallback that always works.
5734 func_fallback_echo ()
5736 eval 'cat <<_LTECHO_EOF
5740 ECHO='func_fallback_echo'
5743 # func_echo_all arg...
5744 # Invoke $ECHO with all args, space-separated.
5751 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5752 $as_echo "printf" >&6; } ;;
5753 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5754 $as_echo "print -r" >&6; } ;;
5755 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5756 $as_echo "cat" >&6; } ;;
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5773 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5774 if ${ac_cv_path_SED+:} false; then :
5775 $as_echo_n "(cached) " >&6
5777 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5778 for ac_i in 1 2 3 4 5 6 7; do
5779 ac_script="$ac_script$as_nl$ac_script"
5781 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5782 { ac_script=; unset ac_script;}
5783 if test -z "$SED"; then
5784 ac_path_SED_found=false
5785 # Loop through the user's path and test for each of PROGNAME-LIST
5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790 test -z "$as_dir" && as_dir=.
5791 for ac_prog in sed gsed; do
5792 for ac_exec_ext in '' $ac_executable_extensions; do
5793 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5794 as_fn_executable_p "$ac_path_SED" || continue
5795 # Check for GNU ac_path_SED and select it if it is found.
5796 # Check for GNU $ac_path_SED
5797 case `"$ac_path_SED" --version 2>&1` in
5799 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5802 $as_echo_n 0123456789 >"conftest.in"
5805 cat "conftest.in" "conftest.in" >"conftest.tmp"
5806 mv "conftest.tmp" "conftest.in"
5807 cp "conftest.in" "conftest.nl"
5808 $as_echo '' >> "conftest.nl"
5809 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5810 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5811 as_fn_arith $ac_count + 1 && ac_count=$as_val
5812 if test $ac_count -gt ${ac_path_SED_max-0}; then
5813 # Best one so far, save it but keep looking for a better one
5814 ac_cv_path_SED="$ac_path_SED"
5815 ac_path_SED_max=$ac_count
5817 # 10*(2^10) chars as input seems more than enough
5818 test $ac_count -gt 10 && break
5820 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5823 $ac_path_SED_found && break 3
5828 if test -z "$ac_cv_path_SED"; then
5829 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5837 $as_echo "$ac_cv_path_SED" >&6; }
5838 SED="$ac_cv_path_SED"
5841 test -z "$SED" && SED=sed
5842 Xsed="$SED -e 1s/^X//"
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5855 $as_echo_n "checking for fgrep... " >&6; }
5856 if ${ac_cv_path_FGREP+:} false; then :
5857 $as_echo_n "(cached) " >&6
5859 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5860 then ac_cv_path_FGREP="$GREP -F"
5862 if test -z "$FGREP"; then
5863 ac_path_FGREP_found=false
5864 # Loop through the user's path and test for each of PROGNAME-LIST
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5869 test -z "$as_dir" && as_dir=.
5870 for ac_prog in fgrep; do
5871 for ac_exec_ext in '' $ac_executable_extensions; do
5872 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5873 as_fn_executable_p "$ac_path_FGREP" || continue
5874 # Check for GNU ac_path_FGREP and select it if it is found.
5875 # Check for GNU $ac_path_FGREP
5876 case `"$ac_path_FGREP" --version 2>&1` in
5878 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5881 $as_echo_n 0123456789 >"conftest.in"
5884 cat "conftest.in" "conftest.in" >"conftest.tmp"
5885 mv "conftest.tmp" "conftest.in"
5886 cp "conftest.in" "conftest.nl"
5887 $as_echo 'FGREP' >> "conftest.nl"
5888 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5889 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5890 as_fn_arith $ac_count + 1 && ac_count=$as_val
5891 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5892 # Best one so far, save it but keep looking for a better one
5893 ac_cv_path_FGREP="$ac_path_FGREP"
5894 ac_path_FGREP_max=$ac_count
5896 # 10*(2^10) chars as input seems more than enough
5897 test $ac_count -gt 10 && break
5899 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5902 $ac_path_FGREP_found && break 3
5907 if test -z "$ac_cv_path_FGREP"; then
5908 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5911 ac_cv_path_FGREP=$FGREP
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5917 $as_echo "$ac_cv_path_FGREP" >&6; }
5918 FGREP="$ac_cv_path_FGREP"
5921 test -z "$GREP" && GREP=grep
5941 # Check whether --with-gnu-ld was given.
5942 if test "${with_gnu_ld+set}" = set; then :
5943 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5949 if test "$GCC" = yes; then
5950 # Check if gcc -print-prog-name=ld gives a path.
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5952 $as_echo_n "checking for ld used by $CC... " >&6; }
5955 # gcc leaves a trailing carriage return which upsets mingw
5956 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5958 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5961 # Accept absolute paths.
5963 re_direlt='/[^/][^/]*/\.\./'
5964 # Canonicalize the pathname of ld
5965 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5966 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5967 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5969 test -z "$LD" && LD="$ac_prog"
5972 # If it fails, then pretend we aren't using GCC.
5976 # If it is relative, then search for the first ld in PATH.
5980 elif test "$with_gnu_ld" = yes; then
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5982 $as_echo_n "checking for GNU ld... " >&6; }
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5985 $as_echo_n "checking for non-GNU ld... " >&6; }
5987 if ${lt_cv_path_LD+:} false; then :
5988 $as_echo_n "(cached) " >&6
5990 if test -z "$LD"; then
5991 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5992 for ac_dir in $PATH; do
5994 test -z "$ac_dir" && ac_dir=.
5995 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5996 lt_cv_path_LD="$ac_dir/$ac_prog"
5997 # Check to see if the program is GNU ld. I'd rather use --version,
5998 # but apparently some variants of GNU ld only accept -v.
5999 # Break only if it was the GNU/non-GNU ld that we prefer.
6000 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6001 *GNU* | *'with BFD'*)
6002 test "$with_gnu_ld" != no && break
6005 test "$with_gnu_ld" != yes && break
6012 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6017 if test -n "$LD"; then
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6019 $as_echo "$LD" >&6; }
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022 $as_echo "no" >&6; }
6024 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6026 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6027 if ${lt_cv_prog_gnu_ld+:} false; then :
6028 $as_echo_n "(cached) " >&6
6030 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6031 case `$LD -v 2>&1 </dev/null` in
6032 *GNU* | *'with BFD'*)
6033 lt_cv_prog_gnu_ld=yes
6036 lt_cv_prog_gnu_ld=no
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6041 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6042 with_gnu_ld=$lt_cv_prog_gnu_ld
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6053 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6054 if ${lt_cv_path_NM+:} false; then :
6055 $as_echo_n "(cached) " >&6
6057 if test -n "$NM"; then
6058 # Let the user override the test.
6061 lt_nm_to_check="${ac_tool_prefix}nm"
6062 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6063 lt_nm_to_check="$lt_nm_to_check nm"
6065 for lt_tmp_nm in $lt_nm_to_check; do
6066 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6067 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6069 test -z "$ac_dir" && ac_dir=.
6070 tmp_nm="$ac_dir/$lt_tmp_nm"
6071 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6072 # Check to see if the nm accepts a BSD-compat flag.
6073 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6074 # nm: unknown option "B" ignored
6075 # Tru64's nm complains that /dev/null is an invalid object file
6076 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6077 */dev/null* | *'Invalid file or object type'*)
6078 lt_cv_path_NM="$tmp_nm -B"
6082 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6084 lt_cv_path_NM="$tmp_nm -p"
6088 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6089 continue # so that we can try to find one that supports BSD flags
6098 : ${lt_cv_path_NM=no}
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6102 $as_echo "$lt_cv_path_NM" >&6; }
6103 if test "$lt_cv_path_NM" != "no"; then
6106 # Didn't find any BSD compatible name lister, look for dumpbin.
6107 if test -n "$DUMPBIN"; then :
6108 # Let the user override the test.
6110 if test -n "$ac_tool_prefix"; then
6111 for ac_prog in dumpbin "link -dump"
6113 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6114 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6116 $as_echo_n "checking for $ac_word... " >&6; }
6117 if ${ac_cv_prog_DUMPBIN+:} false; then :
6118 $as_echo_n "(cached) " >&6
6120 if test -n "$DUMPBIN"; then
6121 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6130 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6140 DUMPBIN=$ac_cv_prog_DUMPBIN
6141 if test -n "$DUMPBIN"; then
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6143 $as_echo "$DUMPBIN" >&6; }
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146 $as_echo "no" >&6; }
6150 test -n "$DUMPBIN" && break
6153 if test -z "$DUMPBIN"; then
6154 ac_ct_DUMPBIN=$DUMPBIN
6155 for ac_prog in dumpbin "link -dump"
6157 # Extract the first word of "$ac_prog", so it can be a program name with args.
6158 set dummy $ac_prog; ac_word=$2
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6160 $as_echo_n "checking for $ac_word... " >&6; }
6161 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6162 $as_echo_n "(cached) " >&6
6164 if test -n "$ac_ct_DUMPBIN"; then
6165 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171 test -z "$as_dir" && as_dir=.
6172 for ac_exec_ext in '' $ac_executable_extensions; do
6173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6174 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6184 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6185 if test -n "$ac_ct_DUMPBIN"; then
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6187 $as_echo "$ac_ct_DUMPBIN" >&6; }
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6190 $as_echo "no" >&6; }
6194 test -n "$ac_ct_DUMPBIN" && break
6197 if test "x$ac_ct_DUMPBIN" = x; then
6200 case $cross_compiling:$ac_tool_warned in
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6204 ac_tool_warned=yes ;;
6206 DUMPBIN=$ac_ct_DUMPBIN
6210 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6212 DUMPBIN="$DUMPBIN -symbols"
6220 if test "$DUMPBIN" != ":"; then
6224 test -z "$NM" && NM=nm
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6232 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6233 if ${lt_cv_nm_interface+:} false; then :
6234 $as_echo_n "(cached) " >&6
6236 lt_cv_nm_interface="BSD nm"
6237 echo "int some_variable = 0;" > conftest.$ac_ext
6238 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6239 (eval "$ac_compile" 2>conftest.err)
6240 cat conftest.err >&5
6241 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6242 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6243 cat conftest.err >&5
6244 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6245 cat conftest.out >&5
6246 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6247 lt_cv_nm_interface="MS dumpbin"
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6252 $as_echo "$lt_cv_nm_interface" >&6; }
6254 # find the maximum length of command line arguments
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6256 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6257 if ${lt_cv_sys_max_cmd_len+:} false; then :
6258 $as_echo_n "(cached) " >&6
6265 # On DJGPP, this test can blow up pretty badly due to problems in libc
6266 # (any single argument exceeding 2000 bytes causes a buffer overrun
6267 # during glob expansion). Even if it were fixed, the result of this
6268 # check would be larger than it should be.
6269 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6273 # Under GNU Hurd, this test is not required because there is
6274 # no limit to the length of command line arguments.
6275 # Libtool will interpret -1 as no limit whatsoever
6276 lt_cv_sys_max_cmd_len=-1;
6279 cygwin* | mingw* | cegcc*)
6280 # On Win9x/ME, this test blows up -- it succeeds, but takes
6281 # about 5 minutes as the teststring grows exponentially.
6282 # Worse, since 9x/ME are not pre-emptively multitasking,
6283 # you end up with a "frozen" computer, even though with patience
6284 # the test eventually succeeds (with a max line length of 256k).
6285 # Instead, let's just punt: use the minimum linelength reported by
6286 # all of the supported platforms: 8192 (on NT/2K/XP).
6287 lt_cv_sys_max_cmd_len=8192;
6291 # On MiNT this can take a long time and run out of memory.
6292 lt_cv_sys_max_cmd_len=8192;
6296 # On AmigaOS with pdksh, this test takes hours, literally.
6297 # So we just punt and use a minimum line length of 8192.
6298 lt_cv_sys_max_cmd_len=8192;
6301 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6302 # This has been around since 386BSD, at least. Likely further.
6303 if test -x /sbin/sysctl; then
6304 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6305 elif test -x /usr/sbin/sysctl; then
6306 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6308 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6310 # And add a safety zone
6311 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6312 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6316 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6317 lt_cv_sys_max_cmd_len=196608
6321 # The test takes a long time on OS/2.
6322 lt_cv_sys_max_cmd_len=8192
6326 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6327 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6328 # nice to cause kernel panics so lets avoid the loop below.
6329 # First set a reasonable default.
6330 lt_cv_sys_max_cmd_len=16384
6332 if test -x /sbin/sysconfig; then
6333 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6334 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6339 lt_cv_sys_max_cmd_len=102400
6341 sysv5* | sco5v6* | sysv4.2uw2*)
6342 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6343 if test -n "$kargmax"; then
6344 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6346 lt_cv_sys_max_cmd_len=32768
6350 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6351 if test -n "$lt_cv_sys_max_cmd_len" && \
6352 test undefined != "$lt_cv_sys_max_cmd_len"; then
6353 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6354 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6356 # Make teststring a little bigger before we do anything with it.
6357 # a 1K string should be a reasonable start.
6358 for i in 1 2 3 4 5 6 7 8 ; do
6359 teststring=$teststring$teststring
6361 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6362 # If test is not a shell built-in, we'll probably end up computing a
6363 # maximum length that is only half of the actual maximum length, but
6365 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6366 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6367 test $i != 17 # 1/2 MB should be enough
6370 teststring=$teststring$teststring
6372 # Only check the string length outside the loop.
6373 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6375 # Add a significant safety factor because C++ compilers can tack on
6376 # massive amounts of additional arguments before passing them to the
6377 # linker. It appears as though 1/2 is a usable value.
6378 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6385 if test -n $lt_cv_sys_max_cmd_len ; then
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6387 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6390 $as_echo "none" >&6; }
6392 max_cmd_len=$lt_cv_sys_max_cmd_len
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6404 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6405 # Try some XSI features
6408 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6410 && eval 'test $(( 1 + 1 )) -eq 2 \
6411 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6414 $as_echo "$xsi_shell" >&6; }
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6418 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6420 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6422 && lt_shell_append=yes
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6424 $as_echo "$lt_shell_append" >&6; }
6427 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6437 # test EBCDIC or ASCII
6438 case `echo X|tr X '\101'` in
6439 A) # ASCII based system
6440 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6441 lt_SP2NL='tr \040 \012'
6442 lt_NL2SP='tr \015\012 \040\040'
6444 *) # EBCDIC based system
6445 lt_SP2NL='tr \100 \n'
6446 lt_NL2SP='tr \r\n \100\100'
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6459 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6460 if ${lt_cv_to_host_file_cmd+:} false; then :
6461 $as_echo_n "(cached) " >&6
6466 *-*-mingw* ) # actually msys
6467 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6470 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6472 * ) # otherwise, assume *nix
6473 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6479 *-*-mingw* ) # actually msys
6480 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6483 lt_cv_to_host_file_cmd=func_convert_file_noop
6485 * ) # otherwise, assume *nix
6486 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6490 * ) # unhandled hosts (and "normal" native builds)
6491 lt_cv_to_host_file_cmd=func_convert_file_noop
6497 to_host_file_cmd=$lt_cv_to_host_file_cmd
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6499 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6506 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6507 if ${lt_cv_to_tool_file_cmd+:} false; then :
6508 $as_echo_n "(cached) " >&6
6510 #assume ordinary cross tools, or native build.
6511 lt_cv_to_tool_file_cmd=func_convert_file_noop
6515 *-*-mingw* ) # actually msys
6516 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6524 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6526 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6533 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6534 if ${lt_cv_ld_reload_flag+:} false; then :
6535 $as_echo_n "(cached) " >&6
6537 lt_cv_ld_reload_flag='-r'
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6540 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6541 reload_flag=$lt_cv_ld_reload_flag
6542 case $reload_flag in
6544 *) reload_flag=" $reload_flag" ;;
6546 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6548 cygwin* | mingw* | pw32* | cegcc*)
6549 if test "$GCC" != yes; then
6554 if test "$GCC" = yes; then
6555 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6557 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6570 if test -n "$ac_tool_prefix"; then
6571 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6572 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574 $as_echo_n "checking for $ac_word... " >&6; }
6575 if ${ac_cv_prog_OBJDUMP+:} false; then :
6576 $as_echo_n "(cached) " >&6
6578 if test -n "$OBJDUMP"; then
6579 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6588 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 OBJDUMP=$ac_cv_prog_OBJDUMP
6599 if test -n "$OBJDUMP"; then
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6601 $as_echo "$OBJDUMP" >&6; }
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 $as_echo "no" >&6; }
6609 if test -z "$ac_cv_prog_OBJDUMP"; then
6610 ac_ct_OBJDUMP=$OBJDUMP
6611 # Extract the first word of "objdump", so it can be a program name with args.
6612 set dummy objdump; ac_word=$2
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6614 $as_echo_n "checking for $ac_word... " >&6; }
6615 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6616 $as_echo_n "(cached) " >&6
6618 if test -n "$ac_ct_OBJDUMP"; then
6619 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625 test -z "$as_dir" && as_dir=.
6626 for ac_exec_ext in '' $ac_executable_extensions; do
6627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6628 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6638 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6639 if test -n "$ac_ct_OBJDUMP"; then
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6641 $as_echo "$ac_ct_OBJDUMP" >&6; }
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644 $as_echo "no" >&6; }
6647 if test "x$ac_ct_OBJDUMP" = x; then
6650 case $cross_compiling:$ac_tool_warned in
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6654 ac_tool_warned=yes ;;
6656 OBJDUMP=$ac_ct_OBJDUMP
6659 OBJDUMP="$ac_cv_prog_OBJDUMP"
6662 test -z "$OBJDUMP" && OBJDUMP=objdump
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6673 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6674 if ${lt_cv_deplibs_check_method+:} false; then :
6675 $as_echo_n "(cached) " >&6
6677 lt_cv_file_magic_cmd='$MAGIC_CMD'
6678 lt_cv_file_magic_test_file=
6679 lt_cv_deplibs_check_method='unknown'
6680 # Need to set the preceding variable on all platforms that support
6681 # interlibrary dependencies.
6682 # 'none' -- dependencies not supported.
6683 # `unknown' -- same as none, but documents that we really don't know.
6684 # 'pass_all' -- all dependencies passed with no checks.
6685 # 'test_compile' -- check by making test program.
6686 # 'file_magic [[regex]]' -- check by looking for files in library path
6687 # which responds to the $file_magic_cmd with a given extended regex.
6688 # If you have `file' or equivalent on your system and you're not sure
6689 # whether `pass_all' will *always* work, you probably want this one.
6693 lt_cv_deplibs_check_method=pass_all
6697 lt_cv_deplibs_check_method=pass_all
6701 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6702 lt_cv_file_magic_cmd='/usr/bin/file -L'
6703 lt_cv_file_magic_test_file=/shlib/libc.so
6707 # func_win32_libid is a shell function defined in ltmain.sh
6708 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6709 lt_cv_file_magic_cmd='func_win32_libid'
6713 # Base MSYS/MinGW do not provide the 'file' command needed by
6714 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6715 # unless we find 'file', for example because we are cross-compiling.
6716 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6717 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6718 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6719 lt_cv_file_magic_cmd='func_win32_libid'
6721 # Keep this pattern in sync with the one in func_win32_libid.
6722 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6723 lt_cv_file_magic_cmd='$OBJDUMP -f'
6728 # use the weaker test based on 'objdump'. See mingw*.
6729 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6730 lt_cv_file_magic_cmd='$OBJDUMP -f'
6733 darwin* | rhapsody*)
6734 lt_cv_deplibs_check_method=pass_all
6737 freebsd* | dragonfly*)
6738 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6741 # Not sure whether the presence of OpenBSD here was a mistake.
6742 # Let's accept both of them until this is cleared up.
6743 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6744 lt_cv_file_magic_cmd=/usr/bin/file
6745 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6749 lt_cv_deplibs_check_method=pass_all
6754 lt_cv_deplibs_check_method=pass_all
6757 hpux10.20* | hpux11*)
6758 lt_cv_file_magic_cmd=/usr/bin/file
6761 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6762 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6765 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]'
6766 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6769 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6770 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6776 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6777 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6780 irix5* | irix6* | nonstopux*)
6782 *-32|*"-32 ") libmagic=32-bit;;
6783 *-n32|*"-n32 ") libmagic=N32;;
6784 *-64|*"-64 ") libmagic=64-bit;;
6785 *) libmagic=never-match;;
6787 lt_cv_deplibs_check_method=pass_all
6790 # This must be glibc/ELF.
6791 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6792 lt_cv_deplibs_check_method=pass_all
6795 netbsd* | netbsdelf*-gnu)
6796 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6797 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6799 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6804 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6805 lt_cv_file_magic_cmd=/usr/bin/file
6806 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6810 lt_cv_deplibs_check_method=pass_all
6814 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6815 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6817 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6821 osf3* | osf4* | osf5*)
6822 lt_cv_deplibs_check_method=pass_all
6826 lt_cv_deplibs_check_method=pass_all
6830 lt_cv_deplibs_check_method=pass_all
6833 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6834 lt_cv_deplibs_check_method=pass_all
6838 case $host_vendor in
6840 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]'
6841 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6844 lt_cv_deplibs_check_method=pass_all
6847 lt_cv_file_magic_cmd='/bin/file'
6848 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6851 lt_cv_file_magic_cmd='/bin/file'
6852 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6853 lt_cv_file_magic_test_file=/lib/libc.so
6856 lt_cv_deplibs_check_method=pass_all
6859 lt_cv_deplibs_check_method=pass_all
6865 lt_cv_deplibs_check_method=pass_all
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6871 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6875 if test "$build" = "$host"; then
6878 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6881 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6887 file_magic_cmd=$lt_cv_file_magic_cmd
6888 deplibs_check_method=$lt_cv_deplibs_check_method
6889 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6912 if test -n "$ac_tool_prefix"; then
6913 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6914 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if ${ac_cv_prog_DLLTOOL+:} false; then :
6918 $as_echo_n "(cached) " >&6
6920 if test -n "$DLLTOOL"; then
6921 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6930 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 DLLTOOL=$ac_cv_prog_DLLTOOL
6941 if test -n "$DLLTOOL"; then
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6943 $as_echo "$DLLTOOL" >&6; }
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6951 if test -z "$ac_cv_prog_DLLTOOL"; then
6952 ac_ct_DLLTOOL=$DLLTOOL
6953 # Extract the first word of "dlltool", so it can be a program name with args.
6954 set dummy dlltool; ac_word=$2
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956 $as_echo_n "checking for $ac_word... " >&6; }
6957 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6958 $as_echo_n "(cached) " >&6
6960 if test -n "$ac_ct_DLLTOOL"; then
6961 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 test -z "$as_dir" && as_dir=.
6968 for ac_exec_ext in '' $ac_executable_extensions; do
6969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6970 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6981 if test -n "$ac_ct_DLLTOOL"; then
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6983 $as_echo "$ac_ct_DLLTOOL" >&6; }
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986 $as_echo "no" >&6; }
6989 if test "x$ac_ct_DLLTOOL" = x; then
6992 case $cross_compiling:$ac_tool_warned in
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6996 ac_tool_warned=yes ;;
6998 DLLTOOL=$ac_ct_DLLTOOL
7001 DLLTOOL="$ac_cv_prog_DLLTOOL"
7004 test -z "$DLLTOOL" && DLLTOOL=dlltool
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7016 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7017 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7018 $as_echo_n "(cached) " >&6
7020 lt_cv_sharedlib_from_linklib_cmd='unknown'
7023 cygwin* | mingw* | pw32* | cegcc*)
7024 # two different shell functions defined in ltmain.sh
7025 # decide which to use based on capabilities of $DLLTOOL
7026 case `$DLLTOOL --help 2>&1` in
7027 *--identify-strict*)
7028 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7031 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7036 # fallback: assume linklib IS sharedlib
7037 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7043 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7044 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7045 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7053 if test -n "$ac_tool_prefix"; then
7056 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7057 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059 $as_echo_n "checking for $ac_word... " >&6; }
7060 if ${ac_cv_prog_AR+:} false; then :
7061 $as_echo_n "(cached) " >&6
7063 if test -n "$AR"; then
7064 ac_cv_prog_AR="$AR" # Let the user override the test.
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7073 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7084 if test -n "$AR"; then
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7086 $as_echo "$AR" >&6; }
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089 $as_echo "no" >&6; }
7093 test -n "$AR" && break
7096 if test -z "$AR"; then
7100 # Extract the first word of "$ac_prog", so it can be a program name with args.
7101 set dummy $ac_prog; ac_word=$2
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7103 $as_echo_n "checking for $ac_word... " >&6; }
7104 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7105 $as_echo_n "(cached) " >&6
7107 if test -n "$ac_ct_AR"; then
7108 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 test -z "$as_dir" && as_dir=.
7115 for ac_exec_ext in '' $ac_executable_extensions; do
7116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7117 ac_cv_prog_ac_ct_AR="$ac_prog"
7118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7127 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7128 if test -n "$ac_ct_AR"; then
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7130 $as_echo "$ac_ct_AR" >&6; }
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7133 $as_echo "no" >&6; }
7137 test -n "$ac_ct_AR" && break
7140 if test "x$ac_ct_AR" = x; then
7143 case $cross_compiling:$ac_tool_warned in
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7147 ac_tool_warned=yes ;;
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7167 $as_echo_n "checking for archiver @FILE support... " >&6; }
7168 if ${lt_cv_ar_at_file+:} false; then :
7169 $as_echo_n "(cached) " >&6
7172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h. */
7183 if ac_fn_c_try_compile "$LINENO"; then :
7184 echo conftest.$ac_objext > conftest.lst
7185 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7187 (eval $lt_ar_try) 2>&5
7189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7190 test $ac_status = 0; }
7191 if test "$ac_status" -eq 0; then
7192 # Ensure the archiver fails upon bogus file names.
7193 rm -f conftest.$ac_objext libconftest.a
7194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7195 (eval $lt_ar_try) 2>&5
7197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7198 test $ac_status = 0; }
7199 if test "$ac_status" -ne 0; then
7203 rm -f conftest.* libconftest.a
7206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7210 $as_echo "$lt_cv_ar_at_file" >&6; }
7212 if test "x$lt_cv_ar_at_file" = xno; then
7215 archiver_list_spec=$lt_cv_ar_at_file
7224 if test -n "$ac_tool_prefix"; then
7225 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7226 set dummy ${ac_tool_prefix}strip; ac_word=$2
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7228 $as_echo_n "checking for $ac_word... " >&6; }
7229 if ${ac_cv_prog_STRIP+:} false; then :
7230 $as_echo_n "(cached) " >&6
7232 if test -n "$STRIP"; then
7233 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7242 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7252 STRIP=$ac_cv_prog_STRIP
7253 if test -n "$STRIP"; then
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7255 $as_echo "$STRIP" >&6; }
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 $as_echo "no" >&6; }
7263 if test -z "$ac_cv_prog_STRIP"; then
7265 # Extract the first word of "strip", so it can be a program name with args.
7266 set dummy strip; ac_word=$2
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7268 $as_echo_n "checking for $ac_word... " >&6; }
7269 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7270 $as_echo_n "(cached) " >&6
7272 if test -n "$ac_ct_STRIP"; then
7273 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279 test -z "$as_dir" && as_dir=.
7280 for ac_exec_ext in '' $ac_executable_extensions; do
7281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7282 ac_cv_prog_ac_ct_STRIP="strip"
7283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7293 if test -n "$ac_ct_STRIP"; then
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7295 $as_echo "$ac_ct_STRIP" >&6; }
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7298 $as_echo "no" >&6; }
7301 if test "x$ac_ct_STRIP" = x; then
7304 case $cross_compiling:$ac_tool_warned in
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7308 ac_tool_warned=yes ;;
7313 STRIP="$ac_cv_prog_STRIP"
7316 test -z "$STRIP" && STRIP=:
7323 if test -n "$ac_tool_prefix"; then
7324 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7325 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if ${ac_cv_prog_RANLIB+:} false; then :
7329 $as_echo_n "(cached) " >&6
7331 if test -n "$RANLIB"; then
7332 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 test -z "$as_dir" && as_dir=.
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7341 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7351 RANLIB=$ac_cv_prog_RANLIB
7352 if test -n "$RANLIB"; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7354 $as_echo "$RANLIB" >&6; }
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7362 if test -z "$ac_cv_prog_RANLIB"; then
7363 ac_ct_RANLIB=$RANLIB
7364 # Extract the first word of "ranlib", so it can be a program name with args.
7365 set dummy ranlib; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7369 $as_echo_n "(cached) " >&6
7371 if test -n "$ac_ct_RANLIB"; then
7372 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 test -z "$as_dir" && as_dir=.
7379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7381 ac_cv_prog_ac_ct_RANLIB="ranlib"
7382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7392 if test -n "$ac_ct_RANLIB"; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7394 $as_echo "$ac_ct_RANLIB" >&6; }
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7400 if test "x$ac_ct_RANLIB" = x; then
7403 case $cross_compiling:$ac_tool_warned in
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7407 ac_tool_warned=yes ;;
7409 RANLIB=$ac_ct_RANLIB
7412 RANLIB="$ac_cv_prog_RANLIB"
7415 test -z "$RANLIB" && RANLIB=:
7422 # Determine commands to create old-style static archives.
7423 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7424 old_postinstall_cmds='chmod 644 $oldlib'
7425 old_postuninstall_cmds=
7427 if test -n "$RANLIB"; then
7430 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7433 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7436 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7441 lock_old_archive_extraction=yes ;;
7443 lock_old_archive_extraction=no ;;
7484 # If no C compiler was specified, use CC.
7487 # If no C compiler flags were specified, use CFLAGS.
7488 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7490 # Allow CC to be a program name with arguments.
7494 # Check for command to grab the raw symbol name followed by C symbol from nm.
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7496 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7497 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7498 $as_echo_n "(cached) " >&6
7501 # These are sane defaults that work on at least a few old systems.
7502 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7504 # Character class describing NM global symbol codes.
7505 symcode='[BCDEGRST]'
7507 # Regexp to match symbols that can be accessed directly from C.
7508 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7510 # Define system-specific variables.
7515 cygwin* | mingw* | pw32* | cegcc*)
7516 symcode='[ABCDGISTW]'
7519 if test "$host_cpu" = ia64; then
7520 symcode='[ABCDEGRST]'
7524 symcode='[BCDEGRST]'
7527 symcode='[BCDEGQRST]'
7538 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7546 # If we're using GNU nm, then use its standard symbol codes.
7547 case `$NM -V 2>&1` in
7548 *GNU* | *'with BFD'*)
7549 symcode='[ABCDGIRSTW]' ;;
7552 # Transform an extracted symbol line into a proper C declaration.
7553 # Some systems (esp. on ia64) link data and code symbols differently,
7554 # so use this general approach.
7555 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7557 # Transform an extracted symbol line into symbol name and symbol address
7558 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7559 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7561 # Handle CRLF in mingw tool chain
7565 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7569 # Try without a prefix underscore, then with it.
7570 for ac_symprfx in "" "_"; do
7572 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7573 symxfrm="\\1 $ac_symprfx\\2 \\2"
7575 # Write the raw and C identifiers.
7576 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7577 # Fake it for dumpbin and say T for any non-static function
7578 # and D for any global variable.
7579 # Also find C++ and __fastcall symbols from MSVC++,
7580 # which start with @ or ?.
7581 lt_cv_sys_global_symbol_pipe="$AWK '"\
7582 " {last_section=section; section=\$ 3};"\
7583 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7584 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7585 " \$ 0!~/External *\|/{next};"\
7586 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7587 " {if(hide[section]) next};"\
7588 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7589 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7590 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7591 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7592 " ' prfx=^$ac_symprfx"
7594 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7596 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7598 # Check to see that the pipe works correctly.
7602 cat > conftest.$ac_ext <<_LT_EOF
7607 void nm_test_func(void);
7608 void nm_test_func(void){}
7612 int main(){nm_test_var='a';nm_test_func();return(0);}
7615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7616 (eval $ac_compile) 2>&5
7618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7619 test $ac_status = 0; }; then
7620 # Now try to grab the symbols.
7622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7623 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7626 test $ac_status = 0; } && test -s "$nlist"; then
7627 # Try sorting and uniquifying the output.
7628 if sort "$nlist" | uniq > "$nlist"T; then
7629 mv -f "$nlist"T "$nlist"
7634 # Make sure that we snagged all the symbols we need.
7635 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7636 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7637 cat <<_LT_EOF > conftest.$ac_ext
7638 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7639 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7640 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7641 relocations are performed -- see ld's documentation on pseudo-relocs. */
7642 # define LT_DLSYM_CONST
7643 #elif defined(__osf__)
7644 /* This system does not cope well with relocations in const data. */
7645 # define LT_DLSYM_CONST
7647 # define LT_DLSYM_CONST const
7655 # Now generate the symbol file.
7656 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7658 cat <<_LT_EOF >> conftest.$ac_ext
7660 /* The mapping between symbol names and symbols. */
7661 LT_DLSYM_CONST struct {
7665 lt__PROGRAM__LTX_preloaded_symbols[] =
7667 { "@PROGRAM@", (void *) 0 },
7669 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7670 cat <<\_LT_EOF >> conftest.$ac_ext
7674 /* This works around a problem in FreeBSD linker */
7675 #ifdef FREEBSD_WORKAROUND
7676 static const void *lt_preloaded_setup() {
7677 return lt__PROGRAM__LTX_preloaded_symbols;
7685 # Now try linking the two files.
7686 mv conftest.$ac_objext conftstm.$ac_objext
7687 lt_globsym_save_LIBS=$LIBS
7688 lt_globsym_save_CFLAGS=$CFLAGS
7689 LIBS="conftstm.$ac_objext"
7690 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7692 (eval $ac_link) 2>&5
7694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7695 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7698 LIBS=$lt_globsym_save_LIBS
7699 CFLAGS=$lt_globsym_save_CFLAGS
7701 echo "cannot find nm_test_func in $nlist" >&5
7704 echo "cannot find nm_test_var in $nlist" >&5
7707 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7710 echo "$progname: failed program was:" >&5
7711 cat conftest.$ac_ext >&5
7713 rm -rf conftest* conftst*
7715 # Do not use the global_symbol_pipe unless it works.
7716 if test "$pipe_works" = yes; then
7719 lt_cv_sys_global_symbol_pipe=
7725 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7726 lt_cv_sys_global_symbol_to_cdecl=
7728 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7730 $as_echo "failed" >&6; }
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7733 $as_echo "ok" >&6; }
7736 # Response file support.
7737 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7738 nm_file_list_spec='@'
7739 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7740 nm_file_list_spec='@'
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7770 $as_echo_n "checking for sysroot... " >&6; }
7772 # Check whether --with-sysroot was given.
7773 if test "${with_sysroot+set}" = set; then :
7774 withval=$with_sysroot;
7781 case ${with_sysroot} in #(
7783 if test "$GCC" = yes; then
7784 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7788 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7794 $as_echo "${with_sysroot}" >&6; }
7795 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7800 $as_echo "${lt_sysroot:-no}" >&6; }
7806 # Check whether --enable-libtool-lock was given.
7807 if test "${enable_libtool_lock+set}" = set; then :
7808 enableval=$enable_libtool_lock;
7811 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7813 # Some flags need to be propagated to the compiler or linker for good
7817 # Find out which ABI we are using.
7818 echo 'int i;' > conftest.$ac_ext
7819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7820 (eval $ac_compile) 2>&5
7822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7823 test $ac_status = 0; }; then
7824 case `/usr/bin/file conftest.$ac_objext` in
7836 # Find out which ABI we are using.
7837 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7839 (eval $ac_compile) 2>&5
7841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7842 test $ac_status = 0; }; then
7843 if test "$lt_cv_prog_gnu_ld" = yes; then
7844 case `/usr/bin/file conftest.$ac_objext` in
7846 LD="${LD-ld} -melf32bsmip"
7849 LD="${LD-ld} -melf32bmipn32"
7852 LD="${LD-ld} -melf64bmip"
7856 case `/usr/bin/file conftest.$ac_objext` in
7872 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7873 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7874 # Find out which ABI we are using.
7875 echo 'int i;' > conftest.$ac_ext
7876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7877 (eval $ac_compile) 2>&5
7879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7880 test $ac_status = 0; }; then
7881 case `/usr/bin/file conftest.o` in
7884 x86_64-*kfreebsd*-gnu)
7885 LD="${LD-ld} -m elf_i386_fbsd"
7888 case `/usr/bin/file conftest.o` in
7890 LD="${LD-ld} -m elf32_x86_64"
7893 LD="${LD-ld} -m elf_i386"
7897 ppc64-*linux*|powerpc64-*linux*)
7898 LD="${LD-ld} -m elf32ppclinux"
7901 LD="${LD-ld} -m elf_s390"
7904 LD="${LD-ld} -m elf32_sparc"
7910 x86_64-*kfreebsd*-gnu)
7911 LD="${LD-ld} -m elf_x86_64_fbsd"
7914 LD="${LD-ld} -m elf_x86_64"
7916 ppc*-*linux*|powerpc*-*linux*)
7917 LD="${LD-ld} -m elf64ppc"
7919 s390*-*linux*|s390*-*tpf*)
7920 LD="${LD-ld} -m elf64_s390"
7923 LD="${LD-ld} -m elf64_sparc"
7933 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7934 SAVE_CFLAGS="$CFLAGS"
7935 CFLAGS="$CFLAGS -belf"
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7937 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7938 if ${lt_cv_cc_needs_belf+:} false; then :
7939 $as_echo_n "(cached) " >&6
7942 ac_cpp='$CPP $CPPFLAGS'
7943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948 /* end confdefs.h. */
7958 if ac_fn_c_try_link "$LINENO"; then :
7959 lt_cv_cc_needs_belf=yes
7961 lt_cv_cc_needs_belf=no
7963 rm -f core conftest.err conftest.$ac_objext \
7964 conftest$ac_exeext conftest.$ac_ext
7966 ac_cpp='$CPP $CPPFLAGS'
7967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7973 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7974 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7975 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7976 CFLAGS="$SAVE_CFLAGS"
7980 # Find out which ABI we are using.
7981 echo 'int i;' > conftest.$ac_ext
7982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7983 (eval $ac_compile) 2>&5
7985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7986 test $ac_status = 0; }; then
7987 case `/usr/bin/file conftest.o` in
7989 case $lt_cv_prog_gnu_ld in
7993 LD="${LD-ld} -m elf_x86_64"
7996 LD="${LD-ld} -m elf64_sparc"
7999 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8000 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8005 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8017 need_locks="$enable_libtool_lock"
8019 if test -n "$ac_tool_prefix"; then
8020 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8021 set dummy ${ac_tool_prefix}mt; ac_word=$2
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8023 $as_echo_n "checking for $ac_word... " >&6; }
8024 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8025 $as_echo_n "(cached) " >&6
8027 if test -n "$MANIFEST_TOOL"; then
8028 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034 test -z "$as_dir" && as_dir=.
8035 for ac_exec_ext in '' $ac_executable_extensions; do
8036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8037 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8048 if test -n "$MANIFEST_TOOL"; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8050 $as_echo "$MANIFEST_TOOL" >&6; }
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8058 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8059 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8060 # Extract the first word of "mt", so it can be a program name with args.
8061 set dummy mt; ac_word=$2
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8063 $as_echo_n "checking for $ac_word... " >&6; }
8064 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8065 $as_echo_n "(cached) " >&6
8067 if test -n "$ac_ct_MANIFEST_TOOL"; then
8068 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8074 test -z "$as_dir" && as_dir=.
8075 for ac_exec_ext in '' $ac_executable_extensions; do
8076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8077 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8087 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8088 if test -n "$ac_ct_MANIFEST_TOOL"; then
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8090 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 $as_echo "no" >&6; }
8096 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8099 case $cross_compiling:$ac_tool_warned in
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8103 ac_tool_warned=yes ;;
8105 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8108 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8111 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8113 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8114 if ${lt_cv_path_mainfest_tool+:} false; then :
8115 $as_echo_n "(cached) " >&6
8117 lt_cv_path_mainfest_tool=no
8118 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8119 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8120 cat conftest.err >&5
8121 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8122 lt_cv_path_mainfest_tool=yes
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8127 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8128 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8138 rhapsody* | darwin*)
8139 if test -n "$ac_tool_prefix"; then
8140 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8141 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8143 $as_echo_n "checking for $ac_word... " >&6; }
8144 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8145 $as_echo_n "(cached) " >&6
8147 if test -n "$DSYMUTIL"; then
8148 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8154 test -z "$as_dir" && as_dir=.
8155 for ac_exec_ext in '' $ac_executable_extensions; do
8156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8157 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8167 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8168 if test -n "$DSYMUTIL"; then
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8170 $as_echo "$DSYMUTIL" >&6; }
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173 $as_echo "no" >&6; }
8178 if test -z "$ac_cv_prog_DSYMUTIL"; then
8179 ac_ct_DSYMUTIL=$DSYMUTIL
8180 # Extract the first word of "dsymutil", so it can be a program name with args.
8181 set dummy dsymutil; ac_word=$2
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8183 $as_echo_n "checking for $ac_word... " >&6; }
8184 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8185 $as_echo_n "(cached) " >&6
8187 if test -n "$ac_ct_DSYMUTIL"; then
8188 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194 test -z "$as_dir" && as_dir=.
8195 for ac_exec_ext in '' $ac_executable_extensions; do
8196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8197 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8207 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8208 if test -n "$ac_ct_DSYMUTIL"; then
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8210 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8213 $as_echo "no" >&6; }
8216 if test "x$ac_ct_DSYMUTIL" = x; then
8219 case $cross_compiling:$ac_tool_warned in
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8223 ac_tool_warned=yes ;;
8225 DSYMUTIL=$ac_ct_DSYMUTIL
8228 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8231 if test -n "$ac_tool_prefix"; then
8232 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8233 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8235 $as_echo_n "checking for $ac_word... " >&6; }
8236 if ${ac_cv_prog_NMEDIT+:} false; then :
8237 $as_echo_n "(cached) " >&6
8239 if test -n "$NMEDIT"; then
8240 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8246 test -z "$as_dir" && as_dir=.
8247 for ac_exec_ext in '' $ac_executable_extensions; do
8248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8249 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8259 NMEDIT=$ac_cv_prog_NMEDIT
8260 if test -n "$NMEDIT"; then
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8262 $as_echo "$NMEDIT" >&6; }
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265 $as_echo "no" >&6; }
8270 if test -z "$ac_cv_prog_NMEDIT"; then
8271 ac_ct_NMEDIT=$NMEDIT
8272 # Extract the first word of "nmedit", so it can be a program name with args.
8273 set dummy nmedit; ac_word=$2
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8275 $as_echo_n "checking for $ac_word... " >&6; }
8276 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8277 $as_echo_n "(cached) " >&6
8279 if test -n "$ac_ct_NMEDIT"; then
8280 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8286 test -z "$as_dir" && as_dir=.
8287 for ac_exec_ext in '' $ac_executable_extensions; do
8288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8289 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8299 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8300 if test -n "$ac_ct_NMEDIT"; then
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8302 $as_echo "$ac_ct_NMEDIT" >&6; }
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305 $as_echo "no" >&6; }
8308 if test "x$ac_ct_NMEDIT" = x; then
8311 case $cross_compiling:$ac_tool_warned in
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8315 ac_tool_warned=yes ;;
8317 NMEDIT=$ac_ct_NMEDIT
8320 NMEDIT="$ac_cv_prog_NMEDIT"
8323 if test -n "$ac_tool_prefix"; then
8324 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8325 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8327 $as_echo_n "checking for $ac_word... " >&6; }
8328 if ${ac_cv_prog_LIPO+:} false; then :
8329 $as_echo_n "(cached) " >&6
8331 if test -n "$LIPO"; then
8332 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8338 test -z "$as_dir" && as_dir=.
8339 for ac_exec_ext in '' $ac_executable_extensions; do
8340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8341 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8351 LIPO=$ac_cv_prog_LIPO
8352 if test -n "$LIPO"; then
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8354 $as_echo "$LIPO" >&6; }
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8357 $as_echo "no" >&6; }
8362 if test -z "$ac_cv_prog_LIPO"; then
8364 # Extract the first word of "lipo", so it can be a program name with args.
8365 set dummy lipo; ac_word=$2
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8367 $as_echo_n "checking for $ac_word... " >&6; }
8368 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8369 $as_echo_n "(cached) " >&6
8371 if test -n "$ac_ct_LIPO"; then
8372 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378 test -z "$as_dir" && as_dir=.
8379 for ac_exec_ext in '' $ac_executable_extensions; do
8380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8381 ac_cv_prog_ac_ct_LIPO="lipo"
8382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8391 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8392 if test -n "$ac_ct_LIPO"; then
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8394 $as_echo "$ac_ct_LIPO" >&6; }
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8397 $as_echo "no" >&6; }
8400 if test "x$ac_ct_LIPO" = x; then
8403 case $cross_compiling:$ac_tool_warned in
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8407 ac_tool_warned=yes ;;
8412 LIPO="$ac_cv_prog_LIPO"
8415 if test -n "$ac_tool_prefix"; then
8416 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8417 set dummy ${ac_tool_prefix}otool; ac_word=$2
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8419 $as_echo_n "checking for $ac_word... " >&6; }
8420 if ${ac_cv_prog_OTOOL+:} false; then :
8421 $as_echo_n "(cached) " >&6
8423 if test -n "$OTOOL"; then
8424 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8430 test -z "$as_dir" && as_dir=.
8431 for ac_exec_ext in '' $ac_executable_extensions; do
8432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8433 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8443 OTOOL=$ac_cv_prog_OTOOL
8444 if test -n "$OTOOL"; then
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8446 $as_echo "$OTOOL" >&6; }
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8449 $as_echo "no" >&6; }
8454 if test -z "$ac_cv_prog_OTOOL"; then
8456 # Extract the first word of "otool", so it can be a program name with args.
8457 set dummy otool; ac_word=$2
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8459 $as_echo_n "checking for $ac_word... " >&6; }
8460 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8461 $as_echo_n "(cached) " >&6
8463 if test -n "$ac_ct_OTOOL"; then
8464 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8470 test -z "$as_dir" && as_dir=.
8471 for ac_exec_ext in '' $ac_executable_extensions; do
8472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8473 ac_cv_prog_ac_ct_OTOOL="otool"
8474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8483 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8484 if test -n "$ac_ct_OTOOL"; then
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8486 $as_echo "$ac_ct_OTOOL" >&6; }
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8489 $as_echo "no" >&6; }
8492 if test "x$ac_ct_OTOOL" = x; then
8495 case $cross_compiling:$ac_tool_warned in
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8499 ac_tool_warned=yes ;;
8504 OTOOL="$ac_cv_prog_OTOOL"
8507 if test -n "$ac_tool_prefix"; then
8508 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8509 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511 $as_echo_n "checking for $ac_word... " >&6; }
8512 if ${ac_cv_prog_OTOOL64+:} false; then :
8513 $as_echo_n "(cached) " >&6
8515 if test -n "$OTOOL64"; then
8516 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522 test -z "$as_dir" && as_dir=.
8523 for ac_exec_ext in '' $ac_executable_extensions; do
8524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8525 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8535 OTOOL64=$ac_cv_prog_OTOOL64
8536 if test -n "$OTOOL64"; then
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8538 $as_echo "$OTOOL64" >&6; }
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541 $as_echo "no" >&6; }
8546 if test -z "$ac_cv_prog_OTOOL64"; then
8547 ac_ct_OTOOL64=$OTOOL64
8548 # Extract the first word of "otool64", so it can be a program name with args.
8549 set dummy otool64; ac_word=$2
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8551 $as_echo_n "checking for $ac_word... " >&6; }
8552 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8553 $as_echo_n "(cached) " >&6
8555 if test -n "$ac_ct_OTOOL64"; then
8556 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8562 test -z "$as_dir" && as_dir=.
8563 for ac_exec_ext in '' $ac_executable_extensions; do
8564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8565 ac_cv_prog_ac_ct_OTOOL64="otool64"
8566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8575 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8576 if test -n "$ac_ct_OTOOL64"; then
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8578 $as_echo "$ac_ct_OTOOL64" >&6; }
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581 $as_echo "no" >&6; }
8584 if test "x$ac_ct_OTOOL64" = x; then
8587 case $cross_compiling:$ac_tool_warned in
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8591 ac_tool_warned=yes ;;
8593 OTOOL64=$ac_ct_OTOOL64
8596 OTOOL64="$ac_cv_prog_OTOOL64"
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8626 $as_echo_n "checking for -single_module linker flag... " >&6; }
8627 if ${lt_cv_apple_cc_single_mod+:} false; then :
8628 $as_echo_n "(cached) " >&6
8630 lt_cv_apple_cc_single_mod=no
8631 if test -z "${LT_MULTI_MODULE}"; then
8632 # By default we will add the -single_module flag. You can override
8633 # by either setting the environment variable LT_MULTI_MODULE
8634 # non-empty at configure time, or by adding -multi_module to the
8636 rm -rf libconftest.dylib*
8637 echo "int foo(void){return 1;}" > conftest.c
8638 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8639 -dynamiclib -Wl,-single_module conftest.c" >&5
8640 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8641 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8643 # If there is a non-empty error log, and "single_module"
8644 # appears in it, assume the flag caused a linker warning
8645 if test -s conftest.err && $GREP single_module conftest.err; then
8646 cat conftest.err >&5
8647 # Otherwise, if the output was created with a 0 exit code from
8648 # the compiler, it worked.
8649 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8650 lt_cv_apple_cc_single_mod=yes
8652 cat conftest.err >&5
8654 rm -rf libconftest.dylib*
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8659 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8662 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8663 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8664 $as_echo_n "(cached) " >&6
8666 lt_cv_ld_exported_symbols_list=no
8667 save_LDFLAGS=$LDFLAGS
8668 echo "_main" > conftest.sym
8669 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8671 /* end confdefs.h. */
8681 if ac_fn_c_try_link "$LINENO"; then :
8682 lt_cv_ld_exported_symbols_list=yes
8684 lt_cv_ld_exported_symbols_list=no
8686 rm -f core conftest.err conftest.$ac_objext \
8687 conftest$ac_exeext conftest.$ac_ext
8688 LDFLAGS="$save_LDFLAGS"
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8692 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8695 $as_echo_n "checking for -force_load linker flag... " >&6; }
8696 if ${lt_cv_ld_force_load+:} false; then :
8697 $as_echo_n "(cached) " >&6
8699 lt_cv_ld_force_load=no
8700 cat > conftest.c << _LT_EOF
8701 int forced_loaded() { return 2;}
8703 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8704 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8705 echo "$AR cru libconftest.a conftest.o" >&5
8706 $AR cru libconftest.a conftest.o 2>&5
8707 echo "$RANLIB libconftest.a" >&5
8708 $RANLIB libconftest.a 2>&5
8709 cat > conftest.c << _LT_EOF
8710 int main() { return 0;}
8712 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8713 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8715 if test -s conftest.err && $GREP force_load conftest.err; then
8716 cat conftest.err >&5
8717 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8718 lt_cv_ld_force_load=yes
8720 cat conftest.err >&5
8722 rm -f conftest.err libconftest.a conftest conftest.c
8723 rm -rf conftest.dSYM
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8727 $as_echo "$lt_cv_ld_force_load" >&6; }
8729 rhapsody* | darwin1.[012])
8730 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8732 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8733 darwin*) # darwin 5.x on
8734 # if running on 10.5 or later, the deployment target defaults
8735 # to the OS version, if on x86, and 10.4, the deployment
8736 # target defaults to 10.4. Don't you love it?
8737 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8738 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8739 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8741 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8743 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8747 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8748 _lt_dar_single_mod='$single_module'
8750 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8751 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8753 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8755 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8756 _lt_dsymutil='~$DSYMUTIL $lib || :'
8763 for ac_header in dlfcn.h
8765 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8767 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8768 cat >>confdefs.h <<_ACEOF
8769 #define HAVE_DLFCN_H 1
8790 # Check whether --enable-shared was given.
8791 if test "${enable_shared+set}" = set; then :
8792 enableval=$enable_shared; p=${PACKAGE-default}
8794 yes) enable_shared=yes ;;
8795 no) enable_shared=no ;;
8798 # Look at the argument we got. We use all the common list separators.
8799 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8800 for pkg in $enableval; do
8802 if test "X$pkg" = "X$p"; then
8823 # Check whether --with-pic was given.
8824 if test "${with_pic+set}" = set; then :
8825 withval=$with_pic; lt_p=${PACKAGE-default}
8827 yes|no) pic_mode=$withval ;;
8830 # Look at the argument we got. We use all the common list separators.
8831 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8832 for lt_pkg in $withval; do
8834 if test "X$lt_pkg" = "X$lt_p"; then
8846 test -z "$pic_mode" && pic_mode=default
8854 # Check whether --enable-fast-install was given.
8855 if test "${enable_fast_install+set}" = set; then :
8856 enableval=$enable_fast_install; p=${PACKAGE-default}
8858 yes) enable_fast_install=yes ;;
8859 no) enable_fast_install=no ;;
8861 enable_fast_install=no
8862 # Look at the argument we got. We use all the common list separators.
8863 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8864 for pkg in $enableval; do
8866 if test "X$pkg" = "X$p"; then
8867 enable_fast_install=yes
8874 enable_fast_install=yes
8887 # This can be used to rebuild libtool when needed
8888 LIBTOOL_DEPS="$ltmain"
8890 # Always use our own libtool.
8891 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8922 test -z "$LN_S" && LN_S="ln -s"
8937 if test -n "${ZSH_VERSION+set}" ; then
8938 setopt NO_GLOB_SUBST
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8942 $as_echo_n "checking for objdir... " >&6; }
8943 if ${lt_cv_objdir+:} false; then :
8944 $as_echo_n "(cached) " >&6
8946 rm -f .libs 2>/dev/null
8947 mkdir .libs 2>/dev/null
8948 if test -d .libs; then
8951 # MS-DOS does not allow filenames that begin with a dot.
8954 rmdir .libs 2>/dev/null
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8957 $as_echo "$lt_cv_objdir" >&6; }
8958 objdir=$lt_cv_objdir
8964 cat >>confdefs.h <<_ACEOF
8965 #define LT_OBJDIR "$lt_cv_objdir/"
8973 # AIX sometimes has problems with the GCC collect2 program. For some
8974 # reason, if we set the COLLECT_NAMES environment variable, the problems
8975 # vanish in a puff of smoke.
8976 if test "X${COLLECT_NAMES+set}" != Xset; then
8978 export COLLECT_NAMES
8985 can_build_shared=yes
8987 # All known linkers require a `.a' archive for static linking (except MSVC,
8988 # which needs '.lib').
8991 with_gnu_ld="$lt_cv_prog_gnu_ld"
8994 old_CFLAGS="$CFLAGS"
8996 # Set sane defaults for various variables
8997 test -z "$CC" && CC=cc
8998 test -z "$LTCC" && LTCC=$CC
8999 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9000 test -z "$LD" && LD=ld
9001 test -z "$ac_objext" && ac_objext=o
9003 for cc_temp in $compiler""; do
9005 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9006 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9011 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9014 # Only perform the check for file, if the check method requires it
9015 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9016 case $deplibs_check_method in
9018 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9020 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9021 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9022 $as_echo_n "(cached) " >&6
9026 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9029 lt_save_MAGIC_CMD="$MAGIC_CMD"
9030 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9031 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9032 for ac_dir in $ac_dummy; do
9034 test -z "$ac_dir" && ac_dir=.
9035 if test -f $ac_dir/${ac_tool_prefix}file; then
9036 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9037 if test -n "$file_magic_test_file"; then
9038 case $deplibs_check_method in
9040 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9041 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9042 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9043 $EGREP "$file_magic_regex" > /dev/null; then
9048 *** Warning: the command libtool uses to detect shared libraries,
9049 *** $file_magic_cmd, produces output that libtool cannot recognize.
9050 *** The result is that libtool may fail to recognize shared libraries
9051 *** as such. This will affect the creation of libtool libraries that
9052 *** depend on shared libraries, but programs linked with such libtool
9053 *** libraries will work regardless of this problem. Nevertheless, you
9054 *** may want to report the problem to your system manager and/or to
9055 *** bug-libtool@gnu.org
9065 MAGIC_CMD="$lt_save_MAGIC_CMD"
9070 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9071 if test -n "$MAGIC_CMD"; then
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9073 $as_echo "$MAGIC_CMD" >&6; }
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076 $as_echo "no" >&6; }
9083 if test -z "$lt_cv_path_MAGIC_CMD"; then
9084 if test -n "$ac_tool_prefix"; then
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9086 $as_echo_n "checking for file... " >&6; }
9087 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9088 $as_echo_n "(cached) " >&6
9092 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9095 lt_save_MAGIC_CMD="$MAGIC_CMD"
9096 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9097 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9098 for ac_dir in $ac_dummy; do
9100 test -z "$ac_dir" && ac_dir=.
9101 if test -f $ac_dir/file; then
9102 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9103 if test -n "$file_magic_test_file"; then
9104 case $deplibs_check_method in
9106 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9107 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9108 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9109 $EGREP "$file_magic_regex" > /dev/null; then
9114 *** Warning: the command libtool uses to detect shared libraries,
9115 *** $file_magic_cmd, produces output that libtool cannot recognize.
9116 *** The result is that libtool may fail to recognize shared libraries
9117 *** as such. This will affect the creation of libtool libraries that
9118 *** depend on shared libraries, but programs linked with such libtool
9119 *** libraries will work regardless of this problem. Nevertheless, you
9120 *** may want to report the problem to your system manager and/or to
9121 *** bug-libtool@gnu.org
9131 MAGIC_CMD="$lt_save_MAGIC_CMD"
9136 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9137 if test -n "$MAGIC_CMD"; then
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9139 $as_echo "$MAGIC_CMD" >&6; }
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9142 $as_echo "no" >&6; }
9155 # Use C for the default configuration in the libtool script
9159 ac_cpp='$CPP $CPPFLAGS'
9160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9165 # Source file extension for C test sources.
9168 # Object file extension for compiled C test sources.
9172 # Code to be used in simple compile tests
9173 lt_simple_compile_test_code="int some_variable = 0;"
9175 # Code to be used in simple link tests
9176 lt_simple_link_test_code='int main(){return(0);}'
9184 # If no C compiler was specified, use CC.
9187 # If no C compiler flags were specified, use CFLAGS.
9188 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9190 # Allow CC to be a program name with arguments.
9193 # Save the default compiler, since it gets overwritten when the other
9194 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9195 compiler_DEFAULT=$CC
9197 # save warnings/boilerplate of simple test code
9198 ac_outfile=conftest.$ac_objext
9199 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9200 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9201 _lt_compiler_boilerplate=`cat conftest.err`
9204 ac_outfile=conftest.$ac_objext
9205 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9206 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9207 _lt_linker_boilerplate=`cat conftest.err`
9212 ## There is no encapsulation within the following macros, do not change
9213 ## the running order or otherwise move them around unless you know exactly
9214 ## what you are doing...
9215 if test -n "$compiler"; then
9217 lt_prog_compiler_no_builtin_flag=
9219 if test "$GCC" = yes; then
9220 case $cc_basename in
9222 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9224 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9228 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9229 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9230 $as_echo_n "(cached) " >&6
9232 lt_cv_prog_compiler_rtti_exceptions=no
9233 ac_outfile=conftest.$ac_objext
9234 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9235 lt_compiler_flag="-fno-rtti -fno-exceptions"
9236 # Insert the option either (1) after the last *FLAGS variable, or
9237 # (2) before a word containing "conftest.", or (3) at the end.
9238 # Note that $ac_compile itself does not contain backslashes and begins
9239 # with a dollar sign (not a hyphen), so the echo should work correctly.
9240 # The option is referenced via a variable to avoid confusing sed.
9241 lt_compile=`echo "$ac_compile" | $SED \
9242 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9244 -e 's:$: $lt_compiler_flag:'`
9245 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9246 (eval "$lt_compile" 2>conftest.err)
9248 cat conftest.err >&5
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 if (exit $ac_status) && test -s "$ac_outfile"; then
9251 # The compiler can only warn and ignore the option if not recognized
9252 # So say no if there are warnings other than the usual output.
9253 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9254 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9255 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9256 lt_cv_prog_compiler_rtti_exceptions=yes
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9263 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9265 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9266 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9278 lt_prog_compiler_wl=
9279 lt_prog_compiler_pic=
9280 lt_prog_compiler_static=
9283 if test "$GCC" = yes; then
9284 lt_prog_compiler_wl='-Wl,'
9285 lt_prog_compiler_static='-static'
9289 # All AIX code is PIC.
9290 if test "$host_cpu" = ia64; then
9291 # AIX 5 now supports IA64 processor
9292 lt_prog_compiler_static='-Bstatic'
9299 # see comment about AmigaOS4 .so support
9300 lt_prog_compiler_pic='-fPIC'
9303 # FIXME: we need at least 68020 code to build shared libraries, but
9304 # adding the `-m68020' flag to GCC prevents building anything better,
9306 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9311 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9312 # PIC is the default for these OSes.
9315 mingw* | cygwin* | pw32* | os2* | cegcc*)
9316 # This hack is so that the source file can tell whether it is being
9317 # built for inclusion in a dll (and should export symbols for example).
9318 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9319 # (--disable-auto-import) libraries
9320 lt_prog_compiler_pic='-DDLL_EXPORT'
9323 darwin* | rhapsody*)
9324 # PIC is the default on this platform
9325 # Common symbols not allowed in MH_DYLIB files
9326 lt_prog_compiler_pic='-fno-common'
9330 # PIC is the default for Haiku.
9331 # The "-static" flag exists, but is broken.
9332 lt_prog_compiler_static=
9336 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9337 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9338 # sets the default TLS model and affects inlining.
9344 lt_prog_compiler_pic='-fPIC'
9350 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9351 # Instead, we relocate shared libraries at runtime.
9355 # Just because we use GCC doesn't mean we suddenly get shared libraries
9356 # on systems that don't support them.
9357 lt_prog_compiler_can_build_shared=no
9362 # QNX uses GNU C++, but need to define -shared option too, otherwise
9364 lt_prog_compiler_pic='-fPIC -shared'
9368 if test -d /usr/nec; then
9369 lt_prog_compiler_pic=-Kconform_pic
9374 lt_prog_compiler_pic='-fPIC'
9378 case $cc_basename in
9379 nvcc*) # Cuda Compiler Driver 2.2
9380 lt_prog_compiler_wl='-Xlinker '
9381 if test -n "$lt_prog_compiler_pic"; then
9382 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9387 # PORTME Check for flag to pass linker flags through the system compiler.
9390 lt_prog_compiler_wl='-Wl,'
9391 if test "$host_cpu" = ia64; then
9392 # AIX 5 now supports IA64 processor
9393 lt_prog_compiler_static='-Bstatic'
9395 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9399 mingw* | cygwin* | pw32* | os2* | cegcc*)
9400 # This hack is so that the source file can tell whether it is being
9401 # built for inclusion in a dll (and should export symbols for example).
9402 lt_prog_compiler_pic='-DDLL_EXPORT'
9405 hpux9* | hpux10* | hpux11*)
9406 lt_prog_compiler_wl='-Wl,'
9407 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9414 lt_prog_compiler_pic='+Z'
9417 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9418 lt_prog_compiler_static='${wl}-a ${wl}archive'
9421 irix5* | irix6* | nonstopux*)
9422 lt_prog_compiler_wl='-Wl,'
9423 # PIC (with -KPIC) is the default.
9424 lt_prog_compiler_static='-non_shared'
9427 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9428 case $cc_basename in
9429 # old Intel for x86_64 which still supported -KPIC.
9431 lt_prog_compiler_wl='-Wl,'
9432 lt_prog_compiler_pic='-KPIC'
9433 lt_prog_compiler_static='-static'
9435 # icc used to be incompatible with GCC.
9436 # ICC 10 doesn't accept -KPIC any more.
9438 lt_prog_compiler_wl='-Wl,'
9439 lt_prog_compiler_pic='-fPIC'
9440 lt_prog_compiler_static='-static'
9442 # Lahey Fortran 8.1.
9444 lt_prog_compiler_wl='-Wl,'
9445 lt_prog_compiler_pic='--shared'
9446 lt_prog_compiler_static='--static'
9449 # NAG Fortran compiler
9450 lt_prog_compiler_wl='-Wl,-Wl,,'
9451 lt_prog_compiler_pic='-PIC'
9452 lt_prog_compiler_static='-Bstatic'
9454 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9455 # Portland Group compilers (*not* the Pentium gcc compiler,
9456 # which looks to be a dead project)
9457 lt_prog_compiler_wl='-Wl,'
9458 lt_prog_compiler_pic='-fpic'
9459 lt_prog_compiler_static='-Bstatic'
9462 lt_prog_compiler_wl='-Wl,'
9463 # All Alpha code is PIC.
9464 lt_prog_compiler_static='-non_shared'
9466 xl* | bgxl* | bgf* | mpixl*)
9467 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9468 lt_prog_compiler_wl='-Wl,'
9469 lt_prog_compiler_pic='-qpic'
9470 lt_prog_compiler_static='-qstaticlink'
9473 case `$CC -V 2>&1 | sed 5q` in
9474 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9475 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9476 lt_prog_compiler_pic='-KPIC'
9477 lt_prog_compiler_static='-Bstatic'
9478 lt_prog_compiler_wl=''
9480 *Sun\ F* | *Sun*Fortran*)
9481 lt_prog_compiler_pic='-KPIC'
9482 lt_prog_compiler_static='-Bstatic'
9483 lt_prog_compiler_wl='-Qoption ld '
9487 lt_prog_compiler_pic='-KPIC'
9488 lt_prog_compiler_static='-Bstatic'
9489 lt_prog_compiler_wl='-Wl,'
9491 *Intel*\ [CF]*Compiler*)
9492 lt_prog_compiler_wl='-Wl,'
9493 lt_prog_compiler_pic='-fPIC'
9494 lt_prog_compiler_static='-static'
9497 lt_prog_compiler_wl='-Wl,'
9498 lt_prog_compiler_pic='-fpic'
9499 lt_prog_compiler_static='-Bstatic'
9507 lt_prog_compiler_pic='-KPIC'
9508 lt_prog_compiler_static='-Bstatic'
9512 # QNX uses GNU C++, but need to define -shared option too, otherwise
9514 lt_prog_compiler_pic='-fPIC -shared'
9517 osf3* | osf4* | osf5*)
9518 lt_prog_compiler_wl='-Wl,'
9519 # All OSF/1 code is PIC.
9520 lt_prog_compiler_static='-non_shared'
9524 lt_prog_compiler_static='-non_shared'
9528 lt_prog_compiler_pic='-KPIC'
9529 lt_prog_compiler_static='-Bstatic'
9530 case $cc_basename in
9531 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9532 lt_prog_compiler_wl='-Qoption ld ';;
9534 lt_prog_compiler_wl='-Wl,';;
9539 lt_prog_compiler_wl='-Qoption ld '
9540 lt_prog_compiler_pic='-PIC'
9541 lt_prog_compiler_static='-Bstatic'
9544 sysv4 | sysv4.2uw2* | sysv4.3*)
9545 lt_prog_compiler_wl='-Wl,'
9546 lt_prog_compiler_pic='-KPIC'
9547 lt_prog_compiler_static='-Bstatic'
9551 if test -d /usr/nec ;then
9552 lt_prog_compiler_pic='-Kconform_pic'
9553 lt_prog_compiler_static='-Bstatic'
9557 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9558 lt_prog_compiler_wl='-Wl,'
9559 lt_prog_compiler_pic='-KPIC'
9560 lt_prog_compiler_static='-Bstatic'
9564 lt_prog_compiler_wl='-Wl,'
9565 lt_prog_compiler_can_build_shared=no
9569 lt_prog_compiler_pic='-pic'
9570 lt_prog_compiler_static='-Bstatic'
9574 lt_prog_compiler_can_build_shared=no
9580 # For platforms which do not support PIC, -DPIC is meaningless:
9582 lt_prog_compiler_pic=
9585 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9590 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9591 if ${lt_cv_prog_compiler_pic+:} false; then :
9592 $as_echo_n "(cached) " >&6
9594 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9597 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9598 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9601 # Check to make sure the PIC flag actually works.
9603 if test -n "$lt_prog_compiler_pic"; then
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9605 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9606 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9607 $as_echo_n "(cached) " >&6
9609 lt_cv_prog_compiler_pic_works=no
9610 ac_outfile=conftest.$ac_objext
9611 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9612 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9613 # Insert the option either (1) after the last *FLAGS variable, or
9614 # (2) before a word containing "conftest.", or (3) at the end.
9615 # Note that $ac_compile itself does not contain backslashes and begins
9616 # with a dollar sign (not a hyphen), so the echo should work correctly.
9617 # The option is referenced via a variable to avoid confusing sed.
9618 lt_compile=`echo "$ac_compile" | $SED \
9619 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9620 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9621 -e 's:$: $lt_compiler_flag:'`
9622 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9623 (eval "$lt_compile" 2>conftest.err)
9625 cat conftest.err >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 if (exit $ac_status) && test -s "$ac_outfile"; then
9628 # The compiler can only warn and ignore the option if not recognized
9629 # So say no if there are warnings other than the usual output.
9630 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9631 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9632 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9633 lt_cv_prog_compiler_pic_works=yes
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9640 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9642 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9643 case $lt_prog_compiler_pic in
9645 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9648 lt_prog_compiler_pic=
9649 lt_prog_compiler_can_build_shared=no
9665 # Check to make sure the static flag actually works.
9667 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9669 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9670 if ${lt_cv_prog_compiler_static_works+:} false; then :
9671 $as_echo_n "(cached) " >&6
9673 lt_cv_prog_compiler_static_works=no
9674 save_LDFLAGS="$LDFLAGS"
9675 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9676 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9677 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9678 # The linker can only warn and ignore the option if not recognized
9679 # So say no if there are warnings
9680 if test -s conftest.err; then
9681 # Append any errors to the config.log.
9682 cat conftest.err 1>&5
9683 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9684 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9685 if diff conftest.exp conftest.er2 >/dev/null; then
9686 lt_cv_prog_compiler_static_works=yes
9689 lt_cv_prog_compiler_static_works=yes
9693 LDFLAGS="$save_LDFLAGS"
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9697 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9699 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9702 lt_prog_compiler_static=
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9712 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9713 if ${lt_cv_prog_compiler_c_o+:} false; then :
9714 $as_echo_n "(cached) " >&6
9716 lt_cv_prog_compiler_c_o=no
9717 $RM -r conftest 2>/dev/null
9721 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9723 lt_compiler_flag="-o out/conftest2.$ac_objext"
9724 # Insert the option either (1) after the last *FLAGS variable, or
9725 # (2) before a word containing "conftest.", or (3) at the end.
9726 # Note that $ac_compile itself does not contain backslashes and begins
9727 # with a dollar sign (not a hyphen), so the echo should work correctly.
9728 lt_compile=`echo "$ac_compile" | $SED \
9729 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9730 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9731 -e 's:$: $lt_compiler_flag:'`
9732 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9733 (eval "$lt_compile" 2>out/conftest.err)
9735 cat out/conftest.err >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9739 # The compiler can only warn and ignore the option if not recognized
9740 # So say no if there are warnings
9741 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9742 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9743 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9744 lt_cv_prog_compiler_c_o=yes
9749 # SGI C++ compiler will create directory out/ii_files/ for
9750 # template instantiation
9751 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9752 $RM out/* && rmdir out
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9759 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9767 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9768 if ${lt_cv_prog_compiler_c_o+:} false; then :
9769 $as_echo_n "(cached) " >&6
9771 lt_cv_prog_compiler_c_o=no
9772 $RM -r conftest 2>/dev/null
9776 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9778 lt_compiler_flag="-o out/conftest2.$ac_objext"
9779 # Insert the option either (1) after the last *FLAGS variable, or
9780 # (2) before a word containing "conftest.", or (3) at the end.
9781 # Note that $ac_compile itself does not contain backslashes and begins
9782 # with a dollar sign (not a hyphen), so the echo should work correctly.
9783 lt_compile=`echo "$ac_compile" | $SED \
9784 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9786 -e 's:$: $lt_compiler_flag:'`
9787 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9788 (eval "$lt_compile" 2>out/conftest.err)
9790 cat out/conftest.err >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9794 # The compiler can only warn and ignore the option if not recognized
9795 # So say no if there are warnings
9796 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9797 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9798 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9799 lt_cv_prog_compiler_c_o=yes
9804 # SGI C++ compiler will create directory out/ii_files/ for
9805 # template instantiation
9806 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9807 $RM out/* && rmdir out
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9814 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9819 hard_links="nottested"
9820 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9821 # do not overwrite the value of need_locks provided by the user
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9823 $as_echo_n "checking if we can lock with hard links... " >&6; }
9826 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9828 ln conftest.a conftest.b 2>&5 || hard_links=no
9829 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9831 $as_echo "$hard_links" >&6; }
9832 if test "$hard_links" = no; then
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9834 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9847 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9850 allow_undefined_flag=
9851 always_export_symbols=no
9853 archive_expsym_cmds=
9854 compiler_needs_object=no
9855 enable_shared_with_static_runtimes=no
9856 export_dynamic_flag_spec=
9857 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9858 hardcode_automatic=no
9860 hardcode_direct_absolute=no
9861 hardcode_libdir_flag_spec=
9862 hardcode_libdir_separator=
9864 hardcode_shlibpath_var=unsupported
9866 link_all_deplibs=unknown
9869 old_archive_from_new_cmds=
9870 old_archive_from_expsyms_cmds=
9871 thread_safe_flag_spec=
9872 whole_archive_flag_spec=
9873 # include_expsyms should be a list of space-separated symbols to be *always*
9874 # included in the symbol list
9876 # exclude_expsyms can be an extended regexp of symbols to exclude
9877 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9878 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9879 # as well as any symbol that contains `d'.
9880 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9881 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9882 # platforms (ab)use it in PIC code, but their linkers get confused if
9883 # the symbol is explicitly referenced. Since portable code cannot
9884 # rely on this symbol name, it's probably fine to never include it in
9885 # preloaded symbol tables.
9886 # Exclude shared library initialization/finalization symbols.
9887 extract_expsyms_cmds=
9890 cygwin* | mingw* | pw32* | cegcc*)
9891 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9892 # When not using gcc, we currently assume that we are using
9893 # Microsoft Visual C++.
9894 if test "$GCC" != yes; then
9899 # we just hope/assume this is gcc and not c89 (= MSVC++)
9905 linux* | k*bsd*-gnu | gnu*)
9912 # On some targets, GNU ld is compatible enough with the native linker
9913 # that we're better off using the native interface for both.
9914 lt_use_gnu_ld_interface=no
9915 if test "$with_gnu_ld" = yes; then
9918 # The AIX port of GNU ld has always aspired to compatibility
9919 # with the native linker. However, as the warning in the GNU ld
9920 # block says, versions before 2.19.5* couldn't really create working
9921 # shared libraries, regardless of the interface used.
9922 case `$LD -v 2>&1` in
9923 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9924 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9925 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9927 lt_use_gnu_ld_interface=yes
9932 lt_use_gnu_ld_interface=yes
9937 if test "$lt_use_gnu_ld_interface" = yes; then
9938 # If archive_cmds runs LD, not CC, wlarc should be empty
9941 # Set some defaults for GNU ld with shared library support. These
9942 # are reset later if shared libraries are not supported. Putting them
9943 # here allows them to be overridden if necessary.
9944 runpath_var=LD_RUN_PATH
9945 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9946 export_dynamic_flag_spec='${wl}--export-dynamic'
9947 # ancient GNU ld didn't support --whole-archive et. al.
9948 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9949 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9951 whole_archive_flag_spec=
9953 supports_anon_versioning=no
9954 case `$LD -v 2>&1` in
9955 *GNU\ gold*) supports_anon_versioning=yes ;;
9956 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9957 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9958 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9959 *\ 2.11.*) ;; # other 2.11 versions
9960 *) supports_anon_versioning=yes ;;
9963 # See if GNU ld supports shared libraries.
9966 # On AIX/PPC, the GNU linker is very broken
9967 if test "$host_cpu" != ia64; then
9971 *** Warning: the GNU linker, at least up to release 2.19, is reported
9972 *** to be unable to reliably create shared libraries on AIX.
9973 *** Therefore, libtool is disabling shared libraries support. If you
9974 *** really care for shared libraries, you may want to install binutils
9975 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9976 *** You will then need to restart the configuration process.
9985 # see comment about AmigaOS4 .so support
9986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9987 archive_expsym_cmds=''
9990 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)'
9991 hardcode_libdir_flag_spec='-L$libdir'
9992 hardcode_minus_L=yes
9998 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9999 allow_undefined_flag=unsupported
10000 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10001 # support --undefined. This deserves some investigation. FIXME
10002 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10008 cygwin* | mingw* | pw32* | cegcc*)
10009 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10010 # as there is no search path for DLLs.
10011 hardcode_libdir_flag_spec='-L$libdir'
10012 export_dynamic_flag_spec='${wl}--export-all-symbols'
10013 allow_undefined_flag=unsupported
10014 always_export_symbols=no
10015 enable_shared_with_static_runtimes=yes
10016 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'
10017 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10019 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10020 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10021 # If the export-symbols file already is a .def file (1st line
10022 # is EXPORTS), use it as is; otherwise, prepend...
10023 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10024 cp $export_symbols $output_objdir/$soname.def;
10026 echo EXPORTS > $output_objdir/$soname.def;
10027 cat $export_symbols >> $output_objdir/$soname.def;
10029 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10036 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10037 link_all_deplibs=yes
10042 hardcode_shlibpath_var=no
10043 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10044 export_dynamic_flag_spec='${wl}-E'
10045 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10046 # Instead, shared libraries are loaded at an image base (0x10000000 by
10047 # default) and relocated if they conflict, which is a slow very memory
10048 # consuming and fragmenting process. To avoid this, we pick a random,
10049 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10050 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10051 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10052 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'
10055 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10057 if test "$host_os" = linux-dietlibc; then
10058 case $cc_basename in
10059 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10062 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10063 && test "$tmp_diet" = no
10065 tmp_addflag=' $pic_flag'
10066 tmp_sharedflag='-shared'
10067 case $cc_basename,$host_cpu in
10068 pgcc*) # Portland Group C compiler
10069 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'
10070 tmp_addflag=' $pic_flag'
10072 pgf77* | pgf90* | pgf95* | pgfortran*)
10073 # Portland Group f77 and f90 compilers
10074 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'
10075 tmp_addflag=' $pic_flag -Mnomain' ;;
10076 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10077 tmp_addflag=' -i_dynamic' ;;
10078 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10079 tmp_addflag=' -i_dynamic -nofor_main' ;;
10080 ifc* | ifort*) # Intel Fortran compiler
10081 tmp_addflag=' -nofor_main' ;;
10082 lf95*) # Lahey Fortran 8.1
10083 whole_archive_flag_spec=
10084 tmp_sharedflag='--shared' ;;
10085 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10086 tmp_sharedflag='-qmkshrobj'
10088 nvcc*) # Cuda Compiler Driver 2.2
10089 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'
10090 compiler_needs_object=yes
10093 case `$CC -V 2>&1 | sed 5q` in
10094 *Sun\ C*) # Sun C 5.9
10095 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'
10096 compiler_needs_object=yes
10097 tmp_sharedflag='-G' ;;
10098 *Sun\ F*) # Sun Fortran 8.3
10099 tmp_sharedflag='-G' ;;
10101 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10103 if test "x$supports_anon_versioning" = xyes; then
10104 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10105 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10106 echo "local: *; };" >> $output_objdir/$libname.ver~
10107 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10110 case $cc_basename in
10111 xlf* | bgf* | bgxlf* | mpixlf*)
10112 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10113 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10114 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10115 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10116 if test "x$supports_anon_versioning" = xyes; then
10117 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10118 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10119 echo "local: *; };" >> $output_objdir/$libname.ver~
10120 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10129 netbsd* | netbsdelf*-gnu)
10130 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10131 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10134 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10135 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10140 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10144 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10145 *** create shared libraries on Solaris systems. Therefore, libtool
10146 *** is disabling shared libraries support. We urge you to upgrade GNU
10147 *** binutils to release 2.9.1 or newer. Another option is to modify
10148 *** your PATH or compiler configuration so that the native linker is
10149 *** used, and then restart.
10152 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10153 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10154 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10160 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10161 case `$LD -v 2>&1` in
10162 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10166 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10167 *** reliably create shared libraries on SCO systems. Therefore, libtool
10168 *** is disabling shared libraries support. We urge you to upgrade GNU
10169 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10170 *** your PATH or compiler configuration so that the native linker is
10171 *** used, and then restart.
10176 # For security reasons, it is highly recommended that you always
10177 # use absolute paths for naming shared libraries, and exclude the
10178 # DT_RUNPATH tag from executables and libraries. But doing so
10179 # requires that you compile everything twice, which is a pain.
10180 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10181 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10183 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10192 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10194 hardcode_direct=yes
10195 hardcode_shlibpath_var=no
10199 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10200 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10201 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10208 if test "$ld_shlibs" = no; then
10210 hardcode_libdir_flag_spec=
10211 export_dynamic_flag_spec=
10212 whole_archive_flag_spec=
10215 # PORTME fill in a description of your system's linker (not GNU ld)
10218 allow_undefined_flag=unsupported
10219 always_export_symbols=yes
10220 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'
10221 # Note: this linker hardcodes the directories in LIBPATH if there
10222 # are no directories specified by -L.
10223 hardcode_minus_L=yes
10224 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10225 # Neither direct hardcoding nor static linking is supported with a
10227 hardcode_direct=unsupported
10232 if test "$host_cpu" = ia64; then
10233 # On IA64, the linker does run time linking by default, so we don't
10234 # have to do anything special.
10235 aix_use_runtimelinking=no
10236 exp_sym_flag='-Bexport'
10239 # If we're using GNU nm, then we don't want the "-C" option.
10240 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10241 # Also, AIX nm treats weak defined symbols like other global
10242 # defined symbols, whereas GNU nm marks them as "W".
10243 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10244 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10246 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10248 aix_use_runtimelinking=no
10250 # Test if we are trying to use run time linking or normal
10251 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10252 # need to do runtime linking.
10253 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10254 for ld_flag in $LDFLAGS; do
10255 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10256 aix_use_runtimelinking=yes
10263 exp_sym_flag='-bexport'
10264 no_entry_flag='-bnoentry'
10267 # When large executables or shared objects are built, AIX ld can
10268 # have problems creating the table of contents. If linking a library
10269 # or program results in "error TOC overflow" add -mminimal-toc to
10270 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10271 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10274 hardcode_direct=yes
10275 hardcode_direct_absolute=yes
10276 hardcode_libdir_separator=':'
10277 link_all_deplibs=yes
10278 file_list_spec='${wl}-f,'
10280 if test "$GCC" = yes; then
10281 case $host_os in aix4.[012]|aix4.[012].*)
10282 # We only want to do this on AIX 4.2 and lower, the check
10283 # below for broken collect2 doesn't work under 4.3+
10284 collect2name=`${CC} -print-prog-name=collect2`
10285 if test -f "$collect2name" &&
10286 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10288 # We have reworked collect2
10291 # We have old collect2
10292 hardcode_direct=unsupported
10293 # It fails to find uninstalled libraries when the uninstalled
10294 # path is not listed in the libpath. Setting hardcode_minus_L
10295 # to unsupported forces relinking
10296 hardcode_minus_L=yes
10297 hardcode_libdir_flag_spec='-L$libdir'
10298 hardcode_libdir_separator=
10302 shared_flag='-shared'
10303 if test "$aix_use_runtimelinking" = yes; then
10304 shared_flag="$shared_flag "'${wl}-G'
10306 link_all_deplibs=no
10309 if test "$host_cpu" = ia64; then
10310 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10311 # chokes on -Wl,-G. The following line is correct:
10314 if test "$aix_use_runtimelinking" = yes; then
10315 shared_flag='${wl}-G'
10317 shared_flag='${wl}-bM:SRE'
10322 export_dynamic_flag_spec='${wl}-bexpall'
10323 # It seems that -bexpall does not export symbols beginning with
10324 # underscore (_), so it is better to generate a list of symbols to export.
10325 always_export_symbols=yes
10326 if test "$aix_use_runtimelinking" = yes; then
10327 # Warning - without using the other runtime loading flags (-brtl),
10328 # -berok will link without error, but may produce a broken library.
10329 allow_undefined_flag='-berok'
10330 # Determine the default libpath from the value encoded in an
10331 # empty executable.
10332 if test "${lt_cv_aix_libpath+set}" = set; then
10333 aix_libpath=$lt_cv_aix_libpath
10335 if ${lt_cv_aix_libpath_+:} false; then :
10336 $as_echo_n "(cached) " >&6
10338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10339 /* end confdefs.h. */
10349 if ac_fn_c_try_link "$LINENO"; then :
10351 lt_aix_libpath_sed='
10352 /Import File Strings/,/^$/ {
10354 s/^0 *\([^ ]*\) *$/\1/
10358 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10359 # Check for a 64-bit object if we didn't find anything.
10360 if test -z "$lt_cv_aix_libpath_"; then
10361 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10364 rm -f core conftest.err conftest.$ac_objext \
10365 conftest$ac_exeext conftest.$ac_ext
10366 if test -z "$lt_cv_aix_libpath_"; then
10367 lt_cv_aix_libpath_="/usr/lib:/lib"
10372 aix_libpath=$lt_cv_aix_libpath_
10375 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10376 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10378 if test "$host_cpu" = ia64; then
10379 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10380 allow_undefined_flag="-z nodefs"
10381 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"
10383 # Determine the default libpath from the value encoded in an
10384 # empty executable.
10385 if test "${lt_cv_aix_libpath+set}" = set; then
10386 aix_libpath=$lt_cv_aix_libpath
10388 if ${lt_cv_aix_libpath_+:} false; then :
10389 $as_echo_n "(cached) " >&6
10391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10392 /* end confdefs.h. */
10402 if ac_fn_c_try_link "$LINENO"; then :
10404 lt_aix_libpath_sed='
10405 /Import File Strings/,/^$/ {
10407 s/^0 *\([^ ]*\) *$/\1/
10411 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10412 # Check for a 64-bit object if we didn't find anything.
10413 if test -z "$lt_cv_aix_libpath_"; then
10414 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10417 rm -f core conftest.err conftest.$ac_objext \
10418 conftest$ac_exeext conftest.$ac_ext
10419 if test -z "$lt_cv_aix_libpath_"; then
10420 lt_cv_aix_libpath_="/usr/lib:/lib"
10425 aix_libpath=$lt_cv_aix_libpath_
10428 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10429 # Warning - without using the other run time loading flags,
10430 # -berok will link without error, but may produce a broken library.
10431 no_undefined_flag=' ${wl}-bernotok'
10432 allow_undefined_flag=' ${wl}-berok'
10433 if test "$with_gnu_ld" = yes; then
10434 # We only use this code for GNU lds that support --whole-archive.
10435 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10437 # Exported symbols can be pulled into shared objects from archives
10438 whole_archive_flag_spec='$convenience'
10440 archive_cmds_need_lc=yes
10441 # This is similar to how AIX traditionally builds its shared libraries.
10442 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10450 # see comment about AmigaOS4 .so support
10451 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10452 archive_expsym_cmds=''
10455 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)'
10456 hardcode_libdir_flag_spec='-L$libdir'
10457 hardcode_minus_L=yes
10463 export_dynamic_flag_spec=-rdynamic
10466 cygwin* | mingw* | pw32* | cegcc*)
10467 # When not using gcc, we currently assume that we are using
10468 # Microsoft Visual C++.
10469 # hardcode_libdir_flag_spec is actually meaningless, as there is
10470 # no search path for DLLs.
10471 case $cc_basename in
10474 hardcode_libdir_flag_spec=' '
10475 allow_undefined_flag=unsupported
10476 always_export_symbols=yes
10478 # Tell ltmain to make .lib files, not .a files.
10480 # Tell ltmain to make .dll files, not .so files.
10482 # FIXME: Setting linknames here is a bad hack.
10483 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10484 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10485 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10487 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10489 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10491 # The linker will not automatically build a static lib if we build a DLL.
10492 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10493 enable_shared_with_static_runtimes=yes
10494 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10495 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10497 old_postinstall_cmds='chmod 644 $oldlib'
10498 postlink_cmds='lt_outputfile="@OUTPUT@"~
10499 lt_tool_outputfile="@TOOL_OUTPUT@"~
10500 case $lt_outputfile in
10503 lt_outputfile="$lt_outputfile.exe"
10504 lt_tool_outputfile="$lt_tool_outputfile.exe"
10507 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10508 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10509 $RM "$lt_outputfile.manifest";
10513 # Assume MSVC wrapper
10514 hardcode_libdir_flag_spec=' '
10515 allow_undefined_flag=unsupported
10516 # Tell ltmain to make .lib files, not .a files.
10518 # Tell ltmain to make .dll files, not .so files.
10520 # FIXME: Setting linknames here is a bad hack.
10521 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10522 # The linker will automatically build a .lib file if we build a DLL.
10523 old_archive_from_new_cmds='true'
10524 # FIXME: Should let the user specify the lib program.
10525 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10526 enable_shared_with_static_runtimes=yes
10531 darwin* | rhapsody*)
10534 archive_cmds_need_lc=no
10536 hardcode_automatic=yes
10537 hardcode_shlibpath_var=unsupported
10538 if test "$lt_cv_ld_force_load" = "yes"; then
10539 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\"`'
10542 whole_archive_flag_spec=''
10544 link_all_deplibs=yes
10545 allow_undefined_flag="$_lt_dar_allow_undefined"
10546 case $cc_basename in
10547 ifort*) _lt_dar_can_shared=yes ;;
10548 *) _lt_dar_can_shared=$GCC ;;
10550 if test "$_lt_dar_can_shared" = "yes"; then
10551 output_verbose_link_cmd=func_echo_all
10552 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10553 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10554 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}"
10555 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}"
10564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10565 hardcode_libdir_flag_spec='-L$libdir'
10566 hardcode_shlibpath_var=no
10569 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10570 # support. Future versions do this automatically, but an explicit c++rt0.o
10571 # does not break anything, and helps significantly (at the cost of a little
10574 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10575 hardcode_libdir_flag_spec='-R$libdir'
10576 hardcode_direct=yes
10577 hardcode_shlibpath_var=no
10580 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10582 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10583 hardcode_direct=yes
10584 hardcode_minus_L=yes
10585 hardcode_shlibpath_var=no
10588 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10589 freebsd* | dragonfly*)
10590 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10591 hardcode_libdir_flag_spec='-R$libdir'
10592 hardcode_direct=yes
10593 hardcode_shlibpath_var=no
10597 if test "$GCC" = yes; then
10598 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10600 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10602 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10603 hardcode_libdir_separator=:
10604 hardcode_direct=yes
10606 # hardcode_minus_L: Not really in the search PATH,
10607 # but as the default location of the library.
10608 hardcode_minus_L=yes
10609 export_dynamic_flag_spec='${wl}-E'
10613 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10614 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10616 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10618 if test "$with_gnu_ld" = no; then
10619 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10620 hardcode_libdir_separator=:
10621 hardcode_direct=yes
10622 hardcode_direct_absolute=yes
10623 export_dynamic_flag_spec='${wl}-E'
10624 # hardcode_minus_L: Not really in the search PATH,
10625 # but as the default location of the library.
10626 hardcode_minus_L=yes
10631 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10634 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10637 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10640 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10646 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10649 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10653 # Older versions of the 11.00 compiler do not understand -b yet
10654 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10656 $as_echo_n "checking if $CC understands -b... " >&6; }
10657 if ${lt_cv_prog_compiler__b+:} false; then :
10658 $as_echo_n "(cached) " >&6
10660 lt_cv_prog_compiler__b=no
10661 save_LDFLAGS="$LDFLAGS"
10662 LDFLAGS="$LDFLAGS -b"
10663 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10664 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10665 # The linker can only warn and ignore the option if not recognized
10666 # So say no if there are warnings
10667 if test -s conftest.err; then
10668 # Append any errors to the config.log.
10669 cat conftest.err 1>&5
10670 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10671 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10672 if diff conftest.exp conftest.er2 >/dev/null; then
10673 lt_cv_prog_compiler__b=yes
10676 lt_cv_prog_compiler__b=yes
10680 LDFLAGS="$save_LDFLAGS"
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10684 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10686 if test x"$lt_cv_prog_compiler__b" = xyes; then
10687 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10689 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10695 if test "$with_gnu_ld" = no; then
10696 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10697 hardcode_libdir_separator=:
10702 hardcode_shlibpath_var=no
10705 hardcode_direct=yes
10706 hardcode_direct_absolute=yes
10707 export_dynamic_flag_spec='${wl}-E'
10709 # hardcode_minus_L: Not really in the search PATH,
10710 # but as the default location of the library.
10711 hardcode_minus_L=yes
10717 irix5* | irix6* | nonstopux*)
10718 if test "$GCC" = yes; then
10719 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'
10720 # Try to use the -exported_symbol ld option, if it does not
10721 # work, assume that -exports_file does not work either and
10722 # implicitly export all symbols.
10723 # This should be the same for all languages, so no per-tag cache variable.
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10725 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10726 if ${lt_cv_irix_exported_symbol+:} false; then :
10727 $as_echo_n "(cached) " >&6
10729 save_LDFLAGS="$LDFLAGS"
10730 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732 /* end confdefs.h. */
10733 int foo (void) { return 0; }
10735 if ac_fn_c_try_link "$LINENO"; then :
10736 lt_cv_irix_exported_symbol=yes
10738 lt_cv_irix_exported_symbol=no
10740 rm -f core conftest.err conftest.$ac_objext \
10741 conftest$ac_exeext conftest.$ac_ext
10742 LDFLAGS="$save_LDFLAGS"
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10745 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10746 if test "$lt_cv_irix_exported_symbol" = yes; then
10747 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'
10750 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'
10751 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'
10753 archive_cmds_need_lc='no'
10754 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10755 hardcode_libdir_separator=:
10757 link_all_deplibs=yes
10760 netbsd* | netbsdelf*-gnu)
10761 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10762 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10764 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10766 hardcode_libdir_flag_spec='-R$libdir'
10767 hardcode_direct=yes
10768 hardcode_shlibpath_var=no
10772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10773 hardcode_direct=yes
10774 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10775 hardcode_libdir_separator=:
10776 hardcode_shlibpath_var=no
10783 if test -f /usr/libexec/ld.so; then
10784 hardcode_direct=yes
10785 hardcode_shlibpath_var=no
10786 hardcode_direct_absolute=yes
10787 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10788 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10789 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10790 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10791 export_dynamic_flag_spec='${wl}-E'
10794 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10795 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10796 hardcode_libdir_flag_spec='-R$libdir'
10799 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10800 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10810 hardcode_libdir_flag_spec='-L$libdir'
10811 hardcode_minus_L=yes
10812 allow_undefined_flag=unsupported
10813 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10814 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10818 if test "$GCC" = yes; then
10819 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10820 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'
10822 allow_undefined_flag=' -expect_unresolved \*'
10823 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'
10825 archive_cmds_need_lc='no'
10826 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10827 hardcode_libdir_separator=:
10830 osf4* | osf5*) # as osf3* with the addition of -msym flag
10831 if test "$GCC" = yes; then
10832 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10833 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'
10834 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10836 allow_undefined_flag=' -expect_unresolved \*'
10837 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'
10838 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~
10839 $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'
10841 # Both c and cxx compiler support -rpath directly
10842 hardcode_libdir_flag_spec='-rpath $libdir'
10844 archive_cmds_need_lc='no'
10845 hardcode_libdir_separator=:
10849 no_undefined_flag=' -z defs'
10850 if test "$GCC" = yes; then
10852 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10853 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10854 $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'
10856 case `$CC -V 2>&1` in
10859 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10860 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10861 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10865 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10866 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10867 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10871 hardcode_libdir_flag_spec='-R$libdir'
10872 hardcode_shlibpath_var=no
10874 solaris2.[0-5] | solaris2.[0-5].*) ;;
10876 # The compiler driver will combine and reorder linker options,
10877 # but understands `-z linker_flag'. GCC discards it without `$wl',
10878 # but is careful enough not to reorder.
10879 # Supported since Solaris 2.6 (maybe 2.5.1?)
10880 if test "$GCC" = yes; then
10881 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10883 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10887 link_all_deplibs=yes
10891 if test "x$host_vendor" = xsequent; then
10892 # Use $CC to link under sequent, because it throws in some extra .o
10893 # files that make .init and .fini sections work.
10894 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10896 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10898 hardcode_libdir_flag_spec='-L$libdir'
10899 hardcode_direct=yes
10900 hardcode_minus_L=yes
10901 hardcode_shlibpath_var=no
10905 case $host_vendor in
10907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10908 hardcode_direct=yes # is this really true???
10911 ## LD is ld it makes a PLAMLIB
10912 ## CC just makes a GrossModule.
10913 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10914 reload_cmds='$CC -r -o $output$reload_objs'
10918 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10919 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10922 runpath_var='LD_RUN_PATH'
10923 hardcode_shlibpath_var=no
10927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10928 hardcode_shlibpath_var=no
10929 export_dynamic_flag_spec='-Bexport'
10933 if test -d /usr/nec; then
10934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10935 hardcode_shlibpath_var=no
10936 runpath_var=LD_RUN_PATH
10937 hardcode_runpath_var=yes
10942 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10943 no_undefined_flag='${wl}-z,text'
10944 archive_cmds_need_lc=no
10945 hardcode_shlibpath_var=no
10946 runpath_var='LD_RUN_PATH'
10948 if test "$GCC" = yes; then
10949 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10950 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10952 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10953 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10957 sysv5* | sco3.2v5* | sco5v6*)
10958 # Note: We can NOT use -z defs as we might desire, because we do not
10959 # link with -lc, and that would cause any symbols used from libc to
10960 # always be unresolved, which means just about no library would
10961 # ever link correctly. If we're not using GNU ld we use -z text
10962 # though, which does catch some bad symbols but isn't as heavy-handed
10964 no_undefined_flag='${wl}-z,text'
10965 allow_undefined_flag='${wl}-z,nodefs'
10966 archive_cmds_need_lc=no
10967 hardcode_shlibpath_var=no
10968 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10969 hardcode_libdir_separator=':'
10970 link_all_deplibs=yes
10971 export_dynamic_flag_spec='${wl}-Bexport'
10972 runpath_var='LD_RUN_PATH'
10974 if test "$GCC" = yes; then
10975 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10976 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10978 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10979 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10984 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10985 hardcode_libdir_flag_spec='-L$libdir'
10986 hardcode_shlibpath_var=no
10994 if test x$host_vendor = xsni; then
10996 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10997 export_dynamic_flag_spec='${wl}-Blargedynsym'
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11004 $as_echo "$ld_shlibs" >&6; }
11005 test "$ld_shlibs" = no && can_build_shared=no
11007 with_gnu_ld=$with_gnu_ld
11024 # Do we need to explicitly link libc?
11026 case "x$archive_cmds_need_lc" in
11028 # Assume -lc should be added
11029 archive_cmds_need_lc=yes
11031 if test "$enable_shared" = yes && test "$GCC" = yes; then
11032 case $archive_cmds in
11034 # FIXME: we may have to deal with multi-command sequences.
11037 # Test whether the compiler implicitly links with -lc since on some
11038 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11039 # to ld, don't add -lc before -lgcc.
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11041 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11042 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11043 $as_echo_n "(cached) " >&6
11046 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11049 (eval $ac_compile) 2>&5
11051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11052 test $ac_status = 0; } 2>conftest.err; then
11055 libobjs=conftest.$ac_objext
11057 wl=$lt_prog_compiler_wl
11058 pic_flag=$lt_prog_compiler_pic
11064 lt_save_allow_undefined_flag=$allow_undefined_flag
11065 allow_undefined_flag=
11066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11067 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11070 test $ac_status = 0; }
11072 lt_cv_archive_cmds_need_lc=no
11074 lt_cv_archive_cmds_need_lc=yes
11076 allow_undefined_flag=$lt_save_allow_undefined_flag
11078 cat conftest.err 1>&5
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11084 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11085 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11244 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11246 if test "$GCC" = yes; then
11248 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11249 *) lt_awk_arg="/^libraries:/" ;;
11252 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11253 *) lt_sed_strip_eq="s,=/,/,g" ;;
11255 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11256 case $lt_search_path_spec in
11258 # if the path contains ";" then we assume it to be the separator
11259 # otherwise default to the standard path separator (i.e. ":") - it is
11260 # assumed that no part of a normal pathname contains ";" but that should
11261 # okay in the real world where ";" in dirpaths is itself problematic.
11262 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11265 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11268 # Ok, now we have the path, separated by spaces, we can step through it
11269 # and add multilib dir if necessary.
11270 lt_tmp_lt_search_path_spec=
11271 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11272 for lt_sys_path in $lt_search_path_spec; do
11273 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11274 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11276 test -d "$lt_sys_path" && \
11277 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11280 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11281 BEGIN {RS=" "; FS="/|\n";} {
11284 for (lt_i = NF; lt_i > 0; lt_i--) {
11285 if ($lt_i != "" && $lt_i != ".") {
11286 if ($lt_i == "..") {
11289 if (lt_count == 0) {
11290 lt_foo="/" $lt_i lt_foo;
11297 if (lt_foo != "") { lt_freq[lt_foo]++; }
11298 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11300 # AWK program above erroneously prepends '/' to C:/dos/paths
11303 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11304 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11306 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11308 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11310 library_names_spec=
11311 libname_spec='lib$name'
11315 postuninstall_cmds=
11319 shlibpath_overrides_runpath=unknown
11321 dynamic_linker="$host_os ld.so"
11322 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11323 need_lib_prefix=unknown
11324 hardcode_into_libs=no
11326 # when you set need_version to no, make sure it does not cause -set_version
11327 # flags to be left without arguments
11328 need_version=unknown
11332 version_type=linux # correct to gnu/linux during the next big refactor
11333 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11334 shlibpath_var=LIBPATH
11336 # AIX 3 has no versioning support, so we append a major version to the name.
11337 soname_spec='${libname}${release}${shared_ext}$major'
11341 version_type=linux # correct to gnu/linux during the next big refactor
11344 hardcode_into_libs=yes
11345 if test "$host_cpu" = ia64; then
11346 # AIX 5 supports IA64
11347 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11348 shlibpath_var=LD_LIBRARY_PATH
11350 # With GCC up to 2.95.x, collect2 would create an import file
11351 # for dependence libraries. The import file would start with
11352 # the line `#! .'. This would cause the generated library to
11353 # depend on `.', always an invalid library. This was fixed in
11354 # development snapshots of GCC prior to 3.0.
11356 aix4 | aix4.[01] | aix4.[01].*)
11357 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11359 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11362 can_build_shared=no
11366 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11367 # soname into executable. Probably we can add versioning support to
11368 # collect2, so additional links can be useful in future.
11369 if test "$aix_use_runtimelinking" = yes; then
11370 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11371 # instead of lib<name>.a to let people know that these are not
11372 # typical AIX shared libraries.
11373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11375 # We preserve .a as extension for shared libraries through AIX4.2
11376 # and later when we are not doing run time linking.
11377 library_names_spec='${libname}${release}.a $libname.a'
11378 soname_spec='${libname}${release}${shared_ext}$major'
11380 shlibpath_var=LIBPATH
11387 # Since July 2007 AmigaOS4 officially supports .so libraries.
11388 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11392 library_names_spec='$libname.ixlibrary $libname.a'
11393 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11394 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
11400 library_names_spec='${libname}${shared_ext}'
11401 dynamic_linker="$host_os ld.so"
11402 shlibpath_var=LIBRARY_PATH
11406 version_type=linux # correct to gnu/linux during the next big refactor
11408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11409 soname_spec='${libname}${release}${shared_ext}$major'
11410 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11411 shlibpath_var=LD_LIBRARY_PATH
11412 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11413 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11414 # the default ld.so.conf also contains /usr/contrib/lib and
11415 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11416 # libtool to hard-code these into programs
11419 cygwin* | mingw* | pw32* | cegcc*)
11420 version_type=windows
11425 case $GCC,$cc_basename in
11428 library_names_spec='$libname.dll.a'
11429 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11430 postinstall_cmds='base_file=`basename \${file}`~
11431 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11432 dldir=$destdir/`dirname \$dlpath`~
11433 test -d \$dldir || mkdir -p \$dldir~
11434 $install_prog $dir/$dlname \$dldir/$dlname~
11435 chmod a+x \$dldir/$dlname~
11436 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11437 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11439 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11440 dlpath=$dir/\$dldll~
11442 shlibpath_overrides_runpath=yes
11446 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11447 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11449 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11452 # MinGW DLLs use traditional 'lib' prefix
11453 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11456 # pw32 DLLs use 'pw' prefix rather than 'lib'
11457 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11460 dynamic_linker='Win32 ld.exe'
11465 libname_spec='$name'
11466 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11467 library_names_spec='${libname}.dll.lib'
11471 sys_lib_search_path_spec=
11474 for lt_path in $LIB
11477 # Let DOS variable expansion print the short 8.3 style file name.
11478 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11479 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11482 # Convert to MSYS style.
11483 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11486 # Convert to unix form, then to dos form, then back to unix form
11487 # but this time dos style (no spaces!) so that the unix form looks
11488 # like /cygdrive/c/PROGRA~1:/cygdr...
11489 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11490 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11491 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11494 sys_lib_search_path_spec="$LIB"
11495 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11496 # It is most probably a Windows format PATH.
11497 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11499 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11501 # FIXME: find the short name or the path components, as spaces are
11502 # common. (e.g. "Program Files" -> "PROGRA~1")
11506 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11507 postinstall_cmds='base_file=`basename \${file}`~
11508 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11509 dldir=$destdir/`dirname \$dlpath`~
11510 test -d \$dldir || mkdir -p \$dldir~
11511 $install_prog $dir/$dlname \$dldir/$dlname'
11512 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11513 dlpath=$dir/\$dldll~
11515 shlibpath_overrides_runpath=yes
11516 dynamic_linker='Win32 link.exe'
11520 # Assume MSVC wrapper
11521 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11522 dynamic_linker='Win32 ld.exe'
11525 # FIXME: first we should search . and the directory the executable is in
11529 darwin* | rhapsody*)
11530 dynamic_linker="$host_os dyld"
11531 version_type=darwin
11534 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11535 soname_spec='${libname}${release}${major}$shared_ext'
11536 shlibpath_overrides_runpath=yes
11537 shlibpath_var=DYLD_LIBRARY_PATH
11538 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11540 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11541 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11545 version_type=linux # correct to gnu/linux during the next big refactor
11548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11549 soname_spec='${libname}${release}${shared_ext}$major'
11550 shlibpath_var=LD_LIBRARY_PATH
11553 freebsd* | dragonfly*)
11554 # DragonFly does not have aout. When/if they implement a new
11555 # versioning mechanism, adjust this.
11556 if test -x /usr/bin/objformat; then
11557 objformat=`/usr/bin/objformat`
11560 freebsd[23].*) objformat=aout ;;
11561 *) objformat=elf ;;
11564 version_type=freebsd-$objformat
11565 case $version_type in
11567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11572 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11576 shlibpath_var=LD_LIBRARY_PATH
11579 shlibpath_overrides_runpath=yes
11581 freebsd3.[01]* | freebsdelf3.[01]*)
11582 shlibpath_overrides_runpath=yes
11583 hardcode_into_libs=yes
11585 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11586 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11587 shlibpath_overrides_runpath=no
11588 hardcode_into_libs=yes
11590 *) # from 4.6 on, and DragonFly
11591 shlibpath_overrides_runpath=yes
11592 hardcode_into_libs=yes
11598 version_type=linux # correct to gnu/linux during the next big refactor
11601 dynamic_linker="$host_os runtime_loader"
11602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11603 soname_spec='${libname}${release}${shared_ext}$major'
11604 shlibpath_var=LIBRARY_PATH
11605 shlibpath_overrides_runpath=yes
11606 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11607 hardcode_into_libs=yes
11610 hpux9* | hpux10* | hpux11*)
11611 # Give a soname corresponding to the major version so that dld.sl refuses to
11612 # link against other versions.
11619 hardcode_into_libs=yes
11620 dynamic_linker="$host_os dld.so"
11621 shlibpath_var=LD_LIBRARY_PATH
11622 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11624 soname_spec='${libname}${release}${shared_ext}$major'
11625 if test "X$HPUX_IA64_MODE" = X32; then
11626 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11628 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11630 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11634 hardcode_into_libs=yes
11635 dynamic_linker="$host_os dld.sl"
11636 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11637 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11639 soname_spec='${libname}${release}${shared_ext}$major'
11640 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11641 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11645 dynamic_linker="$host_os dld.sl"
11646 shlibpath_var=SHLIB_PATH
11647 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11649 soname_spec='${libname}${release}${shared_ext}$major'
11652 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11653 postinstall_cmds='chmod 555 $lib'
11654 # or fails outright, so override atomically:
11655 install_override_mode=555
11659 version_type=linux # correct to gnu/linux during the next big refactor
11662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11663 soname_spec='${libname}${release}${shared_ext}$major'
11664 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11665 shlibpath_var=LD_LIBRARY_PATH
11666 shlibpath_overrides_runpath=no
11667 hardcode_into_libs=yes
11670 irix5* | irix6* | nonstopux*)
11672 nonstopux*) version_type=nonstopux ;;
11674 if test "$lt_cv_prog_gnu_ld" = yes; then
11675 version_type=linux # correct to gnu/linux during the next big refactor
11682 soname_spec='${libname}${release}${shared_ext}$major'
11683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11685 irix5* | nonstopux*)
11686 libsuff= shlibsuff=
11689 case $LD in # libtool.m4 will add one of these switches to LD
11690 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11691 libsuff= shlibsuff= libmagic=32-bit;;
11692 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11693 libsuff=32 shlibsuff=N32 libmagic=N32;;
11694 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11695 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11696 *) libsuff= shlibsuff= libmagic=never-match;;
11700 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11701 shlibpath_overrides_runpath=no
11702 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11703 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11704 hardcode_into_libs=yes
11707 # No shared lib support for Linux oldld, aout, or coff.
11708 linux*oldld* | linux*aout* | linux*coff*)
11712 # This must be glibc/ELF.
11713 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11714 version_type=linux # correct to gnu/linux during the next big refactor
11717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11718 soname_spec='${libname}${release}${shared_ext}$major'
11719 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11720 shlibpath_var=LD_LIBRARY_PATH
11721 shlibpath_overrides_runpath=no
11723 # Some binutils ld are patched to set DT_RUNPATH
11724 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11725 $as_echo_n "(cached) " >&6
11727 lt_cv_shlibpath_overrides_runpath=no
11728 save_LDFLAGS=$LDFLAGS
11729 save_libdir=$libdir
11730 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11731 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11733 /* end confdefs.h. */
11743 if ac_fn_c_try_link "$LINENO"; then :
11744 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11745 lt_cv_shlibpath_overrides_runpath=yes
11748 rm -f core conftest.err conftest.$ac_objext \
11749 conftest$ac_exeext conftest.$ac_ext
11750 LDFLAGS=$save_LDFLAGS
11751 libdir=$save_libdir
11755 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11757 # This implies no fast_install, which is unacceptable.
11758 # Some rework will be needed to allow for fast_install
11759 # before this can be enabled.
11760 hardcode_into_libs=yes
11762 # Append ld.so.conf contents to the search path
11763 if test -f /etc/ld.so.conf; then
11764 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' ' '`
11765 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11768 # We used to test for /lib/ld.so.1 and disable shared libraries on
11769 # powerpc, because MkLinux only supported shared libraries with the
11770 # GNU dynamic linker. Since this was broken with cross compilers,
11771 # most powerpc-linux boxes support dynamic linking these days and
11772 # people can always --disable-shared, the test was removed, and we
11773 # assume the GNU/Linux dynamic linker is in use.
11774 dynamic_linker='GNU/Linux ld.so'
11781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11782 soname_spec='${libname}${release}${shared_ext}$major'
11783 shlibpath_var=LD_LIBRARY_PATH
11784 shlibpath_overrides_runpath=no
11785 hardcode_into_libs=yes
11786 dynamic_linker='NetBSD ld.elf_so'
11793 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11795 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11796 dynamic_linker='NetBSD (a.out) ld.so'
11798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11799 soname_spec='${libname}${release}${shared_ext}$major'
11800 dynamic_linker='NetBSD ld.elf_so'
11802 shlibpath_var=LD_LIBRARY_PATH
11803 shlibpath_overrides_runpath=yes
11804 hardcode_into_libs=yes
11808 version_type=linux # correct to gnu/linux during the next big refactor
11809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11810 shlibpath_var=LD_LIBRARY_PATH
11811 shlibpath_overrides_runpath=yes
11818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11819 soname_spec='${libname}${release}${shared_ext}$major'
11820 shlibpath_var=LD_LIBRARY_PATH
11821 shlibpath_overrides_runpath=no
11822 hardcode_into_libs=yes
11823 dynamic_linker='ldqnx.so'
11828 sys_lib_dlsearch_path_spec="/usr/lib"
11830 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11832 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11833 *) need_version=no ;;
11835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11837 shlibpath_var=LD_LIBRARY_PATH
11838 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11840 openbsd2.[89] | openbsd2.[89].*)
11841 shlibpath_overrides_runpath=no
11844 shlibpath_overrides_runpath=yes
11848 shlibpath_overrides_runpath=yes
11853 libname_spec='$name'
11856 library_names_spec='$libname${shared_ext} $libname.a'
11857 dynamic_linker='OS/2 ld.exe'
11858 shlibpath_var=LIBPATH
11861 osf3* | osf4* | osf5*)
11865 soname_spec='${libname}${release}${shared_ext}$major'
11866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11867 shlibpath_var=LD_LIBRARY_PATH
11868 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11869 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11877 version_type=linux # correct to gnu/linux during the next big refactor
11880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11881 soname_spec='${libname}${release}${shared_ext}$major'
11882 shlibpath_var=LD_LIBRARY_PATH
11883 shlibpath_overrides_runpath=yes
11884 hardcode_into_libs=yes
11885 # ldd complains unless libraries are executable
11886 postinstall_cmds='chmod +x $lib'
11891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11892 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11893 shlibpath_var=LD_LIBRARY_PATH
11894 shlibpath_overrides_runpath=yes
11895 if test "$with_gnu_ld" = yes; then
11902 version_type=linux # correct to gnu/linux during the next big refactor
11903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11904 soname_spec='${libname}${release}${shared_ext}$major'
11905 shlibpath_var=LD_LIBRARY_PATH
11906 case $host_vendor in
11908 shlibpath_overrides_runpath=no
11910 runpath_var=LD_RUN_PATH
11918 shlibpath_overrides_runpath=no
11919 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11925 if test -d /usr/nec ;then
11926 version_type=linux # correct to gnu/linux during the next big refactor
11927 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11928 soname_spec='$libname${shared_ext}.$major'
11929 shlibpath_var=LD_LIBRARY_PATH
11933 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11934 version_type=freebsd-elf
11937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11938 soname_spec='${libname}${release}${shared_ext}$major'
11939 shlibpath_var=LD_LIBRARY_PATH
11940 shlibpath_overrides_runpath=yes
11941 hardcode_into_libs=yes
11942 if test "$with_gnu_ld" = yes; then
11943 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11945 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11948 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11952 sys_lib_dlsearch_path_spec='/usr/lib'
11956 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11957 version_type=linux # correct to gnu/linux during the next big refactor
11960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11961 shlibpath_var=LD_LIBRARY_PATH
11962 shlibpath_overrides_runpath=no
11963 hardcode_into_libs=yes
11967 version_type=linux # correct to gnu/linux during the next big refactor
11968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11969 soname_spec='${libname}${release}${shared_ext}$major'
11970 shlibpath_var=LD_LIBRARY_PATH
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11978 $as_echo "$dynamic_linker" >&6; }
11979 test "$dynamic_linker" = no && can_build_shared=no
11981 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11982 if test "$GCC" = yes; then
11983 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11986 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11987 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11989 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11990 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12085 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12087 if test -n "$hardcode_libdir_flag_spec" ||
12088 test -n "$runpath_var" ||
12089 test "X$hardcode_automatic" = "Xyes" ; then
12091 # We can hardcode non-existent directories.
12092 if test "$hardcode_direct" != no &&
12093 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12094 # have to relink, otherwise we might link with an installed library
12095 # when we should be linking with a yet-to-be-installed one
12096 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12097 test "$hardcode_minus_L" != no; then
12098 # Linking always hardcodes the temporary library directory.
12099 hardcode_action=relink
12101 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12102 hardcode_action=immediate
12105 # We cannot hardcode anything, or else we can only hardcode existing
12107 hardcode_action=unsupported
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12110 $as_echo "$hardcode_action" >&6; }
12112 if test "$hardcode_action" = relink ||
12113 test "$inherit_rpath" = yes; then
12114 # Fast installation is not supported
12115 enable_fast_install=no
12116 elif test "$shlibpath_overrides_runpath" = yes ||
12117 test "$enable_shared" = no; then
12118 # Fast installation is not necessary
12119 enable_fast_install=needless
12127 if test "x$enable_dlopen" != xyes; then
12128 enable_dlopen=unknown
12129 enable_dlopen_self=unknown
12130 enable_dlopen_self_static=unknown
12137 lt_cv_dlopen="load_add_on"
12139 lt_cv_dlopen_self=yes
12142 mingw* | pw32* | cegcc*)
12143 lt_cv_dlopen="LoadLibrary"
12148 lt_cv_dlopen="dlopen"
12153 # if libdl is installed we need to link against it
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12155 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12156 if ${ac_cv_lib_dl_dlopen+:} false; then :
12157 $as_echo_n "(cached) " >&6
12159 ac_check_lib_save_LIBS=$LIBS
12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162 /* end confdefs.h. */
12164 /* Override any GCC internal prototype to avoid an error.
12165 Use char because int might match the return type of a GCC
12166 builtin and then its argument prototype would still apply. */
12179 if ac_fn_c_try_link "$LINENO"; then :
12180 ac_cv_lib_dl_dlopen=yes
12182 ac_cv_lib_dl_dlopen=no
12184 rm -f core conftest.err conftest.$ac_objext \
12185 conftest$ac_exeext conftest.$ac_ext
12186 LIBS=$ac_check_lib_save_LIBS
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12189 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12190 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12191 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12194 lt_cv_dlopen="dyld"
12196 lt_cv_dlopen_self=yes
12203 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12204 if test "x$ac_cv_func_shl_load" = xyes; then :
12205 lt_cv_dlopen="shl_load"
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12208 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12209 if ${ac_cv_lib_dld_shl_load+:} false; then :
12210 $as_echo_n "(cached) " >&6
12212 ac_check_lib_save_LIBS=$LIBS
12214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h. */
12217 /* Override any GCC internal prototype to avoid an error.
12218 Use char because int might match the return type of a GCC
12219 builtin and then its argument prototype would still apply. */
12227 return shl_load ();
12232 if ac_fn_c_try_link "$LINENO"; then :
12233 ac_cv_lib_dld_shl_load=yes
12235 ac_cv_lib_dld_shl_load=no
12237 rm -f core conftest.err conftest.$ac_objext \
12238 conftest$ac_exeext conftest.$ac_ext
12239 LIBS=$ac_check_lib_save_LIBS
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12242 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12243 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12244 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12246 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12247 if test "x$ac_cv_func_dlopen" = xyes; then :
12248 lt_cv_dlopen="dlopen"
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12251 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12252 if ${ac_cv_lib_dl_dlopen+:} false; then :
12253 $as_echo_n "(cached) " >&6
12255 ac_check_lib_save_LIBS=$LIBS
12257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h. */
12260 /* Override any GCC internal prototype to avoid an error.
12261 Use char because int might match the return type of a GCC
12262 builtin and then its argument prototype would still apply. */
12275 if ac_fn_c_try_link "$LINENO"; then :
12276 ac_cv_lib_dl_dlopen=yes
12278 ac_cv_lib_dl_dlopen=no
12280 rm -f core conftest.err conftest.$ac_objext \
12281 conftest$ac_exeext conftest.$ac_ext
12282 LIBS=$ac_check_lib_save_LIBS
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12285 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12286 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12287 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12290 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12291 if ${ac_cv_lib_svld_dlopen+:} false; then :
12292 $as_echo_n "(cached) " >&6
12294 ac_check_lib_save_LIBS=$LIBS
12295 LIBS="-lsvld $LIBS"
12296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12297 /* end confdefs.h. */
12299 /* Override any GCC internal prototype to avoid an error.
12300 Use char because int might match the return type of a GCC
12301 builtin and then its argument prototype would still apply. */
12314 if ac_fn_c_try_link "$LINENO"; then :
12315 ac_cv_lib_svld_dlopen=yes
12317 ac_cv_lib_svld_dlopen=no
12319 rm -f core conftest.err conftest.$ac_objext \
12320 conftest$ac_exeext conftest.$ac_ext
12321 LIBS=$ac_check_lib_save_LIBS
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12324 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12325 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12326 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12329 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12330 if ${ac_cv_lib_dld_dld_link+:} false; then :
12331 $as_echo_n "(cached) " >&6
12333 ac_check_lib_save_LIBS=$LIBS
12335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12336 /* end confdefs.h. */
12338 /* Override any GCC internal prototype to avoid an error.
12339 Use char because int might match the return type of a GCC
12340 builtin and then its argument prototype would still apply. */
12348 return dld_link ();
12353 if ac_fn_c_try_link "$LINENO"; then :
12354 ac_cv_lib_dld_dld_link=yes
12356 ac_cv_lib_dld_dld_link=no
12358 rm -f core conftest.err conftest.$ac_objext \
12359 conftest$ac_exeext conftest.$ac_ext
12360 LIBS=$ac_check_lib_save_LIBS
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12363 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12364 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12365 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12386 if test "x$lt_cv_dlopen" != xno; then
12392 case $lt_cv_dlopen in
12394 save_CPPFLAGS="$CPPFLAGS"
12395 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12397 save_LDFLAGS="$LDFLAGS"
12398 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12401 LIBS="$lt_cv_dlopen_libs $LIBS"
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12404 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12405 if ${lt_cv_dlopen_self+:} false; then :
12406 $as_echo_n "(cached) " >&6
12408 if test "$cross_compiling" = yes; then :
12409 lt_cv_dlopen_self=cross
12411 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12412 lt_status=$lt_dlunknown
12413 cat > conftest.$ac_ext <<_LT_EOF
12414 #line $LINENO "configure"
12415 #include "confdefs.h"
12424 # define LT_DLGLOBAL RTLD_GLOBAL
12427 # define LT_DLGLOBAL DL_GLOBAL
12429 # define LT_DLGLOBAL 0
12433 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12434 find out it does not work in some platform. */
12435 #ifndef LT_DLLAZY_OR_NOW
12437 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12440 # define LT_DLLAZY_OR_NOW DL_LAZY
12443 # define LT_DLLAZY_OR_NOW RTLD_NOW
12446 # define LT_DLLAZY_OR_NOW DL_NOW
12448 # define LT_DLLAZY_OR_NOW 0
12455 /* When -fvisbility=hidden is used, assume the code has been annotated
12456 correspondingly for the symbols needed. */
12457 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12458 int fnord () __attribute__((visibility("default")));
12461 int fnord () { return 42; }
12464 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12465 int status = $lt_dlunknown;
12469 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12472 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12473 else puts (dlerror ());
12475 /* dlclose (self); */
12483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12484 (eval $ac_link) 2>&5
12486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12487 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12488 (./conftest; exit; ) >&5 2>/dev/null
12490 case x$lt_status in
12491 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12492 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12493 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12496 # compilation failed
12497 lt_cv_dlopen_self=no
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12505 $as_echo "$lt_cv_dlopen_self" >&6; }
12507 if test "x$lt_cv_dlopen_self" = xyes; then
12508 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12510 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12511 if ${lt_cv_dlopen_self_static+:} false; then :
12512 $as_echo_n "(cached) " >&6
12514 if test "$cross_compiling" = yes; then :
12515 lt_cv_dlopen_self_static=cross
12517 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12518 lt_status=$lt_dlunknown
12519 cat > conftest.$ac_ext <<_LT_EOF
12520 #line $LINENO "configure"
12521 #include "confdefs.h"
12530 # define LT_DLGLOBAL RTLD_GLOBAL
12533 # define LT_DLGLOBAL DL_GLOBAL
12535 # define LT_DLGLOBAL 0
12539 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12540 find out it does not work in some platform. */
12541 #ifndef LT_DLLAZY_OR_NOW
12543 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12546 # define LT_DLLAZY_OR_NOW DL_LAZY
12549 # define LT_DLLAZY_OR_NOW RTLD_NOW
12552 # define LT_DLLAZY_OR_NOW DL_NOW
12554 # define LT_DLLAZY_OR_NOW 0
12561 /* When -fvisbility=hidden is used, assume the code has been annotated
12562 correspondingly for the symbols needed. */
12563 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12564 int fnord () __attribute__((visibility("default")));
12567 int fnord () { return 42; }
12570 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12571 int status = $lt_dlunknown;
12575 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12578 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12579 else puts (dlerror ());
12581 /* dlclose (self); */
12589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12590 (eval $ac_link) 2>&5
12592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12593 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12594 (./conftest; exit; ) >&5 2>/dev/null
12596 case x$lt_status in
12597 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12598 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12599 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12602 # compilation failed
12603 lt_cv_dlopen_self_static=no
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12611 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12614 CPPFLAGS="$save_CPPFLAGS"
12615 LDFLAGS="$save_LDFLAGS"
12620 case $lt_cv_dlopen_self in
12621 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12622 *) enable_dlopen_self=unknown ;;
12625 case $lt_cv_dlopen_self_static in
12626 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12627 *) enable_dlopen_self_static=unknown ;;
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12650 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12651 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12652 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12653 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12655 $as_echo "yes" >&6; }
12657 # FIXME - insert some real tests, host_os isn't really good enough
12660 if test -n "$STRIP" ; then
12661 striplib="$STRIP -x"
12662 old_striplib="$STRIP -S"
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12664 $as_echo "yes" >&6; }
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12667 $as_echo "no" >&6; }
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12672 $as_echo "no" >&6; }
12688 # Report which library types will actually be built
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12690 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12692 $as_echo "$can_build_shared" >&6; }
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12695 $as_echo_n "checking whether to build shared libraries... " >&6; }
12696 test "$can_build_shared" = "no" && enable_shared=no
12698 # On AIX, shared libraries and static libraries use the same namespace, and
12699 # are all built from PIC.
12702 test "$enable_shared" = yes && enable_static=no
12703 if test -n "$RANLIB"; then
12704 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12705 postinstall_cmds='$RANLIB $lib'
12710 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12711 test "$enable_shared" = yes && enable_static=no
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12716 $as_echo "$enable_shared" >&6; }
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12719 $as_echo_n "checking whether to build static libraries... " >&6; }
12720 # Make sure either enable_shared or enable_static is yes.
12721 test "$enable_shared" = yes || enable_static=yes
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12723 $as_echo "$enable_static" >&6; }
12730 ac_cpp='$CPP $CPPFLAGS'
12731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12751 ac_config_commands="$ac_config_commands libtool"
12756 # Only expand once:
12760 # Check whether --enable-largefile was given.
12761 if test "${enable_largefile+set}" = set; then :
12762 enableval=$enable_largefile;
12765 if test "$enable_largefile" != no; then
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12768 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12769 if ${ac_cv_sys_largefile_CC+:} false; then :
12770 $as_echo_n "(cached) " >&6
12772 ac_cv_sys_largefile_CC=no
12773 if test "$GCC" != yes; then
12776 # IRIX 6.2 and later do not support large files by default,
12777 # so use the C compiler's -n32 option if that helps.
12778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779 /* end confdefs.h. */
12780 #include <sys/types.h>
12781 /* Check that off_t can represent 2**63 - 1 correctly.
12782 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12783 since some C++ compilers masquerading as C compilers
12784 incorrectly reject 9223372036854775807. */
12785 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12786 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12787 && LARGE_OFF_T % 2147483647 == 1)
12797 if ac_fn_c_try_compile "$LINENO"; then :
12800 rm -f core conftest.err conftest.$ac_objext
12802 if ac_fn_c_try_compile "$LINENO"; then :
12803 ac_cv_sys_largefile_CC=' -n32'; break
12805 rm -f core conftest.err conftest.$ac_objext
12809 rm -f conftest.$ac_ext
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12813 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12814 if test "$ac_cv_sys_largefile_CC" != no; then
12815 CC=$CC$ac_cv_sys_largefile_CC
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12819 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12820 if ${ac_cv_sys_file_offset_bits+:} false; then :
12821 $as_echo_n "(cached) " >&6
12824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12825 /* end confdefs.h. */
12826 #include <sys/types.h>
12827 /* Check that off_t can represent 2**63 - 1 correctly.
12828 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12829 since some C++ compilers masquerading as C compilers
12830 incorrectly reject 9223372036854775807. */
12831 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12832 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12833 && LARGE_OFF_T % 2147483647 == 1)
12843 if ac_fn_c_try_compile "$LINENO"; then :
12844 ac_cv_sys_file_offset_bits=no; break
12846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12848 /* end confdefs.h. */
12849 #define _FILE_OFFSET_BITS 64
12850 #include <sys/types.h>
12851 /* Check that off_t can represent 2**63 - 1 correctly.
12852 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12853 since some C++ compilers masquerading as C compilers
12854 incorrectly reject 9223372036854775807. */
12855 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12856 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12857 && LARGE_OFF_T % 2147483647 == 1)
12867 if ac_fn_c_try_compile "$LINENO"; then :
12868 ac_cv_sys_file_offset_bits=64; break
12870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12871 ac_cv_sys_file_offset_bits=unknown
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12876 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12877 case $ac_cv_sys_file_offset_bits in #(
12880 cat >>confdefs.h <<_ACEOF
12881 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12886 if test $ac_cv_sys_file_offset_bits = unknown; then
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12888 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12889 if ${ac_cv_sys_large_files+:} false; then :
12890 $as_echo_n "(cached) " >&6
12893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12894 /* end confdefs.h. */
12895 #include <sys/types.h>
12896 /* Check that off_t can represent 2**63 - 1 correctly.
12897 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12898 since some C++ compilers masquerading as C compilers
12899 incorrectly reject 9223372036854775807. */
12900 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12901 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12902 && LARGE_OFF_T % 2147483647 == 1)
12912 if ac_fn_c_try_compile "$LINENO"; then :
12913 ac_cv_sys_large_files=no; break
12915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12917 /* end confdefs.h. */
12918 #define _LARGE_FILES 1
12919 #include <sys/types.h>
12920 /* Check that off_t can represent 2**63 - 1 correctly.
12921 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12922 since some C++ compilers masquerading as C compilers
12923 incorrectly reject 9223372036854775807. */
12924 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12925 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12926 && LARGE_OFF_T % 2147483647 == 1)
12936 if ac_fn_c_try_compile "$LINENO"; then :
12937 ac_cv_sys_large_files=1; break
12939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12940 ac_cv_sys_large_files=unknown
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12945 $as_echo "$ac_cv_sys_large_files" >&6; }
12946 case $ac_cv_sys_large_files in #(
12949 cat >>confdefs.h <<_ACEOF
12950 #define _LARGE_FILES $ac_cv_sys_large_files
12961 for ac_prog in pod2man
12963 # Extract the first word of "$ac_prog", so it can be a program name with args.
12964 set dummy $ac_prog; ac_word=$2
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12966 $as_echo_n "checking for $ac_word... " >&6; }
12967 if ${ac_cv_path_POD2MAN+:} false; then :
12968 $as_echo_n "(cached) " >&6
12972 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
12975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12976 for as_dir in $PATH
12979 test -z "$as_dir" && as_dir=.
12980 for ac_exec_ext in '' $ac_executable_extensions; do
12981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12982 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
12983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12993 POD2MAN=$ac_cv_path_POD2MAN
12994 if test -n "$POD2MAN"; then
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
12996 $as_echo "$POD2MAN" >&6; }
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12999 $as_echo "no" >&6; }
13003 test -n "$POD2MAN" && break
13006 test -z "${POD2MAN}" && as_fn_error $? "I couldn't find pod2man; make sure it's installed and in your path" "$LINENO" 5
13010 # Extract the first word of "$ac_prog", so it can be a program name with args.
13011 set dummy $ac_prog; ac_word=$2
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13013 $as_echo_n "checking for $ac_word... " >&6; }
13014 if ${ac_cv_path_TAR+:} false; then :
13015 $as_echo_n "(cached) " >&6
13019 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
13022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13023 for as_dir in $PATH
13026 test -z "$as_dir" && as_dir=.
13027 for ac_exec_ext in '' $ac_executable_extensions; do
13028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13029 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
13030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13040 TAR=$ac_cv_path_TAR
13041 if test -n "$TAR"; then
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
13043 $as_echo "$TAR" >&6; }
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13046 $as_echo "no" >&6; }
13050 test -n "$TAR" && break
13053 for ac_prog in ps2pdf
13055 # Extract the first word of "$ac_prog", so it can be a program name with args.
13056 set dummy $ac_prog; ac_word=$2
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13058 $as_echo_n "checking for $ac_word... " >&6; }
13059 if ${ac_cv_path_PS2PDF+:} false; then :
13060 $as_echo_n "(cached) " >&6
13064 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
13067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13068 for as_dir in $PATH
13071 test -z "$as_dir" && as_dir=.
13072 for ac_exec_ext in '' $ac_executable_extensions; do
13073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13074 ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
13075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13085 PS2PDF=$ac_cv_path_PS2PDF
13086 if test -n "$PS2PDF"; then
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS2PDF" >&5
13088 $as_echo "$PS2PDF" >&6; }
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13091 $as_echo "no" >&6; }
13095 test -n "$PS2PDF" && break
13098 for ac_prog in dvips
13100 # Extract the first word of "$ac_prog", so it can be a program name with args.
13101 set dummy $ac_prog; ac_word=$2
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13103 $as_echo_n "checking for $ac_word... " >&6; }
13104 if ${ac_cv_path_DVIPS+:} false; then :
13105 $as_echo_n "(cached) " >&6
13109 ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
13112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13113 for as_dir in $PATH
13116 test -z "$as_dir" && as_dir=.
13117 for ac_exec_ext in '' $ac_executable_extensions; do
13118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13119 ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext"
13120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13130 DVIPS=$ac_cv_path_DVIPS
13131 if test -n "$DVIPS"; then
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
13133 $as_echo "$DVIPS" >&6; }
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13136 $as_echo "no" >&6; }
13140 test -n "$DVIPS" && break
13143 for ac_prog in latex2html
13145 # Extract the first word of "$ac_prog", so it can be a program name with args.
13146 set dummy $ac_prog; ac_word=$2
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13148 $as_echo_n "checking for $ac_word... " >&6; }
13149 if ${ac_cv_path_LATEX2HTML+:} false; then :
13150 $as_echo_n "(cached) " >&6
13152 case $LATEX2HTML in
13154 ac_cv_path_LATEX2HTML="$LATEX2HTML" # Let the user override the test with a path.
13157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13158 for as_dir in $PATH
13161 test -z "$as_dir" && as_dir=.
13162 for ac_exec_ext in '' $ac_executable_extensions; do
13163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13164 ac_cv_path_LATEX2HTML="$as_dir/$ac_word$ac_exec_ext"
13165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13175 LATEX2HTML=$ac_cv_path_LATEX2HTML
13176 if test -n "$LATEX2HTML"; then
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX2HTML" >&5
13178 $as_echo "$LATEX2HTML" >&6; }
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13181 $as_echo "no" >&6; }
13185 test -n "$LATEX2HTML" && break
13188 for ac_prog in latex
13190 # Extract the first word of "$ac_prog", so it can be a program name with args.
13191 set dummy $ac_prog; ac_word=$2
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13193 $as_echo_n "checking for $ac_word... " >&6; }
13194 if ${ac_cv_path_LATEX+:} false; then :
13195 $as_echo_n "(cached) " >&6
13199 ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
13202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13203 for as_dir in $PATH
13206 test -z "$as_dir" && as_dir=.
13207 for ac_exec_ext in '' $ac_executable_extensions; do
13208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13209 ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext"
13210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13220 LATEX=$ac_cv_path_LATEX
13221 if test -n "$LATEX"; then
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
13223 $as_echo "$LATEX" >&6; }
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226 $as_echo "no" >&6; }
13230 test -n "$LATEX" && break
13233 if test "${enable_docs_gen}" = "yes"; then
13234 test -z "${TAR}" && as_fn_error $? "Couldn't find tar" "$LINENO" 5
13235 test -z "${PS2PDF}" && as_fn_error $? "Couldn't find ps2pdf" "$LINENO" 5
13236 test -z "${DVIPS}" && as_fn_error $? "Couldn't find dvips" "$LINENO" 5
13237 test -z "${LATEX2HTML}" && as_fn_error $? "Couldn't find latex2html" "$LINENO" 5
13238 test -z "${LATEX}" && as_fn_error $? "Couldn't find latex" "$LINENO" 5
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
13242 $as_echo_n "checking for library containing strerror... " >&6; }
13243 if ${ac_cv_search_strerror+:} false; then :
13244 $as_echo_n "(cached) " >&6
13246 ac_func_search_save_LIBS=$LIBS
13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h. */
13250 /* Override any GCC internal prototype to avoid an error.
13251 Use char because int might match the return type of a GCC
13252 builtin and then its argument prototype would still apply. */
13260 return strerror ();
13265 for ac_lib in '' cposix; do
13266 if test -z "$ac_lib"; then
13267 ac_res="none required"
13270 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13272 if ac_fn_c_try_link "$LINENO"; then :
13273 ac_cv_search_strerror=$ac_res
13275 rm -f core conftest.err conftest.$ac_objext \
13277 if ${ac_cv_search_strerror+:} false; then :
13281 if ${ac_cv_search_strerror+:} false; then :
13284 ac_cv_search_strerror=no
13286 rm conftest.$ac_ext
13287 LIBS=$ac_func_search_save_LIBS
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
13290 $as_echo "$ac_cv_search_strerror" >&6; }
13291 ac_res=$ac_cv_search_strerror
13292 if test "$ac_res" != no; then :
13293 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13298 $as_echo_n "checking for ANSI C header files... " >&6; }
13299 if ${ac_cv_header_stdc+:} false; then :
13300 $as_echo_n "(cached) " >&6
13302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13303 /* end confdefs.h. */
13304 #include <stdlib.h>
13305 #include <stdarg.h>
13306 #include <string.h>
13317 if ac_fn_c_try_compile "$LINENO"; then :
13318 ac_cv_header_stdc=yes
13320 ac_cv_header_stdc=no
13322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13324 if test $ac_cv_header_stdc = yes; then
13325 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13327 /* end confdefs.h. */
13328 #include <string.h>
13331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13332 $EGREP "memchr" >/dev/null 2>&1; then :
13335 ac_cv_header_stdc=no
13341 if test $ac_cv_header_stdc = yes; then
13342 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13344 /* end confdefs.h. */
13345 #include <stdlib.h>
13348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13349 $EGREP "free" >/dev/null 2>&1; then :
13352 ac_cv_header_stdc=no
13358 if test $ac_cv_header_stdc = yes; then
13359 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13360 if test "$cross_compiling" = yes; then :
13363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13364 /* end confdefs.h. */
13366 #include <stdlib.h>
13367 #if ((' ' & 0x0FF) == 0x020)
13368 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13369 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13371 # define ISLOWER(c) \
13372 (('a' <= (c) && (c) <= 'i') \
13373 || ('j' <= (c) && (c) <= 'r') \
13374 || ('s' <= (c) && (c) <= 'z'))
13375 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13378 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13383 for (i = 0; i < 256; i++)
13384 if (XOR (islower (i), ISLOWER (i))
13385 || toupper (i) != TOUPPER (i))
13390 if ac_fn_c_try_run "$LINENO"; then :
13393 ac_cv_header_stdc=no
13395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13396 conftest.$ac_objext conftest.beam conftest.$ac_ext
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13402 $as_echo "$ac_cv_header_stdc" >&6; }
13403 if test $ac_cv_header_stdc = yes; then
13405 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13410 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13411 if ${ac_cv_lib_dl_dlopen+:} false; then :
13412 $as_echo_n "(cached) " >&6
13414 ac_check_lib_save_LIBS=$LIBS
13416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13417 /* end confdefs.h. */
13419 /* Override any GCC internal prototype to avoid an error.
13420 Use char because int might match the return type of a GCC
13421 builtin and then its argument prototype would still apply. */
13434 if ac_fn_c_try_link "$LINENO"; then :
13435 ac_cv_lib_dl_dlopen=yes
13437 ac_cv_lib_dl_dlopen=no
13439 rm -f core conftest.err conftest.$ac_objext \
13440 conftest$ac_exeext conftest.$ac_ext
13441 LIBS=$ac_check_lib_save_LIBS
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13444 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13445 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13446 cat >>confdefs.h <<_ACEOF
13447 #define HAVE_LIBDL 1
13455 # Verify keyutils version 1.0 or higher
13456 if test -z "${KEYUTILS_LIBS}"; then
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for keyctl_search in -lkeyutils" >&5
13460 $as_echo_n "checking for keyctl_search in -lkeyutils... " >&6; }
13461 if ${ac_cv_lib_keyutils_keyctl_search+:} false; then :
13462 $as_echo_n "(cached) " >&6
13464 ac_check_lib_save_LIBS=$LIBS
13465 LIBS="-lkeyutils $LIBS"
13466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13467 /* end confdefs.h. */
13469 /* Override any GCC internal prototype to avoid an error.
13470 Use char because int might match the return type of a GCC
13471 builtin and then its argument prototype would still apply. */
13475 char keyctl_search ();
13479 return keyctl_search ();
13484 if ac_fn_c_try_link "$LINENO"; then :
13485 ac_cv_lib_keyutils_keyctl_search=yes
13487 ac_cv_lib_keyutils_keyctl_search=no
13489 rm -f core conftest.err conftest.$ac_objext \
13490 conftest$ac_exeext conftest.$ac_ext
13491 LIBS=$ac_check_lib_save_LIBS
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_keyutils_keyctl_search" >&5
13494 $as_echo "$ac_cv_lib_keyutils_keyctl_search" >&6; }
13495 if test "x$ac_cv_lib_keyutils_keyctl_search" = xyes; then :
13496 KEYUTILS_LIBS="-lkeyutils"
13498 as_fn_error $? "eCryptfs userspace tools require Keyutils version 1.0 or higher.
13499 You might find the package at:
13500 http://people.redhat.com/~dhowells/keyutils/
13508 if test -z "${OPENSSL_LIBS}"; then
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
13512 $as_echo_n "checking for OPENSSL... " >&6; }
13514 if test -n "$OPENSSL_CFLAGS"; then
13515 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
13516 elif test -n "$PKG_CONFIG"; then
13517 if test -n "$PKG_CONFIG" && \
13518 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.7\""; } >&5
13519 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.7") 2>&5
13521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13522 test $ac_status = 0; }; then
13523 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 0.9.7" 2>/dev/null`
13524 test "x$?" != "x0" && pkg_failed=yes
13531 if test -n "$OPENSSL_LIBS"; then
13532 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
13533 elif test -n "$PKG_CONFIG"; then
13534 if test -n "$PKG_CONFIG" && \
13535 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.7\""; } >&5
13536 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.7") 2>&5
13538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13539 test $ac_status = 0; }; then
13540 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "libcrypto >= 0.9.7" 2>/dev/null`
13541 test "x$?" != "x0" && pkg_failed=yes
13551 if test $pkg_failed = yes; then
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13553 $as_echo "no" >&6; }
13555 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13556 _pkg_short_errors_supported=yes
13558 _pkg_short_errors_supported=no
13560 if test $_pkg_short_errors_supported = yes; then
13561 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 0.9.7" 2>&1`
13563 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 0.9.7" 2>&1`
13565 # Put the nasty error message in config.log where it belongs
13566 echo "$OPENSSL_PKG_ERRORS" >&5
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
13571 $as_echo_n "checking for OPENSSL... " >&6; }
13573 if test -n "$OPENSSL_CFLAGS"; then
13574 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
13575 elif test -n "$PKG_CONFIG"; then
13576 if test -n "$PKG_CONFIG" && \
13577 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
13578 ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
13580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13581 test $ac_status = 0; }; then
13582 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.9.7" 2>/dev/null`
13583 test "x$?" != "x0" && pkg_failed=yes
13590 if test -n "$OPENSSL_LIBS"; then
13591 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
13592 elif test -n "$PKG_CONFIG"; then
13593 if test -n "$PKG_CONFIG" && \
13594 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
13595 ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
13597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13598 test $ac_status = 0; }; then
13599 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 0.9.7" 2>/dev/null`
13600 test "x$?" != "x0" && pkg_failed=yes
13610 if test $pkg_failed = yes; then
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13612 $as_echo "no" >&6; }
13614 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13615 _pkg_short_errors_supported=yes
13617 _pkg_short_errors_supported=no
13619 if test $_pkg_short_errors_supported = yes; then
13620 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 0.9.7" 2>&1`
13622 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 0.9.7" 2>&1`
13624 # Put the nasty error message in config.log where it belongs
13625 echo "$OPENSSL_PKG_ERRORS" >&5
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_version in -lcrypto" >&5
13628 $as_echo_n "checking for RSA_version in -lcrypto... " >&6; }
13629 if ${ac_cv_lib_crypto_RSA_version+:} false; then :
13630 $as_echo_n "(cached) " >&6
13632 ac_check_lib_save_LIBS=$LIBS
13633 LIBS="-lcrypto $LIBS"
13634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635 /* end confdefs.h. */
13637 /* Override any GCC internal prototype to avoid an error.
13638 Use char because int might match the return type of a GCC
13639 builtin and then its argument prototype would still apply. */
13643 char RSA_version ();
13647 return RSA_version ();
13652 if ac_fn_c_try_link "$LINENO"; then :
13653 ac_cv_lib_crypto_RSA_version=yes
13655 ac_cv_lib_crypto_RSA_version=no
13657 rm -f core conftest.err conftest.$ac_objext \
13658 conftest$ac_exeext conftest.$ac_ext
13659 LIBS=$ac_check_lib_save_LIBS
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_version" >&5
13662 $as_echo "$ac_cv_lib_crypto_RSA_version" >&6; }
13663 if test "x$ac_cv_lib_crypto_RSA_version" = xyes; then :
13666 OPENSSL_LIBS="-lcrypto"
13674 elif test $pkg_failed = untried; then
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13676 $as_echo "no" >&6; }
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_version in -lcrypto" >&5
13678 $as_echo_n "checking for RSA_version in -lcrypto... " >&6; }
13679 if ${ac_cv_lib_crypto_RSA_version+:} false; then :
13680 $as_echo_n "(cached) " >&6
13682 ac_check_lib_save_LIBS=$LIBS
13683 LIBS="-lcrypto $LIBS"
13684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13685 /* end confdefs.h. */
13687 /* Override any GCC internal prototype to avoid an error.
13688 Use char because int might match the return type of a GCC
13689 builtin and then its argument prototype would still apply. */
13693 char RSA_version ();
13697 return RSA_version ();
13702 if ac_fn_c_try_link "$LINENO"; then :
13703 ac_cv_lib_crypto_RSA_version=yes
13705 ac_cv_lib_crypto_RSA_version=no
13707 rm -f core conftest.err conftest.$ac_objext \
13708 conftest$ac_exeext conftest.$ac_ext
13709 LIBS=$ac_check_lib_save_LIBS
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_version" >&5
13712 $as_echo "$ac_cv_lib_crypto_RSA_version" >&6; }
13713 if test "x$ac_cv_lib_crypto_RSA_version" = xyes; then :
13716 OPENSSL_LIBS="-lcrypto"
13725 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
13726 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13728 $as_echo "yes" >&6; }
13732 elif test $pkg_failed = untried; then
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13734 $as_echo "no" >&6; }
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
13738 $as_echo_n "checking for OPENSSL... " >&6; }
13740 if test -n "$OPENSSL_CFLAGS"; then
13741 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
13742 elif test -n "$PKG_CONFIG"; then
13743 if test -n "$PKG_CONFIG" && \
13744 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
13745 ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
13747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13748 test $ac_status = 0; }; then
13749 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.9.7" 2>/dev/null`
13750 test "x$?" != "x0" && pkg_failed=yes
13757 if test -n "$OPENSSL_LIBS"; then
13758 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
13759 elif test -n "$PKG_CONFIG"; then
13760 if test -n "$PKG_CONFIG" && \
13761 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
13762 ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
13764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13765 test $ac_status = 0; }; then
13766 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 0.9.7" 2>/dev/null`
13767 test "x$?" != "x0" && pkg_failed=yes
13777 if test $pkg_failed = yes; then
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13779 $as_echo "no" >&6; }
13781 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13782 _pkg_short_errors_supported=yes
13784 _pkg_short_errors_supported=no
13786 if test $_pkg_short_errors_supported = yes; then
13787 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 0.9.7" 2>&1`
13789 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 0.9.7" 2>&1`
13791 # Put the nasty error message in config.log where it belongs
13792 echo "$OPENSSL_PKG_ERRORS" >&5
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_version in -lcrypto" >&5
13795 $as_echo_n "checking for RSA_version in -lcrypto... " >&6; }
13796 if ${ac_cv_lib_crypto_RSA_version+:} false; then :
13797 $as_echo_n "(cached) " >&6
13799 ac_check_lib_save_LIBS=$LIBS
13800 LIBS="-lcrypto $LIBS"
13801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13802 /* end confdefs.h. */
13804 /* Override any GCC internal prototype to avoid an error.
13805 Use char because int might match the return type of a GCC
13806 builtin and then its argument prototype would still apply. */
13810 char RSA_version ();
13814 return RSA_version ();
13819 if ac_fn_c_try_link "$LINENO"; then :
13820 ac_cv_lib_crypto_RSA_version=yes
13822 ac_cv_lib_crypto_RSA_version=no
13824 rm -f core conftest.err conftest.$ac_objext \
13825 conftest$ac_exeext conftest.$ac_ext
13826 LIBS=$ac_check_lib_save_LIBS
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_version" >&5
13829 $as_echo "$ac_cv_lib_crypto_RSA_version" >&6; }
13830 if test "x$ac_cv_lib_crypto_RSA_version" = xyes; then :
13833 OPENSSL_LIBS="-lcrypto"
13841 elif test $pkg_failed = untried; then
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13843 $as_echo "no" >&6; }
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_version in -lcrypto" >&5
13845 $as_echo_n "checking for RSA_version in -lcrypto... " >&6; }
13846 if ${ac_cv_lib_crypto_RSA_version+:} false; then :
13847 $as_echo_n "(cached) " >&6
13849 ac_check_lib_save_LIBS=$LIBS
13850 LIBS="-lcrypto $LIBS"
13851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h. */
13854 /* Override any GCC internal prototype to avoid an error.
13855 Use char because int might match the return type of a GCC
13856 builtin and then its argument prototype would still apply. */
13860 char RSA_version ();
13864 return RSA_version ();
13869 if ac_fn_c_try_link "$LINENO"; then :
13870 ac_cv_lib_crypto_RSA_version=yes
13872 ac_cv_lib_crypto_RSA_version=no
13874 rm -f core conftest.err conftest.$ac_objext \
13875 conftest$ac_exeext conftest.$ac_ext
13876 LIBS=$ac_check_lib_save_LIBS
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_version" >&5
13879 $as_echo "$ac_cv_lib_crypto_RSA_version" >&6; }
13880 if test "x$ac_cv_lib_crypto_RSA_version" = xyes; then :
13883 OPENSSL_LIBS="-lcrypto"
13892 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
13893 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13895 $as_echo "yes" >&6; }
13900 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
13901 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13903 $as_echo "yes" >&6; }
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
13914 $as_echo_n "checking for NSS... " >&6; }
13916 if test -n "$NSS_CFLAGS"; then
13917 pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
13918 elif test -n "$PKG_CONFIG"; then
13919 if test -n "$PKG_CONFIG" && \
13920 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
13921 ($PKG_CONFIG --exists --print-errors "nss") 2>&5
13923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13924 test $ac_status = 0; }; then
13925 pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null`
13926 test "x$?" != "x0" && pkg_failed=yes
13933 if test -n "$NSS_LIBS"; then
13934 pkg_cv_NSS_LIBS="$NSS_LIBS"
13935 elif test -n "$PKG_CONFIG"; then
13936 if test -n "$PKG_CONFIG" && \
13937 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
13938 ($PKG_CONFIG --exists --print-errors "nss") 2>&5
13940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13941 test $ac_status = 0; }; then
13942 pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null`
13943 test "x$?" != "x0" && pkg_failed=yes
13953 if test $pkg_failed = yes; then
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13955 $as_echo "no" >&6; }
13957 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13958 _pkg_short_errors_supported=yes
13960 _pkg_short_errors_supported=no
13962 if test $_pkg_short_errors_supported = yes; then
13963 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss" 2>&1`
13965 NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss" 2>&1`
13967 # Put the nasty error message in config.log where it belongs
13968 echo "$NSS_PKG_ERRORS" >&5
13971 elif test $pkg_failed = untried; then
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13973 $as_echo "no" >&6; }
13976 NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
13977 NSS_LIBS=$pkg_cv_NSS_LIBS
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13979 $as_echo "yes" >&6; }
13981 NSS_CFLAGS="${NSS_CFLAGS} -DENABLE_NSS"
13984 if test "${enable_nss}" = "detect" ; then
13985 if test "$have_nss" == "yes" ; then
13992 OLD_CFLAGS="${CFLAGS}"
13993 CFLAGS="${CFLAGS} ${OPENSSL_CFLAGS}"
13994 ac_fn_c_check_header_mongrel "$LINENO" "openssl/rsa.h" "ac_cv_header_openssl_rsa_h" "$ac_includes_default"
13995 if test "x$ac_cv_header_openssl_rsa_h" = xyes; then :
14002 CFLAGS="${OLD_CFLAGS}"
14004 if test "${enable_pywrap}" != "no" ; then
14011 if test -n "$PYTHON"; then
14012 # If the user set $PYTHON, use it and don't search something else.
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
14014 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
14016 # split strings by '.' and convert to numeric. Append some zeros
14017 # because we need at least 4 digits for the hex conversion.
14018 # map returns an iterator in Python 3.0 and a list in 2.x
14019 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
14021 # xrange is not present in Python 3.0 and range returns an iterator
14022 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
14023 sys.exit(sys.hexversion < minverhex)"
14024 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
14025 ($PYTHON -c "$prog") >&5 2>&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); }; then :
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14030 $as_echo "yes" >&6; }
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14033 $as_echo "no" >&6; }
14034 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
14036 am_display_PYTHON=$PYTHON
14038 # Otherwise, try each interpreter until we find one that satisfies
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
14041 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
14042 if ${am_cv_pathless_PYTHON+:} false; then :
14043 $as_echo_n "(cached) " >&6
14046 for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
14047 test "$am_cv_pathless_PYTHON" = none && break
14049 # split strings by '.' and convert to numeric. Append some zeros
14050 # because we need at least 4 digits for the hex conversion.
14051 # map returns an iterator in Python 3.0 and a list in 2.x
14052 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
14054 # xrange is not present in Python 3.0 and range returns an iterator
14055 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
14056 sys.exit(sys.hexversion < minverhex)"
14057 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
14058 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; then :
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
14067 $as_echo "$am_cv_pathless_PYTHON" >&6; }
14068 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
14069 if test "$am_cv_pathless_PYTHON" = none; then
14072 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
14073 set dummy $am_cv_pathless_PYTHON; ac_word=$2
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14075 $as_echo_n "checking for $ac_word... " >&6; }
14076 if ${ac_cv_path_PYTHON+:} false; then :
14077 $as_echo_n "(cached) " >&6
14081 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14085 for as_dir in $PATH
14088 test -z "$as_dir" && as_dir=.
14089 for ac_exec_ext in '' $ac_executable_extensions; do
14090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14091 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14102 PYTHON=$ac_cv_path_PYTHON
14103 if test -n "$PYTHON"; then
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14105 $as_echo "$PYTHON" >&6; }
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14108 $as_echo "no" >&6; }
14113 am_display_PYTHON=$am_cv_pathless_PYTHON
14117 if test "$PYTHON" = :; then
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
14123 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
14124 if ${am_cv_python_version+:} false; then :
14125 $as_echo_n "(cached) " >&6
14127 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
14130 $as_echo "$am_cv_python_version" >&6; }
14131 PYTHON_VERSION=$am_cv_python_version
14135 PYTHON_PREFIX='${prefix}'
14137 PYTHON_EXEC_PREFIX='${exec_prefix}'
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
14142 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
14143 if ${am_cv_python_platform+:} false; then :
14144 $as_echo_n "(cached) " >&6
14146 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
14149 $as_echo "$am_cv_python_platform" >&6; }
14150 PYTHON_PLATFORM=$am_cv_python_platform
14153 # Just factor out some code duplication.
14154 am_python_setup_sysconfig="\
14156 # Prefer sysconfig over distutils.sysconfig, for better compatibility
14157 # with python 3.x. See automake bug#10227.
14160 except ImportError:
14161 can_use_sysconfig = 0
14163 can_use_sysconfig = 1
14164 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
14165 # <https://github.com/pypa/virtualenv/issues/118>
14167 from platform import python_implementation
14168 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
14169 can_use_sysconfig = 0
14170 except ImportError:
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
14175 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
14176 if ${am_cv_python_pythondir+:} false; then :
14177 $as_echo_n "(cached) " >&6
14179 if test "x$prefix" = xNONE
14181 am_py_prefix=$ac_default_prefix
14183 am_py_prefix=$prefix
14185 am_cv_python_pythondir=`$PYTHON -c "
14186 $am_python_setup_sysconfig
14187 if can_use_sysconfig:
14188 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
14190 from distutils import sysconfig
14191 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
14192 sys.stdout.write(sitedir)"`
14193 case $am_cv_python_pythondir in
14195 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
14196 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
14199 case $am_py_prefix in
14202 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
14210 $as_echo "$am_cv_python_pythondir" >&6; }
14211 pythondir=$am_cv_python_pythondir
14215 pkgpythondir=\${pythondir}/$PACKAGE
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
14219 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
14220 if ${am_cv_python_pyexecdir+:} false; then :
14221 $as_echo_n "(cached) " >&6
14223 if test "x$exec_prefix" = xNONE
14225 am_py_exec_prefix=$am_py_prefix
14227 am_py_exec_prefix=$exec_prefix
14229 am_cv_python_pyexecdir=`$PYTHON -c "
14230 $am_python_setup_sysconfig
14231 if can_use_sysconfig:
14232 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
14234 from distutils import sysconfig
14235 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
14236 sys.stdout.write(sitedir)"`
14237 case $am_cv_python_pyexecdir in
14238 $am_py_exec_prefix*)
14239 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
14240 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
14243 case $am_py_exec_prefix in
14246 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
14254 $as_echo "$am_cv_python_pyexecdir" >&6; }
14255 pyexecdir=$am_cv_python_pyexecdir
14259 pkgpyexecdir=\${pyexecdir}/$PACKAGE
14267 # Extract the first word of "swig", so it can be a program name with args.
14268 set dummy swig; ac_word=$2
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14270 $as_echo_n "checking for $ac_word... " >&6; }
14271 if ${ac_cv_path_SWIG+:} false; then :
14272 $as_echo_n "(cached) " >&6
14276 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
14279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14280 for as_dir in $PATH
14283 test -z "$as_dir" && as_dir=.
14284 for ac_exec_ext in '' $ac_executable_extensions; do
14285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14286 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
14287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14297 SWIG=$ac_cv_path_SWIG
14298 if test -n "$SWIG"; then
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
14300 $as_echo "$SWIG" >&6; }
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14303 $as_echo "no" >&6; }
14307 if test -z "$SWIG" ; then
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
14309 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
14310 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
14311 elif test -n "1.3.31" ; then
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
14313 $as_echo_n "checking for SWIG version... " >&6; }
14314 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
14316 $as_echo "$swig_version" >&6; }
14317 if test -n "$swig_version" ; then
14318 # Calculate the required version number components
14320 required_major=`echo $required | sed 's/[^0-9].*//'`
14321 if test -z "$required_major" ; then
14324 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
14325 required_minor=`echo $required | sed 's/[^0-9].*//'`
14326 if test -z "$required_minor" ; then
14329 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
14330 required_patch=`echo $required | sed 's/[^0-9].*//'`
14331 if test -z "$required_patch" ; then
14334 # Calculate the available version number components
14335 available=$swig_version
14336 available_major=`echo $available | sed 's/[^0-9].*//'`
14337 if test -z "$available_major" ; then
14340 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
14341 available_minor=`echo $available | sed 's/[^0-9].*//'`
14342 if test -z "$available_minor" ; then
14345 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
14346 available_patch=`echo $available | sed 's/[^0-9].*//'`
14347 if test -z "$available_patch" ; then
14350 if test $available_major -ne $required_major \
14351 -o $available_minor -ne $required_minor \
14352 -o $available_patch -lt $required_patch ; then
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 1.3.31 is required. You have $swig_version. You should look at http://www.swig.org" >&5
14354 $as_echo "$as_me: WARNING: SWIG version >= 1.3.31 is required. You have $swig_version. You should look at http://www.swig.org" >&2;}
14355 SWIG='echo "Error: SWIG version >= 1.3.31 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
14358 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
14359 SWIG_LIB=`$SWIG -swiglib`
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
14361 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
14365 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
14366 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
14373 # Allow the use of a (user set) custom python version
14377 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
14378 set dummy python$PYTHON_VERSION; ac_word=$2
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14380 $as_echo_n "checking for $ac_word... " >&6; }
14381 if ${ac_cv_path_PYTHON+:} false; then :
14382 $as_echo_n "(cached) " >&6
14386 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14390 for as_dir in $PATH
14393 test -z "$as_dir" && as_dir=.
14394 for ac_exec_ext in '' $ac_executable_extensions; do
14395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14396 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14407 PYTHON=$ac_cv_path_PYTHON
14408 if test -n "$PYTHON"; then
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14410 $as_echo "$PYTHON" >&6; }
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14413 $as_echo "no" >&6; }
14417 if test -z "$PYTHON"; then
14418 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
14423 # Check for a version of Python >= 2.1.0
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
14426 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
14427 ac_supports_python_ver=`$PYTHON -c "import sys, string; \
14428 ver = string.split(sys.version)[0]; \
14429 print ver >= '2.1.0'"`
14430 if test "$ac_supports_python_ver" != "True"; then
14431 if test -z "$PYTHON_NOVERSIONCHECK"; then
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14433 $as_echo "no" >&6; }
14434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14437 This version of the AC_PYTHON_DEVEL macro
14438 doesn't work properly with versions of Python before
14439 2.1.0. You may need to re-run configure, setting the
14440 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
14441 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
14442 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
14443 to something else than an empty string.
14445 See \`config.log' for more details" "$LINENO" 5; }
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
14448 $as_echo "skip at user request" >&6; }
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14452 $as_echo "yes" >&6; }
14456 # if the macro parameter ``version'' is set, honour it
14458 if test -n ""; then
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
14460 $as_echo_n "checking for a version of Python ... " >&6; }
14461 ac_supports_python_ver=`$PYTHON -c "import sys, string; \
14462 ver = string.split(sys.version)[0]; \
14464 if test "$ac_supports_python_ver" = "True"; then
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14466 $as_echo "yes" >&6; }
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14469 $as_echo "no" >&6; }
14470 as_fn_error $? "this package requires Python .
14471 If you have it installed, but it isn't the default Python
14472 interpreter in your system path, please pass the PYTHON_VERSION
14473 variable to configure. See \`\`configure --help'' for reference.
14480 # Check if you have distutils, else fail
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
14483 $as_echo_n "checking for the distutils Python package... " >&6; }
14484 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
14485 if test -z "$ac_distutils_result"; then
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14487 $as_echo "yes" >&6; }
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14490 $as_echo "no" >&6; }
14491 as_fn_error $? "cannot import Python module \"distutils\".
14492 Please check your Python installation. The error was:
14493 $ac_distutils_result" "$LINENO" 5
14498 # Check for Python include path
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
14501 $as_echo_n "checking for Python include path... " >&6; }
14502 if test -z "$PYTHON_CPPFLAGS"; then
14503 python_path=`$PYTHON -c "import distutils.sysconfig; \
14504 print distutils.sysconfig.get_python_inc();"`
14505 if test -n "${python_path}"; then
14506 python_path="-I$python_path"
14508 python_plat_path=`$PYTHON -c "import distutils.sysconfig; \
14509 print distutils.sysconfig.get_python_inc(plat_specific=True);"`
14510 if test -n "${python_plat_path}"; then
14511 python_plat_path="-I$python_plat_path"
14513 PYTHON_CPPFLAGS="$python_path $python_plat_path"
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
14516 $as_echo "$PYTHON_CPPFLAGS" >&6; }
14520 # Check for Python library path
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
14523 $as_echo_n "checking for Python library path... " >&6; }
14524 if test -z "$PYTHON_LDFLAGS"; then
14525 # (makes two attempts to ensure we've got a version number
14526 # from the interpreter)
14527 py_version=`$PYTHON -c "from distutils.sysconfig import *; \
14528 from string import join; \
14529 print join(get_config_vars('VERSION'))"`
14530 if test "$py_version" == "None"; then
14531 if test -n "$PYTHON_VERSION"; then
14532 py_version=$PYTHON_VERSION
14534 py_version=`$PYTHON -c "import sys; \
14535 print sys.version[:3]"`
14539 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
14540 from string import join; \
14541 print '-L' + get_python_lib(0,1), \
14542 '-lpython';"`$py_version
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
14545 $as_echo "$PYTHON_LDFLAGS" >&6; }
14549 # Check for site packages
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
14552 $as_echo_n "checking for Python site-packages path... " >&6; }
14553 if test -z "$PYTHON_SITE_PKG"; then
14554 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
14555 print distutils.sysconfig.get_python_lib(0,0);"`
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
14558 $as_echo "$PYTHON_SITE_PKG" >&6; }
14562 # libraries which must be linked in when embedding
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
14565 $as_echo_n "checking python extra libraries... " >&6; }
14566 if test -z "$PYTHON_EXTRA_LIBS"; then
14567 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
14568 conf = distutils.sysconfig.get_config_var; \
14569 print conf('LOCALMODLIBS'), conf('LIBS')"`
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
14572 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
14576 # linking flags needed when embedding
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
14579 $as_echo_n "checking python extra linking flags... " >&6; }
14580 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
14581 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
14582 conf = distutils.sysconfig.get_config_var; \
14583 print conf('LINKFORSHARED')"`
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
14586 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
14590 # final check to see if everything compiles alright
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
14593 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
14595 ac_cpp='$CPP $CPPFLAGS'
14596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14600 # save current global flags
14601 ac_save_LIBS="$LIBS"
14602 ac_save_CPPFLAGS="$CPPFLAGS"
14603 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS"
14604 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
14605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14606 /* end confdefs.h. */
14608 #include <Python.h>
14620 if ac_fn_c_try_link "$LINENO"; then :
14625 rm -f core conftest.err conftest.$ac_objext \
14626 conftest$ac_exeext conftest.$ac_ext
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
14629 $as_echo "$pythonexists" >&6; }
14631 if test ! "$pythonexists" = "yes"; then
14635 ac_cpp='$CPP $CPPFLAGS'
14636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14640 # turn back to default flags
14641 CPPFLAGS="$ac_save_CPPFLAGS"
14642 LIBS="$ac_save_LIBS"
14651 test "x" != "xno" || swig_shadow=" -noproxy"
14652 SWIG_PYTHON_OPT=-python$swig_shadow
14654 SWIG_PYTHON_CPPFLAGS=$PYTHON_CPPFLAGS
14659 if test "x${SWIG}" != "x" ; then
14665 if test "${enable_pywrap}" = "detect" ; then
14666 if test "${have_python}" = "yes" ; then
14667 if test "${have_swig}" = "yes" ; then
14668 enable_pywrap="yes"
14673 if test "${enable_pywrap}" = "yes" ; then
14674 test "${have_python}" != "yes" && as_fn_error $? "Python not found" "$LINENO" 5
14675 test "${have_swig}" != "yes" && as_fn_error $? "SWIG not found" "$LINENO" 5
14678 test "${enable_openssl}" = "detect" && enable_openssl="${have_openssl}"
14680 if test "${enable_openssl}" = "yes" ; then
14681 test "${have_openssl}" != "yes" && as_fn_error $? "OpenSSL not found" "$LINENO" 5
14684 if test "${enable_pkcs11_helper}" = "yes" ; then
14685 test "${have_openssl}" != "yes" && as_fn_error $? "OpenSSL not found" "$LINENO" 5
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11_HELPER" >&5
14689 $as_echo_n "checking for PKCS11_HELPER... " >&6; }
14691 if test -n "$PKCS11_HELPER_CFLAGS"; then
14692 pkg_cv_PKCS11_HELPER_CFLAGS="$PKCS11_HELPER_CFLAGS"
14693 elif test -n "$PKG_CONFIG"; then
14694 if test -n "$PKG_CONFIG" && \
14695 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.04\""; } >&5
14696 ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.04") 2>&5
14698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14699 test $ac_status = 0; }; then
14700 pkg_cv_PKCS11_HELPER_CFLAGS=`$PKG_CONFIG --cflags "libpkcs11-helper-1 >= 1.04" 2>/dev/null`
14701 test "x$?" != "x0" && pkg_failed=yes
14708 if test -n "$PKCS11_HELPER_LIBS"; then
14709 pkg_cv_PKCS11_HELPER_LIBS="$PKCS11_HELPER_LIBS"
14710 elif test -n "$PKG_CONFIG"; then
14711 if test -n "$PKG_CONFIG" && \
14712 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.04\""; } >&5
14713 ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.04") 2>&5
14715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14716 test $ac_status = 0; }; then
14717 pkg_cv_PKCS11_HELPER_LIBS=`$PKG_CONFIG --libs "libpkcs11-helper-1 >= 1.04" 2>/dev/null`
14718 test "x$?" != "x0" && pkg_failed=yes
14728 if test $pkg_failed = yes; then
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14730 $as_echo "no" >&6; }
14732 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14733 _pkg_short_errors_supported=yes
14735 _pkg_short_errors_supported=no
14737 if test $_pkg_short_errors_supported = yes; then
14738 PKCS11_HELPER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.04" 2>&1`
14740 PKCS11_HELPER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.04" 2>&1`
14742 # Put the nasty error message in config.log where it belongs
14743 echo "$PKCS11_HELPER_PKG_ERRORS" >&5
14745 as_fn_error $? "Cannot locate pkcs11-helper" "$LINENO" 5
14746 elif test $pkg_failed = untried; then
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14748 $as_echo "no" >&6; }
14749 as_fn_error $? "Cannot locate pkcs11-helper" "$LINENO" 5
14751 PKCS11_HELPER_CFLAGS=$pkg_cv_PKCS11_HELPER_CFLAGS
14752 PKCS11_HELPER_LIBS=$pkg_cv_PKCS11_HELPER_LIBS
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14754 $as_echo "yes" >&6; }
14759 if test "${enable_tspi}" = "yes" ; then
14760 if test -z "${TSPI_LIBS}"; then
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tspi_Context_Create in -ltspi" >&5
14764 $as_echo_n "checking for Tspi_Context_Create in -ltspi... " >&6; }
14765 if ${ac_cv_lib_tspi_Tspi_Context_Create+:} false; then :
14766 $as_echo_n "(cached) " >&6
14768 ac_check_lib_save_LIBS=$LIBS
14769 LIBS="-ltspi $LIBS"
14770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14771 /* end confdefs.h. */
14773 /* Override any GCC internal prototype to avoid an error.
14774 Use char because int might match the return type of a GCC
14775 builtin and then its argument prototype would still apply. */
14779 char Tspi_Context_Create ();
14783 return Tspi_Context_Create ();
14788 if ac_fn_c_try_link "$LINENO"; then :
14789 ac_cv_lib_tspi_Tspi_Context_Create=yes
14791 ac_cv_lib_tspi_Tspi_Context_Create=no
14793 rm -f core conftest.err conftest.$ac_objext \
14794 conftest$ac_exeext conftest.$ac_ext
14795 LIBS=$ac_check_lib_save_LIBS
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tspi_Tspi_Context_Create" >&5
14798 $as_echo "$ac_cv_lib_tspi_Tspi_Context_Create" >&6; }
14799 if test "x$ac_cv_lib_tspi_Tspi_Context_Create" = xyes; then :
14802 as_fn_error $? "Cannot find tspi" "$LINENO" 5
14809 if test "${enable_gpg}" = "yes" ; then
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpgme" >&5
14811 $as_echo_n "checking for gpgme... " >&6; }
14812 if ! test -x "${with_gpgme_prefix}/bin/gpgme-config"; then
14813 as_fn_error $? "Cannot locate gpgme" "$LINENO" 5
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14816 $as_echo "found" >&6; }
14817 GPGME_CFLAGS="`\"${with_gpgme_prefix}/bin/gpgme-config\" --cflags`"
14818 GPGME_LIBS="`\"${with_gpgme_prefix}/bin/gpgme-config\" --libs`"
14822 if test "${enable_pam}" = "yes" ; then
14823 if test -z "${PAM_LIBS}"; then
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_authenticate in -lpam" >&5
14827 $as_echo_n "checking for pam_authenticate in -lpam... " >&6; }
14828 if ${ac_cv_lib_pam_pam_authenticate+:} false; then :
14829 $as_echo_n "(cached) " >&6
14831 ac_check_lib_save_LIBS=$LIBS
14833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14834 /* end confdefs.h. */
14836 /* Override any GCC internal prototype to avoid an error.
14837 Use char because int might match the return type of a GCC
14838 builtin and then its argument prototype would still apply. */
14842 char pam_authenticate ();
14846 return pam_authenticate ();
14851 if ac_fn_c_try_link "$LINENO"; then :
14852 ac_cv_lib_pam_pam_authenticate=yes
14854 ac_cv_lib_pam_pam_authenticate=no
14856 rm -f core conftest.err conftest.$ac_objext \
14857 conftest$ac_exeext conftest.$ac_ext
14858 LIBS=$ac_check_lib_save_LIBS
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_authenticate" >&5
14861 $as_echo "$ac_cv_lib_pam_pam_authenticate" >&6; }
14862 if test "x$ac_cv_lib_pam_pam_authenticate" = xyes; then :
14865 as_fn_error $? "Cannot find pam" "$LINENO" 5
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_misc_setenv in -lpam_misc" >&5
14870 $as_echo_n "checking for pam_misc_setenv in -lpam_misc... " >&6; }
14871 if ${ac_cv_lib_pam_misc_pam_misc_setenv+:} false; then :
14872 $as_echo_n "(cached) " >&6
14874 ac_check_lib_save_LIBS=$LIBS
14875 LIBS="-lpam_misc $LIBS"
14876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14877 /* end confdefs.h. */
14879 /* Override any GCC internal prototype to avoid an error.
14880 Use char because int might match the return type of a GCC
14881 builtin and then its argument prototype would still apply. */
14885 char pam_misc_setenv ();
14889 return pam_misc_setenv ();
14894 if ac_fn_c_try_link "$LINENO"; then :
14895 ac_cv_lib_pam_misc_pam_misc_setenv=yes
14897 ac_cv_lib_pam_misc_pam_misc_setenv=no
14899 rm -f core conftest.err conftest.$ac_objext \
14900 conftest$ac_exeext conftest.$ac_ext
14901 LIBS=$ac_check_lib_save_LIBS
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_misc_pam_misc_setenv" >&5
14904 $as_echo "$ac_cv_lib_pam_misc_pam_misc_setenv" >&6; }
14905 if test "x$ac_cv_lib_pam_misc_pam_misc_setenv" = xyes; then :
14906 PAM_LIBS="${PAM_LIBS} ${TSPI_LIBS} -lpam_misc"
14908 as_fn_error $? "Cannot find pam_misc" "$LINENO" 5
14915 if test "${enable_gui}" = "yes"; then
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
14919 $as_echo_n "checking for GTK... " >&6; }
14921 if test -n "$GTK_CFLAGS"; then
14922 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
14923 elif test -n "$PKG_CONFIG"; then
14924 if test -n "$PKG_CONFIG" && \
14925 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.0\""; } >&5
14926 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.0") 2>&5
14928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14929 test $ac_status = 0; }; then
14930 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.0" 2>/dev/null`
14931 test "x$?" != "x0" && pkg_failed=yes
14938 if test -n "$GTK_LIBS"; then
14939 pkg_cv_GTK_LIBS="$GTK_LIBS"
14940 elif test -n "$PKG_CONFIG"; then
14941 if test -n "$PKG_CONFIG" && \
14942 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.0\""; } >&5
14943 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.0") 2>&5
14945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14946 test $ac_status = 0; }; then
14947 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.0" 2>/dev/null`
14948 test "x$?" != "x0" && pkg_failed=yes
14958 if test $pkg_failed = yes; then
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14960 $as_echo "no" >&6; }
14962 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14963 _pkg_short_errors_supported=yes
14965 _pkg_short_errors_supported=no
14967 if test $_pkg_short_errors_supported = yes; then
14968 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.0" 2>&1`
14970 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.0" 2>&1`
14972 # Put the nasty error message in config.log where it belongs
14973 echo "$GTK_PKG_ERRORS" >&5
14975 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
14976 GTK_LIBS linker flags for GTK, overriding pkg-config
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
14980 $as_echo_n "checking for GTK... " >&6; }
14982 if test -n "$GTK_CFLAGS"; then
14983 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
14984 elif test -n "$PKG_CONFIG"; then
14985 if test -n "$PKG_CONFIG" && \
14986 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+ >= 1.0\""; } >&5
14987 ($PKG_CONFIG --exists --print-errors "gtk+ >= 1.0") 2>&5
14989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14990 test $ac_status = 0; }; then
14991 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+ >= 1.0" 2>/dev/null`
14992 test "x$?" != "x0" && pkg_failed=yes
14999 if test -n "$GTK_LIBS"; then
15000 pkg_cv_GTK_LIBS="$GTK_LIBS"
15001 elif test -n "$PKG_CONFIG"; then
15002 if test -n "$PKG_CONFIG" && \
15003 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+ >= 1.0\""; } >&5
15004 ($PKG_CONFIG --exists --print-errors "gtk+ >= 1.0") 2>&5
15006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15007 test $ac_status = 0; }; then
15008 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+ >= 1.0" 2>/dev/null`
15009 test "x$?" != "x0" && pkg_failed=yes
15019 if test $pkg_failed = yes; then
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15021 $as_echo "no" >&6; }
15023 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15024 _pkg_short_errors_supported=yes
15026 _pkg_short_errors_supported=no
15028 if test $_pkg_short_errors_supported = yes; then
15029 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+ >= 1.0" 2>&1`
15031 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+ >= 1.0" 2>&1`
15033 # Put the nasty error message in config.log where it belongs
15034 echo "$GTK_PKG_ERRORS" >&5
15036 as_fn_error $? "Cannot locate gtk+" "$LINENO" 5
15038 elif test $pkg_failed = untried; then
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15040 $as_echo "no" >&6; }
15041 as_fn_error $? "Cannot locate gtk+" "$LINENO" 5
15044 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
15045 GTK_LIBS=$pkg_cv_GTK_LIBS
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15047 $as_echo "yes" >&6; }
15051 elif test $pkg_failed = untried; then
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15053 $as_echo "no" >&6; }
15054 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
15055 GTK_LIBS linker flags for GTK, overriding pkg-config
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
15059 $as_echo_n "checking for GTK... " >&6; }
15061 if test -n "$GTK_CFLAGS"; then
15062 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
15063 elif test -n "$PKG_CONFIG"; then
15064 if test -n "$PKG_CONFIG" && \
15065 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+ >= 1.0\""; } >&5
15066 ($PKG_CONFIG --exists --print-errors "gtk+ >= 1.0") 2>&5
15068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15069 test $ac_status = 0; }; then
15070 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+ >= 1.0" 2>/dev/null`
15071 test "x$?" != "x0" && pkg_failed=yes
15078 if test -n "$GTK_LIBS"; then
15079 pkg_cv_GTK_LIBS="$GTK_LIBS"
15080 elif test -n "$PKG_CONFIG"; then
15081 if test -n "$PKG_CONFIG" && \
15082 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+ >= 1.0\""; } >&5
15083 ($PKG_CONFIG --exists --print-errors "gtk+ >= 1.0") 2>&5
15085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15086 test $ac_status = 0; }; then
15087 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+ >= 1.0" 2>/dev/null`
15088 test "x$?" != "x0" && pkg_failed=yes
15098 if test $pkg_failed = yes; then
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15100 $as_echo "no" >&6; }
15102 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15103 _pkg_short_errors_supported=yes
15105 _pkg_short_errors_supported=no
15107 if test $_pkg_short_errors_supported = yes; then
15108 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+ >= 1.0" 2>&1`
15110 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+ >= 1.0" 2>&1`
15112 # Put the nasty error message in config.log where it belongs
15113 echo "$GTK_PKG_ERRORS" >&5
15115 as_fn_error $? "Cannot locate gtk+" "$LINENO" 5
15117 elif test $pkg_failed = untried; then
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15119 $as_echo "no" >&6; }
15120 as_fn_error $? "Cannot locate gtk+" "$LINENO" 5
15123 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
15124 GTK_LIBS=$pkg_cv_GTK_LIBS
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15126 $as_echo "yes" >&6; }
15131 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
15132 GTK_LIBS=$pkg_cv_GTK_LIBS
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15134 $as_echo "yes" >&6; }
15139 pkgconfigdir="\$(libdir)/pkgconfig"
15140 if test "${prefix}" = "/usr"; then
15141 rootsbindir="/sbin"
15143 rootsbindir="\$(sbindir)"
15146 GETTEXT_PACKAGE=ecryptfs-utils
15149 cat >>confdefs.h <<_ACEOF
15150 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
15155 for ac_header in locale.h
15157 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
15158 if test "x$ac_cv_header_locale_h" = xyes; then :
15159 cat >>confdefs.h <<_ACEOF
15160 #define HAVE_LOCALE_H 1
15167 if test $ac_cv_header_locale_h = yes; then
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15169 $as_echo_n "checking for LC_MESSAGES... " >&6; }
15170 if ${am_cv_val_LC_MESSAGES+:} false; then :
15171 $as_echo_n "(cached) " >&6
15173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15174 /* end confdefs.h. */
15175 #include <locale.h>
15184 if ac_fn_c_try_link "$LINENO"; then :
15185 am_cv_val_LC_MESSAGES=yes
15187 am_cv_val_LC_MESSAGES=no
15189 rm -f core conftest.err conftest.$ac_objext \
15190 conftest$ac_exeext conftest.$ac_ext
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
15193 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15194 if test $am_cv_val_LC_MESSAGES = yes; then
15196 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
15203 gt_cv_have_gettext=no
15209 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
15210 if test "x$ac_cv_header_libintl_h" = xyes; then :
15211 gt_cv_func_dgettext_libintl="no"
15212 libintl_extra_libs=""
15215 # First check in libc
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
15218 $as_echo_n "checking for ngettext in libc... " >&6; }
15219 if ${gt_cv_func_ngettext_libc+:} false; then :
15220 $as_echo_n "(cached) " >&6
15222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223 /* end confdefs.h. */
15225 #include <libintl.h>
15230 return !ngettext ("","", 1)
15235 if ac_fn_c_try_link "$LINENO"; then :
15236 gt_cv_func_ngettext_libc=yes
15238 gt_cv_func_ngettext_libc=no
15240 rm -f core conftest.err conftest.$ac_objext \
15241 conftest$ac_exeext conftest.$ac_ext
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
15245 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
15247 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
15249 $as_echo_n "checking for dgettext in libc... " >&6; }
15250 if ${gt_cv_func_dgettext_libc+:} false; then :
15251 $as_echo_n "(cached) " >&6
15253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15254 /* end confdefs.h. */
15256 #include <libintl.h>
15261 return !dgettext ("","")
15266 if ac_fn_c_try_link "$LINENO"; then :
15267 gt_cv_func_dgettext_libc=yes
15269 gt_cv_func_dgettext_libc=no
15271 rm -f core conftest.err conftest.$ac_objext \
15272 conftest$ac_exeext conftest.$ac_ext
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
15276 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
15279 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
15280 for ac_func in bind_textdomain_codeset
15282 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
15283 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
15284 cat >>confdefs.h <<_ACEOF
15285 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
15294 # If we don't have everything we want, check in libintl
15296 if test "$gt_cv_func_dgettext_libc" != "yes" \
15297 || test "$gt_cv_func_ngettext_libc" != "yes" \
15298 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
15301 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
15302 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
15303 $as_echo_n "(cached) " >&6
15305 ac_check_lib_save_LIBS=$LIBS
15306 LIBS="-lintl $LIBS"
15307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15308 /* end confdefs.h. */
15310 /* Override any GCC internal prototype to avoid an error.
15311 Use char because int might match the return type of a GCC
15312 builtin and then its argument prototype would still apply. */
15316 char bindtextdomain ();
15320 return bindtextdomain ();
15325 if ac_fn_c_try_link "$LINENO"; then :
15326 ac_cv_lib_intl_bindtextdomain=yes
15328 ac_cv_lib_intl_bindtextdomain=no
15330 rm -f core conftest.err conftest.$ac_objext \
15331 conftest$ac_exeext conftest.$ac_ext
15332 LIBS=$ac_check_lib_save_LIBS
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
15335 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
15336 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
15338 $as_echo_n "checking for ngettext in -lintl... " >&6; }
15339 if ${ac_cv_lib_intl_ngettext+:} false; then :
15340 $as_echo_n "(cached) " >&6
15342 ac_check_lib_save_LIBS=$LIBS
15343 LIBS="-lintl $LIBS"
15344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15345 /* end confdefs.h. */
15347 /* Override any GCC internal prototype to avoid an error.
15348 Use char because int might match the return type of a GCC
15349 builtin and then its argument prototype would still apply. */
15357 return ngettext ();
15362 if ac_fn_c_try_link "$LINENO"; then :
15363 ac_cv_lib_intl_ngettext=yes
15365 ac_cv_lib_intl_ngettext=no
15367 rm -f core conftest.err conftest.$ac_objext \
15368 conftest$ac_exeext conftest.$ac_ext
15369 LIBS=$ac_check_lib_save_LIBS
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
15372 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
15373 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
15375 $as_echo_n "checking for dgettext in -lintl... " >&6; }
15376 if ${ac_cv_lib_intl_dgettext+:} false; then :
15377 $as_echo_n "(cached) " >&6
15379 ac_check_lib_save_LIBS=$LIBS
15380 LIBS="-lintl $LIBS"
15381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15382 /* end confdefs.h. */
15384 /* Override any GCC internal prototype to avoid an error.
15385 Use char because int might match the return type of a GCC
15386 builtin and then its argument prototype would still apply. */
15394 return dgettext ();
15399 if ac_fn_c_try_link "$LINENO"; then :
15400 ac_cv_lib_intl_dgettext=yes
15402 ac_cv_lib_intl_dgettext=no
15404 rm -f core conftest.err conftest.$ac_objext \
15405 conftest$ac_exeext conftest.$ac_ext
15406 LIBS=$ac_check_lib_save_LIBS
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
15409 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
15410 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
15411 gt_cv_func_dgettext_libintl=yes
15419 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
15421 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
15425 $as_echo_n "checking for ngettext in -lintl... " >&6; }
15426 if ${ac_cv_lib_intl_ngettext+:} false; then :
15427 $as_echo_n "(cached) " >&6
15429 ac_check_lib_save_LIBS=$LIBS
15430 LIBS="-lintl -liconv $LIBS"
15431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15432 /* end confdefs.h. */
15434 /* Override any GCC internal prototype to avoid an error.
15435 Use char because int might match the return type of a GCC
15436 builtin and then its argument prototype would still apply. */
15444 return ngettext ();
15449 if ac_fn_c_try_link "$LINENO"; then :
15450 ac_cv_lib_intl_ngettext=yes
15452 ac_cv_lib_intl_ngettext=no
15454 rm -f core conftest.err conftest.$ac_objext \
15455 conftest$ac_exeext conftest.$ac_ext
15456 LIBS=$ac_check_lib_save_LIBS
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
15459 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
15460 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
15462 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
15463 if ${ac_cv_lib_intl_dcgettext+:} false; then :
15464 $as_echo_n "(cached) " >&6
15466 ac_check_lib_save_LIBS=$LIBS
15467 LIBS="-lintl -liconv $LIBS"
15468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15469 /* end confdefs.h. */
15471 /* Override any GCC internal prototype to avoid an error.
15472 Use char because int might match the return type of a GCC
15473 builtin and then its argument prototype would still apply. */
15481 return dcgettext ();
15486 if ac_fn_c_try_link "$LINENO"; then :
15487 ac_cv_lib_intl_dcgettext=yes
15489 ac_cv_lib_intl_dcgettext=no
15491 rm -f core conftest.err conftest.$ac_objext \
15492 conftest$ac_exeext conftest.$ac_ext
15493 LIBS=$ac_check_lib_save_LIBS
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
15496 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
15497 if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
15498 gt_cv_func_dgettext_libintl=yes
15499 libintl_extra_libs=-liconv
15511 # If we found libintl, then check in it for bind_textdomain_codeset();
15512 # we'll prefer libc if neither have bind_textdomain_codeset(),
15513 # and both have dgettext and ngettext
15515 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
15516 glib_save_LIBS="$LIBS"
15517 LIBS="$LIBS -lintl $libintl_extra_libs"
15518 unset ac_cv_func_bind_textdomain_codeset
15519 for ac_func in bind_textdomain_codeset
15521 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
15522 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
15523 cat >>confdefs.h <<_ACEOF
15524 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
15530 LIBS="$glib_save_LIBS"
15532 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
15533 gt_cv_func_dgettext_libc=no
15535 if test "$gt_cv_func_dgettext_libc" = "yes" \
15536 && test "$gt_cv_func_ngettext_libc" = "yes"; then
15537 gt_cv_func_dgettext_libintl=no
15543 if test "$gt_cv_func_dgettext_libc" = "yes" \
15544 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
15545 gt_cv_have_gettext=yes
15548 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
15549 INTLLIBS="-lintl $libintl_extra_libs"
15552 if test "$gt_cv_have_gettext" = "yes"; then
15554 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15556 # Extract the first word of "msgfmt", so it can be a program name with args.
15557 set dummy msgfmt; ac_word=$2
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15559 $as_echo_n "checking for $ac_word... " >&6; }
15560 if ${ac_cv_path_MSGFMT+:} false; then :
15561 $as_echo_n "(cached) " >&6
15565 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15569 for ac_dir in $PATH; do
15570 test -z "$ac_dir" && ac_dir=.
15571 if test -f $ac_dir/$ac_word; then
15572 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
15573 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15579 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
15583 MSGFMT="$ac_cv_path_MSGFMT"
15584 if test "$MSGFMT" != "no"; then
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15586 $as_echo "$MSGFMT" >&6; }
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15589 $as_echo "no" >&6; }
15591 if test "$MSGFMT" != "no"; then
15592 glib_save_LIBS="$LIBS"
15593 LIBS="$LIBS $INTLLIBS"
15594 for ac_func in dcgettext
15596 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
15597 if test "x$ac_cv_func_dcgettext" = xyes; then :
15598 cat >>confdefs.h <<_ACEOF
15599 #define HAVE_DCGETTEXT 1
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
15607 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
15608 cat >conftest.foo <<_ACEOF
15612 "Content-Type: text/plain; charset=UTF-8\n"
15613 "Project-Id-Version: test 1.0\n"
15614 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
15615 "Last-Translator: test <foo@bar.xx>\n"
15616 "Language-Team: C <LL@li.org>\n"
15617 "MIME-Version: 1.0\n"
15618 "Content-Transfer-Encoding: 8bit\n"
15621 if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
15622 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
15624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15625 test $ac_status = 0; }; then
15626 MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15627 $as_echo "yes" >&6; }
15628 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15629 $as_echo "no" >&6; }
15630 echo "$as_me: failed input was:" >&5
15631 sed 's/^/| /' conftest.foo >&5
15634 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15635 set dummy gmsgfmt; ac_word=$2
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15637 $as_echo_n "checking for $ac_word... " >&6; }
15638 if ${ac_cv_path_GMSGFMT+:} false; then :
15639 $as_echo_n "(cached) " >&6
15643 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15647 for as_dir in $PATH
15650 test -z "$as_dir" && as_dir=.
15651 for ac_exec_ext in '' $ac_executable_extensions; do
15652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15653 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15661 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15665 GMSGFMT=$ac_cv_path_GMSGFMT
15666 if test -n "$GMSGFMT"; then
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15668 $as_echo "$GMSGFMT" >&6; }
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15671 $as_echo "no" >&6; }
15675 # Extract the first word of "xgettext", so it can be a program name with args.
15676 set dummy xgettext; ac_word=$2
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15678 $as_echo_n "checking for $ac_word... " >&6; }
15679 if ${ac_cv_path_XGETTEXT+:} false; then :
15680 $as_echo_n "(cached) " >&6
15682 case "$XGETTEXT" in
15684 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15688 for ac_dir in $PATH; do
15689 test -z "$ac_dir" && ac_dir=.
15690 if test -f $ac_dir/$ac_word; then
15691 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
15692 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15698 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15702 XGETTEXT="$ac_cv_path_XGETTEXT"
15703 if test "$XGETTEXT" != ":"; then
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15705 $as_echo "$XGETTEXT" >&6; }
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15708 $as_echo "no" >&6; }
15711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15712 /* end confdefs.h. */
15717 extern int _nl_msg_cat_cntr;
15718 return _nl_msg_cat_cntr
15723 if ac_fn_c_try_link "$LINENO"; then :
15729 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
15730 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
15749 rm -f core conftest.err conftest.$ac_objext \
15750 conftest$ac_exeext conftest.$ac_ext
15751 LIBS="$glib_save_LIBS"
15754 gt_cv_have_gettext=no
15762 if test "$gt_cv_have_gettext" = "yes" ; then
15764 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15768 if test "$XGETTEXT" != ":"; then
15769 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
15773 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
15778 # We need to process the po/ directory.
15781 ac_config_commands="$ac_config_commands default-1"
15784 for lang in $ALL_LINGUAS; do
15785 GMOFILES="$GMOFILES $lang.gmo"
15786 POFILES="$POFILES $lang.po"
15801 if test "$gt_cv_have_gettext" = "yes"; then
15802 if test "x$ALL_LINGUAS" = "x"; then
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15806 $as_echo_n "checking for catalogs to be installed... " >&6; }
15808 for presentlang in $ALL_LINGUAS; do
15810 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
15811 desiredlanguages="$LINGUAS"
15813 desiredlanguages="$ALL_LINGUAS"
15815 for desiredlang in $desiredlanguages; do
15816 # Use the presentlang catalog if desiredlang is
15817 # a. equal to presentlang, or
15818 # b. a variant of presentlang (because in this case,
15819 # presentlang can be used as a fallback for messages
15820 # which are not translated in the desiredlang catalog).
15821 case "$desiredlang" in
15822 "$presentlang"*) useit=yes;;
15825 if test $useit = yes; then
15826 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
15829 LINGUAS=$NEW_LINGUAS
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15831 $as_echo "$LINGUAS" >&6; }
15834 if test -n "$LINGUAS"; then
15835 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
15840 if test -n "$ac_aux_dir"; then
15841 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15843 if test -z "$MKINSTALLDIRS"; then
15844 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15848 test -d po || mkdir po
15849 if test "x$srcdir" != "x."; then
15850 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
15851 posrcprefix="$srcdir/"
15853 posrcprefix="../$srcdir/"
15859 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
15860 < $srcdir/po/POTFILES.in > po/POTFILES
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15865 $as_echo_n "checking whether NLS is requested... " >&6; }
15866 # Check whether --enable-nls was given.
15867 if test "${enable_nls+set}" = set; then :
15868 enableval=$enable_nls; USE_NLS=$enableval
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15874 $as_echo "$USE_NLS" >&6; }
15879 case "$am__api_version" in
15881 as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
15887 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.41.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
15888 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
15889 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
15890 if test -n "0.41.0"; then
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.41.0" >&5
15892 $as_echo_n "checking for intltool >= 0.41.0... " >&6; }
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
15894 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
15895 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
15896 as_fn_error $? "Your intltool is too old. You need intltool 0.41.0 or later." "$LINENO" 5
15899 # Extract the first word of "intltool-update", so it can be a program name with args.
15900 set dummy intltool-update; ac_word=$2
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15902 $as_echo_n "checking for $ac_word... " >&6; }
15903 if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
15904 $as_echo_n "(cached) " >&6
15906 case $INTLTOOL_UPDATE in
15908 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
15911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15912 for as_dir in $PATH
15915 test -z "$as_dir" && as_dir=.
15916 for ac_exec_ext in '' $ac_executable_extensions; do
15917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15918 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
15919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15929 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
15930 if test -n "$INTLTOOL_UPDATE"; then
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
15932 $as_echo "$INTLTOOL_UPDATE" >&6; }
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15935 $as_echo "no" >&6; }
15939 # Extract the first word of "intltool-merge", so it can be a program name with args.
15940 set dummy intltool-merge; ac_word=$2
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15942 $as_echo_n "checking for $ac_word... " >&6; }
15943 if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
15944 $as_echo_n "(cached) " >&6
15946 case $INTLTOOL_MERGE in
15948 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
15951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15952 for as_dir in $PATH
15955 test -z "$as_dir" && as_dir=.
15956 for ac_exec_ext in '' $ac_executable_extensions; do
15957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15958 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
15959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15969 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
15970 if test -n "$INTLTOOL_MERGE"; then
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
15972 $as_echo "$INTLTOOL_MERGE" >&6; }
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15975 $as_echo "no" >&6; }
15979 # Extract the first word of "intltool-extract", so it can be a program name with args.
15980 set dummy intltool-extract; ac_word=$2
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15982 $as_echo_n "checking for $ac_word... " >&6; }
15983 if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
15984 $as_echo_n "(cached) " >&6
15986 case $INTLTOOL_EXTRACT in
15988 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
15991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15992 for as_dir in $PATH
15995 test -z "$as_dir" && as_dir=.
15996 for ac_exec_ext in '' $ac_executable_extensions; do
15997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15998 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
15999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16009 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
16010 if test -n "$INTLTOOL_EXTRACT"; then
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
16012 $as_echo "$INTLTOOL_EXTRACT" >&6; }
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16015 $as_echo "no" >&6; }
16019 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
16020 as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
16023 if test -z "$AM_DEFAULT_VERBOSITY"; then
16024 AM_DEFAULT_VERBOSITY=1
16028 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
16029 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
16030 INTLTOOL__v_MERGE_0='@echo " ITMRG " $@;'
16035 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
16036 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
16037 intltool__v_merge_options_0='-q'
16042 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16043 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16044 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16045 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16046 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@'
16047 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16048 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16049 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16050 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16051 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16052 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16053 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
16054 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@'
16056 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir'
16058 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16059 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16060 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16061 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16062 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16063 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16064 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16162 # Check the gettext tools to make sure they are GNU
16163 # Extract the first word of "xgettext", so it can be a program name with args.
16164 set dummy xgettext; ac_word=$2
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16166 $as_echo_n "checking for $ac_word... " >&6; }
16167 if ${ac_cv_path_XGETTEXT+:} false; then :
16168 $as_echo_n "(cached) " >&6
16172 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16176 for as_dir in $PATH
16179 test -z "$as_dir" && as_dir=.
16180 for ac_exec_ext in '' $ac_executable_extensions; do
16181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16182 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
16183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16193 XGETTEXT=$ac_cv_path_XGETTEXT
16194 if test -n "$XGETTEXT"; then
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16196 $as_echo "$XGETTEXT" >&6; }
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16199 $as_echo "no" >&6; }
16203 # Extract the first word of "msgmerge", so it can be a program name with args.
16204 set dummy msgmerge; ac_word=$2
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16206 $as_echo_n "checking for $ac_word... " >&6; }
16207 if ${ac_cv_path_MSGMERGE+:} false; then :
16208 $as_echo_n "(cached) " >&6
16212 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16216 for as_dir in $PATH
16219 test -z "$as_dir" && as_dir=.
16220 for ac_exec_ext in '' $ac_executable_extensions; do
16221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16222 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
16223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16233 MSGMERGE=$ac_cv_path_MSGMERGE
16234 if test -n "$MSGMERGE"; then
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16236 $as_echo "$MSGMERGE" >&6; }
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16239 $as_echo "no" >&6; }
16243 # Extract the first word of "msgfmt", so it can be a program name with args.
16244 set dummy msgfmt; ac_word=$2
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16246 $as_echo_n "checking for $ac_word... " >&6; }
16247 if ${ac_cv_path_MSGFMT+:} false; then :
16248 $as_echo_n "(cached) " >&6
16252 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16256 for as_dir in $PATH
16259 test -z "$as_dir" && as_dir=.
16260 for ac_exec_ext in '' $ac_executable_extensions; do
16261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16262 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
16263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16273 MSGFMT=$ac_cv_path_MSGFMT
16274 if test -n "$MSGFMT"; then
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16276 $as_echo "$MSGFMT" >&6; }
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16279 $as_echo "no" >&6; }
16283 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16284 set dummy gmsgfmt; ac_word=$2
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16286 $as_echo_n "checking for $ac_word... " >&6; }
16287 if ${ac_cv_path_GMSGFMT+:} false; then :
16288 $as_echo_n "(cached) " >&6
16292 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16296 for as_dir in $PATH
16299 test -z "$as_dir" && as_dir=.
16300 for ac_exec_ext in '' $ac_executable_extensions; do
16301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16302 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16310 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16314 GMSGFMT=$ac_cv_path_GMSGFMT
16315 if test -n "$GMSGFMT"; then
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16317 $as_echo "$GMSGFMT" >&6; }
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16320 $as_echo "no" >&6; }
16324 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
16325 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
16327 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
16328 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
16329 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
16330 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
16331 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
16334 # Extract the first word of "perl", so it can be a program name with args.
16335 set dummy perl; ac_word=$2
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16337 $as_echo_n "checking for $ac_word... " >&6; }
16338 if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
16339 $as_echo_n "(cached) " >&6
16341 case $INTLTOOL_PERL in
16343 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
16346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16347 for as_dir in $PATH
16350 test -z "$as_dir" && as_dir=.
16351 for ac_exec_ext in '' $ac_executable_extensions; do
16352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16353 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
16354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16364 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
16365 if test -n "$INTLTOOL_PERL"; then
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
16367 $as_echo "$INTLTOOL_PERL" >&6; }
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16370 $as_echo "no" >&6; }
16374 if test -z "$INTLTOOL_PERL"; then
16375 as_fn_error $? "perl not found" "$LINENO" 5
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
16378 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
16379 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
16380 if test $? -ne 0; then
16381 as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
16383 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
16385 $as_echo "$IT_PERL_VERSION" >&6; }
16387 if test "x" != "xno-xml"; then
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
16389 $as_echo_n "checking for XML::Parser... " >&6; }
16390 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16392 $as_echo "ok" >&6; }
16394 as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
16398 # Substitute ALL_LINGUAS so we can use it in po/Makefile
16401 # Set DATADIRNAME correctly if it is not set yet
16402 # (copied from glib-gettext.m4)
16403 if test -z "$DATADIRNAME"; then
16404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16405 /* end confdefs.h. */
16410 extern int _nl_msg_cat_cntr;
16411 return _nl_msg_cat_cntr
16416 if ac_fn_c_try_link "$LINENO"; then :
16421 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
16422 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
16434 rm -f core conftest.err conftest.$ac_objext \
16435 conftest$ac_exeext conftest.$ac_ext
16443 LOCALEDIR='${prefix}/${datadir}/locale'
16447 CRYPTO_CFLAGS=${NSS_CFLAGS}
16448 CRYPTO_LIBS=${NSS_LIBS}
16459 if test "${enable_openssl}" = "yes"; then
16460 BUILD_OPENSSL_TRUE=
16461 BUILD_OPENSSL_FALSE='#'
16463 BUILD_OPENSSL_TRUE='#'
16464 BUILD_OPENSSL_FALSE=
16467 if test "${enable_pkcs11_helper}" = "yes"; then
16468 BUILD_PKCS11_HELPER_TRUE=
16469 BUILD_PKCS11_HELPER_FALSE='#'
16471 BUILD_PKCS11_HELPER_TRUE='#'
16472 BUILD_PKCS11_HELPER_FALSE=
16475 if test "${enable_tspi}" = "yes"; then
16477 BUILD_TSPI_FALSE='#'
16479 BUILD_TSPI_TRUE='#'
16483 if test "${enable_gpg}" = "yes"; then
16485 BUILD_GPG_FALSE='#'
16491 if test "${enable_pam}" = "yes"; then
16493 BUILD_PAM_FALSE='#'
16499 if test "${enable_pywrap}" = "yes"; then
16501 BUILD_PYWRAP_FALSE='#'
16503 BUILD_PYWRAP_TRUE='#'
16504 BUILD_PYWRAP_FALSE=
16507 if test "${enable_nss}" = "yes"; then
16509 BUILD_NSS_FALSE='#'
16515 if test "${enable_gui}" = "yes"; then
16517 BUILD_GUI_FALSE='#'
16523 if test "${enable_docs}" = "yes"; then
16525 BUILD_DOCS_FALSE='#'
16527 BUILD_DOCS_TRUE='#'
16531 if test "${enable_docs_gen}" = "yes"; then
16532 BUILD_DOCS_GEN_TRUE=
16533 BUILD_DOCS_GEN_FALSE='#'
16535 BUILD_DOCS_GEN_TRUE='#'
16536 BUILD_DOCS_GEN_FALSE=
16539 if test "${enable_tests}" = "yes"; then
16541 ENABLE_TESTS_FALSE='#'
16543 ENABLE_TESTS_TRUE='#'
16544 ENABLE_TESTS_FALSE=
16548 # workaround for <autoconf-2.60
16549 if test -z "${docdir}"; then
16550 docdir="\$(datarootdir)/doc/\$(PACKAGE_NAME)"
16553 if test -z "${htmldir}"; then
16554 htmldir="\$(docdir)"
16558 # workaround for <automake-1.10
16559 if test -z "${MKDIR_P}"; then
16560 MKDIR_P="\$(mkdir_p)"
16565 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/libecryptfs/Makefile src/utils/Makefile src/key_mod/Makefile src/daemon/Makefile src/desktop/Makefile src/desktop/ecryptfs-mount-private.desktop src/desktop/ecryptfs-setup-private.desktop src/include/Makefile doc/manpage/Makefile src/pam_ecryptfs/Makefile src/libecryptfs/libecryptfs.pc src/libecryptfs-swig/Makefile tests/Makefile tests/lib/Makefile tests/kernel/Makefile tests/userspace/Makefile po/Makefile.in"
16567 cat >confcache <<\_ACEOF
16568 # This file is a shell script that caches the results of configure
16569 # tests run on this system so they can be shared between configure
16570 # scripts and configure runs, see configure's option --config-cache.
16571 # It is not useful on other systems. If it contains results you don't
16572 # want to keep, you may remove or edit it.
16574 # config.status only pays attention to the cache file if you give it
16575 # the --recheck option to rerun configure.
16577 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16578 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16579 # following values.
16583 # The following way of writing the cache mishandles newlines in values,
16584 # but we know of no workaround that is simple, portable, and efficient.
16585 # So, we kill variables containing newlines.
16586 # Ultrix sh set writes to stderr and can't be redirected directly,
16587 # and sets the high bit in the cache file unless we assign to the vars.
16589 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16590 eval ac_val=\$$ac_var
16594 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16595 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16598 _ | IFS | as_nl) ;; #(
16599 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16600 *) { eval $ac_var=; unset $ac_var;} ;;
16606 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16607 *${as_nl}ac_space=\ *)
16608 # `set' does not quote correctly, so add quotes: double-quote
16609 # substitution turns \\\\ into \\, and sed turns \\ into \.
16612 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16615 # `set' quotes correctly as required by POSIX, so do not add quotes.
16616 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16625 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16627 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16629 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16630 if test -w "$cache_file"; then
16631 if test "x$cache_file" != "x/dev/null"; then
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16633 $as_echo "$as_me: updating cache $cache_file" >&6;}
16634 if test ! -f "$cache_file" || test -h "$cache_file"; then
16635 cat confcache >"$cache_file"
16637 case $cache_file in #(
16639 mv -f confcache "$cache_file"$$ &&
16640 mv -f "$cache_file"$$ "$cache_file" ;; #(
16642 mv -f confcache "$cache_file" ;;
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16648 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16653 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16654 # Let make expand exec_prefix.
16655 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16657 DEFS=-DHAVE_CONFIG_H
16662 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16663 # 1. Remove the extension, and $U if already installed.
16664 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16665 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16666 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16667 # will be set to the directory where LIBOBJS objects are built.
16668 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16669 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16671 LIBOBJS=$ac_libobjs
16673 LTLIBOBJS=$ac_ltlibobjs
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16677 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16678 if test -n "$am_sleep_pid"; then
16679 # Hide warnings about reused PIDs.
16680 wait $am_sleep_pid 2>/dev/null
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16683 $as_echo "done" >&6; }
16684 if test -n "$EXEEXT"; then
16686 am__EXEEXT_FALSE='#'
16688 am__EXEEXT_TRUE='#'
16692 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16693 as_fn_error $? "conditional \"AMDEP\" was never defined.
16694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16696 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16697 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16700 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16701 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16705 ac_config_commands="$ac_config_commands po/stamp-it"
16708 if test -z "${BUILD_OPENSSL_TRUE}" && test -z "${BUILD_OPENSSL_FALSE}"; then
16709 as_fn_error $? "conditional \"BUILD_OPENSSL\" was never defined.
16710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16712 if test -z "${BUILD_PKCS11_HELPER_TRUE}" && test -z "${BUILD_PKCS11_HELPER_FALSE}"; then
16713 as_fn_error $? "conditional \"BUILD_PKCS11_HELPER\" was never defined.
16714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16716 if test -z "${BUILD_TSPI_TRUE}" && test -z "${BUILD_TSPI_FALSE}"; then
16717 as_fn_error $? "conditional \"BUILD_TSPI\" was never defined.
16718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16720 if test -z "${BUILD_GPG_TRUE}" && test -z "${BUILD_GPG_FALSE}"; then
16721 as_fn_error $? "conditional \"BUILD_GPG\" was never defined.
16722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16724 if test -z "${BUILD_PAM_TRUE}" && test -z "${BUILD_PAM_FALSE}"; then
16725 as_fn_error $? "conditional \"BUILD_PAM\" was never defined.
16726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16728 if test -z "${BUILD_PYWRAP_TRUE}" && test -z "${BUILD_PYWRAP_FALSE}"; then
16729 as_fn_error $? "conditional \"BUILD_PYWRAP\" was never defined.
16730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16732 if test -z "${BUILD_NSS_TRUE}" && test -z "${BUILD_NSS_FALSE}"; then
16733 as_fn_error $? "conditional \"BUILD_NSS\" was never defined.
16734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16736 if test -z "${BUILD_GUI_TRUE}" && test -z "${BUILD_GUI_FALSE}"; then
16737 as_fn_error $? "conditional \"BUILD_GUI\" was never defined.
16738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16740 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
16741 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
16742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16744 if test -z "${BUILD_DOCS_GEN_TRUE}" && test -z "${BUILD_DOCS_GEN_FALSE}"; then
16745 as_fn_error $? "conditional \"BUILD_DOCS_GEN\" was never defined.
16746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16748 if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
16749 as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined.
16750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16753 : "${CONFIG_STATUS=./config.status}"
16755 ac_clean_files_save=$ac_clean_files
16756 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16758 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16760 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16762 # Generated by $as_me.
16763 # Run this file to recreate the current configuration.
16764 # Compiler output produced by configure, useful for debugging
16765 # configure, is in config.log if it exists.
16768 ac_cs_recheck=false
16771 SHELL=\${CONFIG_SHELL-$SHELL}
16774 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16775 ## -------------------- ##
16776 ## M4sh Initialization. ##
16777 ## -------------------- ##
16779 # Be more Bourne compatible
16780 DUALCASE=1; export DUALCASE # for MKS sh
16781 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16784 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16785 # is contrary to our usage. Disable this feature.
16786 alias -g '${1+"$@"}'='"$@"'
16787 setopt NO_GLOB_SUBST
16789 case `(set -o) 2>/dev/null` in #(
16801 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16802 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16803 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16804 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16805 # Prefer a ksh shell builtin over an external printf program on Solaris,
16806 # but without wasting forks for bash or zsh.
16807 if test -z "$BASH_VERSION$ZSH_VERSION" \
16808 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16809 as_echo='print -r --'
16810 as_echo_n='print -rn --'
16811 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16812 as_echo='printf %s\n'
16813 as_echo_n='printf %s'
16815 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16816 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16817 as_echo_n='/usr/ucb/echo -n'
16819 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16820 as_echo_n_body='eval
16824 expr "X$arg" : "X\\(.*\\)$as_nl";
16825 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16827 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16829 export as_echo_n_body
16830 as_echo_n='sh -c $as_echo_n_body as_echo'
16832 export as_echo_body
16833 as_echo='sh -c $as_echo_body as_echo'
16836 # The user is always right.
16837 if test "${PATH_SEPARATOR+set}" != set; then
16839 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16840 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16847 # We need space, tab and new line, in precisely that order. Quoting is
16848 # there to prevent editors from complaining about space-tab.
16849 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16850 # splitting by setting IFS to empty value.)
16853 # Find who we are. Look in the path if we contain no directory separator.
16856 *[\\/]* ) as_myself=$0 ;;
16857 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16858 for as_dir in $PATH
16861 test -z "$as_dir" && as_dir=.
16862 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16868 # We did not find ourselves, most probably we were run as `sh COMMAND'
16869 # in which case we are not to be found in the path.
16870 if test "x$as_myself" = x; then
16873 if test ! -f "$as_myself"; then
16874 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16878 # Unset variables that we do not need and which cause bugs (e.g. in
16879 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16880 # suppresses any "Segmentation fault" message there. '((' could
16881 # trigger a bug in pdksh 5.2.14.
16882 for as_var in BASH_ENV ENV MAIL MAILPATH
16883 do eval test x\${$as_var+set} = xset \
16884 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16897 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16900 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16901 # ----------------------------------------
16902 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16903 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16904 # script with STATUS, using 1 if that was 0.
16907 as_status=$1; test $as_status -eq 0 && as_status=1
16909 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16910 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16912 $as_echo "$as_me: error: $2" >&2
16913 as_fn_exit $as_status
16917 # as_fn_set_status STATUS
16918 # -----------------------
16919 # Set $? to STATUS, without forking.
16920 as_fn_set_status ()
16923 } # as_fn_set_status
16925 # as_fn_exit STATUS
16926 # -----------------
16927 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16931 as_fn_set_status $1
16937 # Portably unset VAR.
16940 { eval $1=; unset $1;}
16942 as_unset=as_fn_unset
16943 # as_fn_append VAR VALUE
16944 # ----------------------
16945 # Append the text in VALUE to the end of the definition contained in VAR. Take
16946 # advantage of any shell optimizations that allow amortized linear growth over
16947 # repeated appends, instead of the typical quadratic growth present in naive
16949 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16950 eval 'as_fn_append ()
16961 # as_fn_arith ARG...
16962 # ------------------
16963 # Perform arithmetic evaluation on the ARGs, and store the result in the
16964 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16965 # must be portable across $(()) and expr.
16966 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16967 eval 'as_fn_arith ()
16974 as_val=`expr "$@" || test $? -eq 1`
16979 if expr a : '\(a\)' >/dev/null 2>&1 &&
16980 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16986 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16987 as_basename=basename
16992 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16998 as_me=`$as_basename -- "$0" ||
16999 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17000 X"$0" : 'X\(//\)$' \| \
17001 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17003 sed '/^.*\/\([^/][^/]*\)\/*$/{
17017 # Avoid depending upon Character Ranges.
17018 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17019 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17020 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17021 as_cr_digits='0123456789'
17022 as_cr_alnum=$as_cr_Letters$as_cr_digits
17024 ECHO_C= ECHO_N= ECHO_T=
17025 case `echo -n x` in #(((((
17027 case `echo 'xy\c'` in
17028 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17030 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17037 rm -f conf$$ conf$$.exe conf$$.file
17038 if test -d conf$$.dir; then
17039 rm -f conf$$.dir/conf$$.file
17042 mkdir conf$$.dir 2>/dev/null
17044 if (echo >conf$$.file) 2>/dev/null; then
17045 if ln -s conf$$.file conf$$ 2>/dev/null; then
17047 # ... but there are two gotchas:
17048 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17049 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17050 # In both cases, we have to default to `cp -pR'.
17051 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17053 elif ln conf$$.file conf$$ 2>/dev/null; then
17061 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17062 rmdir conf$$.dir 2>/dev/null
17067 # Create "$as_dir" as a directory, including parents if necessary.
17072 -*) as_dir=./$as_dir;;
17074 test -d "$as_dir" || eval $as_mkdir_p || {
17078 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17079 *) as_qdir=$as_dir;;
17081 as_dirs="'$as_qdir' $as_dirs"
17082 as_dir=`$as_dirname -- "$as_dir" ||
17083 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17084 X"$as_dir" : 'X\(//\)[^/]' \| \
17085 X"$as_dir" : 'X\(//\)$' \| \
17086 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17087 $as_echo X"$as_dir" |
17088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17092 /^X\(\/\/\)[^/].*/{
17105 test -d "$as_dir" && break
17107 test -z "$as_dirs" || eval "mkdir $as_dirs"
17108 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17112 if mkdir -p . 2>/dev/null; then
17113 as_mkdir_p='mkdir -p "$as_dir"'
17115 test -d ./-p && rmdir ./-p
17120 # as_fn_executable_p FILE
17121 # -----------------------
17122 # Test if FILE is an executable regular file.
17123 as_fn_executable_p ()
17125 test -f "$1" && test -x "$1"
17126 } # as_fn_executable_p
17127 as_test_x='test -x'
17128 as_executable_p=as_fn_executable_p
17130 # Sed expression to map a string onto a valid CPP name.
17131 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17133 # Sed expression to map a string onto a valid variable name.
17134 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17138 ## ----------------------------------- ##
17139 ## Main body of $CONFIG_STATUS script. ##
17140 ## ----------------------------------- ##
17142 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17145 # Save the log message, to keep $0 and so on meaningful, and to
17146 # report actual input values of CONFIG_FILES etc. instead of their
17147 # values after options handling.
17149 This file was extended by ecryptfs-utils $as_me 104, which was
17150 generated by GNU Autoconf 2.69. Invocation command line was
17152 CONFIG_FILES = $CONFIG_FILES
17153 CONFIG_HEADERS = $CONFIG_HEADERS
17154 CONFIG_LINKS = $CONFIG_LINKS
17155 CONFIG_COMMANDS = $CONFIG_COMMANDS
17158 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17163 case $ac_config_files in *"
17164 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17167 case $ac_config_headers in *"
17168 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17173 # Files that config.status was made for.
17174 config_files="$ac_config_files"
17175 config_headers="$ac_config_headers"
17176 config_commands="$ac_config_commands"
17180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17182 \`$as_me' instantiates files and other configuration actions
17183 from templates according to the current configuration. Unless the files
17184 and actions are specified as TAGs, all are instantiated by default.
17186 Usage: $0 [OPTION]... [TAG]...
17188 -h, --help print this help, then exit
17189 -V, --version print version number and configuration settings, then exit
17190 --config print configuration, then exit
17191 -q, --quiet, --silent
17192 do not print progress messages
17193 -d, --debug don't remove temporary files
17194 --recheck update $as_me by reconfiguring in the same conditions
17195 --file=FILE[:TEMPLATE]
17196 instantiate the configuration file FILE
17197 --header=FILE[:TEMPLATE]
17198 instantiate the configuration header FILE
17200 Configuration files:
17203 Configuration headers:
17206 Configuration commands:
17209 Report bugs to the package provider."
17212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17213 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17215 ecryptfs-utils config.status 104
17216 configured by $0, generated by GNU Autoconf 2.69,
17217 with options \\"\$ac_cs_config\\"
17219 Copyright (C) 2012 Free Software Foundation, Inc.
17220 This config.status script is free software; the Free Software Foundation
17221 gives unlimited permission to copy, distribute and modify it."
17228 test -n "\$AWK" || AWK=awk
17231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17232 # The default lists apply if the user does not specify any file.
17238 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17239 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17243 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17255 # Handling of the options.
17256 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17258 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17259 $as_echo "$ac_cs_version"; exit ;;
17260 --config | --confi | --conf | --con | --co | --c )
17261 $as_echo "$ac_cs_config"; exit ;;
17262 --debug | --debu | --deb | --de | --d | -d )
17264 --file | --fil | --fi | --f )
17267 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17268 '') as_fn_error $? "missing file argument" ;;
17270 as_fn_append CONFIG_FILES " '$ac_optarg'"
17271 ac_need_defaults=false;;
17272 --header | --heade | --head | --hea )
17275 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17277 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17278 ac_need_defaults=false;;
17280 # Conflict between --help and --header
17281 as_fn_error $? "ambiguous option: \`$1'
17282 Try \`$0 --help' for more information.";;
17283 --help | --hel | -h )
17284 $as_echo "$ac_cs_usage"; exit ;;
17285 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17286 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17289 # This is an error.
17290 -*) as_fn_error $? "unrecognized option: \`$1'
17291 Try \`$0 --help' for more information." ;;
17293 *) as_fn_append ac_config_targets " $1"
17294 ac_need_defaults=false ;;
17300 ac_configure_extra_args=
17302 if $ac_cs_silent; then
17304 ac_configure_extra_args="$ac_configure_extra_args --silent"
17308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17309 if \$ac_cs_recheck; then
17310 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17312 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17313 CONFIG_SHELL='$SHELL'
17314 export CONFIG_SHELL
17319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17323 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17324 ## Running $as_me. ##
17330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17334 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17337 # The HP-UX ksh and POSIX shell print the target directory to stdout
17338 # if CDPATH is set.
17339 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17341 sed_quote_subst='$sed_quote_subst'
17342 double_quote_subst='$double_quote_subst'
17343 delay_variable_subst='$delay_variable_subst'
17344 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17345 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17346 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17347 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17348 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17349 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17350 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17351 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17352 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17353 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17354 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17355 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17356 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17357 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17358 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17359 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17360 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17361 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17362 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17363 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17364 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17365 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17366 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17367 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17368 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17369 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17370 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17371 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17372 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17373 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17374 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17375 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17376 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17377 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17378 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17379 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17380 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17381 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17382 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17383 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17384 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17385 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17386 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17387 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17388 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17389 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17390 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17391 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17392 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17393 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17394 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17395 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17396 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17397 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17398 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17399 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17400 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"`'
17401 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17402 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17403 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17404 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17405 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17406 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17407 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17408 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17409 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17410 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17411 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17412 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17413 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17414 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17415 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17416 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17417 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17418 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17419 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17420 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17421 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17422 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17423 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17424 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17425 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17426 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17427 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17428 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17429 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17430 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17431 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17432 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17433 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17434 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17435 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17436 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17437 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17438 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17439 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17440 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17441 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17442 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17443 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17444 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17445 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17446 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17447 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17448 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17449 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17450 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17451 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17452 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17453 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17454 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17455 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17456 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17457 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17458 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17459 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17460 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17461 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17462 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17463 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17464 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17465 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17466 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17467 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17468 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17469 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17470 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17471 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17472 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17473 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17476 LTCFLAGS='$LTCFLAGS'
17477 compiler='$compiler_DEFAULT'
17479 # A function that is used when there is no print builtin or printf.
17480 func_fallback_echo ()
17482 eval 'cat <<_LTECHO_EOF
17487 # Quote evaled strings.
17502 deplibs_check_method \
17507 sharedlib_from_linklib_cmd \
17510 archiver_list_spec \
17516 lt_cv_sys_global_symbol_pipe \
17517 lt_cv_sys_global_symbol_to_cdecl \
17518 lt_cv_sys_global_symbol_to_c_name_address \
17519 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17520 nm_file_list_spec \
17521 lt_prog_compiler_no_builtin_flag \
17522 lt_prog_compiler_pic \
17523 lt_prog_compiler_wl \
17524 lt_prog_compiler_static \
17525 lt_cv_prog_compiler_c_o \
17534 export_dynamic_flag_spec \
17535 whole_archive_flag_spec \
17536 compiler_needs_object \
17538 allow_undefined_flag \
17539 no_undefined_flag \
17540 hardcode_libdir_flag_spec \
17541 hardcode_libdir_separator \
17545 variables_saved_for_relink \
17547 library_names_spec \
17549 install_override_mode \
17553 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17554 *[\\\\\\\`\\"\\\$]*)
17555 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17558 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17563 # Double-quote double-evaled strings.
17564 for var in reload_cmds \
17565 old_postinstall_cmds \
17566 old_postuninstall_cmds \
17568 extract_expsyms_cmds \
17569 old_archive_from_new_cmds \
17570 old_archive_from_expsyms_cmds \
17572 archive_expsym_cmds \
17574 module_expsym_cmds \
17575 export_symbols_cmds \
17579 postuninstall_cmds \
17581 sys_lib_search_path_spec \
17582 sys_lib_dlsearch_path_spec; do
17583 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17584 *[\\\\\\\`\\"\\\$]*)
17585 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17588 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17593 ac_aux_dir='$ac_aux_dir'
17594 xsi_shell='$xsi_shell'
17595 lt_shell_append='$lt_shell_append'
17597 # See if we are running on zsh, and set the options which allow our
17598 # commands through without removal of \ escapes INIT.
17599 if test -n "\${ZSH_VERSION+set}" ; then
17600 setopt NO_GLOB_SUBST
17606 TIMESTAMP='$TIMESTAMP'
17616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17618 # Handling of arguments.
17619 for ac_config_target in $ac_config_targets
17621 case $ac_config_target in
17622 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17623 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17624 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17625 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17626 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17627 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17628 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17629 "src/libecryptfs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libecryptfs/Makefile" ;;
17630 "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
17631 "src/key_mod/Makefile") CONFIG_FILES="$CONFIG_FILES src/key_mod/Makefile" ;;
17632 "src/daemon/Makefile") CONFIG_FILES="$CONFIG_FILES src/daemon/Makefile" ;;
17633 "src/desktop/Makefile") CONFIG_FILES="$CONFIG_FILES src/desktop/Makefile" ;;
17634 "src/desktop/ecryptfs-mount-private.desktop") CONFIG_FILES="$CONFIG_FILES src/desktop/ecryptfs-mount-private.desktop" ;;
17635 "src/desktop/ecryptfs-setup-private.desktop") CONFIG_FILES="$CONFIG_FILES src/desktop/ecryptfs-setup-private.desktop" ;;
17636 "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
17637 "doc/manpage/Makefile") CONFIG_FILES="$CONFIG_FILES doc/manpage/Makefile" ;;
17638 "src/pam_ecryptfs/Makefile") CONFIG_FILES="$CONFIG_FILES src/pam_ecryptfs/Makefile" ;;
17639 "src/libecryptfs/libecryptfs.pc") CONFIG_FILES="$CONFIG_FILES src/libecryptfs/libecryptfs.pc" ;;
17640 "src/libecryptfs-swig/Makefile") CONFIG_FILES="$CONFIG_FILES src/libecryptfs-swig/Makefile" ;;
17641 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17642 "tests/lib/Makefile") CONFIG_FILES="$CONFIG_FILES tests/lib/Makefile" ;;
17643 "tests/kernel/Makefile") CONFIG_FILES="$CONFIG_FILES tests/kernel/Makefile" ;;
17644 "tests/userspace/Makefile") CONFIG_FILES="$CONFIG_FILES tests/userspace/Makefile" ;;
17645 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17646 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
17648 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17653 # If the user did not use the arguments to specify the items to instantiate,
17654 # then the envvar interface is used. Set only those that are not.
17655 # We use the long form for the default assignment because of an extremely
17656 # bizarre bug on SunOS 4.1.3.
17657 if $ac_need_defaults; then
17658 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17659 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17660 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17663 # Have a temporary directory for convenience. Make it in the build tree
17664 # simply because there is no reason against having it here, and in addition,
17665 # creating and moving files from /tmp can sometimes cause problems.
17666 # Hook for its removal unless debugging.
17667 # Note that there is a small window in which the directory will not be cleaned:
17668 # after its creation but before its name has been assigned to `$tmp'.
17672 trap 'exit_status=$?
17673 : "${ac_tmp:=$tmp}"
17674 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17676 trap 'as_fn_exit 1' 1 2 13 15
17678 # Create a (secure) tmp directory for tmp files.
17681 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17685 tmp=./conf$$-$RANDOM
17686 (umask 077 && mkdir "$tmp")
17687 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17690 # Set up the scripts for CONFIG_FILES section.
17691 # No need to generate them if there are no CONFIG_FILES.
17692 # This happens for instance with `./config.status config.h'.
17693 if test -n "$CONFIG_FILES"; then
17696 ac_cr=`echo X | tr X '\015'`
17697 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17698 # But we know of no other shell where ac_cr would be empty at this
17699 # point, so we can use a bashism as a fallback.
17700 if test "x$ac_cr" = x; then
17701 eval ac_cr=\$\'\\r\'
17703 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17704 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17707 ac_cs_awk_cr=$ac_cr
17710 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17715 echo "cat >conf$$subs.awk <<_ACEOF" &&
17716 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17718 } >conf$$subs.sh ||
17719 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17720 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17722 for ac_last_try in false false false false false :; do
17723 . ./conf$$subs.sh ||
17724 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17726 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17727 if test $ac_delim_n = $ac_delim_num; then
17729 elif $ac_last_try; then
17730 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17732 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17735 rm -f conf$$subs.sh
17737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17738 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17742 s/^/S["/; s/!.*/"]=/
17752 s/\(.\{148\}\)..*/\1/
17754 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17759 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17766 s/\(.\{148\}\)..*/\1/
17768 s/["\\]/\\&/g; s/^/"/; s/$/"/
17772 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17777 ' <conf$$subs.awk | sed '
17782 ' >>$CONFIG_STATUS || ac_write_fail=1
17783 rm -f conf$$subs.awk
17784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17786 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17787 for (key in S) S_is_set[key] = 1
17793 nfields = split(line, field, "@")
17795 len = length(field[1])
17796 for (i = 2; i < nfields; i++) {
17798 keylen = length(key)
17799 if (S_is_set[key]) {
17801 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17802 len += length(value) + length(field[++i])
17813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17814 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17815 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17818 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17819 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17822 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17823 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17824 # trailing colons and then remove the whole line if VPATH becomes empty
17825 # (actually we leave an empty line to preserve line numbers).
17826 if test "x$srcdir" = x.; then
17827 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17846 fi # test -n "$CONFIG_FILES"
17848 # Set up the scripts for CONFIG_HEADERS section.
17849 # No need to generate them if there are no CONFIG_HEADERS.
17850 # This happens for instance with `./config.status Makefile'.
17851 if test -n "$CONFIG_HEADERS"; then
17852 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17856 # Transform confdefs.h into an awk script `defines.awk', embedded as
17857 # here-document in config.status, that substitutes the proper values into
17858 # config.h.in to produce config.h.
17860 # Create a delimiter string that does not exist in confdefs.h, to ease
17861 # handling of long lines.
17863 for ac_last_try in false false :; do
17864 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17865 if test -z "$ac_tt"; then
17867 elif $ac_last_try; then
17868 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17870 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17874 # For the awk script, D is an array of macro values keyed by name,
17875 # likewise P contains macro parameters if any. Preserve backslash
17876 # newline sequences.
17878 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17880 s/.\{148\}/&'"$ac_delim"'/g
17883 s/^[ ]*#[ ]*define[ ][ ]*/ /
17890 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17892 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17896 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17897 D["\1"]=" \3\\\\\\n"\\/p
17899 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17904 s/.\{148\}/&'"$ac_delim"'/g
17909 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17912 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17914 ' <confdefs.h | sed '
17915 s/'"$ac_delim"'/"\\\
17916 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17919 for (key in D) D_is_set[key] = 1
17922 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17924 split(line, arg, " ")
17925 if (arg[1] == "#") {
17929 defundef = substr(arg[1], 2)
17932 split(mac1, mac2, "(") #)
17934 prefix = substr(line, 1, index(line, defundef) - 1)
17935 if (D_is_set[macro]) {
17936 # Preserve the white space surrounding the "#".
17937 print prefix "define", macro P[macro] D[macro]
17940 # Replace #undef with comments. This is necessary, for example,
17941 # in the case of _POSIX_SOURCE, which is predefined and required
17942 # on some systems where configure will not decide to define it.
17943 if (defundef == "undef") {
17944 print "/*", prefix defundef, macro, "*/"
17952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17953 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17954 fi # test -n "$CONFIG_HEADERS"
17957 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17962 :[FHLC]) ac_mode=$ac_tag; continue;;
17964 case $ac_mode$ac_tag in
17966 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17967 :[FH]-) ac_tag=-:-;;
17968 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17985 -) ac_f="$ac_tmp/stdin";;
17986 *) # Look for the file first in the build tree, then in the source tree
17987 # (if the path is not absolute). The absolute path cannot be DOS-style,
17988 # because $ac_f cannot contain `:'.
17992 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17994 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17996 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17997 as_fn_append ac_file_inputs " '$ac_f'"
18000 # Let's still pretend it is `configure' which instantiates (i.e., don't
18001 # use $as_me), people would be surprised to read:
18002 # /* config.h. Generated by config.status. */
18003 configure_input='Generated from '`
18004 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18006 if test x"$ac_file" != x-; then
18007 configure_input="$ac_file. $configure_input"
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18009 $as_echo "$as_me: creating $ac_file" >&6;}
18011 # Neutralize special characters interpreted by sed in replacement strings.
18012 case $configure_input in #(
18013 *\&* | *\|* | *\\* )
18014 ac_sed_conf_input=`$as_echo "$configure_input" |
18015 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18016 *) ac_sed_conf_input=$configure_input;;
18020 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18021 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18026 ac_dir=`$as_dirname -- "$ac_file" ||
18027 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18028 X"$ac_file" : 'X\(//\)[^/]' \| \
18029 X"$ac_file" : 'X\(//\)$' \| \
18030 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18031 $as_echo X"$ac_file" |
18032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18036 /^X\(\/\/\)[^/].*/{
18049 as_dir="$ac_dir"; as_fn_mkdir_p
18053 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18055 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18056 # A ".." for each directory in $ac_dir_suffix.
18057 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18058 case $ac_top_builddir_sub in
18059 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18060 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18063 ac_abs_top_builddir=$ac_pwd
18064 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18065 # for backward compatibility:
18066 ac_top_builddir=$ac_top_build_prefix
18069 .) # We are building in place.
18071 ac_top_srcdir=$ac_top_builddir_sub
18072 ac_abs_top_srcdir=$ac_pwd ;;
18073 [\\/]* | ?:[\\/]* ) # Absolute name.
18074 ac_srcdir=$srcdir$ac_dir_suffix;
18075 ac_top_srcdir=$srcdir
18076 ac_abs_top_srcdir=$srcdir ;;
18077 *) # Relative name.
18078 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18079 ac_top_srcdir=$ac_top_build_prefix$srcdir
18080 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18082 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18092 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18093 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18095 ac_MKDIR_P=$MKDIR_P
18097 [\\/$]* | ?:[\\/]* ) ;;
18098 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18103 # If the template does not know about datarootdir, expand it.
18104 # FIXME: This hack should be removed a few years after 2.60.
18105 ac_datarootdir_hack=; ac_datarootdir_seen=
18116 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18117 *datarootdir*) ac_datarootdir_seen=yes;;
18118 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18120 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18123 ac_datarootdir_hack='
18124 s&@datadir@&$datadir&g
18125 s&@docdir@&$docdir&g
18126 s&@infodir@&$infodir&g
18127 s&@localedir@&$localedir&g
18128 s&@mandir@&$mandir&g
18129 s&\\\${datarootdir}&$datarootdir&g' ;;
18133 # Neutralize VPATH when `$srcdir' = `.'.
18134 # Shell code in configure.ac might set extrasub.
18135 # FIXME: do we really want to maintain this feature?
18136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18137 ac_sed_extra="$ac_vpsub
18140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18142 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18143 s|@configure_input@|$ac_sed_conf_input|;t t
18144 s&@top_builddir@&$ac_top_builddir_sub&;t t
18145 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18146 s&@srcdir@&$ac_srcdir&;t t
18147 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18148 s&@top_srcdir@&$ac_top_srcdir&;t t
18149 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18150 s&@builddir@&$ac_builddir&;t t
18151 s&@abs_builddir@&$ac_abs_builddir&;t t
18152 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18153 s&@INSTALL@&$ac_INSTALL&;t t
18154 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18155 $ac_datarootdir_hack
18157 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18158 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18160 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18161 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18162 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18163 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18165 which seems to be undefined. Please make sure it is defined" >&5
18166 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18167 which seems to be undefined. Please make sure it is defined" >&2;}
18169 rm -f "$ac_tmp/stdin"
18171 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18172 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18174 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18180 if test x"$ac_file" != x-; then
18182 $as_echo "/* $configure_input */" \
18183 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18184 } >"$ac_tmp/config.h" \
18185 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18186 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18188 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18191 mv "$ac_tmp/config.h" "$ac_file" \
18192 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18195 $as_echo "/* $configure_input */" \
18196 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18197 || as_fn_error $? "could not create -" "$LINENO" 5
18199 # Compute "$ac_file"'s index in $config_headers.
18202 for _am_header in $config_headers :; do
18203 case $_am_header in
18204 $_am_arg | $_am_arg:* )
18207 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18210 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18211 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18212 X"$_am_arg" : 'X\(//\)[^/]' \| \
18213 X"$_am_arg" : 'X\(//\)$' \| \
18214 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18215 $as_echo X"$_am_arg" |
18216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18220 /^X\(\/\/\)[^/].*/{
18232 s/.*/./; q'`/stamp-h$_am_stamp_count
18235 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18236 $as_echo "$as_me: executing $ac_file commands" >&6;}
18241 case $ac_file$ac_mode in
18242 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18243 # Older Autoconf quotes --file arguments for eval, but not when files
18244 # are listed without --file. Let's play safe and only enable the eval
18245 # if we detect the quoting.
18246 case $CONFIG_FILES in
18247 *\'*) eval set x "$CONFIG_FILES" ;;
18248 *) set x $CONFIG_FILES ;;
18253 # Strip MF so we end up with the name of the file.
18254 mf=`echo "$mf" | sed -e 's/:.*$//'`
18255 # Check whether this is an Automake generated Makefile or not.
18256 # We used to match only the files named 'Makefile.in', but
18257 # some people rename them; so instead we look at the file content.
18258 # Grep'ing the first line is not enough: some people post-process
18259 # each Makefile.in and add a new line on top of each file to say so.
18260 # Grep'ing the whole file is not good either: AIX grep has a line
18261 # limit of 2048, but all sed's we know have understand at least 4000.
18262 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18263 dirpart=`$as_dirname -- "$mf" ||
18264 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18265 X"$mf" : 'X\(//\)[^/]' \| \
18266 X"$mf" : 'X\(//\)$' \| \
18267 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18273 /^X\(\/\/\)[^/].*/{
18289 # Extract the definition of DEPDIR, am__include, and am__quote
18290 # from the Makefile without running 'make'.
18291 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18292 test -z "$DEPDIR" && continue
18293 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18294 test -z "$am__include" && continue
18295 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18296 # Find all dependency output files, they are included files with
18297 # $(DEPDIR) in their names. We invoke sed twice because it is the
18298 # simplest approach to changing $(DEPDIR) to its actual value in the
18300 for file in `sed -n "
18301 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18302 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18303 # Make sure the directory exists.
18304 test -f "$dirpart/$file" && continue
18305 fdir=`$as_dirname -- "$file" ||
18306 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18307 X"$file" : 'X\(//\)[^/]' \| \
18308 X"$file" : 'X\(//\)$' \| \
18309 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18310 $as_echo X"$file" |
18311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18315 /^X\(\/\/\)[^/].*/{
18328 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18329 # echo "creating $dirpart/$file"
18330 echo '# dummy' > "$dirpart/$file"
18337 # See if we are running on zsh, and set the options which allow our
18338 # commands through without removal of \ escapes.
18339 if test -n "${ZSH_VERSION+set}" ; then
18340 setopt NO_GLOB_SUBST
18343 cfgfile="${ofile}T"
18344 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18347 cat <<_LT_EOF >> "$cfgfile"
18350 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18351 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18352 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18353 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18355 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18356 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18358 # Written by Gordon Matzigkeit, 1996
18360 # This file is part of GNU Libtool.
18362 # GNU Libtool is free software; you can redistribute it and/or
18363 # modify it under the terms of the GNU General Public License as
18364 # published by the Free Software Foundation; either version 2 of
18365 # the License, or (at your option) any later version.
18367 # As a special exception to the GNU General Public License,
18368 # if you distribute this file as part of a program or library that
18369 # is built using GNU Libtool, you may include this file under the
18370 # same distribution terms that you use for the rest of that program.
18372 # GNU Libtool is distributed in the hope that it will be useful,
18373 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18374 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18375 # GNU General Public License for more details.
18377 # You should have received a copy of the GNU General Public License
18378 # along with GNU Libtool; see the file COPYING. If not, a copy
18379 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18380 # obtained by writing to the Free Software Foundation, Inc.,
18381 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18384 # The names of the tagged configurations supported by this script.
18387 # ### BEGIN LIBTOOL CONFIG
18389 # Whether or not to build static libraries.
18390 build_old_libs=$enable_static
18392 # Which release of libtool.m4 was used?
18393 macro_version=$macro_version
18394 macro_revision=$macro_revision
18396 # Whether or not to build shared libraries.
18397 build_libtool_libs=$enable_shared
18399 # What type of objects to build.
18402 # Whether or not to optimize for fast installation.
18403 fast_install=$enable_fast_install
18405 # Shell to use when invoking shell scripts.
18408 # An echo program that protects backslashes.
18411 # The PATH separator for the build system.
18412 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18415 host_alias=$host_alias
18419 # The build system.
18420 build_alias=$build_alias
18424 # A sed program that does not truncate output.
18427 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18428 Xsed="\$SED -e 1s/^X//"
18430 # A grep program that handles long lines.
18436 # A literal string matcher.
18439 # A BSD- or MS-compatible name lister.
18442 # Whether we need soft or hard links.
18445 # What is the maximum length of a command?
18446 max_cmd_len=$max_cmd_len
18448 # Object file suffix (normally "o").
18451 # Executable file suffix (normally "").
18454 # whether the shell understands "unset".
18457 # turn spaces into newlines.
18460 # turn newlines into spaces.
18463 # convert \$build file names to \$host format.
18464 to_host_file_cmd=$lt_cv_to_host_file_cmd
18466 # convert \$build files to toolchain format.
18467 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18469 # An object symbol dumper.
18470 OBJDUMP=$lt_OBJDUMP
18472 # Method to check whether dependent libraries are shared objects.
18473 deplibs_check_method=$lt_deplibs_check_method
18475 # Command to use when deplibs_check_method = "file_magic".
18476 file_magic_cmd=$lt_file_magic_cmd
18478 # How to find potential files when deplibs_check_method = "file_magic".
18479 file_magic_glob=$lt_file_magic_glob
18481 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18482 want_nocaseglob=$lt_want_nocaseglob
18484 # DLL creation program.
18485 DLLTOOL=$lt_DLLTOOL
18487 # Command to associate shared and link libraries.
18488 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18493 # Flags to create an archive.
18494 AR_FLAGS=$lt_AR_FLAGS
18496 # How to feed a file listing to the archiver.
18497 archiver_list_spec=$lt_archiver_list_spec
18499 # A symbol stripping program.
18502 # Commands used to install an old-style archive.
18504 old_postinstall_cmds=$lt_old_postinstall_cmds
18505 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18507 # Whether to use a lock for old archive extraction.
18508 lock_old_archive_extraction=$lock_old_archive_extraction
18513 # LTCC compiler flags.
18514 LTCFLAGS=$lt_CFLAGS
18516 # Take the output of nm and produce a listing of raw symbols and C names.
18517 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18519 # Transform the output of nm in a proper C declaration.
18520 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18522 # Transform the output of nm in a C name address pair.
18523 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18525 # Transform the output of nm in a C name address pair when lib prefix is needed.
18526 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18528 # Specify filename containing input files for \$NM.
18529 nm_file_list_spec=$lt_nm_file_list_spec
18531 # The root where to search for dependent libraries,and in which our libraries should be installed.
18532 lt_sysroot=$lt_sysroot
18534 # The name of the directory that contains temporary libtool files.
18537 # Used to examine libraries when file_magic_cmd begins with "file".
18538 MAGIC_CMD=$MAGIC_CMD
18540 # Must we lock files when doing compilation?
18541 need_locks=$lt_need_locks
18544 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18546 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18547 DSYMUTIL=$lt_DSYMUTIL
18549 # Tool to change global to local symbols on Mac OS X.
18552 # Tool to manipulate fat objects and archives on Mac OS X.
18555 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18558 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18559 OTOOL64=$lt_OTOOL64
18561 # Old archive suffix (normally "a").
18564 # Shared library suffix (normally ".so").
18565 shrext_cmds=$lt_shrext_cmds
18567 # The commands to extract the exported symbol list from a shared archive.
18568 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18570 # Variables whose values should be saved in libtool wrapper scripts and
18571 # restored at link time.
18572 variables_saved_for_relink=$lt_variables_saved_for_relink
18574 # Do we need the "lib" prefix for modules?
18575 need_lib_prefix=$need_lib_prefix
18577 # Do we need a version for libraries?
18578 need_version=$need_version
18580 # Library versioning type.
18581 version_type=$version_type
18583 # Shared library runtime path variable.
18584 runpath_var=$runpath_var
18586 # Shared library path variable.
18587 shlibpath_var=$shlibpath_var
18589 # Is shlibpath searched before the hard-coded library search path?
18590 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18592 # Format of library name prefix.
18593 libname_spec=$lt_libname_spec
18595 # List of archive names. First name is the real one, the rest are links.
18596 # The last name is the one that the linker finds with -lNAME
18597 library_names_spec=$lt_library_names_spec
18599 # The coded name of the library, if different from the real name.
18600 soname_spec=$lt_soname_spec
18602 # Permission mode override for installation of shared libraries.
18603 install_override_mode=$lt_install_override_mode
18605 # Command to use after installation of a shared archive.
18606 postinstall_cmds=$lt_postinstall_cmds
18608 # Command to use after uninstallation of a shared archive.
18609 postuninstall_cmds=$lt_postuninstall_cmds
18611 # Commands used to finish a libtool library installation in a directory.
18612 finish_cmds=$lt_finish_cmds
18614 # As "finish_cmds", except a single script fragment to be evaled but
18616 finish_eval=$lt_finish_eval
18618 # Whether we should hardcode library paths into libraries.
18619 hardcode_into_libs=$hardcode_into_libs
18621 # Compile-time system search path for libraries.
18622 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18624 # Run-time system search path for libraries.
18625 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18627 # Whether dlopen is supported.
18628 dlopen_support=$enable_dlopen
18630 # Whether dlopen of programs is supported.
18631 dlopen_self=$enable_dlopen_self
18633 # Whether dlopen of statically linked programs is supported.
18634 dlopen_self_static=$enable_dlopen_self_static
18636 # Commands to strip libraries.
18637 old_striplib=$lt_old_striplib
18638 striplib=$lt_striplib
18641 # The linker used to build libraries.
18644 # How to create reloadable object files.
18645 reload_flag=$lt_reload_flag
18646 reload_cmds=$lt_reload_cmds
18648 # Commands used to build an old-style archive.
18649 old_archive_cmds=$lt_old_archive_cmds
18651 # A language specific compiler.
18654 # Is the compiler the GNU compiler?
18657 # Compiler flag to turn off builtin functions.
18658 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18660 # Additional compiler flags for building library objects.
18661 pic_flag=$lt_lt_prog_compiler_pic
18663 # How to pass a linker flag through the compiler.
18664 wl=$lt_lt_prog_compiler_wl
18666 # Compiler flag to prevent dynamic linking.
18667 link_static_flag=$lt_lt_prog_compiler_static
18669 # Does compiler simultaneously support -c and -o options?
18670 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18672 # Whether or not to add -lc for building shared libraries.
18673 build_libtool_need_lc=$archive_cmds_need_lc
18675 # Whether or not to disallow shared libs when runtime libs are static.
18676 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18678 # Compiler flag to allow reflexive dlopens.
18679 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18681 # Compiler flag to generate shared objects directly from archives.
18682 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18684 # Whether the compiler copes with passing no objects directly.
18685 compiler_needs_object=$lt_compiler_needs_object
18687 # Create an old-style archive from a shared archive.
18688 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18690 # Create a temporary old-style archive to link instead of a shared archive.
18691 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18693 # Commands used to build a shared archive.
18694 archive_cmds=$lt_archive_cmds
18695 archive_expsym_cmds=$lt_archive_expsym_cmds
18697 # Commands used to build a loadable module if different from building
18698 # a shared archive.
18699 module_cmds=$lt_module_cmds
18700 module_expsym_cmds=$lt_module_expsym_cmds
18702 # Whether we are building with GNU ld or not.
18703 with_gnu_ld=$lt_with_gnu_ld
18705 # Flag that allows shared libraries with undefined symbols to be built.
18706 allow_undefined_flag=$lt_allow_undefined_flag
18708 # Flag that enforces no undefined symbols.
18709 no_undefined_flag=$lt_no_undefined_flag
18711 # Flag to hardcode \$libdir into a binary during linking.
18712 # This must work even if \$libdir does not exist
18713 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18715 # Whether we need a single "-rpath" flag with a separated argument.
18716 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18718 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18719 # DIR into the resulting binary.
18720 hardcode_direct=$hardcode_direct
18722 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18723 # DIR into the resulting binary and the resulting library dependency is
18724 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18725 # library is relocated.
18726 hardcode_direct_absolute=$hardcode_direct_absolute
18728 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18729 # into the resulting binary.
18730 hardcode_minus_L=$hardcode_minus_L
18732 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18733 # into the resulting binary.
18734 hardcode_shlibpath_var=$hardcode_shlibpath_var
18736 # Set to "yes" if building a shared library automatically hardcodes DIR
18737 # into the library and all subsequent libraries and executables linked
18739 hardcode_automatic=$hardcode_automatic
18741 # Set to yes if linker adds runtime paths of dependent libraries
18742 # to runtime path list.
18743 inherit_rpath=$inherit_rpath
18745 # Whether libtool must link a program against all its dependency libraries.
18746 link_all_deplibs=$link_all_deplibs
18748 # Set to "yes" if exported symbols are required.
18749 always_export_symbols=$always_export_symbols
18751 # The commands to list exported symbols.
18752 export_symbols_cmds=$lt_export_symbols_cmds
18754 # Symbols that should not be listed in the preloaded symbols.
18755 exclude_expsyms=$lt_exclude_expsyms
18757 # Symbols that must always be exported.
18758 include_expsyms=$lt_include_expsyms
18760 # Commands necessary for linking programs (against libraries) with templates.
18761 prelink_cmds=$lt_prelink_cmds
18763 # Commands necessary for finishing linking programs.
18764 postlink_cmds=$lt_postlink_cmds
18766 # Specify filename containing input files.
18767 file_list_spec=$lt_file_list_spec
18769 # How to hardcode a shared library path into an executable.
18770 hardcode_action=$hardcode_action
18772 # ### END LIBTOOL CONFIG
18778 cat <<\_LT_EOF >> "$cfgfile"
18779 # AIX sometimes has problems with the GCC collect2 program. For some
18780 # reason, if we set the COLLECT_NAMES environment variable, the problems
18781 # vanish in a puff of smoke.
18782 if test "X${COLLECT_NAMES+set}" != Xset; then
18784 export COLLECT_NAMES
18791 ltmain="$ac_aux_dir/ltmain.sh"
18794 # We use sed instead of cat because bash on DJGPP gets confused if
18795 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18796 # text mode, it properly converts lines to CR/LF. This bash problem
18797 # is reportedly fixed, but why not run on old versions too?
18798 sed '$q' "$ltmain" >> "$cfgfile" \
18799 || (rm -f "$cfgfile"; exit 1)
18801 if test x"$xsi_shell" = xyes; then
18802 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18806 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18807 \ * ) func_dirname_result="${3}" ;;\
18809 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18810 && mv -f "$cfgfile.tmp" "$cfgfile" \
18811 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18812 test 0 -eq $? || _lt_function_replace_fail=:
18815 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18818 \ func_basename_result="${1##*/}"\
18819 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18820 && mv -f "$cfgfile.tmp" "$cfgfile" \
18821 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18822 test 0 -eq $? || _lt_function_replace_fail=:
18825 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18826 func_dirname_and_basename ()\
18829 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18830 \ * ) func_dirname_result="${3}" ;;\
18832 \ func_basename_result="${1##*/}"\
18833 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18834 && mv -f "$cfgfile.tmp" "$cfgfile" \
18835 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18836 test 0 -eq $? || _lt_function_replace_fail=:
18839 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18842 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18843 \ # positional parameters, so assign one to ordinary parameter first.\
18844 \ func_stripname_result=${3}\
18845 \ func_stripname_result=${func_stripname_result#"${1}"}\
18846 \ func_stripname_result=${func_stripname_result%"${2}"}\
18847 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18848 && mv -f "$cfgfile.tmp" "$cfgfile" \
18849 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18850 test 0 -eq $? || _lt_function_replace_fail=:
18853 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18854 func_split_long_opt ()\
18856 \ func_split_long_opt_name=${1%%=*}\
18857 \ func_split_long_opt_arg=${1#*=}\
18858 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18859 && mv -f "$cfgfile.tmp" "$cfgfile" \
18860 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18861 test 0 -eq $? || _lt_function_replace_fail=:
18864 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18865 func_split_short_opt ()\
18867 \ func_split_short_opt_arg=${1#??}\
18868 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18869 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18870 && mv -f "$cfgfile.tmp" "$cfgfile" \
18871 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18872 test 0 -eq $? || _lt_function_replace_fail=:
18875 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18879 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18880 \ *) func_lo2o_result=${1} ;;\
18882 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18883 && mv -f "$cfgfile.tmp" "$cfgfile" \
18884 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18885 test 0 -eq $? || _lt_function_replace_fail=:
18888 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18891 func_xform_result=${1%.*}.lo\
18892 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18893 && mv -f "$cfgfile.tmp" "$cfgfile" \
18894 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18895 test 0 -eq $? || _lt_function_replace_fail=:
18898 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18901 func_arith_result=$(( $* ))\
18902 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18903 && mv -f "$cfgfile.tmp" "$cfgfile" \
18904 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18905 test 0 -eq $? || _lt_function_replace_fail=:
18908 sed -e '/^func_len ()$/,/^} # func_len /c\
18911 func_len_result=${#1}\
18912 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18913 && mv -f "$cfgfile.tmp" "$cfgfile" \
18914 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18915 test 0 -eq $? || _lt_function_replace_fail=:
18919 if test x"$lt_shell_append" = xyes; then
18920 sed -e '/^func_append ()$/,/^} # func_append /c\
18923 eval "${1}+=\\${2}"\
18924 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18925 && mv -f "$cfgfile.tmp" "$cfgfile" \
18926 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18927 test 0 -eq $? || _lt_function_replace_fail=:
18930 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18931 func_append_quoted ()\
18933 \ func_quote_for_eval "${2}"\
18934 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18935 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18936 && mv -f "$cfgfile.tmp" "$cfgfile" \
18937 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18938 test 0 -eq $? || _lt_function_replace_fail=:
18941 # Save a `func_append' function call where possible by direct use of '+='
18942 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18943 && mv -f "$cfgfile.tmp" "$cfgfile" \
18944 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18945 test 0 -eq $? || _lt_function_replace_fail=:
18947 # Save a `func_append' function call even when '+=' is not available
18948 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18949 && mv -f "$cfgfile.tmp" "$cfgfile" \
18950 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18951 test 0 -eq $? || _lt_function_replace_fail=:
18954 if test x"$_lt_function_replace_fail" = x":"; then
18955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18956 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18960 mv -f "$cfgfile" "$ofile" ||
18961 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18965 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
18966 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
18969 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
18970 as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
18972 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
18977 '"s|^| $ac_top_srcdir/|" \
18978 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
18980 sed '/^POTFILES =/,/[^\\]$/ {
18984 ' "po/Makefile.in" >"po/Makefile"
18985 rm -f "po/Makefile.tmp"
18986 mv "po/stamp-it.tmp" "po/stamp-it"
18995 ac_clean_files=$ac_clean_files_save
18997 test $ac_write_fail = 0 ||
18998 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19001 # configure is writing to config.log, and then calls config.status.
19002 # config.status does its own redirection, appending to config.log.
19003 # Unfortunately, on DOS this fails, as config.log is still kept open
19004 # by configure, so config.status won't be able to write to it; its
19005 # output is simply discarded. So we exec the FD to /dev/null,
19006 # effectively closing config.log, so it can be properly (re)opened and
19007 # appended to by config.status. When coming back to configure, we
19008 # need to make the FD available again.
19009 if test "$no_create" != yes; then
19011 ac_config_status_args=
19012 test "$silent" = yes &&
19013 ac_config_status_args="$ac_config_status_args --quiet"
19015 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19017 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19018 # would make configure fail if this is the last instruction.
19019 $ac_cs_success || as_fn_exit 1
19021 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19023 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19027 if test "${prefix}" != "/usr"; then
19029 echo "Warning: install prefix is $prefix"
19031 echo "Most mount applications expect the mount helper to install to"
19032 echo "/sbin. You can install the mount helper to that location by "
19033 echo "running the configure script again with --prefix=/usr:"
19035 echo "./configure --prefix=/usr"