2 # From configure.ac OpenPAM: configure.ac 947 2019-02-24 20:18:17Z des .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for OpenPAM 20190224.
6 # Report bugs to <des@des.no>.
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 as_echo_n='sh -c $as_echo_n_body as_echo'
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
92 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150 *v*x* | *x*v* ) as_opts=-vx ;;
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
172 case \`(set -o) 2>/dev/null\` in #(
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
194 exitcode=1; echo positional parameters were not saved.
196 test x\$exitcode = x0 || exit 1
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test \$(( 1 + 1 )) = 2 || exit 1
204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208 PATH=/empty FPATH=/empty; export PATH FPATH
209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
249 if test "x$CONFIG_SHELL" != x; then :
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259 *v*x* | *x*v* ) as_opts=-vx ;;
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278 $as_echo "$0: Please tell bug-autoconf@gnu.org and des@des.no about
279 $0: your system, including any error possibly output before
280 $0: this message. Then install a modern shell, or manually
281 $0: run the script under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='OpenPAM'
592 PACKAGE_TARNAME='openpam'
593 PACKAGE_VERSION='20190224'
594 PACKAGE_STRING='OpenPAM 20190224'
595 PACKAGE_BUGREPORT='des@des.no'
596 PACKAGE_URL='http://www.openpam.org/'
598 ac_unique_file="lib/libpam/pam_start.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='am__EXEEXT_FALSE
648 WITH_SYSTEM_LIBPAM_FALSE
649 WITH_SYSTEM_LIBPAM_TRUE
658 CUSTOM_MODULES_DIR_FALSE
659 CUSTOM_MODULES_DIR_TRUE
725 INSTALL_STRIP_PROGRAM
767 program_transform_name
781 enable_option_checking
783 enable_dependency_tracking
794 enable_unversioned_modules
801 enable_developer_warnings
802 enable_debugging_symbols
805 ac_precious_vars='build_alias
822 # Initialize some variables set by options.
824 ac_init_version=false
825 ac_unrecognized_opts=
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
836 program_transform_name=s,x,x,
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir='${datarootdir}/info'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
882 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887 # Accept the important Cygnus configure options, so we can diagnose typos.
889 case $ac_dashdash$ac_option in
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
911 cache_file=config.cache ;;
913 -datadir | --datadir | --datadi | --datad)
915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
916 datadir=$ac_optarg ;;
918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
925 -disable-* | --disable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
939 eval enable_$ac_useropt=no ;;
941 -docdir | --docdir | --docdi | --doc | --do)
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 -enable-* | --enable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error $? "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
965 eval enable_$ac_useropt=\$ac_optarg ;;
967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969 | --exec | --exe | --ex)
970 ac_prev=exec_prefix ;;
971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973 | --exec=* | --exe=* | --ex=*)
974 exec_prefix=$ac_optarg ;;
976 -gas | --gas | --ga | --g)
977 # Obsolete; use --with-gas.
980 -help | --help | --hel | --he | -h)
982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983 ac_init_help=recursive ;;
984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985 ac_init_help=short ;;
987 -host | --host | --hos | --ho)
988 ac_prev=host_alias ;;
989 -host=* | --host=* | --hos=* | --ho=*)
990 host_alias=$ac_optarg ;;
992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996 htmldir=$ac_optarg ;;
998 -includedir | --includedir | --includedi | --included | --include \
999 | --includ | --inclu | --incl | --inc)
1000 ac_prev=includedir ;;
1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002 | --includ=* | --inclu=* | --incl=* | --inc=*)
1003 includedir=$ac_optarg ;;
1005 -infodir | --infodir | --infodi | --infod | --info | --inf)
1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008 infodir=$ac_optarg ;;
1010 -libdir | --libdir | --libdi | --libd)
1012 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013 libdir=$ac_optarg ;;
1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016 | --libexe | --libex | --libe)
1017 ac_prev=libexecdir ;;
1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019 | --libexe=* | --libex=* | --libe=*)
1020 libexecdir=$ac_optarg ;;
1022 -localedir | --localedir | --localedi | --localed | --locale)
1023 ac_prev=localedir ;;
1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025 localedir=$ac_optarg ;;
1027 -localstatedir | --localstatedir | --localstatedi | --localstated \
1028 | --localstate | --localstat | --localsta | --localst | --locals)
1029 ac_prev=localstatedir ;;
1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032 localstatedir=$ac_optarg ;;
1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037 mandir=$ac_optarg ;;
1039 -nfp | --nfp | --nf)
1040 # Obsolete; use --without-fp.
1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044 | --no-cr | --no-c | -n)
1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053 | --oldin | --oldi | --old | --ol | --o)
1054 ac_prev=oldincludedir ;;
1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058 oldincludedir=$ac_optarg ;;
1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063 prefix=$ac_optarg ;;
1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066 | --program-pre | --program-pr | --program-p)
1067 ac_prev=program_prefix ;;
1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070 program_prefix=$ac_optarg ;;
1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073 | --program-suf | --program-su | --program-s)
1074 ac_prev=program_suffix ;;
1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077 program_suffix=$ac_optarg ;;
1079 -program-transform-name | --program-transform-name \
1080 | --program-transform-nam | --program-transform-na \
1081 | --program-transform-n | --program-transform- \
1082 | --program-transform | --program-transfor \
1083 | --program-transfo | --program-transf \
1084 | --program-trans | --program-tran \
1085 | --progr-tra | --program-tr | --program-t)
1086 ac_prev=program_transform_name ;;
1087 -program-transform-name=* | --program-transform-name=* \
1088 | --program-transform-nam=* | --program-transform-na=* \
1089 | --program-transform-n=* | --program-transform-=* \
1090 | --program-transform=* | --program-transfor=* \
1091 | --program-transfo=* | --program-transf=* \
1092 | --program-trans=* | --program-tran=* \
1093 | --progr-tra=* | --program-tr=* | --program-t=*)
1094 program_transform_name=$ac_optarg ;;
1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099 pdfdir=$ac_optarg ;;
1101 -psdir | --psdir | --psdi | --psd | --ps)
1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107 | -silent | --silent | --silen | --sile | --sil)
1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1114 sbindir=$ac_optarg ;;
1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118 | --sharedst | --shareds | --shared | --share | --shar \
1120 ac_prev=sharedstatedir ;;
1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1125 sharedstatedir=$ac_optarg ;;
1127 -site | --site | --sit)
1129 -site=* | --site=* | --sit=*)
1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135 srcdir=$ac_optarg ;;
1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138 | --syscon | --sysco | --sysc | --sys | --sy)
1139 ac_prev=sysconfdir ;;
1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142 sysconfdir=$ac_optarg ;;
1144 -target | --target | --targe | --targ | --tar | --ta | --t)
1145 ac_prev=target_alias ;;
1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147 target_alias=$ac_optarg ;;
1149 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1152 -version | --version | --versio | --versi | --vers | -V)
1153 ac_init_version=: ;;
1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1169 eval with_$ac_useropt=\$ac_optarg ;;
1171 -without-* | --without-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1185 eval with_$ac_useropt=no ;;
1188 # Obsolete; use --with-x.
1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192 | --x-incl | --x-inc | --x-in | --x-i)
1193 ac_prev=x_includes ;;
1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196 x_includes=$ac_optarg ;;
1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200 ac_prev=x_libraries ;;
1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203 x_libraries=$ac_optarg ;;
1205 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206 Try \`$0 --help' for more information"
1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211 # Reject names that are not valid shell variable names.
1212 case $ac_envvar in #(
1213 '' | [0-9]* | *[!_$as_cr_alnum]* )
1214 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1216 eval $ac_envvar=\$ac_optarg
1217 export $ac_envvar ;;
1220 # FIXME: should be removed in autoconf 3.0.
1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1230 if test -n "$ac_prev"; then
1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232 as_fn_error $? "missing argument to $ac_option"
1235 if test -n "$ac_unrecognized_opts"; then
1236 case $enable_option_checking in
1238 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1243 # Check all directory arguments for consistency.
1244 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245 datadir sysconfdir sharedstatedir localstatedir includedir \
1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247 libdir localedir mandir
1249 eval ac_val=\$$ac_var
1250 # Remove trailing slashes.
1253 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254 eval $ac_var=\$ac_val;;
1256 # Be sure to have absolute directory names.
1258 [\\/$]* | ?:[\\/]* ) continue;;
1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1261 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1264 # There might be people who depend on the old broken behavior: `$host'
1265 # used to hold the argument of --host etc.
1266 # FIXME: To remove some day.
1269 target=$target_alias
1271 # FIXME: To remove some day.
1272 if test "x$host_alias" != x; then
1273 if test "x$build_alias" = x; then
1274 cross_compiling=maybe
1275 elif test "x$build_alias" != "x$host_alias"; then
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283 test "$silent" = yes && exec 6>/dev/null
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289 as_fn_error $? "working directory cannot be determined"
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 as_fn_error $? "pwd does not report name of working directory"
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 $as_echo X"$as_myself" |
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1326 ac_srcdir_defaulted=no
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1332 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1336 # When building in place, set srcdir=.
1337 if test "$ac_abs_confdir" = "$ac_pwd"; then
1340 # Remove unnecessary trailing slashes from srcdir.
1341 # Double slashes in file names in object file debugging info
1342 # mess up M-x gdb in Emacs.
1344 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1346 for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1354 # Report the --help message.
1356 if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1360 \`configure' configures OpenPAM 20190224 to adapt to many kinds of systems.
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE. See below for descriptions of some of the useful variables.
1367 Defaults for the options are specified in brackets.
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking ...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1380 Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
1382 [$ac_default_prefix]
1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1391 For better control, use the options below.
1393 Fine tuning of the installation directories:
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/openpam]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
1418 --program-prefix=PREFIX prepend PREFIX to installed program names
1419 --program-suffix=SUFFIX append SUFFIX to installed program names
1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1423 --build=BUILD configure for building on BUILD [guessed]
1424 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1428 if test -n "$ac_init_help"; then
1429 case $ac_init_help in
1430 short | recursive ) echo "Configuration of OpenPAM 20190224:";;
1435 --disable-option-checking ignore unrecognized --enable/--with options
1436 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1437 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1438 --enable-silent-rules less verbose build output (undo: "make V=1")
1439 --disable-silent-rules verbose build output (undo: "make V=0")
1440 --enable-dependency-tracking
1441 do not reject slow dependency extractors
1442 --disable-dependency-tracking
1443 speeds up one-time build
1444 --enable-static[=PKGS] build static libraries [default=no]
1445 --enable-shared[=PKGS] build shared libraries [default=yes]
1446 --enable-fast-install[=PKGS]
1447 optimize for fast installation [default=yes]
1448 --disable-libtool-lock avoid locking (might break parallel builds)
1449 --enable-debug turn debugging macros on
1450 --disable-unversioned-modules
1451 support loading of unversioned modules
1452 --enable-developer-warnings
1453 enable strict warnings (default is NO)
1454 --enable-debugging-symbols
1455 enable debugging symbols (default is NO)
1456 --enable-werror use -Werror (default is NO)
1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1461 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1463 --with-aix-soname=aix|svr4|both
1464 shared library versioning (aka "SONAME") variant to
1465 provide on AIX, [default=aix].
1466 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1467 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1468 compiler's sysroot if not specified).
1469 --with-pkgconfigdir installation directory for .pc files
1471 --with-modules-dir=DIR OpenPAM modules directory
1472 --without-doc do not build documentation
1473 --with-pam-unix build sample pam_unix(8) module
1474 --with-pamtest build test application
1475 --with-su build sample su(1) implementation
1476 --with-system-libpam use system libpam
1478 Some influential environment variables:
1479 CC C compiler command
1480 CFLAGS C compiler flags
1481 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1482 nonstandard directory <lib dir>
1483 LIBS libraries to pass to the linker, e.g. -l<library>
1484 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1485 you have headers in a nonstandard directory <include dir>
1488 User-defined run-time library search path.
1489 PKG_CONFIG path to pkg-config binary
1491 list of directories to prepend to default search path
1493 list of directories to search instead of default search path
1495 C compiler flags for cryb-test
1497 linker flags for cryb-test
1499 Use these variables to override the choices made by `configure' or to help
1500 it to find libraries and programs with nonstandard names/locations.
1502 Report bugs to <des@des.no>.
1503 OpenPAM home page: <http://www.openpam.org/>.
1508 if test "$ac_init_help" = "recursive"; then
1509 # If there are subdirs, report their specific --help.
1510 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511 test -d "$ac_dir" ||
1512 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1520 # A ".." for each directory in $ac_dir_suffix.
1521 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1522 case $ac_top_builddir_sub in
1523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527 ac_abs_top_builddir=$ac_pwd
1528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529 # for backward compatibility:
1530 ac_top_builddir=$ac_top_build_prefix
1533 .) # We are building in place.
1535 ac_top_srcdir=$ac_top_builddir_sub
1536 ac_abs_top_srcdir=$ac_pwd ;;
1537 [\\/]* | ?:[\\/]* ) # Absolute name.
1538 ac_srcdir=$srcdir$ac_dir_suffix;
1539 ac_top_srcdir=$srcdir
1540 ac_abs_top_srcdir=$srcdir ;;
1542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543 ac_top_srcdir=$ac_top_build_prefix$srcdir
1544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548 cd "$ac_dir" || { ac_status=$?; continue; }
1549 # Check for guested configure.
1550 if test -f "$ac_srcdir/configure.gnu"; then
1552 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553 elif test -f "$ac_srcdir/configure"; then
1555 $SHELL "$ac_srcdir/configure" --help=recursive
1557 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559 cd "$ac_pwd" || { ac_status=$?; break; }
1563 test -n "$ac_init_help" && exit $ac_status
1564 if $ac_init_version; then
1566 OpenPAM configure 20190224
1567 generated by GNU Autoconf 2.69
1569 Copyright (C) 2012 Free Software Foundation, Inc.
1570 This configure script is free software; the Free Software Foundation
1571 gives unlimited permission to copy, distribute and modify it.
1576 ## ------------------------ ##
1577 ## Autoconf initialization. ##
1578 ## ------------------------ ##
1580 # ac_fn_c_try_compile LINENO
1581 # --------------------------
1582 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1583 ac_fn_c_try_compile ()
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 rm -f conftest.$ac_objext
1587 if { { ac_try="$ac_compile"
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_compile") 2>conftest.err
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } && {
1603 test -z "$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1605 } && test -s conftest.$ac_objext; then :
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614 as_fn_set_status $ac_retval
1616 } # ac_fn_c_try_compile
1618 # ac_fn_c_try_cpp LINENO
1619 # ----------------------
1620 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 if { { ac_try="$ac_cpp conftest.$ac_ext"
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1633 if test -s conftest.err; then
1634 grep -v '^ *+' conftest.err >conftest.er1
1635 cat conftest.er1 >&5
1636 mv -f conftest.er1 conftest.err
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } > conftest.i && {
1640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1641 test ! -s conftest.err
1645 $as_echo "$as_me: failed program was:" >&5
1646 sed 's/^/| /' conftest.$ac_ext >&5
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 as_fn_set_status $ac_retval
1655 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1656 # -------------------------------------------------------
1657 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1658 # the include files in INCLUDES and setting the cache variable VAR
1660 ac_fn_c_check_header_mongrel ()
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 if eval \${$3+:} false; then :
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665 $as_echo_n "checking for $2... " >&6; }
1666 if eval \${$3+:} false; then :
1667 $as_echo_n "(cached) " >&6
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671 $as_echo "$ac_res" >&6; }
1673 # Is the header compilable?
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1675 $as_echo_n "checking $2 usability... " >&6; }
1676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677 /* end confdefs.h. */
1681 if ac_fn_c_try_compile "$LINENO"; then :
1682 ac_header_compiler=yes
1684 ac_header_compiler=no
1686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1688 $as_echo "$ac_header_compiler" >&6; }
1690 # Is the header present?
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1692 $as_echo_n "checking $2 presence... " >&6; }
1693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1694 /* end confdefs.h. */
1697 if ac_fn_c_try_cpp "$LINENO"; then :
1698 ac_header_preproc=yes
1700 ac_header_preproc=no
1702 rm -f conftest.err conftest.i conftest.$ac_ext
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1704 $as_echo "$ac_header_preproc" >&6; }
1706 # So? What about this header?
1707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1710 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1712 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1716 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1718 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1720 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1722 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1724 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1725 ( $as_echo "## ------------------------- ##
1726 ## Report this to des@des.no ##
1727 ## ------------------------- ##"
1728 ) | sed "s/^/$as_me: WARNING: /" >&2
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732 $as_echo_n "checking for $2... " >&6; }
1733 if eval \${$3+:} false; then :
1734 $as_echo_n "(cached) " >&6
1736 eval "$3=\$ac_header_compiler"
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740 $as_echo "$ac_res" >&6; }
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 } # ac_fn_c_check_header_mongrel
1746 # ac_fn_c_try_run LINENO
1747 # ----------------------
1748 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1749 # that executables *can* be run.
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 if { { ac_try="$ac_link"
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_link") 2>&5
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1764 { { case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_try") 2>&5
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; }; }; then :
1776 $as_echo "$as_me: program exited with status $ac_status" >&5
1777 $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1780 ac_retval=$ac_status
1782 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 as_fn_set_status $ac_retval
1788 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1789 # -------------------------------------------------------
1790 # Tests whether HEADER exists and can be compiled using the include files in
1791 # INCLUDES, setting the cache variable VAR accordingly.
1792 ac_fn_c_check_header_compile ()
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796 $as_echo_n "checking for $2... " >&6; }
1797 if eval \${$3+:} false; then :
1798 $as_echo_n "(cached) " >&6
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1805 if ac_fn_c_try_compile "$LINENO"; then :
1810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 } # ac_fn_c_check_header_compile
1819 # ac_fn_c_try_link LINENO
1820 # -----------------------
1821 # Try to link conftest.$ac_ext, and return whether this succeeded.
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 rm -f conftest.$ac_objext conftest$ac_exeext
1826 if { { ac_try="$ac_link"
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_link") 2>conftest.err
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && {
1842 test -z "$ac_c_werror_flag" ||
1843 test ! -s conftest.err
1844 } && test -s conftest$ac_exeext && {
1845 test "$cross_compiling" = yes ||
1846 test -x conftest$ac_exeext
1850 $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1855 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1856 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1857 # interfere with the next link command; also delete a directory that is
1858 # left behind by Apple's compiler. We do this before executing the actions.
1859 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861 as_fn_set_status $ac_retval
1863 } # ac_fn_c_try_link
1865 # ac_fn_c_check_func LINENO FUNC VAR
1866 # ----------------------------------
1867 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1868 ac_fn_c_check_func ()
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if eval \${$3+:} false; then :
1874 $as_echo_n "(cached) " >&6
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h. */
1878 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1880 #define $2 innocuous_$2
1882 /* System header to define __stub macros and hopefully few prototypes,
1883 which can conflict with char $2 (); below.
1884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1885 <limits.h> exists even on freestanding compilers. */
1888 # include <limits.h>
1890 # include <assert.h>
1895 /* Override any GCC internal prototype to avoid an error.
1896 Use char because int might match the return type of a GCC
1897 builtin and then its argument prototype would still apply. */
1902 /* The GNU C library defines this for functions which it implements
1903 to always fail with ENOSYS. Some functions are actually named
1904 something starting with __ and the normal name is an alias. */
1905 #if defined __stub_$2 || defined __stub___$2
1917 if ac_fn_c_try_link "$LINENO"; then :
1922 rm -f core conftest.err conftest.$ac_objext \
1923 conftest$ac_exeext conftest.$ac_ext
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930 } # ac_fn_c_check_func
1931 cat >config.log <<_ACEOF
1932 This file contains any messages produced by compilers while
1933 running configure, to aid debugging if configure makes a mistake.
1935 It was created by OpenPAM $as_me 20190224, which was
1936 generated by GNU Autoconf 2.69. Invocation command line was
1948 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1949 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1950 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1951 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1952 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1954 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1955 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1957 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1958 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1959 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1960 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1961 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1962 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1963 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 test -z "$as_dir" && as_dir=.
1972 $as_echo "PATH: $as_dir"
1988 # Keep a trace of the command line.
1989 # Strip out --no-create and --no-recursion so they do not pile up.
1990 # Strip out --silent because we don't want to record it for future runs.
1991 # Also quote any args containing shell meta-characters.
1992 # Make two passes to allow for proper duplicate-argument suppression.
1996 ac_must_keep_next=false
2002 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2004 | -silent | --silent | --silen | --sile | --sil)
2007 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2010 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2012 as_fn_append ac_configure_args1 " '$ac_arg'"
2013 if test $ac_must_keep_next = true; then
2014 ac_must_keep_next=false # Got value, back to normal.
2017 *=* | --config-cache | -C | -disable-* | --disable-* \
2018 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2019 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2020 | -with-* | --with-* | -without-* | --without-* | --x)
2021 case "$ac_configure_args0 " in
2022 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2025 -* ) ac_must_keep_next=true ;;
2028 as_fn_append ac_configure_args " '$ac_arg'"
2033 { ac_configure_args0=; unset ac_configure_args0;}
2034 { ac_configure_args1=; unset ac_configure_args1;}
2036 # When interrupted or exit'd, cleanup temporary files, and complete
2037 # config.log. We remove comments because anyway the quotes in there
2038 # would cause problems or look ugly.
2039 # WARNING: Use '\'' to represent an apostrophe within the trap.
2040 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2041 trap 'exit_status=$?
2042 # Save into config.log some information that might help in debugging.
2046 $as_echo "## ---------------- ##
2047 ## Cache variables. ##
2048 ## ---------------- ##"
2050 # The following way of writing the cache mishandles newlines in values,
2052 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2053 eval ac_val=\$$ac_var
2057 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2058 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2061 _ | IFS | as_nl) ;; #(
2062 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2063 *) { eval $ac_var=; unset $ac_var;} ;;
2068 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2069 *${as_nl}ac_space=\ *)
2071 "s/'\''/'\''\\\\'\'''\''/g;
2072 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2075 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2082 $as_echo "## ----------------- ##
2083 ## Output variables. ##
2084 ## ----------------- ##"
2086 for ac_var in $ac_subst_vars
2088 eval ac_val=\$$ac_var
2090 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2092 $as_echo "$ac_var='\''$ac_val'\''"
2096 if test -n "$ac_subst_files"; then
2097 $as_echo "## ------------------- ##
2098 ## File substitutions. ##
2099 ## ------------------- ##"
2101 for ac_var in $ac_subst_files
2103 eval ac_val=\$$ac_var
2105 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2107 $as_echo "$ac_var='\''$ac_val'\''"
2112 if test -s confdefs.h; then
2113 $as_echo "## ----------- ##
2120 test "$ac_signal" != 0 &&
2121 $as_echo "$as_me: caught signal $ac_signal"
2122 $as_echo "$as_me: exit $exit_status"
2124 rm -f core *.core core.conftest.* &&
2125 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2128 for ac_signal in 1 2 13 15; do
2129 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2133 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2134 rm -f -r conftest* confdefs.h
2136 $as_echo "/* confdefs.h */" > confdefs.h
2138 # Predefined preprocessor variables.
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_NAME "$PACKAGE_NAME"
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2152 cat >>confdefs.h <<_ACEOF
2153 #define PACKAGE_STRING "$PACKAGE_STRING"
2156 cat >>confdefs.h <<_ACEOF
2157 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2160 cat >>confdefs.h <<_ACEOF
2161 #define PACKAGE_URL "$PACKAGE_URL"
2165 # Let the site file select an alternate cache file if it wants to.
2166 # Prefer an explicitly selected file to automatically selected ones.
2169 if test -n "$CONFIG_SITE"; then
2170 # We do not want a PATH search for config.site.
2171 case $CONFIG_SITE in #((
2172 -*) ac_site_file1=./$CONFIG_SITE;;
2173 */*) ac_site_file1=$CONFIG_SITE;;
2174 *) ac_site_file1=./$CONFIG_SITE;;
2176 elif test "x$prefix" != xNONE; then
2177 ac_site_file1=$prefix/share/config.site
2178 ac_site_file2=$prefix/etc/config.site
2180 ac_site_file1=$ac_default_prefix/share/config.site
2181 ac_site_file2=$ac_default_prefix/etc/config.site
2183 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2185 test "x$ac_site_file" = xNONE && continue
2186 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2188 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2189 sed 's/^/| /' "$ac_site_file" >&5
2191 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2193 as_fn_error $? "failed to load site script $ac_site_file
2194 See \`config.log' for more details" "$LINENO" 5; }
2198 if test -r "$cache_file"; then
2199 # Some versions of bash will fail to source /dev/null (special files
2200 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2201 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2203 $as_echo "$as_me: loading cache $cache_file" >&6;}
2205 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2206 *) . "./$cache_file";;
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2211 $as_echo "$as_me: creating cache $cache_file" >&6;}
2215 # Check that the precious variables saved in the cache have kept the same
2217 ac_cache_corrupted=false
2218 for ac_var in $ac_precious_vars; do
2219 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2220 eval ac_new_set=\$ac_env_${ac_var}_set
2221 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2222 eval ac_new_val=\$ac_env_${ac_var}_value
2223 case $ac_old_set,$ac_new_set in
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2226 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2227 ac_cache_corrupted=: ;;
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2230 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2231 ac_cache_corrupted=: ;;
2234 if test "x$ac_old_val" != "x$ac_new_val"; then
2235 # differences in whitespace do not lead to failure.
2236 ac_old_val_w=`echo x $ac_old_val`
2237 ac_new_val_w=`echo x $ac_new_val`
2238 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2240 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2241 ac_cache_corrupted=:
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2244 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2245 eval $ac_var=\$ac_old_val
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2248 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2250 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2253 # Pass precious variables to config.status.
2254 if test "$ac_new_set" = set; then
2256 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2257 *) ac_arg=$ac_var=$ac_new_val ;;
2259 case " $ac_configure_args " in
2260 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2261 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2265 if $ac_cache_corrupted; then
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2269 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2270 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2272 ## -------------------- ##
2273 ## Main body of script. ##
2274 ## -------------------- ##
2277 ac_cpp='$CPP $CPPFLAGS'
2278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2285 am__api_version='1.16'
2288 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2289 if test -f "$ac_dir/install-sh"; then
2291 ac_install_sh="$ac_aux_dir/install-sh -c"
2293 elif test -f "$ac_dir/install.sh"; then
2295 ac_install_sh="$ac_aux_dir/install.sh -c"
2297 elif test -f "$ac_dir/shtool"; then
2299 ac_install_sh="$ac_aux_dir/shtool install -c"
2303 if test -z "$ac_aux_dir"; then
2304 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2307 # These three variables are undocumented and unsupported,
2308 # and are intended to be withdrawn in a future Autoconf release.
2309 # They can cause serious problems if a builder's source tree is in a directory
2310 # whose full name contains unusual characters.
2311 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2312 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2313 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2316 # Find a good install program. We prefer a C program (faster),
2317 # so one script is as good as another. But avoid the broken or
2318 # incompatible versions:
2319 # SysV /etc/install, /usr/sbin/install
2320 # SunOS /usr/etc/install
2321 # IRIX /sbin/install
2323 # AmigaOS /C/install, which installs bootblocks on floppy discs
2324 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2325 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2326 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2327 # OS/2's system install, which has a completely different semantic
2328 # ./install, which can be erroneously created by make from ./install.sh.
2329 # Reject install programs that cannot install multiple files.
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2331 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2332 if test -z "$INSTALL"; then
2333 if ${ac_cv_path_install+:} false; then :
2334 $as_echo_n "(cached) " >&6
2336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 test -z "$as_dir" && as_dir=.
2341 # Account for people who put trailing slashes in PATH elements.
2342 case $as_dir/ in #((
2343 ./ | .// | /[cC]/* | \
2344 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2345 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2348 # OSF1 and SCO ODT 3.0 have their own names for install.
2349 # Don't use installbsd from OSF since it installs stuff as root
2351 for ac_prog in ginstall scoinst install; do
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2354 if test $ac_prog = install &&
2355 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2356 # AIX install. It has an incompatible calling convention.
2358 elif test $ac_prog = install &&
2359 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2360 # program-specific install script used by HP pwplus--don't use.
2363 rm -rf conftest.one conftest.two conftest.dir
2364 echo one > conftest.one
2365 echo two > conftest.two
2367 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2368 test -s conftest.one && test -s conftest.two &&
2369 test -s conftest.dir/conftest.one &&
2370 test -s conftest.dir/conftest.two
2372 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2385 rm -rf conftest.one conftest.two conftest.dir
2388 if test "${ac_cv_path_install+set}" = set; then
2389 INSTALL=$ac_cv_path_install
2391 # As a last resort, use the slow shell script. Don't cache a
2392 # value for INSTALL within a source directory, because that will
2393 # break other packages using the cache if that directory is
2394 # removed, or if the value is a relative name.
2395 INSTALL=$ac_install_sh
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2399 $as_echo "$INSTALL" >&6; }
2401 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2402 # It thinks the first close brace ends the variable substitution.
2403 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2405 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2407 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2410 $as_echo_n "checking whether build environment is sane... " >&6; }
2411 # Reject unsafe characters in $srcdir or the absolute working directory
2412 # name. Accept space and tab only in the latter.
2416 *[\\\"\#\$\&\'\`$am_lf]*)
2417 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2420 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2421 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2424 # Do 'set' in a subshell so we don't clobber the current shell's
2425 # arguments. Must try -L first in case configure is actually a
2426 # symlink; some systems play weird games with the mod time of symlinks
2427 # (eg FreeBSD returns the mod time of the symlink's containing
2431 for am_try in 1 2; do
2432 echo "timestamp, slept: $am_has_slept" > conftest.file
2433 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2434 if test "$*" = "X"; then
2436 set X `ls -t "$srcdir/configure" conftest.file`
2438 if test "$*" != "X $srcdir/configure conftest.file" \
2439 && test "$*" != "X conftest.file $srcdir/configure"; then
2441 # If neither matched, then we have a broken ls. This can happen
2442 # if, for instance, CONFIG_SHELL is bash and it inherits a
2443 # broken ls alias from the environment. This has actually
2444 # happened. Such a system could not be considered "sane".
2445 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2446 alias in your environment" "$LINENO" 5
2448 if test "$2" = conftest.file || test $am_try -eq 2; then
2455 test "$2" = conftest.file
2461 as_fn_error $? "newly created file is older than distributed files!
2462 Check your system clock" "$LINENO" 5
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2465 $as_echo "yes" >&6; }
2466 # If we didn't sleep, we still need to ensure time stamps of config.status and
2467 # generated files are strictly newer.
2469 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2476 test "$program_prefix" != NONE &&
2477 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2478 # Use a double $ so make ignores it.
2479 test "$program_suffix" != NONE &&
2480 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2481 # Double any \ or $.
2482 # By default was `s,x,x', remove it if useless.
2483 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2484 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2486 # Expand $ac_aux_dir to an absolute path.
2487 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2489 if test x"${MISSING+set}" != xset; then
2492 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2494 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2497 # Use eval to expand $SHELL
2498 if eval "$MISSING --is-lightweight"; then
2499 am_missing_run="$MISSING "
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2503 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2506 if test x"${install_sh+set}" != xset; then
2509 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2511 install_sh="\${SHELL} $am_aux_dir/install-sh"
2515 # Installed binaries are usually stripped using 'strip' when the user
2516 # run "make install-strip". However 'strip' might not be the right
2517 # tool to use in cross-compilation environments, therefore Automake
2518 # will honor the 'STRIP' environment variable to overrule this program.
2519 if test "$cross_compiling" != no; then
2520 if test -n "$ac_tool_prefix"; then
2521 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2522 set dummy ${ac_tool_prefix}strip; ac_word=$2
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2524 $as_echo_n "checking for $ac_word... " >&6; }
2525 if ${ac_cv_prog_STRIP+:} false; then :
2526 $as_echo_n "(cached) " >&6
2528 if test -n "$STRIP"; then
2529 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 test -z "$as_dir" && as_dir=.
2536 for ac_exec_ext in '' $ac_executable_extensions; do
2537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2538 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 STRIP=$ac_cv_prog_STRIP
2549 if test -n "$STRIP"; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2551 $as_echo "$STRIP" >&6; }
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2554 $as_echo "no" >&6; }
2559 if test -z "$ac_cv_prog_STRIP"; then
2561 # Extract the first word of "strip", so it can be a program name with args.
2562 set dummy strip; ac_word=$2
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2564 $as_echo_n "checking for $ac_word... " >&6; }
2565 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2566 $as_echo_n "(cached) " >&6
2568 if test -n "$ac_ct_STRIP"; then
2569 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2578 ac_cv_prog_ac_ct_STRIP="strip"
2579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2589 if test -n "$ac_ct_STRIP"; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2591 $as_echo "$ac_ct_STRIP" >&6; }
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594 $as_echo "no" >&6; }
2597 if test "x$ac_ct_STRIP" = x; then
2600 case $cross_compiling:$ac_tool_warned in
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2604 ac_tool_warned=yes ;;
2609 STRIP="$ac_cv_prog_STRIP"
2613 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2616 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2617 if test -z "$MKDIR_P"; then
2618 if ${ac_cv_path_mkdir+:} false; then :
2619 $as_echo_n "(cached) " >&6
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2625 test -z "$as_dir" && as_dir=.
2626 for ac_prog in mkdir gmkdir; do
2627 for ac_exec_ext in '' $ac_executable_extensions; do
2628 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2629 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2630 'mkdir (GNU coreutils) '* | \
2631 'mkdir (coreutils) '* | \
2632 'mkdir (fileutils) '4.1*)
2633 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2643 test -d ./--version && rmdir ./--version
2644 if test "${ac_cv_path_mkdir+set}" = set; then
2645 MKDIR_P="$ac_cv_path_mkdir -p"
2647 # As a last resort, use the slow shell script. Don't cache a
2648 # value for MKDIR_P within a source directory, because that will
2649 # break other packages using the cache if that directory is
2650 # removed, or if the value is a relative name.
2651 MKDIR_P="$ac_install_sh -d"
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2655 $as_echo "$MKDIR_P" >&6; }
2657 for ac_prog in gawk mawk nawk awk
2659 # Extract the first word of "$ac_prog", so it can be a program name with args.
2660 set dummy $ac_prog; ac_word=$2
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662 $as_echo_n "checking for $ac_word... " >&6; }
2663 if ${ac_cv_prog_AWK+:} false; then :
2664 $as_echo_n "(cached) " >&6
2666 if test -n "$AWK"; then
2667 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2676 ac_cv_prog_AWK="$ac_prog"
2677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 if test -n "$AWK"; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2689 $as_echo "$AWK" >&6; }
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692 $as_echo "no" >&6; }
2696 test -n "$AWK" && break
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2700 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2702 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2703 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2704 $as_echo_n "(cached) " >&6
2706 cat >conftest.make <<\_ACEOF
2709 @echo '@@@%%%=$(MAKE)=@@@%%%'
2711 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2712 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2714 eval ac_cv_prog_make_${ac_make}_set=yes;;
2716 eval ac_cv_prog_make_${ac_make}_set=no;;
2720 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2722 $as_echo "yes" >&6; }
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 $as_echo "no" >&6; }
2727 SET_MAKE="MAKE=${MAKE-make}"
2730 rm -rf .tst 2>/dev/null
2731 mkdir .tst 2>/dev/null
2732 if test -d .tst; then
2737 rmdir .tst 2>/dev/null
2739 # Check whether --enable-silent-rules was given.
2740 if test "${enable_silent_rules+set}" = set; then :
2741 enableval=$enable_silent_rules;
2744 case $enable_silent_rules in # (((
2745 yes) AM_DEFAULT_VERBOSITY=0;;
2746 no) AM_DEFAULT_VERBOSITY=1;;
2747 *) AM_DEFAULT_VERBOSITY=1;;
2749 am_make=${MAKE-make}
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2751 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2752 if ${am_cv_make_support_nested_variables+:} false; then :
2753 $as_echo_n "(cached) " >&6
2755 if $as_echo 'TRUE=$(BAR$(V))
2761 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2762 am_cv_make_support_nested_variables=yes
2764 am_cv_make_support_nested_variables=no
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2768 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2769 if test $am_cv_make_support_nested_variables = yes; then
2771 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2773 AM_V=$AM_DEFAULT_VERBOSITY
2774 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2778 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2779 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2780 # is not polluted with repeated "-I."
2781 am__isrc=' -I$(srcdir)'
2782 # test to see if srcdir already configured
2783 if test -f $srcdir/config.status; then
2784 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2788 # test whether we have cygpath
2789 if test -z "$CYGPATH_W"; then
2790 if (cygpath --version) >/dev/null 2>/dev/null; then
2791 CYGPATH_W='cygpath -w'
2798 # Define the identity of the package.
2803 cat >>confdefs.h <<_ACEOF
2804 #define PACKAGE "$PACKAGE"
2808 cat >>confdefs.h <<_ACEOF
2809 #define VERSION "$VERSION"
2812 # Some tools Automake needs.
2814 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2817 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2820 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2823 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2826 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2828 # For better backward compatibility. To be removed once Automake 1.9.x
2829 # dies out for good. For more background, see:
2830 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2831 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2832 mkdir_p='$(MKDIR_P)'
2834 # We need awk for the "check" target (and possibly the TAP driver). The
2835 # system "awk" is bad on some platforms.
2836 # Always define AMTAR for backward compatibility. Yes, it's still used
2837 # in the wild :-( We should find a proper way to deprecate it ...
2841 # We'll loop over all known methods to create a tar archive until one works.
2842 _am_tools='gnutar pax cpio none'
2844 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2851 # POSIX will say in a future version that running "rm -f" with no argument
2852 # is OK; and we want to be able to make that assumption in our Makefile
2853 # recipes. So use an aggressive probe to check that the usage we want is
2854 # actually supported "in the wild" to an acceptable degree.
2855 # See automake bug#10828.
2856 # To make any issue more visible, cause the running configure to be aborted
2857 # by default if the 'rm' program in use doesn't match our expectations; the
2858 # user can still override this though.
2859 if rm -f && rm -fr && rm -rf; then : OK; else
2863 Your 'rm' program seems unable to run without file operands specified
2864 on the command line, even when the '-f' option is present. This is contrary
2865 to the behaviour of most rm programs out there, and not conforming with
2866 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2868 Please tell bug-automake@gnu.org about your system, including the value
2869 of your $PATH and any error possibly output before this message. This
2870 can help us improve future automake versions.
2873 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2874 echo 'Configuration will proceed anyway, since you have set the' >&2
2875 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2879 Aborting the configuration process, to ensure you take notice of the issue.
2881 You can download and install GNU coreutils to get an 'rm' implementation
2882 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2884 If you want to complete the configuration process using your problematic
2885 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2886 to "yes", and re-run configure.
2889 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2893 ac_config_headers="$ac_config_headers config.h"
2896 # C compiler and features
2898 ac_cpp='$CPP $CPPFLAGS'
2899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2904 ac_cpp='$CPP $CPPFLAGS'
2905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2908 if test -n "$ac_tool_prefix"; then
2909 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2910 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if ${ac_cv_prog_CC+:} false; then :
2914 $as_echo_n "(cached) " >&6
2916 if test -n "$CC"; then
2917 ac_cv_prog_CC="$CC" # Let the user override the test.
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 if test -n "$CC"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2939 $as_echo "$CC" >&6; }
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2947 if test -z "$ac_cv_prog_CC"; then
2949 # Extract the first word of "gcc", so it can be a program name with args.
2950 set dummy gcc; ac_word=$2
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2954 $as_echo_n "(cached) " >&6
2956 if test -n "$ac_ct_CC"; then
2957 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2966 ac_cv_prog_ac_ct_CC="gcc"
2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2977 if test -n "$ac_ct_CC"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2979 $as_echo "$ac_ct_CC" >&6; }
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2985 if test "x$ac_ct_CC" = x; then
2988 case $cross_compiling:$ac_tool_warned in
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2992 ac_tool_warned=yes ;;
3000 if test -z "$CC"; then
3001 if test -n "$ac_tool_prefix"; then
3002 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3003 set dummy ${ac_tool_prefix}cc; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if ${ac_cv_prog_CC+:} false; then :
3007 $as_echo_n "(cached) " >&6
3009 if test -n "$CC"; then
3010 ac_cv_prog_CC="$CC" # Let the user override the test.
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019 ac_cv_prog_CC="${ac_tool_prefix}cc"
3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 if test -n "$CC"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3032 $as_echo "$CC" >&6; }
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3041 if test -z "$CC"; then
3042 # Extract the first word of "cc", so it can be a program name with args.
3043 set dummy cc; ac_word=$2
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045 $as_echo_n "checking for $ac_word... " >&6; }
3046 if ${ac_cv_prog_CC+:} false; then :
3047 $as_echo_n "(cached) " >&6
3049 if test -n "$CC"; then
3050 ac_cv_prog_CC="$CC" # Let the user override the test.
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 test -z "$as_dir" && as_dir=.
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3060 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3061 ac_prog_rejected=yes
3065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 if test $ac_prog_rejected = yes; then
3073 # We found a bogon in the path, so make sure we never use it.
3074 set dummy $ac_cv_prog_CC
3076 if test $# != 0; then
3077 # We chose a different compiler from the bogus one.
3078 # However, it has the same basename, so the bogon will be chosen
3079 # first if we set CC to just the basename; use the full file name.
3081 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3087 if test -n "$CC"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3089 $as_echo "$CC" >&6; }
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3097 if test -z "$CC"; then
3098 if test -n "$ac_tool_prefix"; then
3099 for ac_prog in cl.exe
3101 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3102 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104 $as_echo_n "checking for $ac_word... " >&6; }
3105 if ${ac_cv_prog_CC+:} false; then :
3106 $as_echo_n "(cached) " >&6
3108 if test -n "$CC"; then
3109 ac_cv_prog_CC="$CC" # Let the user override the test.
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129 if test -n "$CC"; then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3131 $as_echo "$CC" >&6; }
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134 $as_echo "no" >&6; }
3138 test -n "$CC" && break
3141 if test -z "$CC"; then
3143 for ac_prog in cl.exe
3145 # Extract the first word of "$ac_prog", so it can be a program name with args.
3146 set dummy $ac_prog; ac_word=$2
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3148 $as_echo_n "checking for $ac_word... " >&6; }
3149 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3150 $as_echo_n "(cached) " >&6
3152 if test -n "$ac_ct_CC"; then
3153 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159 test -z "$as_dir" && as_dir=.
3160 for ac_exec_ext in '' $ac_executable_extensions; do
3161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3162 ac_cv_prog_ac_ct_CC="$ac_prog"
3163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3172 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3173 if test -n "$ac_ct_CC"; then
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3175 $as_echo "$ac_ct_CC" >&6; }
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 $as_echo "no" >&6; }
3182 test -n "$ac_ct_CC" && break
3185 if test "x$ac_ct_CC" = x; then
3188 case $cross_compiling:$ac_tool_warned in
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3192 ac_tool_warned=yes ;;
3201 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203 as_fn_error $? "no acceptable C compiler found in \$PATH
3204 See \`config.log' for more details" "$LINENO" 5; }
3206 # Provide some information about the compiler.
3207 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3210 for ac_option in --version -v -V -qversion; do
3211 { { ac_try="$ac_compiler $ac_option >&5"
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3217 $as_echo "$ac_try_echo"; } >&5
3218 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3220 if test -s conftest.err; then
3222 ... rest of stderr output deleted ...
3223 10q' conftest.err >conftest.er1
3224 cat conftest.er1 >&5
3226 rm -f conftest.er1 conftest.err
3227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228 test $ac_status = 0; }
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3242 ac_clean_files_save=$ac_clean_files
3243 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3244 # Try to create an executable without -o first, disregard a.out.
3245 # It will help us diagnose broken compilers, and finding out an intuition
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3248 $as_echo_n "checking whether the C compiler works... " >&6; }
3249 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3251 # The possible output files:
3252 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3255 for ac_file in $ac_files
3258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3259 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3264 if { { ac_try="$ac_link_default"
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270 $as_echo "$ac_try_echo"; } >&5
3271 (eval "$ac_link_default") 2>&5
3273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274 test $ac_status = 0; }; then :
3275 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3276 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3277 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3278 # so that the user can short-circuit this test for compilers unknown to
3280 for ac_file in $ac_files ''
3282 test -f "$ac_file" || continue
3284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3287 # We found the default executable, but exeext='' is most
3291 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3293 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3295 # We set ac_cv_exeext here because the later test for it is not
3296 # safe: cross compilers may not add the suffix if given an `-o'
3297 # argument, so we may need to know it at that point already.
3298 # Even if this section looks crufty: it has the advantage of
3305 test "$ac_cv_exeext" = no && ac_cv_exeext=
3310 if test -z "$ac_file"; then :
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 $as_echo "no" >&6; }
3313 $as_echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3318 as_fn_error 77 "C compiler cannot create executables
3319 See \`config.log' for more details" "$LINENO" 5; }
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3322 $as_echo "yes" >&6; }
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3325 $as_echo_n "checking for C compiler default output file name... " >&6; }
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3327 $as_echo "$ac_file" >&6; }
3328 ac_exeext=$ac_cv_exeext
3330 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3331 ac_clean_files=$ac_clean_files_save
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3333 $as_echo_n "checking for suffix of executables... " >&6; }
3334 if { { ac_try="$ac_link"
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3340 $as_echo "$ac_try_echo"; } >&5
3341 (eval "$ac_link") 2>&5
3343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344 test $ac_status = 0; }; then :
3345 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3346 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3347 # work properly (i.e., refer to `conftest.exe'), while it won't with
3349 for ac_file in conftest.exe conftest conftest.*; do
3350 test -f "$ac_file" || continue
3352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3353 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3361 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3362 See \`config.log' for more details" "$LINENO" 5; }
3364 rm -f conftest conftest$ac_cv_exeext
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3366 $as_echo "$ac_cv_exeext" >&6; }
3368 rm -f conftest.$ac_ext
3369 EXEEXT=$ac_cv_exeext
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h. */
3377 FILE *f = fopen ("conftest.out", "w");
3378 return ferror (f) || fclose (f) != 0;
3384 ac_clean_files="$ac_clean_files conftest.out"
3385 # Check that the compiler produces executables we can run. If not, either
3386 # the compiler is broken, or we cross compile.
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3388 $as_echo_n "checking whether we are cross compiling... " >&6; }
3389 if test "$cross_compiling" != yes; then
3390 { { ac_try="$ac_link"
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3396 $as_echo "$ac_try_echo"; } >&5
3397 (eval "$ac_link") 2>&5
3399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400 test $ac_status = 0; }
3401 if { ac_try='./conftest$ac_cv_exeext'
3402 { { case "(($ac_try" in
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407 $as_echo "$ac_try_echo"; } >&5
3408 (eval "$ac_try") 2>&5
3410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3411 test $ac_status = 0; }; }; then
3414 if test "$cross_compiling" = maybe; then
3417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3419 as_fn_error $? "cannot run C compiled programs.
3420 If you meant to cross compile, use \`--host'.
3421 See \`config.log' for more details" "$LINENO" 5; }
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3426 $as_echo "$cross_compiling" >&6; }
3428 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3429 ac_clean_files=$ac_clean_files_save
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3431 $as_echo_n "checking for suffix of object files... " >&6; }
3432 if ${ac_cv_objext+:} false; then :
3433 $as_echo_n "(cached) " >&6
3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436 /* end confdefs.h. */
3446 rm -f conftest.o conftest.obj
3447 if { { ac_try="$ac_compile"
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3453 $as_echo "$ac_try_echo"; } >&5
3454 (eval "$ac_compile") 2>&5
3456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457 test $ac_status = 0; }; then :
3458 for ac_file in conftest.o conftest.obj conftest.*; do
3459 test -f "$ac_file" || continue;
3461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3462 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3467 $as_echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472 as_fn_error $? "cannot compute suffix of object files: cannot compile
3473 See \`config.log' for more details" "$LINENO" 5; }
3475 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3478 $as_echo "$ac_cv_objext" >&6; }
3479 OBJEXT=$ac_cv_objext
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3482 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3483 if ${ac_cv_c_compiler_gnu+:} false; then :
3484 $as_echo_n "(cached) " >&6
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3500 if ac_fn_c_try_compile "$LINENO"; then :
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3510 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3511 if test $ac_compiler_gnu = yes; then
3516 ac_test_CFLAGS=${CFLAGS+set}
3517 ac_save_CFLAGS=$CFLAGS
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3519 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3520 if ${ac_cv_prog_cc_g+:} false; then :
3521 $as_echo_n "(cached) " >&6
3523 ac_save_c_werror_flag=$ac_c_werror_flag
3524 ac_c_werror_flag=yes
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h. */
3538 if ac_fn_c_try_compile "$LINENO"; then :
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h. */
3553 if ac_fn_c_try_compile "$LINENO"; then :
3556 ac_c_werror_flag=$ac_save_c_werror_flag
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3569 if ac_fn_c_try_compile "$LINENO"; then :
3572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 ac_c_werror_flag=$ac_save_c_werror_flag
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3580 $as_echo "$ac_cv_prog_cc_g" >&6; }
3581 if test "$ac_test_CFLAGS" = set; then
3582 CFLAGS=$ac_save_CFLAGS
3583 elif test $ac_cv_prog_cc_g = yes; then
3584 if test "$GCC" = yes; then
3590 if test "$GCC" = yes; then
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3597 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3598 if ${ac_cv_prog_cc_c89+:} false; then :
3599 $as_echo_n "(cached) " >&6
3601 ac_cv_prog_cc_c89=no
3603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604 /* end confdefs.h. */
3608 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3609 struct buf { int x; };
3610 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3611 static char *e (p, i)
3617 static char *f (char * (*g) (char **, int), char **p, ...)
3622 s = g (p, va_arg (v,int));
3627 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3628 function prototypes and stuff, but not '\xHH' hex character constants.
3629 These don't provoke an error unfortunately, instead are silently treated
3630 as 'x'. The following induces an error, until -std is added to get
3631 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3632 array size at least. It's necessary to write '\x00'==0 to get something
3633 that's true only with -std. */
3634 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3636 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3637 inside strings and character constants. */
3639 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3641 int test (int i, double x);
3642 struct s1 {int (*f) (int a);};
3643 struct s2 {int (*f) (double a);};
3644 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3650 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3655 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3656 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3658 CC="$ac_save_CC $ac_arg"
3659 if ac_fn_c_try_compile "$LINENO"; then :
3660 ac_cv_prog_cc_c89=$ac_arg
3662 rm -f core conftest.err conftest.$ac_objext
3663 test "x$ac_cv_prog_cc_c89" != "xno" && break
3665 rm -f conftest.$ac_ext
3670 case "x$ac_cv_prog_cc_c89" in
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3673 $as_echo "none needed" >&6; } ;;
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3676 $as_echo "unsupported" >&6; } ;;
3678 CC="$CC $ac_cv_prog_cc_c89"
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3680 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3682 if test "x$ac_cv_prog_cc_c89" != xno; then :
3687 ac_cpp='$CPP $CPPFLAGS'
3688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3693 ac_cpp='$CPP $CPPFLAGS'
3694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3698 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3699 if ${am_cv_prog_cc_c_o+:} false; then :
3700 $as_echo_n "(cached) " >&6
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3713 # Make sure it works both with $CC and with simple cc.
3714 # Following AC_PROG_CC_C_O, we do the test twice because some
3715 # compilers refuse to overwrite an existing .o file with -o,
3716 # though they will create one.
3717 am_cv_prog_cc_c_o=yes
3719 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3720 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } \
3724 && test -f conftest2.$ac_objext; then
3727 am_cv_prog_cc_c_o=no
3731 rm -f core conftest*
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3735 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3736 if test "$am_cv_prog_cc_c_o" != yes; then
3737 # Losing compiler, so override with the script.
3738 # FIXME: It is wrong to rewrite CC.
3739 # But if we don't then we get into trouble of one sort or another.
3740 # A longer-term fix would be to have automake use am__CC in this case,
3741 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3742 CC="$am_aux_dir/compile $CC"
3745 ac_cpp='$CPP $CPPFLAGS'
3746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3750 DEPDIR="${am__leading_dot}deps"
3752 ac_config_commands="$ac_config_commands depfiles"
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3755 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3756 cat > confinc.mk << 'END'
3758 @echo this is the am__doit target >confinc.out
3763 # BSD make does it like this.
3764 echo '.include "confinc.mk" # ignored' > confmf.BSD
3765 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3766 echo 'include confinc.mk # ignored' > confmf.GNU
3768 for s in GNU BSD; do
3769 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3770 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); }
3774 case $?:`cat confinc.out 2>/dev/null` in #(
3775 '0:this is the am__doit target') :
3778 am__include='.include' am__quote='"' ;; #(
3780 am__include='include' am__quote='' ;;
3785 if test "$am__include" != "#"; then
3786 _am_result="yes ($s style)"
3790 rm -f confinc.* confmf.*
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3792 $as_echo "${_am_result}" >&6; }
3794 # Check whether --enable-dependency-tracking was given.
3795 if test "${enable_dependency_tracking+set}" = set; then :
3796 enableval=$enable_dependency_tracking;
3799 if test "x$enable_dependency_tracking" != xno; then
3800 am_depcomp="$ac_aux_dir/depcomp"
3804 if test "x$enable_dependency_tracking" != xno; then
3814 depcc="$CC" am_compiler_list=
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3817 $as_echo_n "checking dependency style of $depcc... " >&6; }
3818 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3819 $as_echo_n "(cached) " >&6
3821 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3822 # We make a subdir and do the tests there. Otherwise we can end up
3823 # making bogus files that we don't know about and never remove. For
3824 # instance it was reported that on HP-UX the gcc test will end up
3825 # making a dummy file named 'D' -- because '-MD' means "put the output
3829 # Copy depcomp to subdir because otherwise we won't find it if we're
3830 # using a relative directory.
3831 cp "$am_depcomp" conftest.dir
3833 # We will build objects and dependencies in a subdirectory because
3834 # it helps to detect inapplicable dependency modes. For instance
3835 # both Tru64's cc and ICC support -MD to output dependencies as a
3836 # side effect of compilation, but ICC will put the dependencies in
3837 # the current directory while Tru64 will put them in the object
3841 am_cv_CC_dependencies_compiler_type=none
3842 if test "$am_compiler_list" = ""; then
3843 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3846 case " $depcc " in #(
3847 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3850 for depmode in $am_compiler_list; do
3851 # Setup a source with many dependencies, because some compilers
3852 # like to wrap large dependency lists on column 80 (with \), and
3853 # we should not choose a depcomp mode which is confused by this.
3855 # We need to recreate these files for each test, as the compiler may
3856 # overwrite some of them when testing with obscure command lines.
3857 # This happens at least with the AIX C compiler.
3859 for i in 1 2 3 4 5 6; do
3860 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3861 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3862 # Solaris 10 /bin/sh.
3863 echo '/* dummy */' > sub/conftst$i.h
3865 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3867 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3868 # mode. It turns out that the SunPro C++ compiler does not properly
3869 # handle '-M -o', and we need to detect this. Also, some Intel
3870 # versions had trouble with output in subdirs.
3871 am__obj=sub/conftest.${OBJEXT-o}
3872 am__minus_obj="-o $am__obj"
3875 # This depmode causes a compiler race in universal mode.
3876 test "$am__universal" = false || continue
3879 # After this tag, mechanisms are not by side-effect, so they'll
3880 # only be used when explicitly requested.
3881 if test "x$enable_dependency_tracking" = xyes; then
3887 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3888 # This compiler won't grok '-c -o', but also, the minuso test has
3889 # not run yet. These depmodes are late enough in the game, and
3890 # so weak that their functioning should not be impacted.
3891 am__obj=conftest.${OBJEXT-o}
3896 if depmode=$depmode \
3897 source=sub/conftest.c object=$am__obj \
3898 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3899 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3900 >/dev/null 2>conftest.err &&
3901 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3902 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3903 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3904 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3905 # icc doesn't choke on unknown options, it will just issue warnings
3906 # or remarks (even with -Werror). So we grep stderr for any message
3907 # that says an option was ignored or not supported.
3908 # When given -MP, icc 7.0 and 7.1 complain thusly:
3909 # icc: Command line warning: ignoring option '-M'; no argument required
3910 # The diagnosis changed in icc 8.0:
3911 # icc: Command line remark: option '-MP' not supported
3912 if (grep 'ignoring option' conftest.err ||
3913 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3914 am_cv_CC_dependencies_compiler_type=$depmode
3923 am_cv_CC_dependencies_compiler_type=none
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3928 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3929 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3932 test "x$enable_dependency_tracking" != xno \
3933 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3935 am__fastdepCC_FALSE='#'
3937 am__fastdepCC_TRUE='#'
3938 am__fastdepCC_FALSE=
3942 case $ac_cv_prog_cc_stdc in #(
3944 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3947 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3948 if ${ac_cv_prog_cc_c99+:} false; then :
3949 $as_echo_n "(cached) " >&6
3951 ac_cv_prog_cc_c99=no
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3956 #include <stdbool.h>
3961 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3962 #define debug(...) fprintf (stderr, __VA_ARGS__)
3963 #define showlist(...) puts (#__VA_ARGS__)
3964 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3966 test_varargs_macros (void)
3971 debug ("X = %d\n", x);
3972 showlist (The first, second, and third items.);
3973 report (x>y, "x is %d but y is %d", x, y);
3976 // Check long long types.
3977 #define BIG64 18446744073709551615ull
3978 #define BIG32 4294967295ul
3979 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3981 your preprocessor is broken;
3985 your preprocessor is broken;
3987 static long long int bignum = -9223372036854775807LL;
3988 static unsigned long long int ubignum = BIG64;
3990 struct incomplete_array
3998 const wchar_t *name;
4002 typedef const char *ccp;
4005 test_restrict (ccp restrict text)
4007 // See if C++-style comments work.
4008 // Iterate through items via the restricted pointer.
4009 // Also check for declarations in for loops.
4010 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4015 // Check varargs and va_copy.
4017 test_varargs (const char *format, ...)
4020 va_start (args, format);
4022 va_copy (args_copy, args);
4033 str = va_arg (args_copy, const char *);
4036 number = va_arg (args_copy, int);
4039 fnumber = va_arg (args_copy, double);
4054 _Bool success = false;
4057 if (test_restrict ("String literal") == 0)
4059 char *restrict newvar = "Another string";
4062 test_varargs ("s, d' f .", "string", 65, 34.234);
4063 test_varargs_macros ();
4065 // Check flexible array members.
4066 struct incomplete_array *ia =
4067 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4069 for (int i = 0; i < ia->datasize; ++i)
4070 ia->data[i] = i * 1.234;
4072 // Check named initializers.
4073 struct named_init ni = {
4075 .name = L"Test wide string",
4076 .average = 543.34343,
4081 int dynamic_array[ni.number];
4082 dynamic_array[ni.number - 1] = 543;
4084 // work around unused variable warnings
4085 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4086 || dynamic_array[ni.number - 1] != 543);
4092 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4094 CC="$ac_save_CC $ac_arg"
4095 if ac_fn_c_try_compile "$LINENO"; then :
4096 ac_cv_prog_cc_c99=$ac_arg
4098 rm -f core conftest.err conftest.$ac_objext
4099 test "x$ac_cv_prog_cc_c99" != "xno" && break
4101 rm -f conftest.$ac_ext
4106 case "x$ac_cv_prog_cc_c99" in
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4109 $as_echo "none needed" >&6; } ;;
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4112 $as_echo "unsupported" >&6; } ;;
4114 CC="$CC $ac_cv_prog_cc_c99"
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4116 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4118 if test "x$ac_cv_prog_cc_c99" != xno; then :
4119 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4122 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4123 if ${ac_cv_prog_cc_c89+:} false; then :
4124 $as_echo_n "(cached) " >&6
4126 ac_cv_prog_cc_c89=no
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4133 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4134 struct buf { int x; };
4135 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4136 static char *e (p, i)
4142 static char *f (char * (*g) (char **, int), char **p, ...)
4147 s = g (p, va_arg (v,int));
4152 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4153 function prototypes and stuff, but not '\xHH' hex character constants.
4154 These don't provoke an error unfortunately, instead are silently treated
4155 as 'x'. The following induces an error, until -std is added to get
4156 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4157 array size at least. It's necessary to write '\x00'==0 to get something
4158 that's true only with -std. */
4159 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4161 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4162 inside strings and character constants. */
4164 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4166 int test (int i, double x);
4167 struct s1 {int (*f) (int a);};
4168 struct s2 {int (*f) (double a);};
4169 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4175 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4180 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4181 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4183 CC="$ac_save_CC $ac_arg"
4184 if ac_fn_c_try_compile "$LINENO"; then :
4185 ac_cv_prog_cc_c89=$ac_arg
4187 rm -f core conftest.err conftest.$ac_objext
4188 test "x$ac_cv_prog_cc_c89" != "xno" && break
4190 rm -f conftest.$ac_ext
4195 case "x$ac_cv_prog_cc_c89" in
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4198 $as_echo "none needed" >&6; } ;;
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4201 $as_echo "unsupported" >&6; } ;;
4203 CC="$CC $ac_cv_prog_cc_c89"
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4205 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4207 if test "x$ac_cv_prog_cc_c89" != xno; then :
4208 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4210 ac_cv_prog_cc_stdc=no
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4217 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4218 if ${ac_cv_prog_cc_stdc+:} false; then :
4219 $as_echo_n "(cached) " >&6
4222 case $ac_cv_prog_cc_stdc in #(
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4225 $as_echo "unsupported" >&6; } ;; #(
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4228 $as_echo "none needed" >&6; } ;; #(
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4231 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4235 ac_cpp='$CPP $CPPFLAGS'
4236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4240 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4241 # On Suns, sometimes $CPP names a directory.
4242 if test -n "$CPP" && test -d "$CPP"; then
4245 if test -z "$CPP"; then
4246 if ${ac_cv_prog_CPP+:} false; then :
4247 $as_echo_n "(cached) " >&6
4249 # Double quotes because CPP needs to be expanded
4250 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4253 for ac_c_preproc_warn_flag in '' yes
4255 # Use a header file that comes with gcc, so configuring glibc
4256 # with a fresh cross-compiler works.
4257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4258 # <limits.h> exists even on freestanding compilers.
4259 # On the NeXT, cc -E runs the code through the compiler's parser,
4260 # not just through cpp. "Syntax error" is here to catch this case.
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h. */
4264 # include <limits.h>
4266 # include <assert.h>
4270 if ac_fn_c_try_cpp "$LINENO"; then :
4273 # Broken: fails on valid input.
4276 rm -f conftest.err conftest.i conftest.$ac_ext
4278 # OK, works on sane cases. Now check whether nonexistent headers
4279 # can be detected and how.
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4282 #include <ac_nonexistent.h>
4284 if ac_fn_c_try_cpp "$LINENO"; then :
4285 # Broken: success on invalid input.
4288 # Passes both tests.
4292 rm -f conftest.err conftest.i conftest.$ac_ext
4295 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4296 rm -f conftest.i conftest.err conftest.$ac_ext
4297 if $ac_preproc_ok; then :
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4310 $as_echo "$CPP" >&6; }
4312 for ac_c_preproc_warn_flag in '' yes
4314 # Use a header file that comes with gcc, so configuring glibc
4315 # with a fresh cross-compiler works.
4316 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4317 # <limits.h> exists even on freestanding compilers.
4318 # On the NeXT, cc -E runs the code through the compiler's parser,
4319 # not just through cpp. "Syntax error" is here to catch this case.
4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h. */
4323 # include <limits.h>
4325 # include <assert.h>
4329 if ac_fn_c_try_cpp "$LINENO"; then :
4332 # Broken: fails on valid input.
4335 rm -f conftest.err conftest.i conftest.$ac_ext
4337 # OK, works on sane cases. Now check whether nonexistent headers
4338 # can be detected and how.
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4341 #include <ac_nonexistent.h>
4343 if ac_fn_c_try_cpp "$LINENO"; then :
4344 # Broken: success on invalid input.
4347 # Passes both tests.
4351 rm -f conftest.err conftest.i conftest.$ac_ext
4354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4355 rm -f conftest.i conftest.err conftest.$ac_ext
4356 if $ac_preproc_ok; then :
4359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4361 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4362 See \`config.log' for more details" "$LINENO" 5; }
4366 ac_cpp='$CPP $CPPFLAGS'
4367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4374 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4375 if ${ac_cv_path_GREP+:} false; then :
4376 $as_echo_n "(cached) " >&6
4378 if test -z "$GREP"; then
4379 ac_path_GREP_found=false
4380 # Loop through the user's path and test for each of PROGNAME-LIST
4381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4385 test -z "$as_dir" && as_dir=.
4386 for ac_prog in grep ggrep; do
4387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4389 as_fn_executable_p "$ac_path_GREP" || continue
4390 # Check for GNU ac_path_GREP and select it if it is found.
4391 # Check for GNU $ac_path_GREP
4392 case `"$ac_path_GREP" --version 2>&1` in
4394 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4397 $as_echo_n 0123456789 >"conftest.in"
4400 cat "conftest.in" "conftest.in" >"conftest.tmp"
4401 mv "conftest.tmp" "conftest.in"
4402 cp "conftest.in" "conftest.nl"
4403 $as_echo 'GREP' >> "conftest.nl"
4404 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4405 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4406 as_fn_arith $ac_count + 1 && ac_count=$as_val
4407 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4408 # Best one so far, save it but keep looking for a better one
4409 ac_cv_path_GREP="$ac_path_GREP"
4410 ac_path_GREP_max=$ac_count
4412 # 10*(2^10) chars as input seems more than enough
4413 test $ac_count -gt 10 && break
4415 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4418 $ac_path_GREP_found && break 3
4423 if test -z "$ac_cv_path_GREP"; then
4424 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4427 ac_cv_path_GREP=$GREP
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4432 $as_echo "$ac_cv_path_GREP" >&6; }
4433 GREP="$ac_cv_path_GREP"
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4437 $as_echo_n "checking for egrep... " >&6; }
4438 if ${ac_cv_path_EGREP+:} false; then :
4439 $as_echo_n "(cached) " >&6
4441 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4442 then ac_cv_path_EGREP="$GREP -E"
4444 if test -z "$EGREP"; then
4445 ac_path_EGREP_found=false
4446 # Loop through the user's path and test for each of PROGNAME-LIST
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4451 test -z "$as_dir" && as_dir=.
4452 for ac_prog in egrep; do
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4455 as_fn_executable_p "$ac_path_EGREP" || continue
4456 # Check for GNU ac_path_EGREP and select it if it is found.
4457 # Check for GNU $ac_path_EGREP
4458 case `"$ac_path_EGREP" --version 2>&1` in
4460 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4463 $as_echo_n 0123456789 >"conftest.in"
4466 cat "conftest.in" "conftest.in" >"conftest.tmp"
4467 mv "conftest.tmp" "conftest.in"
4468 cp "conftest.in" "conftest.nl"
4469 $as_echo 'EGREP' >> "conftest.nl"
4470 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4471 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4472 as_fn_arith $ac_count + 1 && ac_count=$as_val
4473 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4474 # Best one so far, save it but keep looking for a better one
4475 ac_cv_path_EGREP="$ac_path_EGREP"
4476 ac_path_EGREP_max=$ac_count
4478 # 10*(2^10) chars as input seems more than enough
4479 test $ac_count -gt 10 && break
4481 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4484 $ac_path_EGREP_found && break 3
4489 if test -z "$ac_cv_path_EGREP"; then
4490 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4493 ac_cv_path_EGREP=$EGREP
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4499 $as_echo "$ac_cv_path_EGREP" >&6; }
4500 EGREP="$ac_cv_path_EGREP"
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4504 $as_echo_n "checking for ANSI C header files... " >&6; }
4505 if ${ac_cv_header_stdc+:} false; then :
4506 $as_echo_n "(cached) " >&6
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4523 if ac_fn_c_try_compile "$LINENO"; then :
4524 ac_cv_header_stdc=yes
4526 ac_cv_header_stdc=no
4528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4530 if test $ac_cv_header_stdc = yes; then
4531 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h. */
4537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4538 $EGREP "memchr" >/dev/null 2>&1; then :
4541 ac_cv_header_stdc=no
4547 if test $ac_cv_header_stdc = yes; then
4548 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550 /* end confdefs.h. */
4554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4555 $EGREP "free" >/dev/null 2>&1; then :
4558 ac_cv_header_stdc=no
4564 if test $ac_cv_header_stdc = yes; then
4565 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4566 if test "$cross_compiling" = yes; then :
4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h. */
4573 #if ((' ' & 0x0FF) == 0x020)
4574 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4575 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4577 # define ISLOWER(c) \
4578 (('a' <= (c) && (c) <= 'i') \
4579 || ('j' <= (c) && (c) <= 'r') \
4580 || ('s' <= (c) && (c) <= 'z'))
4581 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4584 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4589 for (i = 0; i < 256; i++)
4590 if (XOR (islower (i), ISLOWER (i))
4591 || toupper (i) != TOUPPER (i))
4596 if ac_fn_c_try_run "$LINENO"; then :
4599 ac_cv_header_stdc=no
4601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4602 conftest.$ac_objext conftest.beam conftest.$ac_ext
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4608 $as_echo "$ac_cv_header_stdc" >&6; }
4609 if test $ac_cv_header_stdc = yes; then
4611 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4615 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4616 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4617 inttypes.h stdint.h unistd.h
4619 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4620 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4622 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4623 cat >>confdefs.h <<_ACEOF
4624 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4633 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4634 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4641 if test "$MINIX" = yes; then
4643 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4646 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4649 $as_echo "#define _MINIX 1" >>confdefs.h
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4655 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4656 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4657 $as_echo_n "(cached) " >&6
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h. */
4662 # define __EXTENSIONS__ 1
4663 $ac_includes_default
4672 if ac_fn_c_try_compile "$LINENO"; then :
4673 ac_cv_safe_to_define___extensions__=yes
4675 ac_cv_safe_to_define___extensions__=no
4677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4680 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4681 test $ac_cv_safe_to_define___extensions__ = yes &&
4682 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4684 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4686 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4688 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4690 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4695 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4696 if ${ac_cv_c_const+:} false; then :
4697 $as_echo_n "(cached) " >&6
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4707 /* Ultrix mips cc rejects this sort of thing. */
4708 typedef int charset[2];
4709 const charset cs = { 0, 0 };
4710 /* SunOS 4.1.1 cc rejects this. */
4711 char const *const *pcpcc;
4713 /* NEC SVR4.0.2 mips cc rejects this. */
4714 struct point {int x, y;};
4715 static struct point const zero = {0,0};
4716 /* AIX XL C 1.02.0.0 rejects this.
4717 It does not let you subtract one const X* pointer from another in
4718 an arm of an if-expression whose if-part is not a constant
4720 const char *g = "string";
4721 pcpcc = &g + (g ? g-g : 0);
4722 /* HPUX 7.0 cc rejects these. */
4724 ppc = (char**) pcpcc;
4725 pcpcc = (char const *const *) ppc;
4726 { /* SCO 3.2v4 cc rejects this sort of thing. */
4729 char const *s = 0 ? (char *) 0 : (char const *) 0;
4734 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4736 const int *foo = &x[0];
4739 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4740 typedef const int *iptr;
4744 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4745 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4746 struct s { int j; const int *ap[3]; } bx;
4747 struct s *b = &bx; b->j = 5;
4749 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4753 return !cs[0] && !zero.x;
4760 if ac_fn_c_try_compile "$LINENO"; then :
4765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4768 $as_echo "$ac_cv_c_const" >&6; }
4769 if test $ac_cv_c_const = no; then
4771 $as_echo "#define const /**/" >>confdefs.h
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
4776 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
4777 if ${ac_cv_c_restrict+:} false; then :
4778 $as_echo_n "(cached) " >&6
4781 # The order here caters to the fact that C++ does not require restrict.
4782 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784 /* end confdefs.h. */
4785 typedef int * int_ptr;
4786 int foo (int_ptr $ac_kw ip) {
4800 if ac_fn_c_try_compile "$LINENO"; then :
4801 ac_cv_c_restrict=$ac_kw
4803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804 test "$ac_cv_c_restrict" != no && break
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
4809 $as_echo "$ac_cv_c_restrict" >&6; }
4811 case $ac_cv_c_restrict in
4813 no) $as_echo "#define restrict /**/" >>confdefs.h
4815 *) cat >>confdefs.h <<_ACEOF
4816 #define restrict $ac_cv_c_restrict
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
4822 $as_echo_n "checking for working volatile... " >&6; }
4823 if ${ac_cv_c_volatile+:} false; then :
4824 $as_echo_n "(cached) " >&6
4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4834 int * volatile y = (int *) 0;
4840 if ac_fn_c_try_compile "$LINENO"; then :
4841 ac_cv_c_volatile=yes
4845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
4848 $as_echo "$ac_cv_c_volatile" >&6; }
4849 if test $ac_cv_c_volatile = no; then
4851 $as_echo "#define volatile /**/" >>confdefs.h
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4861 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4866 macro_version='2.4.6'
4867 macro_revision='2.4.6'
4881 ltmain=$ac_aux_dir/ltmain.sh
4883 # Make sure we can run config.sub.
4884 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4885 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4888 $as_echo_n "checking build system type... " >&6; }
4889 if ${ac_cv_build+:} false; then :
4890 $as_echo_n "(cached) " >&6
4892 ac_build_alias=$build_alias
4893 test "x$ac_build_alias" = x &&
4894 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4895 test "x$ac_build_alias" = x &&
4896 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4897 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4898 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4902 $as_echo "$ac_cv_build" >&6; }
4903 case $ac_cv_build in
4905 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4908 ac_save_IFS=$IFS; IFS='-'
4914 # Remember, the first character of IFS is used to create $*,
4915 # except with old shells:
4918 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4922 $as_echo_n "checking host system type... " >&6; }
4923 if ${ac_cv_host+:} false; then :
4924 $as_echo_n "(cached) " >&6
4926 if test "x$host_alias" = x; then
4927 ac_cv_host=$ac_cv_build
4929 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4930 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4935 $as_echo "$ac_cv_host" >&6; }
4938 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4941 ac_save_IFS=$IFS; IFS='-'
4947 # Remember, the first character of IFS is used to create $*,
4948 # except with old shells:
4951 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4954 # Backslashify metacharacters that are still active within
4955 # double-quoted strings.
4956 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4958 # Same as above, but do not quote variable references.
4959 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4961 # Sed substitution to delay expansion of an escaped shell variable in a
4962 # double_quote_subst'ed string.
4963 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4965 # Sed substitution to delay expansion of an escaped single quote.
4966 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4968 # Sed substitution to avoid accidental globbing in evaled expressions
4969 no_glob_subst='s/\*/\\\*/g'
4971 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4972 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4973 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4976 $as_echo_n "checking how to print strings... " >&6; }
4977 # Test print first, because it will be a builtin if present.
4978 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4979 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4981 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4984 # Use this function as a fallback that always works.
4985 func_fallback_echo ()
4987 eval 'cat <<_LTECHO_EOF
4991 ECHO='func_fallback_echo'
4994 # func_echo_all arg...
4995 # Invoke $ECHO with all args, space-separated.
5002 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5003 $as_echo "printf" >&6; } ;;
5004 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5005 $as_echo "print -r" >&6; } ;;
5006 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5007 $as_echo "cat" >&6; } ;;
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5024 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5025 if ${ac_cv_path_SED+:} false; then :
5026 $as_echo_n "(cached) " >&6
5028 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5029 for ac_i in 1 2 3 4 5 6 7; do
5030 ac_script="$ac_script$as_nl$ac_script"
5032 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5033 { ac_script=; unset ac_script;}
5034 if test -z "$SED"; then
5035 ac_path_SED_found=false
5036 # Loop through the user's path and test for each of PROGNAME-LIST
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 test -z "$as_dir" && as_dir=.
5042 for ac_prog in sed gsed; do
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5045 as_fn_executable_p "$ac_path_SED" || continue
5046 # Check for GNU ac_path_SED and select it if it is found.
5047 # Check for GNU $ac_path_SED
5048 case `"$ac_path_SED" --version 2>&1` in
5050 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5053 $as_echo_n 0123456789 >"conftest.in"
5056 cat "conftest.in" "conftest.in" >"conftest.tmp"
5057 mv "conftest.tmp" "conftest.in"
5058 cp "conftest.in" "conftest.nl"
5059 $as_echo '' >> "conftest.nl"
5060 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5061 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5062 as_fn_arith $ac_count + 1 && ac_count=$as_val
5063 if test $ac_count -gt ${ac_path_SED_max-0}; then
5064 # Best one so far, save it but keep looking for a better one
5065 ac_cv_path_SED="$ac_path_SED"
5066 ac_path_SED_max=$ac_count
5068 # 10*(2^10) chars as input seems more than enough
5069 test $ac_count -gt 10 && break
5071 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5074 $ac_path_SED_found && break 3
5079 if test -z "$ac_cv_path_SED"; then
5080 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5088 $as_echo "$ac_cv_path_SED" >&6; }
5089 SED="$ac_cv_path_SED"
5092 test -z "$SED" && SED=sed
5093 Xsed="$SED -e 1s/^X//"
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5106 $as_echo_n "checking for fgrep... " >&6; }
5107 if ${ac_cv_path_FGREP+:} false; then :
5108 $as_echo_n "(cached) " >&6
5110 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5111 then ac_cv_path_FGREP="$GREP -F"
5113 if test -z "$FGREP"; then
5114 ac_path_FGREP_found=false
5115 # Loop through the user's path and test for each of PROGNAME-LIST
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5120 test -z "$as_dir" && as_dir=.
5121 for ac_prog in fgrep; do
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5124 as_fn_executable_p "$ac_path_FGREP" || continue
5125 # Check for GNU ac_path_FGREP and select it if it is found.
5126 # Check for GNU $ac_path_FGREP
5127 case `"$ac_path_FGREP" --version 2>&1` in
5129 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5132 $as_echo_n 0123456789 >"conftest.in"
5135 cat "conftest.in" "conftest.in" >"conftest.tmp"
5136 mv "conftest.tmp" "conftest.in"
5137 cp "conftest.in" "conftest.nl"
5138 $as_echo 'FGREP' >> "conftest.nl"
5139 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5140 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5141 as_fn_arith $ac_count + 1 && ac_count=$as_val
5142 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5143 # Best one so far, save it but keep looking for a better one
5144 ac_cv_path_FGREP="$ac_path_FGREP"
5145 ac_path_FGREP_max=$ac_count
5147 # 10*(2^10) chars as input seems more than enough
5148 test $ac_count -gt 10 && break
5150 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5153 $ac_path_FGREP_found && break 3
5158 if test -z "$ac_cv_path_FGREP"; then
5159 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5162 ac_cv_path_FGREP=$FGREP
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5168 $as_echo "$ac_cv_path_FGREP" >&6; }
5169 FGREP="$ac_cv_path_FGREP"
5172 test -z "$GREP" && GREP=grep
5192 # Check whether --with-gnu-ld was given.
5193 if test "${with_gnu_ld+set}" = set; then :
5194 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5200 if test yes = "$GCC"; then
5201 # Check if gcc -print-prog-name=ld gives a path.
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5203 $as_echo_n "checking for ld used by $CC... " >&6; }
5206 # gcc leaves a trailing carriage return, which upsets mingw
5207 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5209 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5212 # Accept absolute paths.
5214 re_direlt='/[^/][^/]*/\.\./'
5215 # Canonicalize the pathname of ld
5216 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5217 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5218 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5220 test -z "$LD" && LD=$ac_prog
5223 # If it fails, then pretend we aren't using GCC.
5227 # If it is relative, then search for the first ld in PATH.
5231 elif test yes = "$with_gnu_ld"; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5233 $as_echo_n "checking for GNU ld... " >&6; }
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5236 $as_echo_n "checking for non-GNU ld... " >&6; }
5238 if ${lt_cv_path_LD+:} false; then :
5239 $as_echo_n "(cached) " >&6
5241 if test -z "$LD"; then
5242 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5243 for ac_dir in $PATH; do
5245 test -z "$ac_dir" && ac_dir=.
5246 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5247 lt_cv_path_LD=$ac_dir/$ac_prog
5248 # Check to see if the program is GNU ld. I'd rather use --version,
5249 # but apparently some variants of GNU ld only accept -v.
5250 # Break only if it was the GNU/non-GNU ld that we prefer.
5251 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5252 *GNU* | *'with BFD'*)
5253 test no != "$with_gnu_ld" && break
5256 test yes != "$with_gnu_ld" && break
5263 lt_cv_path_LD=$LD # Let the user override the test with a path.
5268 if test -n "$LD"; then
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5270 $as_echo "$LD" >&6; }
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 $as_echo "no" >&6; }
5275 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5277 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5278 if ${lt_cv_prog_gnu_ld+:} false; then :
5279 $as_echo_n "(cached) " >&6
5281 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5282 case `$LD -v 2>&1 </dev/null` in
5283 *GNU* | *'with BFD'*)
5284 lt_cv_prog_gnu_ld=yes
5287 lt_cv_prog_gnu_ld=no
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5292 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5293 with_gnu_ld=$lt_cv_prog_gnu_ld
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5304 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5305 if ${lt_cv_path_NM+:} false; then :
5306 $as_echo_n "(cached) " >&6
5308 if test -n "$NM"; then
5309 # Let the user override the test.
5312 lt_nm_to_check=${ac_tool_prefix}nm
5313 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5314 lt_nm_to_check="$lt_nm_to_check nm"
5316 for lt_tmp_nm in $lt_nm_to_check; do
5317 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5318 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5320 test -z "$ac_dir" && ac_dir=.
5321 tmp_nm=$ac_dir/$lt_tmp_nm
5322 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5323 # Check to see if the nm accepts a BSD-compat flag.
5324 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5325 # nm: unknown option "B" ignored
5326 # Tru64's nm complains that /dev/null is an invalid object file
5327 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5329 mingw*) lt_bad_file=conftest.nm/nofile ;;
5330 *) lt_bad_file=/dev/null ;;
5332 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5333 *$lt_bad_file* | *'Invalid file or object type'*)
5334 lt_cv_path_NM="$tmp_nm -B"
5338 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5340 lt_cv_path_NM="$tmp_nm -p"
5344 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5345 continue # so that we can try to find one that supports BSD flags
5354 : ${lt_cv_path_NM=no}
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5358 $as_echo "$lt_cv_path_NM" >&6; }
5359 if test no != "$lt_cv_path_NM"; then
5362 # Didn't find any BSD compatible name lister, look for dumpbin.
5363 if test -n "$DUMPBIN"; then :
5364 # Let the user override the test.
5366 if test -n "$ac_tool_prefix"; then
5367 for ac_prog in dumpbin "link -dump"
5369 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5370 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5372 $as_echo_n "checking for $ac_word... " >&6; }
5373 if ${ac_cv_prog_DUMPBIN+:} false; then :
5374 $as_echo_n "(cached) " >&6
5376 if test -n "$DUMPBIN"; then
5377 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 test -z "$as_dir" && as_dir=.
5384 for ac_exec_ext in '' $ac_executable_extensions; do
5385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5386 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5396 DUMPBIN=$ac_cv_prog_DUMPBIN
5397 if test -n "$DUMPBIN"; then
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5399 $as_echo "$DUMPBIN" >&6; }
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5402 $as_echo "no" >&6; }
5406 test -n "$DUMPBIN" && break
5409 if test -z "$DUMPBIN"; then
5410 ac_ct_DUMPBIN=$DUMPBIN
5411 for ac_prog in dumpbin "link -dump"
5413 # Extract the first word of "$ac_prog", so it can be a program name with args.
5414 set dummy $ac_prog; ac_word=$2
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5416 $as_echo_n "checking for $ac_word... " >&6; }
5417 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5418 $as_echo_n "(cached) " >&6
5420 if test -n "$ac_ct_DUMPBIN"; then
5421 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 test -z "$as_dir" && as_dir=.
5428 for ac_exec_ext in '' $ac_executable_extensions; do
5429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5430 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5440 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5441 if test -n "$ac_ct_DUMPBIN"; then
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5443 $as_echo "$ac_ct_DUMPBIN" >&6; }
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 $as_echo "no" >&6; }
5450 test -n "$ac_ct_DUMPBIN" && break
5453 if test "x$ac_ct_DUMPBIN" = x; then
5456 case $cross_compiling:$ac_tool_warned in
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5460 ac_tool_warned=yes ;;
5462 DUMPBIN=$ac_ct_DUMPBIN
5466 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5468 DUMPBIN="$DUMPBIN -symbols -headers"
5476 if test : != "$DUMPBIN"; then
5480 test -z "$NM" && NM=nm
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5488 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5489 if ${lt_cv_nm_interface+:} false; then :
5490 $as_echo_n "(cached) " >&6
5492 lt_cv_nm_interface="BSD nm"
5493 echo "int some_variable = 0;" > conftest.$ac_ext
5494 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5495 (eval "$ac_compile" 2>conftest.err)
5496 cat conftest.err >&5
5497 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5498 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5499 cat conftest.err >&5
5500 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5501 cat conftest.out >&5
5502 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5503 lt_cv_nm_interface="MS dumpbin"
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5508 $as_echo "$lt_cv_nm_interface" >&6; }
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5511 $as_echo_n "checking whether ln -s works... " >&6; }
5513 if test "$LN_S" = "ln -s"; then
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5515 $as_echo "yes" >&6; }
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5518 $as_echo "no, using $LN_S" >&6; }
5521 # find the maximum length of command line arguments
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5523 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5524 if ${lt_cv_sys_max_cmd_len+:} false; then :
5525 $as_echo_n "(cached) " >&6
5532 # On DJGPP, this test can blow up pretty badly due to problems in libc
5533 # (any single argument exceeding 2000 bytes causes a buffer overrun
5534 # during glob expansion). Even if it were fixed, the result of this
5535 # check would be larger than it should be.
5536 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5540 # Under GNU Hurd, this test is not required because there is
5541 # no limit to the length of command line arguments.
5542 # Libtool will interpret -1 as no limit whatsoever
5543 lt_cv_sys_max_cmd_len=-1;
5546 cygwin* | mingw* | cegcc*)
5547 # On Win9x/ME, this test blows up -- it succeeds, but takes
5548 # about 5 minutes as the teststring grows exponentially.
5549 # Worse, since 9x/ME are not pre-emptively multitasking,
5550 # you end up with a "frozen" computer, even though with patience
5551 # the test eventually succeeds (with a max line length of 256k).
5552 # Instead, let's just punt: use the minimum linelength reported by
5553 # all of the supported platforms: 8192 (on NT/2K/XP).
5554 lt_cv_sys_max_cmd_len=8192;
5558 # On MiNT this can take a long time and run out of memory.
5559 lt_cv_sys_max_cmd_len=8192;
5563 # On AmigaOS with pdksh, this test takes hours, literally.
5564 # So we just punt and use a minimum line length of 8192.
5565 lt_cv_sys_max_cmd_len=8192;
5568 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5569 # This has been around since 386BSD, at least. Likely further.
5570 if test -x /sbin/sysctl; then
5571 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5572 elif test -x /usr/sbin/sysctl; then
5573 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5575 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5577 # And add a safety zone
5578 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5579 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5583 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5584 lt_cv_sys_max_cmd_len=196608
5588 # The test takes a long time on OS/2.
5589 lt_cv_sys_max_cmd_len=8192
5593 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5594 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5595 # nice to cause kernel panics so lets avoid the loop below.
5596 # First set a reasonable default.
5597 lt_cv_sys_max_cmd_len=16384
5599 if test -x /sbin/sysconfig; then
5600 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5601 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5606 lt_cv_sys_max_cmd_len=102400
5608 sysv5* | sco5v6* | sysv4.2uw2*)
5609 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5610 if test -n "$kargmax"; then
5611 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5613 lt_cv_sys_max_cmd_len=32768
5617 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5618 if test -n "$lt_cv_sys_max_cmd_len" && \
5619 test undefined != "$lt_cv_sys_max_cmd_len"; then
5620 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5623 # Make teststring a little bigger before we do anything with it.
5624 # a 1K string should be a reasonable start.
5625 for i in 1 2 3 4 5 6 7 8; do
5626 teststring=$teststring$teststring
5628 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5629 # If test is not a shell built-in, we'll probably end up computing a
5630 # maximum length that is only half of the actual maximum length, but
5632 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5633 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5634 test 17 != "$i" # 1/2 MB should be enough
5637 teststring=$teststring$teststring
5639 # Only check the string length outside the loop.
5640 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5642 # Add a significant safety factor because C++ compilers can tack on
5643 # massive amounts of additional arguments before passing them to the
5644 # linker. It appears as though 1/2 is a usable value.
5645 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5652 if test -n "$lt_cv_sys_max_cmd_len"; then
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5654 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5657 $as_echo "none" >&6; }
5659 max_cmd_len=$lt_cv_sys_max_cmd_len
5670 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5680 # test EBCDIC or ASCII
5681 case `echo X|tr X '\101'` in
5682 A) # ASCII based system
5683 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5684 lt_SP2NL='tr \040 \012'
5685 lt_NL2SP='tr \015\012 \040\040'
5687 *) # EBCDIC based system
5688 lt_SP2NL='tr \100 \n'
5689 lt_NL2SP='tr \r\n \100\100'
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5702 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5703 if ${lt_cv_to_host_file_cmd+:} false; then :
5704 $as_echo_n "(cached) " >&6
5709 *-*-mingw* ) # actually msys
5710 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5713 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5715 * ) # otherwise, assume *nix
5716 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5722 *-*-mingw* ) # actually msys
5723 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5726 lt_cv_to_host_file_cmd=func_convert_file_noop
5728 * ) # otherwise, assume *nix
5729 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5733 * ) # unhandled hosts (and "normal" native builds)
5734 lt_cv_to_host_file_cmd=func_convert_file_noop
5740 to_host_file_cmd=$lt_cv_to_host_file_cmd
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5742 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5749 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5750 if ${lt_cv_to_tool_file_cmd+:} false; then :
5751 $as_echo_n "(cached) " >&6
5753 #assume ordinary cross tools, or native build.
5754 lt_cv_to_tool_file_cmd=func_convert_file_noop
5758 *-*-mingw* ) # actually msys
5759 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5767 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5769 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5776 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5777 if ${lt_cv_ld_reload_flag+:} false; then :
5778 $as_echo_n "(cached) " >&6
5780 lt_cv_ld_reload_flag='-r'
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5783 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5784 reload_flag=$lt_cv_ld_reload_flag
5785 case $reload_flag in
5787 *) reload_flag=" $reload_flag" ;;
5789 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5791 cygwin* | mingw* | pw32* | cegcc*)
5792 if test yes != "$GCC"; then
5797 if test yes = "$GCC"; then
5798 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5800 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5813 if test -n "$ac_tool_prefix"; then
5814 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5815 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817 $as_echo_n "checking for $ac_word... " >&6; }
5818 if ${ac_cv_prog_OBJDUMP+:} false; then :
5819 $as_echo_n "(cached) " >&6
5821 if test -n "$OBJDUMP"; then
5822 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5831 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5841 OBJDUMP=$ac_cv_prog_OBJDUMP
5842 if test -n "$OBJDUMP"; then
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5844 $as_echo "$OBJDUMP" >&6; }
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847 $as_echo "no" >&6; }
5852 if test -z "$ac_cv_prog_OBJDUMP"; then
5853 ac_ct_OBJDUMP=$OBJDUMP
5854 # Extract the first word of "objdump", so it can be a program name with args.
5855 set dummy objdump; ac_word=$2
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5857 $as_echo_n "checking for $ac_word... " >&6; }
5858 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5859 $as_echo_n "(cached) " >&6
5861 if test -n "$ac_ct_OBJDUMP"; then
5862 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 test -z "$as_dir" && as_dir=.
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5871 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5882 if test -n "$ac_ct_OBJDUMP"; then
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5884 $as_echo "$ac_ct_OBJDUMP" >&6; }
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5887 $as_echo "no" >&6; }
5890 if test "x$ac_ct_OBJDUMP" = x; then
5893 case $cross_compiling:$ac_tool_warned in
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5897 ac_tool_warned=yes ;;
5899 OBJDUMP=$ac_ct_OBJDUMP
5902 OBJDUMP="$ac_cv_prog_OBJDUMP"
5905 test -z "$OBJDUMP" && OBJDUMP=objdump
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5916 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5917 if ${lt_cv_deplibs_check_method+:} false; then :
5918 $as_echo_n "(cached) " >&6
5920 lt_cv_file_magic_cmd='$MAGIC_CMD'
5921 lt_cv_file_magic_test_file=
5922 lt_cv_deplibs_check_method='unknown'
5923 # Need to set the preceding variable on all platforms that support
5924 # interlibrary dependencies.
5925 # 'none' -- dependencies not supported.
5926 # 'unknown' -- same as none, but documents that we really don't know.
5927 # 'pass_all' -- all dependencies passed with no checks.
5928 # 'test_compile' -- check by making test program.
5929 # 'file_magic [[regex]]' -- check by looking for files in library path
5930 # that responds to the $file_magic_cmd with a given extended regex.
5931 # If you have 'file' or equivalent on your system and you're not sure
5932 # whether 'pass_all' will *always* work, you probably want this one.
5936 lt_cv_deplibs_check_method=pass_all
5940 lt_cv_deplibs_check_method=pass_all
5944 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5945 lt_cv_file_magic_cmd='/usr/bin/file -L'
5946 lt_cv_file_magic_test_file=/shlib/libc.so
5950 # func_win32_libid is a shell function defined in ltmain.sh
5951 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5952 lt_cv_file_magic_cmd='func_win32_libid'
5956 # Base MSYS/MinGW do not provide the 'file' command needed by
5957 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5958 # unless we find 'file', for example because we are cross-compiling.
5959 if ( file / ) >/dev/null 2>&1; then
5960 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5961 lt_cv_file_magic_cmd='func_win32_libid'
5963 # Keep this pattern in sync with the one in func_win32_libid.
5964 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5965 lt_cv_file_magic_cmd='$OBJDUMP -f'
5970 # use the weaker test based on 'objdump'. See mingw*.
5971 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5972 lt_cv_file_magic_cmd='$OBJDUMP -f'
5975 darwin* | rhapsody*)
5976 lt_cv_deplibs_check_method=pass_all
5979 freebsd* | dragonfly*)
5980 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5983 # Not sure whether the presence of OpenBSD here was a mistake.
5984 # Let's accept both of them until this is cleared up.
5985 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5986 lt_cv_file_magic_cmd=/usr/bin/file
5987 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5991 lt_cv_deplibs_check_method=pass_all
5996 lt_cv_deplibs_check_method=pass_all
5999 hpux10.20* | hpux11*)
6000 lt_cv_file_magic_cmd=/usr/bin/file
6003 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6004 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6007 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]'
6008 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6011 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6012 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6018 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6019 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6022 irix5* | irix6* | nonstopux*)
6024 *-32|*"-32 ") libmagic=32-bit;;
6025 *-n32|*"-n32 ") libmagic=N32;;
6026 *-64|*"-64 ") libmagic=64-bit;;
6027 *) libmagic=never-match;;
6029 lt_cv_deplibs_check_method=pass_all
6032 # This must be glibc/ELF.
6033 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6034 lt_cv_deplibs_check_method=pass_all
6038 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6039 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6041 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6046 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6047 lt_cv_file_magic_cmd=/usr/bin/file
6048 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6052 lt_cv_deplibs_check_method=pass_all
6056 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6057 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6059 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6063 osf3* | osf4* | osf5*)
6064 lt_cv_deplibs_check_method=pass_all
6068 lt_cv_deplibs_check_method=pass_all
6072 lt_cv_deplibs_check_method=pass_all
6075 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6076 lt_cv_deplibs_check_method=pass_all
6080 case $host_vendor in
6082 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]'
6083 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6086 lt_cv_deplibs_check_method=pass_all
6089 lt_cv_file_magic_cmd='/bin/file'
6090 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6093 lt_cv_file_magic_cmd='/bin/file'
6094 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6095 lt_cv_file_magic_test_file=/lib/libc.so
6098 lt_cv_deplibs_check_method=pass_all
6101 lt_cv_deplibs_check_method=pass_all
6107 lt_cv_deplibs_check_method=pass_all
6110 lt_cv_deplibs_check_method=pass_all
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6116 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6120 if test "$build" = "$host"; then
6123 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6126 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6132 file_magic_cmd=$lt_cv_file_magic_cmd
6133 deplibs_check_method=$lt_cv_deplibs_check_method
6134 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6157 if test -n "$ac_tool_prefix"; then
6158 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6159 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161 $as_echo_n "checking for $ac_word... " >&6; }
6162 if ${ac_cv_prog_DLLTOOL+:} false; then :
6163 $as_echo_n "(cached) " >&6
6165 if test -n "$DLLTOOL"; then
6166 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172 test -z "$as_dir" && as_dir=.
6173 for ac_exec_ext in '' $ac_executable_extensions; do
6174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6175 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6185 DLLTOOL=$ac_cv_prog_DLLTOOL
6186 if test -n "$DLLTOOL"; then
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6188 $as_echo "$DLLTOOL" >&6; }
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6191 $as_echo "no" >&6; }
6196 if test -z "$ac_cv_prog_DLLTOOL"; then
6197 ac_ct_DLLTOOL=$DLLTOOL
6198 # Extract the first word of "dlltool", so it can be a program name with args.
6199 set dummy dlltool; ac_word=$2
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201 $as_echo_n "checking for $ac_word... " >&6; }
6202 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6203 $as_echo_n "(cached) " >&6
6205 if test -n "$ac_ct_DLLTOOL"; then
6206 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212 test -z "$as_dir" && as_dir=.
6213 for ac_exec_ext in '' $ac_executable_extensions; do
6214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6215 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6226 if test -n "$ac_ct_DLLTOOL"; then
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6228 $as_echo "$ac_ct_DLLTOOL" >&6; }
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6231 $as_echo "no" >&6; }
6234 if test "x$ac_ct_DLLTOOL" = x; then
6237 case $cross_compiling:$ac_tool_warned in
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6241 ac_tool_warned=yes ;;
6243 DLLTOOL=$ac_ct_DLLTOOL
6246 DLLTOOL="$ac_cv_prog_DLLTOOL"
6249 test -z "$DLLTOOL" && DLLTOOL=dlltool
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6261 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6262 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6263 $as_echo_n "(cached) " >&6
6265 lt_cv_sharedlib_from_linklib_cmd='unknown'
6268 cygwin* | mingw* | pw32* | cegcc*)
6269 # two different shell functions defined in ltmain.sh;
6270 # decide which one to use based on capabilities of $DLLTOOL
6271 case `$DLLTOOL --help 2>&1` in
6272 *--identify-strict*)
6273 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6276 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6281 # fallback: assume linklib IS sharedlib
6282 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6288 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6289 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6290 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6298 if test -n "$ac_tool_prefix"; then
6301 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6302 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304 $as_echo_n "checking for $ac_word... " >&6; }
6305 if ${ac_cv_prog_AR+:} false; then :
6306 $as_echo_n "(cached) " >&6
6308 if test -n "$AR"; then
6309 ac_cv_prog_AR="$AR" # Let the user override the test.
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 test -z "$as_dir" && as_dir=.
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6318 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6329 if test -n "$AR"; then
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6331 $as_echo "$AR" >&6; }
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334 $as_echo "no" >&6; }
6338 test -n "$AR" && break
6341 if test -z "$AR"; then
6345 # Extract the first word of "$ac_prog", so it can be a program name with args.
6346 set dummy $ac_prog; ac_word=$2
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348 $as_echo_n "checking for $ac_word... " >&6; }
6349 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6350 $as_echo_n "(cached) " >&6
6352 if test -n "$ac_ct_AR"; then
6353 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6362 ac_cv_prog_ac_ct_AR="$ac_prog"
6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6373 if test -n "$ac_ct_AR"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6375 $as_echo "$ac_ct_AR" >&6; }
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 $as_echo "no" >&6; }
6382 test -n "$ac_ct_AR" && break
6385 if test "x$ac_ct_AR" = x; then
6388 case $cross_compiling:$ac_tool_warned in
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6392 ac_tool_warned=yes ;;
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6412 $as_echo_n "checking for archiver @FILE support... " >&6; }
6413 if ${lt_cv_ar_at_file+:} false; then :
6414 $as_echo_n "(cached) " >&6
6417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6418 /* end confdefs.h. */
6428 if ac_fn_c_try_compile "$LINENO"; then :
6429 echo conftest.$ac_objext > conftest.lst
6430 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6432 (eval $lt_ar_try) 2>&5
6434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6435 test $ac_status = 0; }
6436 if test 0 -eq "$ac_status"; then
6437 # Ensure the archiver fails upon bogus file names.
6438 rm -f conftest.$ac_objext libconftest.a
6439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6440 (eval $lt_ar_try) 2>&5
6442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6443 test $ac_status = 0; }
6444 if test 0 -ne "$ac_status"; then
6448 rm -f conftest.* libconftest.a
6451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6455 $as_echo "$lt_cv_ar_at_file" >&6; }
6457 if test no = "$lt_cv_ar_at_file"; then
6460 archiver_list_spec=$lt_cv_ar_at_file
6469 if test -n "$ac_tool_prefix"; then
6470 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6471 set dummy ${ac_tool_prefix}strip; ac_word=$2
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473 $as_echo_n "checking for $ac_word... " >&6; }
6474 if ${ac_cv_prog_STRIP+:} false; then :
6475 $as_echo_n "(cached) " >&6
6477 if test -n "$STRIP"; then
6478 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6487 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497 STRIP=$ac_cv_prog_STRIP
6498 if test -n "$STRIP"; then
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6500 $as_echo "$STRIP" >&6; }
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503 $as_echo "no" >&6; }
6508 if test -z "$ac_cv_prog_STRIP"; then
6510 # Extract the first word of "strip", so it can be a program name with args.
6511 set dummy strip; ac_word=$2
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513 $as_echo_n "checking for $ac_word... " >&6; }
6514 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6515 $as_echo_n "(cached) " >&6
6517 if test -n "$ac_ct_STRIP"; then
6518 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524 test -z "$as_dir" && as_dir=.
6525 for ac_exec_ext in '' $ac_executable_extensions; do
6526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6527 ac_cv_prog_ac_ct_STRIP="strip"
6528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6537 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6538 if test -n "$ac_ct_STRIP"; then
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6540 $as_echo "$ac_ct_STRIP" >&6; }
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543 $as_echo "no" >&6; }
6546 if test "x$ac_ct_STRIP" = x; then
6549 case $cross_compiling:$ac_tool_warned in
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6553 ac_tool_warned=yes ;;
6558 STRIP="$ac_cv_prog_STRIP"
6561 test -z "$STRIP" && STRIP=:
6568 if test -n "$ac_tool_prefix"; then
6569 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6570 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6572 $as_echo_n "checking for $ac_word... " >&6; }
6573 if ${ac_cv_prog_RANLIB+:} false; then :
6574 $as_echo_n "(cached) " >&6
6576 if test -n "$RANLIB"; then
6577 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 test -z "$as_dir" && as_dir=.
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6586 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6596 RANLIB=$ac_cv_prog_RANLIB
6597 if test -n "$RANLIB"; then
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6599 $as_echo "$RANLIB" >&6; }
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 $as_echo "no" >&6; }
6607 if test -z "$ac_cv_prog_RANLIB"; then
6608 ac_ct_RANLIB=$RANLIB
6609 # Extract the first word of "ranlib", so it can be a program name with args.
6610 set dummy ranlib; ac_word=$2
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 $as_echo_n "checking for $ac_word... " >&6; }
6613 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6614 $as_echo_n "(cached) " >&6
6616 if test -n "$ac_ct_RANLIB"; then
6617 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 test -z "$as_dir" && as_dir=.
6624 for ac_exec_ext in '' $ac_executable_extensions; do
6625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6626 ac_cv_prog_ac_ct_RANLIB="ranlib"
6627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6636 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6637 if test -n "$ac_ct_RANLIB"; then
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6639 $as_echo "$ac_ct_RANLIB" >&6; }
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6645 if test "x$ac_ct_RANLIB" = x; then
6648 case $cross_compiling:$ac_tool_warned in
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6652 ac_tool_warned=yes ;;
6654 RANLIB=$ac_ct_RANLIB
6657 RANLIB="$ac_cv_prog_RANLIB"
6660 test -z "$RANLIB" && RANLIB=:
6667 # Determine commands to create old-style static archives.
6668 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6669 old_postinstall_cmds='chmod 644 $oldlib'
6670 old_postuninstall_cmds=
6672 if test -n "$RANLIB"; then
6675 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6678 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6681 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6686 lock_old_archive_extraction=yes ;;
6688 lock_old_archive_extraction=no ;;
6729 # If no C compiler was specified, use CC.
6732 # If no C compiler flags were specified, use CFLAGS.
6733 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6735 # Allow CC to be a program name with arguments.
6739 # Check for command to grab the raw symbol name followed by C symbol from nm.
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6741 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6742 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6743 $as_echo_n "(cached) " >&6
6746 # These are sane defaults that work on at least a few old systems.
6747 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6749 # Character class describing NM global symbol codes.
6750 symcode='[BCDEGRST]'
6752 # Regexp to match symbols that can be accessed directly from C.
6753 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6755 # Define system-specific variables.
6760 cygwin* | mingw* | pw32* | cegcc*)
6761 symcode='[ABCDGISTW]'
6764 if test ia64 = "$host_cpu"; then
6765 symcode='[ABCDEGRST]'
6769 symcode='[BCDEGRST]'
6772 symcode='[BCDEGQRST]'
6783 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6791 # If we're using GNU nm, then use its standard symbol codes.
6792 case `$NM -V 2>&1` in
6793 *GNU* | *'with BFD'*)
6794 symcode='[ABCDGIRSTW]' ;;
6797 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6798 # Gets list of data symbols to import.
6799 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6800 # Adjust the below global symbol transforms to fixup imported variables.
6801 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6802 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6803 lt_c_name_lib_hook="\
6804 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6805 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6807 # Disable hooks by default.
6808 lt_cv_sys_global_symbol_to_import=
6814 # Transform an extracted symbol line into a proper C declaration.
6815 # Some systems (esp. on ia64) link data and code symbols differently,
6816 # so use this general approach.
6817 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6819 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6820 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6822 # Transform an extracted symbol line into symbol name and symbol address
6823 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6825 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6826 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6828 # Transform an extracted symbol line into symbol name with lib prefix and
6830 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6831 $lt_c_name_lib_hook\
6832 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6833 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6834 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6836 # Handle CRLF in mingw tool chain
6840 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6844 # Try without a prefix underscore, then with it.
6845 for ac_symprfx in "" "_"; do
6847 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6848 symxfrm="\\1 $ac_symprfx\\2 \\2"
6850 # Write the raw and C identifiers.
6851 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6852 # Fake it for dumpbin and say T for any non-static function,
6853 # D for any global variable and I for any imported variable.
6854 # Also find C++ and __fastcall symbols from MSVC++,
6855 # which start with @ or ?.
6856 lt_cv_sys_global_symbol_pipe="$AWK '"\
6857 " {last_section=section; section=\$ 3};"\
6858 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6859 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6860 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6861 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6862 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6863 " \$ 0!~/External *\|/{next};"\
6864 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6865 " {if(hide[section]) next};"\
6866 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6867 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6868 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6869 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6870 " ' prfx=^$ac_symprfx"
6872 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6874 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6876 # Check to see that the pipe works correctly.
6880 cat > conftest.$ac_ext <<_LT_EOF
6885 void nm_test_func(void);
6886 void nm_test_func(void){}
6890 int main(){nm_test_var='a';nm_test_func();return(0);}
6893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6894 (eval $ac_compile) 2>&5
6896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6897 test $ac_status = 0; }; then
6898 # Now try to grab the symbols.
6900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6901 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6904 test $ac_status = 0; } && test -s "$nlist"; then
6905 # Try sorting and uniquifying the output.
6906 if sort "$nlist" | uniq > "$nlist"T; then
6907 mv -f "$nlist"T "$nlist"
6912 # Make sure that we snagged all the symbols we need.
6913 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6914 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6915 cat <<_LT_EOF > conftest.$ac_ext
6916 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6917 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6918 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6919 relocations are performed -- see ld's documentation on pseudo-relocs. */
6920 # define LT_DLSYM_CONST
6921 #elif defined __osf__
6922 /* This system does not cope well with relocations in const data. */
6923 # define LT_DLSYM_CONST
6925 # define LT_DLSYM_CONST const
6933 # Now generate the symbol file.
6934 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6936 cat <<_LT_EOF >> conftest.$ac_ext
6938 /* The mapping between symbol names and symbols. */
6939 LT_DLSYM_CONST struct {
6943 lt__PROGRAM__LTX_preloaded_symbols[] =
6945 { "@PROGRAM@", (void *) 0 },
6947 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6948 cat <<\_LT_EOF >> conftest.$ac_ext
6952 /* This works around a problem in FreeBSD linker */
6953 #ifdef FREEBSD_WORKAROUND
6954 static const void *lt_preloaded_setup() {
6955 return lt__PROGRAM__LTX_preloaded_symbols;
6963 # Now try linking the two files.
6964 mv conftest.$ac_objext conftstm.$ac_objext
6965 lt_globsym_save_LIBS=$LIBS
6966 lt_globsym_save_CFLAGS=$CFLAGS
6967 LIBS=conftstm.$ac_objext
6968 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6969 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6970 (eval $ac_link) 2>&5
6972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6973 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6976 LIBS=$lt_globsym_save_LIBS
6977 CFLAGS=$lt_globsym_save_CFLAGS
6979 echo "cannot find nm_test_func in $nlist" >&5
6982 echo "cannot find nm_test_var in $nlist" >&5
6985 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6988 echo "$progname: failed program was:" >&5
6989 cat conftest.$ac_ext >&5
6991 rm -rf conftest* conftst*
6993 # Do not use the global_symbol_pipe unless it works.
6994 if test yes = "$pipe_works"; then
6997 lt_cv_sys_global_symbol_pipe=
7003 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7004 lt_cv_sys_global_symbol_to_cdecl=
7006 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7008 $as_echo "failed" >&6; }
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7011 $as_echo "ok" >&6; }
7014 # Response file support.
7015 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7016 nm_file_list_spec='@'
7017 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7018 nm_file_list_spec='@'
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7058 $as_echo_n "checking for sysroot... " >&6; }
7060 # Check whether --with-sysroot was given.
7061 if test "${with_sysroot+set}" = set; then :
7062 withval=$with_sysroot;
7069 case $with_sysroot in #(
7071 if test yes = "$GCC"; then
7072 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7076 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7082 $as_echo "$with_sysroot" >&6; }
7083 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7088 $as_echo "${lt_sysroot:-no}" >&6; }
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7095 $as_echo_n "checking for a working dd... " >&6; }
7096 if ${ac_cv_path_lt_DD+:} false; then :
7097 $as_echo_n "(cached) " >&6
7099 printf 0123456789abcdef0123456789abcdef >conftest.i
7100 cat conftest.i conftest.i >conftest2.i
7102 if test -z "$lt_DD"; then
7103 ac_path_lt_DD_found=false
7104 # Loop through the user's path and test for each of PROGNAME-LIST
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 test -z "$as_dir" && as_dir=.
7110 for ac_prog in dd; do
7111 for ac_exec_ext in '' $ac_executable_extensions; do
7112 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7113 as_fn_executable_p "$ac_path_lt_DD" || continue
7114 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7115 cmp -s conftest.i conftest.out \
7116 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7118 $ac_path_lt_DD_found && break 3
7123 if test -z "$ac_cv_path_lt_DD"; then
7127 ac_cv_path_lt_DD=$lt_DD
7130 rm -f conftest.i conftest2.i conftest.out
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7133 $as_echo "$ac_cv_path_lt_DD" >&6; }
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7137 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7138 if ${lt_cv_truncate_bin+:} false; then :
7139 $as_echo_n "(cached) " >&6
7141 printf 0123456789abcdef0123456789abcdef >conftest.i
7142 cat conftest.i conftest.i >conftest2.i
7144 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7145 cmp -s conftest.i conftest.out \
7146 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7148 rm -f conftest.i conftest2.i conftest.out
7149 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7152 $as_echo "$lt_cv_truncate_bin" >&6; }
7160 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7163 for cc_temp in $*""; do
7165 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7166 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7171 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7174 # Check whether --enable-libtool-lock was given.
7175 if test "${enable_libtool_lock+set}" = set; then :
7176 enableval=$enable_libtool_lock;
7179 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7181 # Some flags need to be propagated to the compiler or linker for good
7185 # Find out what ABI is being produced by ac_compile, and set mode
7186 # options accordingly.
7187 echo 'int i;' > conftest.$ac_ext
7188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7189 (eval $ac_compile) 2>&5
7191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7192 test $ac_status = 0; }; then
7193 case `/usr/bin/file conftest.$ac_objext` in
7205 # Find out what ABI is being produced by ac_compile, and set linker
7206 # options accordingly.
7207 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7209 (eval $ac_compile) 2>&5
7211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7212 test $ac_status = 0; }; then
7213 if test yes = "$lt_cv_prog_gnu_ld"; then
7214 case `/usr/bin/file conftest.$ac_objext` in
7216 LD="${LD-ld} -melf32bsmip"
7219 LD="${LD-ld} -melf32bmipn32"
7222 LD="${LD-ld} -melf64bmip"
7226 case `/usr/bin/file conftest.$ac_objext` in
7243 # Find out what ABI is being produced by ac_compile, and set linker
7244 # options accordingly.
7245 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7247 (eval $ac_compile) 2>&5
7249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7250 test $ac_status = 0; }; then
7252 case `/usr/bin/file conftest.$ac_objext` in
7260 case `/usr/bin/file conftest.$ac_objext` in
7262 emul="${emul}btsmip"
7265 emul="${emul}ltsmip"
7268 case `/usr/bin/file conftest.$ac_objext` in
7273 LD="${LD-ld} -m $emul"
7278 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7279 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7280 # Find out what ABI is being produced by ac_compile, and set linker
7281 # options accordingly. Note that the listed cases only cover the
7282 # situations where additional linker options are needed (such as when
7283 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7284 # vice versa); the common cases where no linker options are needed do
7285 # not appear in the list.
7286 echo 'int i;' > conftest.$ac_ext
7287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7288 (eval $ac_compile) 2>&5
7290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7291 test $ac_status = 0; }; then
7292 case `/usr/bin/file conftest.o` in
7295 x86_64-*kfreebsd*-gnu)
7296 LD="${LD-ld} -m elf_i386_fbsd"
7299 case `/usr/bin/file conftest.o` in
7301 LD="${LD-ld} -m elf32_x86_64"
7304 LD="${LD-ld} -m elf_i386"
7308 powerpc64le-*linux*)
7309 LD="${LD-ld} -m elf32lppclinux"
7312 LD="${LD-ld} -m elf32ppclinux"
7315 LD="${LD-ld} -m elf_s390"
7318 LD="${LD-ld} -m elf32_sparc"
7324 x86_64-*kfreebsd*-gnu)
7325 LD="${LD-ld} -m elf_x86_64_fbsd"
7328 LD="${LD-ld} -m elf_x86_64"
7331 LD="${LD-ld} -m elf64lppc"
7334 LD="${LD-ld} -m elf64ppc"
7336 s390*-*linux*|s390*-*tpf*)
7337 LD="${LD-ld} -m elf64_s390"
7340 LD="${LD-ld} -m elf64_sparc"
7350 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7352 CFLAGS="$CFLAGS -belf"
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7354 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7355 if ${lt_cv_cc_needs_belf+:} false; then :
7356 $as_echo_n "(cached) " >&6
7359 ac_cpp='$CPP $CPPFLAGS'
7360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365 /* end confdefs.h. */
7375 if ac_fn_c_try_link "$LINENO"; then :
7376 lt_cv_cc_needs_belf=yes
7378 lt_cv_cc_needs_belf=no
7380 rm -f core conftest.err conftest.$ac_objext \
7381 conftest$ac_exeext conftest.$ac_ext
7383 ac_cpp='$CPP $CPPFLAGS'
7384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7390 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7391 if test yes != "$lt_cv_cc_needs_belf"; then
7392 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7397 # Find out what ABI is being produced by ac_compile, and set linker
7398 # options accordingly.
7399 echo 'int i;' > conftest.$ac_ext
7400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7401 (eval $ac_compile) 2>&5
7403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7404 test $ac_status = 0; }; then
7405 case `/usr/bin/file conftest.o` in
7407 case $lt_cv_prog_gnu_ld in
7410 i?86-*-solaris*|x86_64-*-solaris*)
7411 LD="${LD-ld} -m elf_x86_64"
7414 LD="${LD-ld} -m elf64_sparc"
7417 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7418 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7423 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7435 need_locks=$enable_libtool_lock
7437 if test -n "$ac_tool_prefix"; then
7438 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7439 set dummy ${ac_tool_prefix}mt; ac_word=$2
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7441 $as_echo_n "checking for $ac_word... " >&6; }
7442 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7443 $as_echo_n "(cached) " >&6
7445 if test -n "$MANIFEST_TOOL"; then
7446 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 test -z "$as_dir" && as_dir=.
7453 for ac_exec_ext in '' $ac_executable_extensions; do
7454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7455 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7466 if test -n "$MANIFEST_TOOL"; then
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7468 $as_echo "$MANIFEST_TOOL" >&6; }
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7471 $as_echo "no" >&6; }
7476 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7477 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7478 # Extract the first word of "mt", so it can be a program name with args.
7479 set dummy mt; ac_word=$2
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7481 $as_echo_n "checking for $ac_word... " >&6; }
7482 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7483 $as_echo_n "(cached) " >&6
7485 if test -n "$ac_ct_MANIFEST_TOOL"; then
7486 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 test -z "$as_dir" && as_dir=.
7493 for ac_exec_ext in '' $ac_executable_extensions; do
7494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7495 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7505 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7506 if test -n "$ac_ct_MANIFEST_TOOL"; then
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7508 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7511 $as_echo "no" >&6; }
7514 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7517 case $cross_compiling:$ac_tool_warned in
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7521 ac_tool_warned=yes ;;
7523 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7526 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7529 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7531 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7532 if ${lt_cv_path_mainfest_tool+:} false; then :
7533 $as_echo_n "(cached) " >&6
7535 lt_cv_path_mainfest_tool=no
7536 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7537 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7538 cat conftest.err >&5
7539 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7540 lt_cv_path_mainfest_tool=yes
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7545 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7546 if test yes != "$lt_cv_path_mainfest_tool"; then
7556 rhapsody* | darwin*)
7557 if test -n "$ac_tool_prefix"; then
7558 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7559 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561 $as_echo_n "checking for $ac_word... " >&6; }
7562 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7563 $as_echo_n "(cached) " >&6
7565 if test -n "$DSYMUTIL"; then
7566 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572 test -z "$as_dir" && as_dir=.
7573 for ac_exec_ext in '' $ac_executable_extensions; do
7574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7575 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7585 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7586 if test -n "$DSYMUTIL"; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7588 $as_echo "$DSYMUTIL" >&6; }
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591 $as_echo "no" >&6; }
7596 if test -z "$ac_cv_prog_DSYMUTIL"; then
7597 ac_ct_DSYMUTIL=$DSYMUTIL
7598 # Extract the first word of "dsymutil", so it can be a program name with args.
7599 set dummy dsymutil; ac_word=$2
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7601 $as_echo_n "checking for $ac_word... " >&6; }
7602 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7603 $as_echo_n "(cached) " >&6
7605 if test -n "$ac_ct_DSYMUTIL"; then
7606 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 test -z "$as_dir" && as_dir=.
7613 for ac_exec_ext in '' $ac_executable_extensions; do
7614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7615 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7625 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7626 if test -n "$ac_ct_DSYMUTIL"; then
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7628 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631 $as_echo "no" >&6; }
7634 if test "x$ac_ct_DSYMUTIL" = x; then
7637 case $cross_compiling:$ac_tool_warned in
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7641 ac_tool_warned=yes ;;
7643 DSYMUTIL=$ac_ct_DSYMUTIL
7646 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7649 if test -n "$ac_tool_prefix"; then
7650 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7651 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7653 $as_echo_n "checking for $ac_word... " >&6; }
7654 if ${ac_cv_prog_NMEDIT+:} false; then :
7655 $as_echo_n "(cached) " >&6
7657 if test -n "$NMEDIT"; then
7658 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 test -z "$as_dir" && as_dir=.
7665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7667 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 NMEDIT=$ac_cv_prog_NMEDIT
7678 if test -n "$NMEDIT"; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7680 $as_echo "$NMEDIT" >&6; }
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683 $as_echo "no" >&6; }
7688 if test -z "$ac_cv_prog_NMEDIT"; then
7689 ac_ct_NMEDIT=$NMEDIT
7690 # Extract the first word of "nmedit", so it can be a program name with args.
7691 set dummy nmedit; ac_word=$2
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7693 $as_echo_n "checking for $ac_word... " >&6; }
7694 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7695 $as_echo_n "(cached) " >&6
7697 if test -n "$ac_ct_NMEDIT"; then
7698 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7704 test -z "$as_dir" && as_dir=.
7705 for ac_exec_ext in '' $ac_executable_extensions; do
7706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7707 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7718 if test -n "$ac_ct_NMEDIT"; then
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7720 $as_echo "$ac_ct_NMEDIT" >&6; }
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723 $as_echo "no" >&6; }
7726 if test "x$ac_ct_NMEDIT" = x; then
7729 case $cross_compiling:$ac_tool_warned in
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7733 ac_tool_warned=yes ;;
7735 NMEDIT=$ac_ct_NMEDIT
7738 NMEDIT="$ac_cv_prog_NMEDIT"
7741 if test -n "$ac_tool_prefix"; then
7742 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7743 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7745 $as_echo_n "checking for $ac_word... " >&6; }
7746 if ${ac_cv_prog_LIPO+:} false; then :
7747 $as_echo_n "(cached) " >&6
7749 if test -n "$LIPO"; then
7750 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756 test -z "$as_dir" && as_dir=.
7757 for ac_exec_ext in '' $ac_executable_extensions; do
7758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7759 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7769 LIPO=$ac_cv_prog_LIPO
7770 if test -n "$LIPO"; then
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7772 $as_echo "$LIPO" >&6; }
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775 $as_echo "no" >&6; }
7780 if test -z "$ac_cv_prog_LIPO"; then
7782 # Extract the first word of "lipo", so it can be a program name with args.
7783 set dummy lipo; ac_word=$2
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785 $as_echo_n "checking for $ac_word... " >&6; }
7786 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7787 $as_echo_n "(cached) " >&6
7789 if test -n "$ac_ct_LIPO"; then
7790 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796 test -z "$as_dir" && as_dir=.
7797 for ac_exec_ext in '' $ac_executable_extensions; do
7798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7799 ac_cv_prog_ac_ct_LIPO="lipo"
7800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7810 if test -n "$ac_ct_LIPO"; then
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7812 $as_echo "$ac_ct_LIPO" >&6; }
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815 $as_echo "no" >&6; }
7818 if test "x$ac_ct_LIPO" = x; then
7821 case $cross_compiling:$ac_tool_warned in
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7825 ac_tool_warned=yes ;;
7830 LIPO="$ac_cv_prog_LIPO"
7833 if test -n "$ac_tool_prefix"; then
7834 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7835 set dummy ${ac_tool_prefix}otool; ac_word=$2
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7837 $as_echo_n "checking for $ac_word... " >&6; }
7838 if ${ac_cv_prog_OTOOL+:} false; then :
7839 $as_echo_n "(cached) " >&6
7841 if test -n "$OTOOL"; then
7842 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 test -z "$as_dir" && as_dir=.
7849 for ac_exec_ext in '' $ac_executable_extensions; do
7850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7851 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7861 OTOOL=$ac_cv_prog_OTOOL
7862 if test -n "$OTOOL"; then
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7864 $as_echo "$OTOOL" >&6; }
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867 $as_echo "no" >&6; }
7872 if test -z "$ac_cv_prog_OTOOL"; then
7874 # Extract the first word of "otool", so it can be a program name with args.
7875 set dummy otool; ac_word=$2
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877 $as_echo_n "checking for $ac_word... " >&6; }
7878 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7879 $as_echo_n "(cached) " >&6
7881 if test -n "$ac_ct_OTOOL"; then
7882 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7888 test -z "$as_dir" && as_dir=.
7889 for ac_exec_ext in '' $ac_executable_extensions; do
7890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7891 ac_cv_prog_ac_ct_OTOOL="otool"
7892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7901 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7902 if test -n "$ac_ct_OTOOL"; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7904 $as_echo "$ac_ct_OTOOL" >&6; }
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 $as_echo "no" >&6; }
7910 if test "x$ac_ct_OTOOL" = x; then
7913 case $cross_compiling:$ac_tool_warned in
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7917 ac_tool_warned=yes ;;
7922 OTOOL="$ac_cv_prog_OTOOL"
7925 if test -n "$ac_tool_prefix"; then
7926 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7927 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7929 $as_echo_n "checking for $ac_word... " >&6; }
7930 if ${ac_cv_prog_OTOOL64+:} false; then :
7931 $as_echo_n "(cached) " >&6
7933 if test -n "$OTOOL64"; then
7934 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940 test -z "$as_dir" && as_dir=.
7941 for ac_exec_ext in '' $ac_executable_extensions; do
7942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7943 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7953 OTOOL64=$ac_cv_prog_OTOOL64
7954 if test -n "$OTOOL64"; then
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7956 $as_echo "$OTOOL64" >&6; }
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959 $as_echo "no" >&6; }
7964 if test -z "$ac_cv_prog_OTOOL64"; then
7965 ac_ct_OTOOL64=$OTOOL64
7966 # Extract the first word of "otool64", so it can be a program name with args.
7967 set dummy otool64; ac_word=$2
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7969 $as_echo_n "checking for $ac_word... " >&6; }
7970 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7971 $as_echo_n "(cached) " >&6
7973 if test -n "$ac_ct_OTOOL64"; then
7974 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980 test -z "$as_dir" && as_dir=.
7981 for ac_exec_ext in '' $ac_executable_extensions; do
7982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7983 ac_cv_prog_ac_ct_OTOOL64="otool64"
7984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7993 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7994 if test -n "$ac_ct_OTOOL64"; then
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7996 $as_echo "$ac_ct_OTOOL64" >&6; }
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7999 $as_echo "no" >&6; }
8002 if test "x$ac_ct_OTOOL64" = x; then
8005 case $cross_compiling:$ac_tool_warned in
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8009 ac_tool_warned=yes ;;
8011 OTOOL64=$ac_ct_OTOOL64
8014 OTOOL64="$ac_cv_prog_OTOOL64"
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8044 $as_echo_n "checking for -single_module linker flag... " >&6; }
8045 if ${lt_cv_apple_cc_single_mod+:} false; then :
8046 $as_echo_n "(cached) " >&6
8048 lt_cv_apple_cc_single_mod=no
8049 if test -z "$LT_MULTI_MODULE"; then
8050 # By default we will add the -single_module flag. You can override
8051 # by either setting the environment variable LT_MULTI_MODULE
8052 # non-empty at configure time, or by adding -multi_module to the
8054 rm -rf libconftest.dylib*
8055 echo "int foo(void){return 1;}" > conftest.c
8056 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8057 -dynamiclib -Wl,-single_module conftest.c" >&5
8058 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8059 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8061 # If there is a non-empty error log, and "single_module"
8062 # appears in it, assume the flag caused a linker warning
8063 if test -s conftest.err && $GREP single_module conftest.err; then
8064 cat conftest.err >&5
8065 # Otherwise, if the output was created with a 0 exit code from
8066 # the compiler, it worked.
8067 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8068 lt_cv_apple_cc_single_mod=yes
8070 cat conftest.err >&5
8072 rm -rf libconftest.dylib*
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8077 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8080 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8081 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8082 $as_echo_n "(cached) " >&6
8084 lt_cv_ld_exported_symbols_list=no
8085 save_LDFLAGS=$LDFLAGS
8086 echo "_main" > conftest.sym
8087 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8089 /* end confdefs.h. */
8099 if ac_fn_c_try_link "$LINENO"; then :
8100 lt_cv_ld_exported_symbols_list=yes
8102 lt_cv_ld_exported_symbols_list=no
8104 rm -f core conftest.err conftest.$ac_objext \
8105 conftest$ac_exeext conftest.$ac_ext
8106 LDFLAGS=$save_LDFLAGS
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8110 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8113 $as_echo_n "checking for -force_load linker flag... " >&6; }
8114 if ${lt_cv_ld_force_load+:} false; then :
8115 $as_echo_n "(cached) " >&6
8117 lt_cv_ld_force_load=no
8118 cat > conftest.c << _LT_EOF
8119 int forced_loaded() { return 2;}
8121 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8122 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8123 echo "$AR cru libconftest.a conftest.o" >&5
8124 $AR cru libconftest.a conftest.o 2>&5
8125 echo "$RANLIB libconftest.a" >&5
8126 $RANLIB libconftest.a 2>&5
8127 cat > conftest.c << _LT_EOF
8128 int main() { return 0;}
8130 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8131 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8133 if test -s conftest.err && $GREP force_load conftest.err; then
8134 cat conftest.err >&5
8135 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8136 lt_cv_ld_force_load=yes
8138 cat conftest.err >&5
8140 rm -f conftest.err libconftest.a conftest conftest.c
8141 rm -rf conftest.dSYM
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8145 $as_echo "$lt_cv_ld_force_load" >&6; }
8147 rhapsody* | darwin1.[012])
8148 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8150 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8151 darwin*) # darwin 5.x on
8152 # if running on 10.5 or later, the deployment target defaults
8153 # to the OS version, if on x86, and 10.4, the deployment
8154 # target defaults to 10.4. Don't you love it?
8155 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8156 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8157 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8159 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8161 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8165 if test yes = "$lt_cv_apple_cc_single_mod"; then
8166 _lt_dar_single_mod='$single_module'
8168 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8169 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8171 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8173 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8174 _lt_dsymutil='~$DSYMUTIL $lib || :'
8181 # func_munge_path_list VARIABLE PATH
8182 # -----------------------------------
8183 # VARIABLE is name of variable containing _space_ separated list of
8184 # directories to be munged by the contents of PATH, which is string
8187 # string "DIR[ DIR]" will be prepended to VARIABLE
8189 # string "DIR[ DIR]" will be appended to VARIABLE
8190 # "DIRP[:DIRP]::[DIRA:]DIRA"
8191 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8192 # "DIRA[ DIRA]" will be appended to VARIABLE
8194 # VARIABLE will be replaced by "DIR[ DIR]"
8195 func_munge_path_list ()
8201 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8204 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8207 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8208 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8211 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8216 for ac_header in dlfcn.h
8218 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8220 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8221 cat >>confdefs.h <<_ACEOF
8222 #define HAVE_DLFCN_H 1
8234 # Check whether --enable-static was given.
8235 if test "${enable_static+set}" = set; then :
8236 enableval=$enable_static; p=${PACKAGE-default}
8238 yes) enable_static=yes ;;
8239 no) enable_static=no ;;
8242 # Look at the argument we got. We use all the common list separators.
8243 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8244 for pkg in $enableval; do
8246 if test "X$pkg" = "X$p"; then
8271 # Check whether --enable-shared was given.
8272 if test "${enable_shared+set}" = set; then :
8273 enableval=$enable_shared; p=${PACKAGE-default}
8275 yes) enable_shared=yes ;;
8276 no) enable_shared=no ;;
8279 # Look at the argument we got. We use all the common list separators.
8280 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8281 for pkg in $enableval; do
8283 if test "X$pkg" = "X$p"; then
8304 # Check whether --with-pic was given.
8305 if test "${with_pic+set}" = set; then :
8306 withval=$with_pic; lt_p=${PACKAGE-default}
8308 yes|no) pic_mode=$withval ;;
8311 # Look at the argument we got. We use all the common list separators.
8312 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8313 for lt_pkg in $withval; do
8315 if test "X$lt_pkg" = "X$lt_p"; then
8333 # Check whether --enable-fast-install was given.
8334 if test "${enable_fast_install+set}" = set; then :
8335 enableval=$enable_fast_install; p=${PACKAGE-default}
8337 yes) enable_fast_install=yes ;;
8338 no) enable_fast_install=no ;;
8340 enable_fast_install=no
8341 # Look at the argument we got. We use all the common list separators.
8342 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8343 for pkg in $enableval; do
8345 if test "X$pkg" = "X$p"; then
8346 enable_fast_install=yes
8353 enable_fast_install=yes
8363 shared_archive_member_spec=
8364 case $host,$enable_shared in
8365 power*-*-aix[5-9]*,yes)
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8367 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8369 # Check whether --with-aix-soname was given.
8370 if test "${with_aix_soname+set}" = set; then :
8371 withval=$with_aix_soname; case $withval in
8375 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8378 lt_cv_with_aix_soname=$with_aix_soname
8380 if ${lt_cv_with_aix_soname+:} false; then :
8381 $as_echo_n "(cached) " >&6
8383 lt_cv_with_aix_soname=aix
8386 with_aix_soname=$lt_cv_with_aix_soname
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8390 $as_echo "$with_aix_soname" >&6; }
8391 if test aix != "$with_aix_soname"; then
8392 # For the AIX way of multilib, we name the shared archive member
8393 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8394 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8395 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8396 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8397 if test 64 = "${OBJECT_MODE-32}"; then
8398 shared_archive_member_spec=shr_64
8400 shared_archive_member_spec=shr
8418 # This can be used to rebuild libtool when needed
8419 LIBTOOL_DEPS=$ltmain
8421 # Always use our own libtool.
8422 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8453 test -z "$LN_S" && LN_S="ln -s"
8468 if test -n "${ZSH_VERSION+set}"; then
8469 setopt NO_GLOB_SUBST
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8473 $as_echo_n "checking for objdir... " >&6; }
8474 if ${lt_cv_objdir+:} false; then :
8475 $as_echo_n "(cached) " >&6
8477 rm -f .libs 2>/dev/null
8478 mkdir .libs 2>/dev/null
8479 if test -d .libs; then
8482 # MS-DOS does not allow filenames that begin with a dot.
8485 rmdir .libs 2>/dev/null
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8488 $as_echo "$lt_cv_objdir" >&6; }
8489 objdir=$lt_cv_objdir
8495 cat >>confdefs.h <<_ACEOF
8496 #define LT_OBJDIR "$lt_cv_objdir/"
8504 # AIX sometimes has problems with the GCC collect2 program. For some
8505 # reason, if we set the COLLECT_NAMES environment variable, the problems
8506 # vanish in a puff of smoke.
8507 if test set != "${COLLECT_NAMES+set}"; then
8509 export COLLECT_NAMES
8516 can_build_shared=yes
8518 # All known linkers require a '.a' archive for static linking (except MSVC,
8519 # which needs '.lib').
8522 with_gnu_ld=$lt_cv_prog_gnu_ld
8527 # Set sane defaults for various variables
8528 test -z "$CC" && CC=cc
8529 test -z "$LTCC" && LTCC=$CC
8530 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8531 test -z "$LD" && LD=ld
8532 test -z "$ac_objext" && ac_objext=o
8534 func_cc_basename $compiler
8535 cc_basename=$func_cc_basename_result
8538 # Only perform the check for file, if the check method requires it
8539 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8540 case $deplibs_check_method in
8542 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8544 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8545 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8546 $as_echo_n "(cached) " >&6
8550 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8553 lt_save_MAGIC_CMD=$MAGIC_CMD
8554 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8555 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8556 for ac_dir in $ac_dummy; do
8558 test -z "$ac_dir" && ac_dir=.
8559 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8560 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8561 if test -n "$file_magic_test_file"; then
8562 case $deplibs_check_method in
8564 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8565 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8566 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8567 $EGREP "$file_magic_regex" > /dev/null; then
8572 *** Warning: the command libtool uses to detect shared libraries,
8573 *** $file_magic_cmd, produces output that libtool cannot recognize.
8574 *** The result is that libtool may fail to recognize shared libraries
8575 *** as such. This will affect the creation of libtool libraries that
8576 *** depend on shared libraries, but programs linked with such libtool
8577 *** libraries will work regardless of this problem. Nevertheless, you
8578 *** may want to report the problem to your system manager and/or to
8579 *** bug-libtool@gnu.org
8589 MAGIC_CMD=$lt_save_MAGIC_CMD
8594 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8595 if test -n "$MAGIC_CMD"; then
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8597 $as_echo "$MAGIC_CMD" >&6; }
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8600 $as_echo "no" >&6; }
8607 if test -z "$lt_cv_path_MAGIC_CMD"; then
8608 if test -n "$ac_tool_prefix"; then
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8610 $as_echo_n "checking for file... " >&6; }
8611 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8612 $as_echo_n "(cached) " >&6
8616 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8619 lt_save_MAGIC_CMD=$MAGIC_CMD
8620 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8621 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8622 for ac_dir in $ac_dummy; do
8624 test -z "$ac_dir" && ac_dir=.
8625 if test -f "$ac_dir/file"; then
8626 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8627 if test -n "$file_magic_test_file"; then
8628 case $deplibs_check_method in
8630 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8631 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8632 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8633 $EGREP "$file_magic_regex" > /dev/null; then
8638 *** Warning: the command libtool uses to detect shared libraries,
8639 *** $file_magic_cmd, produces output that libtool cannot recognize.
8640 *** The result is that libtool may fail to recognize shared libraries
8641 *** as such. This will affect the creation of libtool libraries that
8642 *** depend on shared libraries, but programs linked with such libtool
8643 *** libraries will work regardless of this problem. Nevertheless, you
8644 *** may want to report the problem to your system manager and/or to
8645 *** bug-libtool@gnu.org
8655 MAGIC_CMD=$lt_save_MAGIC_CMD
8660 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8661 if test -n "$MAGIC_CMD"; then
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8663 $as_echo "$MAGIC_CMD" >&6; }
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8666 $as_echo "no" >&6; }
8679 # Use C for the default configuration in the libtool script
8683 ac_cpp='$CPP $CPPFLAGS'
8684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8689 # Source file extension for C test sources.
8692 # Object file extension for compiled C test sources.
8696 # Code to be used in simple compile tests
8697 lt_simple_compile_test_code="int some_variable = 0;"
8699 # Code to be used in simple link tests
8700 lt_simple_link_test_code='int main(){return(0);}'
8708 # If no C compiler was specified, use CC.
8711 # If no C compiler flags were specified, use CFLAGS.
8712 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8714 # Allow CC to be a program name with arguments.
8717 # Save the default compiler, since it gets overwritten when the other
8718 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8719 compiler_DEFAULT=$CC
8721 # save warnings/boilerplate of simple test code
8722 ac_outfile=conftest.$ac_objext
8723 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8724 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8725 _lt_compiler_boilerplate=`cat conftest.err`
8728 ac_outfile=conftest.$ac_objext
8729 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8730 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8731 _lt_linker_boilerplate=`cat conftest.err`
8736 ## There is no encapsulation within the following macros, do not change
8737 ## the running order or otherwise move them around unless you know exactly
8738 ## what you are doing...
8739 if test -n "$compiler"; then
8741 lt_prog_compiler_no_builtin_flag=
8743 if test yes = "$GCC"; then
8744 case $cc_basename in
8746 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8748 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8752 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8753 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8754 $as_echo_n "(cached) " >&6
8756 lt_cv_prog_compiler_rtti_exceptions=no
8757 ac_outfile=conftest.$ac_objext
8758 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8759 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8760 # Insert the option either (1) after the last *FLAGS variable, or
8761 # (2) before a word containing "conftest.", or (3) at the end.
8762 # Note that $ac_compile itself does not contain backslashes and begins
8763 # with a dollar sign (not a hyphen), so the echo should work correctly.
8764 # The option is referenced via a variable to avoid confusing sed.
8765 lt_compile=`echo "$ac_compile" | $SED \
8766 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8767 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8768 -e 's:$: $lt_compiler_flag:'`
8769 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8770 (eval "$lt_compile" 2>conftest.err)
8772 cat conftest.err >&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 if (exit $ac_status) && test -s "$ac_outfile"; then
8775 # The compiler can only warn and ignore the option if not recognized
8776 # So say no if there are warnings other than the usual output.
8777 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8778 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8779 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8780 lt_cv_prog_compiler_rtti_exceptions=yes
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8787 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8789 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8790 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8802 lt_prog_compiler_wl=
8803 lt_prog_compiler_pic=
8804 lt_prog_compiler_static=
8807 if test yes = "$GCC"; then
8808 lt_prog_compiler_wl='-Wl,'
8809 lt_prog_compiler_static='-static'
8813 # All AIX code is PIC.
8814 if test ia64 = "$host_cpu"; then
8815 # AIX 5 now supports IA64 processor
8816 lt_prog_compiler_static='-Bstatic'
8818 lt_prog_compiler_pic='-fPIC'
8824 # see comment about AmigaOS4 .so support
8825 lt_prog_compiler_pic='-fPIC'
8828 # FIXME: we need at least 68020 code to build shared libraries, but
8829 # adding the '-m68020' flag to GCC prevents building anything better,
8831 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8836 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8837 # PIC is the default for these OSes.
8840 mingw* | cygwin* | pw32* | os2* | cegcc*)
8841 # This hack is so that the source file can tell whether it is being
8842 # built for inclusion in a dll (and should export symbols for example).
8843 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8844 # (--disable-auto-import) libraries
8845 lt_prog_compiler_pic='-DDLL_EXPORT'
8848 lt_prog_compiler_static='$wl-static'
8853 darwin* | rhapsody*)
8854 # PIC is the default on this platform
8855 # Common symbols not allowed in MH_DYLIB files
8856 lt_prog_compiler_pic='-fno-common'
8860 # PIC is the default for Haiku.
8861 # The "-static" flag exists, but is broken.
8862 lt_prog_compiler_static=
8866 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8867 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8868 # sets the default TLS model and affects inlining.
8874 lt_prog_compiler_pic='-fPIC'
8880 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8881 # Instead, we relocate shared libraries at runtime.
8885 # Just because we use GCC doesn't mean we suddenly get shared libraries
8886 # on systems that don't support them.
8887 lt_prog_compiler_can_build_shared=no
8892 # QNX uses GNU C++, but need to define -shared option too, otherwise
8894 lt_prog_compiler_pic='-fPIC -shared'
8898 if test -d /usr/nec; then
8899 lt_prog_compiler_pic=-Kconform_pic
8904 lt_prog_compiler_pic='-fPIC'
8908 case $cc_basename in
8909 nvcc*) # Cuda Compiler Driver 2.2
8910 lt_prog_compiler_wl='-Xlinker '
8911 if test -n "$lt_prog_compiler_pic"; then
8912 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8917 # PORTME Check for flag to pass linker flags through the system compiler.
8920 lt_prog_compiler_wl='-Wl,'
8921 if test ia64 = "$host_cpu"; then
8922 # AIX 5 now supports IA64 processor
8923 lt_prog_compiler_static='-Bstatic'
8925 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8929 darwin* | rhapsody*)
8930 # PIC is the default on this platform
8931 # Common symbols not allowed in MH_DYLIB files
8932 lt_prog_compiler_pic='-fno-common'
8933 case $cc_basename in
8935 # NAG Fortran compiler
8936 lt_prog_compiler_wl='-Wl,-Wl,,'
8937 lt_prog_compiler_pic='-PIC'
8938 lt_prog_compiler_static='-Bstatic'
8943 mingw* | cygwin* | pw32* | os2* | cegcc*)
8944 # This hack is so that the source file can tell whether it is being
8945 # built for inclusion in a dll (and should export symbols for example).
8946 lt_prog_compiler_pic='-DDLL_EXPORT'
8949 lt_prog_compiler_static='$wl-static'
8954 hpux9* | hpux10* | hpux11*)
8955 lt_prog_compiler_wl='-Wl,'
8956 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8963 lt_prog_compiler_pic='+Z'
8966 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8967 lt_prog_compiler_static='$wl-a ${wl}archive'
8970 irix5* | irix6* | nonstopux*)
8971 lt_prog_compiler_wl='-Wl,'
8972 # PIC (with -KPIC) is the default.
8973 lt_prog_compiler_static='-non_shared'
8976 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8977 case $cc_basename in
8978 # old Intel for x86_64, which still supported -KPIC.
8980 lt_prog_compiler_wl='-Wl,'
8981 lt_prog_compiler_pic='-KPIC'
8982 lt_prog_compiler_static='-static'
8984 # icc used to be incompatible with GCC.
8985 # ICC 10 doesn't accept -KPIC any more.
8987 lt_prog_compiler_wl='-Wl,'
8988 lt_prog_compiler_pic='-fPIC'
8989 lt_prog_compiler_static='-static'
8991 # Lahey Fortran 8.1.
8993 lt_prog_compiler_wl='-Wl,'
8994 lt_prog_compiler_pic='--shared'
8995 lt_prog_compiler_static='--static'
8998 # NAG Fortran compiler
8999 lt_prog_compiler_wl='-Wl,-Wl,,'
9000 lt_prog_compiler_pic='-PIC'
9001 lt_prog_compiler_static='-Bstatic'
9004 # Fabrice Bellard et al's Tiny C Compiler
9005 lt_prog_compiler_wl='-Wl,'
9006 lt_prog_compiler_pic='-fPIC'
9007 lt_prog_compiler_static='-static'
9009 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9010 # Portland Group compilers (*not* the Pentium gcc compiler,
9011 # which looks to be a dead project)
9012 lt_prog_compiler_wl='-Wl,'
9013 lt_prog_compiler_pic='-fpic'
9014 lt_prog_compiler_static='-Bstatic'
9017 lt_prog_compiler_wl='-Wl,'
9018 # All Alpha code is PIC.
9019 lt_prog_compiler_static='-non_shared'
9021 xl* | bgxl* | bgf* | mpixl*)
9022 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9023 lt_prog_compiler_wl='-Wl,'
9024 lt_prog_compiler_pic='-qpic'
9025 lt_prog_compiler_static='-qstaticlink'
9028 case `$CC -V 2>&1 | sed 5q` in
9029 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9030 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9031 lt_prog_compiler_pic='-KPIC'
9032 lt_prog_compiler_static='-Bstatic'
9033 lt_prog_compiler_wl=''
9035 *Sun\ F* | *Sun*Fortran*)
9036 lt_prog_compiler_pic='-KPIC'
9037 lt_prog_compiler_static='-Bstatic'
9038 lt_prog_compiler_wl='-Qoption ld '
9042 lt_prog_compiler_pic='-KPIC'
9043 lt_prog_compiler_static='-Bstatic'
9044 lt_prog_compiler_wl='-Wl,'
9046 *Intel*\ [CF]*Compiler*)
9047 lt_prog_compiler_wl='-Wl,'
9048 lt_prog_compiler_pic='-fPIC'
9049 lt_prog_compiler_static='-static'
9052 lt_prog_compiler_wl='-Wl,'
9053 lt_prog_compiler_pic='-fpic'
9054 lt_prog_compiler_static='-Bstatic'
9062 lt_prog_compiler_pic='-KPIC'
9063 lt_prog_compiler_static='-Bstatic'
9067 # QNX uses GNU C++, but need to define -shared option too, otherwise
9069 lt_prog_compiler_pic='-fPIC -shared'
9072 osf3* | osf4* | osf5*)
9073 lt_prog_compiler_wl='-Wl,'
9074 # All OSF/1 code is PIC.
9075 lt_prog_compiler_static='-non_shared'
9079 lt_prog_compiler_static='-non_shared'
9083 lt_prog_compiler_pic='-KPIC'
9084 lt_prog_compiler_static='-Bstatic'
9085 case $cc_basename in
9086 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9087 lt_prog_compiler_wl='-Qoption ld ';;
9089 lt_prog_compiler_wl='-Wl,';;
9094 lt_prog_compiler_wl='-Qoption ld '
9095 lt_prog_compiler_pic='-PIC'
9096 lt_prog_compiler_static='-Bstatic'
9099 sysv4 | sysv4.2uw2* | sysv4.3*)
9100 lt_prog_compiler_wl='-Wl,'
9101 lt_prog_compiler_pic='-KPIC'
9102 lt_prog_compiler_static='-Bstatic'
9106 if test -d /usr/nec; then
9107 lt_prog_compiler_pic='-Kconform_pic'
9108 lt_prog_compiler_static='-Bstatic'
9112 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9113 lt_prog_compiler_wl='-Wl,'
9114 lt_prog_compiler_pic='-KPIC'
9115 lt_prog_compiler_static='-Bstatic'
9119 lt_prog_compiler_wl='-Wl,'
9120 lt_prog_compiler_can_build_shared=no
9124 lt_prog_compiler_pic='-pic'
9125 lt_prog_compiler_static='-Bstatic'
9129 lt_prog_compiler_can_build_shared=no
9135 # For platforms that do not support PIC, -DPIC is meaningless:
9137 lt_prog_compiler_pic=
9140 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9145 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9146 if ${lt_cv_prog_compiler_pic+:} false; then :
9147 $as_echo_n "(cached) " >&6
9149 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9152 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9153 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9156 # Check to make sure the PIC flag actually works.
9158 if test -n "$lt_prog_compiler_pic"; then
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9160 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9161 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9162 $as_echo_n "(cached) " >&6
9164 lt_cv_prog_compiler_pic_works=no
9165 ac_outfile=conftest.$ac_objext
9166 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9167 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9168 # Insert the option either (1) after the last *FLAGS variable, or
9169 # (2) before a word containing "conftest.", or (3) at the end.
9170 # Note that $ac_compile itself does not contain backslashes and begins
9171 # with a dollar sign (not a hyphen), so the echo should work correctly.
9172 # The option is referenced via a variable to avoid confusing sed.
9173 lt_compile=`echo "$ac_compile" | $SED \
9174 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9175 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9176 -e 's:$: $lt_compiler_flag:'`
9177 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9178 (eval "$lt_compile" 2>conftest.err)
9180 cat conftest.err >&5
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 if (exit $ac_status) && test -s "$ac_outfile"; then
9183 # The compiler can only warn and ignore the option if not recognized
9184 # So say no if there are warnings other than the usual output.
9185 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9186 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9187 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9188 lt_cv_prog_compiler_pic_works=yes
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9195 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9197 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9198 case $lt_prog_compiler_pic in
9200 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9203 lt_prog_compiler_pic=
9204 lt_prog_compiler_can_build_shared=no
9220 # Check to make sure the static flag actually works.
9222 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9224 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9225 if ${lt_cv_prog_compiler_static_works+:} false; then :
9226 $as_echo_n "(cached) " >&6
9228 lt_cv_prog_compiler_static_works=no
9229 save_LDFLAGS=$LDFLAGS
9230 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9231 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9232 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9233 # The linker can only warn and ignore the option if not recognized
9234 # So say no if there are warnings
9235 if test -s conftest.err; then
9236 # Append any errors to the config.log.
9237 cat conftest.err 1>&5
9238 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9239 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9240 if diff conftest.exp conftest.er2 >/dev/null; then
9241 lt_cv_prog_compiler_static_works=yes
9244 lt_cv_prog_compiler_static_works=yes
9248 LDFLAGS=$save_LDFLAGS
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9252 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9254 if test yes = "$lt_cv_prog_compiler_static_works"; then
9257 lt_prog_compiler_static=
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9267 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9268 if ${lt_cv_prog_compiler_c_o+:} false; then :
9269 $as_echo_n "(cached) " >&6
9271 lt_cv_prog_compiler_c_o=no
9272 $RM -r conftest 2>/dev/null
9276 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9278 lt_compiler_flag="-o out/conftest2.$ac_objext"
9279 # Insert the option either (1) after the last *FLAGS variable, or
9280 # (2) before a word containing "conftest.", or (3) at the end.
9281 # Note that $ac_compile itself does not contain backslashes and begins
9282 # with a dollar sign (not a hyphen), so the echo should work correctly.
9283 lt_compile=`echo "$ac_compile" | $SED \
9284 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9285 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9286 -e 's:$: $lt_compiler_flag:'`
9287 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9288 (eval "$lt_compile" 2>out/conftest.err)
9290 cat out/conftest.err >&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9294 # The compiler can only warn and ignore the option if not recognized
9295 # So say no if there are warnings
9296 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9297 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9298 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9299 lt_cv_prog_compiler_c_o=yes
9304 # SGI C++ compiler will create directory out/ii_files/ for
9305 # template instantiation
9306 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9307 $RM out/* && rmdir out
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9314 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9322 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9323 if ${lt_cv_prog_compiler_c_o+:} false; then :
9324 $as_echo_n "(cached) " >&6
9326 lt_cv_prog_compiler_c_o=no
9327 $RM -r conftest 2>/dev/null
9331 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9333 lt_compiler_flag="-o out/conftest2.$ac_objext"
9334 # Insert the option either (1) after the last *FLAGS variable, or
9335 # (2) before a word containing "conftest.", or (3) at the end.
9336 # Note that $ac_compile itself does not contain backslashes and begins
9337 # with a dollar sign (not a hyphen), so the echo should work correctly.
9338 lt_compile=`echo "$ac_compile" | $SED \
9339 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9341 -e 's:$: $lt_compiler_flag:'`
9342 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9343 (eval "$lt_compile" 2>out/conftest.err)
9345 cat out/conftest.err >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9349 # The compiler can only warn and ignore the option if not recognized
9350 # So say no if there are warnings
9351 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9352 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9353 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9354 lt_cv_prog_compiler_c_o=yes
9359 # SGI C++ compiler will create directory out/ii_files/ for
9360 # template instantiation
9361 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9362 $RM out/* && rmdir out
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9369 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9374 hard_links=nottested
9375 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9376 # do not overwrite the value of need_locks provided by the user
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9378 $as_echo_n "checking if we can lock with hard links... " >&6; }
9381 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9383 ln conftest.a conftest.b 2>&5 || hard_links=no
9384 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9386 $as_echo "$hard_links" >&6; }
9387 if test no = "$hard_links"; then
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9389 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9402 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9405 allow_undefined_flag=
9406 always_export_symbols=no
9408 archive_expsym_cmds=
9409 compiler_needs_object=no
9410 enable_shared_with_static_runtimes=no
9411 export_dynamic_flag_spec=
9412 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9413 hardcode_automatic=no
9415 hardcode_direct_absolute=no
9416 hardcode_libdir_flag_spec=
9417 hardcode_libdir_separator=
9419 hardcode_shlibpath_var=unsupported
9421 link_all_deplibs=unknown
9424 old_archive_from_new_cmds=
9425 old_archive_from_expsyms_cmds=
9426 thread_safe_flag_spec=
9427 whole_archive_flag_spec=
9428 # include_expsyms should be a list of space-separated symbols to be *always*
9429 # included in the symbol list
9431 # exclude_expsyms can be an extended regexp of symbols to exclude
9432 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9433 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9434 # as well as any symbol that contains 'd'.
9435 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9436 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9437 # platforms (ab)use it in PIC code, but their linkers get confused if
9438 # the symbol is explicitly referenced. Since portable code cannot
9439 # rely on this symbol name, it's probably fine to never include it in
9440 # preloaded symbol tables.
9441 # Exclude shared library initialization/finalization symbols.
9442 extract_expsyms_cmds=
9445 cygwin* | mingw* | pw32* | cegcc*)
9446 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9447 # When not using gcc, we currently assume that we are using
9448 # Microsoft Visual C++.
9449 if test yes != "$GCC"; then
9454 # we just hope/assume this is gcc and not c89 (= MSVC++)
9464 # On some targets, GNU ld is compatible enough with the native linker
9465 # that we're better off using the native interface for both.
9466 lt_use_gnu_ld_interface=no
9467 if test yes = "$with_gnu_ld"; then
9470 # The AIX port of GNU ld has always aspired to compatibility
9471 # with the native linker. However, as the warning in the GNU ld
9472 # block says, versions before 2.19.5* couldn't really create working
9473 # shared libraries, regardless of the interface used.
9474 case `$LD -v 2>&1` in
9475 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9476 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9477 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9479 lt_use_gnu_ld_interface=yes
9484 lt_use_gnu_ld_interface=yes
9489 if test yes = "$lt_use_gnu_ld_interface"; then
9490 # If archive_cmds runs LD, not CC, wlarc should be empty
9493 # Set some defaults for GNU ld with shared library support. These
9494 # are reset later if shared libraries are not supported. Putting them
9495 # here allows them to be overridden if necessary.
9496 runpath_var=LD_RUN_PATH
9497 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9498 export_dynamic_flag_spec='$wl--export-dynamic'
9499 # ancient GNU ld didn't support --whole-archive et. al.
9500 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9501 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9503 whole_archive_flag_spec=
9505 supports_anon_versioning=no
9506 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9507 *GNU\ gold*) supports_anon_versioning=yes ;;
9508 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9509 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9510 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9511 *\ 2.11.*) ;; # other 2.11 versions
9512 *) supports_anon_versioning=yes ;;
9515 # See if GNU ld supports shared libraries.
9518 # On AIX/PPC, the GNU linker is very broken
9519 if test ia64 != "$host_cpu"; then
9523 *** Warning: the GNU linker, at least up to release 2.19, is reported
9524 *** to be unable to reliably create shared libraries on AIX.
9525 *** Therefore, libtool is disabling shared libraries support. If you
9526 *** really care for shared libraries, you may want to install binutils
9527 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9528 *** You will then need to restart the configuration process.
9537 # see comment about AmigaOS4 .so support
9538 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9539 archive_expsym_cmds=''
9542 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)'
9543 hardcode_libdir_flag_spec='-L$libdir'
9544 hardcode_minus_L=yes
9550 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9551 allow_undefined_flag=unsupported
9552 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9553 # support --undefined. This deserves some investigation. FIXME
9554 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9560 cygwin* | mingw* | pw32* | cegcc*)
9561 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9562 # as there is no search path for DLLs.
9563 hardcode_libdir_flag_spec='-L$libdir'
9564 export_dynamic_flag_spec='$wl--export-all-symbols'
9565 allow_undefined_flag=unsupported
9566 always_export_symbols=no
9567 enable_shared_with_static_runtimes=yes
9568 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'
9569 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9571 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9572 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9573 # If the export-symbols file already is a .def file, use it as
9574 # is; otherwise, prepend EXPORTS...
9575 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9576 cp $export_symbols $output_objdir/$soname.def;
9578 echo EXPORTS > $output_objdir/$soname.def;
9579 cat $export_symbols >> $output_objdir/$soname.def;
9581 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9589 link_all_deplibs=yes
9593 hardcode_libdir_flag_spec='-L$libdir'
9594 hardcode_minus_L=yes
9595 allow_undefined_flag=unsupported
9597 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9598 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9599 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9600 $ECHO EXPORTS >> $output_objdir/$libname.def~
9601 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9602 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9603 emximp -o $lib $output_objdir/$libname.def'
9604 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9605 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9606 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9607 $ECHO EXPORTS >> $output_objdir/$libname.def~
9609 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9610 prefix_cmds="$prefix_cmds -e 1d";
9612 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9613 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9614 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9615 emximp -o $lib $output_objdir/$libname.def'
9616 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9617 enable_shared_with_static_runtimes=yes
9622 hardcode_shlibpath_var=no
9623 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9624 export_dynamic_flag_spec='$wl-E'
9625 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9626 # Instead, shared libraries are loaded at an image base (0x10000000 by
9627 # default) and relocated if they conflict, which is a slow very memory
9628 # consuming and fragmenting process. To avoid this, we pick a random,
9629 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9630 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9631 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9632 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'
9635 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9637 if test linux-dietlibc = "$host_os"; then
9638 case $cc_basename in
9639 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9642 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9643 && test no = "$tmp_diet"
9645 tmp_addflag=' $pic_flag'
9646 tmp_sharedflag='-shared'
9647 case $cc_basename,$host_cpu in
9648 pgcc*) # Portland Group C compiler
9649 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'
9650 tmp_addflag=' $pic_flag'
9652 pgf77* | pgf90* | pgf95* | pgfortran*)
9653 # Portland Group f77 and f90 compilers
9654 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'
9655 tmp_addflag=' $pic_flag -Mnomain' ;;
9656 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9657 tmp_addflag=' -i_dynamic' ;;
9658 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9659 tmp_addflag=' -i_dynamic -nofor_main' ;;
9660 ifc* | ifort*) # Intel Fortran compiler
9661 tmp_addflag=' -nofor_main' ;;
9662 lf95*) # Lahey Fortran 8.1
9663 whole_archive_flag_spec=
9664 tmp_sharedflag='--shared' ;;
9665 nagfor*) # NAGFOR 5.3
9666 tmp_sharedflag='-Wl,-shared' ;;
9667 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9668 tmp_sharedflag='-qmkshrobj'
9670 nvcc*) # Cuda Compiler Driver 2.2
9671 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'
9672 compiler_needs_object=yes
9675 case `$CC -V 2>&1 | sed 5q` in
9676 *Sun\ C*) # Sun C 5.9
9677 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'
9678 compiler_needs_object=yes
9679 tmp_sharedflag='-G' ;;
9680 *Sun\ F*) # Sun Fortran 8.3
9681 tmp_sharedflag='-G' ;;
9683 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9685 if test yes = "$supports_anon_versioning"; then
9686 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9687 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9688 echo "local: *; };" >> $output_objdir/$libname.ver~
9689 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9692 case $cc_basename in
9694 export_dynamic_flag_spec='-rdynamic'
9696 xlf* | bgf* | bgxlf* | mpixlf*)
9697 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9698 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9699 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9700 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9701 if test yes = "$supports_anon_versioning"; then
9702 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9703 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9704 echo "local: *; };" >> $output_objdir/$libname.ver~
9705 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9715 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9716 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9719 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9720 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9725 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9729 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9730 *** create shared libraries on Solaris systems. Therefore, libtool
9731 *** is disabling shared libraries support. We urge you to upgrade GNU
9732 *** binutils to release 2.9.1 or newer. Another option is to modify
9733 *** your PATH or compiler configuration so that the native linker is
9734 *** used, and then restart.
9737 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9738 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9739 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9745 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9746 case `$LD -v 2>&1` in
9747 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9751 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9752 *** reliably create shared libraries on SCO systems. Therefore, libtool
9753 *** is disabling shared libraries support. We urge you to upgrade GNU
9754 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9755 *** your PATH or compiler configuration so that the native linker is
9756 *** used, and then restart.
9761 # For security reasons, it is highly recommended that you always
9762 # use absolute paths for naming shared libraries, and exclude the
9763 # DT_RUNPATH tag from executables and libraries. But doing so
9764 # requires that you compile everything twice, which is a pain.
9765 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9766 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9768 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9777 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9780 hardcode_shlibpath_var=no
9784 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9785 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9786 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9793 if test no = "$ld_shlibs"; then
9795 hardcode_libdir_flag_spec=
9796 export_dynamic_flag_spec=
9797 whole_archive_flag_spec=
9800 # PORTME fill in a description of your system's linker (not GNU ld)
9803 allow_undefined_flag=unsupported
9804 always_export_symbols=yes
9805 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'
9806 # Note: this linker hardcodes the directories in LIBPATH if there
9807 # are no directories specified by -L.
9808 hardcode_minus_L=yes
9809 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9810 # Neither direct hardcoding nor static linking is supported with a
9812 hardcode_direct=unsupported
9817 if test ia64 = "$host_cpu"; then
9818 # On IA64, the linker does run time linking by default, so we don't
9819 # have to do anything special.
9820 aix_use_runtimelinking=no
9821 exp_sym_flag='-Bexport'
9824 # If we're using GNU nm, then we don't want the "-C" option.
9825 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9826 # Without the "-l" option, or with the "-B" option, AIX nm treats
9827 # weak defined symbols like other global defined symbols, whereas
9828 # GNU nm marks them as "W".
9829 # While the 'weak' keyword is ignored in the Export File, we need
9830 # it in the Import File for the 'aix-soname' feature, so we have
9831 # to replace the "-B" option with "-P" for AIX nm.
9832 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9833 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9835 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9837 aix_use_runtimelinking=no
9839 # Test if we are trying to use run time linking or normal
9840 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9841 # have runtime linking enabled, and use it for executables.
9842 # For shared libraries, we enable/disable runtime linking
9843 # depending on the kind of the shared library created -
9844 # when "with_aix_soname,aix_use_runtimelinking" is:
9845 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9846 # "aix,yes" lib.so shared, rtl:yes, for executables
9847 # lib.a static archive
9848 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9849 # lib.a(lib.so.V) shared, rtl:no, for executables
9850 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9851 # lib.a(lib.so.V) shared, rtl:no
9852 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9853 # lib.a static archive
9854 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9855 for ld_flag in $LDFLAGS; do
9856 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9857 aix_use_runtimelinking=yes
9861 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9862 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9863 # so we don't have lib.a shared libs to link our executables.
9864 # We have to force runtime linking in this case.
9865 aix_use_runtimelinking=yes
9866 LDFLAGS="$LDFLAGS -Wl,-brtl"
9871 exp_sym_flag='-bexport'
9872 no_entry_flag='-bnoentry'
9875 # When large executables or shared objects are built, AIX ld can
9876 # have problems creating the table of contents. If linking a library
9877 # or program results in "error TOC overflow" add -mminimal-toc to
9878 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9879 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9883 hardcode_direct_absolute=yes
9884 hardcode_libdir_separator=':'
9885 link_all_deplibs=yes
9886 file_list_spec='$wl-f,'
9887 case $with_aix_soname,$aix_use_runtimelinking in
9888 aix,*) ;; # traditional, no import file
9889 svr4,* | *,yes) # use import file
9890 # The Import File defines what to hardcode.
9892 hardcode_direct_absolute=no
9896 if test yes = "$GCC"; then
9897 case $host_os in aix4.[012]|aix4.[012].*)
9898 # We only want to do this on AIX 4.2 and lower, the check
9899 # below for broken collect2 doesn't work under 4.3+
9900 collect2name=`$CC -print-prog-name=collect2`
9901 if test -f "$collect2name" &&
9902 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9904 # We have reworked collect2
9907 # We have old collect2
9908 hardcode_direct=unsupported
9909 # It fails to find uninstalled libraries when the uninstalled
9910 # path is not listed in the libpath. Setting hardcode_minus_L
9911 # to unsupported forces relinking
9912 hardcode_minus_L=yes
9913 hardcode_libdir_flag_spec='-L$libdir'
9914 hardcode_libdir_separator=
9918 shared_flag='-shared'
9919 if test yes = "$aix_use_runtimelinking"; then
9920 shared_flag="$shared_flag "'$wl-G'
9922 # Need to ensure runtime linking is disabled for the traditional
9923 # shared library, or the linker may eventually find shared libraries
9924 # /with/ Import File - we do not want to mix them.
9925 shared_flag_aix='-shared'
9926 shared_flag_svr4='-shared $wl-G'
9929 if test ia64 = "$host_cpu"; then
9930 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9931 # chokes on -Wl,-G. The following line is correct:
9934 if test yes = "$aix_use_runtimelinking"; then
9937 shared_flag='$wl-bM:SRE'
9939 shared_flag_aix='$wl-bM:SRE'
9940 shared_flag_svr4='$wl-G'
9944 export_dynamic_flag_spec='$wl-bexpall'
9945 # It seems that -bexpall does not export symbols beginning with
9946 # underscore (_), so it is better to generate a list of symbols to export.
9947 always_export_symbols=yes
9948 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9949 # Warning - without using the other runtime loading flags (-brtl),
9950 # -berok will link without error, but may produce a broken library.
9951 allow_undefined_flag='-berok'
9952 # Determine the default libpath from the value encoded in an
9954 if test set = "${lt_cv_aix_libpath+set}"; then
9955 aix_libpath=$lt_cv_aix_libpath
9957 if ${lt_cv_aix_libpath_+:} false; then :
9958 $as_echo_n "(cached) " >&6
9960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9961 /* end confdefs.h. */
9971 if ac_fn_c_try_link "$LINENO"; then :
9973 lt_aix_libpath_sed='
9974 /Import File Strings/,/^$/ {
9976 s/^0 *\([^ ]*\) *$/\1/
9980 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9981 # Check for a 64-bit object if we didn't find anything.
9982 if test -z "$lt_cv_aix_libpath_"; then
9983 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9986 rm -f core conftest.err conftest.$ac_objext \
9987 conftest$ac_exeext conftest.$ac_ext
9988 if test -z "$lt_cv_aix_libpath_"; then
9989 lt_cv_aix_libpath_=/usr/lib:/lib
9994 aix_libpath=$lt_cv_aix_libpath_
9997 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9998 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10000 if test ia64 = "$host_cpu"; then
10001 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10002 allow_undefined_flag="-z nodefs"
10003 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"
10005 # Determine the default libpath from the value encoded in an
10006 # empty executable.
10007 if test set = "${lt_cv_aix_libpath+set}"; then
10008 aix_libpath=$lt_cv_aix_libpath
10010 if ${lt_cv_aix_libpath_+:} false; then :
10011 $as_echo_n "(cached) " >&6
10013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014 /* end confdefs.h. */
10024 if ac_fn_c_try_link "$LINENO"; then :
10026 lt_aix_libpath_sed='
10027 /Import File Strings/,/^$/ {
10029 s/^0 *\([^ ]*\) *$/\1/
10033 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10034 # Check for a 64-bit object if we didn't find anything.
10035 if test -z "$lt_cv_aix_libpath_"; then
10036 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10039 rm -f core conftest.err conftest.$ac_objext \
10040 conftest$ac_exeext conftest.$ac_ext
10041 if test -z "$lt_cv_aix_libpath_"; then
10042 lt_cv_aix_libpath_=/usr/lib:/lib
10047 aix_libpath=$lt_cv_aix_libpath_
10050 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10051 # Warning - without using the other run time loading flags,
10052 # -berok will link without error, but may produce a broken library.
10053 no_undefined_flag=' $wl-bernotok'
10054 allow_undefined_flag=' $wl-berok'
10055 if test yes = "$with_gnu_ld"; then
10056 # We only use this code for GNU lds that support --whole-archive.
10057 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10059 # Exported symbols can be pulled into shared objects from archives
10060 whole_archive_flag_spec='$convenience'
10062 archive_cmds_need_lc=yes
10063 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10064 # -brtl affects multiple linker settings, -berok does not and is overridden later
10065 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10066 if test svr4 != "$with_aix_soname"; then
10067 # This is similar to how AIX traditionally builds its shared libraries.
10068 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10070 if test aix != "$with_aix_soname"; then
10071 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10073 # used by -dlpreopen to get the symbols
10074 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10076 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10084 # see comment about AmigaOS4 .so support
10085 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10086 archive_expsym_cmds=''
10089 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)'
10090 hardcode_libdir_flag_spec='-L$libdir'
10091 hardcode_minus_L=yes
10097 export_dynamic_flag_spec=-rdynamic
10100 cygwin* | mingw* | pw32* | cegcc*)
10101 # When not using gcc, we currently assume that we are using
10102 # Microsoft Visual C++.
10103 # hardcode_libdir_flag_spec is actually meaningless, as there is
10104 # no search path for DLLs.
10105 case $cc_basename in
10108 hardcode_libdir_flag_spec=' '
10109 allow_undefined_flag=unsupported
10110 always_export_symbols=yes
10112 # Tell ltmain to make .lib files, not .a files.
10114 # Tell ltmain to make .dll files, not .so files.
10116 # FIXME: Setting linknames here is a bad hack.
10117 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10118 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10119 cp "$export_symbols" "$output_objdir/$soname.def";
10120 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10122 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10124 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10126 # The linker will not automatically build a static lib if we build a DLL.
10127 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10128 enable_shared_with_static_runtimes=yes
10129 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10130 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10132 old_postinstall_cmds='chmod 644 $oldlib'
10133 postlink_cmds='lt_outputfile="@OUTPUT@"~
10134 lt_tool_outputfile="@TOOL_OUTPUT@"~
10135 case $lt_outputfile in
10138 lt_outputfile=$lt_outputfile.exe
10139 lt_tool_outputfile=$lt_tool_outputfile.exe
10142 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10143 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10144 $RM "$lt_outputfile.manifest";
10148 # Assume MSVC wrapper
10149 hardcode_libdir_flag_spec=' '
10150 allow_undefined_flag=unsupported
10151 # Tell ltmain to make .lib files, not .a files.
10153 # Tell ltmain to make .dll files, not .so files.
10155 # FIXME: Setting linknames here is a bad hack.
10156 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10157 # The linker will automatically build a .lib file if we build a DLL.
10158 old_archive_from_new_cmds='true'
10159 # FIXME: Should let the user specify the lib program.
10160 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10161 enable_shared_with_static_runtimes=yes
10166 darwin* | rhapsody*)
10169 archive_cmds_need_lc=no
10171 hardcode_automatic=yes
10172 hardcode_shlibpath_var=unsupported
10173 if test yes = "$lt_cv_ld_force_load"; then
10174 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\"`'
10177 whole_archive_flag_spec=''
10179 link_all_deplibs=yes
10180 allow_undefined_flag=$_lt_dar_allow_undefined
10181 case $cc_basename in
10182 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10183 *) _lt_dar_can_shared=$GCC ;;
10185 if test yes = "$_lt_dar_can_shared"; then
10186 output_verbose_link_cmd=func_echo_all
10187 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10188 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10189 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"
10190 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"
10199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10200 hardcode_libdir_flag_spec='-L$libdir'
10201 hardcode_shlibpath_var=no
10204 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10205 # support. Future versions do this automatically, but an explicit c++rt0.o
10206 # does not break anything, and helps significantly (at the cost of a little
10209 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10210 hardcode_libdir_flag_spec='-R$libdir'
10211 hardcode_direct=yes
10212 hardcode_shlibpath_var=no
10215 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10217 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10218 hardcode_direct=yes
10219 hardcode_minus_L=yes
10220 hardcode_shlibpath_var=no
10223 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10224 freebsd* | dragonfly*)
10225 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10226 hardcode_libdir_flag_spec='-R$libdir'
10227 hardcode_direct=yes
10228 hardcode_shlibpath_var=no
10232 if test yes = "$GCC"; then
10233 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10235 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10237 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10238 hardcode_libdir_separator=:
10239 hardcode_direct=yes
10241 # hardcode_minus_L: Not really in the search PATH,
10242 # but as the default location of the library.
10243 hardcode_minus_L=yes
10244 export_dynamic_flag_spec='$wl-E'
10248 if test yes,no = "$GCC,$with_gnu_ld"; then
10249 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10251 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10253 if test no = "$with_gnu_ld"; then
10254 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10255 hardcode_libdir_separator=:
10256 hardcode_direct=yes
10257 hardcode_direct_absolute=yes
10258 export_dynamic_flag_spec='$wl-E'
10259 # hardcode_minus_L: Not really in the search PATH,
10260 # but as the default location of the library.
10261 hardcode_minus_L=yes
10266 if test yes,no = "$GCC,$with_gnu_ld"; then
10269 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10272 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10275 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10281 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10284 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10288 # Older versions of the 11.00 compiler do not understand -b yet
10289 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10291 $as_echo_n "checking if $CC understands -b... " >&6; }
10292 if ${lt_cv_prog_compiler__b+:} false; then :
10293 $as_echo_n "(cached) " >&6
10295 lt_cv_prog_compiler__b=no
10296 save_LDFLAGS=$LDFLAGS
10297 LDFLAGS="$LDFLAGS -b"
10298 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10299 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10300 # The linker can only warn and ignore the option if not recognized
10301 # So say no if there are warnings
10302 if test -s conftest.err; then
10303 # Append any errors to the config.log.
10304 cat conftest.err 1>&5
10305 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10306 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10307 if diff conftest.exp conftest.er2 >/dev/null; then
10308 lt_cv_prog_compiler__b=yes
10311 lt_cv_prog_compiler__b=yes
10315 LDFLAGS=$save_LDFLAGS
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10319 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10321 if test yes = "$lt_cv_prog_compiler__b"; then
10322 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10324 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10330 if test no = "$with_gnu_ld"; then
10331 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10332 hardcode_libdir_separator=:
10337 hardcode_shlibpath_var=no
10340 hardcode_direct=yes
10341 hardcode_direct_absolute=yes
10342 export_dynamic_flag_spec='$wl-E'
10344 # hardcode_minus_L: Not really in the search PATH,
10345 # but as the default location of the library.
10346 hardcode_minus_L=yes
10352 irix5* | irix6* | nonstopux*)
10353 if test yes = "$GCC"; then
10354 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'
10355 # Try to use the -exported_symbol ld option, if it does not
10356 # work, assume that -exports_file does not work either and
10357 # implicitly export all symbols.
10358 # This should be the same for all languages, so no per-tag cache variable.
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10360 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10361 if ${lt_cv_irix_exported_symbol+:} false; then :
10362 $as_echo_n "(cached) " >&6
10364 save_LDFLAGS=$LDFLAGS
10365 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10367 /* end confdefs.h. */
10368 int foo (void) { return 0; }
10370 if ac_fn_c_try_link "$LINENO"; then :
10371 lt_cv_irix_exported_symbol=yes
10373 lt_cv_irix_exported_symbol=no
10375 rm -f core conftest.err conftest.$ac_objext \
10376 conftest$ac_exeext conftest.$ac_ext
10377 LDFLAGS=$save_LDFLAGS
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10380 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10381 if test yes = "$lt_cv_irix_exported_symbol"; then
10382 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'
10385 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'
10386 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'
10388 archive_cmds_need_lc='no'
10389 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10390 hardcode_libdir_separator=:
10392 link_all_deplibs=yes
10396 case $cc_basename in
10398 # Fabrice Bellard et al's Tiny C Compiler
10400 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10406 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10407 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10409 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10411 hardcode_libdir_flag_spec='-R$libdir'
10412 hardcode_direct=yes
10413 hardcode_shlibpath_var=no
10417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10418 hardcode_direct=yes
10419 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10420 hardcode_libdir_separator=:
10421 hardcode_shlibpath_var=no
10427 openbsd* | bitrig*)
10428 if test -f /usr/libexec/ld.so; then
10429 hardcode_direct=yes
10430 hardcode_shlibpath_var=no
10431 hardcode_direct_absolute=yes
10432 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10433 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10434 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10435 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10436 export_dynamic_flag_spec='$wl-E'
10438 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10439 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10447 hardcode_libdir_flag_spec='-L$libdir'
10448 hardcode_minus_L=yes
10449 allow_undefined_flag=unsupported
10451 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10452 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10453 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10454 $ECHO EXPORTS >> $output_objdir/$libname.def~
10455 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10456 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10457 emximp -o $lib $output_objdir/$libname.def'
10458 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10459 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10460 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10461 $ECHO EXPORTS >> $output_objdir/$libname.def~
10462 prefix_cmds="$SED"~
10463 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10464 prefix_cmds="$prefix_cmds -e 1d";
10466 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10467 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10468 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10469 emximp -o $lib $output_objdir/$libname.def'
10470 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10471 enable_shared_with_static_runtimes=yes
10475 if test yes = "$GCC"; then
10476 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10477 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'
10479 allow_undefined_flag=' -expect_unresolved \*'
10480 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'
10482 archive_cmds_need_lc='no'
10483 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10484 hardcode_libdir_separator=:
10487 osf4* | osf5*) # as osf3* with the addition of -msym flag
10488 if test yes = "$GCC"; then
10489 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10490 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'
10491 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10493 allow_undefined_flag=' -expect_unresolved \*'
10494 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'
10495 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~
10496 $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'
10498 # Both c and cxx compiler support -rpath directly
10499 hardcode_libdir_flag_spec='-rpath $libdir'
10501 archive_cmds_need_lc='no'
10502 hardcode_libdir_separator=:
10506 no_undefined_flag=' -z defs'
10507 if test yes = "$GCC"; then
10509 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10510 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10511 $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'
10513 case `$CC -V 2>&1` in
10516 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10517 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10518 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10522 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10523 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10524 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10528 hardcode_libdir_flag_spec='-R$libdir'
10529 hardcode_shlibpath_var=no
10531 solaris2.[0-5] | solaris2.[0-5].*) ;;
10533 # The compiler driver will combine and reorder linker options,
10534 # but understands '-z linker_flag'. GCC discards it without '$wl',
10535 # but is careful enough not to reorder.
10536 # Supported since Solaris 2.6 (maybe 2.5.1?)
10537 if test yes = "$GCC"; then
10538 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10540 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10544 link_all_deplibs=yes
10548 if test sequent = "$host_vendor"; then
10549 # Use $CC to link under sequent, because it throws in some extra .o
10550 # files that make .init and .fini sections work.
10551 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10553 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10555 hardcode_libdir_flag_spec='-L$libdir'
10556 hardcode_direct=yes
10557 hardcode_minus_L=yes
10558 hardcode_shlibpath_var=no
10562 case $host_vendor in
10564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10565 hardcode_direct=yes # is this really true???
10568 ## LD is ld it makes a PLAMLIB
10569 ## CC just makes a GrossModule.
10570 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10571 reload_cmds='$CC -r -o $output$reload_objs'
10575 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10576 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10579 runpath_var='LD_RUN_PATH'
10580 hardcode_shlibpath_var=no
10584 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10585 hardcode_shlibpath_var=no
10586 export_dynamic_flag_spec='-Bexport'
10590 if test -d /usr/nec; then
10591 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10592 hardcode_shlibpath_var=no
10593 runpath_var=LD_RUN_PATH
10594 hardcode_runpath_var=yes
10599 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10600 no_undefined_flag='$wl-z,text'
10601 archive_cmds_need_lc=no
10602 hardcode_shlibpath_var=no
10603 runpath_var='LD_RUN_PATH'
10605 if test yes = "$GCC"; then
10606 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10607 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10609 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10610 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10614 sysv5* | sco3.2v5* | sco5v6*)
10615 # Note: We CANNOT use -z defs as we might desire, because we do not
10616 # link with -lc, and that would cause any symbols used from libc to
10617 # always be unresolved, which means just about no library would
10618 # ever link correctly. If we're not using GNU ld we use -z text
10619 # though, which does catch some bad symbols but isn't as heavy-handed
10621 no_undefined_flag='$wl-z,text'
10622 allow_undefined_flag='$wl-z,nodefs'
10623 archive_cmds_need_lc=no
10624 hardcode_shlibpath_var=no
10625 hardcode_libdir_flag_spec='$wl-R,$libdir'
10626 hardcode_libdir_separator=':'
10627 link_all_deplibs=yes
10628 export_dynamic_flag_spec='$wl-Bexport'
10629 runpath_var='LD_RUN_PATH'
10631 if test yes = "$GCC"; then
10632 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10633 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10635 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10636 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10642 hardcode_libdir_flag_spec='-L$libdir'
10643 hardcode_shlibpath_var=no
10651 if test sni = "$host_vendor"; then
10653 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10654 export_dynamic_flag_spec='$wl-Blargedynsym'
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10661 $as_echo "$ld_shlibs" >&6; }
10662 test no = "$ld_shlibs" && can_build_shared=no
10664 with_gnu_ld=$with_gnu_ld
10681 # Do we need to explicitly link libc?
10683 case "x$archive_cmds_need_lc" in
10685 # Assume -lc should be added
10686 archive_cmds_need_lc=yes
10688 if test yes,yes = "$GCC,$enable_shared"; then
10689 case $archive_cmds in
10691 # FIXME: we may have to deal with multi-command sequences.
10694 # Test whether the compiler implicitly links with -lc since on some
10695 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10696 # to ld, don't add -lc before -lgcc.
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10698 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10699 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10700 $as_echo_n "(cached) " >&6
10703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10706 (eval $ac_compile) 2>&5
10708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10709 test $ac_status = 0; } 2>conftest.err; then
10712 libobjs=conftest.$ac_objext
10714 wl=$lt_prog_compiler_wl
10715 pic_flag=$lt_prog_compiler_pic
10721 lt_save_allow_undefined_flag=$allow_undefined_flag
10722 allow_undefined_flag=
10723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10724 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10727 test $ac_status = 0; }
10729 lt_cv_archive_cmds_need_lc=no
10731 lt_cv_archive_cmds_need_lc=yes
10733 allow_undefined_flag=$lt_save_allow_undefined_flag
10735 cat conftest.err 1>&5
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10741 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10742 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10901 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10903 if test yes = "$GCC"; then
10905 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10906 *) lt_awk_arg='/^libraries:/' ;;
10909 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10910 *) lt_sed_strip_eq='s|=/|/|g' ;;
10912 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10913 case $lt_search_path_spec in
10915 # if the path contains ";" then we assume it to be the separator
10916 # otherwise default to the standard path separator (i.e. ":") - it is
10917 # assumed that no part of a normal pathname contains ";" but that should
10918 # okay in the real world where ";" in dirpaths is itself problematic.
10919 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10922 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10925 # Ok, now we have the path, separated by spaces, we can step through it
10926 # and add multilib dir if necessary...
10927 lt_tmp_lt_search_path_spec=
10928 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10929 # ...but if some path component already ends with the multilib dir we assume
10930 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10931 case "$lt_multi_os_dir; $lt_search_path_spec " in
10932 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10936 for lt_sys_path in $lt_search_path_spec; do
10937 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10938 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10939 elif test -n "$lt_multi_os_dir"; then
10940 test -d "$lt_sys_path" && \
10941 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10944 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10945 BEGIN {RS = " "; FS = "/|\n";} {
10948 for (lt_i = NF; lt_i > 0; lt_i--) {
10949 if ($lt_i != "" && $lt_i != ".") {
10950 if ($lt_i == "..") {
10953 if (lt_count == 0) {
10954 lt_foo = "/" $lt_i lt_foo;
10961 if (lt_foo != "") { lt_freq[lt_foo]++; }
10962 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10964 # AWK program above erroneously prepends '/' to C:/dos/paths
10967 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10968 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10970 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10972 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10974 library_names_spec=
10975 libname_spec='lib$name'
10979 postuninstall_cmds=
10983 shlibpath_overrides_runpath=unknown
10985 dynamic_linker="$host_os ld.so"
10986 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10987 need_lib_prefix=unknown
10988 hardcode_into_libs=no
10990 # when you set need_version to no, make sure it does not cause -set_version
10991 # flags to be left without arguments
10992 need_version=unknown
10998 version_type=linux # correct to gnu/linux during the next big refactor
10999 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11000 shlibpath_var=LIBPATH
11002 # AIX 3 has no versioning support, so we append a major version to the name.
11003 soname_spec='$libname$release$shared_ext$major'
11007 version_type=linux # correct to gnu/linux during the next big refactor
11010 hardcode_into_libs=yes
11011 if test ia64 = "$host_cpu"; then
11012 # AIX 5 supports IA64
11013 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11014 shlibpath_var=LD_LIBRARY_PATH
11016 # With GCC up to 2.95.x, collect2 would create an import file
11017 # for dependence libraries. The import file would start with
11018 # the line '#! .'. This would cause the generated library to
11019 # depend on '.', always an invalid library. This was fixed in
11020 # development snapshots of GCC prior to 3.0.
11022 aix4 | aix4.[01] | aix4.[01].*)
11023 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11025 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11028 can_build_shared=no
11032 # Using Import Files as archive members, it is possible to support
11033 # filename-based versioning of shared library archives on AIX. While
11034 # this would work for both with and without runtime linking, it will
11035 # prevent static linking of such archives. So we do filename-based
11036 # shared library versioning with .so extension only, which is used
11037 # when both runtime linking and shared linking is enabled.
11038 # Unfortunately, runtime linking may impact performance, so we do
11039 # not want this to be the default eventually. Also, we use the
11040 # versioned .so libs for executables only if there is the -brtl
11041 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11042 # To allow for filename-based versioning support, we need to create
11043 # libNAME.so.V as an archive file, containing:
11044 # *) an Import File, referring to the versioned filename of the
11045 # archive as well as the shared archive member, telling the
11046 # bitwidth (32 or 64) of that shared object, and providing the
11047 # list of exported symbols of that shared object, eventually
11048 # decorated with the 'weak' keyword
11049 # *) the shared object with the F_LOADONLY flag set, to really avoid
11050 # it being seen by the linker.
11051 # At run time we better use the real file rather than another symlink,
11052 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11054 case $with_aix_soname,$aix_use_runtimelinking in
11055 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11056 # soname into executable. Probably we can add versioning support to
11057 # collect2, so additional links can be useful in future.
11058 aix,yes) # traditional libtool
11059 dynamic_linker='AIX unversionable lib.so'
11060 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11061 # instead of lib<name>.a to let people know that these are not
11062 # typical AIX shared libraries.
11063 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11065 aix,no) # traditional AIX only
11066 dynamic_linker='AIX lib.a(lib.so.V)'
11067 # We preserve .a as extension for shared libraries through AIX4.2
11068 # and later when we are not doing run time linking.
11069 library_names_spec='$libname$release.a $libname.a'
11070 soname_spec='$libname$release$shared_ext$major'
11072 svr4,*) # full svr4 only
11073 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11074 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11075 # We do not specify a path in Import Files, so LIBPATH fires.
11076 shlibpath_overrides_runpath=yes
11078 *,yes) # both, prefer svr4
11079 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11080 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11081 # unpreferred sharedlib libNAME.a needs extra handling
11082 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11083 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11084 # We do not specify a path in Import Files, so LIBPATH fires.
11085 shlibpath_overrides_runpath=yes
11087 *,no) # both, prefer aix
11088 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11089 library_names_spec='$libname$release.a $libname.a'
11090 soname_spec='$libname$release$shared_ext$major'
11091 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11092 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11093 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11096 shlibpath_var=LIBPATH
11103 # Since July 2007 AmigaOS4 officially supports .so libraries.
11104 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11105 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11108 library_names_spec='$libname.ixlibrary $libname.a'
11109 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11110 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11116 library_names_spec='$libname$shared_ext'
11117 dynamic_linker="$host_os ld.so"
11118 shlibpath_var=LIBRARY_PATH
11122 version_type=linux # correct to gnu/linux during the next big refactor
11124 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11125 soname_spec='$libname$release$shared_ext$major'
11126 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11127 shlibpath_var=LD_LIBRARY_PATH
11128 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11129 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11130 # the default ld.so.conf also contains /usr/contrib/lib and
11131 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11132 # libtool to hard-code these into programs
11135 cygwin* | mingw* | pw32* | cegcc*)
11136 version_type=windows
11141 case $GCC,$cc_basename in
11144 library_names_spec='$libname.dll.a'
11145 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11146 postinstall_cmds='base_file=`basename \$file`~
11147 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11148 dldir=$destdir/`dirname \$dlpath`~
11149 test -d \$dldir || mkdir -p \$dldir~
11150 $install_prog $dir/$dlname \$dldir/$dlname~
11151 chmod a+x \$dldir/$dlname~
11152 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11153 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11155 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11156 dlpath=$dir/\$dldll~
11158 shlibpath_overrides_runpath=yes
11162 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11163 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11165 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11168 # MinGW DLLs use traditional 'lib' prefix
11169 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11172 # pw32 DLLs use 'pw' prefix rather than 'lib'
11173 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11176 dynamic_linker='Win32 ld.exe'
11181 libname_spec='$name'
11182 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11183 library_names_spec='$libname.dll.lib'
11187 sys_lib_search_path_spec=
11190 for lt_path in $LIB
11193 # Let DOS variable expansion print the short 8.3 style file name.
11194 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11195 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11198 # Convert to MSYS style.
11199 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11202 # Convert to unix form, then to dos form, then back to unix form
11203 # but this time dos style (no spaces!) so that the unix form looks
11204 # like /cygdrive/c/PROGRA~1:/cygdr...
11205 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11206 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11207 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11210 sys_lib_search_path_spec=$LIB
11211 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11212 # It is most probably a Windows format PATH.
11213 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11215 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11217 # FIXME: find the short name or the path components, as spaces are
11218 # common. (e.g. "Program Files" -> "PROGRA~1")
11222 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11223 postinstall_cmds='base_file=`basename \$file`~
11224 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11225 dldir=$destdir/`dirname \$dlpath`~
11226 test -d \$dldir || mkdir -p \$dldir~
11227 $install_prog $dir/$dlname \$dldir/$dlname'
11228 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11229 dlpath=$dir/\$dldll~
11231 shlibpath_overrides_runpath=yes
11232 dynamic_linker='Win32 link.exe'
11236 # Assume MSVC wrapper
11237 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11238 dynamic_linker='Win32 ld.exe'
11241 # FIXME: first we should search . and the directory the executable is in
11245 darwin* | rhapsody*)
11246 dynamic_linker="$host_os dyld"
11247 version_type=darwin
11250 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11251 soname_spec='$libname$release$major$shared_ext'
11252 shlibpath_overrides_runpath=yes
11253 shlibpath_var=DYLD_LIBRARY_PATH
11254 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11256 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11257 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11261 version_type=linux # correct to gnu/linux during the next big refactor
11264 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11265 soname_spec='$libname$release$shared_ext$major'
11266 shlibpath_var=LD_LIBRARY_PATH
11269 freebsd* | dragonfly*)
11270 # DragonFly does not have aout. When/if they implement a new
11271 # versioning mechanism, adjust this.
11272 if test -x /usr/bin/objformat; then
11273 objformat=`/usr/bin/objformat`
11276 freebsd[23].*) objformat=aout ;;
11277 *) objformat=elf ;;
11280 version_type=freebsd-$objformat
11281 case $version_type in
11283 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11284 soname_spec='$libname$release$shared_ext$major'
11289 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11293 shlibpath_var=LD_LIBRARY_PATH
11296 shlibpath_overrides_runpath=yes
11298 freebsd3.[01]* | freebsdelf3.[01]*)
11299 shlibpath_overrides_runpath=yes
11300 hardcode_into_libs=yes
11302 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11303 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11304 shlibpath_overrides_runpath=no
11305 hardcode_into_libs=yes
11307 *) # from 4.6 on, and DragonFly
11308 shlibpath_overrides_runpath=yes
11309 hardcode_into_libs=yes
11315 version_type=linux # correct to gnu/linux during the next big refactor
11318 dynamic_linker="$host_os runtime_loader"
11319 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11320 soname_spec='$libname$release$shared_ext$major'
11321 shlibpath_var=LIBRARY_PATH
11322 shlibpath_overrides_runpath=no
11323 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11324 hardcode_into_libs=yes
11327 hpux9* | hpux10* | hpux11*)
11328 # Give a soname corresponding to the major version so that dld.sl refuses to
11329 # link against other versions.
11336 hardcode_into_libs=yes
11337 dynamic_linker="$host_os dld.so"
11338 shlibpath_var=LD_LIBRARY_PATH
11339 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11341 soname_spec='$libname$release$shared_ext$major'
11342 if test 32 = "$HPUX_IA64_MODE"; then
11343 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11344 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11346 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11347 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11352 hardcode_into_libs=yes
11353 dynamic_linker="$host_os dld.sl"
11354 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11355 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11356 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11357 soname_spec='$libname$release$shared_ext$major'
11358 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11363 dynamic_linker="$host_os dld.sl"
11364 shlibpath_var=SHLIB_PATH
11365 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11366 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11367 soname_spec='$libname$release$shared_ext$major'
11370 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11371 postinstall_cmds='chmod 555 $lib'
11372 # or fails outright, so override atomically:
11373 install_override_mode=555
11377 version_type=linux # correct to gnu/linux during the next big refactor
11380 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11381 soname_spec='$libname$release$shared_ext$major'
11382 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11383 shlibpath_var=LD_LIBRARY_PATH
11384 shlibpath_overrides_runpath=no
11385 hardcode_into_libs=yes
11388 irix5* | irix6* | nonstopux*)
11390 nonstopux*) version_type=nonstopux ;;
11392 if test yes = "$lt_cv_prog_gnu_ld"; then
11393 version_type=linux # correct to gnu/linux during the next big refactor
11400 soname_spec='$libname$release$shared_ext$major'
11401 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11403 irix5* | nonstopux*)
11404 libsuff= shlibsuff=
11407 case $LD in # libtool.m4 will add one of these switches to LD
11408 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11409 libsuff= shlibsuff= libmagic=32-bit;;
11410 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11411 libsuff=32 shlibsuff=N32 libmagic=N32;;
11412 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11413 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11414 *) libsuff= shlibsuff= libmagic=never-match;;
11418 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11419 shlibpath_overrides_runpath=no
11420 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11421 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11422 hardcode_into_libs=yes
11425 # No shared lib support for Linux oldld, aout, or coff.
11426 linux*oldld* | linux*aout* | linux*coff*)
11431 version_type=none # Android doesn't support versioned libraries.
11434 library_names_spec='$libname$release$shared_ext'
11435 soname_spec='$libname$release$shared_ext'
11437 shlibpath_var=LD_LIBRARY_PATH
11438 shlibpath_overrides_runpath=yes
11440 # This implies no fast_install, which is unacceptable.
11441 # Some rework will be needed to allow for fast_install
11442 # before this can be enabled.
11443 hardcode_into_libs=yes
11445 dynamic_linker='Android linker'
11446 # Don't embed -rpath directories since the linker doesn't support them.
11447 hardcode_libdir_flag_spec='-L$libdir'
11450 # This must be glibc/ELF.
11451 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11452 version_type=linux # correct to gnu/linux during the next big refactor
11455 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11456 soname_spec='$libname$release$shared_ext$major'
11457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11458 shlibpath_var=LD_LIBRARY_PATH
11459 shlibpath_overrides_runpath=no
11461 # Some binutils ld are patched to set DT_RUNPATH
11462 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11463 $as_echo_n "(cached) " >&6
11465 lt_cv_shlibpath_overrides_runpath=no
11466 save_LDFLAGS=$LDFLAGS
11467 save_libdir=$libdir
11468 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11469 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11471 /* end confdefs.h. */
11481 if ac_fn_c_try_link "$LINENO"; then :
11482 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11483 lt_cv_shlibpath_overrides_runpath=yes
11486 rm -f core conftest.err conftest.$ac_objext \
11487 conftest$ac_exeext conftest.$ac_ext
11488 LDFLAGS=$save_LDFLAGS
11489 libdir=$save_libdir
11493 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11495 # This implies no fast_install, which is unacceptable.
11496 # Some rework will be needed to allow for fast_install
11497 # before this can be enabled.
11498 hardcode_into_libs=yes
11500 # Ideally, we could use ldconfig to report *all* directores which are
11501 # searched for libraries, however this is still not possible. Aside from not
11502 # being certain /sbin/ldconfig is available, command
11503 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11504 # even though it is searched at run-time. Try to do the best guess by
11505 # appending ld.so.conf contents (and includes) to the search path.
11506 if test -f /etc/ld.so.conf; then
11507 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' ' '`
11508 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11511 # We used to test for /lib/ld.so.1 and disable shared libraries on
11512 # powerpc, because MkLinux only supported shared libraries with the
11513 # GNU dynamic linker. Since this was broken with cross compilers,
11514 # most powerpc-linux boxes support dynamic linking these days and
11515 # people can always --disable-shared, the test was removed, and we
11516 # assume the GNU/Linux dynamic linker is in use.
11517 dynamic_linker='GNU/Linux ld.so'
11524 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11525 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11527 dynamic_linker='NetBSD (a.out) ld.so'
11529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11530 soname_spec='$libname$release$shared_ext$major'
11531 dynamic_linker='NetBSD ld.elf_so'
11533 shlibpath_var=LD_LIBRARY_PATH
11534 shlibpath_overrides_runpath=yes
11535 hardcode_into_libs=yes
11539 version_type=linux # correct to gnu/linux during the next big refactor
11540 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11541 shlibpath_var=LD_LIBRARY_PATH
11542 shlibpath_overrides_runpath=yes
11549 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11550 soname_spec='$libname$release$shared_ext$major'
11551 shlibpath_var=LD_LIBRARY_PATH
11552 shlibpath_overrides_runpath=no
11553 hardcode_into_libs=yes
11554 dynamic_linker='ldqnx.so'
11557 openbsd* | bitrig*)
11559 sys_lib_dlsearch_path_spec=/usr/lib
11561 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11566 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11568 shlibpath_var=LD_LIBRARY_PATH
11569 shlibpath_overrides_runpath=yes
11573 libname_spec='$name'
11574 version_type=windows
11578 # OS/2 can only load a DLL with a base name of 8 characters or less.
11579 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11580 v=$($ECHO $release$versuffix | tr -d .-);
11581 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11582 $ECHO $n$v`$shared_ext'
11583 library_names_spec='${libname}_dll.$libext'
11584 dynamic_linker='OS/2 ld.exe'
11585 shlibpath_var=BEGINLIBPATH
11586 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11587 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11588 postinstall_cmds='base_file=`basename \$file`~
11589 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11590 dldir=$destdir/`dirname \$dlpath`~
11591 test -d \$dldir || mkdir -p \$dldir~
11592 $install_prog $dir/$dlname \$dldir/$dlname~
11593 chmod a+x \$dldir/$dlname~
11594 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11595 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11597 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11598 dlpath=$dir/\$dldll~
11602 osf3* | osf4* | osf5*)
11606 soname_spec='$libname$release$shared_ext$major'
11607 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11608 shlibpath_var=LD_LIBRARY_PATH
11609 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11610 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11618 version_type=linux # correct to gnu/linux during the next big refactor
11621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11622 soname_spec='$libname$release$shared_ext$major'
11623 shlibpath_var=LD_LIBRARY_PATH
11624 shlibpath_overrides_runpath=yes
11625 hardcode_into_libs=yes
11626 # ldd complains unless libraries are executable
11627 postinstall_cmds='chmod +x $lib'
11632 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11633 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11634 shlibpath_var=LD_LIBRARY_PATH
11635 shlibpath_overrides_runpath=yes
11636 if test yes = "$with_gnu_ld"; then
11643 version_type=linux # correct to gnu/linux during the next big refactor
11644 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11645 soname_spec='$libname$release$shared_ext$major'
11646 shlibpath_var=LD_LIBRARY_PATH
11647 case $host_vendor in
11649 shlibpath_overrides_runpath=no
11651 runpath_var=LD_RUN_PATH
11659 shlibpath_overrides_runpath=no
11660 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11666 if test -d /usr/nec; then
11667 version_type=linux # correct to gnu/linux during the next big refactor
11668 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11669 soname_spec='$libname$shared_ext.$major'
11670 shlibpath_var=LD_LIBRARY_PATH
11674 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11678 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11679 soname_spec='$libname$release$shared_ext$major'
11680 shlibpath_var=LD_LIBRARY_PATH
11681 shlibpath_overrides_runpath=yes
11682 hardcode_into_libs=yes
11683 if test yes = "$with_gnu_ld"; then
11684 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11686 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11689 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11693 sys_lib_dlsearch_path_spec='/usr/lib'
11697 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11698 version_type=linux # correct to gnu/linux during the next big refactor
11701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11702 shlibpath_var=LD_LIBRARY_PATH
11703 shlibpath_overrides_runpath=no
11704 hardcode_into_libs=yes
11708 version_type=linux # correct to gnu/linux during the next big refactor
11709 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11710 soname_spec='$libname$release$shared_ext$major'
11711 shlibpath_var=LD_LIBRARY_PATH
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11719 $as_echo "$dynamic_linker" >&6; }
11720 test no = "$dynamic_linker" && can_build_shared=no
11722 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11723 if test yes = "$GCC"; then
11724 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11727 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11728 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11731 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11732 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11735 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11736 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11738 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11739 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11741 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11742 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11841 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11843 if test -n "$hardcode_libdir_flag_spec" ||
11844 test -n "$runpath_var" ||
11845 test yes = "$hardcode_automatic"; then
11847 # We can hardcode non-existent directories.
11848 if test no != "$hardcode_direct" &&
11849 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11850 # have to relink, otherwise we might link with an installed library
11851 # when we should be linking with a yet-to-be-installed one
11852 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11853 test no != "$hardcode_minus_L"; then
11854 # Linking always hardcodes the temporary library directory.
11855 hardcode_action=relink
11857 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11858 hardcode_action=immediate
11861 # We cannot hardcode anything, or else we can only hardcode existing
11863 hardcode_action=unsupported
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11866 $as_echo "$hardcode_action" >&6; }
11868 if test relink = "$hardcode_action" ||
11869 test yes = "$inherit_rpath"; then
11870 # Fast installation is not supported
11871 enable_fast_install=no
11872 elif test yes = "$shlibpath_overrides_runpath" ||
11873 test no = "$enable_shared"; then
11874 # Fast installation is not necessary
11875 enable_fast_install=needless
11883 if test yes != "$enable_dlopen"; then
11884 enable_dlopen=unknown
11885 enable_dlopen_self=unknown
11886 enable_dlopen_self_static=unknown
11893 lt_cv_dlopen=load_add_on
11895 lt_cv_dlopen_self=yes
11898 mingw* | pw32* | cegcc*)
11899 lt_cv_dlopen=LoadLibrary
11904 lt_cv_dlopen=dlopen
11909 # if libdl is installed we need to link against it
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11911 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11912 if ${ac_cv_lib_dl_dlopen+:} false; then :
11913 $as_echo_n "(cached) " >&6
11915 ac_check_lib_save_LIBS=$LIBS
11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h. */
11920 /* Override any GCC internal prototype to avoid an error.
11921 Use char because int might match the return type of a GCC
11922 builtin and then its argument prototype would still apply. */
11935 if ac_fn_c_try_link "$LINENO"; then :
11936 ac_cv_lib_dl_dlopen=yes
11938 ac_cv_lib_dl_dlopen=no
11940 rm -f core conftest.err conftest.$ac_objext \
11941 conftest$ac_exeext conftest.$ac_ext
11942 LIBS=$ac_check_lib_save_LIBS
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11945 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11946 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11947 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11952 lt_cv_dlopen_self=yes
11959 # Don't try to run any link tests for TPF. We know it's impossible
11960 # because TPF is a cross-compiler, and we know how we open DSOs.
11961 lt_cv_dlopen=dlopen
11963 lt_cv_dlopen_self=no
11967 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11968 if test "x$ac_cv_func_shl_load" = xyes; then :
11969 lt_cv_dlopen=shl_load
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11972 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11973 if ${ac_cv_lib_dld_shl_load+:} false; then :
11974 $as_echo_n "(cached) " >&6
11976 ac_check_lib_save_LIBS=$LIBS
11978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979 /* end confdefs.h. */
11981 /* Override any GCC internal prototype to avoid an error.
11982 Use char because int might match the return type of a GCC
11983 builtin and then its argument prototype would still apply. */
11991 return shl_load ();
11996 if ac_fn_c_try_link "$LINENO"; then :
11997 ac_cv_lib_dld_shl_load=yes
11999 ac_cv_lib_dld_shl_load=no
12001 rm -f core conftest.err conftest.$ac_objext \
12002 conftest$ac_exeext conftest.$ac_ext
12003 LIBS=$ac_check_lib_save_LIBS
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12006 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12007 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12008 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12010 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12011 if test "x$ac_cv_func_dlopen" = xyes; then :
12012 lt_cv_dlopen=dlopen
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12015 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12016 if ${ac_cv_lib_dl_dlopen+:} false; then :
12017 $as_echo_n "(cached) " >&6
12019 ac_check_lib_save_LIBS=$LIBS
12021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12022 /* end confdefs.h. */
12024 /* Override any GCC internal prototype to avoid an error.
12025 Use char because int might match the return type of a GCC
12026 builtin and then its argument prototype would still apply. */
12039 if ac_fn_c_try_link "$LINENO"; then :
12040 ac_cv_lib_dl_dlopen=yes
12042 ac_cv_lib_dl_dlopen=no
12044 rm -f core conftest.err conftest.$ac_objext \
12045 conftest$ac_exeext conftest.$ac_ext
12046 LIBS=$ac_check_lib_save_LIBS
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12049 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12050 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12051 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12054 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12055 if ${ac_cv_lib_svld_dlopen+:} false; then :
12056 $as_echo_n "(cached) " >&6
12058 ac_check_lib_save_LIBS=$LIBS
12059 LIBS="-lsvld $LIBS"
12060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12061 /* end confdefs.h. */
12063 /* Override any GCC internal prototype to avoid an error.
12064 Use char because int might match the return type of a GCC
12065 builtin and then its argument prototype would still apply. */
12078 if ac_fn_c_try_link "$LINENO"; then :
12079 ac_cv_lib_svld_dlopen=yes
12081 ac_cv_lib_svld_dlopen=no
12083 rm -f core conftest.err conftest.$ac_objext \
12084 conftest$ac_exeext conftest.$ac_ext
12085 LIBS=$ac_check_lib_save_LIBS
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12088 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12089 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12090 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12093 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12094 if ${ac_cv_lib_dld_dld_link+:} false; then :
12095 $as_echo_n "(cached) " >&6
12097 ac_check_lib_save_LIBS=$LIBS
12099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12100 /* end confdefs.h. */
12102 /* Override any GCC internal prototype to avoid an error.
12103 Use char because int might match the return type of a GCC
12104 builtin and then its argument prototype would still apply. */
12112 return dld_link ();
12117 if ac_fn_c_try_link "$LINENO"; then :
12118 ac_cv_lib_dld_dld_link=yes
12120 ac_cv_lib_dld_dld_link=no
12122 rm -f core conftest.err conftest.$ac_objext \
12123 conftest$ac_exeext conftest.$ac_ext
12124 LIBS=$ac_check_lib_save_LIBS
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12127 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12128 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12129 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12150 if test no = "$lt_cv_dlopen"; then
12156 case $lt_cv_dlopen in
12158 save_CPPFLAGS=$CPPFLAGS
12159 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12161 save_LDFLAGS=$LDFLAGS
12162 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12165 LIBS="$lt_cv_dlopen_libs $LIBS"
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12168 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12169 if ${lt_cv_dlopen_self+:} false; then :
12170 $as_echo_n "(cached) " >&6
12172 if test yes = "$cross_compiling"; then :
12173 lt_cv_dlopen_self=cross
12175 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12176 lt_status=$lt_dlunknown
12177 cat > conftest.$ac_ext <<_LT_EOF
12178 #line $LINENO "configure"
12179 #include "confdefs.h"
12188 # define LT_DLGLOBAL RTLD_GLOBAL
12191 # define LT_DLGLOBAL DL_GLOBAL
12193 # define LT_DLGLOBAL 0
12197 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12198 find out it does not work in some platform. */
12199 #ifndef LT_DLLAZY_OR_NOW
12201 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12204 # define LT_DLLAZY_OR_NOW DL_LAZY
12207 # define LT_DLLAZY_OR_NOW RTLD_NOW
12210 # define LT_DLLAZY_OR_NOW DL_NOW
12212 # define LT_DLLAZY_OR_NOW 0
12219 /* When -fvisibility=hidden is used, assume the code has been annotated
12220 correspondingly for the symbols needed. */
12221 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12222 int fnord () __attribute__((visibility("default")));
12225 int fnord () { return 42; }
12228 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12229 int status = $lt_dlunknown;
12233 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12236 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12237 else puts (dlerror ());
12239 /* dlclose (self); */
12247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12248 (eval $ac_link) 2>&5
12250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12251 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12252 (./conftest; exit; ) >&5 2>/dev/null
12254 case x$lt_status in
12255 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12256 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12257 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12260 # compilation failed
12261 lt_cv_dlopen_self=no
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12269 $as_echo "$lt_cv_dlopen_self" >&6; }
12271 if test yes = "$lt_cv_dlopen_self"; then
12272 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12274 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12275 if ${lt_cv_dlopen_self_static+:} false; then :
12276 $as_echo_n "(cached) " >&6
12278 if test yes = "$cross_compiling"; then :
12279 lt_cv_dlopen_self_static=cross
12281 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12282 lt_status=$lt_dlunknown
12283 cat > conftest.$ac_ext <<_LT_EOF
12284 #line $LINENO "configure"
12285 #include "confdefs.h"
12294 # define LT_DLGLOBAL RTLD_GLOBAL
12297 # define LT_DLGLOBAL DL_GLOBAL
12299 # define LT_DLGLOBAL 0
12303 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12304 find out it does not work in some platform. */
12305 #ifndef LT_DLLAZY_OR_NOW
12307 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12310 # define LT_DLLAZY_OR_NOW DL_LAZY
12313 # define LT_DLLAZY_OR_NOW RTLD_NOW
12316 # define LT_DLLAZY_OR_NOW DL_NOW
12318 # define LT_DLLAZY_OR_NOW 0
12325 /* When -fvisibility=hidden is used, assume the code has been annotated
12326 correspondingly for the symbols needed. */
12327 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12328 int fnord () __attribute__((visibility("default")));
12331 int fnord () { return 42; }
12334 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12335 int status = $lt_dlunknown;
12339 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12342 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12343 else puts (dlerror ());
12345 /* dlclose (self); */
12353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12354 (eval $ac_link) 2>&5
12356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12357 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12358 (./conftest; exit; ) >&5 2>/dev/null
12360 case x$lt_status in
12361 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12362 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12363 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12366 # compilation failed
12367 lt_cv_dlopen_self_static=no
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12375 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12378 CPPFLAGS=$save_CPPFLAGS
12379 LDFLAGS=$save_LDFLAGS
12384 case $lt_cv_dlopen_self in
12385 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12386 *) enable_dlopen_self=unknown ;;
12389 case $lt_cv_dlopen_self_static in
12390 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12391 *) enable_dlopen_self_static=unknown ;;
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12414 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12415 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12416 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12417 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12419 $as_echo "yes" >&6; }
12421 # FIXME - insert some real tests, host_os isn't really good enough
12424 if test -n "$STRIP"; then
12425 striplib="$STRIP -x"
12426 old_striplib="$STRIP -S"
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12428 $as_echo "yes" >&6; }
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12431 $as_echo "no" >&6; }
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12436 $as_echo "no" >&6; }
12452 # Report what library types will actually be built
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12454 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12456 $as_echo "$can_build_shared" >&6; }
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12459 $as_echo_n "checking whether to build shared libraries... " >&6; }
12460 test no = "$can_build_shared" && enable_shared=no
12462 # On AIX, shared libraries and static libraries use the same namespace, and
12463 # are all built from PIC.
12466 test yes = "$enable_shared" && enable_static=no
12467 if test -n "$RANLIB"; then
12468 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12469 postinstall_cmds='$RANLIB $lib'
12474 if test ia64 != "$host_cpu"; then
12475 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12476 yes,aix,yes) ;; # shared object as lib.so file only
12477 yes,svr4,*) ;; # shared object as lib.so archive member only
12478 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12484 $as_echo "$enable_shared" >&6; }
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12487 $as_echo_n "checking whether to build static libraries... " >&6; }
12488 # Make sure either enable_shared or enable_static is yes.
12489 test yes = "$enable_shared" || enable_static=yes
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12491 $as_echo "$enable_static" >&6; }
12498 ac_cpp='$CPP $CPPFLAGS'
12499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12519 ac_config_commands="$ac_config_commands libtool"
12524 # Only expand once:
12534 if test x"${PKG_CONFIG}" = x"" ; then
12535 for ac_prog in pkgconf pkg-config
12537 # Extract the first word of "$ac_prog", so it can be a program name with args.
12538 set dummy $ac_prog; ac_word=$2
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12540 $as_echo_n "checking for $ac_word... " >&6; }
12541 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12542 $as_echo_n "(cached) " >&6
12544 case $PKG_CONFIG in
12546 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12550 for as_dir in $PATH
12553 test -z "$as_dir" && as_dir=.
12554 for ac_exec_ext in '' $ac_executable_extensions; do
12555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12556 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12567 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12568 if test -n "$PKG_CONFIG"; then
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12570 $as_echo "$PKG_CONFIG" >&6; }
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12573 $as_echo "no" >&6; }
12577 test -n "$PKG_CONFIG" && break
12581 # Extract the first word of "${PKG_CONFIG}", so it can be a program name with args.
12582 set dummy ${PKG_CONFIG}; ac_word=$2
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12584 $as_echo_n "checking for $ac_word... " >&6; }
12585 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12586 $as_echo_n "(cached) " >&6
12588 case $PKG_CONFIG in
12590 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12594 for as_dir in $PATH
12597 test -z "$as_dir" && as_dir=.
12598 for ac_exec_ext in '' $ac_executable_extensions; do
12599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12600 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12611 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12612 if test -n "$PKG_CONFIG"; then
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12614 $as_echo "$PKG_CONFIG" >&6; }
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12617 $as_echo "no" >&6; }
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pkg-config or pkgconf" >&5
12623 $as_echo_n "checking for pkg-config or pkgconf... " >&6; }
12624 if test -x "${PKG_CONFIG}" ; then
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PKG_CONFIG}" >&5
12626 $as_echo "${PKG_CONFIG}" >&6; }
12627 case "${PKG_CONFIG}" in
12629 _min_version="1.3.0"
12632 _min_version="0.23"
12635 _min_version="9.9.error"
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that ${PKG_CONFIG} is at least version ${_min_version}" >&5
12639 $as_echo_n "checking that ${PKG_CONFIG} is at least version ${_min_version}... " >&6; }
12640 _act_version=`"${PKG_CONFIG}" --version`
12641 if ! "${PKG_CONFIG}" --atleast-pkgconfig-version="${_min_version}" ; then
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_act_version}" >&5
12645 $as_echo "${_act_version}" >&6; }
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12648 $as_echo "no" >&6; }
12651 if test x"${PKG_CONFIG}" = x"" ; then
12652 as_fn_error $? "pkg-config was not found or is too old" "$LINENO" 5
12655 # Check whether --with-pkgconfigdir was given.
12656 if test "${with_pkgconfigdir+set}" = set; then :
12657 withval=$with_pkgconfigdir; pkgconfigdir=$withval
12659 pkgconfigdir='${libdir}/pkgconfig'
12662 pkgconfigdir=$pkgconfigdir
12672 cat >>confdefs.h <<_ACEOF
12673 #define LIB_MAJ $LIB_MAJ
12677 # Check whether --enable-debug was given.
12678 if test "${enable_debug+set}" = set; then :
12679 enableval=$enable_debug;
12680 $as_echo "#define OPENPAM_DEBUG 1" >>confdefs.h
12685 # Check whether --enable-unversioned-modules was given.
12686 if test "${enable_unversioned_modules+set}" = set; then :
12687 enableval=$enable_unversioned_modules; if test x"$enableval" = x"no"; then :
12690 $as_echo "#define DISABLE_UNVERSIONED_MODULES 1" >>confdefs.h
12698 # Check whether --with-modules-dir was given.
12699 if test "${with_modules_dir+set}" = set; then :
12700 withval=$with_modules_dir; if test x"$withval" != x"no"; then :
12702 OPENPAM_MODULES_DIR="$withval"
12704 cat >>confdefs.h <<_ACEOF
12705 #define OPENPAM_MODULES_DIR "${OPENPAM_MODULES_DIR%/}"
12713 if test x"$OPENPAM_MODULES_DIR" != x""; then
12714 CUSTOM_MODULES_DIR_TRUE=
12715 CUSTOM_MODULES_DIR_FALSE='#'
12717 CUSTOM_MODULES_DIR_TRUE='#'
12718 CUSTOM_MODULES_DIR_FALSE=
12723 # Check whether --with-doc was given.
12724 if test "${with_doc+set}" = set; then :
12730 if test x"$with_doc" = x"yes"; then
12740 # Check whether --with-pam-unix was given.
12741 if test "${with_pam_unix+set}" = set; then :
12742 withval=$with_pam_unix;
12747 if test x"$with_pam_unix" = x"yes"; then
12748 WITH_PAM_UNIX_TRUE=
12749 WITH_PAM_UNIX_FALSE='#'
12751 WITH_PAM_UNIX_TRUE='#'
12752 WITH_PAM_UNIX_FALSE=
12757 # Check whether --with-pamtest was given.
12758 if test "${with_pamtest+set}" = set; then :
12759 withval=$with_pamtest;
12764 if test x"$with_pamtest" = x"yes"; then
12766 WITH_PAMTEST_FALSE='#'
12768 WITH_PAMTEST_TRUE='#'
12769 WITH_PAMTEST_FALSE=
12774 # Check whether --with-su was given.
12775 if test "${with_su+set}" = set; then :
12781 if test x"$with_su" = x"yes"; then
12791 # Check whether --with-system-libpam was given.
12792 if test "${with_system_libpam+set}" = set; then :
12793 withval=$with_system_libpam;
12795 with_system_libpam=no
12798 if test x"$with_system_libpam" = x"yes"; then
12799 WITH_SYSTEM_LIBPAM_TRUE=
12800 WITH_SYSTEM_LIBPAM_FALSE='#'
12802 WITH_SYSTEM_LIBPAM_TRUE='#'
12803 WITH_SYSTEM_LIBPAM_FALSE=
12807 for ac_header in crypt.h
12809 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
12810 if test "x$ac_cv_header_crypt_h" = xyes; then :
12811 cat >>confdefs.h <<_ACEOF
12812 #define HAVE_CRYPT_H 1
12820 for ac_func in asprintf vasprintf
12822 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12823 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12824 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12825 cat >>confdefs.h <<_ACEOF
12826 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12832 for ac_func in dlfunc fdlopen
12834 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12835 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12836 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12837 cat >>confdefs.h <<_ACEOF
12838 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12844 for ac_func in fpurge
12846 ac_fn_c_check_func "$LINENO" "fpurge" "ac_cv_func_fpurge"
12847 if test "x$ac_cv_func_fpurge" = xyes; then :
12848 cat >>confdefs.h <<_ACEOF
12849 #define HAVE_FPURGE 1
12855 for ac_func in setlogmask
12857 ac_fn_c_check_func "$LINENO" "setlogmask" "ac_cv_func_setlogmask"
12858 if test "x$ac_cv_func_setlogmask" = xyes; then :
12859 cat >>confdefs.h <<_ACEOF
12860 #define HAVE_SETLOGMASK 1
12866 for ac_func in strlcat strlcmp strlcpy strlset
12868 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12869 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12870 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12871 cat >>confdefs.h <<_ACEOF
12872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12879 saved_LIBS="${LIBS}"
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12882 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12883 if ${ac_cv_lib_dl_dlopen+:} false; then :
12884 $as_echo_n "(cached) " >&6
12886 ac_check_lib_save_LIBS=$LIBS
12888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12889 /* end confdefs.h. */
12891 /* Override any GCC internal prototype to avoid an error.
12892 Use char because int might match the return type of a GCC
12893 builtin and then its argument prototype would still apply. */
12906 if ac_fn_c_try_link "$LINENO"; then :
12907 ac_cv_lib_dl_dlopen=yes
12909 ac_cv_lib_dl_dlopen=no
12911 rm -f core conftest.err conftest.$ac_objext \
12912 conftest$ac_exeext conftest.$ac_ext
12913 LIBS=$ac_check_lib_save_LIBS
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12916 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12917 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12918 cat >>confdefs.h <<_ACEOF
12919 #define HAVE_LIBDL 1
12927 LIBS="${saved_LIBS}"
12930 saved_LIBS="${LIBS}"
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
12933 $as_echo_n "checking for pam_start in -lpam... " >&6; }
12934 if ${ac_cv_lib_pam_pam_start+:} false; then :
12935 $as_echo_n "(cached) " >&6
12937 ac_check_lib_save_LIBS=$LIBS
12939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12940 /* end confdefs.h. */
12942 /* Override any GCC internal prototype to avoid an error.
12943 Use char because int might match the return type of a GCC
12944 builtin and then its argument prototype would still apply. */
12952 return pam_start ();
12957 if ac_fn_c_try_link "$LINENO"; then :
12958 ac_cv_lib_pam_pam_start=yes
12960 ac_cv_lib_pam_pam_start=no
12962 rm -f core conftest.err conftest.$ac_objext \
12963 conftest$ac_exeext conftest.$ac_ext
12964 LIBS=$ac_check_lib_save_LIBS
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
12967 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
12968 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
12969 cat >>confdefs.h <<_ACEOF
12970 #define HAVE_LIBPAM 1
12977 SYSTEM_LIBPAM="${LIBS}"
12978 LIBS="${saved_LIBS}"
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cryb-test is installed" >&5
12988 $as_echo_n "checking if cryb-test is installed... " >&6; }
12989 if { { $as_echo "$as_me:${as_lineno-$LINENO}: \"\${PKG_CONFIG}\" --exists --print-errors \"cryb-test\""; } >&5
12990 ("${PKG_CONFIG}" --exists --print-errors "cryb-test") 2>&5
12992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12993 test $ac_status = 0; } ; then
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12995 $as_echo "yes" >&6; }
12996 ax_pc_cv_have_cryb_test=yes
12998 $as_echo "#define HAVE_CRYB_TEST 1" >>confdefs.h
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cryb-test version" >&5
13001 $as_echo_n "checking cryb-test version... " >&6; }
13005 ax_pc_cv_cryb_test_version=`"${PKG_CONFIG}" --modversion cryb-test`
13007 CRYB_TEST_VERSION=$ax_pc_cv_cryb_test_version
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ax_pc_cv_cryb_test_version:-unknown}" >&5
13010 $as_echo "${ax_pc_cv_cryb_test_version:-unknown}" >&6; }
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cryb-test compiler flags" >&5
13012 $as_echo_n "checking cryb-test compiler flags... " >&6; }
13016 ax_pc_cv_cryb_test_cflags=`"${PKG_CONFIG}" --cflags cryb-test`
13018 CRYB_TEST_CFLAGS=$ax_pc_cv_cryb_test_cflags
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ax_pc_cv_cryb_test_cflags:-none}" >&5
13021 $as_echo "${ax_pc_cv_cryb_test_cflags:-none}" >&6; }
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cryb-test linker flags" >&5
13023 $as_echo_n "checking cryb-test linker flags... " >&6; }
13027 ax_pc_cv_cryb_test_libs=`"${PKG_CONFIG}" --libs cryb-test`
13029 CRYB_TEST_LIBS=$ax_pc_cv_cryb_test_libs
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ax_pc_cv_cryb_test_libs:-none}" >&5
13032 $as_echo "${ax_pc_cv_cryb_test_libs:-none}" >&6; }
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: Cryb test framework found, unit tests enabled." >&5
13034 $as_echo "$as_me: Cryb test framework found, unit tests enabled." >&6;}
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13037 $as_echo "no" >&6; }
13038 ax_pc_cv_have_cryb_test=no
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cryb test framework not found, unit tests disabled." >&5
13040 $as_echo "$as_me: WARNING: Cryb test framework not found, unit tests disabled." >&2;}
13043 if test x"$ax_pc_cv_have_cryb_test" = x"yes"; then
13044 HAVE_CRYB_TEST_TRUE=
13045 HAVE_CRYB_TEST_FALSE='#'
13047 HAVE_CRYB_TEST_TRUE='#'
13048 HAVE_CRYB_TEST_FALSE=
13053 if test x"$CRYB_TEST_LIBS" != x""; then
13055 WITH_TEST_FALSE='#'
13062 # Check whether --enable-developer-warnings was given.
13063 if test "${enable_developer_warnings+set}" = set; then :
13064 enableval=$enable_developer_warnings; CFLAGS="${CFLAGS} -Wall -Wextra -Wcast-qual"
13067 # Check whether --enable-debugging-symbols was given.
13068 if test "${enable_debugging_symbols+set}" = set; then :
13069 enableval=$enable_debugging_symbols; CFLAGS="${CFLAGS} -O0 -g -fno-inline"
13072 # Check whether --enable-werror was given.
13073 if test "${enable_werror+set}" = set; then :
13074 enableval=$enable_werror; CFLAGS="${CFLAGS} -Werror"
13078 ac_config_files="$ac_config_files Makefile bin/Makefile bin/openpam_dump_policy/Makefile bin/pamtest/Makefile bin/su/Makefile doc/Makefile doc/man/Makefile include/Makefile include/security/Makefile lib/Makefile lib/libpam/Makefile misc/Makefile modules/Makefile modules/pam_deny/Makefile modules/pam_permit/Makefile modules/pam_return/Makefile modules/pam_unix/Makefile t/Makefile"
13080 ac_config_files="$ac_config_files mkpkgng"
13082 ac_config_files="$ac_config_files misc/coverage.sh"
13084 ac_config_files="$ac_config_files misc/coverity.sh"
13086 cat >confcache <<\_ACEOF
13087 # This file is a shell script that caches the results of configure
13088 # tests run on this system so they can be shared between configure
13089 # scripts and configure runs, see configure's option --config-cache.
13090 # It is not useful on other systems. If it contains results you don't
13091 # want to keep, you may remove or edit it.
13093 # config.status only pays attention to the cache file if you give it
13094 # the --recheck option to rerun configure.
13096 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13097 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13098 # following values.
13102 # The following way of writing the cache mishandles newlines in values,
13103 # but we know of no workaround that is simple, portable, and efficient.
13104 # So, we kill variables containing newlines.
13105 # Ultrix sh set writes to stderr and can't be redirected directly,
13106 # and sets the high bit in the cache file unless we assign to the vars.
13108 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13109 eval ac_val=\$$ac_var
13113 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13114 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13117 _ | IFS | as_nl) ;; #(
13118 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13119 *) { eval $ac_var=; unset $ac_var;} ;;
13125 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13126 *${as_nl}ac_space=\ *)
13127 # `set' does not quote correctly, so add quotes: double-quote
13128 # substitution turns \\\\ into \\, and sed turns \\ into \.
13131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13134 # `set' quotes correctly as required by POSIX, so do not add quotes.
13135 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13144 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13146 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13148 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13149 if test -w "$cache_file"; then
13150 if test "x$cache_file" != "x/dev/null"; then
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13152 $as_echo "$as_me: updating cache $cache_file" >&6;}
13153 if test ! -f "$cache_file" || test -h "$cache_file"; then
13154 cat confcache >"$cache_file"
13156 case $cache_file in #(
13158 mv -f confcache "$cache_file"$$ &&
13159 mv -f "$cache_file"$$ "$cache_file" ;; #(
13161 mv -f confcache "$cache_file" ;;
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13167 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13172 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13173 # Let make expand exec_prefix.
13174 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13176 DEFS=-DHAVE_CONFIG_H
13180 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13181 # 1. Remove the extension, and $U if already installed.
13182 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13183 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13184 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13185 # will be set to the directory where LIBOBJS objects are built.
13186 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13187 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13189 LIBOBJS=$ac_libobjs
13191 LTLIBOBJS=$ac_ltlibobjs
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13195 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13196 if test -n "$am_sleep_pid"; then
13197 # Hide warnings about reused PIDs.
13198 wait $am_sleep_pid 2>/dev/null
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13201 $as_echo "done" >&6; }
13202 if test -n "$EXEEXT"; then
13204 am__EXEEXT_FALSE='#'
13206 am__EXEEXT_TRUE='#'
13210 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13211 as_fn_error $? "conditional \"AMDEP\" was never defined.
13212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13214 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13215 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13218 if test -z "${CUSTOM_MODULES_DIR_TRUE}" && test -z "${CUSTOM_MODULES_DIR_FALSE}"; then
13219 as_fn_error $? "conditional \"CUSTOM_MODULES_DIR\" was never defined.
13220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13222 if test -z "${WITH_DOC_TRUE}" && test -z "${WITH_DOC_FALSE}"; then
13223 as_fn_error $? "conditional \"WITH_DOC\" was never defined.
13224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13226 if test -z "${WITH_PAM_UNIX_TRUE}" && test -z "${WITH_PAM_UNIX_FALSE}"; then
13227 as_fn_error $? "conditional \"WITH_PAM_UNIX\" was never defined.
13228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13230 if test -z "${WITH_PAMTEST_TRUE}" && test -z "${WITH_PAMTEST_FALSE}"; then
13231 as_fn_error $? "conditional \"WITH_PAMTEST\" was never defined.
13232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13234 if test -z "${WITH_SU_TRUE}" && test -z "${WITH_SU_FALSE}"; then
13235 as_fn_error $? "conditional \"WITH_SU\" was never defined.
13236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13238 if test -z "${WITH_SYSTEM_LIBPAM_TRUE}" && test -z "${WITH_SYSTEM_LIBPAM_FALSE}"; then
13239 as_fn_error $? "conditional \"WITH_SYSTEM_LIBPAM\" was never defined.
13240 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13242 if test -z "${HAVE_CRYB_TEST_TRUE}" && test -z "${HAVE_CRYB_TEST_FALSE}"; then
13243 as_fn_error $? "conditional \"HAVE_CRYB_TEST\" was never defined.
13244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13246 if test -z "${WITH_TEST_TRUE}" && test -z "${WITH_TEST_FALSE}"; then
13247 as_fn_error $? "conditional \"WITH_TEST\" was never defined.
13248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13251 : "${CONFIG_STATUS=./config.status}"
13253 ac_clean_files_save=$ac_clean_files
13254 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13256 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13258 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13260 # Generated by $as_me.
13261 # Run this file to recreate the current configuration.
13262 # Compiler output produced by configure, useful for debugging
13263 # configure, is in config.log if it exists.
13266 ac_cs_recheck=false
13269 SHELL=\${CONFIG_SHELL-$SHELL}
13272 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13273 ## -------------------- ##
13274 ## M4sh Initialization. ##
13275 ## -------------------- ##
13277 # Be more Bourne compatible
13278 DUALCASE=1; export DUALCASE # for MKS sh
13279 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13282 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13283 # is contrary to our usage. Disable this feature.
13284 alias -g '${1+"$@"}'='"$@"'
13285 setopt NO_GLOB_SUBST
13287 case `(set -o) 2>/dev/null` in #(
13299 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13300 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13301 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13302 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13303 # Prefer a ksh shell builtin over an external printf program on Solaris,
13304 # but without wasting forks for bash or zsh.
13305 if test -z "$BASH_VERSION$ZSH_VERSION" \
13306 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13307 as_echo='print -r --'
13308 as_echo_n='print -rn --'
13309 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13310 as_echo='printf %s\n'
13311 as_echo_n='printf %s'
13313 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13314 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13315 as_echo_n='/usr/ucb/echo -n'
13317 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13318 as_echo_n_body='eval
13322 expr "X$arg" : "X\\(.*\\)$as_nl";
13323 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13325 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13327 export as_echo_n_body
13328 as_echo_n='sh -c $as_echo_n_body as_echo'
13330 export as_echo_body
13331 as_echo='sh -c $as_echo_body as_echo'
13334 # The user is always right.
13335 if test "${PATH_SEPARATOR+set}" != set; then
13337 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13338 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13345 # We need space, tab and new line, in precisely that order. Quoting is
13346 # there to prevent editors from complaining about space-tab.
13347 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13348 # splitting by setting IFS to empty value.)
13351 # Find who we are. Look in the path if we contain no directory separator.
13354 *[\\/]* ) as_myself=$0 ;;
13355 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13356 for as_dir in $PATH
13359 test -z "$as_dir" && as_dir=.
13360 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13366 # We did not find ourselves, most probably we were run as `sh COMMAND'
13367 # in which case we are not to be found in the path.
13368 if test "x$as_myself" = x; then
13371 if test ! -f "$as_myself"; then
13372 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13376 # Unset variables that we do not need and which cause bugs (e.g. in
13377 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13378 # suppresses any "Segmentation fault" message there. '((' could
13379 # trigger a bug in pdksh 5.2.14.
13380 for as_var in BASH_ENV ENV MAIL MAILPATH
13381 do eval test x\${$as_var+set} = xset \
13382 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13395 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13398 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13399 # ----------------------------------------
13400 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13401 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13402 # script with STATUS, using 1 if that was 0.
13405 as_status=$1; test $as_status -eq 0 && as_status=1
13407 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13408 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13410 $as_echo "$as_me: error: $2" >&2
13411 as_fn_exit $as_status
13415 # as_fn_set_status STATUS
13416 # -----------------------
13417 # Set $? to STATUS, without forking.
13418 as_fn_set_status ()
13421 } # as_fn_set_status
13423 # as_fn_exit STATUS
13424 # -----------------
13425 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13429 as_fn_set_status $1
13435 # Portably unset VAR.
13438 { eval $1=; unset $1;}
13440 as_unset=as_fn_unset
13441 # as_fn_append VAR VALUE
13442 # ----------------------
13443 # Append the text in VALUE to the end of the definition contained in VAR. Take
13444 # advantage of any shell optimizations that allow amortized linear growth over
13445 # repeated appends, instead of the typical quadratic growth present in naive
13447 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13448 eval 'as_fn_append ()
13459 # as_fn_arith ARG...
13460 # ------------------
13461 # Perform arithmetic evaluation on the ARGs, and store the result in the
13462 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13463 # must be portable across $(()) and expr.
13464 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13465 eval 'as_fn_arith ()
13472 as_val=`expr "$@" || test $? -eq 1`
13477 if expr a : '\(a\)' >/dev/null 2>&1 &&
13478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13484 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13485 as_basename=basename
13490 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13496 as_me=`$as_basename -- "$0" ||
13497 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13498 X"$0" : 'X\(//\)$' \| \
13499 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13501 sed '/^.*\/\([^/][^/]*\)\/*$/{
13515 # Avoid depending upon Character Ranges.
13516 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13517 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13518 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13519 as_cr_digits='0123456789'
13520 as_cr_alnum=$as_cr_Letters$as_cr_digits
13522 ECHO_C= ECHO_N= ECHO_T=
13523 case `echo -n x` in #(((((
13525 case `echo 'xy\c'` in
13526 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13528 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13535 rm -f conf$$ conf$$.exe conf$$.file
13536 if test -d conf$$.dir; then
13537 rm -f conf$$.dir/conf$$.file
13540 mkdir conf$$.dir 2>/dev/null
13542 if (echo >conf$$.file) 2>/dev/null; then
13543 if ln -s conf$$.file conf$$ 2>/dev/null; then
13545 # ... but there are two gotchas:
13546 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13547 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13548 # In both cases, we have to default to `cp -pR'.
13549 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13551 elif ln conf$$.file conf$$ 2>/dev/null; then
13559 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13560 rmdir conf$$.dir 2>/dev/null
13565 # Create "$as_dir" as a directory, including parents if necessary.
13570 -*) as_dir=./$as_dir;;
13572 test -d "$as_dir" || eval $as_mkdir_p || {
13576 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13577 *) as_qdir=$as_dir;;
13579 as_dirs="'$as_qdir' $as_dirs"
13580 as_dir=`$as_dirname -- "$as_dir" ||
13581 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13582 X"$as_dir" : 'X\(//\)[^/]' \| \
13583 X"$as_dir" : 'X\(//\)$' \| \
13584 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13585 $as_echo X"$as_dir" |
13586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13590 /^X\(\/\/\)[^/].*/{
13603 test -d "$as_dir" && break
13605 test -z "$as_dirs" || eval "mkdir $as_dirs"
13606 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13610 if mkdir -p . 2>/dev/null; then
13611 as_mkdir_p='mkdir -p "$as_dir"'
13613 test -d ./-p && rmdir ./-p
13618 # as_fn_executable_p FILE
13619 # -----------------------
13620 # Test if FILE is an executable regular file.
13621 as_fn_executable_p ()
13623 test -f "$1" && test -x "$1"
13624 } # as_fn_executable_p
13625 as_test_x='test -x'
13626 as_executable_p=as_fn_executable_p
13628 # Sed expression to map a string onto a valid CPP name.
13629 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13631 # Sed expression to map a string onto a valid variable name.
13632 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13636 ## ----------------------------------- ##
13637 ## Main body of $CONFIG_STATUS script. ##
13638 ## ----------------------------------- ##
13640 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13643 # Save the log message, to keep $0 and so on meaningful, and to
13644 # report actual input values of CONFIG_FILES etc. instead of their
13645 # values after options handling.
13647 This file was extended by OpenPAM $as_me 20190224, which was
13648 generated by GNU Autoconf 2.69. Invocation command line was
13650 CONFIG_FILES = $CONFIG_FILES
13651 CONFIG_HEADERS = $CONFIG_HEADERS
13652 CONFIG_LINKS = $CONFIG_LINKS
13653 CONFIG_COMMANDS = $CONFIG_COMMANDS
13656 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13661 case $ac_config_files in *"
13662 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13665 case $ac_config_headers in *"
13666 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13671 # Files that config.status was made for.
13672 config_files="$ac_config_files"
13673 config_headers="$ac_config_headers"
13674 config_commands="$ac_config_commands"
13678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13680 \`$as_me' instantiates files and other configuration actions
13681 from templates according to the current configuration. Unless the files
13682 and actions are specified as TAGs, all are instantiated by default.
13684 Usage: $0 [OPTION]... [TAG]...
13686 -h, --help print this help, then exit
13687 -V, --version print version number and configuration settings, then exit
13688 --config print configuration, then exit
13689 -q, --quiet, --silent
13690 do not print progress messages
13691 -d, --debug don't remove temporary files
13692 --recheck update $as_me by reconfiguring in the same conditions
13693 --file=FILE[:TEMPLATE]
13694 instantiate the configuration file FILE
13695 --header=FILE[:TEMPLATE]
13696 instantiate the configuration header FILE
13698 Configuration files:
13701 Configuration headers:
13704 Configuration commands:
13707 Report bugs to <des@des.no>.
13708 OpenPAM home page: <http://www.openpam.org/>."
13711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13712 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13714 OpenPAM config.status 20190224
13715 configured by $0, generated by GNU Autoconf 2.69,
13716 with options \\"\$ac_cs_config\\"
13718 Copyright (C) 2012 Free Software Foundation, Inc.
13719 This config.status script is free software; the Free Software Foundation
13720 gives unlimited permission to copy, distribute and modify it."
13727 test -n "\$AWK" || AWK=awk
13730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13731 # The default lists apply if the user does not specify any file.
13737 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13738 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13742 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13754 # Handling of the options.
13755 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13757 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13758 $as_echo "$ac_cs_version"; exit ;;
13759 --config | --confi | --conf | --con | --co | --c )
13760 $as_echo "$ac_cs_config"; exit ;;
13761 --debug | --debu | --deb | --de | --d | -d )
13763 --file | --fil | --fi | --f )
13766 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13767 '') as_fn_error $? "missing file argument" ;;
13769 as_fn_append CONFIG_FILES " '$ac_optarg'"
13770 ac_need_defaults=false;;
13771 --header | --heade | --head | --hea )
13774 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13776 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13777 ac_need_defaults=false;;
13779 # Conflict between --help and --header
13780 as_fn_error $? "ambiguous option: \`$1'
13781 Try \`$0 --help' for more information.";;
13782 --help | --hel | -h )
13783 $as_echo "$ac_cs_usage"; exit ;;
13784 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13785 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13788 # This is an error.
13789 -*) as_fn_error $? "unrecognized option: \`$1'
13790 Try \`$0 --help' for more information." ;;
13792 *) as_fn_append ac_config_targets " $1"
13793 ac_need_defaults=false ;;
13799 ac_configure_extra_args=
13801 if $ac_cs_silent; then
13803 ac_configure_extra_args="$ac_configure_extra_args --silent"
13807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13808 if \$ac_cs_recheck; then
13809 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13811 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13812 CONFIG_SHELL='$SHELL'
13813 export CONFIG_SHELL
13818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13822 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13823 ## Running $as_me. ##
13829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13833 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13836 # The HP-UX ksh and POSIX shell print the target directory to stdout
13837 # if CDPATH is set.
13838 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13840 sed_quote_subst='$sed_quote_subst'
13841 double_quote_subst='$double_quote_subst'
13842 delay_variable_subst='$delay_variable_subst'
13843 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13844 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13845 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13846 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13847 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13848 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13849 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13850 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13851 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13852 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13853 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13854 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13855 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13856 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13857 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13858 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13859 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13860 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13861 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13862 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13863 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13864 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13865 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13866 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13867 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13868 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13869 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13870 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13871 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13872 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13873 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13874 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13875 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13876 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13877 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13878 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13879 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13880 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13881 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13882 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13883 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13884 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13885 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13886 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13887 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13888 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13889 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13890 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13891 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13892 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13893 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13894 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13895 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13896 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13897 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13898 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13899 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13900 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13901 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"`'
13902 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13903 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13904 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13905 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13906 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13907 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13908 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13909 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13910 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13911 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13912 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13913 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13914 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13915 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13916 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13917 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13918 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13919 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13920 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13921 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13922 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13923 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13924 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13925 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13926 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13927 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13928 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13929 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13930 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13931 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13932 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13933 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13934 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13935 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13936 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13937 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13938 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13939 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13940 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13941 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13942 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13943 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13944 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13945 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13946 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13947 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13948 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13949 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13950 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13951 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13952 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13953 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13954 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13955 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13956 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13957 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13958 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13959 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13960 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13961 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13962 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13963 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13964 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13965 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13966 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13967 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13968 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13969 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13970 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13971 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13972 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13973 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13974 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13975 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13976 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13977 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13980 LTCFLAGS='$LTCFLAGS'
13981 compiler='$compiler_DEFAULT'
13983 # A function that is used when there is no print builtin or printf.
13984 func_fallback_echo ()
13986 eval 'cat <<_LTECHO_EOF
13991 # Quote evaled strings.
14006 deplibs_check_method \
14011 sharedlib_from_linklib_cmd \
14014 archiver_list_spec \
14020 lt_cv_sys_global_symbol_pipe \
14021 lt_cv_sys_global_symbol_to_cdecl \
14022 lt_cv_sys_global_symbol_to_import \
14023 lt_cv_sys_global_symbol_to_c_name_address \
14024 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14025 lt_cv_nm_interface \
14026 nm_file_list_spec \
14027 lt_cv_truncate_bin \
14028 lt_prog_compiler_no_builtin_flag \
14029 lt_prog_compiler_pic \
14030 lt_prog_compiler_wl \
14031 lt_prog_compiler_static \
14032 lt_cv_prog_compiler_c_o \
14041 export_dynamic_flag_spec \
14042 whole_archive_flag_spec \
14043 compiler_needs_object \
14045 allow_undefined_flag \
14046 no_undefined_flag \
14047 hardcode_libdir_flag_spec \
14048 hardcode_libdir_separator \
14052 variables_saved_for_relink \
14054 library_names_spec \
14056 install_override_mode \
14060 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14061 *[\\\\\\\`\\"\\\$]*)
14062 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14065 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14070 # Double-quote double-evaled strings.
14071 for var in reload_cmds \
14072 old_postinstall_cmds \
14073 old_postuninstall_cmds \
14075 extract_expsyms_cmds \
14076 old_archive_from_new_cmds \
14077 old_archive_from_expsyms_cmds \
14079 archive_expsym_cmds \
14081 module_expsym_cmds \
14082 export_symbols_cmds \
14086 postuninstall_cmds \
14088 sys_lib_search_path_spec \
14089 configure_time_dlsearch_path \
14090 configure_time_lt_sys_library_path; do
14091 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14092 *[\\\\\\\`\\"\\\$]*)
14093 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14096 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14101 ac_aux_dir='$ac_aux_dir'
14103 # See if we are running on zsh, and set the options that allow our
14104 # commands through without removal of \ escapes INIT.
14105 if test -n "\${ZSH_VERSION+set}"; then
14106 setopt NO_GLOB_SUBST
14120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14122 # Handling of arguments.
14123 for ac_config_target in $ac_config_targets
14125 case $ac_config_target in
14126 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14127 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14128 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14129 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14130 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
14131 "bin/openpam_dump_policy/Makefile") CONFIG_FILES="$CONFIG_FILES bin/openpam_dump_policy/Makefile" ;;
14132 "bin/pamtest/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pamtest/Makefile" ;;
14133 "bin/su/Makefile") CONFIG_FILES="$CONFIG_FILES bin/su/Makefile" ;;
14134 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14135 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
14136 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14137 "include/security/Makefile") CONFIG_FILES="$CONFIG_FILES include/security/Makefile" ;;
14138 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
14139 "lib/libpam/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libpam/Makefile" ;;
14140 "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
14141 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
14142 "modules/pam_deny/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_deny/Makefile" ;;
14143 "modules/pam_permit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_permit/Makefile" ;;
14144 "modules/pam_return/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_return/Makefile" ;;
14145 "modules/pam_unix/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_unix/Makefile" ;;
14146 "t/Makefile") CONFIG_FILES="$CONFIG_FILES t/Makefile" ;;
14147 "mkpkgng") CONFIG_FILES="$CONFIG_FILES mkpkgng" ;;
14148 "misc/coverage.sh") CONFIG_FILES="$CONFIG_FILES misc/coverage.sh" ;;
14149 "misc/coverity.sh") CONFIG_FILES="$CONFIG_FILES misc/coverity.sh" ;;
14151 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14156 # If the user did not use the arguments to specify the items to instantiate,
14157 # then the envvar interface is used. Set only those that are not.
14158 # We use the long form for the default assignment because of an extremely
14159 # bizarre bug on SunOS 4.1.3.
14160 if $ac_need_defaults; then
14161 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14162 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14163 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14166 # Have a temporary directory for convenience. Make it in the build tree
14167 # simply because there is no reason against having it here, and in addition,
14168 # creating and moving files from /tmp can sometimes cause problems.
14169 # Hook for its removal unless debugging.
14170 # Note that there is a small window in which the directory will not be cleaned:
14171 # after its creation but before its name has been assigned to `$tmp'.
14175 trap 'exit_status=$?
14176 : "${ac_tmp:=$tmp}"
14177 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14179 trap 'as_fn_exit 1' 1 2 13 15
14181 # Create a (secure) tmp directory for tmp files.
14184 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14188 tmp=./conf$$-$RANDOM
14189 (umask 077 && mkdir "$tmp")
14190 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14193 # Set up the scripts for CONFIG_FILES section.
14194 # No need to generate them if there are no CONFIG_FILES.
14195 # This happens for instance with `./config.status config.h'.
14196 if test -n "$CONFIG_FILES"; then
14199 ac_cr=`echo X | tr X '\015'`
14200 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14201 # But we know of no other shell where ac_cr would be empty at this
14202 # point, so we can use a bashism as a fallback.
14203 if test "x$ac_cr" = x; then
14204 eval ac_cr=\$\'\\r\'
14206 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14207 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14210 ac_cs_awk_cr=$ac_cr
14213 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14218 echo "cat >conf$$subs.awk <<_ACEOF" &&
14219 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14221 } >conf$$subs.sh ||
14222 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14223 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14225 for ac_last_try in false false false false false :; do
14226 . ./conf$$subs.sh ||
14227 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14229 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14230 if test $ac_delim_n = $ac_delim_num; then
14232 elif $ac_last_try; then
14233 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14235 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14238 rm -f conf$$subs.sh
14240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14241 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14245 s/^/S["/; s/!.*/"]=/
14255 s/\(.\{148\}\)..*/\1/
14257 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14262 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14269 s/\(.\{148\}\)..*/\1/
14271 s/["\\]/\\&/g; s/^/"/; s/$/"/
14275 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14280 ' <conf$$subs.awk | sed '
14285 ' >>$CONFIG_STATUS || ac_write_fail=1
14286 rm -f conf$$subs.awk
14287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14289 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14290 for (key in S) S_is_set[key] = 1
14296 nfields = split(line, field, "@")
14298 len = length(field[1])
14299 for (i = 2; i < nfields; i++) {
14301 keylen = length(key)
14302 if (S_is_set[key]) {
14304 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14305 len += length(value) + length(field[++i])
14316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14317 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14318 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14321 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14322 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14325 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14326 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14327 # trailing colons and then remove the whole line if VPATH becomes empty
14328 # (actually we leave an empty line to preserve line numbers).
14329 if test "x$srcdir" = x.; then
14330 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14349 fi # test -n "$CONFIG_FILES"
14351 # Set up the scripts for CONFIG_HEADERS section.
14352 # No need to generate them if there are no CONFIG_HEADERS.
14353 # This happens for instance with `./config.status Makefile'.
14354 if test -n "$CONFIG_HEADERS"; then
14355 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14359 # Transform confdefs.h into an awk script `defines.awk', embedded as
14360 # here-document in config.status, that substitutes the proper values into
14361 # config.h.in to produce config.h.
14363 # Create a delimiter string that does not exist in confdefs.h, to ease
14364 # handling of long lines.
14366 for ac_last_try in false false :; do
14367 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14368 if test -z "$ac_tt"; then
14370 elif $ac_last_try; then
14371 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14373 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14377 # For the awk script, D is an array of macro values keyed by name,
14378 # likewise P contains macro parameters if any. Preserve backslash
14379 # newline sequences.
14381 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14383 s/.\{148\}/&'"$ac_delim"'/g
14386 s/^[ ]*#[ ]*define[ ][ ]*/ /
14393 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14395 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14399 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14400 D["\1"]=" \3\\\\\\n"\\/p
14402 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14407 s/.\{148\}/&'"$ac_delim"'/g
14412 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14415 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14417 ' <confdefs.h | sed '
14418 s/'"$ac_delim"'/"\\\
14419 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14422 for (key in D) D_is_set[key] = 1
14425 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14427 split(line, arg, " ")
14428 if (arg[1] == "#") {
14432 defundef = substr(arg[1], 2)
14435 split(mac1, mac2, "(") #)
14437 prefix = substr(line, 1, index(line, defundef) - 1)
14438 if (D_is_set[macro]) {
14439 # Preserve the white space surrounding the "#".
14440 print prefix "define", macro P[macro] D[macro]
14443 # Replace #undef with comments. This is necessary, for example,
14444 # in the case of _POSIX_SOURCE, which is predefined and required
14445 # on some systems where configure will not decide to define it.
14446 if (defundef == "undef") {
14447 print "/*", prefix defundef, macro, "*/"
14455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14456 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14457 fi # test -n "$CONFIG_HEADERS"
14460 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14465 :[FHLC]) ac_mode=$ac_tag; continue;;
14467 case $ac_mode$ac_tag in
14469 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14470 :[FH]-) ac_tag=-:-;;
14471 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14488 -) ac_f="$ac_tmp/stdin";;
14489 *) # Look for the file first in the build tree, then in the source tree
14490 # (if the path is not absolute). The absolute path cannot be DOS-style,
14491 # because $ac_f cannot contain `:'.
14495 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14497 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14499 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14500 as_fn_append ac_file_inputs " '$ac_f'"
14503 # Let's still pretend it is `configure' which instantiates (i.e., don't
14504 # use $as_me), people would be surprised to read:
14505 # /* config.h. Generated by config.status. */
14506 configure_input='Generated from '`
14507 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14509 if test x"$ac_file" != x-; then
14510 configure_input="$ac_file. $configure_input"
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14512 $as_echo "$as_me: creating $ac_file" >&6;}
14514 # Neutralize special characters interpreted by sed in replacement strings.
14515 case $configure_input in #(
14516 *\&* | *\|* | *\\* )
14517 ac_sed_conf_input=`$as_echo "$configure_input" |
14518 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14519 *) ac_sed_conf_input=$configure_input;;
14523 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14524 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14529 ac_dir=`$as_dirname -- "$ac_file" ||
14530 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14531 X"$ac_file" : 'X\(//\)[^/]' \| \
14532 X"$ac_file" : 'X\(//\)$' \| \
14533 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14534 $as_echo X"$ac_file" |
14535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14539 /^X\(\/\/\)[^/].*/{
14552 as_dir="$ac_dir"; as_fn_mkdir_p
14556 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14558 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14559 # A ".." for each directory in $ac_dir_suffix.
14560 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14561 case $ac_top_builddir_sub in
14562 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14563 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14566 ac_abs_top_builddir=$ac_pwd
14567 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14568 # for backward compatibility:
14569 ac_top_builddir=$ac_top_build_prefix
14572 .) # We are building in place.
14574 ac_top_srcdir=$ac_top_builddir_sub
14575 ac_abs_top_srcdir=$ac_pwd ;;
14576 [\\/]* | ?:[\\/]* ) # Absolute name.
14577 ac_srcdir=$srcdir$ac_dir_suffix;
14578 ac_top_srcdir=$srcdir
14579 ac_abs_top_srcdir=$srcdir ;;
14580 *) # Relative name.
14581 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14582 ac_top_srcdir=$ac_top_build_prefix$srcdir
14583 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14585 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14595 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14596 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14598 ac_MKDIR_P=$MKDIR_P
14600 [\\/$]* | ?:[\\/]* ) ;;
14601 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14606 # If the template does not know about datarootdir, expand it.
14607 # FIXME: This hack should be removed a few years after 2.60.
14608 ac_datarootdir_hack=; ac_datarootdir_seen=
14619 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14620 *datarootdir*) ac_datarootdir_seen=yes;;
14621 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14623 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14626 ac_datarootdir_hack='
14627 s&@datadir@&$datadir&g
14628 s&@docdir@&$docdir&g
14629 s&@infodir@&$infodir&g
14630 s&@localedir@&$localedir&g
14631 s&@mandir@&$mandir&g
14632 s&\\\${datarootdir}&$datarootdir&g' ;;
14636 # Neutralize VPATH when `$srcdir' = `.'.
14637 # Shell code in configure.ac might set extrasub.
14638 # FIXME: do we really want to maintain this feature?
14639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14640 ac_sed_extra="$ac_vpsub
14643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14645 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14646 s|@configure_input@|$ac_sed_conf_input|;t t
14647 s&@top_builddir@&$ac_top_builddir_sub&;t t
14648 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14649 s&@srcdir@&$ac_srcdir&;t t
14650 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14651 s&@top_srcdir@&$ac_top_srcdir&;t t
14652 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14653 s&@builddir@&$ac_builddir&;t t
14654 s&@abs_builddir@&$ac_abs_builddir&;t t
14655 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14656 s&@INSTALL@&$ac_INSTALL&;t t
14657 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14658 $ac_datarootdir_hack
14660 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14661 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14663 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14664 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14665 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14666 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14668 which seems to be undefined. Please make sure it is defined" >&5
14669 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14670 which seems to be undefined. Please make sure it is defined" >&2;}
14672 rm -f "$ac_tmp/stdin"
14674 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14675 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14677 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14683 if test x"$ac_file" != x-; then
14685 $as_echo "/* $configure_input */" \
14686 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14687 } >"$ac_tmp/config.h" \
14688 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14689 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14691 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14694 mv "$ac_tmp/config.h" "$ac_file" \
14695 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14698 $as_echo "/* $configure_input */" \
14699 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14700 || as_fn_error $? "could not create -" "$LINENO" 5
14702 # Compute "$ac_file"'s index in $config_headers.
14705 for _am_header in $config_headers :; do
14706 case $_am_header in
14707 $_am_arg | $_am_arg:* )
14710 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14713 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14714 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14715 X"$_am_arg" : 'X\(//\)[^/]' \| \
14716 X"$_am_arg" : 'X\(//\)$' \| \
14717 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14718 $as_echo X"$_am_arg" |
14719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14723 /^X\(\/\/\)[^/].*/{
14735 s/.*/./; q'`/stamp-h$_am_stamp_count
14738 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14739 $as_echo "$as_me: executing $ac_file commands" >&6;}
14744 case $ac_file$ac_mode in
14745 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14746 # Older Autoconf quotes --file arguments for eval, but not when files
14747 # are listed without --file. Let's play safe and only enable the eval
14748 # if we detect the quoting.
14749 # TODO: see whether this extra hack can be removed once we start
14750 # requiring Autoconf 2.70 or later.
14751 case $CONFIG_FILES in #(
14753 eval set x "$CONFIG_FILES" ;; #(
14755 set x $CONFIG_FILES ;; #(
14760 # Used to flag and report bootstrapping failures.
14764 # Strip MF so we end up with the name of the file.
14765 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
14766 # Check whether this is an Automake generated Makefile which includes
14767 # dependency-tracking related rules and includes.
14768 # Grep'ing the whole file directly is not great: AIX grep has a line
14769 # limit of 2048, but all sed's we know have understand at least 4000.
14770 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14772 am_dirpart=`$as_dirname -- "$am_mf" ||
14773 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14774 X"$am_mf" : 'X\(//\)[^/]' \| \
14775 X"$am_mf" : 'X\(//\)$' \| \
14776 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14777 $as_echo X"$am_mf" |
14778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14782 /^X\(\/\/\)[^/].*/{
14795 am_filepart=`$as_basename -- "$am_mf" ||
14796 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14797 X"$am_mf" : 'X\(//\)$' \| \
14798 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14799 $as_echo X/"$am_mf" |
14800 sed '/^.*\/\([^/][^/]*\)\/*$/{
14813 { echo "$as_me:$LINENO: cd "$am_dirpart" \
14814 && sed -e '/# am--include-marker/d' "$am_filepart" \
14815 | $MAKE -f - am--depfiles" >&5
14816 (cd "$am_dirpart" \
14817 && sed -e '/# am--include-marker/d' "$am_filepart" \
14818 | $MAKE -f - am--depfiles) >&5 2>&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } || am_rc=$?
14823 if test $am_rc -ne 0; then
14824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14826 as_fn_error $? "Something went wrong bootstrapping makefile fragments
14827 for automatic dependency tracking. Try re-running configure with the
14828 '--disable-dependency-tracking' option to at least be able to build
14829 the package (albeit without support for automatic dependency tracking).
14830 See \`config.log' for more details" "$LINENO" 5; }
14832 { am_dirpart=; unset am_dirpart;}
14833 { am_filepart=; unset am_filepart;}
14834 { am_mf=; unset am_mf;}
14835 { am_rc=; unset am_rc;}
14836 rm -f conftest-deps.mk
14841 # See if we are running on zsh, and set the options that allow our
14842 # commands through without removal of \ escapes.
14843 if test -n "${ZSH_VERSION+set}"; then
14844 setopt NO_GLOB_SUBST
14848 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14851 cat <<_LT_EOF >> "$cfgfile"
14853 # Generated automatically by $as_me ($PACKAGE) $VERSION
14854 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14855 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14857 # Provide generalized library-building support services.
14858 # Written by Gordon Matzigkeit, 1996
14860 # Copyright (C) 2014 Free Software Foundation, Inc.
14861 # This is free software; see the source for copying conditions. There is NO
14862 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14864 # GNU Libtool is free software; you can redistribute it and/or modify
14865 # it under the terms of the GNU General Public License as published by
14866 # the Free Software Foundation; either version 2 of of the License, or
14867 # (at your option) any later version.
14869 # As a special exception to the GNU General Public License, if you
14870 # distribute this file as part of a program or library that is built
14871 # using GNU Libtool, you may include this file under the same
14872 # distribution terms that you use for the rest of that program.
14874 # GNU Libtool is distributed in the hope that it will be useful, but
14875 # WITHOUT ANY WARRANTY; without even the implied warranty of
14876 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14877 # GNU General Public License for more details.
14879 # You should have received a copy of the GNU General Public License
14880 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14883 # The names of the tagged configurations supported by this script.
14886 # Configured defaults for sys_lib_dlsearch_path munging.
14887 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14889 # ### BEGIN LIBTOOL CONFIG
14891 # Which release of libtool.m4 was used?
14892 macro_version=$macro_version
14893 macro_revision=$macro_revision
14895 # Whether or not to build static libraries.
14896 build_old_libs=$enable_static
14898 # Whether or not to build shared libraries.
14899 build_libtool_libs=$enable_shared
14901 # What type of objects to build.
14904 # Whether or not to optimize for fast installation.
14905 fast_install=$enable_fast_install
14907 # Shared archive member basename,for filename based shared library versioning on AIX.
14908 shared_archive_member_spec=$shared_archive_member_spec
14910 # Shell to use when invoking shell scripts.
14913 # An echo program that protects backslashes.
14916 # The PATH separator for the build system.
14917 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14920 host_alias=$host_alias
14924 # The build system.
14925 build_alias=$build_alias
14929 # A sed program that does not truncate output.
14932 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14933 Xsed="\$SED -e 1s/^X//"
14935 # A grep program that handles long lines.
14941 # A literal string matcher.
14944 # A BSD- or MS-compatible name lister.
14947 # Whether we need soft or hard links.
14950 # What is the maximum length of a command?
14951 max_cmd_len=$max_cmd_len
14953 # Object file suffix (normally "o").
14956 # Executable file suffix (normally "").
14959 # whether the shell understands "unset".
14962 # turn spaces into newlines.
14965 # turn newlines into spaces.
14968 # convert \$build file names to \$host format.
14969 to_host_file_cmd=$lt_cv_to_host_file_cmd
14971 # convert \$build files to toolchain format.
14972 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14974 # An object symbol dumper.
14975 OBJDUMP=$lt_OBJDUMP
14977 # Method to check whether dependent libraries are shared objects.
14978 deplibs_check_method=$lt_deplibs_check_method
14980 # Command to use when deplibs_check_method = "file_magic".
14981 file_magic_cmd=$lt_file_magic_cmd
14983 # How to find potential files when deplibs_check_method = "file_magic".
14984 file_magic_glob=$lt_file_magic_glob
14986 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14987 want_nocaseglob=$lt_want_nocaseglob
14989 # DLL creation program.
14990 DLLTOOL=$lt_DLLTOOL
14992 # Command to associate shared and link libraries.
14993 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14998 # Flags to create an archive.
14999 AR_FLAGS=$lt_AR_FLAGS
15001 # How to feed a file listing to the archiver.
15002 archiver_list_spec=$lt_archiver_list_spec
15004 # A symbol stripping program.
15007 # Commands used to install an old-style archive.
15009 old_postinstall_cmds=$lt_old_postinstall_cmds
15010 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15012 # Whether to use a lock for old archive extraction.
15013 lock_old_archive_extraction=$lock_old_archive_extraction
15018 # LTCC compiler flags.
15019 LTCFLAGS=$lt_CFLAGS
15021 # Take the output of nm and produce a listing of raw symbols and C names.
15022 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15024 # Transform the output of nm in a proper C declaration.
15025 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15027 # Transform the output of nm into a list of symbols to manually relocate.
15028 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15030 # Transform the output of nm in a C name address pair.
15031 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15033 # Transform the output of nm in a C name address pair when lib prefix is needed.
15034 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15036 # The name lister interface.
15037 nm_interface=$lt_lt_cv_nm_interface
15039 # Specify filename containing input files for \$NM.
15040 nm_file_list_spec=$lt_nm_file_list_spec
15042 # The root where to search for dependent libraries,and where our libraries should be installed.
15043 lt_sysroot=$lt_sysroot
15045 # Command to truncate a binary pipe.
15046 lt_truncate_bin=$lt_lt_cv_truncate_bin
15048 # The name of the directory that contains temporary libtool files.
15051 # Used to examine libraries when file_magic_cmd begins with "file".
15052 MAGIC_CMD=$MAGIC_CMD
15054 # Must we lock files when doing compilation?
15055 need_locks=$lt_need_locks
15058 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15060 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15061 DSYMUTIL=$lt_DSYMUTIL
15063 # Tool to change global to local symbols on Mac OS X.
15066 # Tool to manipulate fat objects and archives on Mac OS X.
15069 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15072 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15073 OTOOL64=$lt_OTOOL64
15075 # Old archive suffix (normally "a").
15078 # Shared library suffix (normally ".so").
15079 shrext_cmds=$lt_shrext_cmds
15081 # The commands to extract the exported symbol list from a shared archive.
15082 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15084 # Variables whose values should be saved in libtool wrapper scripts and
15085 # restored at link time.
15086 variables_saved_for_relink=$lt_variables_saved_for_relink
15088 # Do we need the "lib" prefix for modules?
15089 need_lib_prefix=$need_lib_prefix
15091 # Do we need a version for libraries?
15092 need_version=$need_version
15094 # Library versioning type.
15095 version_type=$version_type
15097 # Shared library runtime path variable.
15098 runpath_var=$runpath_var
15100 # Shared library path variable.
15101 shlibpath_var=$shlibpath_var
15103 # Is shlibpath searched before the hard-coded library search path?
15104 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15106 # Format of library name prefix.
15107 libname_spec=$lt_libname_spec
15109 # List of archive names. First name is the real one, the rest are links.
15110 # The last name is the one that the linker finds with -lNAME
15111 library_names_spec=$lt_library_names_spec
15113 # The coded name of the library, if different from the real name.
15114 soname_spec=$lt_soname_spec
15116 # Permission mode override for installation of shared libraries.
15117 install_override_mode=$lt_install_override_mode
15119 # Command to use after installation of a shared archive.
15120 postinstall_cmds=$lt_postinstall_cmds
15122 # Command to use after uninstallation of a shared archive.
15123 postuninstall_cmds=$lt_postuninstall_cmds
15125 # Commands used to finish a libtool library installation in a directory.
15126 finish_cmds=$lt_finish_cmds
15128 # As "finish_cmds", except a single script fragment to be evaled but
15130 finish_eval=$lt_finish_eval
15132 # Whether we should hardcode library paths into libraries.
15133 hardcode_into_libs=$hardcode_into_libs
15135 # Compile-time system search path for libraries.
15136 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15138 # Detected run-time system search path for libraries.
15139 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15141 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15142 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15144 # Whether dlopen is supported.
15145 dlopen_support=$enable_dlopen
15147 # Whether dlopen of programs is supported.
15148 dlopen_self=$enable_dlopen_self
15150 # Whether dlopen of statically linked programs is supported.
15151 dlopen_self_static=$enable_dlopen_self_static
15153 # Commands to strip libraries.
15154 old_striplib=$lt_old_striplib
15155 striplib=$lt_striplib
15158 # The linker used to build libraries.
15161 # How to create reloadable object files.
15162 reload_flag=$lt_reload_flag
15163 reload_cmds=$lt_reload_cmds
15165 # Commands used to build an old-style archive.
15166 old_archive_cmds=$lt_old_archive_cmds
15168 # A language specific compiler.
15171 # Is the compiler the GNU compiler?
15174 # Compiler flag to turn off builtin functions.
15175 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15177 # Additional compiler flags for building library objects.
15178 pic_flag=$lt_lt_prog_compiler_pic
15180 # How to pass a linker flag through the compiler.
15181 wl=$lt_lt_prog_compiler_wl
15183 # Compiler flag to prevent dynamic linking.
15184 link_static_flag=$lt_lt_prog_compiler_static
15186 # Does compiler simultaneously support -c and -o options?
15187 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15189 # Whether or not to add -lc for building shared libraries.
15190 build_libtool_need_lc=$archive_cmds_need_lc
15192 # Whether or not to disallow shared libs when runtime libs are static.
15193 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15195 # Compiler flag to allow reflexive dlopens.
15196 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15198 # Compiler flag to generate shared objects directly from archives.
15199 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15201 # Whether the compiler copes with passing no objects directly.
15202 compiler_needs_object=$lt_compiler_needs_object
15204 # Create an old-style archive from a shared archive.
15205 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15207 # Create a temporary old-style archive to link instead of a shared archive.
15208 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15210 # Commands used to build a shared archive.
15211 archive_cmds=$lt_archive_cmds
15212 archive_expsym_cmds=$lt_archive_expsym_cmds
15214 # Commands used to build a loadable module if different from building
15215 # a shared archive.
15216 module_cmds=$lt_module_cmds
15217 module_expsym_cmds=$lt_module_expsym_cmds
15219 # Whether we are building with GNU ld or not.
15220 with_gnu_ld=$lt_with_gnu_ld
15222 # Flag that allows shared libraries with undefined symbols to be built.
15223 allow_undefined_flag=$lt_allow_undefined_flag
15225 # Flag that enforces no undefined symbols.
15226 no_undefined_flag=$lt_no_undefined_flag
15228 # Flag to hardcode \$libdir into a binary during linking.
15229 # This must work even if \$libdir does not exist
15230 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15232 # Whether we need a single "-rpath" flag with a separated argument.
15233 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15235 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15236 # DIR into the resulting binary.
15237 hardcode_direct=$hardcode_direct
15239 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15240 # DIR into the resulting binary and the resulting library dependency is
15241 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15242 # library is relocated.
15243 hardcode_direct_absolute=$hardcode_direct_absolute
15245 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15246 # into the resulting binary.
15247 hardcode_minus_L=$hardcode_minus_L
15249 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15250 # into the resulting binary.
15251 hardcode_shlibpath_var=$hardcode_shlibpath_var
15253 # Set to "yes" if building a shared library automatically hardcodes DIR
15254 # into the library and all subsequent libraries and executables linked
15256 hardcode_automatic=$hardcode_automatic
15258 # Set to yes if linker adds runtime paths of dependent libraries
15259 # to runtime path list.
15260 inherit_rpath=$inherit_rpath
15262 # Whether libtool must link a program against all its dependency libraries.
15263 link_all_deplibs=$link_all_deplibs
15265 # Set to "yes" if exported symbols are required.
15266 always_export_symbols=$always_export_symbols
15268 # The commands to list exported symbols.
15269 export_symbols_cmds=$lt_export_symbols_cmds
15271 # Symbols that should not be listed in the preloaded symbols.
15272 exclude_expsyms=$lt_exclude_expsyms
15274 # Symbols that must always be exported.
15275 include_expsyms=$lt_include_expsyms
15277 # Commands necessary for linking programs (against libraries) with templates.
15278 prelink_cmds=$lt_prelink_cmds
15280 # Commands necessary for finishing linking programs.
15281 postlink_cmds=$lt_postlink_cmds
15283 # Specify filename containing input files.
15284 file_list_spec=$lt_file_list_spec
15286 # How to hardcode a shared library path into an executable.
15287 hardcode_action=$hardcode_action
15289 # ### END LIBTOOL CONFIG
15293 cat <<'_LT_EOF' >> "$cfgfile"
15295 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15297 # func_munge_path_list VARIABLE PATH
15298 # -----------------------------------
15299 # VARIABLE is name of variable containing _space_ separated list of
15300 # directories to be munged by the contents of PATH, which is string
15303 # string "DIR[ DIR]" will be prepended to VARIABLE
15305 # string "DIR[ DIR]" will be appended to VARIABLE
15306 # "DIRP[:DIRP]::[DIRA:]DIRA"
15307 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15308 # "DIRA[ DIRA]" will be appended to VARIABLE
15310 # VARIABLE will be replaced by "DIR[ DIR]"
15311 func_munge_path_list ()
15317 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15320 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15323 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15324 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15327 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15333 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15334 func_cc_basename ()
15336 for cc_temp in $*""; do
15338 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15339 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15344 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15348 # ### END FUNCTIONS SHARED WITH CONFIGURE
15354 cat <<\_LT_EOF >> "$cfgfile"
15355 # AIX sometimes has problems with the GCC collect2 program. For some
15356 # reason, if we set the COLLECT_NAMES environment variable, the problems
15357 # vanish in a puff of smoke.
15358 if test set != "${COLLECT_NAMES+set}"; then
15360 export COLLECT_NAMES
15367 ltmain=$ac_aux_dir/ltmain.sh
15370 # We use sed instead of cat because bash on DJGPP gets confused if
15371 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15372 # text mode, it properly converts lines to CR/LF. This bash problem
15373 # is reportedly fixed, but why not run on old versions too?
15374 sed '$q' "$ltmain" >> "$cfgfile" \
15375 || (rm -f "$cfgfile"; exit 1)
15377 mv -f "$cfgfile" "$ofile" ||
15378 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15382 "mkpkgng":F) chmod +x mkpkgng ;;
15383 "misc/coverage.sh":F) chmod +x misc/coverage.sh ;;
15384 "misc/coverity.sh":F) chmod +x misc/coverity.sh ;;
15392 ac_clean_files=$ac_clean_files_save
15394 test $ac_write_fail = 0 ||
15395 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15398 # configure is writing to config.log, and then calls config.status.
15399 # config.status does its own redirection, appending to config.log.
15400 # Unfortunately, on DOS this fails, as config.log is still kept open
15401 # by configure, so config.status won't be able to write to it; its
15402 # output is simply discarded. So we exec the FD to /dev/null,
15403 # effectively closing config.log, so it can be properly (re)opened and
15404 # appended to by config.status. When coming back to configure, we
15405 # need to make the FD available again.
15406 if test "$no_create" != yes; then
15408 ac_config_status_args=
15409 test "$silent" = yes &&
15410 ac_config_status_args="$ac_config_status_args --quiet"
15412 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15414 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15415 # would make configure fail if this is the last instruction.
15416 $ac_cs_success || as_fn_exit 1
15418 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15420 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}