2 # From configure.ac Id: configure.ac 741 2013-09-07 13:34:02Z des .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for OpenPAM 20130907.
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='20130907'
594 PACKAGE_STRING='OpenPAM 20130907'
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
650 CUSTOM_MODULES_DIR_FALSE
651 CUSTOM_MODULES_DIR_TRUE
713 INSTALL_STRIP_PROGRAM
755 program_transform_name
768 enable_option_checking
770 enable_dependency_tracking
779 enable_unversioned_modules
785 enable_developer_warnings
786 enable_debugging_symbols
789 ac_precious_vars='build_alias
800 # Initialize some variables set by options.
802 ac_init_version=false
803 ac_unrecognized_opts=
805 # The variables have the same names as the options, with
806 # dashes changed to underlines.
814 program_transform_name=s,x,x,
822 # Installation directory options.
823 # These are left unexpanded so users can "make install exec_prefix=/foo"
824 # and all the variables that are supposed to be based on exec_prefix
825 # by default will actually change.
826 # Use braces instead of parens because sh, perl, etc. also accept them.
827 # (The list follows the same order as the GNU Coding Standards.)
828 bindir='${exec_prefix}/bin'
829 sbindir='${exec_prefix}/sbin'
830 libexecdir='${exec_prefix}/libexec'
831 datarootdir='${prefix}/share'
832 datadir='${datarootdir}'
833 sysconfdir='${prefix}/etc'
834 sharedstatedir='${prefix}/com'
835 localstatedir='${prefix}/var'
836 includedir='${prefix}/include'
837 oldincludedir='/usr/include'
838 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839 infodir='${datarootdir}/info'
844 libdir='${exec_prefix}/lib'
845 localedir='${datarootdir}/locale'
846 mandir='${datarootdir}/man'
852 # If the previous option needs an argument, assign it.
853 if test -n "$ac_prev"; then
854 eval $ac_prev=\$ac_option
860 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
865 # Accept the important Cygnus configure options, so we can diagnose typos.
867 case $ac_dashdash$ac_option in
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
889 cache_file=config.cache ;;
891 -datadir | --datadir | --datadi | --datad)
893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
894 datadir=$ac_optarg ;;
896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
903 -disable-* | --disable-*)
904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error $? "invalid feature name: $ac_useropt"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
917 eval enable_$ac_useropt=no ;;
919 -docdir | --docdir | --docdi | --doc | --do)
921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
929 -enable-* | --enable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error $? "invalid feature name: $ac_useropt"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
943 eval enable_$ac_useropt=\$ac_optarg ;;
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
958 -help | --help | --hel | --he | -h)
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 htmldir=$ac_optarg ;;
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
988 -libdir | --libdir | --libdi | --libd)
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1079 -psdir | --psdir | --psdi | --psd | --ps)
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 sbindir=$ac_optarg ;;
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 sharedstatedir=$ac_optarg ;;
1105 -site | --site | --sit)
1107 -site=* | --site=* | --sit=*)
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error $? "invalid package name: $ac_useropt"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1147 eval with_$ac_useropt=\$ac_optarg ;;
1149 -without-* | --without-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error $? "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1163 eval with_$ac_useropt=no ;;
1166 # Obsolete; use --with-x.
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1183 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1184 Try \`$0 --help' for more information"
1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189 # Reject names that are not valid shell variable names.
1190 case $ac_envvar in #(
1191 '' | [0-9]* | *[!_$as_cr_alnum]* )
1192 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1194 eval $ac_envvar=\$ac_optarg
1195 export $ac_envvar ;;
1198 # FIXME: should be removed in autoconf 3.0.
1199 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1208 if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210 as_fn_error $? "missing argument to $ac_option"
1213 if test -n "$ac_unrecognized_opts"; then
1214 case $enable_option_checking in
1216 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1217 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1221 # Check all directory arguments for consistency.
1222 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223 datadir sysconfdir sharedstatedir localstatedir includedir \
1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225 libdir localedir mandir
1227 eval ac_val=\$$ac_var
1228 # Remove trailing slashes.
1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1232 eval $ac_var=\$ac_val;;
1234 # Be sure to have absolute directory names.
1236 [\\/$]* | ?:[\\/]* ) continue;;
1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1239 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1242 # There might be people who depend on the old broken behavior: `$host'
1243 # used to hold the argument of --host etc.
1244 # FIXME: To remove some day.
1247 target=$target_alias
1249 # FIXME: To remove some day.
1250 if test "x$host_alias" != x; then
1251 if test "x$build_alias" = x; then
1252 cross_compiling=maybe
1253 elif test "x$build_alias" != "x$host_alias"; then
1259 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1261 test "$silent" = yes && exec 6>/dev/null
1264 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1265 ac_ls_di=`ls -di .` &&
1266 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1267 as_fn_error $? "working directory cannot be determined"
1268 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1269 as_fn_error $? "pwd does not report name of working directory"
1272 # Find the source files, if location was not specified.
1273 if test -z "$srcdir"; then
1274 ac_srcdir_defaulted=yes
1275 # Try the directory containing this script, then the parent directory.
1276 ac_confdir=`$as_dirname -- "$as_myself" ||
1277 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1278 X"$as_myself" : 'X\(//\)[^/]' \| \
1279 X"$as_myself" : 'X\(//\)$' \| \
1280 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1281 $as_echo X"$as_myself" |
1282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1304 ac_srcdir_defaulted=no
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1308 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1310 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1312 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1314 # When building in place, set srcdir=.
1315 if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 # Remove unnecessary trailing slashes from srcdir.
1319 # Double slashes in file names in object file debugging info
1320 # mess up M-x gdb in Emacs.
1322 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1324 for ac_var in $ac_precious_vars; do
1325 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_env_${ac_var}_value=\$${ac_var}
1327 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1332 # Report the --help message.
1334 if test "$ac_init_help" = "long"; then
1335 # Omit some internal or obsolete options to make the list less imposing.
1336 # This message is too long to be a string in the A/UX 3.1 sh.
1338 \`configure' configures OpenPAM 20130907 to adapt to many kinds of systems.
1340 Usage: $0 [OPTION]... [VAR=VALUE]...
1342 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1343 VAR=VALUE. See below for descriptions of some of the useful variables.
1345 Defaults for the options are specified in brackets.
1348 -h, --help display this help and exit
1349 --help=short display options specific to this package
1350 --help=recursive display the short help of all the included packages
1351 -V, --version display version information and exit
1352 -q, --quiet, --silent do not print \`checking ...' messages
1353 --cache-file=FILE cache test results in FILE [disabled]
1354 -C, --config-cache alias for \`--cache-file=config.cache'
1355 -n, --no-create do not create output files
1356 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1358 Installation directories:
1359 --prefix=PREFIX install architecture-independent files in PREFIX
1360 [$ac_default_prefix]
1361 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1364 By default, \`make install' will install all the files in
1365 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1366 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1367 for instance \`--prefix=\$HOME'.
1369 For better control, use the options below.
1371 Fine tuning of the installation directories:
1372 --bindir=DIR user executables [EPREFIX/bin]
1373 --sbindir=DIR system admin executables [EPREFIX/sbin]
1374 --libexecdir=DIR program executables [EPREFIX/libexec]
1375 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1376 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1377 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1378 --libdir=DIR object code libraries [EPREFIX/lib]
1379 --includedir=DIR C header files [PREFIX/include]
1380 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1381 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1382 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1383 --infodir=DIR info documentation [DATAROOTDIR/info]
1384 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1385 --mandir=DIR man documentation [DATAROOTDIR/man]
1386 --docdir=DIR documentation root [DATAROOTDIR/doc/openpam]
1387 --htmldir=DIR html documentation [DOCDIR]
1388 --dvidir=DIR dvi documentation [DOCDIR]
1389 --pdfdir=DIR pdf documentation [DOCDIR]
1390 --psdir=DIR ps documentation [DOCDIR]
1396 --program-prefix=PREFIX prepend PREFIX to installed program names
1397 --program-suffix=SUFFIX append SUFFIX to installed program names
1398 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1401 --build=BUILD configure for building on BUILD [guessed]
1402 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1406 if test -n "$ac_init_help"; then
1407 case $ac_init_help in
1408 short | recursive ) echo "Configuration of OpenPAM 20130907:";;
1413 --disable-option-checking ignore unrecognized --enable/--with options
1414 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1415 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1416 --enable-silent-rules less verbose build output (undo: "make V=1")
1417 --disable-silent-rules verbose build output (undo: "make V=0")
1418 --enable-dependency-tracking
1419 do not reject slow dependency extractors
1420 --disable-dependency-tracking
1421 speeds up one-time build
1422 --enable-static[=PKGS] build static libraries [default=no]
1423 --enable-shared[=PKGS] build shared libraries [default=yes]
1424 --enable-fast-install[=PKGS]
1425 optimize for fast installation [default=yes]
1426 --disable-libtool-lock avoid locking (might break parallel builds)
1427 --enable-debug turn debugging macros on
1428 --disable-unversioned-modules
1429 support loading of unversioned modules
1430 --enable-developer-warnings
1431 enable strict warnings (default is NO)
1432 --enable-debugging-symbols
1433 enable debugging symbols (default is NO)
1434 --enable-werror use -Werror (default is NO)
1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1439 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1441 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1442 --with-sysroot=DIR Search for dependent libraries within DIR
1443 (or the compiler's sysroot if not specified).
1444 --with-modules-dir=DIR OpenPAM modules directory
1445 --without-doc do not build documentation
1446 --with-pam-unix compile sample pam_unix(8) module
1447 --with-pamtest compile test application
1448 --with-su compile sample su(1) implementation
1450 Some influential environment variables:
1451 CC C compiler command
1452 CFLAGS C compiler flags
1453 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1454 nonstandard directory <lib dir>
1455 LIBS libraries to pass to the linker, e.g. -l<library>
1456 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1457 you have headers in a nonstandard directory <include dir>
1460 Use these variables to override the choices made by `configure' or to help
1461 it to find libraries and programs with nonstandard names/locations.
1463 Report bugs to <des@des.no>.
1464 OpenPAM home page: <http://www.openpam.org/>.
1469 if test "$ac_init_help" = "recursive"; then
1470 # If there are subdirs, report their specific --help.
1471 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1472 test -d "$ac_dir" ||
1473 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1478 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1481 # A ".." for each directory in $ac_dir_suffix.
1482 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1483 case $ac_top_builddir_sub in
1484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1488 ac_abs_top_builddir=$ac_pwd
1489 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490 # for backward compatibility:
1491 ac_top_builddir=$ac_top_build_prefix
1494 .) # We are building in place.
1496 ac_top_srcdir=$ac_top_builddir_sub
1497 ac_abs_top_srcdir=$ac_pwd ;;
1498 [\\/]* | ?:[\\/]* ) # Absolute name.
1499 ac_srcdir=$srcdir$ac_dir_suffix;
1500 ac_top_srcdir=$srcdir
1501 ac_abs_top_srcdir=$srcdir ;;
1503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504 ac_top_srcdir=$ac_top_build_prefix$srcdir
1505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1507 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1509 cd "$ac_dir" || { ac_status=$?; continue; }
1510 # Check for guested configure.
1511 if test -f "$ac_srcdir/configure.gnu"; then
1513 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514 elif test -f "$ac_srcdir/configure"; then
1516 $SHELL "$ac_srcdir/configure" --help=recursive
1518 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1520 cd "$ac_pwd" || { ac_status=$?; break; }
1524 test -n "$ac_init_help" && exit $ac_status
1525 if $ac_init_version; then
1527 OpenPAM configure 20130907
1528 generated by GNU Autoconf 2.69
1530 Copyright (C) 2012 Free Software Foundation, Inc.
1531 This configure script is free software; the Free Software Foundation
1532 gives unlimited permission to copy, distribute and modify it.
1537 ## ------------------------ ##
1538 ## Autoconf initialization. ##
1539 ## ------------------------ ##
1541 # ac_fn_c_try_compile LINENO
1542 # --------------------------
1543 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1544 ac_fn_c_try_compile ()
1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547 rm -f conftest.$ac_objext
1548 if { { ac_try="$ac_compile"
1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551 *) ac_try_echo=$ac_try;;
1553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554 $as_echo "$ac_try_echo"; } >&5
1555 (eval "$ac_compile") 2>conftest.err
1557 if test -s conftest.err; then
1558 grep -v '^ *+' conftest.err >conftest.er1
1559 cat conftest.er1 >&5
1560 mv -f conftest.er1 conftest.err
1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563 test $ac_status = 0; } && {
1564 test -z "$ac_c_werror_flag" ||
1565 test ! -s conftest.err
1566 } && test -s conftest.$ac_objext; then :
1569 $as_echo "$as_me: failed program was:" >&5
1570 sed 's/^/| /' conftest.$ac_ext >&5
1574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575 as_fn_set_status $ac_retval
1577 } # ac_fn_c_try_compile
1579 # ac_fn_c_try_cpp LINENO
1580 # ----------------------
1581 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 if { { ac_try="$ac_cpp conftest.$ac_ext"
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } > conftest.i && {
1601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1606 $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612 as_fn_set_status $ac_retval
1616 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1617 # -------------------------------------------------------
1618 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1619 # the include files in INCLUDES and setting the cache variable VAR
1621 ac_fn_c_check_header_mongrel ()
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 if eval \${$3+:} false; then :
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626 $as_echo_n "checking for $2... " >&6; }
1627 if eval \${$3+:} false; then :
1628 $as_echo_n "(cached) " >&6
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1632 $as_echo "$ac_res" >&6; }
1634 # Is the header compilable?
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1636 $as_echo_n "checking $2 usability... " >&6; }
1637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638 /* end confdefs.h. */
1642 if ac_fn_c_try_compile "$LINENO"; then :
1643 ac_header_compiler=yes
1645 ac_header_compiler=no
1647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1649 $as_echo "$ac_header_compiler" >&6; }
1651 # Is the header present?
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1653 $as_echo_n "checking $2 presence... " >&6; }
1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h. */
1658 if ac_fn_c_try_cpp "$LINENO"; then :
1659 ac_header_preproc=yes
1661 ac_header_preproc=no
1663 rm -f conftest.err conftest.i conftest.$ac_ext
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1665 $as_echo "$ac_header_preproc" >&6; }
1667 # So? What about this header?
1668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1671 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1673 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1677 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1679 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1681 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1683 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1685 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1686 ( $as_echo "## ------------------------- ##
1687 ## Report this to des@des.no ##
1688 ## ------------------------- ##"
1689 ) | sed "s/^/$as_me: WARNING: /" >&2
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693 $as_echo_n "checking for $2... " >&6; }
1694 if eval \${$3+:} false; then :
1695 $as_echo_n "(cached) " >&6
1697 eval "$3=\$ac_header_compiler"
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701 $as_echo "$ac_res" >&6; }
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 } # ac_fn_c_check_header_mongrel
1707 # ac_fn_c_try_run LINENO
1708 # ----------------------
1709 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1710 # that executables *can* be run.
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 if { { ac_try="$ac_link"
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_link") 2>&5
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1725 { { case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_try") 2>&5
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; }; }; then :
1737 $as_echo "$as_me: program exited with status $ac_status" >&5
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1741 ac_retval=$ac_status
1743 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 as_fn_set_status $ac_retval
1749 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1750 # -------------------------------------------------------
1751 # Tests whether HEADER exists and can be compiled using the include files in
1752 # INCLUDES, setting the cache variable VAR accordingly.
1753 ac_fn_c_check_header_compile ()
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if eval \${$3+:} false; then :
1759 $as_echo_n "(cached) " >&6
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1766 if ac_fn_c_try_compile "$LINENO"; then :
1771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775 $as_echo "$ac_res" >&6; }
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 } # ac_fn_c_check_header_compile
1780 # ac_fn_c_try_link LINENO
1781 # -----------------------
1782 # Try to link conftest.$ac_ext, and return whether this succeeded.
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 rm -f conftest.$ac_objext conftest$ac_exeext
1787 if { { ac_try="$ac_link"
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_link") 2>conftest.err
1796 if test -s conftest.err; then
1797 grep -v '^ *+' conftest.err >conftest.er1
1798 cat conftest.er1 >&5
1799 mv -f conftest.er1 conftest.err
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; } && {
1803 test -z "$ac_c_werror_flag" ||
1804 test ! -s conftest.err
1805 } && test -s conftest$ac_exeext && {
1806 test "$cross_compiling" = yes ||
1807 test -x conftest$ac_exeext
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1816 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1817 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1818 # interfere with the next link command; also delete a directory that is
1819 # left behind by Apple's compiler. We do this before executing the actions.
1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status $ac_retval
1824 } # ac_fn_c_try_link
1826 # ac_fn_c_check_func LINENO FUNC VAR
1827 # ----------------------------------
1828 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1829 ac_fn_c_check_func ()
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \${$3+:} false; then :
1835 $as_echo_n "(cached) " >&6
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1839 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1841 #define $2 innocuous_$2
1843 /* System header to define __stub macros and hopefully few prototypes,
1844 which can conflict with char $2 (); below.
1845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846 <limits.h> exists even on freestanding compilers. */
1849 # include <limits.h>
1851 # include <assert.h>
1856 /* Override any GCC internal prototype to avoid an error.
1857 Use char because int might match the return type of a GCC
1858 builtin and then its argument prototype would still apply. */
1863 /* The GNU C library defines this for functions which it implements
1864 to always fail with ENOSYS. Some functions are actually named
1865 something starting with __ and the normal name is an alias. */
1866 #if defined __stub_$2 || defined __stub___$2
1878 if ac_fn_c_try_link "$LINENO"; then :
1883 rm -f core conftest.err conftest.$ac_objext \
1884 conftest$ac_exeext conftest.$ac_ext
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891 } # ac_fn_c_check_func
1892 cat >config.log <<_ACEOF
1893 This file contains any messages produced by compilers while
1894 running configure, to aid debugging if configure makes a mistake.
1896 It was created by OpenPAM $as_me 20130907, which was
1897 generated by GNU Autoconf 2.69. Invocation command line was
1909 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1910 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1911 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1912 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1913 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1915 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1916 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1918 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1919 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1920 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1921 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1922 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1923 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1924 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932 test -z "$as_dir" && as_dir=.
1933 $as_echo "PATH: $as_dir"
1949 # Keep a trace of the command line.
1950 # Strip out --no-create and --no-recursion so they do not pile up.
1951 # Strip out --silent because we don't want to record it for future runs.
1952 # Also quote any args containing shell meta-characters.
1953 # Make two passes to allow for proper duplicate-argument suppression.
1957 ac_must_keep_next=false
1963 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1964 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1965 | -silent | --silent | --silen | --sile | --sil)
1968 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1971 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1973 as_fn_append ac_configure_args1 " '$ac_arg'"
1974 if test $ac_must_keep_next = true; then
1975 ac_must_keep_next=false # Got value, back to normal.
1978 *=* | --config-cache | -C | -disable-* | --disable-* \
1979 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1980 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1981 | -with-* | --with-* | -without-* | --without-* | --x)
1982 case "$ac_configure_args0 " in
1983 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1986 -* ) ac_must_keep_next=true ;;
1989 as_fn_append ac_configure_args " '$ac_arg'"
1994 { ac_configure_args0=; unset ac_configure_args0;}
1995 { ac_configure_args1=; unset ac_configure_args1;}
1997 # When interrupted or exit'd, cleanup temporary files, and complete
1998 # config.log. We remove comments because anyway the quotes in there
1999 # would cause problems or look ugly.
2000 # WARNING: Use '\'' to represent an apostrophe within the trap.
2001 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2002 trap 'exit_status=$?
2003 # Save into config.log some information that might help in debugging.
2007 $as_echo "## ---------------- ##
2008 ## Cache variables. ##
2009 ## ---------------- ##"
2011 # The following way of writing the cache mishandles newlines in values,
2013 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2014 eval ac_val=\$$ac_var
2018 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2019 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2022 _ | IFS | as_nl) ;; #(
2023 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2024 *) { eval $ac_var=; unset $ac_var;} ;;
2029 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2030 *${as_nl}ac_space=\ *)
2032 "s/'\''/'\''\\\\'\'''\''/g;
2033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2036 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2043 $as_echo "## ----------------- ##
2044 ## Output variables. ##
2045 ## ----------------- ##"
2047 for ac_var in $ac_subst_vars
2049 eval ac_val=\$$ac_var
2051 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2053 $as_echo "$ac_var='\''$ac_val'\''"
2057 if test -n "$ac_subst_files"; then
2058 $as_echo "## ------------------- ##
2059 ## File substitutions. ##
2060 ## ------------------- ##"
2062 for ac_var in $ac_subst_files
2064 eval ac_val=\$$ac_var
2066 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2068 $as_echo "$ac_var='\''$ac_val'\''"
2073 if test -s confdefs.h; then
2074 $as_echo "## ----------- ##
2081 test "$ac_signal" != 0 &&
2082 $as_echo "$as_me: caught signal $ac_signal"
2083 $as_echo "$as_me: exit $exit_status"
2085 rm -f core *.core core.conftest.* &&
2086 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2089 for ac_signal in 1 2 13 15; do
2090 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2094 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2095 rm -f -r conftest* confdefs.h
2097 $as_echo "/* confdefs.h */" > confdefs.h
2099 # Predefined preprocessor variables.
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_NAME "$PACKAGE_NAME"
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2113 cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE_STRING "$PACKAGE_STRING"
2117 cat >>confdefs.h <<_ACEOF
2118 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2121 cat >>confdefs.h <<_ACEOF
2122 #define PACKAGE_URL "$PACKAGE_URL"
2126 # Let the site file select an alternate cache file if it wants to.
2127 # Prefer an explicitly selected file to automatically selected ones.
2130 if test -n "$CONFIG_SITE"; then
2131 # We do not want a PATH search for config.site.
2132 case $CONFIG_SITE in #((
2133 -*) ac_site_file1=./$CONFIG_SITE;;
2134 */*) ac_site_file1=$CONFIG_SITE;;
2135 *) ac_site_file1=./$CONFIG_SITE;;
2137 elif test "x$prefix" != xNONE; then
2138 ac_site_file1=$prefix/share/config.site
2139 ac_site_file2=$prefix/etc/config.site
2141 ac_site_file1=$ac_default_prefix/share/config.site
2142 ac_site_file2=$ac_default_prefix/etc/config.site
2144 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2146 test "x$ac_site_file" = xNONE && continue
2147 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2149 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2150 sed 's/^/| /' "$ac_site_file" >&5
2152 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2154 as_fn_error $? "failed to load site script $ac_site_file
2155 See \`config.log' for more details" "$LINENO" 5; }
2159 if test -r "$cache_file"; then
2160 # Some versions of bash will fail to source /dev/null (special files
2161 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2162 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2164 $as_echo "$as_me: loading cache $cache_file" >&6;}
2166 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2167 *) . "./$cache_file";;
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2172 $as_echo "$as_me: creating cache $cache_file" >&6;}
2176 # Check that the precious variables saved in the cache have kept the same
2178 ac_cache_corrupted=false
2179 for ac_var in $ac_precious_vars; do
2180 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2181 eval ac_new_set=\$ac_env_${ac_var}_set
2182 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2183 eval ac_new_val=\$ac_env_${ac_var}_value
2184 case $ac_old_set,$ac_new_set in
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2187 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2188 ac_cache_corrupted=: ;;
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2191 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2192 ac_cache_corrupted=: ;;
2195 if test "x$ac_old_val" != "x$ac_new_val"; then
2196 # differences in whitespace do not lead to failure.
2197 ac_old_val_w=`echo x $ac_old_val`
2198 ac_new_val_w=`echo x $ac_new_val`
2199 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2201 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2202 ac_cache_corrupted=:
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2205 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2206 eval $ac_var=\$ac_old_val
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2209 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2211 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2214 # Pass precious variables to config.status.
2215 if test "$ac_new_set" = set; then
2217 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2218 *) ac_arg=$ac_var=$ac_new_val ;;
2220 case " $ac_configure_args " in
2221 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2222 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2226 if $ac_cache_corrupted; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2230 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2231 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2233 ## -------------------- ##
2234 ## Main body of script. ##
2235 ## -------------------- ##
2238 ac_cpp='$CPP $CPPFLAGS'
2239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2246 am__api_version='1.14'
2249 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2250 if test -f "$ac_dir/install-sh"; then
2252 ac_install_sh="$ac_aux_dir/install-sh -c"
2254 elif test -f "$ac_dir/install.sh"; then
2256 ac_install_sh="$ac_aux_dir/install.sh -c"
2258 elif test -f "$ac_dir/shtool"; then
2260 ac_install_sh="$ac_aux_dir/shtool install -c"
2264 if test -z "$ac_aux_dir"; then
2265 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2268 # These three variables are undocumented and unsupported,
2269 # and are intended to be withdrawn in a future Autoconf release.
2270 # They can cause serious problems if a builder's source tree is in a directory
2271 # whose full name contains unusual characters.
2272 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2273 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2274 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2277 # Find a good install program. We prefer a C program (faster),
2278 # so one script is as good as another. But avoid the broken or
2279 # incompatible versions:
2280 # SysV /etc/install, /usr/sbin/install
2281 # SunOS /usr/etc/install
2282 # IRIX /sbin/install
2284 # AmigaOS /C/install, which installs bootblocks on floppy discs
2285 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2286 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2287 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2288 # OS/2's system install, which has a completely different semantic
2289 # ./install, which can be erroneously created by make from ./install.sh.
2290 # Reject install programs that cannot install multiple files.
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2292 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2293 if test -z "$INSTALL"; then
2294 if ${ac_cv_path_install+:} false; then :
2295 $as_echo_n "(cached) " >&6
2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 test -z "$as_dir" && as_dir=.
2302 # Account for people who put trailing slashes in PATH elements.
2303 case $as_dir/ in #((
2304 ./ | .// | /[cC]/* | \
2305 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2306 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2309 # OSF1 and SCO ODT 3.0 have their own names for install.
2310 # Don't use installbsd from OSF since it installs stuff as root
2312 for ac_prog in ginstall scoinst install; do
2313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2315 if test $ac_prog = install &&
2316 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2317 # AIX install. It has an incompatible calling convention.
2319 elif test $ac_prog = install &&
2320 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2321 # program-specific install script used by HP pwplus--don't use.
2324 rm -rf conftest.one conftest.two conftest.dir
2325 echo one > conftest.one
2326 echo two > conftest.two
2328 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2329 test -s conftest.one && test -s conftest.two &&
2330 test -s conftest.dir/conftest.one &&
2331 test -s conftest.dir/conftest.two
2333 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2346 rm -rf conftest.one conftest.two conftest.dir
2349 if test "${ac_cv_path_install+set}" = set; then
2350 INSTALL=$ac_cv_path_install
2352 # As a last resort, use the slow shell script. Don't cache a
2353 # value for INSTALL within a source directory, because that will
2354 # break other packages using the cache if that directory is
2355 # removed, or if the value is a relative name.
2356 INSTALL=$ac_install_sh
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2360 $as_echo "$INSTALL" >&6; }
2362 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2363 # It thinks the first close brace ends the variable substitution.
2364 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2366 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2368 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2371 $as_echo_n "checking whether build environment is sane... " >&6; }
2372 # Reject unsafe characters in $srcdir or the absolute working directory
2373 # name. Accept space and tab only in the latter.
2377 *[\\\"\#\$\&\'\`$am_lf]*)
2378 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2381 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2382 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2385 # Do 'set' in a subshell so we don't clobber the current shell's
2386 # arguments. Must try -L first in case configure is actually a
2387 # symlink; some systems play weird games with the mod time of symlinks
2388 # (eg FreeBSD returns the mod time of the symlink's containing
2392 for am_try in 1 2; do
2393 echo "timestamp, slept: $am_has_slept" > conftest.file
2394 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2395 if test "$*" = "X"; then
2397 set X `ls -t "$srcdir/configure" conftest.file`
2399 if test "$*" != "X $srcdir/configure conftest.file" \
2400 && test "$*" != "X conftest.file $srcdir/configure"; then
2402 # If neither matched, then we have a broken ls. This can happen
2403 # if, for instance, CONFIG_SHELL is bash and it inherits a
2404 # broken ls alias from the environment. This has actually
2405 # happened. Such a system could not be considered "sane".
2406 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2407 alias in your environment" "$LINENO" 5
2409 if test "$2" = conftest.file || test $am_try -eq 2; then
2416 test "$2" = conftest.file
2422 as_fn_error $? "newly created file is older than distributed files!
2423 Check your system clock" "$LINENO" 5
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2426 $as_echo "yes" >&6; }
2427 # If we didn't sleep, we still need to ensure time stamps of config.status and
2428 # generated files are strictly newer.
2430 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2437 test "$program_prefix" != NONE &&
2438 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2439 # Use a double $ so make ignores it.
2440 test "$program_suffix" != NONE &&
2441 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2442 # Double any \ or $.
2443 # By default was `s,x,x', remove it if useless.
2444 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2445 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2447 # expand $ac_aux_dir to an absolute path
2448 am_aux_dir=`cd $ac_aux_dir && pwd`
2450 if test x"${MISSING+set}" != xset; then
2453 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2455 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2458 # Use eval to expand $SHELL
2459 if eval "$MISSING --is-lightweight"; then
2460 am_missing_run="$MISSING "
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2464 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2467 if test x"${install_sh}" != xset; then
2470 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2472 install_sh="\${SHELL} $am_aux_dir/install-sh"
2476 # Installed binaries are usually stripped using 'strip' when the user
2477 # run "make install-strip". However 'strip' might not be the right
2478 # tool to use in cross-compilation environments, therefore Automake
2479 # will honor the 'STRIP' environment variable to overrule this program.
2480 if test "$cross_compiling" != no; then
2481 if test -n "$ac_tool_prefix"; then
2482 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2483 set dummy ${ac_tool_prefix}strip; ac_word=$2
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2485 $as_echo_n "checking for $ac_word... " >&6; }
2486 if ${ac_cv_prog_STRIP+:} false; then :
2487 $as_echo_n "(cached) " >&6
2489 if test -n "$STRIP"; then
2490 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2499 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 STRIP=$ac_cv_prog_STRIP
2510 if test -n "$STRIP"; then
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2512 $as_echo "$STRIP" >&6; }
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2515 $as_echo "no" >&6; }
2520 if test -z "$ac_cv_prog_STRIP"; then
2522 # Extract the first word of "strip", so it can be a program name with args.
2523 set dummy strip; ac_word=$2
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2525 $as_echo_n "checking for $ac_word... " >&6; }
2526 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2527 $as_echo_n "(cached) " >&6
2529 if test -n "$ac_ct_STRIP"; then
2530 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 test -z "$as_dir" && as_dir=.
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2539 ac_cv_prog_ac_ct_STRIP="strip"
2540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2550 if test -n "$ac_ct_STRIP"; then
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2552 $as_echo "$ac_ct_STRIP" >&6; }
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2555 $as_echo "no" >&6; }
2558 if test "x$ac_ct_STRIP" = x; then
2561 case $cross_compiling:$ac_tool_warned in
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2565 ac_tool_warned=yes ;;
2570 STRIP="$ac_cv_prog_STRIP"
2574 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2577 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2578 if test -z "$MKDIR_P"; then
2579 if ${ac_cv_path_mkdir+:} false; then :
2580 $as_echo_n "(cached) " >&6
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2586 test -z "$as_dir" && as_dir=.
2587 for ac_prog in mkdir gmkdir; do
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2590 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2591 'mkdir (GNU coreutils) '* | \
2592 'mkdir (coreutils) '* | \
2593 'mkdir (fileutils) '4.1*)
2594 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2604 test -d ./--version && rmdir ./--version
2605 if test "${ac_cv_path_mkdir+set}" = set; then
2606 MKDIR_P="$ac_cv_path_mkdir -p"
2608 # As a last resort, use the slow shell script. Don't cache a
2609 # value for MKDIR_P within a source directory, because that will
2610 # break other packages using the cache if that directory is
2611 # removed, or if the value is a relative name.
2612 MKDIR_P="$ac_install_sh -d"
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2616 $as_echo "$MKDIR_P" >&6; }
2618 for ac_prog in gawk mawk nawk awk
2620 # Extract the first word of "$ac_prog", so it can be a program name with args.
2621 set dummy $ac_prog; ac_word=$2
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2623 $as_echo_n "checking for $ac_word... " >&6; }
2624 if ${ac_cv_prog_AWK+:} false; then :
2625 $as_echo_n "(cached) " >&6
2627 if test -n "$AWK"; then
2628 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 test -z "$as_dir" && as_dir=.
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2637 ac_cv_prog_AWK="$ac_prog"
2638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 if test -n "$AWK"; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2650 $as_echo "$AWK" >&6; }
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2653 $as_echo "no" >&6; }
2657 test -n "$AWK" && break
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2661 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2663 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2664 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2665 $as_echo_n "(cached) " >&6
2667 cat >conftest.make <<\_ACEOF
2670 @echo '@@@%%%=$(MAKE)=@@@%%%'
2672 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2673 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2675 eval ac_cv_prog_make_${ac_make}_set=yes;;
2677 eval ac_cv_prog_make_${ac_make}_set=no;;
2681 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2683 $as_echo "yes" >&6; }
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687 $as_echo "no" >&6; }
2688 SET_MAKE="MAKE=${MAKE-make}"
2691 rm -rf .tst 2>/dev/null
2692 mkdir .tst 2>/dev/null
2693 if test -d .tst; then
2698 rmdir .tst 2>/dev/null
2700 # Check whether --enable-silent-rules was given.
2701 if test "${enable_silent_rules+set}" = set; then :
2702 enableval=$enable_silent_rules;
2705 case $enable_silent_rules in # (((
2706 yes) AM_DEFAULT_VERBOSITY=0;;
2707 no) AM_DEFAULT_VERBOSITY=1;;
2708 *) AM_DEFAULT_VERBOSITY=1;;
2710 am_make=${MAKE-make}
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2712 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2713 if ${am_cv_make_support_nested_variables+:} false; then :
2714 $as_echo_n "(cached) " >&6
2716 if $as_echo 'TRUE=$(BAR$(V))
2722 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2723 am_cv_make_support_nested_variables=yes
2725 am_cv_make_support_nested_variables=no
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2729 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2730 if test $am_cv_make_support_nested_variables = yes; then
2732 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2734 AM_V=$AM_DEFAULT_VERBOSITY
2735 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2739 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2740 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2741 # is not polluted with repeated "-I."
2742 am__isrc=' -I$(srcdir)'
2743 # test to see if srcdir already configured
2744 if test -f $srcdir/config.status; then
2745 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2749 # test whether we have cygpath
2750 if test -z "$CYGPATH_W"; then
2751 if (cygpath --version) >/dev/null 2>/dev/null; then
2752 CYGPATH_W='cygpath -w'
2759 # Define the identity of the package.
2764 cat >>confdefs.h <<_ACEOF
2765 #define PACKAGE "$PACKAGE"
2769 cat >>confdefs.h <<_ACEOF
2770 #define VERSION "$VERSION"
2773 # Some tools Automake needs.
2775 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2778 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2781 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2784 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2787 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2789 # For better backward compatibility. To be removed once Automake 1.9.x
2790 # dies out for good. For more background, see:
2791 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2792 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2793 mkdir_p='$(MKDIR_P)'
2795 # We need awk for the "check" target. The system "awk" is bad on
2797 # Always define AMTAR for backward compatibility. Yes, it's still used
2798 # in the wild :-( We should find a proper way to deprecate it ...
2802 # We'll loop over all known methods to create a tar archive until one works.
2803 _am_tools='gnutar pax cpio none'
2805 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2812 # POSIX will say in a future version that running "rm -f" with no argument
2813 # is OK; and we want to be able to make that assumption in our Makefile
2814 # recipes. So use an aggressive probe to check that the usage we want is
2815 # actually supported "in the wild" to an acceptable degree.
2816 # See automake bug#10828.
2817 # To make any issue more visible, cause the running configure to be aborted
2818 # by default if the 'rm' program in use doesn't match our expectations; the
2819 # user can still override this though.
2820 if rm -f && rm -fr && rm -rf; then : OK; else
2824 Your 'rm' program seems unable to run without file operands specified
2825 on the command line, even when the '-f' option is present. This is contrary
2826 to the behaviour of most rm programs out there, and not conforming with
2827 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2829 Please tell bug-automake@gnu.org about your system, including the value
2830 of your $PATH and any error possibly output before this message. This
2831 can help us improve future automake versions.
2834 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2835 echo 'Configuration will proceed anyway, since you have set the' >&2
2836 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2840 Aborting the configuration process, to ensure you take notice of the issue.
2842 You can download and install GNU coreutils to get an 'rm' implementation
2843 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2845 If you want to complete the configuration process using your problematic
2846 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2847 to "yes", and re-run configure.
2850 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2853 ac_config_headers="$ac_config_headers config.h"
2856 # C compiler and features
2858 ac_cpp='$CPP $CPPFLAGS'
2859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2864 ac_cpp='$CPP $CPPFLAGS'
2865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2868 if test -n "$ac_tool_prefix"; then
2869 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2870 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872 $as_echo_n "checking for $ac_word... " >&6; }
2873 if ${ac_cv_prog_CC+:} false; then :
2874 $as_echo_n "(cached) " >&6
2876 if test -n "$CC"; then
2877 ac_cv_prog_CC="$CC" # Let the user override the test.
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 if test -n "$CC"; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899 $as_echo "$CC" >&6; }
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2907 if test -z "$ac_cv_prog_CC"; then
2909 # Extract the first word of "gcc", so it can be a program name with args.
2910 set dummy 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_ac_ct_CC+:} false; then :
2914 $as_echo_n "(cached) " >&6
2916 if test -n "$ac_ct_CC"; then
2917 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="gcc"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2937 if test -n "$ac_ct_CC"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2939 $as_echo "$ac_ct_CC" >&6; }
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2945 if test "x$ac_ct_CC" = x; then
2948 case $cross_compiling:$ac_tool_warned in
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2952 ac_tool_warned=yes ;;
2960 if test -z "$CC"; then
2961 if test -n "$ac_tool_prefix"; then
2962 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2963 set dummy ${ac_tool_prefix}cc; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if ${ac_cv_prog_CC+:} false; then :
2967 $as_echo_n "(cached) " >&6
2969 if test -n "$CC"; then
2970 ac_cv_prog_CC="$CC" # Let the user override the test.
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979 ac_cv_prog_CC="${ac_tool_prefix}cc"
2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 if test -n "$CC"; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2992 $as_echo "$CC" >&6; }
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
3001 if test -z "$CC"; then
3002 # Extract the first word of "cc", so it can be a program name with args.
3003 set dummy 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.
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3020 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3021 ac_prog_rejected=yes
3025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 if test $ac_prog_rejected = yes; then
3033 # We found a bogon in the path, so make sure we never use it.
3034 set dummy $ac_cv_prog_CC
3036 if test $# != 0; then
3037 # We chose a different compiler from the bogus one.
3038 # However, it has the same basename, so the bogon will be chosen
3039 # first if we set CC to just the basename; use the full file name.
3041 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3047 if test -n "$CC"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049 $as_echo "$CC" >&6; }
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3057 if test -z "$CC"; then
3058 if test -n "$ac_tool_prefix"; then
3059 for ac_prog in cl.exe
3061 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3062 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_CC+:} false; then :
3066 $as_echo_n "(cached) " >&6
3068 if test -n "$CC"; then
3069 ac_cv_prog_CC="$CC" # Let the user override the test.
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 if test -n "$CC"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091 $as_echo "$CC" >&6; }
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3098 test -n "$CC" && break
3101 if test -z "$CC"; then
3103 for ac_prog in cl.exe
3105 # Extract the first word of "$ac_prog", so it can be a program name with args.
3106 set dummy $ac_prog; ac_word=$2
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 $as_echo_n "checking for $ac_word... " >&6; }
3109 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3110 $as_echo_n "(cached) " >&6
3112 if test -n "$ac_ct_CC"; then
3113 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122 ac_cv_prog_ac_ct_CC="$ac_prog"
3123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3132 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3133 if test -n "$ac_ct_CC"; then
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3135 $as_echo "$ac_ct_CC" >&6; }
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 $as_echo "no" >&6; }
3142 test -n "$ac_ct_CC" && break
3145 if test "x$ac_ct_CC" = x; then
3148 case $cross_compiling:$ac_tool_warned in
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3152 ac_tool_warned=yes ;;
3161 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3163 as_fn_error $? "no acceptable C compiler found in \$PATH
3164 See \`config.log' for more details" "$LINENO" 5; }
3166 # Provide some information about the compiler.
3167 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3170 for ac_option in --version -v -V -qversion; do
3171 { { ac_try="$ac_compiler $ac_option >&5"
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177 $as_echo "$ac_try_echo"; } >&5
3178 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3180 if test -s conftest.err; then
3182 ... rest of stderr output deleted ...
3183 10q' conftest.err >conftest.er1
3184 cat conftest.er1 >&5
3186 rm -f conftest.er1 conftest.err
3187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188 test $ac_status = 0; }
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3202 ac_clean_files_save=$ac_clean_files
3203 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3204 # Try to create an executable without -o first, disregard a.out.
3205 # It will help us diagnose broken compilers, and finding out an intuition
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3208 $as_echo_n "checking whether the C compiler works... " >&6; }
3209 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3211 # The possible output files:
3212 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3215 for ac_file in $ac_files
3218 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3219 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3224 if { { ac_try="$ac_link_default"
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230 $as_echo "$ac_try_echo"; } >&5
3231 (eval "$ac_link_default") 2>&5
3233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234 test $ac_status = 0; }; then :
3235 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3236 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3237 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3238 # so that the user can short-circuit this test for compilers unknown to
3240 for ac_file in $ac_files ''
3242 test -f "$ac_file" || continue
3244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3247 # We found the default executable, but exeext='' is most
3251 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3253 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3255 # We set ac_cv_exeext here because the later test for it is not
3256 # safe: cross compilers may not add the suffix if given an `-o'
3257 # argument, so we may need to know it at that point already.
3258 # Even if this section looks crufty: it has the advantage of
3265 test "$ac_cv_exeext" = no && ac_cv_exeext=
3270 if test -z "$ac_file"; then :
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3273 $as_echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278 as_fn_error 77 "C compiler cannot create executables
3279 See \`config.log' for more details" "$LINENO" 5; }
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3282 $as_echo "yes" >&6; }
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3285 $as_echo_n "checking for C compiler default output file name... " >&6; }
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3287 $as_echo "$ac_file" >&6; }
3288 ac_exeext=$ac_cv_exeext
3290 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3291 ac_clean_files=$ac_clean_files_save
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3293 $as_echo_n "checking for suffix of executables... " >&6; }
3294 if { { ac_try="$ac_link"
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300 $as_echo "$ac_try_echo"; } >&5
3301 (eval "$ac_link") 2>&5
3303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304 test $ac_status = 0; }; then :
3305 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3306 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3307 # work properly (i.e., refer to `conftest.exe'), while it won't with
3309 for ac_file in conftest.exe conftest conftest.*; do
3310 test -f "$ac_file" || continue
3312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3322 See \`config.log' for more details" "$LINENO" 5; }
3324 rm -f conftest conftest$ac_cv_exeext
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3326 $as_echo "$ac_cv_exeext" >&6; }
3328 rm -f conftest.$ac_ext
3329 EXEEXT=$ac_cv_exeext
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h. */
3337 FILE *f = fopen ("conftest.out", "w");
3338 return ferror (f) || fclose (f) != 0;
3344 ac_clean_files="$ac_clean_files conftest.out"
3345 # Check that the compiler produces executables we can run. If not, either
3346 # the compiler is broken, or we cross compile.
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3348 $as_echo_n "checking whether we are cross compiling... " >&6; }
3349 if test "$cross_compiling" != yes; then
3350 { { ac_try="$ac_link"
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356 $as_echo "$ac_try_echo"; } >&5
3357 (eval "$ac_link") 2>&5
3359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360 test $ac_status = 0; }
3361 if { ac_try='./conftest$ac_cv_exeext'
3362 { { case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367 $as_echo "$ac_try_echo"; } >&5
3368 (eval "$ac_try") 2>&5
3370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371 test $ac_status = 0; }; }; then
3374 if test "$cross_compiling" = maybe; then
3377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379 as_fn_error $? "cannot run C compiled programs.
3380 If you meant to cross compile, use \`--host'.
3381 See \`config.log' for more details" "$LINENO" 5; }
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3386 $as_echo "$cross_compiling" >&6; }
3388 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3389 ac_clean_files=$ac_clean_files_save
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3391 $as_echo_n "checking for suffix of object files... " >&6; }
3392 if ${ac_cv_objext+:} false; then :
3393 $as_echo_n "(cached) " >&6
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h. */
3406 rm -f conftest.o conftest.obj
3407 if { { ac_try="$ac_compile"
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413 $as_echo "$ac_try_echo"; } >&5
3414 (eval "$ac_compile") 2>&5
3416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417 test $ac_status = 0; }; then :
3418 for ac_file in conftest.o conftest.obj conftest.*; do
3419 test -f "$ac_file" || continue;
3421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3422 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3427 $as_echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 as_fn_error $? "cannot compute suffix of object files: cannot compile
3433 See \`config.log' for more details" "$LINENO" 5; }
3435 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3438 $as_echo "$ac_cv_objext" >&6; }
3439 OBJEXT=$ac_cv_objext
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3442 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3443 if ${ac_cv_c_compiler_gnu+:} false; then :
3444 $as_echo_n "(cached) " >&6
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3460 if ac_fn_c_try_compile "$LINENO"; then :
3465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3466 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3470 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3471 if test $ac_compiler_gnu = yes; then
3476 ac_test_CFLAGS=${CFLAGS+set}
3477 ac_save_CFLAGS=$CFLAGS
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3479 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3480 if ${ac_cv_prog_cc_g+:} false; then :
3481 $as_echo_n "(cached) " >&6
3483 ac_save_c_werror_flag=$ac_c_werror_flag
3484 ac_c_werror_flag=yes
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3498 if ac_fn_c_try_compile "$LINENO"; then :
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3513 if ac_fn_c_try_compile "$LINENO"; then :
3516 ac_c_werror_flag=$ac_save_c_werror_flag
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3529 if ac_fn_c_try_compile "$LINENO"; then :
3532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537 ac_c_werror_flag=$ac_save_c_werror_flag
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3540 $as_echo "$ac_cv_prog_cc_g" >&6; }
3541 if test "$ac_test_CFLAGS" = set; then
3542 CFLAGS=$ac_save_CFLAGS
3543 elif test $ac_cv_prog_cc_g = yes; then
3544 if test "$GCC" = yes; then
3550 if test "$GCC" = yes; then
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3557 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3558 if ${ac_cv_prog_cc_c89+:} false; then :
3559 $as_echo_n "(cached) " >&6
3561 ac_cv_prog_cc_c89=no
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3568 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3569 struct buf { int x; };
3570 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3571 static char *e (p, i)
3577 static char *f (char * (*g) (char **, int), char **p, ...)
3582 s = g (p, va_arg (v,int));
3587 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3588 function prototypes and stuff, but not '\xHH' hex character constants.
3589 These don't provoke an error unfortunately, instead are silently treated
3590 as 'x'. The following induces an error, until -std is added to get
3591 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3592 array size at least. It's necessary to write '\x00'==0 to get something
3593 that's true only with -std. */
3594 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3596 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3597 inside strings and character constants. */
3599 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3601 int test (int i, double x);
3602 struct s1 {int (*f) (int a);};
3603 struct s2 {int (*f) (double a);};
3604 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3610 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3615 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3616 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3618 CC="$ac_save_CC $ac_arg"
3619 if ac_fn_c_try_compile "$LINENO"; then :
3620 ac_cv_prog_cc_c89=$ac_arg
3622 rm -f core conftest.err conftest.$ac_objext
3623 test "x$ac_cv_prog_cc_c89" != "xno" && break
3625 rm -f conftest.$ac_ext
3630 case "x$ac_cv_prog_cc_c89" in
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3633 $as_echo "none needed" >&6; } ;;
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3636 $as_echo "unsupported" >&6; } ;;
3638 CC="$CC $ac_cv_prog_cc_c89"
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3640 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3642 if test "x$ac_cv_prog_cc_c89" != xno; then :
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3653 ac_cpp='$CPP $CPPFLAGS'
3654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3658 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3659 if ${am_cv_prog_cc_c_o+:} false; then :
3660 $as_echo_n "(cached) " >&6
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663 /* end confdefs.h. */
3673 # Make sure it works both with $CC and with simple cc.
3674 # Following AC_PROG_CC_C_O, we do the test twice because some
3675 # compilers refuse to overwrite an existing .o file with -o,
3676 # though they will create one.
3677 am_cv_prog_cc_c_o=yes
3679 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3680 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); } \
3684 && test -f conftest2.$ac_objext; then
3687 am_cv_prog_cc_c_o=no
3691 rm -f core conftest*
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3695 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3696 if test "$am_cv_prog_cc_c_o" != yes; then
3697 # Losing compiler, so override with the script.
3698 # FIXME: It is wrong to rewrite CC.
3699 # But if we don't then we get into trouble of one sort or another.
3700 # A longer-term fix would be to have automake use am__CC in this case,
3701 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3702 CC="$am_aux_dir/compile $CC"
3705 ac_cpp='$CPP $CPPFLAGS'
3706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3710 DEPDIR="${am__leading_dot}deps"
3712 ac_config_commands="$ac_config_commands depfiles"
3715 am_make=${MAKE-make}
3716 cat > confinc << 'END'
3718 @echo this is the am__doit target
3721 # If we don't find an include directive, just comment out the code.
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3723 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3727 # First try GNU make style include.
3728 echo "include confinc" > confmf
3729 # Ignore all kinds of additional output from 'make'.
3730 case `$am_make -s -f confmf 2> /dev/null` in #(
3731 *the\ am__doit\ target*)
3737 # Now try BSD make style include.
3738 if test "$am__include" = "#"; then
3739 echo '.include "confinc"' > confmf
3740 case `$am_make -s -f confmf 2> /dev/null` in #(
3741 *the\ am__doit\ target*)
3742 am__include=.include
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3751 $as_echo "$_am_result" >&6; }
3752 rm -f confinc confmf
3754 # Check whether --enable-dependency-tracking was given.
3755 if test "${enable_dependency_tracking+set}" = set; then :
3756 enableval=$enable_dependency_tracking;
3759 if test "x$enable_dependency_tracking" != xno; then
3760 am_depcomp="$ac_aux_dir/depcomp"
3764 if test "x$enable_dependency_tracking" != xno; then
3774 depcc="$CC" am_compiler_list=
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3777 $as_echo_n "checking dependency style of $depcc... " >&6; }
3778 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3779 $as_echo_n "(cached) " >&6
3781 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3782 # We make a subdir and do the tests there. Otherwise we can end up
3783 # making bogus files that we don't know about and never remove. For
3784 # instance it was reported that on HP-UX the gcc test will end up
3785 # making a dummy file named 'D' -- because '-MD' means "put the output
3789 # Copy depcomp to subdir because otherwise we won't find it if we're
3790 # using a relative directory.
3791 cp "$am_depcomp" conftest.dir
3793 # We will build objects and dependencies in a subdirectory because
3794 # it helps to detect inapplicable dependency modes. For instance
3795 # both Tru64's cc and ICC support -MD to output dependencies as a
3796 # side effect of compilation, but ICC will put the dependencies in
3797 # the current directory while Tru64 will put them in the object
3801 am_cv_CC_dependencies_compiler_type=none
3802 if test "$am_compiler_list" = ""; then
3803 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3806 case " $depcc " in #(
3807 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3810 for depmode in $am_compiler_list; do
3811 # Setup a source with many dependencies, because some compilers
3812 # like to wrap large dependency lists on column 80 (with \), and
3813 # we should not choose a depcomp mode which is confused by this.
3815 # We need to recreate these files for each test, as the compiler may
3816 # overwrite some of them when testing with obscure command lines.
3817 # This happens at least with the AIX C compiler.
3819 for i in 1 2 3 4 5 6; do
3820 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3821 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3822 # Solaris 10 /bin/sh.
3823 echo '/* dummy */' > sub/conftst$i.h
3825 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3827 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3828 # mode. It turns out that the SunPro C++ compiler does not properly
3829 # handle '-M -o', and we need to detect this. Also, some Intel
3830 # versions had trouble with output in subdirs.
3831 am__obj=sub/conftest.${OBJEXT-o}
3832 am__minus_obj="-o $am__obj"
3835 # This depmode causes a compiler race in universal mode.
3836 test "$am__universal" = false || continue
3839 # After this tag, mechanisms are not by side-effect, so they'll
3840 # only be used when explicitly requested.
3841 if test "x$enable_dependency_tracking" = xyes; then
3847 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3848 # This compiler won't grok '-c -o', but also, the minuso test has
3849 # not run yet. These depmodes are late enough in the game, and
3850 # so weak that their functioning should not be impacted.
3851 am__obj=conftest.${OBJEXT-o}
3856 if depmode=$depmode \
3857 source=sub/conftest.c object=$am__obj \
3858 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3859 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3860 >/dev/null 2>conftest.err &&
3861 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3862 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3863 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3864 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3865 # icc doesn't choke on unknown options, it will just issue warnings
3866 # or remarks (even with -Werror). So we grep stderr for any message
3867 # that says an option was ignored or not supported.
3868 # When given -MP, icc 7.0 and 7.1 complain thusly:
3869 # icc: Command line warning: ignoring option '-M'; no argument required
3870 # The diagnosis changed in icc 8.0:
3871 # icc: Command line remark: option '-MP' not supported
3872 if (grep 'ignoring option' conftest.err ||
3873 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3874 am_cv_CC_dependencies_compiler_type=$depmode
3883 am_cv_CC_dependencies_compiler_type=none
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3888 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3889 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3892 test "x$enable_dependency_tracking" != xno \
3893 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3895 am__fastdepCC_FALSE='#'
3897 am__fastdepCC_TRUE='#'
3898 am__fastdepCC_FALSE=
3902 case $ac_cv_prog_cc_stdc in #(
3904 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3907 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3908 if ${ac_cv_prog_cc_c99+:} false; then :
3909 $as_echo_n "(cached) " >&6
3911 ac_cv_prog_cc_c99=no
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3916 #include <stdbool.h>
3921 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3922 #define debug(...) fprintf (stderr, __VA_ARGS__)
3923 #define showlist(...) puts (#__VA_ARGS__)
3924 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3926 test_varargs_macros (void)
3931 debug ("X = %d\n", x);
3932 showlist (The first, second, and third items.);
3933 report (x>y, "x is %d but y is %d", x, y);
3936 // Check long long types.
3937 #define BIG64 18446744073709551615ull
3938 #define BIG32 4294967295ul
3939 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3941 your preprocessor is broken;
3945 your preprocessor is broken;
3947 static long long int bignum = -9223372036854775807LL;
3948 static unsigned long long int ubignum = BIG64;
3950 struct incomplete_array
3958 const wchar_t *name;
3962 typedef const char *ccp;
3965 test_restrict (ccp restrict text)
3967 // See if C++-style comments work.
3968 // Iterate through items via the restricted pointer.
3969 // Also check for declarations in for loops.
3970 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3975 // Check varargs and va_copy.
3977 test_varargs (const char *format, ...)
3980 va_start (args, format);
3982 va_copy (args_copy, args);
3993 str = va_arg (args_copy, const char *);
3996 number = va_arg (args_copy, int);
3999 fnumber = va_arg (args_copy, double);
4014 _Bool success = false;
4017 if (test_restrict ("String literal") == 0)
4019 char *restrict newvar = "Another string";
4022 test_varargs ("s, d' f .", "string", 65, 34.234);
4023 test_varargs_macros ();
4025 // Check flexible array members.
4026 struct incomplete_array *ia =
4027 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4029 for (int i = 0; i < ia->datasize; ++i)
4030 ia->data[i] = i * 1.234;
4032 // Check named initializers.
4033 struct named_init ni = {
4035 .name = L"Test wide string",
4036 .average = 543.34343,
4041 int dynamic_array[ni.number];
4042 dynamic_array[ni.number - 1] = 543;
4044 // work around unused variable warnings
4045 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4046 || dynamic_array[ni.number - 1] != 543);
4052 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4054 CC="$ac_save_CC $ac_arg"
4055 if ac_fn_c_try_compile "$LINENO"; then :
4056 ac_cv_prog_cc_c99=$ac_arg
4058 rm -f core conftest.err conftest.$ac_objext
4059 test "x$ac_cv_prog_cc_c99" != "xno" && break
4061 rm -f conftest.$ac_ext
4066 case "x$ac_cv_prog_cc_c99" in
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4069 $as_echo "none needed" >&6; } ;;
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4072 $as_echo "unsupported" >&6; } ;;
4074 CC="$CC $ac_cv_prog_cc_c99"
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4076 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4078 if test "x$ac_cv_prog_cc_c99" != xno; then :
4079 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4082 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4083 if ${ac_cv_prog_cc_c89+:} false; then :
4084 $as_echo_n "(cached) " >&6
4086 ac_cv_prog_cc_c89=no
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4093 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4094 struct buf { int x; };
4095 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4096 static char *e (p, i)
4102 static char *f (char * (*g) (char **, int), char **p, ...)
4107 s = g (p, va_arg (v,int));
4112 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4113 function prototypes and stuff, but not '\xHH' hex character constants.
4114 These don't provoke an error unfortunately, instead are silently treated
4115 as 'x'. The following induces an error, until -std is added to get
4116 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4117 array size at least. It's necessary to write '\x00'==0 to get something
4118 that's true only with -std. */
4119 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4121 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4122 inside strings and character constants. */
4124 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4126 int test (int i, double x);
4127 struct s1 {int (*f) (int a);};
4128 struct s2 {int (*f) (double a);};
4129 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4135 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4140 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4141 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4143 CC="$ac_save_CC $ac_arg"
4144 if ac_fn_c_try_compile "$LINENO"; then :
4145 ac_cv_prog_cc_c89=$ac_arg
4147 rm -f core conftest.err conftest.$ac_objext
4148 test "x$ac_cv_prog_cc_c89" != "xno" && break
4150 rm -f conftest.$ac_ext
4155 case "x$ac_cv_prog_cc_c89" in
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4158 $as_echo "none needed" >&6; } ;;
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4161 $as_echo "unsupported" >&6; } ;;
4163 CC="$CC $ac_cv_prog_cc_c89"
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4165 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4167 if test "x$ac_cv_prog_cc_c89" != xno; then :
4168 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4170 ac_cv_prog_cc_stdc=no
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4177 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4178 if ${ac_cv_prog_cc_stdc+:} false; then :
4179 $as_echo_n "(cached) " >&6
4182 case $ac_cv_prog_cc_stdc in #(
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4185 $as_echo "unsupported" >&6; } ;; #(
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4188 $as_echo "none needed" >&6; } ;; #(
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4191 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4195 ac_cpp='$CPP $CPPFLAGS'
4196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4200 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4201 # On Suns, sometimes $CPP names a directory.
4202 if test -n "$CPP" && test -d "$CPP"; then
4205 if test -z "$CPP"; then
4206 if ${ac_cv_prog_CPP+:} false; then :
4207 $as_echo_n "(cached) " >&6
4209 # Double quotes because CPP needs to be expanded
4210 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4213 for ac_c_preproc_warn_flag in '' yes
4215 # Use a header file that comes with gcc, so configuring glibc
4216 # with a fresh cross-compiler works.
4217 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4218 # <limits.h> exists even on freestanding compilers.
4219 # On the NeXT, cc -E runs the code through the compiler's parser,
4220 # not just through cpp. "Syntax error" is here to catch this case.
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h. */
4224 # include <limits.h>
4226 # include <assert.h>
4230 if ac_fn_c_try_cpp "$LINENO"; then :
4233 # Broken: fails on valid input.
4236 rm -f conftest.err conftest.i conftest.$ac_ext
4238 # OK, works on sane cases. Now check whether nonexistent headers
4239 # can be detected and how.
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h. */
4242 #include <ac_nonexistent.h>
4244 if ac_fn_c_try_cpp "$LINENO"; then :
4245 # Broken: success on invalid input.
4248 # Passes both tests.
4252 rm -f conftest.err conftest.i conftest.$ac_ext
4255 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4256 rm -f conftest.i conftest.err conftest.$ac_ext
4257 if $ac_preproc_ok; then :
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4270 $as_echo "$CPP" >&6; }
4272 for ac_c_preproc_warn_flag in '' yes
4274 # Use a header file that comes with gcc, so configuring glibc
4275 # with a fresh cross-compiler works.
4276 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4277 # <limits.h> exists even on freestanding compilers.
4278 # On the NeXT, cc -E runs the code through the compiler's parser,
4279 # not just through cpp. "Syntax error" is here to catch this case.
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4283 # include <limits.h>
4285 # include <assert.h>
4289 if ac_fn_c_try_cpp "$LINENO"; then :
4292 # Broken: fails on valid input.
4295 rm -f conftest.err conftest.i conftest.$ac_ext
4297 # OK, works on sane cases. Now check whether nonexistent headers
4298 # can be detected and how.
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4301 #include <ac_nonexistent.h>
4303 if ac_fn_c_try_cpp "$LINENO"; then :
4304 # Broken: success on invalid input.
4307 # Passes both tests.
4311 rm -f conftest.err conftest.i conftest.$ac_ext
4314 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4315 rm -f conftest.i conftest.err conftest.$ac_ext
4316 if $ac_preproc_ok; then :
4319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4321 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4322 See \`config.log' for more details" "$LINENO" 5; }
4326 ac_cpp='$CPP $CPPFLAGS'
4327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4334 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4335 if ${ac_cv_path_GREP+:} false; then :
4336 $as_echo_n "(cached) " >&6
4338 if test -z "$GREP"; then
4339 ac_path_GREP_found=false
4340 # Loop through the user's path and test for each of PROGNAME-LIST
4341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4345 test -z "$as_dir" && as_dir=.
4346 for ac_prog in grep ggrep; do
4347 for ac_exec_ext in '' $ac_executable_extensions; do
4348 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4349 as_fn_executable_p "$ac_path_GREP" || continue
4350 # Check for GNU ac_path_GREP and select it if it is found.
4351 # Check for GNU $ac_path_GREP
4352 case `"$ac_path_GREP" --version 2>&1` in
4354 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4357 $as_echo_n 0123456789 >"conftest.in"
4360 cat "conftest.in" "conftest.in" >"conftest.tmp"
4361 mv "conftest.tmp" "conftest.in"
4362 cp "conftest.in" "conftest.nl"
4363 $as_echo 'GREP' >> "conftest.nl"
4364 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4365 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4366 as_fn_arith $ac_count + 1 && ac_count=$as_val
4367 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4368 # Best one so far, save it but keep looking for a better one
4369 ac_cv_path_GREP="$ac_path_GREP"
4370 ac_path_GREP_max=$ac_count
4372 # 10*(2^10) chars as input seems more than enough
4373 test $ac_count -gt 10 && break
4375 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4378 $ac_path_GREP_found && break 3
4383 if test -z "$ac_cv_path_GREP"; then
4384 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4387 ac_cv_path_GREP=$GREP
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4392 $as_echo "$ac_cv_path_GREP" >&6; }
4393 GREP="$ac_cv_path_GREP"
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4397 $as_echo_n "checking for egrep... " >&6; }
4398 if ${ac_cv_path_EGREP+:} false; then :
4399 $as_echo_n "(cached) " >&6
4401 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4402 then ac_cv_path_EGREP="$GREP -E"
4404 if test -z "$EGREP"; then
4405 ac_path_EGREP_found=false
4406 # Loop through the user's path and test for each of PROGNAME-LIST
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4411 test -z "$as_dir" && as_dir=.
4412 for ac_prog in egrep; do
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4415 as_fn_executable_p "$ac_path_EGREP" || continue
4416 # Check for GNU ac_path_EGREP and select it if it is found.
4417 # Check for GNU $ac_path_EGREP
4418 case `"$ac_path_EGREP" --version 2>&1` in
4420 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4423 $as_echo_n 0123456789 >"conftest.in"
4426 cat "conftest.in" "conftest.in" >"conftest.tmp"
4427 mv "conftest.tmp" "conftest.in"
4428 cp "conftest.in" "conftest.nl"
4429 $as_echo 'EGREP' >> "conftest.nl"
4430 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4431 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4432 as_fn_arith $ac_count + 1 && ac_count=$as_val
4433 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4434 # Best one so far, save it but keep looking for a better one
4435 ac_cv_path_EGREP="$ac_path_EGREP"
4436 ac_path_EGREP_max=$ac_count
4438 # 10*(2^10) chars as input seems more than enough
4439 test $ac_count -gt 10 && break
4441 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4444 $ac_path_EGREP_found && break 3
4449 if test -z "$ac_cv_path_EGREP"; then
4450 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4453 ac_cv_path_EGREP=$EGREP
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4459 $as_echo "$ac_cv_path_EGREP" >&6; }
4460 EGREP="$ac_cv_path_EGREP"
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4464 $as_echo_n "checking for ANSI C header files... " >&6; }
4465 if ${ac_cv_header_stdc+:} false; then :
4466 $as_echo_n "(cached) " >&6
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4483 if ac_fn_c_try_compile "$LINENO"; then :
4484 ac_cv_header_stdc=yes
4486 ac_cv_header_stdc=no
4488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490 if test $ac_cv_header_stdc = yes; then
4491 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4498 $EGREP "memchr" >/dev/null 2>&1; then :
4501 ac_cv_header_stdc=no
4507 if test $ac_cv_header_stdc = yes; then
4508 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4515 $EGREP "free" >/dev/null 2>&1; then :
4518 ac_cv_header_stdc=no
4524 if test $ac_cv_header_stdc = yes; then
4525 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4526 if test "$cross_compiling" = yes; then :
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4533 #if ((' ' & 0x0FF) == 0x020)
4534 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4535 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4537 # define ISLOWER(c) \
4538 (('a' <= (c) && (c) <= 'i') \
4539 || ('j' <= (c) && (c) <= 'r') \
4540 || ('s' <= (c) && (c) <= 'z'))
4541 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4544 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4549 for (i = 0; i < 256; i++)
4550 if (XOR (islower (i), ISLOWER (i))
4551 || toupper (i) != TOUPPER (i))
4556 if ac_fn_c_try_run "$LINENO"; then :
4559 ac_cv_header_stdc=no
4561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4562 conftest.$ac_objext conftest.beam conftest.$ac_ext
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4568 $as_echo "$ac_cv_header_stdc" >&6; }
4569 if test $ac_cv_header_stdc = yes; then
4571 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4575 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4576 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4577 inttypes.h stdint.h unistd.h
4579 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4580 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4582 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4583 cat >>confdefs.h <<_ACEOF
4584 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4593 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4594 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4601 if test "$MINIX" = yes; then
4603 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4606 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4609 $as_echo "#define _MINIX 1" >>confdefs.h
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4615 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4616 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4617 $as_echo_n "(cached) " >&6
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4622 # define __EXTENSIONS__ 1
4623 $ac_includes_default
4632 if ac_fn_c_try_compile "$LINENO"; then :
4633 ac_cv_safe_to_define___extensions__=yes
4635 ac_cv_safe_to_define___extensions__=no
4637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4640 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4641 test $ac_cv_safe_to_define___extensions__ = yes &&
4642 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4644 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4646 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4648 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4650 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4655 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4656 if ${ac_cv_c_const+:} false; then :
4657 $as_echo_n "(cached) " >&6
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h. */
4667 /* Ultrix mips cc rejects this sort of thing. */
4668 typedef int charset[2];
4669 const charset cs = { 0, 0 };
4670 /* SunOS 4.1.1 cc rejects this. */
4671 char const *const *pcpcc;
4673 /* NEC SVR4.0.2 mips cc rejects this. */
4674 struct point {int x, y;};
4675 static struct point const zero = {0,0};
4676 /* AIX XL C 1.02.0.0 rejects this.
4677 It does not let you subtract one const X* pointer from another in
4678 an arm of an if-expression whose if-part is not a constant
4680 const char *g = "string";
4681 pcpcc = &g + (g ? g-g : 0);
4682 /* HPUX 7.0 cc rejects these. */
4684 ppc = (char**) pcpcc;
4685 pcpcc = (char const *const *) ppc;
4686 { /* SCO 3.2v4 cc rejects this sort of thing. */
4689 char const *s = 0 ? (char *) 0 : (char const *) 0;
4694 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4696 const int *foo = &x[0];
4699 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4700 typedef const int *iptr;
4704 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4705 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4706 struct s { int j; const int *ap[3]; } bx;
4707 struct s *b = &bx; b->j = 5;
4709 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4713 return !cs[0] && !zero.x;
4720 if ac_fn_c_try_compile "$LINENO"; then :
4725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4728 $as_echo "$ac_cv_c_const" >&6; }
4729 if test $ac_cv_c_const = no; then
4731 $as_echo "#define const /**/" >>confdefs.h
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
4736 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
4737 if ${ac_cv_c_restrict+:} false; then :
4738 $as_echo_n "(cached) " >&6
4741 # The order here caters to the fact that C++ does not require restrict.
4742 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745 typedef int * int_ptr;
4746 int foo (int_ptr $ac_kw ip) {
4760 if ac_fn_c_try_compile "$LINENO"; then :
4761 ac_cv_c_restrict=$ac_kw
4763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 test "$ac_cv_c_restrict" != no && break
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
4769 $as_echo "$ac_cv_c_restrict" >&6; }
4771 case $ac_cv_c_restrict in
4773 no) $as_echo "#define restrict /**/" >>confdefs.h
4775 *) cat >>confdefs.h <<_ACEOF
4776 #define restrict $ac_cv_c_restrict
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
4782 $as_echo_n "checking for working volatile... " >&6; }
4783 if ${ac_cv_c_volatile+:} false; then :
4784 $as_echo_n "(cached) " >&6
4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h. */
4794 int * volatile y = (int *) 0;
4800 if ac_fn_c_try_compile "$LINENO"; then :
4801 ac_cv_c_volatile=yes
4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
4808 $as_echo "$ac_cv_c_volatile" >&6; }
4809 if test $ac_cv_c_volatile = no; then
4811 $as_echo "#define volatile /**/" >>confdefs.h
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4821 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4826 macro_version='2.4.2'
4827 macro_revision='1.3337'
4841 ltmain="$ac_aux_dir/ltmain.sh"
4843 # Make sure we can run config.sub.
4844 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4845 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4848 $as_echo_n "checking build system type... " >&6; }
4849 if ${ac_cv_build+:} false; then :
4850 $as_echo_n "(cached) " >&6
4852 ac_build_alias=$build_alias
4853 test "x$ac_build_alias" = x &&
4854 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4855 test "x$ac_build_alias" = x &&
4856 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4857 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4858 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4862 $as_echo "$ac_cv_build" >&6; }
4863 case $ac_cv_build in
4865 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4868 ac_save_IFS=$IFS; IFS='-'
4874 # Remember, the first character of IFS is used to create $*,
4875 # except with old shells:
4878 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4882 $as_echo_n "checking host system type... " >&6; }
4883 if ${ac_cv_host+:} false; then :
4884 $as_echo_n "(cached) " >&6
4886 if test "x$host_alias" = x; then
4887 ac_cv_host=$ac_cv_build
4889 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4890 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4895 $as_echo "$ac_cv_host" >&6; }
4898 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4901 ac_save_IFS=$IFS; IFS='-'
4907 # Remember, the first character of IFS is used to create $*,
4908 # except with old shells:
4911 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4914 # Backslashify metacharacters that are still active within
4915 # double-quoted strings.
4916 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4918 # Same as above, but do not quote variable references.
4919 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4921 # Sed substitution to delay expansion of an escaped shell variable in a
4922 # double_quote_subst'ed string.
4923 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4925 # Sed substitution to delay expansion of an escaped single quote.
4926 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4928 # Sed substitution to avoid accidental globbing in evaled expressions
4929 no_glob_subst='s/\*/\\\*/g'
4931 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4932 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4933 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4936 $as_echo_n "checking how to print strings... " >&6; }
4937 # Test print first, because it will be a builtin if present.
4938 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4939 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4941 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4944 # Use this function as a fallback that always works.
4945 func_fallback_echo ()
4947 eval 'cat <<_LTECHO_EOF
4951 ECHO='func_fallback_echo'
4954 # func_echo_all arg...
4955 # Invoke $ECHO with all args, space-separated.
4962 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4963 $as_echo "printf" >&6; } ;;
4964 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4965 $as_echo "print -r" >&6; } ;;
4966 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4967 $as_echo "cat" >&6; } ;;
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4984 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4985 if ${ac_cv_path_SED+:} false; then :
4986 $as_echo_n "(cached) " >&6
4988 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4989 for ac_i in 1 2 3 4 5 6 7; do
4990 ac_script="$ac_script$as_nl$ac_script"
4992 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4993 { ac_script=; unset ac_script;}
4994 if test -z "$SED"; then
4995 ac_path_SED_found=false
4996 # Loop through the user's path and test for each of PROGNAME-LIST
4997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 test -z "$as_dir" && as_dir=.
5002 for ac_prog in sed gsed; do
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5005 as_fn_executable_p "$ac_path_SED" || continue
5006 # Check for GNU ac_path_SED and select it if it is found.
5007 # Check for GNU $ac_path_SED
5008 case `"$ac_path_SED" --version 2>&1` in
5010 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5013 $as_echo_n 0123456789 >"conftest.in"
5016 cat "conftest.in" "conftest.in" >"conftest.tmp"
5017 mv "conftest.tmp" "conftest.in"
5018 cp "conftest.in" "conftest.nl"
5019 $as_echo '' >> "conftest.nl"
5020 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5022 as_fn_arith $ac_count + 1 && ac_count=$as_val
5023 if test $ac_count -gt ${ac_path_SED_max-0}; then
5024 # Best one so far, save it but keep looking for a better one
5025 ac_cv_path_SED="$ac_path_SED"
5026 ac_path_SED_max=$ac_count
5028 # 10*(2^10) chars as input seems more than enough
5029 test $ac_count -gt 10 && break
5031 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5034 $ac_path_SED_found && break 3
5039 if test -z "$ac_cv_path_SED"; then
5040 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5048 $as_echo "$ac_cv_path_SED" >&6; }
5049 SED="$ac_cv_path_SED"
5052 test -z "$SED" && SED=sed
5053 Xsed="$SED -e 1s/^X//"
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5066 $as_echo_n "checking for fgrep... " >&6; }
5067 if ${ac_cv_path_FGREP+:} false; then :
5068 $as_echo_n "(cached) " >&6
5070 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5071 then ac_cv_path_FGREP="$GREP -F"
5073 if test -z "$FGREP"; then
5074 ac_path_FGREP_found=false
5075 # Loop through the user's path and test for each of PROGNAME-LIST
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5080 test -z "$as_dir" && as_dir=.
5081 for ac_prog in fgrep; do
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5084 as_fn_executable_p "$ac_path_FGREP" || continue
5085 # Check for GNU ac_path_FGREP and select it if it is found.
5086 # Check for GNU $ac_path_FGREP
5087 case `"$ac_path_FGREP" --version 2>&1` in
5089 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5092 $as_echo_n 0123456789 >"conftest.in"
5095 cat "conftest.in" "conftest.in" >"conftest.tmp"
5096 mv "conftest.tmp" "conftest.in"
5097 cp "conftest.in" "conftest.nl"
5098 $as_echo 'FGREP' >> "conftest.nl"
5099 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5100 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5101 as_fn_arith $ac_count + 1 && ac_count=$as_val
5102 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5103 # Best one so far, save it but keep looking for a better one
5104 ac_cv_path_FGREP="$ac_path_FGREP"
5105 ac_path_FGREP_max=$ac_count
5107 # 10*(2^10) chars as input seems more than enough
5108 test $ac_count -gt 10 && break
5110 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5113 $ac_path_FGREP_found && break 3
5118 if test -z "$ac_cv_path_FGREP"; then
5119 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5122 ac_cv_path_FGREP=$FGREP
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5128 $as_echo "$ac_cv_path_FGREP" >&6; }
5129 FGREP="$ac_cv_path_FGREP"
5132 test -z "$GREP" && GREP=grep
5152 # Check whether --with-gnu-ld was given.
5153 if test "${with_gnu_ld+set}" = set; then :
5154 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5160 if test "$GCC" = yes; then
5161 # Check if gcc -print-prog-name=ld gives a path.
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5163 $as_echo_n "checking for ld used by $CC... " >&6; }
5166 # gcc leaves a trailing carriage return which upsets mingw
5167 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5169 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5172 # Accept absolute paths.
5174 re_direlt='/[^/][^/]*/\.\./'
5175 # Canonicalize the pathname of ld
5176 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5177 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5178 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5180 test -z "$LD" && LD="$ac_prog"
5183 # If it fails, then pretend we aren't using GCC.
5187 # If it is relative, then search for the first ld in PATH.
5191 elif test "$with_gnu_ld" = yes; then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5193 $as_echo_n "checking for GNU ld... " >&6; }
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5196 $as_echo_n "checking for non-GNU ld... " >&6; }
5198 if ${lt_cv_path_LD+:} false; then :
5199 $as_echo_n "(cached) " >&6
5201 if test -z "$LD"; then
5202 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5203 for ac_dir in $PATH; do
5205 test -z "$ac_dir" && ac_dir=.
5206 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5207 lt_cv_path_LD="$ac_dir/$ac_prog"
5208 # Check to see if the program is GNU ld. I'd rather use --version,
5209 # but apparently some variants of GNU ld only accept -v.
5210 # Break only if it was the GNU/non-GNU ld that we prefer.
5211 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5212 *GNU* | *'with BFD'*)
5213 test "$with_gnu_ld" != no && break
5216 test "$with_gnu_ld" != yes && break
5223 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5228 if test -n "$LD"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5230 $as_echo "$LD" >&6; }
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5235 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5237 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5238 if ${lt_cv_prog_gnu_ld+:} false; then :
5239 $as_echo_n "(cached) " >&6
5241 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5242 case `$LD -v 2>&1 </dev/null` in
5243 *GNU* | *'with BFD'*)
5244 lt_cv_prog_gnu_ld=yes
5247 lt_cv_prog_gnu_ld=no
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5252 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5253 with_gnu_ld=$lt_cv_prog_gnu_ld
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5264 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5265 if ${lt_cv_path_NM+:} false; then :
5266 $as_echo_n "(cached) " >&6
5268 if test -n "$NM"; then
5269 # Let the user override the test.
5272 lt_nm_to_check="${ac_tool_prefix}nm"
5273 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5274 lt_nm_to_check="$lt_nm_to_check nm"
5276 for lt_tmp_nm in $lt_nm_to_check; do
5277 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5278 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5280 test -z "$ac_dir" && ac_dir=.
5281 tmp_nm="$ac_dir/$lt_tmp_nm"
5282 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5283 # Check to see if the nm accepts a BSD-compat flag.
5284 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5285 # nm: unknown option "B" ignored
5286 # Tru64's nm complains that /dev/null is an invalid object file
5287 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5288 */dev/null* | *'Invalid file or object type'*)
5289 lt_cv_path_NM="$tmp_nm -B"
5293 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5295 lt_cv_path_NM="$tmp_nm -p"
5299 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5300 continue # so that we can try to find one that supports BSD flags
5309 : ${lt_cv_path_NM=no}
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5313 $as_echo "$lt_cv_path_NM" >&6; }
5314 if test "$lt_cv_path_NM" != "no"; then
5317 # Didn't find any BSD compatible name lister, look for dumpbin.
5318 if test -n "$DUMPBIN"; then :
5319 # Let the user override the test.
5321 if test -n "$ac_tool_prefix"; then
5322 for ac_prog in dumpbin "link -dump"
5324 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5325 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5327 $as_echo_n "checking for $ac_word... " >&6; }
5328 if ${ac_cv_prog_DUMPBIN+:} false; then :
5329 $as_echo_n "(cached) " >&6
5331 if test -n "$DUMPBIN"; then
5332 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5341 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5351 DUMPBIN=$ac_cv_prog_DUMPBIN
5352 if test -n "$DUMPBIN"; then
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5354 $as_echo "$DUMPBIN" >&6; }
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357 $as_echo "no" >&6; }
5361 test -n "$DUMPBIN" && break
5364 if test -z "$DUMPBIN"; then
5365 ac_ct_DUMPBIN=$DUMPBIN
5366 for ac_prog in dumpbin "link -dump"
5368 # Extract the first word of "$ac_prog", so it can be a program name with args.
5369 set dummy $ac_prog; ac_word=$2
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371 $as_echo_n "checking for $ac_word... " >&6; }
5372 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5373 $as_echo_n "(cached) " >&6
5375 if test -n "$ac_ct_DUMPBIN"; then
5376 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382 test -z "$as_dir" && as_dir=.
5383 for ac_exec_ext in '' $ac_executable_extensions; do
5384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5385 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5396 if test -n "$ac_ct_DUMPBIN"; then
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5398 $as_echo "$ac_ct_DUMPBIN" >&6; }
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401 $as_echo "no" >&6; }
5405 test -n "$ac_ct_DUMPBIN" && break
5408 if test "x$ac_ct_DUMPBIN" = x; then
5411 case $cross_compiling:$ac_tool_warned in
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5415 ac_tool_warned=yes ;;
5417 DUMPBIN=$ac_ct_DUMPBIN
5421 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5423 DUMPBIN="$DUMPBIN -symbols"
5431 if test "$DUMPBIN" != ":"; then
5435 test -z "$NM" && NM=nm
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5443 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5444 if ${lt_cv_nm_interface+:} false; then :
5445 $as_echo_n "(cached) " >&6
5447 lt_cv_nm_interface="BSD nm"
5448 echo "int some_variable = 0;" > conftest.$ac_ext
5449 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5450 (eval "$ac_compile" 2>conftest.err)
5451 cat conftest.err >&5
5452 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5453 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5454 cat conftest.err >&5
5455 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5456 cat conftest.out >&5
5457 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5458 lt_cv_nm_interface="MS dumpbin"
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5463 $as_echo "$lt_cv_nm_interface" >&6; }
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5466 $as_echo_n "checking whether ln -s works... " >&6; }
5468 if test "$LN_S" = "ln -s"; then
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5470 $as_echo "yes" >&6; }
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5473 $as_echo "no, using $LN_S" >&6; }
5476 # find the maximum length of command line arguments
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5478 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5479 if ${lt_cv_sys_max_cmd_len+:} false; then :
5480 $as_echo_n "(cached) " >&6
5487 # On DJGPP, this test can blow up pretty badly due to problems in libc
5488 # (any single argument exceeding 2000 bytes causes a buffer overrun
5489 # during glob expansion). Even if it were fixed, the result of this
5490 # check would be larger than it should be.
5491 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5495 # Under GNU Hurd, this test is not required because there is
5496 # no limit to the length of command line arguments.
5497 # Libtool will interpret -1 as no limit whatsoever
5498 lt_cv_sys_max_cmd_len=-1;
5501 cygwin* | mingw* | cegcc*)
5502 # On Win9x/ME, this test blows up -- it succeeds, but takes
5503 # about 5 minutes as the teststring grows exponentially.
5504 # Worse, since 9x/ME are not pre-emptively multitasking,
5505 # you end up with a "frozen" computer, even though with patience
5506 # the test eventually succeeds (with a max line length of 256k).
5507 # Instead, let's just punt: use the minimum linelength reported by
5508 # all of the supported platforms: 8192 (on NT/2K/XP).
5509 lt_cv_sys_max_cmd_len=8192;
5513 # On MiNT this can take a long time and run out of memory.
5514 lt_cv_sys_max_cmd_len=8192;
5518 # On AmigaOS with pdksh, this test takes hours, literally.
5519 # So we just punt and use a minimum line length of 8192.
5520 lt_cv_sys_max_cmd_len=8192;
5523 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5524 # This has been around since 386BSD, at least. Likely further.
5525 if test -x /sbin/sysctl; then
5526 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5527 elif test -x /usr/sbin/sysctl; then
5528 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5530 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5532 # And add a safety zone
5533 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5534 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5538 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5539 lt_cv_sys_max_cmd_len=196608
5543 # The test takes a long time on OS/2.
5544 lt_cv_sys_max_cmd_len=8192
5548 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5549 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5550 # nice to cause kernel panics so lets avoid the loop below.
5551 # First set a reasonable default.
5552 lt_cv_sys_max_cmd_len=16384
5554 if test -x /sbin/sysconfig; then
5555 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5556 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5561 lt_cv_sys_max_cmd_len=102400
5563 sysv5* | sco5v6* | sysv4.2uw2*)
5564 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5565 if test -n "$kargmax"; then
5566 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5568 lt_cv_sys_max_cmd_len=32768
5572 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5573 if test -n "$lt_cv_sys_max_cmd_len"; then
5574 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5575 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5577 # Make teststring a little bigger before we do anything with it.
5578 # a 1K string should be a reasonable start.
5579 for i in 1 2 3 4 5 6 7 8 ; do
5580 teststring=$teststring$teststring
5582 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5583 # If test is not a shell built-in, we'll probably end up computing a
5584 # maximum length that is only half of the actual maximum length, but
5586 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5587 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5588 test $i != 17 # 1/2 MB should be enough
5591 teststring=$teststring$teststring
5593 # Only check the string length outside the loop.
5594 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5596 # Add a significant safety factor because C++ compilers can tack on
5597 # massive amounts of additional arguments before passing them to the
5598 # linker. It appears as though 1/2 is a usable value.
5599 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5606 if test -n $lt_cv_sys_max_cmd_len ; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5608 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5611 $as_echo "none" >&6; }
5613 max_cmd_len=$lt_cv_sys_max_cmd_len
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5625 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5626 # Try some XSI features
5629 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5631 && eval 'test $(( 1 + 1 )) -eq 2 \
5632 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5635 $as_echo "$xsi_shell" >&6; }
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5639 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5641 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5643 && lt_shell_append=yes
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5645 $as_echo "$lt_shell_append" >&6; }
5648 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5658 # test EBCDIC or ASCII
5659 case `echo X|tr X '\101'` in
5660 A) # ASCII based system
5661 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5662 lt_SP2NL='tr \040 \012'
5663 lt_NL2SP='tr \015\012 \040\040'
5665 *) # EBCDIC based system
5666 lt_SP2NL='tr \100 \n'
5667 lt_NL2SP='tr \r\n \100\100'
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5680 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5681 if ${lt_cv_to_host_file_cmd+:} false; then :
5682 $as_echo_n "(cached) " >&6
5687 *-*-mingw* ) # actually msys
5688 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5691 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5693 * ) # otherwise, assume *nix
5694 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5700 *-*-mingw* ) # actually msys
5701 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5704 lt_cv_to_host_file_cmd=func_convert_file_noop
5706 * ) # otherwise, assume *nix
5707 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5711 * ) # unhandled hosts (and "normal" native builds)
5712 lt_cv_to_host_file_cmd=func_convert_file_noop
5718 to_host_file_cmd=$lt_cv_to_host_file_cmd
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5720 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5727 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5728 if ${lt_cv_to_tool_file_cmd+:} false; then :
5729 $as_echo_n "(cached) " >&6
5731 #assume ordinary cross tools, or native build.
5732 lt_cv_to_tool_file_cmd=func_convert_file_noop
5736 *-*-mingw* ) # actually msys
5737 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5745 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5747 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5754 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5755 if ${lt_cv_ld_reload_flag+:} false; then :
5756 $as_echo_n "(cached) " >&6
5758 lt_cv_ld_reload_flag='-r'
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5761 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5762 reload_flag=$lt_cv_ld_reload_flag
5763 case $reload_flag in
5765 *) reload_flag=" $reload_flag" ;;
5767 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5769 cygwin* | mingw* | pw32* | cegcc*)
5770 if test "$GCC" != yes; then
5775 if test "$GCC" = yes; then
5776 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5778 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5791 if test -n "$ac_tool_prefix"; then
5792 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5793 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795 $as_echo_n "checking for $ac_word... " >&6; }
5796 if ${ac_cv_prog_OBJDUMP+:} false; then :
5797 $as_echo_n "(cached) " >&6
5799 if test -n "$OBJDUMP"; then
5800 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5819 OBJDUMP=$ac_cv_prog_OBJDUMP
5820 if test -n "$OBJDUMP"; then
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5822 $as_echo "$OBJDUMP" >&6; }
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825 $as_echo "no" >&6; }
5830 if test -z "$ac_cv_prog_OBJDUMP"; then
5831 ac_ct_OBJDUMP=$OBJDUMP
5832 # Extract the first word of "objdump", so it can be a program name with args.
5833 set dummy objdump; ac_word=$2
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5835 $as_echo_n "checking for $ac_word... " >&6; }
5836 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5837 $as_echo_n "(cached) " >&6
5839 if test -n "$ac_ct_OBJDUMP"; then
5840 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 test -z "$as_dir" && as_dir=.
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5859 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5860 if test -n "$ac_ct_OBJDUMP"; then
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5862 $as_echo "$ac_ct_OBJDUMP" >&6; }
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865 $as_echo "no" >&6; }
5868 if test "x$ac_ct_OBJDUMP" = x; then
5871 case $cross_compiling:$ac_tool_warned in
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5875 ac_tool_warned=yes ;;
5877 OBJDUMP=$ac_ct_OBJDUMP
5880 OBJDUMP="$ac_cv_prog_OBJDUMP"
5883 test -z "$OBJDUMP" && OBJDUMP=objdump
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5894 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5895 if ${lt_cv_deplibs_check_method+:} false; then :
5896 $as_echo_n "(cached) " >&6
5898 lt_cv_file_magic_cmd='$MAGIC_CMD'
5899 lt_cv_file_magic_test_file=
5900 lt_cv_deplibs_check_method='unknown'
5901 # Need to set the preceding variable on all platforms that support
5902 # interlibrary dependencies.
5903 # 'none' -- dependencies not supported.
5904 # `unknown' -- same as none, but documents that we really don't know.
5905 # 'pass_all' -- all dependencies passed with no checks.
5906 # 'test_compile' -- check by making test program.
5907 # 'file_magic [[regex]]' -- check by looking for files in library path
5908 # which responds to the $file_magic_cmd with a given extended regex.
5909 # If you have `file' or equivalent on your system and you're not sure
5910 # whether `pass_all' will *always* work, you probably want this one.
5914 lt_cv_deplibs_check_method=pass_all
5918 lt_cv_deplibs_check_method=pass_all
5922 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5923 lt_cv_file_magic_cmd='/usr/bin/file -L'
5924 lt_cv_file_magic_test_file=/shlib/libc.so
5928 # func_win32_libid is a shell function defined in ltmain.sh
5929 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5930 lt_cv_file_magic_cmd='func_win32_libid'
5934 # Base MSYS/MinGW do not provide the 'file' command needed by
5935 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5936 # unless we find 'file', for example because we are cross-compiling.
5937 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5938 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5939 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5940 lt_cv_file_magic_cmd='func_win32_libid'
5942 # Keep this pattern in sync with the one in func_win32_libid.
5943 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5944 lt_cv_file_magic_cmd='$OBJDUMP -f'
5949 # use the weaker test based on 'objdump'. See mingw*.
5950 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5951 lt_cv_file_magic_cmd='$OBJDUMP -f'
5954 darwin* | rhapsody*)
5955 lt_cv_deplibs_check_method=pass_all
5958 freebsd* | dragonfly*)
5959 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5962 # Not sure whether the presence of OpenBSD here was a mistake.
5963 # Let's accept both of them until this is cleared up.
5964 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5965 lt_cv_file_magic_cmd=/usr/bin/file
5966 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5970 lt_cv_deplibs_check_method=pass_all
5975 lt_cv_deplibs_check_method=pass_all
5979 lt_cv_deplibs_check_method=pass_all
5982 hpux10.20* | hpux11*)
5983 lt_cv_file_magic_cmd=/usr/bin/file
5986 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5987 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5990 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]'
5991 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5994 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5995 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6001 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6002 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6005 irix5* | irix6* | nonstopux*)
6007 *-32|*"-32 ") libmagic=32-bit;;
6008 *-n32|*"-n32 ") libmagic=N32;;
6009 *-64|*"-64 ") libmagic=64-bit;;
6010 *) libmagic=never-match;;
6012 lt_cv_deplibs_check_method=pass_all
6015 # This must be glibc/ELF.
6016 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6017 lt_cv_deplibs_check_method=pass_all
6021 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6022 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6029 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6030 lt_cv_file_magic_cmd=/usr/bin/file
6031 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6035 lt_cv_deplibs_check_method=pass_all
6039 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6040 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6042 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6046 osf3* | osf4* | osf5*)
6047 lt_cv_deplibs_check_method=pass_all
6051 lt_cv_deplibs_check_method=pass_all
6055 lt_cv_deplibs_check_method=pass_all
6058 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6059 lt_cv_deplibs_check_method=pass_all
6063 case $host_vendor in
6065 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]'
6066 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6069 lt_cv_deplibs_check_method=pass_all
6072 lt_cv_file_magic_cmd='/bin/file'
6073 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6076 lt_cv_file_magic_cmd='/bin/file'
6077 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6078 lt_cv_file_magic_test_file=/lib/libc.so
6081 lt_cv_deplibs_check_method=pass_all
6084 lt_cv_deplibs_check_method=pass_all
6090 lt_cv_deplibs_check_method=pass_all
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6096 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6100 if test "$build" = "$host"; then
6103 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6106 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6112 file_magic_cmd=$lt_cv_file_magic_cmd
6113 deplibs_check_method=$lt_cv_deplibs_check_method
6114 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6137 if test -n "$ac_tool_prefix"; then
6138 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6139 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 $as_echo_n "checking for $ac_word... " >&6; }
6142 if ${ac_cv_prog_DLLTOOL+:} false; then :
6143 $as_echo_n "(cached) " >&6
6145 if test -n "$DLLTOOL"; then
6146 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6155 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6165 DLLTOOL=$ac_cv_prog_DLLTOOL
6166 if test -n "$DLLTOOL"; then
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6168 $as_echo "$DLLTOOL" >&6; }
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 $as_echo "no" >&6; }
6176 if test -z "$ac_cv_prog_DLLTOOL"; then
6177 ac_ct_DLLTOOL=$DLLTOOL
6178 # Extract the first word of "dlltool", so it can be a program name with args.
6179 set dummy dlltool; ac_word=$2
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181 $as_echo_n "checking for $ac_word... " >&6; }
6182 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6183 $as_echo_n "(cached) " >&6
6185 if test -n "$ac_ct_DLLTOOL"; then
6186 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 test -z "$as_dir" && as_dir=.
6193 for ac_exec_ext in '' $ac_executable_extensions; do
6194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6195 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6205 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6206 if test -n "$ac_ct_DLLTOOL"; then
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6208 $as_echo "$ac_ct_DLLTOOL" >&6; }
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211 $as_echo "no" >&6; }
6214 if test "x$ac_ct_DLLTOOL" = x; then
6217 case $cross_compiling:$ac_tool_warned in
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6221 ac_tool_warned=yes ;;
6223 DLLTOOL=$ac_ct_DLLTOOL
6226 DLLTOOL="$ac_cv_prog_DLLTOOL"
6229 test -z "$DLLTOOL" && DLLTOOL=dlltool
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6241 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6242 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6243 $as_echo_n "(cached) " >&6
6245 lt_cv_sharedlib_from_linklib_cmd='unknown'
6248 cygwin* | mingw* | pw32* | cegcc*)
6249 # two different shell functions defined in ltmain.sh
6250 # decide which to use based on capabilities of $DLLTOOL
6251 case `$DLLTOOL --help 2>&1` in
6252 *--identify-strict*)
6253 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6256 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6261 # fallback: assume linklib IS sharedlib
6262 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6268 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6269 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6270 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6278 if test -n "$ac_tool_prefix"; then
6281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284 $as_echo_n "checking for $ac_word... " >&6; }
6285 if ${ac_cv_prog_AR+:} false; then :
6286 $as_echo_n "(cached) " >&6
6288 if test -n "$AR"; then
6289 ac_cv_prog_AR="$AR" # Let the user override the test.
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 test -z "$as_dir" && as_dir=.
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6298 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6309 if test -n "$AR"; then
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6311 $as_echo "$AR" >&6; }
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314 $as_echo "no" >&6; }
6318 test -n "$AR" && break
6321 if test -z "$AR"; then
6325 # Extract the first word of "$ac_prog", so it can be a program name with args.
6326 set dummy $ac_prog; ac_word=$2
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6328 $as_echo_n "checking for $ac_word... " >&6; }
6329 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6330 $as_echo_n "(cached) " >&6
6332 if test -n "$ac_ct_AR"; then
6333 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 test -z "$as_dir" && as_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6342 ac_cv_prog_ac_ct_AR="$ac_prog"
6343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6352 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6353 if test -n "$ac_ct_AR"; then
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6355 $as_echo "$ac_ct_AR" >&6; }
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6358 $as_echo "no" >&6; }
6362 test -n "$ac_ct_AR" && break
6365 if test "x$ac_ct_AR" = x; then
6368 case $cross_compiling:$ac_tool_warned in
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6372 ac_tool_warned=yes ;;
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6392 $as_echo_n "checking for archiver @FILE support... " >&6; }
6393 if ${lt_cv_ar_at_file+:} false; then :
6394 $as_echo_n "(cached) " >&6
6397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6398 /* end confdefs.h. */
6408 if ac_fn_c_try_compile "$LINENO"; then :
6409 echo conftest.$ac_objext > conftest.lst
6410 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6412 (eval $lt_ar_try) 2>&5
6414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6415 test $ac_status = 0; }
6416 if test "$ac_status" -eq 0; then
6417 # Ensure the archiver fails upon bogus file names.
6418 rm -f conftest.$ac_objext libconftest.a
6419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6420 (eval $lt_ar_try) 2>&5
6422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6423 test $ac_status = 0; }
6424 if test "$ac_status" -ne 0; then
6428 rm -f conftest.* libconftest.a
6431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6435 $as_echo "$lt_cv_ar_at_file" >&6; }
6437 if test "x$lt_cv_ar_at_file" = xno; then
6440 archiver_list_spec=$lt_cv_ar_at_file
6449 if test -n "$ac_tool_prefix"; then
6450 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6451 set dummy ${ac_tool_prefix}strip; ac_word=$2
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6453 $as_echo_n "checking for $ac_word... " >&6; }
6454 if ${ac_cv_prog_STRIP+:} false; then :
6455 $as_echo_n "(cached) " >&6
6457 if test -n "$STRIP"; then
6458 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464 test -z "$as_dir" && as_dir=.
6465 for ac_exec_ext in '' $ac_executable_extensions; do
6466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6467 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6477 STRIP=$ac_cv_prog_STRIP
6478 if test -n "$STRIP"; then
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6480 $as_echo "$STRIP" >&6; }
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6483 $as_echo "no" >&6; }
6488 if test -z "$ac_cv_prog_STRIP"; then
6490 # Extract the first word of "strip", so it can be a program name with args.
6491 set dummy strip; ac_word=$2
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6493 $as_echo_n "checking for $ac_word... " >&6; }
6494 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6495 $as_echo_n "(cached) " >&6
6497 if test -n "$ac_ct_STRIP"; then
6498 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504 test -z "$as_dir" && as_dir=.
6505 for ac_exec_ext in '' $ac_executable_extensions; do
6506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6507 ac_cv_prog_ac_ct_STRIP="strip"
6508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6517 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6518 if test -n "$ac_ct_STRIP"; then
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6520 $as_echo "$ac_ct_STRIP" >&6; }
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523 $as_echo "no" >&6; }
6526 if test "x$ac_ct_STRIP" = x; then
6529 case $cross_compiling:$ac_tool_warned in
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6533 ac_tool_warned=yes ;;
6538 STRIP="$ac_cv_prog_STRIP"
6541 test -z "$STRIP" && STRIP=:
6548 if test -n "$ac_tool_prefix"; then
6549 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6550 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552 $as_echo_n "checking for $ac_word... " >&6; }
6553 if ${ac_cv_prog_RANLIB+:} false; then :
6554 $as_echo_n "(cached) " >&6
6556 if test -n "$RANLIB"; then
6557 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 test -z "$as_dir" && as_dir=.
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6566 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6576 RANLIB=$ac_cv_prog_RANLIB
6577 if test -n "$RANLIB"; then
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6579 $as_echo "$RANLIB" >&6; }
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582 $as_echo "no" >&6; }
6587 if test -z "$ac_cv_prog_RANLIB"; then
6588 ac_ct_RANLIB=$RANLIB
6589 # Extract the first word of "ranlib", so it can be a program name with args.
6590 set dummy ranlib; ac_word=$2
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6592 $as_echo_n "checking for $ac_word... " >&6; }
6593 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6594 $as_echo_n "(cached) " >&6
6596 if test -n "$ac_ct_RANLIB"; then
6597 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603 test -z "$as_dir" && as_dir=.
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6606 ac_cv_prog_ac_ct_RANLIB="ranlib"
6607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6616 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6617 if test -n "$ac_ct_RANLIB"; then
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6619 $as_echo "$ac_ct_RANLIB" >&6; }
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622 $as_echo "no" >&6; }
6625 if test "x$ac_ct_RANLIB" = x; then
6628 case $cross_compiling:$ac_tool_warned in
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6632 ac_tool_warned=yes ;;
6634 RANLIB=$ac_ct_RANLIB
6637 RANLIB="$ac_cv_prog_RANLIB"
6640 test -z "$RANLIB" && RANLIB=:
6647 # Determine commands to create old-style static archives.
6648 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6649 old_postinstall_cmds='chmod 644 $oldlib'
6650 old_postuninstall_cmds=
6652 if test -n "$RANLIB"; then
6655 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6658 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6661 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6666 lock_old_archive_extraction=yes ;;
6668 lock_old_archive_extraction=no ;;
6709 # If no C compiler was specified, use CC.
6712 # If no C compiler flags were specified, use CFLAGS.
6713 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6715 # Allow CC to be a program name with arguments.
6719 # Check for command to grab the raw symbol name followed by C symbol from nm.
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6721 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6722 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6723 $as_echo_n "(cached) " >&6
6726 # These are sane defaults that work on at least a few old systems.
6727 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6729 # Character class describing NM global symbol codes.
6730 symcode='[BCDEGRST]'
6732 # Regexp to match symbols that can be accessed directly from C.
6733 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6735 # Define system-specific variables.
6740 cygwin* | mingw* | pw32* | cegcc*)
6741 symcode='[ABCDGISTW]'
6744 if test "$host_cpu" = ia64; then
6745 symcode='[ABCDEGRST]'
6749 symcode='[BCDEGRST]'
6752 symcode='[BCDEGQRST]'
6763 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6771 # If we're using GNU nm, then use its standard symbol codes.
6772 case `$NM -V 2>&1` in
6773 *GNU* | *'with BFD'*)
6774 symcode='[ABCDGIRSTW]' ;;
6777 # Transform an extracted symbol line into a proper C declaration.
6778 # Some systems (esp. on ia64) link data and code symbols differently,
6779 # so use this general approach.
6780 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6782 # Transform an extracted symbol line into symbol name and symbol address
6783 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6784 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6786 # Handle CRLF in mingw tool chain
6790 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6794 # Try without a prefix underscore, then with it.
6795 for ac_symprfx in "" "_"; do
6797 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6798 symxfrm="\\1 $ac_symprfx\\2 \\2"
6800 # Write the raw and C identifiers.
6801 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6802 # Fake it for dumpbin and say T for any non-static function
6803 # and D for any global variable.
6804 # Also find C++ and __fastcall symbols from MSVC++,
6805 # which start with @ or ?.
6806 lt_cv_sys_global_symbol_pipe="$AWK '"\
6807 " {last_section=section; section=\$ 3};"\
6808 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6809 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6810 " \$ 0!~/External *\|/{next};"\
6811 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6812 " {if(hide[section]) next};"\
6813 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6814 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6815 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6816 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6817 " ' prfx=^$ac_symprfx"
6819 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6821 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6823 # Check to see that the pipe works correctly.
6827 cat > conftest.$ac_ext <<_LT_EOF
6832 void nm_test_func(void);
6833 void nm_test_func(void){}
6837 int main(){nm_test_var='a';nm_test_func();return(0);}
6840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6841 (eval $ac_compile) 2>&5
6843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6844 test $ac_status = 0; }; then
6845 # Now try to grab the symbols.
6847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6848 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6851 test $ac_status = 0; } && test -s "$nlist"; then
6852 # Try sorting and uniquifying the output.
6853 if sort "$nlist" | uniq > "$nlist"T; then
6854 mv -f "$nlist"T "$nlist"
6859 # Make sure that we snagged all the symbols we need.
6860 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6861 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6862 cat <<_LT_EOF > conftest.$ac_ext
6863 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6864 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6865 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6866 relocations are performed -- see ld's documentation on pseudo-relocs. */
6867 # define LT_DLSYM_CONST
6868 #elif defined(__osf__)
6869 /* This system does not cope well with relocations in const data. */
6870 # define LT_DLSYM_CONST
6872 # define LT_DLSYM_CONST const
6880 # Now generate the symbol file.
6881 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6883 cat <<_LT_EOF >> conftest.$ac_ext
6885 /* The mapping between symbol names and symbols. */
6886 LT_DLSYM_CONST struct {
6890 lt__PROGRAM__LTX_preloaded_symbols[] =
6892 { "@PROGRAM@", (void *) 0 },
6894 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6895 cat <<\_LT_EOF >> conftest.$ac_ext
6899 /* This works around a problem in FreeBSD linker */
6900 #ifdef FREEBSD_WORKAROUND
6901 static const void *lt_preloaded_setup() {
6902 return lt__PROGRAM__LTX_preloaded_symbols;
6910 # Now try linking the two files.
6911 mv conftest.$ac_objext conftstm.$ac_objext
6912 lt_globsym_save_LIBS=$LIBS
6913 lt_globsym_save_CFLAGS=$CFLAGS
6914 LIBS="conftstm.$ac_objext"
6915 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6917 (eval $ac_link) 2>&5
6919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6920 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6923 LIBS=$lt_globsym_save_LIBS
6924 CFLAGS=$lt_globsym_save_CFLAGS
6926 echo "cannot find nm_test_func in $nlist" >&5
6929 echo "cannot find nm_test_var in $nlist" >&5
6932 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6935 echo "$progname: failed program was:" >&5
6936 cat conftest.$ac_ext >&5
6938 rm -rf conftest* conftst*
6940 # Do not use the global_symbol_pipe unless it works.
6941 if test "$pipe_works" = yes; then
6944 lt_cv_sys_global_symbol_pipe=
6950 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6951 lt_cv_sys_global_symbol_to_cdecl=
6953 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6955 $as_echo "failed" >&6; }
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6958 $as_echo "ok" >&6; }
6961 # Response file support.
6962 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6963 nm_file_list_spec='@'
6964 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6965 nm_file_list_spec='@'
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6995 $as_echo_n "checking for sysroot... " >&6; }
6997 # Check whether --with-sysroot was given.
6998 if test "${with_sysroot+set}" = set; then :
6999 withval=$with_sysroot;
7006 case ${with_sysroot} in #(
7008 if test "$GCC" = yes; then
7009 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7013 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7019 $as_echo "${with_sysroot}" >&6; }
7020 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7025 $as_echo "${lt_sysroot:-no}" >&6; }
7031 # Check whether --enable-libtool-lock was given.
7032 if test "${enable_libtool_lock+set}" = set; then :
7033 enableval=$enable_libtool_lock;
7036 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7038 # Some flags need to be propagated to the compiler or linker for good
7042 # Find out which ABI we are using.
7043 echo 'int i;' > conftest.$ac_ext
7044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7045 (eval $ac_compile) 2>&5
7047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7048 test $ac_status = 0; }; then
7049 case `/usr/bin/file conftest.$ac_objext` in
7061 # Find out which ABI we are using.
7062 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7064 (eval $ac_compile) 2>&5
7066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7067 test $ac_status = 0; }; then
7068 if test "$lt_cv_prog_gnu_ld" = yes; then
7069 case `/usr/bin/file conftest.$ac_objext` in
7071 LD="${LD-ld} -melf32bsmip"
7074 LD="${LD-ld} -melf32bmipn32"
7077 LD="${LD-ld} -melf64bmip"
7081 case `/usr/bin/file conftest.$ac_objext` in
7097 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7098 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7099 # Find out which ABI we are using.
7100 echo 'int i;' > conftest.$ac_ext
7101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7102 (eval $ac_compile) 2>&5
7104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7105 test $ac_status = 0; }; then
7106 case `/usr/bin/file conftest.o` in
7109 x86_64-*kfreebsd*-gnu)
7110 LD="${LD-ld} -m elf_i386_fbsd"
7113 LD="${LD-ld} -m elf_i386"
7115 ppc64-*linux*|powerpc64-*linux*)
7116 LD="${LD-ld} -m elf32ppclinux"
7119 LD="${LD-ld} -m elf_s390"
7122 LD="${LD-ld} -m elf32_sparc"
7128 x86_64-*kfreebsd*-gnu)
7129 LD="${LD-ld} -m elf_x86_64_fbsd"
7132 LD="${LD-ld} -m elf_x86_64"
7134 ppc*-*linux*|powerpc*-*linux*)
7135 LD="${LD-ld} -m elf64ppc"
7137 s390*-*linux*|s390*-*tpf*)
7138 LD="${LD-ld} -m elf64_s390"
7141 LD="${LD-ld} -m elf64_sparc"
7151 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7152 SAVE_CFLAGS="$CFLAGS"
7153 CFLAGS="$CFLAGS -belf"
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7155 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7156 if ${lt_cv_cc_needs_belf+:} false; then :
7157 $as_echo_n "(cached) " >&6
7160 ac_cpp='$CPP $CPPFLAGS'
7161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166 /* end confdefs.h. */
7176 if ac_fn_c_try_link "$LINENO"; then :
7177 lt_cv_cc_needs_belf=yes
7179 lt_cv_cc_needs_belf=no
7181 rm -f core conftest.err conftest.$ac_objext \
7182 conftest$ac_exeext conftest.$ac_ext
7184 ac_cpp='$CPP $CPPFLAGS'
7185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7191 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7192 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7193 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7194 CFLAGS="$SAVE_CFLAGS"
7198 # Find out which ABI we are using.
7199 echo 'int i;' > conftest.$ac_ext
7200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7201 (eval $ac_compile) 2>&5
7203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7204 test $ac_status = 0; }; then
7205 case `/usr/bin/file conftest.o` in
7207 case $lt_cv_prog_gnu_ld in
7211 LD="${LD-ld} -m elf_x86_64"
7214 LD="${LD-ld} -m elf64_sparc"
7217 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7218 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7223 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7235 need_locks="$enable_libtool_lock"
7237 if test -n "$ac_tool_prefix"; then
7238 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7239 set dummy ${ac_tool_prefix}mt; ac_word=$2
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7241 $as_echo_n "checking for $ac_word... " >&6; }
7242 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7243 $as_echo_n "(cached) " >&6
7245 if test -n "$MANIFEST_TOOL"; then
7246 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252 test -z "$as_dir" && as_dir=.
7253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7255 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7265 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7266 if test -n "$MANIFEST_TOOL"; then
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7268 $as_echo "$MANIFEST_TOOL" >&6; }
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271 $as_echo "no" >&6; }
7276 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7277 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7278 # Extract the first word of "mt", so it can be a program name with args.
7279 set dummy mt; ac_word=$2
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 $as_echo_n "checking for $ac_word... " >&6; }
7282 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7283 $as_echo_n "(cached) " >&6
7285 if test -n "$ac_ct_MANIFEST_TOOL"; then
7286 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7305 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7306 if test -n "$ac_ct_MANIFEST_TOOL"; then
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7308 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 $as_echo "no" >&6; }
7314 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7317 case $cross_compiling:$ac_tool_warned in
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7321 ac_tool_warned=yes ;;
7323 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7326 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7329 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7331 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7332 if ${lt_cv_path_mainfest_tool+:} false; then :
7333 $as_echo_n "(cached) " >&6
7335 lt_cv_path_mainfest_tool=no
7336 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7337 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7338 cat conftest.err >&5
7339 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7340 lt_cv_path_mainfest_tool=yes
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7345 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7346 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7356 rhapsody* | darwin*)
7357 if test -n "$ac_tool_prefix"; then
7358 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7359 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7361 $as_echo_n "checking for $ac_word... " >&6; }
7362 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7363 $as_echo_n "(cached) " >&6
7365 if test -n "$DSYMUTIL"; then
7366 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 test -z "$as_dir" && as_dir=.
7373 for ac_exec_ext in '' $ac_executable_extensions; do
7374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7375 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7385 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7386 if test -n "$DSYMUTIL"; then
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7388 $as_echo "$DSYMUTIL" >&6; }
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7391 $as_echo "no" >&6; }
7396 if test -z "$ac_cv_prog_DSYMUTIL"; then
7397 ac_ct_DSYMUTIL=$DSYMUTIL
7398 # Extract the first word of "dsymutil", so it can be a program name with args.
7399 set dummy dsymutil; ac_word=$2
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7401 $as_echo_n "checking for $ac_word... " >&6; }
7402 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7403 $as_echo_n "(cached) " >&6
7405 if test -n "$ac_ct_DSYMUTIL"; then
7406 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 test -z "$as_dir" && as_dir=.
7413 for ac_exec_ext in '' $ac_executable_extensions; do
7414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7415 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7425 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7426 if test -n "$ac_ct_DSYMUTIL"; then
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7428 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7431 $as_echo "no" >&6; }
7434 if test "x$ac_ct_DSYMUTIL" = x; then
7437 case $cross_compiling:$ac_tool_warned in
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7441 ac_tool_warned=yes ;;
7443 DSYMUTIL=$ac_ct_DSYMUTIL
7446 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7449 if test -n "$ac_tool_prefix"; then
7450 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7451 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7453 $as_echo_n "checking for $ac_word... " >&6; }
7454 if ${ac_cv_prog_NMEDIT+:} false; then :
7455 $as_echo_n "(cached) " >&6
7457 if test -n "$NMEDIT"; then
7458 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 test -z "$as_dir" && as_dir=.
7465 for ac_exec_ext in '' $ac_executable_extensions; do
7466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7467 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7477 NMEDIT=$ac_cv_prog_NMEDIT
7478 if test -n "$NMEDIT"; then
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7480 $as_echo "$NMEDIT" >&6; }
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483 $as_echo "no" >&6; }
7488 if test -z "$ac_cv_prog_NMEDIT"; then
7489 ac_ct_NMEDIT=$NMEDIT
7490 # Extract the first word of "nmedit", so it can be a program name with args.
7491 set dummy nmedit; ac_word=$2
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7493 $as_echo_n "checking for $ac_word... " >&6; }
7494 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7495 $as_echo_n "(cached) " >&6
7497 if test -n "$ac_ct_NMEDIT"; then
7498 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7507 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7518 if test -n "$ac_ct_NMEDIT"; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7520 $as_echo "$ac_ct_NMEDIT" >&6; }
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523 $as_echo "no" >&6; }
7526 if test "x$ac_ct_NMEDIT" = x; then
7529 case $cross_compiling:$ac_tool_warned in
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7533 ac_tool_warned=yes ;;
7535 NMEDIT=$ac_ct_NMEDIT
7538 NMEDIT="$ac_cv_prog_NMEDIT"
7541 if test -n "$ac_tool_prefix"; then
7542 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7543 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7545 $as_echo_n "checking for $ac_word... " >&6; }
7546 if ${ac_cv_prog_LIPO+:} false; then :
7547 $as_echo_n "(cached) " >&6
7549 if test -n "$LIPO"; then
7550 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7559 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7569 LIPO=$ac_cv_prog_LIPO
7570 if test -n "$LIPO"; then
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7572 $as_echo "$LIPO" >&6; }
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7575 $as_echo "no" >&6; }
7580 if test -z "$ac_cv_prog_LIPO"; then
7582 # Extract the first word of "lipo", so it can be a program name with args.
7583 set dummy lipo; ac_word=$2
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7585 $as_echo_n "checking for $ac_word... " >&6; }
7586 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7587 $as_echo_n "(cached) " >&6
7589 if test -n "$ac_ct_LIPO"; then
7590 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7599 ac_cv_prog_ac_ct_LIPO="lipo"
7600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7609 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7610 if test -n "$ac_ct_LIPO"; then
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7612 $as_echo "$ac_ct_LIPO" >&6; }
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7615 $as_echo "no" >&6; }
7618 if test "x$ac_ct_LIPO" = x; then
7621 case $cross_compiling:$ac_tool_warned in
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7625 ac_tool_warned=yes ;;
7630 LIPO="$ac_cv_prog_LIPO"
7633 if test -n "$ac_tool_prefix"; then
7634 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7635 set dummy ${ac_tool_prefix}otool; ac_word=$2
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7637 $as_echo_n "checking for $ac_word... " >&6; }
7638 if ${ac_cv_prog_OTOOL+:} false; then :
7639 $as_echo_n "(cached) " >&6
7641 if test -n "$OTOOL"; then
7642 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 test -z "$as_dir" && as_dir=.
7649 for ac_exec_ext in '' $ac_executable_extensions; do
7650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7651 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 OTOOL=$ac_cv_prog_OTOOL
7662 if test -n "$OTOOL"; then
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7664 $as_echo "$OTOOL" >&6; }
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7667 $as_echo "no" >&6; }
7672 if test -z "$ac_cv_prog_OTOOL"; then
7674 # Extract the first word of "otool", so it can be a program name with args.
7675 set dummy otool; ac_word=$2
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677 $as_echo_n "checking for $ac_word... " >&6; }
7678 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7679 $as_echo_n "(cached) " >&6
7681 if test -n "$ac_ct_OTOOL"; then
7682 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 test -z "$as_dir" && as_dir=.
7689 for ac_exec_ext in '' $ac_executable_extensions; do
7690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7691 ac_cv_prog_ac_ct_OTOOL="otool"
7692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7701 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7702 if test -n "$ac_ct_OTOOL"; then
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7704 $as_echo "$ac_ct_OTOOL" >&6; }
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707 $as_echo "no" >&6; }
7710 if test "x$ac_ct_OTOOL" = x; then
7713 case $cross_compiling:$ac_tool_warned in
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7717 ac_tool_warned=yes ;;
7722 OTOOL="$ac_cv_prog_OTOOL"
7725 if test -n "$ac_tool_prefix"; then
7726 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7727 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7729 $as_echo_n "checking for $ac_word... " >&6; }
7730 if ${ac_cv_prog_OTOOL64+:} false; then :
7731 $as_echo_n "(cached) " >&6
7733 if test -n "$OTOOL64"; then
7734 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7753 OTOOL64=$ac_cv_prog_OTOOL64
7754 if test -n "$OTOOL64"; then
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7756 $as_echo "$OTOOL64" >&6; }
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759 $as_echo "no" >&6; }
7764 if test -z "$ac_cv_prog_OTOOL64"; then
7765 ac_ct_OTOOL64=$OTOOL64
7766 # Extract the first word of "otool64", so it can be a program name with args.
7767 set dummy otool64; ac_word=$2
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769 $as_echo_n "checking for $ac_word... " >&6; }
7770 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7771 $as_echo_n "(cached) " >&6
7773 if test -n "$ac_ct_OTOOL64"; then
7774 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 test -z "$as_dir" && as_dir=.
7781 for ac_exec_ext in '' $ac_executable_extensions; do
7782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7783 ac_cv_prog_ac_ct_OTOOL64="otool64"
7784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7793 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7794 if test -n "$ac_ct_OTOOL64"; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7796 $as_echo "$ac_ct_OTOOL64" >&6; }
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799 $as_echo "no" >&6; }
7802 if test "x$ac_ct_OTOOL64" = x; then
7805 case $cross_compiling:$ac_tool_warned in
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7809 ac_tool_warned=yes ;;
7811 OTOOL64=$ac_ct_OTOOL64
7814 OTOOL64="$ac_cv_prog_OTOOL64"
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7844 $as_echo_n "checking for -single_module linker flag... " >&6; }
7845 if ${lt_cv_apple_cc_single_mod+:} false; then :
7846 $as_echo_n "(cached) " >&6
7848 lt_cv_apple_cc_single_mod=no
7849 if test -z "${LT_MULTI_MODULE}"; then
7850 # By default we will add the -single_module flag. You can override
7851 # by either setting the environment variable LT_MULTI_MODULE
7852 # non-empty at configure time, or by adding -multi_module to the
7854 rm -rf libconftest.dylib*
7855 echo "int foo(void){return 1;}" > conftest.c
7856 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7857 -dynamiclib -Wl,-single_module conftest.c" >&5
7858 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7859 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7861 # If there is a non-empty error log, and "single_module"
7862 # appears in it, assume the flag caused a linker warning
7863 if test -s conftest.err && $GREP single_module conftest.err; then
7864 cat conftest.err >&5
7865 # Otherwise, if the output was created with a 0 exit code from
7866 # the compiler, it worked.
7867 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7868 lt_cv_apple_cc_single_mod=yes
7870 cat conftest.err >&5
7872 rm -rf libconftest.dylib*
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7877 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7880 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7881 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7882 $as_echo_n "(cached) " >&6
7884 lt_cv_ld_exported_symbols_list=no
7885 save_LDFLAGS=$LDFLAGS
7886 echo "_main" > conftest.sym
7887 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h. */
7899 if ac_fn_c_try_link "$LINENO"; then :
7900 lt_cv_ld_exported_symbols_list=yes
7902 lt_cv_ld_exported_symbols_list=no
7904 rm -f core conftest.err conftest.$ac_objext \
7905 conftest$ac_exeext conftest.$ac_ext
7906 LDFLAGS="$save_LDFLAGS"
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7910 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7913 $as_echo_n "checking for -force_load linker flag... " >&6; }
7914 if ${lt_cv_ld_force_load+:} false; then :
7915 $as_echo_n "(cached) " >&6
7917 lt_cv_ld_force_load=no
7918 cat > conftest.c << _LT_EOF
7919 int forced_loaded() { return 2;}
7921 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7922 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7923 echo "$AR cru libconftest.a conftest.o" >&5
7924 $AR cru libconftest.a conftest.o 2>&5
7925 echo "$RANLIB libconftest.a" >&5
7926 $RANLIB libconftest.a 2>&5
7927 cat > conftest.c << _LT_EOF
7928 int main() { return 0;}
7930 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7931 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7933 if test -s conftest.err && $GREP force_load conftest.err; then
7934 cat conftest.err >&5
7935 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7936 lt_cv_ld_force_load=yes
7938 cat conftest.err >&5
7940 rm -f conftest.err libconftest.a conftest conftest.c
7941 rm -rf conftest.dSYM
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7945 $as_echo "$lt_cv_ld_force_load" >&6; }
7947 rhapsody* | darwin1.[012])
7948 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7950 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7951 darwin*) # darwin 5.x on
7952 # if running on 10.5 or later, the deployment target defaults
7953 # to the OS version, if on x86, and 10.4, the deployment
7954 # target defaults to 10.4. Don't you love it?
7955 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7956 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7957 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7959 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7961 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7965 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7966 _lt_dar_single_mod='$single_module'
7968 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7969 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7971 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7973 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7974 _lt_dsymutil='~$DSYMUTIL $lib || :'
7981 for ac_header in dlfcn.h
7983 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7985 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7986 cat >>confdefs.h <<_ACEOF
7987 #define HAVE_DLFCN_H 1
7999 # Check whether --enable-static was given.
8000 if test "${enable_static+set}" = set; then :
8001 enableval=$enable_static; p=${PACKAGE-default}
8003 yes) enable_static=yes ;;
8004 no) enable_static=no ;;
8007 # Look at the argument we got. We use all the common list separators.
8008 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8009 for pkg in $enableval; do
8011 if test "X$pkg" = "X$p"; then
8036 # Check whether --enable-shared was given.
8037 if test "${enable_shared+set}" = set; then :
8038 enableval=$enable_shared; p=${PACKAGE-default}
8040 yes) enable_shared=yes ;;
8041 no) enable_shared=no ;;
8044 # Look at the argument we got. We use all the common list separators.
8045 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8046 for pkg in $enableval; do
8048 if test "X$pkg" = "X$p"; then
8069 # Check whether --with-pic was given.
8070 if test "${with_pic+set}" = set; then :
8071 withval=$with_pic; lt_p=${PACKAGE-default}
8073 yes|no) pic_mode=$withval ;;
8076 # Look at the argument we got. We use all the common list separators.
8077 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8078 for lt_pkg in $withval; do
8080 if test "X$lt_pkg" = "X$lt_p"; then
8092 test -z "$pic_mode" && pic_mode=default
8100 # Check whether --enable-fast-install was given.
8101 if test "${enable_fast_install+set}" = set; then :
8102 enableval=$enable_fast_install; p=${PACKAGE-default}
8104 yes) enable_fast_install=yes ;;
8105 no) enable_fast_install=no ;;
8107 enable_fast_install=no
8108 # Look at the argument we got. We use all the common list separators.
8109 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8110 for pkg in $enableval; do
8112 if test "X$pkg" = "X$p"; then
8113 enable_fast_install=yes
8120 enable_fast_install=yes
8133 # This can be used to rebuild libtool when needed
8134 LIBTOOL_DEPS="$ltmain"
8136 # Always use our own libtool.
8137 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8168 test -z "$LN_S" && LN_S="ln -s"
8183 if test -n "${ZSH_VERSION+set}" ; then
8184 setopt NO_GLOB_SUBST
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8188 $as_echo_n "checking for objdir... " >&6; }
8189 if ${lt_cv_objdir+:} false; then :
8190 $as_echo_n "(cached) " >&6
8192 rm -f .libs 2>/dev/null
8193 mkdir .libs 2>/dev/null
8194 if test -d .libs; then
8197 # MS-DOS does not allow filenames that begin with a dot.
8200 rmdir .libs 2>/dev/null
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8203 $as_echo "$lt_cv_objdir" >&6; }
8204 objdir=$lt_cv_objdir
8210 cat >>confdefs.h <<_ACEOF
8211 #define LT_OBJDIR "$lt_cv_objdir/"
8219 # AIX sometimes has problems with the GCC collect2 program. For some
8220 # reason, if we set the COLLECT_NAMES environment variable, the problems
8221 # vanish in a puff of smoke.
8222 if test "X${COLLECT_NAMES+set}" != Xset; then
8224 export COLLECT_NAMES
8231 can_build_shared=yes
8233 # All known linkers require a `.a' archive for static linking (except MSVC,
8234 # which needs '.lib').
8237 with_gnu_ld="$lt_cv_prog_gnu_ld"
8240 old_CFLAGS="$CFLAGS"
8242 # Set sane defaults for various variables
8243 test -z "$CC" && CC=cc
8244 test -z "$LTCC" && LTCC=$CC
8245 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8246 test -z "$LD" && LD=ld
8247 test -z "$ac_objext" && ac_objext=o
8249 for cc_temp in $compiler""; do
8251 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8252 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8257 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8260 # Only perform the check for file, if the check method requires it
8261 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8262 case $deplibs_check_method in
8264 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8266 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8267 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8268 $as_echo_n "(cached) " >&6
8272 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8275 lt_save_MAGIC_CMD="$MAGIC_CMD"
8276 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8277 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8278 for ac_dir in $ac_dummy; do
8280 test -z "$ac_dir" && ac_dir=.
8281 if test -f $ac_dir/${ac_tool_prefix}file; then
8282 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8283 if test -n "$file_magic_test_file"; then
8284 case $deplibs_check_method in
8286 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8287 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8288 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8289 $EGREP "$file_magic_regex" > /dev/null; then
8294 *** Warning: the command libtool uses to detect shared libraries,
8295 *** $file_magic_cmd, produces output that libtool cannot recognize.
8296 *** The result is that libtool may fail to recognize shared libraries
8297 *** as such. This will affect the creation of libtool libraries that
8298 *** depend on shared libraries, but programs linked with such libtool
8299 *** libraries will work regardless of this problem. Nevertheless, you
8300 *** may want to report the problem to your system manager and/or to
8301 *** bug-libtool@gnu.org
8311 MAGIC_CMD="$lt_save_MAGIC_CMD"
8316 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8317 if test -n "$MAGIC_CMD"; then
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8319 $as_echo "$MAGIC_CMD" >&6; }
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322 $as_echo "no" >&6; }
8329 if test -z "$lt_cv_path_MAGIC_CMD"; then
8330 if test -n "$ac_tool_prefix"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8332 $as_echo_n "checking for file... " >&6; }
8333 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8334 $as_echo_n "(cached) " >&6
8338 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8341 lt_save_MAGIC_CMD="$MAGIC_CMD"
8342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8343 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8344 for ac_dir in $ac_dummy; do
8346 test -z "$ac_dir" && ac_dir=.
8347 if test -f $ac_dir/file; then
8348 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8349 if test -n "$file_magic_test_file"; then
8350 case $deplibs_check_method in
8352 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8353 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8354 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8355 $EGREP "$file_magic_regex" > /dev/null; then
8360 *** Warning: the command libtool uses to detect shared libraries,
8361 *** $file_magic_cmd, produces output that libtool cannot recognize.
8362 *** The result is that libtool may fail to recognize shared libraries
8363 *** as such. This will affect the creation of libtool libraries that
8364 *** depend on shared libraries, but programs linked with such libtool
8365 *** libraries will work regardless of this problem. Nevertheless, you
8366 *** may want to report the problem to your system manager and/or to
8367 *** bug-libtool@gnu.org
8377 MAGIC_CMD="$lt_save_MAGIC_CMD"
8382 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8383 if test -n "$MAGIC_CMD"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8385 $as_echo "$MAGIC_CMD" >&6; }
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8401 # Use C for the default configuration in the libtool script
8405 ac_cpp='$CPP $CPPFLAGS'
8406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8411 # Source file extension for C test sources.
8414 # Object file extension for compiled C test sources.
8418 # Code to be used in simple compile tests
8419 lt_simple_compile_test_code="int some_variable = 0;"
8421 # Code to be used in simple link tests
8422 lt_simple_link_test_code='int main(){return(0);}'
8430 # If no C compiler was specified, use CC.
8433 # If no C compiler flags were specified, use CFLAGS.
8434 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8436 # Allow CC to be a program name with arguments.
8439 # Save the default compiler, since it gets overwritten when the other
8440 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8441 compiler_DEFAULT=$CC
8443 # save warnings/boilerplate of simple test code
8444 ac_outfile=conftest.$ac_objext
8445 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8446 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8447 _lt_compiler_boilerplate=`cat conftest.err`
8450 ac_outfile=conftest.$ac_objext
8451 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8452 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8453 _lt_linker_boilerplate=`cat conftest.err`
8458 ## There is no encapsulation within the following macros, do not change
8459 ## the running order or otherwise move them around unless you know exactly
8460 ## what you are doing...
8461 if test -n "$compiler"; then
8463 lt_prog_compiler_no_builtin_flag=
8465 if test "$GCC" = yes; then
8466 case $cc_basename in
8468 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8470 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8474 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8475 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8476 $as_echo_n "(cached) " >&6
8478 lt_cv_prog_compiler_rtti_exceptions=no
8479 ac_outfile=conftest.$ac_objext
8480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8481 lt_compiler_flag="-fno-rtti -fno-exceptions"
8482 # Insert the option either (1) after the last *FLAGS variable, or
8483 # (2) before a word containing "conftest.", or (3) at the end.
8484 # Note that $ac_compile itself does not contain backslashes and begins
8485 # with a dollar sign (not a hyphen), so the echo should work correctly.
8486 # The option is referenced via a variable to avoid confusing sed.
8487 lt_compile=`echo "$ac_compile" | $SED \
8488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8490 -e 's:$: $lt_compiler_flag:'`
8491 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8492 (eval "$lt_compile" 2>conftest.err)
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 if (exit $ac_status) && test -s "$ac_outfile"; then
8497 # The compiler can only warn and ignore the option if not recognized
8498 # So say no if there are warnings other than the usual output.
8499 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8501 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8502 lt_cv_prog_compiler_rtti_exceptions=yes
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8509 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8511 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8512 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8524 lt_prog_compiler_wl=
8525 lt_prog_compiler_pic=
8526 lt_prog_compiler_static=
8529 if test "$GCC" = yes; then
8530 lt_prog_compiler_wl='-Wl,'
8531 lt_prog_compiler_static='-static'
8535 # All AIX code is PIC.
8536 if test "$host_cpu" = ia64; then
8537 # AIX 5 now supports IA64 processor
8538 lt_prog_compiler_static='-Bstatic'
8545 # see comment about AmigaOS4 .so support
8546 lt_prog_compiler_pic='-fPIC'
8549 # FIXME: we need at least 68020 code to build shared libraries, but
8550 # adding the `-m68020' flag to GCC prevents building anything better,
8552 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8557 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8558 # PIC is the default for these OSes.
8561 mingw* | cygwin* | pw32* | os2* | cegcc*)
8562 # This hack is so that the source file can tell whether it is being
8563 # built for inclusion in a dll (and should export symbols for example).
8564 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8565 # (--disable-auto-import) libraries
8566 lt_prog_compiler_pic='-DDLL_EXPORT'
8569 darwin* | rhapsody*)
8570 # PIC is the default on this platform
8571 # Common symbols not allowed in MH_DYLIB files
8572 lt_prog_compiler_pic='-fno-common'
8576 # PIC is the default for Haiku.
8577 # The "-static" flag exists, but is broken.
8578 lt_prog_compiler_static=
8582 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8583 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8584 # sets the default TLS model and affects inlining.
8590 lt_prog_compiler_pic='-fPIC'
8596 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8597 # Instead, we relocate shared libraries at runtime.
8601 # Just because we use GCC doesn't mean we suddenly get shared libraries
8602 # on systems that don't support them.
8603 lt_prog_compiler_can_build_shared=no
8608 # QNX uses GNU C++, but need to define -shared option too, otherwise
8610 lt_prog_compiler_pic='-fPIC -shared'
8614 if test -d /usr/nec; then
8615 lt_prog_compiler_pic=-Kconform_pic
8620 lt_prog_compiler_pic='-fPIC'
8624 case $cc_basename in
8625 nvcc*) # Cuda Compiler Driver 2.2
8626 lt_prog_compiler_wl='-Xlinker '
8627 if test -n "$lt_prog_compiler_pic"; then
8628 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8633 # PORTME Check for flag to pass linker flags through the system compiler.
8636 lt_prog_compiler_wl='-Wl,'
8637 if test "$host_cpu" = ia64; then
8638 # AIX 5 now supports IA64 processor
8639 lt_prog_compiler_static='-Bstatic'
8641 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8645 mingw* | cygwin* | pw32* | os2* | cegcc*)
8646 # This hack is so that the source file can tell whether it is being
8647 # built for inclusion in a dll (and should export symbols for example).
8648 lt_prog_compiler_pic='-DDLL_EXPORT'
8651 hpux9* | hpux10* | hpux11*)
8652 lt_prog_compiler_wl='-Wl,'
8653 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8660 lt_prog_compiler_pic='+Z'
8663 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8664 lt_prog_compiler_static='${wl}-a ${wl}archive'
8667 irix5* | irix6* | nonstopux*)
8668 lt_prog_compiler_wl='-Wl,'
8669 # PIC (with -KPIC) is the default.
8670 lt_prog_compiler_static='-non_shared'
8673 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8674 case $cc_basename in
8675 # old Intel for x86_64 which still supported -KPIC.
8677 lt_prog_compiler_wl='-Wl,'
8678 lt_prog_compiler_pic='-KPIC'
8679 lt_prog_compiler_static='-static'
8681 # icc used to be incompatible with GCC.
8682 # ICC 10 doesn't accept -KPIC any more.
8684 lt_prog_compiler_wl='-Wl,'
8685 lt_prog_compiler_pic='-fPIC'
8686 lt_prog_compiler_static='-static'
8688 # Lahey Fortran 8.1.
8690 lt_prog_compiler_wl='-Wl,'
8691 lt_prog_compiler_pic='--shared'
8692 lt_prog_compiler_static='--static'
8695 # NAG Fortran compiler
8696 lt_prog_compiler_wl='-Wl,-Wl,,'
8697 lt_prog_compiler_pic='-PIC'
8698 lt_prog_compiler_static='-Bstatic'
8700 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8701 # Portland Group compilers (*not* the Pentium gcc compiler,
8702 # which looks to be a dead project)
8703 lt_prog_compiler_wl='-Wl,'
8704 lt_prog_compiler_pic='-fpic'
8705 lt_prog_compiler_static='-Bstatic'
8708 lt_prog_compiler_wl='-Wl,'
8709 # All Alpha code is PIC.
8710 lt_prog_compiler_static='-non_shared'
8712 xl* | bgxl* | bgf* | mpixl*)
8713 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8714 lt_prog_compiler_wl='-Wl,'
8715 lt_prog_compiler_pic='-qpic'
8716 lt_prog_compiler_static='-qstaticlink'
8719 case `$CC -V 2>&1 | sed 5q` in
8720 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8721 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8722 lt_prog_compiler_pic='-KPIC'
8723 lt_prog_compiler_static='-Bstatic'
8724 lt_prog_compiler_wl=''
8726 *Sun\ F* | *Sun*Fortran*)
8727 lt_prog_compiler_pic='-KPIC'
8728 lt_prog_compiler_static='-Bstatic'
8729 lt_prog_compiler_wl='-Qoption ld '
8733 lt_prog_compiler_pic='-KPIC'
8734 lt_prog_compiler_static='-Bstatic'
8735 lt_prog_compiler_wl='-Wl,'
8737 *Intel*\ [CF]*Compiler*)
8738 lt_prog_compiler_wl='-Wl,'
8739 lt_prog_compiler_pic='-fPIC'
8740 lt_prog_compiler_static='-static'
8743 lt_prog_compiler_wl='-Wl,'
8744 lt_prog_compiler_pic='-fpic'
8745 lt_prog_compiler_static='-Bstatic'
8753 lt_prog_compiler_pic='-KPIC'
8754 lt_prog_compiler_static='-Bstatic'
8758 # QNX uses GNU C++, but need to define -shared option too, otherwise
8760 lt_prog_compiler_pic='-fPIC -shared'
8763 osf3* | osf4* | osf5*)
8764 lt_prog_compiler_wl='-Wl,'
8765 # All OSF/1 code is PIC.
8766 lt_prog_compiler_static='-non_shared'
8770 lt_prog_compiler_static='-non_shared'
8774 lt_prog_compiler_pic='-KPIC'
8775 lt_prog_compiler_static='-Bstatic'
8776 case $cc_basename in
8777 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8778 lt_prog_compiler_wl='-Qoption ld ';;
8780 lt_prog_compiler_wl='-Wl,';;
8785 lt_prog_compiler_wl='-Qoption ld '
8786 lt_prog_compiler_pic='-PIC'
8787 lt_prog_compiler_static='-Bstatic'
8790 sysv4 | sysv4.2uw2* | sysv4.3*)
8791 lt_prog_compiler_wl='-Wl,'
8792 lt_prog_compiler_pic='-KPIC'
8793 lt_prog_compiler_static='-Bstatic'
8797 if test -d /usr/nec ;then
8798 lt_prog_compiler_pic='-Kconform_pic'
8799 lt_prog_compiler_static='-Bstatic'
8803 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8804 lt_prog_compiler_wl='-Wl,'
8805 lt_prog_compiler_pic='-KPIC'
8806 lt_prog_compiler_static='-Bstatic'
8810 lt_prog_compiler_wl='-Wl,'
8811 lt_prog_compiler_can_build_shared=no
8815 lt_prog_compiler_pic='-pic'
8816 lt_prog_compiler_static='-Bstatic'
8820 lt_prog_compiler_can_build_shared=no
8826 # For platforms which do not support PIC, -DPIC is meaningless:
8828 lt_prog_compiler_pic=
8831 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8836 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8837 if ${lt_cv_prog_compiler_pic+:} false; then :
8838 $as_echo_n "(cached) " >&6
8840 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8843 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8844 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8847 # Check to make sure the PIC flag actually works.
8849 if test -n "$lt_prog_compiler_pic"; then
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8851 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8852 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8853 $as_echo_n "(cached) " >&6
8855 lt_cv_prog_compiler_pic_works=no
8856 ac_outfile=conftest.$ac_objext
8857 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8858 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8859 # Insert the option either (1) after the last *FLAGS variable, or
8860 # (2) before a word containing "conftest.", or (3) at the end.
8861 # Note that $ac_compile itself does not contain backslashes and begins
8862 # with a dollar sign (not a hyphen), so the echo should work correctly.
8863 # The option is referenced via a variable to avoid confusing sed.
8864 lt_compile=`echo "$ac_compile" | $SED \
8865 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8867 -e 's:$: $lt_compiler_flag:'`
8868 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8869 (eval "$lt_compile" 2>conftest.err)
8871 cat conftest.err >&5
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 if (exit $ac_status) && test -s "$ac_outfile"; then
8874 # The compiler can only warn and ignore the option if not recognized
8875 # So say no if there are warnings other than the usual output.
8876 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8877 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8878 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8879 lt_cv_prog_compiler_pic_works=yes
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8886 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8888 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8889 case $lt_prog_compiler_pic in
8891 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8894 lt_prog_compiler_pic=
8895 lt_prog_compiler_can_build_shared=no
8911 # Check to make sure the static flag actually works.
8913 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8915 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8916 if ${lt_cv_prog_compiler_static_works+:} false; then :
8917 $as_echo_n "(cached) " >&6
8919 lt_cv_prog_compiler_static_works=no
8920 save_LDFLAGS="$LDFLAGS"
8921 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8922 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8923 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8924 # The linker can only warn and ignore the option if not recognized
8925 # So say no if there are warnings
8926 if test -s conftest.err; then
8927 # Append any errors to the config.log.
8928 cat conftest.err 1>&5
8929 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8930 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8931 if diff conftest.exp conftest.er2 >/dev/null; then
8932 lt_cv_prog_compiler_static_works=yes
8935 lt_cv_prog_compiler_static_works=yes
8939 LDFLAGS="$save_LDFLAGS"
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8943 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8945 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8948 lt_prog_compiler_static=
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8958 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8959 if ${lt_cv_prog_compiler_c_o+:} false; then :
8960 $as_echo_n "(cached) " >&6
8962 lt_cv_prog_compiler_c_o=no
8963 $RM -r conftest 2>/dev/null
8967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8969 lt_compiler_flag="-o out/conftest2.$ac_objext"
8970 # Insert the option either (1) after the last *FLAGS variable, or
8971 # (2) before a word containing "conftest.", or (3) at the end.
8972 # Note that $ac_compile itself does not contain backslashes and begins
8973 # with a dollar sign (not a hyphen), so the echo should work correctly.
8974 lt_compile=`echo "$ac_compile" | $SED \
8975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8977 -e 's:$: $lt_compiler_flag:'`
8978 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8979 (eval "$lt_compile" 2>out/conftest.err)
8981 cat out/conftest.err >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8985 # The compiler can only warn and ignore the option if not recognized
8986 # So say no if there are warnings
8987 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8988 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8989 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8990 lt_cv_prog_compiler_c_o=yes
8995 # SGI C++ compiler will create directory out/ii_files/ for
8996 # template instantiation
8997 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8998 $RM out/* && rmdir out
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9005 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9013 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9014 if ${lt_cv_prog_compiler_c_o+:} false; then :
9015 $as_echo_n "(cached) " >&6
9017 lt_cv_prog_compiler_c_o=no
9018 $RM -r conftest 2>/dev/null
9022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9024 lt_compiler_flag="-o out/conftest2.$ac_objext"
9025 # Insert the option either (1) after the last *FLAGS variable, or
9026 # (2) before a word containing "conftest.", or (3) at the end.
9027 # Note that $ac_compile itself does not contain backslashes and begins
9028 # with a dollar sign (not a hyphen), so the echo should work correctly.
9029 lt_compile=`echo "$ac_compile" | $SED \
9030 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9031 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9032 -e 's:$: $lt_compiler_flag:'`
9033 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9034 (eval "$lt_compile" 2>out/conftest.err)
9036 cat out/conftest.err >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9040 # The compiler can only warn and ignore the option if not recognized
9041 # So say no if there are warnings
9042 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9043 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9044 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9045 lt_cv_prog_compiler_c_o=yes
9050 # SGI C++ compiler will create directory out/ii_files/ for
9051 # template instantiation
9052 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9053 $RM out/* && rmdir out
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9060 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9065 hard_links="nottested"
9066 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9067 # do not overwrite the value of need_locks provided by the user
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9069 $as_echo_n "checking if we can lock with hard links... " >&6; }
9072 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9074 ln conftest.a conftest.b 2>&5 || hard_links=no
9075 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9077 $as_echo "$hard_links" >&6; }
9078 if test "$hard_links" = no; then
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9080 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9093 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9096 allow_undefined_flag=
9097 always_export_symbols=no
9099 archive_expsym_cmds=
9100 compiler_needs_object=no
9101 enable_shared_with_static_runtimes=no
9102 export_dynamic_flag_spec=
9103 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9104 hardcode_automatic=no
9106 hardcode_direct_absolute=no
9107 hardcode_libdir_flag_spec=
9108 hardcode_libdir_separator=
9110 hardcode_shlibpath_var=unsupported
9112 link_all_deplibs=unknown
9115 old_archive_from_new_cmds=
9116 old_archive_from_expsyms_cmds=
9117 thread_safe_flag_spec=
9118 whole_archive_flag_spec=
9119 # include_expsyms should be a list of space-separated symbols to be *always*
9120 # included in the symbol list
9122 # exclude_expsyms can be an extended regexp of symbols to exclude
9123 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9124 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9125 # as well as any symbol that contains `d'.
9126 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9127 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9128 # platforms (ab)use it in PIC code, but their linkers get confused if
9129 # the symbol is explicitly referenced. Since portable code cannot
9130 # rely on this symbol name, it's probably fine to never include it in
9131 # preloaded symbol tables.
9132 # Exclude shared library initialization/finalization symbols.
9133 extract_expsyms_cmds=
9136 cygwin* | mingw* | pw32* | cegcc*)
9137 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9138 # When not using gcc, we currently assume that we are using
9139 # Microsoft Visual C++.
9140 if test "$GCC" != yes; then
9145 # we just hope/assume this is gcc and not c89 (= MSVC++)
9155 # On some targets, GNU ld is compatible enough with the native linker
9156 # that we're better off using the native interface for both.
9157 lt_use_gnu_ld_interface=no
9158 if test "$with_gnu_ld" = yes; then
9161 # The AIX port of GNU ld has always aspired to compatibility
9162 # with the native linker. However, as the warning in the GNU ld
9163 # block says, versions before 2.19.5* couldn't really create working
9164 # shared libraries, regardless of the interface used.
9165 case `$LD -v 2>&1` in
9166 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9167 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9168 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9170 lt_use_gnu_ld_interface=yes
9175 lt_use_gnu_ld_interface=yes
9180 if test "$lt_use_gnu_ld_interface" = yes; then
9181 # If archive_cmds runs LD, not CC, wlarc should be empty
9184 # Set some defaults for GNU ld with shared library support. These
9185 # are reset later if shared libraries are not supported. Putting them
9186 # here allows them to be overridden if necessary.
9187 runpath_var=LD_RUN_PATH
9188 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9189 export_dynamic_flag_spec='${wl}--export-dynamic'
9190 # ancient GNU ld didn't support --whole-archive et. al.
9191 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9192 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9194 whole_archive_flag_spec=
9196 supports_anon_versioning=no
9197 case `$LD -v 2>&1` in
9198 *GNU\ gold*) supports_anon_versioning=yes ;;
9199 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9200 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9201 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9202 *\ 2.11.*) ;; # other 2.11 versions
9203 *) supports_anon_versioning=yes ;;
9206 # See if GNU ld supports shared libraries.
9209 # On AIX/PPC, the GNU linker is very broken
9210 if test "$host_cpu" != ia64; then
9214 *** Warning: the GNU linker, at least up to release 2.19, is reported
9215 *** to be unable to reliably create shared libraries on AIX.
9216 *** Therefore, libtool is disabling shared libraries support. If you
9217 *** really care for shared libraries, you may want to install binutils
9218 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9219 *** You will then need to restart the configuration process.
9228 # see comment about AmigaOS4 .so support
9229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9230 archive_expsym_cmds=''
9233 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)'
9234 hardcode_libdir_flag_spec='-L$libdir'
9235 hardcode_minus_L=yes
9241 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9242 allow_undefined_flag=unsupported
9243 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9244 # support --undefined. This deserves some investigation. FIXME
9245 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9251 cygwin* | mingw* | pw32* | cegcc*)
9252 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9253 # as there is no search path for DLLs.
9254 hardcode_libdir_flag_spec='-L$libdir'
9255 export_dynamic_flag_spec='${wl}--export-all-symbols'
9256 allow_undefined_flag=unsupported
9257 always_export_symbols=no
9258 enable_shared_with_static_runtimes=yes
9259 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'
9260 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9262 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9264 # If the export-symbols file already is a .def file (1st line
9265 # is EXPORTS), use it as is; otherwise, prepend...
9266 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9267 cp $export_symbols $output_objdir/$soname.def;
9269 echo EXPORTS > $output_objdir/$soname.def;
9270 cat $export_symbols >> $output_objdir/$soname.def;
9272 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9280 link_all_deplibs=yes
9285 hardcode_shlibpath_var=no
9286 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9287 export_dynamic_flag_spec='${wl}-E'
9288 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9289 # Instead, shared libraries are loaded at an image base (0x10000000 by
9290 # default) and relocated if they conflict, which is a slow very memory
9291 # consuming and fragmenting process. To avoid this, we pick a random,
9292 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9293 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9294 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9295 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'
9298 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9300 if test "$host_os" = linux-dietlibc; then
9301 case $cc_basename in
9302 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9305 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9306 && test "$tmp_diet" = no
9308 tmp_addflag=' $pic_flag'
9309 tmp_sharedflag='-shared'
9310 case $cc_basename,$host_cpu in
9311 pgcc*) # Portland Group C compiler
9312 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'
9313 tmp_addflag=' $pic_flag'
9315 pgf77* | pgf90* | pgf95* | pgfortran*)
9316 # Portland Group f77 and f90 compilers
9317 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'
9318 tmp_addflag=' $pic_flag -Mnomain' ;;
9319 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9320 tmp_addflag=' -i_dynamic' ;;
9321 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9322 tmp_addflag=' -i_dynamic -nofor_main' ;;
9323 ifc* | ifort*) # Intel Fortran compiler
9324 tmp_addflag=' -nofor_main' ;;
9325 lf95*) # Lahey Fortran 8.1
9326 whole_archive_flag_spec=
9327 tmp_sharedflag='--shared' ;;
9328 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9329 tmp_sharedflag='-qmkshrobj'
9331 nvcc*) # Cuda Compiler Driver 2.2
9332 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'
9333 compiler_needs_object=yes
9336 case `$CC -V 2>&1 | sed 5q` in
9337 *Sun\ C*) # Sun C 5.9
9338 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'
9339 compiler_needs_object=yes
9340 tmp_sharedflag='-G' ;;
9341 *Sun\ F*) # Sun Fortran 8.3
9342 tmp_sharedflag='-G' ;;
9344 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9346 if test "x$supports_anon_versioning" = xyes; then
9347 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9348 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9349 echo "local: *; };" >> $output_objdir/$libname.ver~
9350 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9353 case $cc_basename in
9354 xlf* | bgf* | bgxlf* | mpixlf*)
9355 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9356 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9357 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9358 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9359 if test "x$supports_anon_versioning" = xyes; then
9360 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9361 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9362 echo "local: *; };" >> $output_objdir/$libname.ver~
9363 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9373 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9374 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9377 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9378 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9383 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9387 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9388 *** create shared libraries on Solaris systems. Therefore, libtool
9389 *** is disabling shared libraries support. We urge you to upgrade GNU
9390 *** binutils to release 2.9.1 or newer. Another option is to modify
9391 *** your PATH or compiler configuration so that the native linker is
9392 *** used, and then restart.
9395 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9396 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9397 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9403 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9404 case `$LD -v 2>&1` in
9405 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9409 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9410 *** reliably create shared libraries on SCO systems. Therefore, libtool
9411 *** is disabling shared libraries support. We urge you to upgrade GNU
9412 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9413 *** your PATH or compiler configuration so that the native linker is
9414 *** used, and then restart.
9419 # For security reasons, it is highly recommended that you always
9420 # use absolute paths for naming shared libraries, and exclude the
9421 # DT_RUNPATH tag from executables and libraries. But doing so
9422 # requires that you compile everything twice, which is a pain.
9423 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9424 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9425 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9426 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9435 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9438 hardcode_shlibpath_var=no
9442 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9443 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9444 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9451 if test "$ld_shlibs" = no; then
9453 hardcode_libdir_flag_spec=
9454 export_dynamic_flag_spec=
9455 whole_archive_flag_spec=
9458 # PORTME fill in a description of your system's linker (not GNU ld)
9461 allow_undefined_flag=unsupported
9462 always_export_symbols=yes
9463 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'
9464 # Note: this linker hardcodes the directories in LIBPATH if there
9465 # are no directories specified by -L.
9466 hardcode_minus_L=yes
9467 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9468 # Neither direct hardcoding nor static linking is supported with a
9470 hardcode_direct=unsupported
9475 if test "$host_cpu" = ia64; then
9476 # On IA64, the linker does run time linking by default, so we don't
9477 # have to do anything special.
9478 aix_use_runtimelinking=no
9479 exp_sym_flag='-Bexport'
9482 # If we're using GNU nm, then we don't want the "-C" option.
9483 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9484 # Also, AIX nm treats weak defined symbols like other global
9485 # defined symbols, whereas GNU nm marks them as "W".
9486 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9487 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9489 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9491 aix_use_runtimelinking=no
9493 # Test if we are trying to use run time linking or normal
9494 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9495 # need to do runtime linking.
9496 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9497 for ld_flag in $LDFLAGS; do
9498 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9499 aix_use_runtimelinking=yes
9506 exp_sym_flag='-bexport'
9507 no_entry_flag='-bnoentry'
9510 # When large executables or shared objects are built, AIX ld can
9511 # have problems creating the table of contents. If linking a library
9512 # or program results in "error TOC overflow" add -mminimal-toc to
9513 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9514 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9518 hardcode_direct_absolute=yes
9519 hardcode_libdir_separator=':'
9520 link_all_deplibs=yes
9521 file_list_spec='${wl}-f,'
9523 if test "$GCC" = yes; then
9524 case $host_os in aix4.[012]|aix4.[012].*)
9525 # We only want to do this on AIX 4.2 and lower, the check
9526 # below for broken collect2 doesn't work under 4.3+
9527 collect2name=`${CC} -print-prog-name=collect2`
9528 if test -f "$collect2name" &&
9529 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9531 # We have reworked collect2
9534 # We have old collect2
9535 hardcode_direct=unsupported
9536 # It fails to find uninstalled libraries when the uninstalled
9537 # path is not listed in the libpath. Setting hardcode_minus_L
9538 # to unsupported forces relinking
9539 hardcode_minus_L=yes
9540 hardcode_libdir_flag_spec='-L$libdir'
9541 hardcode_libdir_separator=
9545 shared_flag='-shared'
9546 if test "$aix_use_runtimelinking" = yes; then
9547 shared_flag="$shared_flag "'${wl}-G'
9551 if test "$host_cpu" = ia64; then
9552 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9553 # chokes on -Wl,-G. The following line is correct:
9556 if test "$aix_use_runtimelinking" = yes; then
9557 shared_flag='${wl}-G'
9559 shared_flag='${wl}-bM:SRE'
9564 export_dynamic_flag_spec='${wl}-bexpall'
9565 # It seems that -bexpall does not export symbols beginning with
9566 # underscore (_), so it is better to generate a list of symbols to export.
9567 always_export_symbols=yes
9568 if test "$aix_use_runtimelinking" = yes; then
9569 # Warning - without using the other runtime loading flags (-brtl),
9570 # -berok will link without error, but may produce a broken library.
9571 allow_undefined_flag='-berok'
9572 # Determine the default libpath from the value encoded in an
9574 if test "${lt_cv_aix_libpath+set}" = set; then
9575 aix_libpath=$lt_cv_aix_libpath
9577 if ${lt_cv_aix_libpath_+:} false; then :
9578 $as_echo_n "(cached) " >&6
9580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9581 /* end confdefs.h. */
9591 if ac_fn_c_try_link "$LINENO"; then :
9593 lt_aix_libpath_sed='
9594 /Import File Strings/,/^$/ {
9596 s/^0 *\([^ ]*\) *$/\1/
9600 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9601 # Check for a 64-bit object if we didn't find anything.
9602 if test -z "$lt_cv_aix_libpath_"; then
9603 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9606 rm -f core conftest.err conftest.$ac_objext \
9607 conftest$ac_exeext conftest.$ac_ext
9608 if test -z "$lt_cv_aix_libpath_"; then
9609 lt_cv_aix_libpath_="/usr/lib:/lib"
9614 aix_libpath=$lt_cv_aix_libpath_
9617 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9618 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9620 if test "$host_cpu" = ia64; then
9621 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9622 allow_undefined_flag="-z nodefs"
9623 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"
9625 # Determine the default libpath from the value encoded in an
9627 if test "${lt_cv_aix_libpath+set}" = set; then
9628 aix_libpath=$lt_cv_aix_libpath
9630 if ${lt_cv_aix_libpath_+:} false; then :
9631 $as_echo_n "(cached) " >&6
9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634 /* end confdefs.h. */
9644 if ac_fn_c_try_link "$LINENO"; then :
9646 lt_aix_libpath_sed='
9647 /Import File Strings/,/^$/ {
9649 s/^0 *\([^ ]*\) *$/\1/
9653 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9654 # Check for a 64-bit object if we didn't find anything.
9655 if test -z "$lt_cv_aix_libpath_"; then
9656 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9659 rm -f core conftest.err conftest.$ac_objext \
9660 conftest$ac_exeext conftest.$ac_ext
9661 if test -z "$lt_cv_aix_libpath_"; then
9662 lt_cv_aix_libpath_="/usr/lib:/lib"
9667 aix_libpath=$lt_cv_aix_libpath_
9670 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9671 # Warning - without using the other run time loading flags,
9672 # -berok will link without error, but may produce a broken library.
9673 no_undefined_flag=' ${wl}-bernotok'
9674 allow_undefined_flag=' ${wl}-berok'
9675 if test "$with_gnu_ld" = yes; then
9676 # We only use this code for GNU lds that support --whole-archive.
9677 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9679 # Exported symbols can be pulled into shared objects from archives
9680 whole_archive_flag_spec='$convenience'
9682 archive_cmds_need_lc=yes
9683 # This is similar to how AIX traditionally builds its shared libraries.
9684 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9692 # see comment about AmigaOS4 .so support
9693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9694 archive_expsym_cmds=''
9697 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)'
9698 hardcode_libdir_flag_spec='-L$libdir'
9699 hardcode_minus_L=yes
9705 export_dynamic_flag_spec=-rdynamic
9708 cygwin* | mingw* | pw32* | cegcc*)
9709 # When not using gcc, we currently assume that we are using
9710 # Microsoft Visual C++.
9711 # hardcode_libdir_flag_spec is actually meaningless, as there is
9712 # no search path for DLLs.
9713 case $cc_basename in
9716 hardcode_libdir_flag_spec=' '
9717 allow_undefined_flag=unsupported
9718 always_export_symbols=yes
9720 # Tell ltmain to make .lib files, not .a files.
9722 # Tell ltmain to make .dll files, not .so files.
9724 # FIXME: Setting linknames here is a bad hack.
9725 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9726 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9727 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9729 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9731 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9733 # The linker will not automatically build a static lib if we build a DLL.
9734 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9735 enable_shared_with_static_runtimes=yes
9736 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9737 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9739 old_postinstall_cmds='chmod 644 $oldlib'
9740 postlink_cmds='lt_outputfile="@OUTPUT@"~
9741 lt_tool_outputfile="@TOOL_OUTPUT@"~
9742 case $lt_outputfile in
9745 lt_outputfile="$lt_outputfile.exe"
9746 lt_tool_outputfile="$lt_tool_outputfile.exe"
9749 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9750 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9751 $RM "$lt_outputfile.manifest";
9755 # Assume MSVC wrapper
9756 hardcode_libdir_flag_spec=' '
9757 allow_undefined_flag=unsupported
9758 # Tell ltmain to make .lib files, not .a files.
9760 # Tell ltmain to make .dll files, not .so files.
9762 # FIXME: Setting linknames here is a bad hack.
9763 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9764 # The linker will automatically build a .lib file if we build a DLL.
9765 old_archive_from_new_cmds='true'
9766 # FIXME: Should let the user specify the lib program.
9767 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9768 enable_shared_with_static_runtimes=yes
9773 darwin* | rhapsody*)
9776 archive_cmds_need_lc=no
9778 hardcode_automatic=yes
9779 hardcode_shlibpath_var=unsupported
9780 if test "$lt_cv_ld_force_load" = "yes"; then
9781 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\"`'
9784 whole_archive_flag_spec=''
9786 link_all_deplibs=yes
9787 allow_undefined_flag="$_lt_dar_allow_undefined"
9788 case $cc_basename in
9789 ifort*) _lt_dar_can_shared=yes ;;
9790 *) _lt_dar_can_shared=$GCC ;;
9792 if test "$_lt_dar_can_shared" = "yes"; then
9793 output_verbose_link_cmd=func_echo_all
9794 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9795 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9796 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}"
9797 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}"
9806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9807 hardcode_libdir_flag_spec='-L$libdir'
9808 hardcode_shlibpath_var=no
9811 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9812 # support. Future versions do this automatically, but an explicit c++rt0.o
9813 # does not break anything, and helps significantly (at the cost of a little
9816 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9817 hardcode_libdir_flag_spec='-R$libdir'
9819 hardcode_shlibpath_var=no
9822 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9824 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9826 hardcode_minus_L=yes
9827 hardcode_shlibpath_var=no
9830 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9831 freebsd* | dragonfly*)
9832 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9833 hardcode_libdir_flag_spec='-R$libdir'
9835 hardcode_shlibpath_var=no
9839 if test "$GCC" = yes; then
9840 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9842 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9844 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9845 hardcode_libdir_separator=:
9848 # hardcode_minus_L: Not really in the search PATH,
9849 # but as the default location of the library.
9850 hardcode_minus_L=yes
9851 export_dynamic_flag_spec='${wl}-E'
9855 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9856 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9858 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9860 if test "$with_gnu_ld" = no; then
9861 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9862 hardcode_libdir_separator=:
9864 hardcode_direct_absolute=yes
9865 export_dynamic_flag_spec='${wl}-E'
9866 # hardcode_minus_L: Not really in the search PATH,
9867 # but as the default location of the library.
9868 hardcode_minus_L=yes
9873 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9876 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9879 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9882 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9888 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9891 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9895 # Older versions of the 11.00 compiler do not understand -b yet
9896 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9898 $as_echo_n "checking if $CC understands -b... " >&6; }
9899 if ${lt_cv_prog_compiler__b+:} false; then :
9900 $as_echo_n "(cached) " >&6
9902 lt_cv_prog_compiler__b=no
9903 save_LDFLAGS="$LDFLAGS"
9904 LDFLAGS="$LDFLAGS -b"
9905 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9906 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9907 # The linker can only warn and ignore the option if not recognized
9908 # So say no if there are warnings
9909 if test -s conftest.err; then
9910 # Append any errors to the config.log.
9911 cat conftest.err 1>&5
9912 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9913 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9914 if diff conftest.exp conftest.er2 >/dev/null; then
9915 lt_cv_prog_compiler__b=yes
9918 lt_cv_prog_compiler__b=yes
9922 LDFLAGS="$save_LDFLAGS"
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9926 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9928 if test x"$lt_cv_prog_compiler__b" = xyes; then
9929 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9931 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9937 if test "$with_gnu_ld" = no; then
9938 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9939 hardcode_libdir_separator=:
9944 hardcode_shlibpath_var=no
9948 hardcode_direct_absolute=yes
9949 export_dynamic_flag_spec='${wl}-E'
9951 # hardcode_minus_L: Not really in the search PATH,
9952 # but as the default location of the library.
9953 hardcode_minus_L=yes
9959 irix5* | irix6* | nonstopux*)
9960 if test "$GCC" = yes; then
9961 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'
9962 # Try to use the -exported_symbol ld option, if it does not
9963 # work, assume that -exports_file does not work either and
9964 # implicitly export all symbols.
9965 # This should be the same for all languages, so no per-tag cache variable.
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9967 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9968 if ${lt_cv_irix_exported_symbol+:} false; then :
9969 $as_echo_n "(cached) " >&6
9971 save_LDFLAGS="$LDFLAGS"
9972 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9974 /* end confdefs.h. */
9975 int foo (void) { return 0; }
9977 if ac_fn_c_try_link "$LINENO"; then :
9978 lt_cv_irix_exported_symbol=yes
9980 lt_cv_irix_exported_symbol=no
9982 rm -f core conftest.err conftest.$ac_objext \
9983 conftest$ac_exeext conftest.$ac_ext
9984 LDFLAGS="$save_LDFLAGS"
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9987 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9988 if test "$lt_cv_irix_exported_symbol" = yes; then
9989 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'
9992 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'
9993 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'
9995 archive_cmds_need_lc='no'
9996 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9997 hardcode_libdir_separator=:
9999 link_all_deplibs=yes
10003 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10004 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10006 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10008 hardcode_libdir_flag_spec='-R$libdir'
10009 hardcode_direct=yes
10010 hardcode_shlibpath_var=no
10014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10015 hardcode_direct=yes
10016 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10017 hardcode_libdir_separator=:
10018 hardcode_shlibpath_var=no
10025 if test -f /usr/libexec/ld.so; then
10026 hardcode_direct=yes
10027 hardcode_shlibpath_var=no
10028 hardcode_direct_absolute=yes
10029 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10030 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10031 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10032 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10033 export_dynamic_flag_spec='${wl}-E'
10036 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10037 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10038 hardcode_libdir_flag_spec='-R$libdir'
10041 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10042 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10052 hardcode_libdir_flag_spec='-L$libdir'
10053 hardcode_minus_L=yes
10054 allow_undefined_flag=unsupported
10055 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10056 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10060 if test "$GCC" = yes; then
10061 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10062 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'
10064 allow_undefined_flag=' -expect_unresolved \*'
10065 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'
10067 archive_cmds_need_lc='no'
10068 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10069 hardcode_libdir_separator=:
10072 osf4* | osf5*) # as osf3* with the addition of -msym flag
10073 if test "$GCC" = yes; then
10074 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10075 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'
10076 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10078 allow_undefined_flag=' -expect_unresolved \*'
10079 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'
10080 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~
10081 $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'
10083 # Both c and cxx compiler support -rpath directly
10084 hardcode_libdir_flag_spec='-rpath $libdir'
10086 archive_cmds_need_lc='no'
10087 hardcode_libdir_separator=:
10091 no_undefined_flag=' -z defs'
10092 if test "$GCC" = yes; then
10094 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10095 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10096 $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'
10098 case `$CC -V 2>&1` in
10101 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10102 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10103 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10107 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10108 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10109 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10113 hardcode_libdir_flag_spec='-R$libdir'
10114 hardcode_shlibpath_var=no
10116 solaris2.[0-5] | solaris2.[0-5].*) ;;
10118 # The compiler driver will combine and reorder linker options,
10119 # but understands `-z linker_flag'. GCC discards it without `$wl',
10120 # but is careful enough not to reorder.
10121 # Supported since Solaris 2.6 (maybe 2.5.1?)
10122 if test "$GCC" = yes; then
10123 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10125 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10129 link_all_deplibs=yes
10133 if test "x$host_vendor" = xsequent; then
10134 # Use $CC to link under sequent, because it throws in some extra .o
10135 # files that make .init and .fini sections work.
10136 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10138 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10140 hardcode_libdir_flag_spec='-L$libdir'
10141 hardcode_direct=yes
10142 hardcode_minus_L=yes
10143 hardcode_shlibpath_var=no
10147 case $host_vendor in
10149 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10150 hardcode_direct=yes # is this really true???
10153 ## LD is ld it makes a PLAMLIB
10154 ## CC just makes a GrossModule.
10155 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10156 reload_cmds='$CC -r -o $output$reload_objs'
10160 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10161 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10164 runpath_var='LD_RUN_PATH'
10165 hardcode_shlibpath_var=no
10169 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10170 hardcode_shlibpath_var=no
10171 export_dynamic_flag_spec='-Bexport'
10175 if test -d /usr/nec; then
10176 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10177 hardcode_shlibpath_var=no
10178 runpath_var=LD_RUN_PATH
10179 hardcode_runpath_var=yes
10184 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10185 no_undefined_flag='${wl}-z,text'
10186 archive_cmds_need_lc=no
10187 hardcode_shlibpath_var=no
10188 runpath_var='LD_RUN_PATH'
10190 if test "$GCC" = yes; then
10191 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10192 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10194 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10195 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10199 sysv5* | sco3.2v5* | sco5v6*)
10200 # Note: We can NOT use -z defs as we might desire, because we do not
10201 # link with -lc, and that would cause any symbols used from libc to
10202 # always be unresolved, which means just about no library would
10203 # ever link correctly. If we're not using GNU ld we use -z text
10204 # though, which does catch some bad symbols but isn't as heavy-handed
10206 no_undefined_flag='${wl}-z,text'
10207 allow_undefined_flag='${wl}-z,nodefs'
10208 archive_cmds_need_lc=no
10209 hardcode_shlibpath_var=no
10210 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10211 hardcode_libdir_separator=':'
10212 link_all_deplibs=yes
10213 export_dynamic_flag_spec='${wl}-Bexport'
10214 runpath_var='LD_RUN_PATH'
10216 if test "$GCC" = yes; then
10217 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10218 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10220 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10221 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10227 hardcode_libdir_flag_spec='-L$libdir'
10228 hardcode_shlibpath_var=no
10236 if test x$host_vendor = xsni; then
10238 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10239 export_dynamic_flag_spec='${wl}-Blargedynsym'
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10246 $as_echo "$ld_shlibs" >&6; }
10247 test "$ld_shlibs" = no && can_build_shared=no
10249 with_gnu_ld=$with_gnu_ld
10266 # Do we need to explicitly link libc?
10268 case "x$archive_cmds_need_lc" in
10270 # Assume -lc should be added
10271 archive_cmds_need_lc=yes
10273 if test "$enable_shared" = yes && test "$GCC" = yes; then
10274 case $archive_cmds in
10276 # FIXME: we may have to deal with multi-command sequences.
10279 # Test whether the compiler implicitly links with -lc since on some
10280 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10281 # to ld, don't add -lc before -lgcc.
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10283 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10284 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10285 $as_echo_n "(cached) " >&6
10288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10291 (eval $ac_compile) 2>&5
10293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10294 test $ac_status = 0; } 2>conftest.err; then
10297 libobjs=conftest.$ac_objext
10299 wl=$lt_prog_compiler_wl
10300 pic_flag=$lt_prog_compiler_pic
10306 lt_save_allow_undefined_flag=$allow_undefined_flag
10307 allow_undefined_flag=
10308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10309 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10312 test $ac_status = 0; }
10314 lt_cv_archive_cmds_need_lc=no
10316 lt_cv_archive_cmds_need_lc=yes
10318 allow_undefined_flag=$lt_save_allow_undefined_flag
10320 cat conftest.err 1>&5
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10326 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10327 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10486 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10488 if test "$GCC" = yes; then
10490 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10491 *) lt_awk_arg="/^libraries:/" ;;
10494 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10495 *) lt_sed_strip_eq="s,=/,/,g" ;;
10497 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10498 case $lt_search_path_spec in
10500 # if the path contains ";" then we assume it to be the separator
10501 # otherwise default to the standard path separator (i.e. ":") - it is
10502 # assumed that no part of a normal pathname contains ";" but that should
10503 # okay in the real world where ";" in dirpaths is itself problematic.
10504 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10507 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10510 # Ok, now we have the path, separated by spaces, we can step through it
10511 # and add multilib dir if necessary.
10512 lt_tmp_lt_search_path_spec=
10513 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10514 for lt_sys_path in $lt_search_path_spec; do
10515 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10516 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10518 test -d "$lt_sys_path" && \
10519 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10522 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10523 BEGIN {RS=" "; FS="/|\n";} {
10526 for (lt_i = NF; lt_i > 0; lt_i--) {
10527 if ($lt_i != "" && $lt_i != ".") {
10528 if ($lt_i == "..") {
10531 if (lt_count == 0) {
10532 lt_foo="/" $lt_i lt_foo;
10539 if (lt_foo != "") { lt_freq[lt_foo]++; }
10540 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10542 # AWK program above erroneously prepends '/' to C:/dos/paths
10545 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10546 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10548 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10550 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10552 library_names_spec=
10553 libname_spec='lib$name'
10557 postuninstall_cmds=
10561 shlibpath_overrides_runpath=unknown
10563 dynamic_linker="$host_os ld.so"
10564 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10565 need_lib_prefix=unknown
10566 hardcode_into_libs=no
10568 # when you set need_version to no, make sure it does not cause -set_version
10569 # flags to be left without arguments
10570 need_version=unknown
10574 version_type=linux # correct to gnu/linux during the next big refactor
10575 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10576 shlibpath_var=LIBPATH
10578 # AIX 3 has no versioning support, so we append a major version to the name.
10579 soname_spec='${libname}${release}${shared_ext}$major'
10583 version_type=linux # correct to gnu/linux during the next big refactor
10586 hardcode_into_libs=yes
10587 if test "$host_cpu" = ia64; then
10588 # AIX 5 supports IA64
10589 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10590 shlibpath_var=LD_LIBRARY_PATH
10592 # With GCC up to 2.95.x, collect2 would create an import file
10593 # for dependence libraries. The import file would start with
10594 # the line `#! .'. This would cause the generated library to
10595 # depend on `.', always an invalid library. This was fixed in
10596 # development snapshots of GCC prior to 3.0.
10598 aix4 | aix4.[01] | aix4.[01].*)
10599 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10601 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10604 can_build_shared=no
10608 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10609 # soname into executable. Probably we can add versioning support to
10610 # collect2, so additional links can be useful in future.
10611 if test "$aix_use_runtimelinking" = yes; then
10612 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10613 # instead of lib<name>.a to let people know that these are not
10614 # typical AIX shared libraries.
10615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10617 # We preserve .a as extension for shared libraries through AIX4.2
10618 # and later when we are not doing run time linking.
10619 library_names_spec='${libname}${release}.a $libname.a'
10620 soname_spec='${libname}${release}${shared_ext}$major'
10622 shlibpath_var=LIBPATH
10629 # Since July 2007 AmigaOS4 officially supports .so libraries.
10630 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10634 library_names_spec='$libname.ixlibrary $libname.a'
10635 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10636 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10642 library_names_spec='${libname}${shared_ext}'
10643 dynamic_linker="$host_os ld.so"
10644 shlibpath_var=LIBRARY_PATH
10648 version_type=linux # correct to gnu/linux during the next big refactor
10650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10651 soname_spec='${libname}${release}${shared_ext}$major'
10652 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10653 shlibpath_var=LD_LIBRARY_PATH
10654 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10655 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10656 # the default ld.so.conf also contains /usr/contrib/lib and
10657 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10658 # libtool to hard-code these into programs
10661 cygwin* | mingw* | pw32* | cegcc*)
10662 version_type=windows
10667 case $GCC,$cc_basename in
10670 library_names_spec='$libname.dll.a'
10671 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10672 postinstall_cmds='base_file=`basename \${file}`~
10673 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10674 dldir=$destdir/`dirname \$dlpath`~
10675 test -d \$dldir || mkdir -p \$dldir~
10676 $install_prog $dir/$dlname \$dldir/$dlname~
10677 chmod a+x \$dldir/$dlname~
10678 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10679 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10681 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10682 dlpath=$dir/\$dldll~
10684 shlibpath_overrides_runpath=yes
10688 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10689 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10691 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10694 # MinGW DLLs use traditional 'lib' prefix
10695 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10698 # pw32 DLLs use 'pw' prefix rather than 'lib'
10699 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10702 dynamic_linker='Win32 ld.exe'
10707 libname_spec='$name'
10708 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10709 library_names_spec='${libname}.dll.lib'
10713 sys_lib_search_path_spec=
10716 for lt_path in $LIB
10719 # Let DOS variable expansion print the short 8.3 style file name.
10720 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10721 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10724 # Convert to MSYS style.
10725 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10728 # Convert to unix form, then to dos form, then back to unix form
10729 # but this time dos style (no spaces!) so that the unix form looks
10730 # like /cygdrive/c/PROGRA~1:/cygdr...
10731 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10732 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10733 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10736 sys_lib_search_path_spec="$LIB"
10737 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10738 # It is most probably a Windows format PATH.
10739 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10741 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10743 # FIXME: find the short name or the path components, as spaces are
10744 # common. (e.g. "Program Files" -> "PROGRA~1")
10748 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10749 postinstall_cmds='base_file=`basename \${file}`~
10750 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10751 dldir=$destdir/`dirname \$dlpath`~
10752 test -d \$dldir || mkdir -p \$dldir~
10753 $install_prog $dir/$dlname \$dldir/$dlname'
10754 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10755 dlpath=$dir/\$dldll~
10757 shlibpath_overrides_runpath=yes
10758 dynamic_linker='Win32 link.exe'
10762 # Assume MSVC wrapper
10763 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10764 dynamic_linker='Win32 ld.exe'
10767 # FIXME: first we should search . and the directory the executable is in
10771 darwin* | rhapsody*)
10772 dynamic_linker="$host_os dyld"
10773 version_type=darwin
10776 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10777 soname_spec='${libname}${release}${major}$shared_ext'
10778 shlibpath_overrides_runpath=yes
10779 shlibpath_var=DYLD_LIBRARY_PATH
10780 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10782 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10783 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10787 version_type=linux # correct to gnu/linux during the next big refactor
10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10791 soname_spec='${libname}${release}${shared_ext}$major'
10792 shlibpath_var=LD_LIBRARY_PATH
10795 freebsd* | dragonfly*)
10796 # DragonFly does not have aout. When/if they implement a new
10797 # versioning mechanism, adjust this.
10798 if test -x /usr/bin/objformat; then
10799 objformat=`/usr/bin/objformat`
10802 freebsd[23].*) objformat=aout ;;
10803 *) objformat=elf ;;
10806 version_type=freebsd-$objformat
10807 case $version_type in
10809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10814 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10818 shlibpath_var=LD_LIBRARY_PATH
10821 shlibpath_overrides_runpath=yes
10823 freebsd3.[01]* | freebsdelf3.[01]*)
10824 shlibpath_overrides_runpath=yes
10825 hardcode_into_libs=yes
10827 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10828 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10829 shlibpath_overrides_runpath=no
10830 hardcode_into_libs=yes
10832 *) # from 4.6 on, and DragonFly
10833 shlibpath_overrides_runpath=yes
10834 hardcode_into_libs=yes
10840 version_type=linux # correct to gnu/linux during the next big refactor
10843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10844 soname_spec='${libname}${release}${shared_ext}$major'
10845 shlibpath_var=LD_LIBRARY_PATH
10846 shlibpath_overrides_runpath=no
10847 hardcode_into_libs=yes
10851 version_type=linux # correct to gnu/linux during the next big refactor
10854 dynamic_linker="$host_os runtime_loader"
10855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10856 soname_spec='${libname}${release}${shared_ext}$major'
10857 shlibpath_var=LIBRARY_PATH
10858 shlibpath_overrides_runpath=yes
10859 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10860 hardcode_into_libs=yes
10863 hpux9* | hpux10* | hpux11*)
10864 # Give a soname corresponding to the major version so that dld.sl refuses to
10865 # link against other versions.
10872 hardcode_into_libs=yes
10873 dynamic_linker="$host_os dld.so"
10874 shlibpath_var=LD_LIBRARY_PATH
10875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10877 soname_spec='${libname}${release}${shared_ext}$major'
10878 if test "X$HPUX_IA64_MODE" = X32; then
10879 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10881 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10887 hardcode_into_libs=yes
10888 dynamic_linker="$host_os dld.sl"
10889 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10892 soname_spec='${libname}${release}${shared_ext}$major'
10893 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10894 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10898 dynamic_linker="$host_os dld.sl"
10899 shlibpath_var=SHLIB_PATH
10900 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10902 soname_spec='${libname}${release}${shared_ext}$major'
10905 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10906 postinstall_cmds='chmod 555 $lib'
10907 # or fails outright, so override atomically:
10908 install_override_mode=555
10912 version_type=linux # correct to gnu/linux during the next big refactor
10915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10916 soname_spec='${libname}${release}${shared_ext}$major'
10917 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10918 shlibpath_var=LD_LIBRARY_PATH
10919 shlibpath_overrides_runpath=no
10920 hardcode_into_libs=yes
10923 irix5* | irix6* | nonstopux*)
10925 nonstopux*) version_type=nonstopux ;;
10927 if test "$lt_cv_prog_gnu_ld" = yes; then
10928 version_type=linux # correct to gnu/linux during the next big refactor
10935 soname_spec='${libname}${release}${shared_ext}$major'
10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10938 irix5* | nonstopux*)
10939 libsuff= shlibsuff=
10942 case $LD in # libtool.m4 will add one of these switches to LD
10943 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10944 libsuff= shlibsuff= libmagic=32-bit;;
10945 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10946 libsuff=32 shlibsuff=N32 libmagic=N32;;
10947 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10948 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10949 *) libsuff= shlibsuff= libmagic=never-match;;
10953 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10954 shlibpath_overrides_runpath=no
10955 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10956 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10957 hardcode_into_libs=yes
10960 # No shared lib support for Linux oldld, aout, or coff.
10961 linux*oldld* | linux*aout* | linux*coff*)
10965 # This must be glibc/ELF.
10966 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10967 version_type=linux # correct to gnu/linux during the next big refactor
10970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10971 soname_spec='${libname}${release}${shared_ext}$major'
10972 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10973 shlibpath_var=LD_LIBRARY_PATH
10974 shlibpath_overrides_runpath=no
10976 # Some binutils ld are patched to set DT_RUNPATH
10977 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10978 $as_echo_n "(cached) " >&6
10980 lt_cv_shlibpath_overrides_runpath=no
10981 save_LDFLAGS=$LDFLAGS
10982 save_libdir=$libdir
10983 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10984 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10986 /* end confdefs.h. */
10996 if ac_fn_c_try_link "$LINENO"; then :
10997 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10998 lt_cv_shlibpath_overrides_runpath=yes
11001 rm -f core conftest.err conftest.$ac_objext \
11002 conftest$ac_exeext conftest.$ac_ext
11003 LDFLAGS=$save_LDFLAGS
11004 libdir=$save_libdir
11008 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11010 # This implies no fast_install, which is unacceptable.
11011 # Some rework will be needed to allow for fast_install
11012 # before this can be enabled.
11013 hardcode_into_libs=yes
11015 # Append ld.so.conf contents to the search path
11016 if test -f /etc/ld.so.conf; then
11017 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' ' '`
11018 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11021 # We used to test for /lib/ld.so.1 and disable shared libraries on
11022 # powerpc, because MkLinux only supported shared libraries with the
11023 # GNU dynamic linker. Since this was broken with cross compilers,
11024 # most powerpc-linux boxes support dynamic linking these days and
11025 # people can always --disable-shared, the test was removed, and we
11026 # assume the GNU/Linux dynamic linker is in use.
11027 dynamic_linker='GNU/Linux ld.so'
11034 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11036 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11037 dynamic_linker='NetBSD (a.out) ld.so'
11039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11040 soname_spec='${libname}${release}${shared_ext}$major'
11041 dynamic_linker='NetBSD ld.elf_so'
11043 shlibpath_var=LD_LIBRARY_PATH
11044 shlibpath_overrides_runpath=yes
11045 hardcode_into_libs=yes
11049 version_type=linux # correct to gnu/linux during the next big refactor
11050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11051 shlibpath_var=LD_LIBRARY_PATH
11052 shlibpath_overrides_runpath=yes
11059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11060 soname_spec='${libname}${release}${shared_ext}$major'
11061 shlibpath_var=LD_LIBRARY_PATH
11062 shlibpath_overrides_runpath=no
11063 hardcode_into_libs=yes
11064 dynamic_linker='ldqnx.so'
11069 sys_lib_dlsearch_path_spec="/usr/lib"
11071 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11073 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11074 *) need_version=no ;;
11076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11078 shlibpath_var=LD_LIBRARY_PATH
11079 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11081 openbsd2.[89] | openbsd2.[89].*)
11082 shlibpath_overrides_runpath=no
11085 shlibpath_overrides_runpath=yes
11089 shlibpath_overrides_runpath=yes
11094 libname_spec='$name'
11097 library_names_spec='$libname${shared_ext} $libname.a'
11098 dynamic_linker='OS/2 ld.exe'
11099 shlibpath_var=LIBPATH
11102 osf3* | osf4* | osf5*)
11106 soname_spec='${libname}${release}${shared_ext}$major'
11107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11108 shlibpath_var=LD_LIBRARY_PATH
11109 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11110 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11118 version_type=linux # correct to gnu/linux during the next big refactor
11121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11122 soname_spec='${libname}${release}${shared_ext}$major'
11123 shlibpath_var=LD_LIBRARY_PATH
11124 shlibpath_overrides_runpath=yes
11125 hardcode_into_libs=yes
11126 # ldd complains unless libraries are executable
11127 postinstall_cmds='chmod +x $lib'
11132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11133 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11134 shlibpath_var=LD_LIBRARY_PATH
11135 shlibpath_overrides_runpath=yes
11136 if test "$with_gnu_ld" = yes; then
11143 version_type=linux # correct to gnu/linux during the next big refactor
11144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11145 soname_spec='${libname}${release}${shared_ext}$major'
11146 shlibpath_var=LD_LIBRARY_PATH
11147 case $host_vendor in
11149 shlibpath_overrides_runpath=no
11151 runpath_var=LD_RUN_PATH
11159 shlibpath_overrides_runpath=no
11160 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11166 if test -d /usr/nec ;then
11167 version_type=linux # correct to gnu/linux during the next big refactor
11168 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11169 soname_spec='$libname${shared_ext}.$major'
11170 shlibpath_var=LD_LIBRARY_PATH
11174 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11175 version_type=freebsd-elf
11178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11179 soname_spec='${libname}${release}${shared_ext}$major'
11180 shlibpath_var=LD_LIBRARY_PATH
11181 shlibpath_overrides_runpath=yes
11182 hardcode_into_libs=yes
11183 if test "$with_gnu_ld" = yes; then
11184 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11186 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11189 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11193 sys_lib_dlsearch_path_spec='/usr/lib'
11197 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11198 version_type=linux # correct to gnu/linux during the next big refactor
11201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11202 shlibpath_var=LD_LIBRARY_PATH
11203 shlibpath_overrides_runpath=no
11204 hardcode_into_libs=yes
11208 version_type=linux # correct to gnu/linux during the next big refactor
11209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11210 soname_spec='${libname}${release}${shared_ext}$major'
11211 shlibpath_var=LD_LIBRARY_PATH
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11219 $as_echo "$dynamic_linker" >&6; }
11220 test "$dynamic_linker" = no && can_build_shared=no
11222 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11223 if test "$GCC" = yes; then
11224 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11227 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11228 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11230 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11231 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11326 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11328 if test -n "$hardcode_libdir_flag_spec" ||
11329 test -n "$runpath_var" ||
11330 test "X$hardcode_automatic" = "Xyes" ; then
11332 # We can hardcode non-existent directories.
11333 if test "$hardcode_direct" != no &&
11334 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11335 # have to relink, otherwise we might link with an installed library
11336 # when we should be linking with a yet-to-be-installed one
11337 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11338 test "$hardcode_minus_L" != no; then
11339 # Linking always hardcodes the temporary library directory.
11340 hardcode_action=relink
11342 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11343 hardcode_action=immediate
11346 # We cannot hardcode anything, or else we can only hardcode existing
11348 hardcode_action=unsupported
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11351 $as_echo "$hardcode_action" >&6; }
11353 if test "$hardcode_action" = relink ||
11354 test "$inherit_rpath" = yes; then
11355 # Fast installation is not supported
11356 enable_fast_install=no
11357 elif test "$shlibpath_overrides_runpath" = yes ||
11358 test "$enable_shared" = no; then
11359 # Fast installation is not necessary
11360 enable_fast_install=needless
11368 if test "x$enable_dlopen" != xyes; then
11369 enable_dlopen=unknown
11370 enable_dlopen_self=unknown
11371 enable_dlopen_self_static=unknown
11378 lt_cv_dlopen="load_add_on"
11380 lt_cv_dlopen_self=yes
11383 mingw* | pw32* | cegcc*)
11384 lt_cv_dlopen="LoadLibrary"
11389 lt_cv_dlopen="dlopen"
11394 # if libdl is installed we need to link against it
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11396 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11397 if ${ac_cv_lib_dl_dlopen+:} false; then :
11398 $as_echo_n "(cached) " >&6
11400 ac_check_lib_save_LIBS=$LIBS
11402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11403 /* end confdefs.h. */
11405 /* Override any GCC internal prototype to avoid an error.
11406 Use char because int might match the return type of a GCC
11407 builtin and then its argument prototype would still apply. */
11420 if ac_fn_c_try_link "$LINENO"; then :
11421 ac_cv_lib_dl_dlopen=yes
11423 ac_cv_lib_dl_dlopen=no
11425 rm -f core conftest.err conftest.$ac_objext \
11426 conftest$ac_exeext conftest.$ac_ext
11427 LIBS=$ac_check_lib_save_LIBS
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11430 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11431 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11432 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11435 lt_cv_dlopen="dyld"
11437 lt_cv_dlopen_self=yes
11444 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11445 if test "x$ac_cv_func_shl_load" = xyes; then :
11446 lt_cv_dlopen="shl_load"
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11449 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11450 if ${ac_cv_lib_dld_shl_load+:} false; then :
11451 $as_echo_n "(cached) " >&6
11453 ac_check_lib_save_LIBS=$LIBS
11455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11456 /* end confdefs.h. */
11458 /* Override any GCC internal prototype to avoid an error.
11459 Use char because int might match the return type of a GCC
11460 builtin and then its argument prototype would still apply. */
11468 return shl_load ();
11473 if ac_fn_c_try_link "$LINENO"; then :
11474 ac_cv_lib_dld_shl_load=yes
11476 ac_cv_lib_dld_shl_load=no
11478 rm -f core conftest.err conftest.$ac_objext \
11479 conftest$ac_exeext conftest.$ac_ext
11480 LIBS=$ac_check_lib_save_LIBS
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11483 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11484 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11485 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11487 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11488 if test "x$ac_cv_func_dlopen" = xyes; then :
11489 lt_cv_dlopen="dlopen"
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11492 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11493 if ${ac_cv_lib_dl_dlopen+:} false; then :
11494 $as_echo_n "(cached) " >&6
11496 ac_check_lib_save_LIBS=$LIBS
11498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11499 /* end confdefs.h. */
11501 /* Override any GCC internal prototype to avoid an error.
11502 Use char because int might match the return type of a GCC
11503 builtin and then its argument prototype would still apply. */
11516 if ac_fn_c_try_link "$LINENO"; then :
11517 ac_cv_lib_dl_dlopen=yes
11519 ac_cv_lib_dl_dlopen=no
11521 rm -f core conftest.err conftest.$ac_objext \
11522 conftest$ac_exeext conftest.$ac_ext
11523 LIBS=$ac_check_lib_save_LIBS
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11526 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11527 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11528 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11531 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11532 if ${ac_cv_lib_svld_dlopen+:} false; then :
11533 $as_echo_n "(cached) " >&6
11535 ac_check_lib_save_LIBS=$LIBS
11536 LIBS="-lsvld $LIBS"
11537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11538 /* end confdefs.h. */
11540 /* Override any GCC internal prototype to avoid an error.
11541 Use char because int might match the return type of a GCC
11542 builtin and then its argument prototype would still apply. */
11555 if ac_fn_c_try_link "$LINENO"; then :
11556 ac_cv_lib_svld_dlopen=yes
11558 ac_cv_lib_svld_dlopen=no
11560 rm -f core conftest.err conftest.$ac_objext \
11561 conftest$ac_exeext conftest.$ac_ext
11562 LIBS=$ac_check_lib_save_LIBS
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11565 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11566 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11567 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11570 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11571 if ${ac_cv_lib_dld_dld_link+:} false; then :
11572 $as_echo_n "(cached) " >&6
11574 ac_check_lib_save_LIBS=$LIBS
11576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577 /* end confdefs.h. */
11579 /* Override any GCC internal prototype to avoid an error.
11580 Use char because int might match the return type of a GCC
11581 builtin and then its argument prototype would still apply. */
11589 return dld_link ();
11594 if ac_fn_c_try_link "$LINENO"; then :
11595 ac_cv_lib_dld_dld_link=yes
11597 ac_cv_lib_dld_dld_link=no
11599 rm -f core conftest.err conftest.$ac_objext \
11600 conftest$ac_exeext conftest.$ac_ext
11601 LIBS=$ac_check_lib_save_LIBS
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11604 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11605 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11606 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11627 if test "x$lt_cv_dlopen" != xno; then
11633 case $lt_cv_dlopen in
11635 save_CPPFLAGS="$CPPFLAGS"
11636 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11638 save_LDFLAGS="$LDFLAGS"
11639 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11642 LIBS="$lt_cv_dlopen_libs $LIBS"
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11645 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11646 if ${lt_cv_dlopen_self+:} false; then :
11647 $as_echo_n "(cached) " >&6
11649 if test "$cross_compiling" = yes; then :
11650 lt_cv_dlopen_self=cross
11652 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11653 lt_status=$lt_dlunknown
11654 cat > conftest.$ac_ext <<_LT_EOF
11655 #line $LINENO "configure"
11656 #include "confdefs.h"
11665 # define LT_DLGLOBAL RTLD_GLOBAL
11668 # define LT_DLGLOBAL DL_GLOBAL
11670 # define LT_DLGLOBAL 0
11674 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11675 find out it does not work in some platform. */
11676 #ifndef LT_DLLAZY_OR_NOW
11678 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11681 # define LT_DLLAZY_OR_NOW DL_LAZY
11684 # define LT_DLLAZY_OR_NOW RTLD_NOW
11687 # define LT_DLLAZY_OR_NOW DL_NOW
11689 # define LT_DLLAZY_OR_NOW 0
11696 /* When -fvisbility=hidden is used, assume the code has been annotated
11697 correspondingly for the symbols needed. */
11698 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11699 int fnord () __attribute__((visibility("default")));
11702 int fnord () { return 42; }
11705 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11706 int status = $lt_dlunknown;
11710 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11713 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11714 else puts (dlerror ());
11716 /* dlclose (self); */
11724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11725 (eval $ac_link) 2>&5
11727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11728 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11729 (./conftest; exit; ) >&5 2>/dev/null
11731 case x$lt_status in
11732 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11733 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11734 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11737 # compilation failed
11738 lt_cv_dlopen_self=no
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11746 $as_echo "$lt_cv_dlopen_self" >&6; }
11748 if test "x$lt_cv_dlopen_self" = xyes; then
11749 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11751 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11752 if ${lt_cv_dlopen_self_static+:} false; then :
11753 $as_echo_n "(cached) " >&6
11755 if test "$cross_compiling" = yes; then :
11756 lt_cv_dlopen_self_static=cross
11758 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11759 lt_status=$lt_dlunknown
11760 cat > conftest.$ac_ext <<_LT_EOF
11761 #line $LINENO "configure"
11762 #include "confdefs.h"
11771 # define LT_DLGLOBAL RTLD_GLOBAL
11774 # define LT_DLGLOBAL DL_GLOBAL
11776 # define LT_DLGLOBAL 0
11780 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11781 find out it does not work in some platform. */
11782 #ifndef LT_DLLAZY_OR_NOW
11784 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11787 # define LT_DLLAZY_OR_NOW DL_LAZY
11790 # define LT_DLLAZY_OR_NOW RTLD_NOW
11793 # define LT_DLLAZY_OR_NOW DL_NOW
11795 # define LT_DLLAZY_OR_NOW 0
11802 /* When -fvisbility=hidden is used, assume the code has been annotated
11803 correspondingly for the symbols needed. */
11804 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11805 int fnord () __attribute__((visibility("default")));
11808 int fnord () { return 42; }
11811 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11812 int status = $lt_dlunknown;
11816 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11819 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11820 else puts (dlerror ());
11822 /* dlclose (self); */
11830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11831 (eval $ac_link) 2>&5
11833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11834 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11835 (./conftest; exit; ) >&5 2>/dev/null
11837 case x$lt_status in
11838 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11839 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11840 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11843 # compilation failed
11844 lt_cv_dlopen_self_static=no
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11852 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11855 CPPFLAGS="$save_CPPFLAGS"
11856 LDFLAGS="$save_LDFLAGS"
11861 case $lt_cv_dlopen_self in
11862 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11863 *) enable_dlopen_self=unknown ;;
11866 case $lt_cv_dlopen_self_static in
11867 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11868 *) enable_dlopen_self_static=unknown ;;
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11891 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11892 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11893 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11894 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11896 $as_echo "yes" >&6; }
11898 # FIXME - insert some real tests, host_os isn't really good enough
11901 if test -n "$STRIP" ; then
11902 striplib="$STRIP -x"
11903 old_striplib="$STRIP -S"
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11905 $as_echo "yes" >&6; }
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11908 $as_echo "no" >&6; }
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11913 $as_echo "no" >&6; }
11929 # Report which library types will actually be built
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11931 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11933 $as_echo "$can_build_shared" >&6; }
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11936 $as_echo_n "checking whether to build shared libraries... " >&6; }
11937 test "$can_build_shared" = "no" && enable_shared=no
11939 # On AIX, shared libraries and static libraries use the same namespace, and
11940 # are all built from PIC.
11943 test "$enable_shared" = yes && enable_static=no
11944 if test -n "$RANLIB"; then
11945 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11946 postinstall_cmds='$RANLIB $lib'
11951 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11952 test "$enable_shared" = yes && enable_static=no
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11957 $as_echo "$enable_shared" >&6; }
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11960 $as_echo_n "checking whether to build static libraries... " >&6; }
11961 # Make sure either enable_shared or enable_static is yes.
11962 test "$enable_shared" = yes || enable_static=yes
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11964 $as_echo "$enable_static" >&6; }
11971 ac_cpp='$CPP $CPPFLAGS'
11972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11992 ac_config_commands="$ac_config_commands libtool"
11997 # Only expand once:
12007 cat >>confdefs.h <<_ACEOF
12008 #define LIB_MAJ $LIB_MAJ
12012 # Check whether --enable-debug was given.
12013 if test "${enable_debug+set}" = set; then :
12014 enableval=$enable_debug;
12015 $as_echo "#define OPENPAM_DEBUG 1" >>confdefs.h
12020 # Check whether --enable-unversioned-modules was given.
12021 if test "${enable_unversioned_modules+set}" = set; then :
12022 enableval=$enable_unversioned_modules; if test x"$enableval" = x"no"; then :
12025 $as_echo "#define DISABLE_UNVERSIONED_MODULES 1" >>confdefs.h
12033 # Check whether --with-modules-dir was given.
12034 if test "${with_modules_dir+set}" = set; then :
12035 withval=$with_modules_dir; if test x"$withval" != x"no"; then :
12037 OPENPAM_MODULES_DIR="$withval"
12039 cat >>confdefs.h <<_ACEOF
12040 #define OPENPAM_MODULES_DIR "${OPENPAM_MODULES_DIR%/}"
12048 if test x"$OPENPAM_MODULES_DIR" != x""; then
12049 CUSTOM_MODULES_DIR_TRUE=
12050 CUSTOM_MODULES_DIR_FALSE='#'
12052 CUSTOM_MODULES_DIR_TRUE='#'
12053 CUSTOM_MODULES_DIR_FALSE=
12058 # Check whether --with-doc was given.
12059 if test "${with_doc+set}" = set; then :
12065 if test x"$with_doc" = x"yes"; then
12075 # Check whether --with-pam-unix was given.
12076 if test "${with_pam_unix+set}" = set; then :
12077 withval=$with_pam_unix;
12082 if test x"$with_pam_unix" = x"yes"; then
12083 WITH_PAM_UNIX_TRUE=
12084 WITH_PAM_UNIX_FALSE='#'
12086 WITH_PAM_UNIX_TRUE='#'
12087 WITH_PAM_UNIX_FALSE=
12092 # Check whether --with-pamtest was given.
12093 if test "${with_pamtest+set}" = set; then :
12094 withval=$with_pamtest;
12099 if test x"$with_pamtest" = x"yes"; then
12101 WITH_PAMTEST_FALSE='#'
12103 WITH_PAMTEST_TRUE='#'
12104 WITH_PAMTEST_FALSE=
12109 # Check whether --with-su was given.
12110 if test "${with_su+set}" = set; then :
12116 if test x"$with_su" = x"yes"; then
12125 for ac_header in crypt.h
12127 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
12128 if test "x$ac_cv_header_crypt_h" = xyes; then :
12129 cat >>confdefs.h <<_ACEOF
12130 #define HAVE_CRYPT_H 1
12138 for ac_func in asprintf vasprintf
12140 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12141 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12142 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12143 cat >>confdefs.h <<_ACEOF
12144 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12150 for ac_func in dlfunc fdlopen
12152 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12153 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12154 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12155 cat >>confdefs.h <<_ACEOF
12156 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12162 for ac_func in fpurge
12164 ac_fn_c_check_func "$LINENO" "fpurge" "ac_cv_func_fpurge"
12165 if test "x$ac_cv_func_fpurge" = xyes; then :
12166 cat >>confdefs.h <<_ACEOF
12167 #define HAVE_FPURGE 1
12173 for ac_func in setlogmask
12175 ac_fn_c_check_func "$LINENO" "setlogmask" "ac_cv_func_setlogmask"
12176 if test "x$ac_cv_func_setlogmask" = xyes; then :
12177 cat >>confdefs.h <<_ACEOF
12178 #define HAVE_SETLOGMASK 1
12184 for ac_func in strlcat strlcmp strlcpy
12186 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12187 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12188 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12189 cat >>confdefs.h <<_ACEOF
12190 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12197 saved_LIBS="${LIBS}"
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12200 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12201 if ${ac_cv_lib_dl_dlopen+:} false; then :
12202 $as_echo_n "(cached) " >&6
12204 ac_check_lib_save_LIBS=$LIBS
12206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207 /* end confdefs.h. */
12209 /* Override any GCC internal prototype to avoid an error.
12210 Use char because int might match the return type of a GCC
12211 builtin and then its argument prototype would still apply. */
12224 if ac_fn_c_try_link "$LINENO"; then :
12225 ac_cv_lib_dl_dlopen=yes
12227 ac_cv_lib_dl_dlopen=no
12229 rm -f core conftest.err conftest.$ac_objext \
12230 conftest$ac_exeext conftest.$ac_ext
12231 LIBS=$ac_check_lib_save_LIBS
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12234 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12235 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12236 cat >>confdefs.h <<_ACEOF
12237 #define HAVE_LIBDL 1
12245 LIBS="${saved_LIBS}"
12248 saved_LIBS="${LIBS}"
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
12251 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
12252 if ${ac_cv_lib_crypt_crypt+:} false; then :
12253 $as_echo_n "(cached) " >&6
12255 ac_check_lib_save_LIBS=$LIBS
12256 LIBS="-lcrypt $LIBS"
12257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h. */
12260 /* Override any GCC internal prototype to avoid an error.
12261 Use char because int might match the return type of a GCC
12262 builtin and then its argument prototype would still apply. */
12275 if ac_fn_c_try_link "$LINENO"; then :
12276 ac_cv_lib_crypt_crypt=yes
12278 ac_cv_lib_crypt_crypt=no
12280 rm -f core conftest.err conftest.$ac_objext \
12281 conftest$ac_exeext conftest.$ac_ext
12282 LIBS=$ac_check_lib_save_LIBS
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
12285 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
12286 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
12287 cat >>confdefs.h <<_ACEOF
12288 #define HAVE_LIBCRYPT 1
12291 LIBS="-lcrypt $LIBS"
12295 CRYPT_LIBS="${LIBS}"
12296 LIBS="${saved_LIBS}"
12299 saved_LIBS="${LIBS}"
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
12302 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
12303 if ${ac_cv_lib_crypto_HMAC_CTX_init+:} false; then :
12304 $as_echo_n "(cached) " >&6
12306 ac_check_lib_save_LIBS=$LIBS
12307 LIBS="-lcrypto $LIBS"
12308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12309 /* end confdefs.h. */
12311 /* Override any GCC internal prototype to avoid an error.
12312 Use char because int might match the return type of a GCC
12313 builtin and then its argument prototype would still apply. */
12317 char HMAC_CTX_init ();
12321 return HMAC_CTX_init ();
12326 if ac_fn_c_try_link "$LINENO"; then :
12327 ac_cv_lib_crypto_HMAC_CTX_init=yes
12329 ac_cv_lib_crypto_HMAC_CTX_init=no
12331 rm -f core conftest.err conftest.$ac_objext \
12332 conftest$ac_exeext conftest.$ac_ext
12333 LIBS=$ac_check_lib_save_LIBS
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_CTX_init" >&5
12336 $as_echo "$ac_cv_lib_crypto_HMAC_CTX_init" >&6; }
12337 if test "x$ac_cv_lib_crypto_HMAC_CTX_init" = xyes; then :
12338 cat >>confdefs.h <<_ACEOF
12339 #define HAVE_LIBCRYPTO 1
12342 LIBS="-lcrypto $LIBS"
12346 CRYPTO_LIBS="${LIBS}"
12347 LIBS="${saved_LIBS}"
12350 # Check whether --enable-developer-warnings was given.
12351 if test "${enable_developer_warnings+set}" = set; then :
12352 enableval=$enable_developer_warnings; CFLAGS="${CFLAGS} -Wall -Wextra"
12355 # Check whether --enable-debugging-symbols was given.
12356 if test "${enable_debugging_symbols+set}" = set; then :
12357 enableval=$enable_debugging_symbols; CFLAGS="${CFLAGS} -O0 -g -fno-inline"
12360 # Check whether --enable-werror was given.
12361 if test "${enable_werror+set}" = set; then :
12362 enableval=$enable_werror; CFLAGS="${CFLAGS} -Werror"
12366 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 modules/Makefile modules/pam_deny/Makefile modules/pam_permit/Makefile modules/pam_unix/Makefile t/Makefile"
12368 ac_config_files="$ac_config_files pamgdb"
12370 ac_config_files="$ac_config_files mkpkgng"
12372 cat >confcache <<\_ACEOF
12373 # This file is a shell script that caches the results of configure
12374 # tests run on this system so they can be shared between configure
12375 # scripts and configure runs, see configure's option --config-cache.
12376 # It is not useful on other systems. If it contains results you don't
12377 # want to keep, you may remove or edit it.
12379 # config.status only pays attention to the cache file if you give it
12380 # the --recheck option to rerun configure.
12382 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12383 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12384 # following values.
12388 # The following way of writing the cache mishandles newlines in values,
12389 # but we know of no workaround that is simple, portable, and efficient.
12390 # So, we kill variables containing newlines.
12391 # Ultrix sh set writes to stderr and can't be redirected directly,
12392 # and sets the high bit in the cache file unless we assign to the vars.
12394 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12395 eval ac_val=\$$ac_var
12399 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12400 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12403 _ | IFS | as_nl) ;; #(
12404 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12405 *) { eval $ac_var=; unset $ac_var;} ;;
12411 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12412 *${as_nl}ac_space=\ *)
12413 # `set' does not quote correctly, so add quotes: double-quote
12414 # substitution turns \\\\ into \\, and sed turns \\ into \.
12417 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12420 # `set' quotes correctly as required by POSIX, so do not add quotes.
12421 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12430 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12432 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12434 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12435 if test -w "$cache_file"; then
12436 if test "x$cache_file" != "x/dev/null"; then
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12438 $as_echo "$as_me: updating cache $cache_file" >&6;}
12439 if test ! -f "$cache_file" || test -h "$cache_file"; then
12440 cat confcache >"$cache_file"
12442 case $cache_file in #(
12444 mv -f confcache "$cache_file"$$ &&
12445 mv -f "$cache_file"$$ "$cache_file" ;; #(
12447 mv -f confcache "$cache_file" ;;
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12453 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12458 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12459 # Let make expand exec_prefix.
12460 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12462 DEFS=-DHAVE_CONFIG_H
12466 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12467 # 1. Remove the extension, and $U if already installed.
12468 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12469 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12470 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12471 # will be set to the directory where LIBOBJS objects are built.
12472 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12473 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12475 LIBOBJS=$ac_libobjs
12477 LTLIBOBJS=$ac_ltlibobjs
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12481 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12482 if test -n "$am_sleep_pid"; then
12483 # Hide warnings about reused PIDs.
12484 wait $am_sleep_pid 2>/dev/null
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12487 $as_echo "done" >&6; }
12488 if test -n "$EXEEXT"; then
12490 am__EXEEXT_FALSE='#'
12492 am__EXEEXT_TRUE='#'
12496 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12497 as_fn_error $? "conditional \"AMDEP\" was never defined.
12498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12500 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12501 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12504 if test -z "${CUSTOM_MODULES_DIR_TRUE}" && test -z "${CUSTOM_MODULES_DIR_FALSE}"; then
12505 as_fn_error $? "conditional \"CUSTOM_MODULES_DIR\" was never defined.
12506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12508 if test -z "${WITH_DOC_TRUE}" && test -z "${WITH_DOC_FALSE}"; then
12509 as_fn_error $? "conditional \"WITH_DOC\" was never defined.
12510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12512 if test -z "${WITH_PAM_UNIX_TRUE}" && test -z "${WITH_PAM_UNIX_FALSE}"; then
12513 as_fn_error $? "conditional \"WITH_PAM_UNIX\" was never defined.
12514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12516 if test -z "${WITH_PAMTEST_TRUE}" && test -z "${WITH_PAMTEST_FALSE}"; then
12517 as_fn_error $? "conditional \"WITH_PAMTEST\" was never defined.
12518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12520 if test -z "${WITH_SU_TRUE}" && test -z "${WITH_SU_FALSE}"; then
12521 as_fn_error $? "conditional \"WITH_SU\" was never defined.
12522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12525 : "${CONFIG_STATUS=./config.status}"
12527 ac_clean_files_save=$ac_clean_files
12528 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12530 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12532 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12534 # Generated by $as_me.
12535 # Run this file to recreate the current configuration.
12536 # Compiler output produced by configure, useful for debugging
12537 # configure, is in config.log if it exists.
12540 ac_cs_recheck=false
12543 SHELL=\${CONFIG_SHELL-$SHELL}
12546 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12547 ## -------------------- ##
12548 ## M4sh Initialization. ##
12549 ## -------------------- ##
12551 # Be more Bourne compatible
12552 DUALCASE=1; export DUALCASE # for MKS sh
12553 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12556 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12557 # is contrary to our usage. Disable this feature.
12558 alias -g '${1+"$@"}'='"$@"'
12559 setopt NO_GLOB_SUBST
12561 case `(set -o) 2>/dev/null` in #(
12573 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12574 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12575 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12576 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12577 # Prefer a ksh shell builtin over an external printf program on Solaris,
12578 # but without wasting forks for bash or zsh.
12579 if test -z "$BASH_VERSION$ZSH_VERSION" \
12580 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12581 as_echo='print -r --'
12582 as_echo_n='print -rn --'
12583 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12584 as_echo='printf %s\n'
12585 as_echo_n='printf %s'
12587 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12588 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12589 as_echo_n='/usr/ucb/echo -n'
12591 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12592 as_echo_n_body='eval
12596 expr "X$arg" : "X\\(.*\\)$as_nl";
12597 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12599 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12601 export as_echo_n_body
12602 as_echo_n='sh -c $as_echo_n_body as_echo'
12604 export as_echo_body
12605 as_echo='sh -c $as_echo_body as_echo'
12608 # The user is always right.
12609 if test "${PATH_SEPARATOR+set}" != set; then
12611 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12612 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12619 # We need space, tab and new line, in precisely that order. Quoting is
12620 # there to prevent editors from complaining about space-tab.
12621 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12622 # splitting by setting IFS to empty value.)
12625 # Find who we are. Look in the path if we contain no directory separator.
12628 *[\\/]* ) as_myself=$0 ;;
12629 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12630 for as_dir in $PATH
12633 test -z "$as_dir" && as_dir=.
12634 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12640 # We did not find ourselves, most probably we were run as `sh COMMAND'
12641 # in which case we are not to be found in the path.
12642 if test "x$as_myself" = x; then
12645 if test ! -f "$as_myself"; then
12646 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12650 # Unset variables that we do not need and which cause bugs (e.g. in
12651 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12652 # suppresses any "Segmentation fault" message there. '((' could
12653 # trigger a bug in pdksh 5.2.14.
12654 for as_var in BASH_ENV ENV MAIL MAILPATH
12655 do eval test x\${$as_var+set} = xset \
12656 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12669 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12672 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12673 # ----------------------------------------
12674 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12675 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12676 # script with STATUS, using 1 if that was 0.
12679 as_status=$1; test $as_status -eq 0 && as_status=1
12681 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12682 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12684 $as_echo "$as_me: error: $2" >&2
12685 as_fn_exit $as_status
12689 # as_fn_set_status STATUS
12690 # -----------------------
12691 # Set $? to STATUS, without forking.
12692 as_fn_set_status ()
12695 } # as_fn_set_status
12697 # as_fn_exit STATUS
12698 # -----------------
12699 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12703 as_fn_set_status $1
12709 # Portably unset VAR.
12712 { eval $1=; unset $1;}
12714 as_unset=as_fn_unset
12715 # as_fn_append VAR VALUE
12716 # ----------------------
12717 # Append the text in VALUE to the end of the definition contained in VAR. Take
12718 # advantage of any shell optimizations that allow amortized linear growth over
12719 # repeated appends, instead of the typical quadratic growth present in naive
12721 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12722 eval 'as_fn_append ()
12733 # as_fn_arith ARG...
12734 # ------------------
12735 # Perform arithmetic evaluation on the ARGs, and store the result in the
12736 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12737 # must be portable across $(()) and expr.
12738 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12739 eval 'as_fn_arith ()
12746 as_val=`expr "$@" || test $? -eq 1`
12751 if expr a : '\(a\)' >/dev/null 2>&1 &&
12752 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12758 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12759 as_basename=basename
12764 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12770 as_me=`$as_basename -- "$0" ||
12771 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12772 X"$0" : 'X\(//\)$' \| \
12773 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12775 sed '/^.*\/\([^/][^/]*\)\/*$/{
12789 # Avoid depending upon Character Ranges.
12790 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12791 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12792 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12793 as_cr_digits='0123456789'
12794 as_cr_alnum=$as_cr_Letters$as_cr_digits
12796 ECHO_C= ECHO_N= ECHO_T=
12797 case `echo -n x` in #(((((
12799 case `echo 'xy\c'` in
12800 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12802 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12809 rm -f conf$$ conf$$.exe conf$$.file
12810 if test -d conf$$.dir; then
12811 rm -f conf$$.dir/conf$$.file
12814 mkdir conf$$.dir 2>/dev/null
12816 if (echo >conf$$.file) 2>/dev/null; then
12817 if ln -s conf$$.file conf$$ 2>/dev/null; then
12819 # ... but there are two gotchas:
12820 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12821 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12822 # In both cases, we have to default to `cp -pR'.
12823 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12825 elif ln conf$$.file conf$$ 2>/dev/null; then
12833 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12834 rmdir conf$$.dir 2>/dev/null
12839 # Create "$as_dir" as a directory, including parents if necessary.
12844 -*) as_dir=./$as_dir;;
12846 test -d "$as_dir" || eval $as_mkdir_p || {
12850 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12851 *) as_qdir=$as_dir;;
12853 as_dirs="'$as_qdir' $as_dirs"
12854 as_dir=`$as_dirname -- "$as_dir" ||
12855 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12856 X"$as_dir" : 'X\(//\)[^/]' \| \
12857 X"$as_dir" : 'X\(//\)$' \| \
12858 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12859 $as_echo X"$as_dir" |
12860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12864 /^X\(\/\/\)[^/].*/{
12877 test -d "$as_dir" && break
12879 test -z "$as_dirs" || eval "mkdir $as_dirs"
12880 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12884 if mkdir -p . 2>/dev/null; then
12885 as_mkdir_p='mkdir -p "$as_dir"'
12887 test -d ./-p && rmdir ./-p
12892 # as_fn_executable_p FILE
12893 # -----------------------
12894 # Test if FILE is an executable regular file.
12895 as_fn_executable_p ()
12897 test -f "$1" && test -x "$1"
12898 } # as_fn_executable_p
12899 as_test_x='test -x'
12900 as_executable_p=as_fn_executable_p
12902 # Sed expression to map a string onto a valid CPP name.
12903 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12905 # Sed expression to map a string onto a valid variable name.
12906 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12910 ## ----------------------------------- ##
12911 ## Main body of $CONFIG_STATUS script. ##
12912 ## ----------------------------------- ##
12914 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12917 # Save the log message, to keep $0 and so on meaningful, and to
12918 # report actual input values of CONFIG_FILES etc. instead of their
12919 # values after options handling.
12921 This file was extended by OpenPAM $as_me 20130907, which was
12922 generated by GNU Autoconf 2.69. Invocation command line was
12924 CONFIG_FILES = $CONFIG_FILES
12925 CONFIG_HEADERS = $CONFIG_HEADERS
12926 CONFIG_LINKS = $CONFIG_LINKS
12927 CONFIG_COMMANDS = $CONFIG_COMMANDS
12930 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12935 case $ac_config_files in *"
12936 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12939 case $ac_config_headers in *"
12940 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12944 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12945 # Files that config.status was made for.
12946 config_files="$ac_config_files"
12947 config_headers="$ac_config_headers"
12948 config_commands="$ac_config_commands"
12952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12954 \`$as_me' instantiates files and other configuration actions
12955 from templates according to the current configuration. Unless the files
12956 and actions are specified as TAGs, all are instantiated by default.
12958 Usage: $0 [OPTION]... [TAG]...
12960 -h, --help print this help, then exit
12961 -V, --version print version number and configuration settings, then exit
12962 --config print configuration, then exit
12963 -q, --quiet, --silent
12964 do not print progress messages
12965 -d, --debug don't remove temporary files
12966 --recheck update $as_me by reconfiguring in the same conditions
12967 --file=FILE[:TEMPLATE]
12968 instantiate the configuration file FILE
12969 --header=FILE[:TEMPLATE]
12970 instantiate the configuration header FILE
12972 Configuration files:
12975 Configuration headers:
12978 Configuration commands:
12981 Report bugs to <des@des.no>.
12982 OpenPAM home page: <http://www.openpam.org/>."
12985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12986 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12988 OpenPAM config.status 20130907
12989 configured by $0, generated by GNU Autoconf 2.69,
12990 with options \\"\$ac_cs_config\\"
12992 Copyright (C) 2012 Free Software Foundation, Inc.
12993 This config.status script is free software; the Free Software Foundation
12994 gives unlimited permission to copy, distribute and modify it."
13001 test -n "\$AWK" || AWK=awk
13004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13005 # The default lists apply if the user does not specify any file.
13011 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13012 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13016 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13028 # Handling of the options.
13029 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13031 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13032 $as_echo "$ac_cs_version"; exit ;;
13033 --config | --confi | --conf | --con | --co | --c )
13034 $as_echo "$ac_cs_config"; exit ;;
13035 --debug | --debu | --deb | --de | --d | -d )
13037 --file | --fil | --fi | --f )
13040 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13041 '') as_fn_error $? "missing file argument" ;;
13043 as_fn_append CONFIG_FILES " '$ac_optarg'"
13044 ac_need_defaults=false;;
13045 --header | --heade | --head | --hea )
13048 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13050 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13051 ac_need_defaults=false;;
13053 # Conflict between --help and --header
13054 as_fn_error $? "ambiguous option: \`$1'
13055 Try \`$0 --help' for more information.";;
13056 --help | --hel | -h )
13057 $as_echo "$ac_cs_usage"; exit ;;
13058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13059 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13062 # This is an error.
13063 -*) as_fn_error $? "unrecognized option: \`$1'
13064 Try \`$0 --help' for more information." ;;
13066 *) as_fn_append ac_config_targets " $1"
13067 ac_need_defaults=false ;;
13073 ac_configure_extra_args=
13075 if $ac_cs_silent; then
13077 ac_configure_extra_args="$ac_configure_extra_args --silent"
13081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13082 if \$ac_cs_recheck; then
13083 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13085 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13086 CONFIG_SHELL='$SHELL'
13087 export CONFIG_SHELL
13092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13096 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13097 ## Running $as_me. ##
13103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13107 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13110 # The HP-UX ksh and POSIX shell print the target directory to stdout
13111 # if CDPATH is set.
13112 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13114 sed_quote_subst='$sed_quote_subst'
13115 double_quote_subst='$double_quote_subst'
13116 delay_variable_subst='$delay_variable_subst'
13117 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13118 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13119 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13120 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13121 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13122 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13123 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13124 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13125 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13126 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13127 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13128 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13129 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13130 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13131 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13132 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13133 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13134 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13135 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13136 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13137 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13138 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13139 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13140 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13141 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13142 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13143 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13144 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13145 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13146 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13147 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13148 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13149 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13150 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13151 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13152 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13153 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13154 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13155 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13156 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13157 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13158 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13159 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13160 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13161 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13162 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13163 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13164 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13165 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13166 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13167 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13168 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13169 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13170 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13171 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13172 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13173 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"`'
13174 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13175 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13176 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13177 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13178 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13179 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13180 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13181 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13182 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13183 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13184 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13185 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13186 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13187 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13188 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13189 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13190 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13191 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13192 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13193 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13194 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13195 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13196 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13197 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13198 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13199 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13200 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13201 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13202 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13203 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13204 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13205 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13206 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13207 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13208 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13209 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13210 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13211 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13212 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13213 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13214 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13215 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13216 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13217 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13218 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13219 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13220 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13221 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13222 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13223 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13224 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13225 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13226 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13227 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13228 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13229 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13230 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13231 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13232 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13233 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13234 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13235 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13236 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13237 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13238 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13239 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13240 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13241 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13242 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13243 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13244 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13245 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13246 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13249 LTCFLAGS='$LTCFLAGS'
13250 compiler='$compiler_DEFAULT'
13252 # A function that is used when there is no print builtin or printf.
13253 func_fallback_echo ()
13255 eval 'cat <<_LTECHO_EOF
13260 # Quote evaled strings.
13275 deplibs_check_method \
13280 sharedlib_from_linklib_cmd \
13283 archiver_list_spec \
13289 lt_cv_sys_global_symbol_pipe \
13290 lt_cv_sys_global_symbol_to_cdecl \
13291 lt_cv_sys_global_symbol_to_c_name_address \
13292 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13293 nm_file_list_spec \
13294 lt_prog_compiler_no_builtin_flag \
13295 lt_prog_compiler_pic \
13296 lt_prog_compiler_wl \
13297 lt_prog_compiler_static \
13298 lt_cv_prog_compiler_c_o \
13307 export_dynamic_flag_spec \
13308 whole_archive_flag_spec \
13309 compiler_needs_object \
13311 allow_undefined_flag \
13312 no_undefined_flag \
13313 hardcode_libdir_flag_spec \
13314 hardcode_libdir_separator \
13318 variables_saved_for_relink \
13320 library_names_spec \
13322 install_override_mode \
13326 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13327 *[\\\\\\\`\\"\\\$]*)
13328 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13331 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13336 # Double-quote double-evaled strings.
13337 for var in reload_cmds \
13338 old_postinstall_cmds \
13339 old_postuninstall_cmds \
13341 extract_expsyms_cmds \
13342 old_archive_from_new_cmds \
13343 old_archive_from_expsyms_cmds \
13345 archive_expsym_cmds \
13347 module_expsym_cmds \
13348 export_symbols_cmds \
13352 postuninstall_cmds \
13354 sys_lib_search_path_spec \
13355 sys_lib_dlsearch_path_spec; do
13356 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13357 *[\\\\\\\`\\"\\\$]*)
13358 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13361 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13366 ac_aux_dir='$ac_aux_dir'
13367 xsi_shell='$xsi_shell'
13368 lt_shell_append='$lt_shell_append'
13370 # See if we are running on zsh, and set the options which allow our
13371 # commands through without removal of \ escapes INIT.
13372 if test -n "\${ZSH_VERSION+set}" ; then
13373 setopt NO_GLOB_SUBST
13379 TIMESTAMP='$TIMESTAMP'
13388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13390 # Handling of arguments.
13391 for ac_config_target in $ac_config_targets
13393 case $ac_config_target in
13394 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13395 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13396 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13397 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13398 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
13399 "bin/openpam_dump_policy/Makefile") CONFIG_FILES="$CONFIG_FILES bin/openpam_dump_policy/Makefile" ;;
13400 "bin/pamtest/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pamtest/Makefile" ;;
13401 "bin/su/Makefile") CONFIG_FILES="$CONFIG_FILES bin/su/Makefile" ;;
13402 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13403 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
13404 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13405 "include/security/Makefile") CONFIG_FILES="$CONFIG_FILES include/security/Makefile" ;;
13406 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13407 "lib/libpam/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libpam/Makefile" ;;
13408 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
13409 "modules/pam_deny/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_deny/Makefile" ;;
13410 "modules/pam_permit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_permit/Makefile" ;;
13411 "modules/pam_unix/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_unix/Makefile" ;;
13412 "t/Makefile") CONFIG_FILES="$CONFIG_FILES t/Makefile" ;;
13413 "pamgdb") CONFIG_FILES="$CONFIG_FILES pamgdb" ;;
13414 "mkpkgng") CONFIG_FILES="$CONFIG_FILES mkpkgng" ;;
13416 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13421 # If the user did not use the arguments to specify the items to instantiate,
13422 # then the envvar interface is used. Set only those that are not.
13423 # We use the long form for the default assignment because of an extremely
13424 # bizarre bug on SunOS 4.1.3.
13425 if $ac_need_defaults; then
13426 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13427 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13428 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13431 # Have a temporary directory for convenience. Make it in the build tree
13432 # simply because there is no reason against having it here, and in addition,
13433 # creating and moving files from /tmp can sometimes cause problems.
13434 # Hook for its removal unless debugging.
13435 # Note that there is a small window in which the directory will not be cleaned:
13436 # after its creation but before its name has been assigned to `$tmp'.
13440 trap 'exit_status=$?
13441 : "${ac_tmp:=$tmp}"
13442 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13444 trap 'as_fn_exit 1' 1 2 13 15
13446 # Create a (secure) tmp directory for tmp files.
13449 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13453 tmp=./conf$$-$RANDOM
13454 (umask 077 && mkdir "$tmp")
13455 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13458 # Set up the scripts for CONFIG_FILES section.
13459 # No need to generate them if there are no CONFIG_FILES.
13460 # This happens for instance with `./config.status config.h'.
13461 if test -n "$CONFIG_FILES"; then
13464 ac_cr=`echo X | tr X '\015'`
13465 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13466 # But we know of no other shell where ac_cr would be empty at this
13467 # point, so we can use a bashism as a fallback.
13468 if test "x$ac_cr" = x; then
13469 eval ac_cr=\$\'\\r\'
13471 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13472 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13475 ac_cs_awk_cr=$ac_cr
13478 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13483 echo "cat >conf$$subs.awk <<_ACEOF" &&
13484 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13486 } >conf$$subs.sh ||
13487 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13488 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13490 for ac_last_try in false false false false false :; do
13491 . ./conf$$subs.sh ||
13492 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13494 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13495 if test $ac_delim_n = $ac_delim_num; then
13497 elif $ac_last_try; then
13498 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13500 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13503 rm -f conf$$subs.sh
13505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13506 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13510 s/^/S["/; s/!.*/"]=/
13520 s/\(.\{148\}\)..*/\1/
13522 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13527 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13534 s/\(.\{148\}\)..*/\1/
13536 s/["\\]/\\&/g; s/^/"/; s/$/"/
13540 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13545 ' <conf$$subs.awk | sed '
13550 ' >>$CONFIG_STATUS || ac_write_fail=1
13551 rm -f conf$$subs.awk
13552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13554 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13555 for (key in S) S_is_set[key] = 1
13561 nfields = split(line, field, "@")
13563 len = length(field[1])
13564 for (i = 2; i < nfields; i++) {
13566 keylen = length(key)
13567 if (S_is_set[key]) {
13569 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13570 len += length(value) + length(field[++i])
13581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13582 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13583 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13586 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13587 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13590 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13591 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13592 # trailing colons and then remove the whole line if VPATH becomes empty
13593 # (actually we leave an empty line to preserve line numbers).
13594 if test "x$srcdir" = x.; then
13595 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13614 fi # test -n "$CONFIG_FILES"
13616 # Set up the scripts for CONFIG_HEADERS section.
13617 # No need to generate them if there are no CONFIG_HEADERS.
13618 # This happens for instance with `./config.status Makefile'.
13619 if test -n "$CONFIG_HEADERS"; then
13620 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13624 # Transform confdefs.h into an awk script `defines.awk', embedded as
13625 # here-document in config.status, that substitutes the proper values into
13626 # config.h.in to produce config.h.
13628 # Create a delimiter string that does not exist in confdefs.h, to ease
13629 # handling of long lines.
13631 for ac_last_try in false false :; do
13632 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13633 if test -z "$ac_tt"; then
13635 elif $ac_last_try; then
13636 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13638 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13642 # For the awk script, D is an array of macro values keyed by name,
13643 # likewise P contains macro parameters if any. Preserve backslash
13644 # newline sequences.
13646 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13648 s/.\{148\}/&'"$ac_delim"'/g
13651 s/^[ ]*#[ ]*define[ ][ ]*/ /
13658 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13660 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13664 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13665 D["\1"]=" \3\\\\\\n"\\/p
13667 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13672 s/.\{148\}/&'"$ac_delim"'/g
13677 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13680 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13682 ' <confdefs.h | sed '
13683 s/'"$ac_delim"'/"\\\
13684 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13687 for (key in D) D_is_set[key] = 1
13690 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13692 split(line, arg, " ")
13693 if (arg[1] == "#") {
13697 defundef = substr(arg[1], 2)
13700 split(mac1, mac2, "(") #)
13702 prefix = substr(line, 1, index(line, defundef) - 1)
13703 if (D_is_set[macro]) {
13704 # Preserve the white space surrounding the "#".
13705 print prefix "define", macro P[macro] D[macro]
13708 # Replace #undef with comments. This is necessary, for example,
13709 # in the case of _POSIX_SOURCE, which is predefined and required
13710 # on some systems where configure will not decide to define it.
13711 if (defundef == "undef") {
13712 print "/*", prefix defundef, macro, "*/"
13720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13721 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13722 fi # test -n "$CONFIG_HEADERS"
13725 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13730 :[FHLC]) ac_mode=$ac_tag; continue;;
13732 case $ac_mode$ac_tag in
13734 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13735 :[FH]-) ac_tag=-:-;;
13736 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13753 -) ac_f="$ac_tmp/stdin";;
13754 *) # Look for the file first in the build tree, then in the source tree
13755 # (if the path is not absolute). The absolute path cannot be DOS-style,
13756 # because $ac_f cannot contain `:'.
13760 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13762 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13764 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13765 as_fn_append ac_file_inputs " '$ac_f'"
13768 # Let's still pretend it is `configure' which instantiates (i.e., don't
13769 # use $as_me), people would be surprised to read:
13770 # /* config.h. Generated by config.status. */
13771 configure_input='Generated from '`
13772 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13774 if test x"$ac_file" != x-; then
13775 configure_input="$ac_file. $configure_input"
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13777 $as_echo "$as_me: creating $ac_file" >&6;}
13779 # Neutralize special characters interpreted by sed in replacement strings.
13780 case $configure_input in #(
13781 *\&* | *\|* | *\\* )
13782 ac_sed_conf_input=`$as_echo "$configure_input" |
13783 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13784 *) ac_sed_conf_input=$configure_input;;
13788 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13789 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13794 ac_dir=`$as_dirname -- "$ac_file" ||
13795 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13796 X"$ac_file" : 'X\(//\)[^/]' \| \
13797 X"$ac_file" : 'X\(//\)$' \| \
13798 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13799 $as_echo X"$ac_file" |
13800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13804 /^X\(\/\/\)[^/].*/{
13817 as_dir="$ac_dir"; as_fn_mkdir_p
13821 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13823 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13824 # A ".." for each directory in $ac_dir_suffix.
13825 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13826 case $ac_top_builddir_sub in
13827 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13828 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13831 ac_abs_top_builddir=$ac_pwd
13832 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13833 # for backward compatibility:
13834 ac_top_builddir=$ac_top_build_prefix
13837 .) # We are building in place.
13839 ac_top_srcdir=$ac_top_builddir_sub
13840 ac_abs_top_srcdir=$ac_pwd ;;
13841 [\\/]* | ?:[\\/]* ) # Absolute name.
13842 ac_srcdir=$srcdir$ac_dir_suffix;
13843 ac_top_srcdir=$srcdir
13844 ac_abs_top_srcdir=$srcdir ;;
13845 *) # Relative name.
13846 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13847 ac_top_srcdir=$ac_top_build_prefix$srcdir
13848 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13850 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13860 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13861 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13863 ac_MKDIR_P=$MKDIR_P
13865 [\\/$]* | ?:[\\/]* ) ;;
13866 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13871 # If the template does not know about datarootdir, expand it.
13872 # FIXME: This hack should be removed a few years after 2.60.
13873 ac_datarootdir_hack=; ac_datarootdir_seen=
13884 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13885 *datarootdir*) ac_datarootdir_seen=yes;;
13886 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13888 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13891 ac_datarootdir_hack='
13892 s&@datadir@&$datadir&g
13893 s&@docdir@&$docdir&g
13894 s&@infodir@&$infodir&g
13895 s&@localedir@&$localedir&g
13896 s&@mandir@&$mandir&g
13897 s&\\\${datarootdir}&$datarootdir&g' ;;
13901 # Neutralize VPATH when `$srcdir' = `.'.
13902 # Shell code in configure.ac might set extrasub.
13903 # FIXME: do we really want to maintain this feature?
13904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13905 ac_sed_extra="$ac_vpsub
13908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13910 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13911 s|@configure_input@|$ac_sed_conf_input|;t t
13912 s&@top_builddir@&$ac_top_builddir_sub&;t t
13913 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13914 s&@srcdir@&$ac_srcdir&;t t
13915 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13916 s&@top_srcdir@&$ac_top_srcdir&;t t
13917 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13918 s&@builddir@&$ac_builddir&;t t
13919 s&@abs_builddir@&$ac_abs_builddir&;t t
13920 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13921 s&@INSTALL@&$ac_INSTALL&;t t
13922 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13923 $ac_datarootdir_hack
13925 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13926 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13928 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13929 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13930 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13931 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13933 which seems to be undefined. Please make sure it is defined" >&5
13934 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13935 which seems to be undefined. Please make sure it is defined" >&2;}
13937 rm -f "$ac_tmp/stdin"
13939 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13940 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13942 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13948 if test x"$ac_file" != x-; then
13950 $as_echo "/* $configure_input */" \
13951 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13952 } >"$ac_tmp/config.h" \
13953 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13954 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13956 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13959 mv "$ac_tmp/config.h" "$ac_file" \
13960 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13963 $as_echo "/* $configure_input */" \
13964 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13965 || as_fn_error $? "could not create -" "$LINENO" 5
13967 # Compute "$ac_file"'s index in $config_headers.
13970 for _am_header in $config_headers :; do
13971 case $_am_header in
13972 $_am_arg | $_am_arg:* )
13975 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13978 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13979 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13980 X"$_am_arg" : 'X\(//\)[^/]' \| \
13981 X"$_am_arg" : 'X\(//\)$' \| \
13982 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13983 $as_echo X"$_am_arg" |
13984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13988 /^X\(\/\/\)[^/].*/{
14000 s/.*/./; q'`/stamp-h$_am_stamp_count
14003 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14004 $as_echo "$as_me: executing $ac_file commands" >&6;}
14009 case $ac_file$ac_mode in
14010 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14011 # Older Autoconf quotes --file arguments for eval, but not when files
14012 # are listed without --file. Let's play safe and only enable the eval
14013 # if we detect the quoting.
14014 case $CONFIG_FILES in
14015 *\'*) eval set x "$CONFIG_FILES" ;;
14016 *) set x $CONFIG_FILES ;;
14021 # Strip MF so we end up with the name of the file.
14022 mf=`echo "$mf" | sed -e 's/:.*$//'`
14023 # Check whether this is an Automake generated Makefile or not.
14024 # We used to match only the files named 'Makefile.in', but
14025 # some people rename them; so instead we look at the file content.
14026 # Grep'ing the first line is not enough: some people post-process
14027 # each Makefile.in and add a new line on top of each file to say so.
14028 # Grep'ing the whole file is not good either: AIX grep has a line
14029 # limit of 2048, but all sed's we know have understand at least 4000.
14030 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14031 dirpart=`$as_dirname -- "$mf" ||
14032 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14033 X"$mf" : 'X\(//\)[^/]' \| \
14034 X"$mf" : 'X\(//\)$' \| \
14035 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14041 /^X\(\/\/\)[^/].*/{
14057 # Extract the definition of DEPDIR, am__include, and am__quote
14058 # from the Makefile without running 'make'.
14059 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14060 test -z "$DEPDIR" && continue
14061 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14062 test -z "$am__include" && continue
14063 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14064 # Find all dependency output files, they are included files with
14065 # $(DEPDIR) in their names. We invoke sed twice because it is the
14066 # simplest approach to changing $(DEPDIR) to its actual value in the
14068 for file in `sed -n "
14069 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14070 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14071 # Make sure the directory exists.
14072 test -f "$dirpart/$file" && continue
14073 fdir=`$as_dirname -- "$file" ||
14074 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14075 X"$file" : 'X\(//\)[^/]' \| \
14076 X"$file" : 'X\(//\)$' \| \
14077 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14078 $as_echo X"$file" |
14079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14083 /^X\(\/\/\)[^/].*/{
14096 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14097 # echo "creating $dirpart/$file"
14098 echo '# dummy' > "$dirpart/$file"
14105 # See if we are running on zsh, and set the options which allow our
14106 # commands through without removal of \ escapes.
14107 if test -n "${ZSH_VERSION+set}" ; then
14108 setopt NO_GLOB_SUBST
14111 cfgfile="${ofile}T"
14112 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14115 cat <<_LT_EOF >> "$cfgfile"
14118 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14119 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14120 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14121 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14123 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14124 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14126 # Written by Gordon Matzigkeit, 1996
14128 # This file is part of GNU Libtool.
14130 # GNU Libtool is free software; you can redistribute it and/or
14131 # modify it under the terms of the GNU General Public License as
14132 # published by the Free Software Foundation; either version 2 of
14133 # the License, or (at your option) any later version.
14135 # As a special exception to the GNU General Public License,
14136 # if you distribute this file as part of a program or library that
14137 # is built using GNU Libtool, you may include this file under the
14138 # same distribution terms that you use for the rest of that program.
14140 # GNU Libtool is distributed in the hope that it will be useful,
14141 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14142 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14143 # GNU General Public License for more details.
14145 # You should have received a copy of the GNU General Public License
14146 # along with GNU Libtool; see the file COPYING. If not, a copy
14147 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14148 # obtained by writing to the Free Software Foundation, Inc.,
14149 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14152 # The names of the tagged configurations supported by this script.
14155 # ### BEGIN LIBTOOL CONFIG
14157 # Which release of libtool.m4 was used?
14158 macro_version=$macro_version
14159 macro_revision=$macro_revision
14161 # Whether or not to build static libraries.
14162 build_old_libs=$enable_static
14164 # Whether or not to build shared libraries.
14165 build_libtool_libs=$enable_shared
14167 # What type of objects to build.
14170 # Whether or not to optimize for fast installation.
14171 fast_install=$enable_fast_install
14173 # Shell to use when invoking shell scripts.
14176 # An echo program that protects backslashes.
14179 # The PATH separator for the build system.
14180 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14183 host_alias=$host_alias
14187 # The build system.
14188 build_alias=$build_alias
14192 # A sed program that does not truncate output.
14195 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14196 Xsed="\$SED -e 1s/^X//"
14198 # A grep program that handles long lines.
14204 # A literal string matcher.
14207 # A BSD- or MS-compatible name lister.
14210 # Whether we need soft or hard links.
14213 # What is the maximum length of a command?
14214 max_cmd_len=$max_cmd_len
14216 # Object file suffix (normally "o").
14219 # Executable file suffix (normally "").
14222 # whether the shell understands "unset".
14225 # turn spaces into newlines.
14228 # turn newlines into spaces.
14231 # convert \$build file names to \$host format.
14232 to_host_file_cmd=$lt_cv_to_host_file_cmd
14234 # convert \$build files to toolchain format.
14235 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14237 # An object symbol dumper.
14238 OBJDUMP=$lt_OBJDUMP
14240 # Method to check whether dependent libraries are shared objects.
14241 deplibs_check_method=$lt_deplibs_check_method
14243 # Command to use when deplibs_check_method = "file_magic".
14244 file_magic_cmd=$lt_file_magic_cmd
14246 # How to find potential files when deplibs_check_method = "file_magic".
14247 file_magic_glob=$lt_file_magic_glob
14249 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14250 want_nocaseglob=$lt_want_nocaseglob
14252 # DLL creation program.
14253 DLLTOOL=$lt_DLLTOOL
14255 # Command to associate shared and link libraries.
14256 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14261 # Flags to create an archive.
14262 AR_FLAGS=$lt_AR_FLAGS
14264 # How to feed a file listing to the archiver.
14265 archiver_list_spec=$lt_archiver_list_spec
14267 # A symbol stripping program.
14270 # Commands used to install an old-style archive.
14272 old_postinstall_cmds=$lt_old_postinstall_cmds
14273 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14275 # Whether to use a lock for old archive extraction.
14276 lock_old_archive_extraction=$lock_old_archive_extraction
14281 # LTCC compiler flags.
14282 LTCFLAGS=$lt_CFLAGS
14284 # Take the output of nm and produce a listing of raw symbols and C names.
14285 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14287 # Transform the output of nm in a proper C declaration.
14288 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14290 # Transform the output of nm in a C name address pair.
14291 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14293 # Transform the output of nm in a C name address pair when lib prefix is needed.
14294 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14296 # Specify filename containing input files for \$NM.
14297 nm_file_list_spec=$lt_nm_file_list_spec
14299 # The root where to search for dependent libraries,and in which our libraries should be installed.
14300 lt_sysroot=$lt_sysroot
14302 # The name of the directory that contains temporary libtool files.
14305 # Used to examine libraries when file_magic_cmd begins with "file".
14306 MAGIC_CMD=$MAGIC_CMD
14308 # Must we lock files when doing compilation?
14309 need_locks=$lt_need_locks
14312 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14314 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14315 DSYMUTIL=$lt_DSYMUTIL
14317 # Tool to change global to local symbols on Mac OS X.
14320 # Tool to manipulate fat objects and archives on Mac OS X.
14323 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14326 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14327 OTOOL64=$lt_OTOOL64
14329 # Old archive suffix (normally "a").
14332 # Shared library suffix (normally ".so").
14333 shrext_cmds=$lt_shrext_cmds
14335 # The commands to extract the exported symbol list from a shared archive.
14336 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14338 # Variables whose values should be saved in libtool wrapper scripts and
14339 # restored at link time.
14340 variables_saved_for_relink=$lt_variables_saved_for_relink
14342 # Do we need the "lib" prefix for modules?
14343 need_lib_prefix=$need_lib_prefix
14345 # Do we need a version for libraries?
14346 need_version=$need_version
14348 # Library versioning type.
14349 version_type=$version_type
14351 # Shared library runtime path variable.
14352 runpath_var=$runpath_var
14354 # Shared library path variable.
14355 shlibpath_var=$shlibpath_var
14357 # Is shlibpath searched before the hard-coded library search path?
14358 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14360 # Format of library name prefix.
14361 libname_spec=$lt_libname_spec
14363 # List of archive names. First name is the real one, the rest are links.
14364 # The last name is the one that the linker finds with -lNAME
14365 library_names_spec=$lt_library_names_spec
14367 # The coded name of the library, if different from the real name.
14368 soname_spec=$lt_soname_spec
14370 # Permission mode override for installation of shared libraries.
14371 install_override_mode=$lt_install_override_mode
14373 # Command to use after installation of a shared archive.
14374 postinstall_cmds=$lt_postinstall_cmds
14376 # Command to use after uninstallation of a shared archive.
14377 postuninstall_cmds=$lt_postuninstall_cmds
14379 # Commands used to finish a libtool library installation in a directory.
14380 finish_cmds=$lt_finish_cmds
14382 # As "finish_cmds", except a single script fragment to be evaled but
14384 finish_eval=$lt_finish_eval
14386 # Whether we should hardcode library paths into libraries.
14387 hardcode_into_libs=$hardcode_into_libs
14389 # Compile-time system search path for libraries.
14390 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14392 # Run-time system search path for libraries.
14393 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14395 # Whether dlopen is supported.
14396 dlopen_support=$enable_dlopen
14398 # Whether dlopen of programs is supported.
14399 dlopen_self=$enable_dlopen_self
14401 # Whether dlopen of statically linked programs is supported.
14402 dlopen_self_static=$enable_dlopen_self_static
14404 # Commands to strip libraries.
14405 old_striplib=$lt_old_striplib
14406 striplib=$lt_striplib
14409 # The linker used to build libraries.
14412 # How to create reloadable object files.
14413 reload_flag=$lt_reload_flag
14414 reload_cmds=$lt_reload_cmds
14416 # Commands used to build an old-style archive.
14417 old_archive_cmds=$lt_old_archive_cmds
14419 # A language specific compiler.
14422 # Is the compiler the GNU compiler?
14425 # Compiler flag to turn off builtin functions.
14426 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14428 # Additional compiler flags for building library objects.
14429 pic_flag=$lt_lt_prog_compiler_pic
14431 # How to pass a linker flag through the compiler.
14432 wl=$lt_lt_prog_compiler_wl
14434 # Compiler flag to prevent dynamic linking.
14435 link_static_flag=$lt_lt_prog_compiler_static
14437 # Does compiler simultaneously support -c and -o options?
14438 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14440 # Whether or not to add -lc for building shared libraries.
14441 build_libtool_need_lc=$archive_cmds_need_lc
14443 # Whether or not to disallow shared libs when runtime libs are static.
14444 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14446 # Compiler flag to allow reflexive dlopens.
14447 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14449 # Compiler flag to generate shared objects directly from archives.
14450 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14452 # Whether the compiler copes with passing no objects directly.
14453 compiler_needs_object=$lt_compiler_needs_object
14455 # Create an old-style archive from a shared archive.
14456 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14458 # Create a temporary old-style archive to link instead of a shared archive.
14459 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14461 # Commands used to build a shared archive.
14462 archive_cmds=$lt_archive_cmds
14463 archive_expsym_cmds=$lt_archive_expsym_cmds
14465 # Commands used to build a loadable module if different from building
14466 # a shared archive.
14467 module_cmds=$lt_module_cmds
14468 module_expsym_cmds=$lt_module_expsym_cmds
14470 # Whether we are building with GNU ld or not.
14471 with_gnu_ld=$lt_with_gnu_ld
14473 # Flag that allows shared libraries with undefined symbols to be built.
14474 allow_undefined_flag=$lt_allow_undefined_flag
14476 # Flag that enforces no undefined symbols.
14477 no_undefined_flag=$lt_no_undefined_flag
14479 # Flag to hardcode \$libdir into a binary during linking.
14480 # This must work even if \$libdir does not exist
14481 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14483 # Whether we need a single "-rpath" flag with a separated argument.
14484 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14486 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14487 # DIR into the resulting binary.
14488 hardcode_direct=$hardcode_direct
14490 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14491 # DIR into the resulting binary and the resulting library dependency is
14492 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14493 # library is relocated.
14494 hardcode_direct_absolute=$hardcode_direct_absolute
14496 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14497 # into the resulting binary.
14498 hardcode_minus_L=$hardcode_minus_L
14500 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14501 # into the resulting binary.
14502 hardcode_shlibpath_var=$hardcode_shlibpath_var
14504 # Set to "yes" if building a shared library automatically hardcodes DIR
14505 # into the library and all subsequent libraries and executables linked
14507 hardcode_automatic=$hardcode_automatic
14509 # Set to yes if linker adds runtime paths of dependent libraries
14510 # to runtime path list.
14511 inherit_rpath=$inherit_rpath
14513 # Whether libtool must link a program against all its dependency libraries.
14514 link_all_deplibs=$link_all_deplibs
14516 # Set to "yes" if exported symbols are required.
14517 always_export_symbols=$always_export_symbols
14519 # The commands to list exported symbols.
14520 export_symbols_cmds=$lt_export_symbols_cmds
14522 # Symbols that should not be listed in the preloaded symbols.
14523 exclude_expsyms=$lt_exclude_expsyms
14525 # Symbols that must always be exported.
14526 include_expsyms=$lt_include_expsyms
14528 # Commands necessary for linking programs (against libraries) with templates.
14529 prelink_cmds=$lt_prelink_cmds
14531 # Commands necessary for finishing linking programs.
14532 postlink_cmds=$lt_postlink_cmds
14534 # Specify filename containing input files.
14535 file_list_spec=$lt_file_list_spec
14537 # How to hardcode a shared library path into an executable.
14538 hardcode_action=$hardcode_action
14540 # ### END LIBTOOL CONFIG
14546 cat <<\_LT_EOF >> "$cfgfile"
14547 # AIX sometimes has problems with the GCC collect2 program. For some
14548 # reason, if we set the COLLECT_NAMES environment variable, the problems
14549 # vanish in a puff of smoke.
14550 if test "X${COLLECT_NAMES+set}" != Xset; then
14552 export COLLECT_NAMES
14559 ltmain="$ac_aux_dir/ltmain.sh"
14562 # We use sed instead of cat because bash on DJGPP gets confused if
14563 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14564 # text mode, it properly converts lines to CR/LF. This bash problem
14565 # is reportedly fixed, but why not run on old versions too?
14566 sed '$q' "$ltmain" >> "$cfgfile" \
14567 || (rm -f "$cfgfile"; exit 1)
14569 if test x"$xsi_shell" = xyes; then
14570 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14574 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14575 \ * ) func_dirname_result="${3}" ;;\
14577 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14578 && mv -f "$cfgfile.tmp" "$cfgfile" \
14579 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14580 test 0 -eq $? || _lt_function_replace_fail=:
14583 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14586 \ func_basename_result="${1##*/}"\
14587 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14588 && mv -f "$cfgfile.tmp" "$cfgfile" \
14589 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14590 test 0 -eq $? || _lt_function_replace_fail=:
14593 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14594 func_dirname_and_basename ()\
14597 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14598 \ * ) func_dirname_result="${3}" ;;\
14600 \ func_basename_result="${1##*/}"\
14601 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14602 && mv -f "$cfgfile.tmp" "$cfgfile" \
14603 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14604 test 0 -eq $? || _lt_function_replace_fail=:
14607 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14610 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14611 \ # positional parameters, so assign one to ordinary parameter first.\
14612 \ func_stripname_result=${3}\
14613 \ func_stripname_result=${func_stripname_result#"${1}"}\
14614 \ func_stripname_result=${func_stripname_result%"${2}"}\
14615 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14616 && mv -f "$cfgfile.tmp" "$cfgfile" \
14617 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14618 test 0 -eq $? || _lt_function_replace_fail=:
14621 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14622 func_split_long_opt ()\
14624 \ func_split_long_opt_name=${1%%=*}\
14625 \ func_split_long_opt_arg=${1#*=}\
14626 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14627 && mv -f "$cfgfile.tmp" "$cfgfile" \
14628 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14629 test 0 -eq $? || _lt_function_replace_fail=:
14632 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14633 func_split_short_opt ()\
14635 \ func_split_short_opt_arg=${1#??}\
14636 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14637 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14638 && mv -f "$cfgfile.tmp" "$cfgfile" \
14639 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14640 test 0 -eq $? || _lt_function_replace_fail=:
14643 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14647 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14648 \ *) func_lo2o_result=${1} ;;\
14650 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14651 && mv -f "$cfgfile.tmp" "$cfgfile" \
14652 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14653 test 0 -eq $? || _lt_function_replace_fail=:
14656 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14659 func_xform_result=${1%.*}.lo\
14660 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14661 && mv -f "$cfgfile.tmp" "$cfgfile" \
14662 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14663 test 0 -eq $? || _lt_function_replace_fail=:
14666 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14669 func_arith_result=$(( $* ))\
14670 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14671 && mv -f "$cfgfile.tmp" "$cfgfile" \
14672 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14673 test 0 -eq $? || _lt_function_replace_fail=:
14676 sed -e '/^func_len ()$/,/^} # func_len /c\
14679 func_len_result=${#1}\
14680 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14681 && mv -f "$cfgfile.tmp" "$cfgfile" \
14682 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14683 test 0 -eq $? || _lt_function_replace_fail=:
14687 if test x"$lt_shell_append" = xyes; then
14688 sed -e '/^func_append ()$/,/^} # func_append /c\
14691 eval "${1}+=\\${2}"\
14692 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14693 && mv -f "$cfgfile.tmp" "$cfgfile" \
14694 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14695 test 0 -eq $? || _lt_function_replace_fail=:
14698 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14699 func_append_quoted ()\
14701 \ func_quote_for_eval "${2}"\
14702 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14703 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14704 && mv -f "$cfgfile.tmp" "$cfgfile" \
14705 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14706 test 0 -eq $? || _lt_function_replace_fail=:
14709 # Save a `func_append' function call where possible by direct use of '+='
14710 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14711 && mv -f "$cfgfile.tmp" "$cfgfile" \
14712 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14713 test 0 -eq $? || _lt_function_replace_fail=:
14715 # Save a `func_append' function call even when '+=' is not available
14716 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14717 && mv -f "$cfgfile.tmp" "$cfgfile" \
14718 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14719 test 0 -eq $? || _lt_function_replace_fail=:
14722 if test x"$_lt_function_replace_fail" = x":"; then
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14724 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14728 mv -f "$cfgfile" "$ofile" ||
14729 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14733 "pamgdb":F) chmod +x pamgdb ;;
14734 "mkpkgng":F) chmod +x mkpkgng ;;
14742 ac_clean_files=$ac_clean_files_save
14744 test $ac_write_fail = 0 ||
14745 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14748 # configure is writing to config.log, and then calls config.status.
14749 # config.status does its own redirection, appending to config.log.
14750 # Unfortunately, on DOS this fails, as config.log is still kept open
14751 # by configure, so config.status won't be able to write to it; its
14752 # output is simply discarded. So we exec the FD to /dev/null,
14753 # effectively closing config.log, so it can be properly (re)opened and
14754 # appended to by config.status. When coming back to configure, we
14755 # need to make the FD available again.
14756 if test "$no_create" != yes; then
14758 ac_config_status_args=
14759 test "$silent" = yes &&
14760 ac_config_status_args="$ac_config_status_args --quiet"
14762 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14764 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14765 # would make configure fail if this is the last instruction.
14766 $ac_cs_success || as_fn_exit 1
14768 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14770 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}