2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183 test \$(( 1 + 1 )) = 2 || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 test -z "$as_dir" && as_dir=.
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 *v*x* | *x*v* ) as_opts=-vx ;;
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
267 # Portably unset VAR.
270 { eval $1=; unset $1;}
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
294 # Create "$as_dir" as a directory, including parents if necessary.
299 -*) as_dir=./$as_dir;;
301 test -d "$as_dir" || eval $as_mkdir_p || {
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
332 test -d "$as_dir" && break
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
370 as_val=`expr "$@" || test $? -eq 1`
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
382 as_status=$1; test $as_status -eq 0 && as_status=1
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
486 mkdir conf$$.dir 2>/dev/null
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
497 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
511 test -d ./-p && rmdir ./-p
515 if test -x / >/dev/null 2>&1; then
518 if ls -dL / >/dev/null 2>&1; then
525 if test -d "$1"; then
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
536 as_executable_p=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" || exec 7<&0 </dev/null
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 ac_default_prefix=/usr/local
560 ac_config_libobj_dir=.
567 # Identity of this package.
575 ac_unique_file="include/attributes.h"
576 ac_default_prefix=/usr
577 # Factoring default headers for most tests.
578 ac_includes_default="\
580 #ifdef HAVE_SYS_TYPES_H
581 # include <sys/types.h>
583 #ifdef HAVE_SYS_STAT_H
584 # include <sys/stat.h>
590 # ifdef HAVE_STDLIB_H
595 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 #ifdef HAVE_STRINGS_H
601 # include <strings.h>
603 #ifdef HAVE_INTTYPES_H
604 # include <inttypes.h>
613 ac_subst_vars='LTLIBOBJS
723 program_transform_name
736 enable_option_checking
747 ac_precious_vars='build_alias
758 # Initialize some variables set by options.
760 ac_init_version=false
761 ac_unrecognized_opts=
763 # The variables have the same names as the options, with
764 # dashes changed to underlines.
772 program_transform_name=s,x,x,
780 # Installation directory options.
781 # These are left unexpanded so users can "make install exec_prefix=/foo"
782 # and all the variables that are supposed to be based on exec_prefix
783 # by default will actually change.
784 # Use braces instead of parens because sh, perl, etc. also accept them.
785 # (The list follows the same order as the GNU Coding Standards.)
786 bindir='${exec_prefix}/bin'
787 sbindir='${exec_prefix}/sbin'
788 libexecdir='${exec_prefix}/libexec'
789 datarootdir='${prefix}/share'
790 datadir='${datarootdir}'
791 sysconfdir='${prefix}/etc'
792 sharedstatedir='${prefix}/com'
793 localstatedir='${prefix}/var'
794 includedir='${prefix}/include'
795 oldincludedir='/usr/include'
796 docdir='${datarootdir}/doc/${PACKAGE}'
797 infodir='${datarootdir}/info'
802 libdir='${exec_prefix}/lib'
803 localedir='${datarootdir}/locale'
804 mandir='${datarootdir}/man'
810 # If the previous option needs an argument, assign it.
811 if test -n "$ac_prev"; then
812 eval $ac_prev=\$ac_option
818 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
823 # Accept the important Cygnus configure options, so we can diagnose typos.
825 case $ac_dashdash$ac_option in
829 -bindir | --bindir | --bindi | --bind | --bin | --bi)
831 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
834 -build | --build | --buil | --bui | --bu)
835 ac_prev=build_alias ;;
836 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
837 build_alias=$ac_optarg ;;
839 -cache-file | --cache-file | --cache-fil | --cache-fi \
840 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
841 ac_prev=cache_file ;;
842 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
843 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
844 cache_file=$ac_optarg ;;
847 cache_file=config.cache ;;
849 -datadir | --datadir | --datadi | --datad)
851 -datadir=* | --datadir=* | --datadi=* | --datad=*)
852 datadir=$ac_optarg ;;
854 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
855 | --dataroo | --dataro | --datar)
856 ac_prev=datarootdir ;;
857 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
858 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
859 datarootdir=$ac_optarg ;;
861 -disable-* | --disable-*)
862 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
863 # Reject names that are not valid shell variable names.
864 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
865 as_fn_error $? "invalid feature name: $ac_useropt"
866 ac_useropt_orig=$ac_useropt
867 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
868 case $ac_user_opts in
872 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
873 ac_unrecognized_sep=', ';;
875 eval enable_$ac_useropt=no ;;
877 -docdir | --docdir | --docdi | --doc | --do)
879 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
882 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
884 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
887 -enable-* | --enable-*)
888 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
889 # Reject names that are not valid shell variable names.
890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891 as_fn_error $? "invalid feature name: $ac_useropt"
892 ac_useropt_orig=$ac_useropt
893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894 case $ac_user_opts in
898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
899 ac_unrecognized_sep=', ';;
901 eval enable_$ac_useropt=\$ac_optarg ;;
903 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
904 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
905 | --exec | --exe | --ex)
906 ac_prev=exec_prefix ;;
907 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
908 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
909 | --exec=* | --exe=* | --ex=*)
910 exec_prefix=$ac_optarg ;;
912 -gas | --gas | --ga | --g)
913 # Obsolete; use --with-gas.
916 -help | --help | --hel | --he | -h)
918 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
919 ac_init_help=recursive ;;
920 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
921 ac_init_help=short ;;
923 -host | --host | --hos | --ho)
924 ac_prev=host_alias ;;
925 -host=* | --host=* | --hos=* | --ho=*)
926 host_alias=$ac_optarg ;;
928 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
930 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
932 htmldir=$ac_optarg ;;
934 -includedir | --includedir | --includedi | --included | --include \
935 | --includ | --inclu | --incl | --inc)
936 ac_prev=includedir ;;
937 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
938 | --includ=* | --inclu=* | --incl=* | --inc=*)
939 includedir=$ac_optarg ;;
941 -infodir | --infodir | --infodi | --infod | --info | --inf)
943 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
944 infodir=$ac_optarg ;;
946 -libdir | --libdir | --libdi | --libd)
948 -libdir=* | --libdir=* | --libdi=* | --libd=*)
951 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
952 | --libexe | --libex | --libe)
953 ac_prev=libexecdir ;;
954 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
955 | --libexe=* | --libex=* | --libe=*)
956 libexecdir=$ac_optarg ;;
958 -localedir | --localedir | --localedi | --localed | --locale)
960 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
961 localedir=$ac_optarg ;;
963 -localstatedir | --localstatedir | --localstatedi | --localstated \
964 | --localstate | --localstat | --localsta | --localst | --locals)
965 ac_prev=localstatedir ;;
966 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
967 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
968 localstatedir=$ac_optarg ;;
970 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
972 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
976 # Obsolete; use --without-fp.
979 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
980 | --no-cr | --no-c | -n)
983 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
984 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
987 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
988 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
989 | --oldin | --oldi | --old | --ol | --o)
990 ac_prev=oldincludedir ;;
991 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
992 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
993 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
994 oldincludedir=$ac_optarg ;;
996 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
998 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1001 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1002 | --program-pre | --program-pr | --program-p)
1003 ac_prev=program_prefix ;;
1004 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1005 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1006 program_prefix=$ac_optarg ;;
1008 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1009 | --program-suf | --program-su | --program-s)
1010 ac_prev=program_suffix ;;
1011 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1012 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1013 program_suffix=$ac_optarg ;;
1015 -program-transform-name | --program-transform-name \
1016 | --program-transform-nam | --program-transform-na \
1017 | --program-transform-n | --program-transform- \
1018 | --program-transform | --program-transfor \
1019 | --program-transfo | --program-transf \
1020 | --program-trans | --program-tran \
1021 | --progr-tra | --program-tr | --program-t)
1022 ac_prev=program_transform_name ;;
1023 -program-transform-name=* | --program-transform-name=* \
1024 | --program-transform-nam=* | --program-transform-na=* \
1025 | --program-transform-n=* | --program-transform-=* \
1026 | --program-transform=* | --program-transfor=* \
1027 | --program-transfo=* | --program-transf=* \
1028 | --program-trans=* | --program-tran=* \
1029 | --progr-tra=* | --program-tr=* | --program-t=*)
1030 program_transform_name=$ac_optarg ;;
1032 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1034 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1035 pdfdir=$ac_optarg ;;
1037 -psdir | --psdir | --psdi | --psd | --ps)
1039 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043 | -silent | --silent | --silen | --sile | --sil)
1046 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1048 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1050 sbindir=$ac_optarg ;;
1052 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1053 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1054 | --sharedst | --shareds | --shared | --share | --shar \
1056 ac_prev=sharedstatedir ;;
1057 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1058 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1059 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1061 sharedstatedir=$ac_optarg ;;
1063 -site | --site | --sit)
1065 -site=* | --site=* | --sit=*)
1068 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1070 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1071 srcdir=$ac_optarg ;;
1073 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1074 | --syscon | --sysco | --sysc | --sys | --sy)
1075 ac_prev=sysconfdir ;;
1076 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1077 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1078 sysconfdir=$ac_optarg ;;
1080 -target | --target | --targe | --targ | --tar | --ta | --t)
1081 ac_prev=target_alias ;;
1082 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1083 target_alias=$ac_optarg ;;
1085 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1088 -version | --version | --versio | --versi | --vers | -V)
1089 ac_init_version=: ;;
1092 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095 as_fn_error $? "invalid package name: $ac_useropt"
1096 ac_useropt_orig=$ac_useropt
1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1103 ac_unrecognized_sep=', ';;
1105 eval with_$ac_useropt=\$ac_optarg ;;
1107 -without-* | --without-*)
1108 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111 as_fn_error $? "invalid package name: $ac_useropt"
1112 ac_useropt_orig=$ac_useropt
1113 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114 case $ac_user_opts in
1118 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1119 ac_unrecognized_sep=', ';;
1121 eval with_$ac_useropt=no ;;
1124 # Obsolete; use --with-x.
1127 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1128 | --x-incl | --x-inc | --x-in | --x-i)
1129 ac_prev=x_includes ;;
1130 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1131 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1132 x_includes=$ac_optarg ;;
1134 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1135 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1136 ac_prev=x_libraries ;;
1137 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1138 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1139 x_libraries=$ac_optarg ;;
1141 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1142 Try \`$0 --help' for more information"
1146 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1147 # Reject names that are not valid shell variable names.
1148 case $ac_envvar in #(
1149 '' | [0-9]* | *[!_$as_cr_alnum]* )
1150 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1152 eval $ac_envvar=\$ac_optarg
1153 export $ac_envvar ;;
1156 # FIXME: should be removed in autoconf 3.0.
1157 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1158 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1159 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1160 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1166 if test -n "$ac_prev"; then
1167 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1168 as_fn_error $? "missing argument to $ac_option"
1171 if test -n "$ac_unrecognized_opts"; then
1172 case $enable_option_checking in
1174 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1175 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1179 # Check all directory arguments for consistency.
1180 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1181 datadir sysconfdir sharedstatedir localstatedir includedir \
1182 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1183 libdir localedir mandir
1185 eval ac_val=\$$ac_var
1186 # Remove trailing slashes.
1189 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1190 eval $ac_var=\$ac_val;;
1192 # Be sure to have absolute directory names.
1194 [\\/$]* | ?:[\\/]* ) continue;;
1195 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1197 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1200 # There might be people who depend on the old broken behavior: `$host'
1201 # used to hold the argument of --host etc.
1202 # FIXME: To remove some day.
1205 target=$target_alias
1207 # FIXME: To remove some day.
1208 if test "x$host_alias" != x; then
1209 if test "x$build_alias" = x; then
1210 cross_compiling=maybe
1211 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1212 If a cross compiler is detected then cross compile mode will be used" >&2
1213 elif test "x$build_alias" != "x$host_alias"; then
1219 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221 test "$silent" = yes && exec 6>/dev/null
1224 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1225 ac_ls_di=`ls -di .` &&
1226 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1227 as_fn_error $? "working directory cannot be determined"
1228 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1229 as_fn_error $? "pwd does not report name of working directory"
1232 # Find the source files, if location was not specified.
1233 if test -z "$srcdir"; then
1234 ac_srcdir_defaulted=yes
1235 # Try the directory containing this script, then the parent directory.
1236 ac_confdir=`$as_dirname -- "$as_myself" ||
1237 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1238 X"$as_myself" : 'X\(//\)[^/]' \| \
1239 X"$as_myself" : 'X\(//\)$' \| \
1240 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1241 $as_echo X"$as_myself" |
1242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260 if test ! -r "$srcdir/$ac_unique_file"; then
1264 ac_srcdir_defaulted=no
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1268 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1270 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1272 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1274 # When building in place, set srcdir=.
1275 if test "$ac_abs_confdir" = "$ac_pwd"; then
1278 # Remove unnecessary trailing slashes from srcdir.
1279 # Double slashes in file names in object file debugging info
1280 # mess up M-x gdb in Emacs.
1282 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1284 for ac_var in $ac_precious_vars; do
1285 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1286 eval ac_env_${ac_var}_value=\$${ac_var}
1287 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1288 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1292 # Report the --help message.
1294 if test "$ac_init_help" = "long"; then
1295 # Omit some internal or obsolete options to make the list less imposing.
1296 # This message is too long to be a string in the A/UX 3.1 sh.
1298 \`configure' configures this package to adapt to many kinds of systems.
1300 Usage: $0 [OPTION]... [VAR=VALUE]...
1302 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1303 VAR=VALUE. See below for descriptions of some of the useful variables.
1305 Defaults for the options are specified in brackets.
1308 -h, --help display this help and exit
1309 --help=short display options specific to this package
1310 --help=recursive display the short help of all the included packages
1311 -V, --version display version information and exit
1312 -q, --quiet, --silent do not print \`checking ...' messages
1313 --cache-file=FILE cache test results in FILE [disabled]
1314 -C, --config-cache alias for \`--cache-file=config.cache'
1315 -n, --no-create do not create output files
1316 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1318 Installation directories:
1319 --prefix=PREFIX install architecture-independent files in PREFIX
1320 [$ac_default_prefix]
1321 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1324 By default, \`make install' will install all the files in
1325 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1326 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1327 for instance \`--prefix=\$HOME'.
1329 For better control, use the options below.
1331 Fine tuning of the installation directories:
1332 --bindir=DIR user executables [EPREFIX/bin]
1333 --sbindir=DIR system admin executables [EPREFIX/sbin]
1334 --libexecdir=DIR program executables [EPREFIX/libexec]
1335 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1336 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1337 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1338 --libdir=DIR object code libraries [EPREFIX/lib]
1339 --includedir=DIR C header files [PREFIX/include]
1340 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1341 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1342 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1343 --infodir=DIR info documentation [DATAROOTDIR/info]
1344 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1345 --mandir=DIR man documentation [DATAROOTDIR/man]
1346 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1347 --htmldir=DIR html documentation [DOCDIR]
1348 --dvidir=DIR dvi documentation [DOCDIR]
1349 --pdfdir=DIR pdf documentation [DOCDIR]
1350 --psdir=DIR ps documentation [DOCDIR]
1356 --build=BUILD configure for building on BUILD [guessed]
1357 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1361 if test -n "$ac_init_help"; then
1366 --disable-option-checking ignore unrecognized --enable/--with options
1367 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1368 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1369 --enable-shared[=PKGS] build shared libraries [default=yes]
1370 --enable-static[=PKGS] build static libraries [default=yes]
1371 --enable-fast-install[=PKGS]
1372 optimize for fast installation [default=yes]
1373 --disable-libtool-lock avoid locking (might break parallel builds)
1374 --enable-shared=yes/no Enable use of shared libraries default=yes
1375 --enable-gettext=yes/no Enable alternate language support default=yes
1376 --enable-lib64=yes/no Enable lib64 support default=no
1379 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1380 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1381 --with-pic try to use only PIC/non-PIC objects [default=use
1383 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1384 --with-sysroot=DIR Search for dependent libraries within DIR
1385 (or the compiler's sysroot if not specified).
1387 Some influential environment variables:
1388 CC C compiler command
1389 CFLAGS C compiler flags
1390 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1391 nonstandard directory <lib dir>
1392 LIBS libraries to pass to the linker, e.g. -l<library>
1393 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1394 you have headers in a nonstandard directory <include dir>
1397 Use these variables to override the choices made by `configure' or to help
1398 it to find libraries and programs with nonstandard names/locations.
1400 Report bugs to the package provider.
1405 if test "$ac_init_help" = "recursive"; then
1406 # If there are subdirs, report their specific --help.
1407 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1408 test -d "$ac_dir" ||
1409 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1414 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1417 # A ".." for each directory in $ac_dir_suffix.
1418 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1419 case $ac_top_builddir_sub in
1420 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1424 ac_abs_top_builddir=$ac_pwd
1425 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1426 # for backward compatibility:
1427 ac_top_builddir=$ac_top_build_prefix
1430 .) # We are building in place.
1432 ac_top_srcdir=$ac_top_builddir_sub
1433 ac_abs_top_srcdir=$ac_pwd ;;
1434 [\\/]* | ?:[\\/]* ) # Absolute name.
1435 ac_srcdir=$srcdir$ac_dir_suffix;
1436 ac_top_srcdir=$srcdir
1437 ac_abs_top_srcdir=$srcdir ;;
1439 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1440 ac_top_srcdir=$ac_top_build_prefix$srcdir
1441 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1443 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1445 cd "$ac_dir" || { ac_status=$?; continue; }
1446 # Check for guested configure.
1447 if test -f "$ac_srcdir/configure.gnu"; then
1449 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1450 elif test -f "$ac_srcdir/configure"; then
1452 $SHELL "$ac_srcdir/configure" --help=recursive
1454 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1456 cd "$ac_pwd" || { ac_status=$?; break; }
1460 test -n "$ac_init_help" && exit $ac_status
1461 if $ac_init_version; then
1464 generated by GNU Autoconf 2.68
1466 Copyright (C) 2010 Free Software Foundation, Inc.
1467 This configure script is free software; the Free Software Foundation
1468 gives unlimited permission to copy, distribute and modify it.
1473 ## ------------------------ ##
1474 ## Autoconf initialization. ##
1475 ## ------------------------ ##
1477 # ac_fn_c_try_compile LINENO
1478 # --------------------------
1479 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1480 ac_fn_c_try_compile ()
1482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1483 rm -f conftest.$ac_objext
1484 if { { ac_try="$ac_compile"
1486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1487 *) ac_try_echo=$ac_try;;
1489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1490 $as_echo "$ac_try_echo"; } >&5
1491 (eval "$ac_compile") 2>conftest.err
1493 if test -s conftest.err; then
1494 grep -v '^ *+' conftest.err >conftest.er1
1495 cat conftest.er1 >&5
1496 mv -f conftest.er1 conftest.err
1498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1499 test $ac_status = 0; } && {
1500 test -z "$ac_c_werror_flag" ||
1501 test ! -s conftest.err
1502 } && test -s conftest.$ac_objext; then :
1505 $as_echo "$as_me: failed program was:" >&5
1506 sed 's/^/| /' conftest.$ac_ext >&5
1510 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1511 as_fn_set_status $ac_retval
1513 } # ac_fn_c_try_compile
1515 # ac_fn_c_try_link LINENO
1516 # -----------------------
1517 # Try to link conftest.$ac_ext, and return whether this succeeded.
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 rm -f conftest.$ac_objext conftest$ac_exeext
1522 if { { ac_try="$ac_link"
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;;
1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529 (eval "$ac_link") 2>conftest.err
1531 if test -s conftest.err; then
1532 grep -v '^ *+' conftest.err >conftest.er1
1533 cat conftest.er1 >&5
1534 mv -f conftest.er1 conftest.err
1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; } && {
1538 test -z "$ac_c_werror_flag" ||
1539 test ! -s conftest.err
1540 } && test -s conftest$ac_exeext && {
1541 test "$cross_compiling" = yes ||
1542 $as_test_x conftest$ac_exeext
1546 $as_echo "$as_me: failed program was:" >&5
1547 sed 's/^/| /' conftest.$ac_ext >&5
1551 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1552 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1553 # interfere with the next link command; also delete a directory that is
1554 # left behind by Apple's compiler. We do this before executing the actions.
1555 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557 as_fn_set_status $ac_retval
1559 } # ac_fn_c_try_link
1561 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1562 # -------------------------------------------------------
1563 # Tests whether HEADER exists and can be compiled using the include files in
1564 # INCLUDES, setting the cache variable VAR accordingly.
1565 ac_fn_c_check_header_compile ()
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1569 $as_echo_n "checking for $2... " >&6; }
1570 if eval \${$3+:} false; then :
1571 $as_echo_n "(cached) " >&6
1573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1574 /* end confdefs.h. */
1578 if ac_fn_c_try_compile "$LINENO"; then :
1583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1587 $as_echo "$ac_res" >&6; }
1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590 } # ac_fn_c_check_header_compile
1592 # ac_fn_c_try_cpp LINENO
1593 # ----------------------
1594 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 if { { ac_try="$ac_cpp conftest.$ac_ext"
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1607 if test -s conftest.err; then
1608 grep -v '^ *+' conftest.err >conftest.er1
1609 cat conftest.er1 >&5
1610 mv -f conftest.er1 conftest.err
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 test $ac_status = 0; } > conftest.i && {
1614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1615 test ! -s conftest.err
1619 $as_echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 as_fn_set_status $ac_retval
1629 # ac_fn_c_try_run LINENO
1630 # ----------------------
1631 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1632 # that executables *can* be run.
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 if { { ac_try="$ac_link"
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_link") 2>&5
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1647 { { case "(($ac_try" in
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653 (eval "$ac_try") 2>&5
1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656 test $ac_status = 0; }; }; then :
1659 $as_echo "$as_me: program exited with status $ac_status" >&5
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1663 ac_retval=$ac_status
1665 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667 as_fn_set_status $ac_retval
1671 # ac_fn_c_check_func LINENO FUNC VAR
1672 # ----------------------------------
1673 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1674 ac_fn_c_check_func ()
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1678 $as_echo_n "checking for $2... " >&6; }
1679 if eval \${$3+:} false; then :
1680 $as_echo_n "(cached) " >&6
1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683 /* end confdefs.h. */
1684 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1686 #define $2 innocuous_$2
1688 /* System header to define __stub macros and hopefully few prototypes,
1689 which can conflict with char $2 (); below.
1690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1691 <limits.h> exists even on freestanding compilers. */
1694 # include <limits.h>
1696 # include <assert.h>
1701 /* Override any GCC internal prototype to avoid an error.
1702 Use char because int might match the return type of a GCC
1703 builtin and then its argument prototype would still apply. */
1708 /* The GNU C library defines this for functions which it implements
1709 to always fail with ENOSYS. Some functions are actually named
1710 something starting with __ and the normal name is an alias. */
1711 #if defined __stub_$2 || defined __stub___$2
1723 if ac_fn_c_try_link "$LINENO"; then :
1728 rm -f core conftest.err conftest.$ac_objext \
1729 conftest$ac_exeext conftest.$ac_ext
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733 $as_echo "$ac_res" >&6; }
1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 } # ac_fn_c_check_func
1738 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1739 # -------------------------------------------
1740 # Tests whether TYPE exists after having included INCLUDES, setting cache
1741 # variable VAR accordingly.
1742 ac_fn_c_check_type ()
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1746 $as_echo_n "checking for $2... " >&6; }
1747 if eval \${$3+:} false; then :
1748 $as_echo_n "(cached) " >&6
1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752 /* end confdefs.h. */
1763 if ac_fn_c_try_compile "$LINENO"; then :
1764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765 /* end confdefs.h. */
1776 if ac_fn_c_try_compile "$LINENO"; then :
1781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 } # ac_fn_c_check_type
1791 cat >config.log <<_ACEOF
1792 This file contains any messages produced by compilers while
1793 running configure, to aid debugging if configure makes a mistake.
1795 It was created by $as_me, which was
1796 generated by GNU Autoconf 2.68. Invocation command line was
1808 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1809 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1810 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1811 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1812 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1814 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1815 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1817 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1818 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1819 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1820 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1821 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1822 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1823 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831 test -z "$as_dir" && as_dir=.
1832 $as_echo "PATH: $as_dir"
1848 # Keep a trace of the command line.
1849 # Strip out --no-create and --no-recursion so they do not pile up.
1850 # Strip out --silent because we don't want to record it for future runs.
1851 # Also quote any args containing shell meta-characters.
1852 # Make two passes to allow for proper duplicate-argument suppression.
1856 ac_must_keep_next=false
1862 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1863 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1864 | -silent | --silent | --silen | --sile | --sil)
1867 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1870 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1872 as_fn_append ac_configure_args1 " '$ac_arg'"
1873 if test $ac_must_keep_next = true; then
1874 ac_must_keep_next=false # Got value, back to normal.
1877 *=* | --config-cache | -C | -disable-* | --disable-* \
1878 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1879 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1880 | -with-* | --with-* | -without-* | --without-* | --x)
1881 case "$ac_configure_args0 " in
1882 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1885 -* ) ac_must_keep_next=true ;;
1888 as_fn_append ac_configure_args " '$ac_arg'"
1893 { ac_configure_args0=; unset ac_configure_args0;}
1894 { ac_configure_args1=; unset ac_configure_args1;}
1896 # When interrupted or exit'd, cleanup temporary files, and complete
1897 # config.log. We remove comments because anyway the quotes in there
1898 # would cause problems or look ugly.
1899 # WARNING: Use '\'' to represent an apostrophe within the trap.
1900 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1901 trap 'exit_status=$?
1902 # Save into config.log some information that might help in debugging.
1906 $as_echo "## ---------------- ##
1907 ## Cache variables. ##
1908 ## ---------------- ##"
1910 # The following way of writing the cache mishandles newlines in values,
1912 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1913 eval ac_val=\$$ac_var
1917 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1918 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1921 _ | IFS | as_nl) ;; #(
1922 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1923 *) { eval $ac_var=; unset $ac_var;} ;;
1928 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1929 *${as_nl}ac_space=\ *)
1931 "s/'\''/'\''\\\\'\'''\''/g;
1932 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1935 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1942 $as_echo "## ----------------- ##
1943 ## Output variables. ##
1944 ## ----------------- ##"
1946 for ac_var in $ac_subst_vars
1948 eval ac_val=\$$ac_var
1950 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1952 $as_echo "$ac_var='\''$ac_val'\''"
1956 if test -n "$ac_subst_files"; then
1957 $as_echo "## ------------------- ##
1958 ## File substitutions. ##
1959 ## ------------------- ##"
1961 for ac_var in $ac_subst_files
1963 eval ac_val=\$$ac_var
1965 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1967 $as_echo "$ac_var='\''$ac_val'\''"
1972 if test -s confdefs.h; then
1973 $as_echo "## ----------- ##
1980 test "$ac_signal" != 0 &&
1981 $as_echo "$as_me: caught signal $ac_signal"
1982 $as_echo "$as_me: exit $exit_status"
1984 rm -f core *.core core.conftest.* &&
1985 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1988 for ac_signal in 1 2 13 15; do
1989 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1993 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1994 rm -f -r conftest* confdefs.h
1996 $as_echo "/* confdefs.h */" > confdefs.h
1998 # Predefined preprocessor variables.
2000 cat >>confdefs.h <<_ACEOF
2001 #define PACKAGE_NAME "$PACKAGE_NAME"
2004 cat >>confdefs.h <<_ACEOF
2005 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2008 cat >>confdefs.h <<_ACEOF
2009 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2012 cat >>confdefs.h <<_ACEOF
2013 #define PACKAGE_STRING "$PACKAGE_STRING"
2016 cat >>confdefs.h <<_ACEOF
2017 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2020 cat >>confdefs.h <<_ACEOF
2021 #define PACKAGE_URL "$PACKAGE_URL"
2025 # Let the site file select an alternate cache file if it wants to.
2026 # Prefer an explicitly selected file to automatically selected ones.
2029 if test -n "$CONFIG_SITE"; then
2030 # We do not want a PATH search for config.site.
2031 case $CONFIG_SITE in #((
2032 -*) ac_site_file1=./$CONFIG_SITE;;
2033 */*) ac_site_file1=$CONFIG_SITE;;
2034 *) ac_site_file1=./$CONFIG_SITE;;
2036 elif test "x$prefix" != xNONE; then
2037 ac_site_file1=$prefix/share/config.site
2038 ac_site_file2=$prefix/etc/config.site
2040 ac_site_file1=$ac_default_prefix/share/config.site
2041 ac_site_file2=$ac_default_prefix/etc/config.site
2043 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2045 test "x$ac_site_file" = xNONE && continue
2046 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2048 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2049 sed 's/^/| /' "$ac_site_file" >&5
2051 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2053 as_fn_error $? "failed to load site script $ac_site_file
2054 See \`config.log' for more details" "$LINENO" 5; }
2058 if test -r "$cache_file"; then
2059 # Some versions of bash will fail to source /dev/null (special files
2060 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2061 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2063 $as_echo "$as_me: loading cache $cache_file" >&6;}
2065 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2066 *) . "./$cache_file";;
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2071 $as_echo "$as_me: creating cache $cache_file" >&6;}
2075 # Check that the precious variables saved in the cache have kept the same
2077 ac_cache_corrupted=false
2078 for ac_var in $ac_precious_vars; do
2079 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2080 eval ac_new_set=\$ac_env_${ac_var}_set
2081 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2082 eval ac_new_val=\$ac_env_${ac_var}_value
2083 case $ac_old_set,$ac_new_set in
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2086 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2087 ac_cache_corrupted=: ;;
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2090 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2091 ac_cache_corrupted=: ;;
2094 if test "x$ac_old_val" != "x$ac_new_val"; then
2095 # differences in whitespace do not lead to failure.
2096 ac_old_val_w=`echo x $ac_old_val`
2097 ac_new_val_w=`echo x $ac_new_val`
2098 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2100 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2101 ac_cache_corrupted=:
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2104 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2105 eval $ac_var=\$ac_old_val
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2108 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2110 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2113 # Pass precious variables to config.status.
2114 if test "$ac_new_set" = set; then
2116 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2117 *) ac_arg=$ac_var=$ac_new_val ;;
2119 case " $ac_configure_args " in
2120 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2121 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2125 if $ac_cache_corrupted; then
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2129 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2130 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2132 ## -------------------- ##
2133 ## Main body of script. ##
2134 ## -------------------- ##
2137 ac_cpp='$CPP $CPPFLAGS'
2138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2144 for ac_dir in . "$srcdir"/.; do
2145 if test -f "$ac_dir/install-sh"; then
2147 ac_install_sh="$ac_aux_dir/install-sh -c"
2149 elif test -f "$ac_dir/install.sh"; then
2151 ac_install_sh="$ac_aux_dir/install.sh -c"
2153 elif test -f "$ac_dir/shtool"; then
2155 ac_install_sh="$ac_aux_dir/shtool install -c"
2159 if test -z "$ac_aux_dir"; then
2160 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2163 # These three variables are undocumented and unsupported,
2164 # and are intended to be withdrawn in a future Autoconf release.
2165 # They can cause serious problems if a builder's source tree is in a directory
2166 # whose full name contains unusual characters.
2167 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2168 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2169 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2173 ac_config_headers="$ac_config_headers include/config.h"
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2180 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2186 macro_revision='1.3293'
2200 ltmain="$ac_aux_dir/ltmain.sh"
2202 # Make sure we can run config.sub.
2203 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2204 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2207 $as_echo_n "checking build system type... " >&6; }
2208 if ${ac_cv_build+:} false; then :
2209 $as_echo_n "(cached) " >&6
2211 ac_build_alias=$build_alias
2212 test "x$ac_build_alias" = x &&
2213 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2214 test "x$ac_build_alias" = x &&
2215 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2216 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2217 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2221 $as_echo "$ac_cv_build" >&6; }
2222 case $ac_cv_build in
2224 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2227 ac_save_IFS=$IFS; IFS='-'
2233 # Remember, the first character of IFS is used to create $*,
2234 # except with old shells:
2237 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2241 $as_echo_n "checking host system type... " >&6; }
2242 if ${ac_cv_host+:} false; then :
2243 $as_echo_n "(cached) " >&6
2245 if test "x$host_alias" = x; then
2246 ac_cv_host=$ac_cv_build
2248 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2249 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2254 $as_echo "$ac_cv_host" >&6; }
2257 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2260 ac_save_IFS=$IFS; IFS='-'
2266 # Remember, the first character of IFS is used to create $*,
2267 # except with old shells:
2270 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2273 # Backslashify metacharacters that are still active within
2274 # double-quoted strings.
2275 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2277 # Same as above, but do not quote variable references.
2278 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2280 # Sed substitution to delay expansion of an escaped shell variable in a
2281 # double_quote_subst'ed string.
2282 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2284 # Sed substitution to delay expansion of an escaped single quote.
2285 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2287 # Sed substitution to avoid accidental globbing in evaled expressions
2288 no_glob_subst='s/\*/\\\*/g'
2290 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2291 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2292 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2295 $as_echo_n "checking how to print strings... " >&6; }
2296 # Test print first, because it will be a builtin if present.
2297 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2298 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2300 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2303 # Use this function as a fallback that always works.
2304 func_fallback_echo ()
2306 eval 'cat <<_LTECHO_EOF
2310 ECHO='func_fallback_echo'
2313 # func_echo_all arg...
2314 # Invoke $ECHO with all args, space-separated.
2321 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2322 $as_echo "printf" >&6; } ;;
2323 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2324 $as_echo "print -r" >&6; } ;;
2325 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2326 $as_echo "cat" >&6; } ;;
2343 ac_cpp='$CPP $CPPFLAGS'
2344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2347 if test -n "$ac_tool_prefix"; then
2348 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2349 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2351 $as_echo_n "checking for $ac_word... " >&6; }
2352 if ${ac_cv_prog_CC+:} false; then :
2353 $as_echo_n "(cached) " >&6
2355 if test -n "$CC"; then
2356 ac_cv_prog_CC="$CC" # Let the user override the test.
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362 test -z "$as_dir" && as_dir=.
2363 for ac_exec_ext in '' $ac_executable_extensions; do
2364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2365 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2376 if test -n "$CC"; then
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2378 $as_echo "$CC" >&6; }
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2381 $as_echo "no" >&6; }
2386 if test -z "$ac_cv_prog_CC"; then
2388 # Extract the first word of "gcc", so it can be a program name with args.
2389 set dummy gcc; ac_word=$2
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2391 $as_echo_n "checking for $ac_word... " >&6; }
2392 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2393 $as_echo_n "(cached) " >&6
2395 if test -n "$ac_ct_CC"; then
2396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402 test -z "$as_dir" && as_dir=.
2403 for ac_exec_ext in '' $ac_executable_extensions; do
2404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2405 ac_cv_prog_ac_ct_CC="gcc"
2406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2415 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2416 if test -n "$ac_ct_CC"; then
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2418 $as_echo "$ac_ct_CC" >&6; }
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2421 $as_echo "no" >&6; }
2424 if test "x$ac_ct_CC" = x; then
2427 case $cross_compiling:$ac_tool_warned in
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2431 ac_tool_warned=yes ;;
2439 if test -z "$CC"; then
2440 if test -n "$ac_tool_prefix"; then
2441 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2442 set dummy ${ac_tool_prefix}cc; ac_word=$2
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2444 $as_echo_n "checking for $ac_word... " >&6; }
2445 if ${ac_cv_prog_CC+:} false; then :
2446 $as_echo_n "(cached) " >&6
2448 if test -n "$CC"; then
2449 ac_cv_prog_CC="$CC" # Let the user override the test.
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 test -z "$as_dir" && as_dir=.
2456 for ac_exec_ext in '' $ac_executable_extensions; do
2457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2458 ac_cv_prog_CC="${ac_tool_prefix}cc"
2459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 if test -n "$CC"; then
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2471 $as_echo "$CC" >&6; }
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2474 $as_echo "no" >&6; }
2480 if test -z "$CC"; then
2481 # Extract the first word of "cc", so it can be a program name with args.
2482 set dummy cc; ac_word=$2
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2484 $as_echo_n "checking for $ac_word... " >&6; }
2485 if ${ac_cv_prog_CC+:} false; then :
2486 $as_echo_n "(cached) " >&6
2488 if test -n "$CC"; then
2489 ac_cv_prog_CC="$CC" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2500 ac_prog_rejected=yes
2504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2511 if test $ac_prog_rejected = yes; then
2512 # We found a bogon in the path, so make sure we never use it.
2513 set dummy $ac_cv_prog_CC
2515 if test $# != 0; then
2516 # We chose a different compiler from the bogus one.
2517 # However, it has the same basename, so the bogon will be chosen
2518 # first if we set CC to just the basename; use the full file name.
2520 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2526 if test -n "$CC"; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2528 $as_echo "$CC" >&6; }
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531 $as_echo "no" >&6; }
2536 if test -z "$CC"; then
2537 if test -n "$ac_tool_prefix"; then
2538 for ac_prog in cl.exe
2540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2543 $as_echo_n "checking for $ac_word... " >&6; }
2544 if ${ac_cv_prog_CC+:} false; then :
2545 $as_echo_n "(cached) " >&6
2547 if test -n "$CC"; then
2548 ac_cv_prog_CC="$CC" # Let the user override the test.
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554 test -z "$as_dir" && as_dir=.
2555 for ac_exec_ext in '' $ac_executable_extensions; do
2556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2557 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2568 if test -n "$CC"; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2570 $as_echo "$CC" >&6; }
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2573 $as_echo "no" >&6; }
2577 test -n "$CC" && break
2580 if test -z "$CC"; then
2582 for ac_prog in cl.exe
2584 # Extract the first word of "$ac_prog", so it can be a program name with args.
2585 set dummy $ac_prog; ac_word=$2
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2587 $as_echo_n "checking for $ac_word... " >&6; }
2588 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2589 $as_echo_n "(cached) " >&6
2591 if test -n "$ac_ct_CC"; then
2592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 test -z "$as_dir" && as_dir=.
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2601 ac_cv_prog_ac_ct_CC="$ac_prog"
2602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2612 if test -n "$ac_ct_CC"; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2614 $as_echo "$ac_ct_CC" >&6; }
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2617 $as_echo "no" >&6; }
2621 test -n "$ac_ct_CC" && break
2624 if test "x$ac_ct_CC" = x; then
2627 case $cross_compiling:$ac_tool_warned in
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2631 ac_tool_warned=yes ;;
2640 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2642 as_fn_error $? "no acceptable C compiler found in \$PATH
2643 See \`config.log' for more details" "$LINENO" 5; }
2645 # Provide some information about the compiler.
2646 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2649 for ac_option in --version -v -V -qversion; do
2650 { { ac_try="$ac_compiler $ac_option >&5"
2652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2653 *) ac_try_echo=$ac_try;;
2655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2656 $as_echo "$ac_try_echo"; } >&5
2657 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2659 if test -s conftest.err; then
2661 ... rest of stderr output deleted ...
2662 10q' conftest.err >conftest.er1
2663 cat conftest.er1 >&5
2665 rm -f conftest.er1 conftest.err
2666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2667 test $ac_status = 0; }
2670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2671 /* end confdefs.h. */
2681 ac_clean_files_save=$ac_clean_files
2682 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2683 # Try to create an executable without -o first, disregard a.out.
2684 # It will help us diagnose broken compilers, and finding out an intuition
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2687 $as_echo_n "checking whether the C compiler works... " >&6; }
2688 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2690 # The possible output files:
2691 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2694 for ac_file in $ac_files
2697 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2698 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2703 if { { ac_try="$ac_link_default"
2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706 *) ac_try_echo=$ac_try;;
2708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2709 $as_echo "$ac_try_echo"; } >&5
2710 (eval "$ac_link_default") 2>&5
2712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2713 test $ac_status = 0; }; then :
2714 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2715 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2716 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2717 # so that the user can short-circuit this test for compilers unknown to
2719 for ac_file in $ac_files ''
2721 test -f "$ac_file" || continue
2723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2726 # We found the default executable, but exeext='' is most
2730 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2732 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2734 # We set ac_cv_exeext here because the later test for it is not
2735 # safe: cross compilers may not add the suffix if given an `-o'
2736 # argument, so we may need to know it at that point already.
2737 # Even if this section looks crufty: it has the advantage of
2744 test "$ac_cv_exeext" = no && ac_cv_exeext=
2749 if test -z "$ac_file"; then :
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2751 $as_echo "no" >&6; }
2752 $as_echo "$as_me: failed program was:" >&5
2753 sed 's/^/| /' conftest.$ac_ext >&5
2755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2757 as_fn_error 77 "C compiler cannot create executables
2758 See \`config.log' for more details" "$LINENO" 5; }
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2761 $as_echo "yes" >&6; }
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2764 $as_echo_n "checking for C compiler default output file name... " >&6; }
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2766 $as_echo "$ac_file" >&6; }
2767 ac_exeext=$ac_cv_exeext
2769 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2770 ac_clean_files=$ac_clean_files_save
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2772 $as_echo_n "checking for suffix of executables... " >&6; }
2773 if { { ac_try="$ac_link"
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2779 $as_echo "$ac_try_echo"; } >&5
2780 (eval "$ac_link") 2>&5
2782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2783 test $ac_status = 0; }; then :
2784 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2785 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2786 # work properly (i.e., refer to `conftest.exe'), while it won't with
2788 for ac_file in conftest.exe conftest conftest.*; do
2789 test -f "$ac_file" || continue
2791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2792 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2800 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2801 See \`config.log' for more details" "$LINENO" 5; }
2803 rm -f conftest conftest$ac_cv_exeext
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2805 $as_echo "$ac_cv_exeext" >&6; }
2807 rm -f conftest.$ac_ext
2808 EXEEXT=$ac_cv_exeext
2810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2811 /* end confdefs.h. */
2816 FILE *f = fopen ("conftest.out", "w");
2817 return ferror (f) || fclose (f) != 0;
2823 ac_clean_files="$ac_clean_files conftest.out"
2824 # Check that the compiler produces executables we can run. If not, either
2825 # the compiler is broken, or we cross compile.
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2827 $as_echo_n "checking whether we are cross compiling... " >&6; }
2828 if test "$cross_compiling" != yes; then
2829 { { ac_try="$ac_link"
2831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832 *) ac_try_echo=$ac_try;;
2834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2835 $as_echo "$ac_try_echo"; } >&5
2836 (eval "$ac_link") 2>&5
2838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2839 test $ac_status = 0; }
2840 if { ac_try='./conftest$ac_cv_exeext'
2841 { { case "(($ac_try" in
2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2846 $as_echo "$ac_try_echo"; } >&5
2847 (eval "$ac_try") 2>&5
2849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2850 test $ac_status = 0; }; }; then
2853 if test "$cross_compiling" = maybe; then
2856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2858 as_fn_error $? "cannot run C compiled programs.
2859 If you meant to cross compile, use \`--host'.
2860 See \`config.log' for more details" "$LINENO" 5; }
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2865 $as_echo "$cross_compiling" >&6; }
2867 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2868 ac_clean_files=$ac_clean_files_save
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2870 $as_echo_n "checking for suffix of object files... " >&6; }
2871 if ${ac_cv_objext+:} false; then :
2872 $as_echo_n "(cached) " >&6
2874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2875 /* end confdefs.h. */
2885 rm -f conftest.o conftest.obj
2886 if { { ac_try="$ac_compile"
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2892 $as_echo "$ac_try_echo"; } >&5
2893 (eval "$ac_compile") 2>&5
2895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2896 test $ac_status = 0; }; then :
2897 for ac_file in conftest.o conftest.obj conftest.*; do
2898 test -f "$ac_file" || continue;
2900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2901 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2906 $as_echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2911 as_fn_error $? "cannot compute suffix of object files: cannot compile
2912 See \`config.log' for more details" "$LINENO" 5; }
2914 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2917 $as_echo "$ac_cv_objext" >&6; }
2918 OBJEXT=$ac_cv_objext
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2921 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2922 if ${ac_cv_c_compiler_gnu+:} false; then :
2923 $as_echo_n "(cached) " >&6
2925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926 /* end confdefs.h. */
2939 if ac_fn_c_try_compile "$LINENO"; then :
2944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2945 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2949 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2950 if test $ac_compiler_gnu = yes; then
2955 ac_test_CFLAGS=${CFLAGS+set}
2956 ac_save_CFLAGS=$CFLAGS
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2958 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2959 if ${ac_cv_prog_cc_g+:} false; then :
2960 $as_echo_n "(cached) " >&6
2962 ac_save_c_werror_flag=$ac_c_werror_flag
2963 ac_c_werror_flag=yes
2966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2967 /* end confdefs.h. */
2977 if ac_fn_c_try_compile "$LINENO"; then :
2981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2982 /* end confdefs.h. */
2992 if ac_fn_c_try_compile "$LINENO"; then :
2995 ac_c_werror_flag=$ac_save_c_werror_flag
2997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2998 /* end confdefs.h. */
3008 if ac_fn_c_try_compile "$LINENO"; then :
3011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3016 ac_c_werror_flag=$ac_save_c_werror_flag
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3019 $as_echo "$ac_cv_prog_cc_g" >&6; }
3020 if test "$ac_test_CFLAGS" = set; then
3021 CFLAGS=$ac_save_CFLAGS
3022 elif test $ac_cv_prog_cc_g = yes; then
3023 if test "$GCC" = yes; then
3029 if test "$GCC" = yes; then
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3036 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3037 if ${ac_cv_prog_cc_c89+:} false; then :
3038 $as_echo_n "(cached) " >&6
3040 ac_cv_prog_cc_c89=no
3042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3043 /* end confdefs.h. */
3046 #include <sys/types.h>
3047 #include <sys/stat.h>
3048 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3049 struct buf { int x; };
3050 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3051 static char *e (p, i)
3057 static char *f (char * (*g) (char **, int), char **p, ...)
3062 s = g (p, va_arg (v,int));
3067 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3068 function prototypes and stuff, but not '\xHH' hex character constants.
3069 These don't provoke an error unfortunately, instead are silently treated
3070 as 'x'. The following induces an error, until -std is added to get
3071 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3072 array size at least. It's necessary to write '\x00'==0 to get something
3073 that's true only with -std. */
3074 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3076 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3077 inside strings and character constants. */
3079 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3081 int test (int i, double x);
3082 struct s1 {int (*f) (int a);};
3083 struct s2 {int (*f) (double a);};
3084 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3090 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3095 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3096 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3098 CC="$ac_save_CC $ac_arg"
3099 if ac_fn_c_try_compile "$LINENO"; then :
3100 ac_cv_prog_cc_c89=$ac_arg
3102 rm -f core conftest.err conftest.$ac_objext
3103 test "x$ac_cv_prog_cc_c89" != "xno" && break
3105 rm -f conftest.$ac_ext
3110 case "x$ac_cv_prog_cc_c89" in
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3113 $as_echo "none needed" >&6; } ;;
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3116 $as_echo "unsupported" >&6; } ;;
3118 CC="$CC $ac_cv_prog_cc_c89"
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3120 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3122 if test "x$ac_cv_prog_cc_c89" != xno; then :
3127 ac_cpp='$CPP $CPPFLAGS'
3128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3133 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3134 if ${ac_cv_path_SED+:} false; then :
3135 $as_echo_n "(cached) " >&6
3137 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3138 for ac_i in 1 2 3 4 5 6 7; do
3139 ac_script="$ac_script$as_nl$ac_script"
3141 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3142 { ac_script=; unset ac_script;}
3143 if test -z "$SED"; then
3144 ac_path_SED_found=false
3145 # Loop through the user's path and test for each of PROGNAME-LIST
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 test -z "$as_dir" && as_dir=.
3151 for ac_prog in sed gsed; do
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3154 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3155 # Check for GNU ac_path_SED and select it if it is found.
3156 # Check for GNU $ac_path_SED
3157 case `"$ac_path_SED" --version 2>&1` in
3159 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3162 $as_echo_n 0123456789 >"conftest.in"
3165 cat "conftest.in" "conftest.in" >"conftest.tmp"
3166 mv "conftest.tmp" "conftest.in"
3167 cp "conftest.in" "conftest.nl"
3168 $as_echo '' >> "conftest.nl"
3169 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3170 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3171 as_fn_arith $ac_count + 1 && ac_count=$as_val
3172 if test $ac_count -gt ${ac_path_SED_max-0}; then
3173 # Best one so far, save it but keep looking for a better one
3174 ac_cv_path_SED="$ac_path_SED"
3175 ac_path_SED_max=$ac_count
3177 # 10*(2^10) chars as input seems more than enough
3178 test $ac_count -gt 10 && break
3180 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3183 $ac_path_SED_found && break 3
3188 if test -z "$ac_cv_path_SED"; then
3189 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3197 $as_echo "$ac_cv_path_SED" >&6; }
3198 SED="$ac_cv_path_SED"
3201 test -z "$SED" && SED=sed
3202 Xsed="$SED -e 1s/^X//"
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3215 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3216 if ${ac_cv_path_GREP+:} false; then :
3217 $as_echo_n "(cached) " >&6
3219 if test -z "$GREP"; then
3220 ac_path_GREP_found=false
3221 # Loop through the user's path and test for each of PROGNAME-LIST
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3226 test -z "$as_dir" && as_dir=.
3227 for ac_prog in grep ggrep; do
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3230 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3231 # Check for GNU ac_path_GREP and select it if it is found.
3232 # Check for GNU $ac_path_GREP
3233 case `"$ac_path_GREP" --version 2>&1` in
3235 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3238 $as_echo_n 0123456789 >"conftest.in"
3241 cat "conftest.in" "conftest.in" >"conftest.tmp"
3242 mv "conftest.tmp" "conftest.in"
3243 cp "conftest.in" "conftest.nl"
3244 $as_echo 'GREP' >> "conftest.nl"
3245 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3246 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3247 as_fn_arith $ac_count + 1 && ac_count=$as_val
3248 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3249 # Best one so far, save it but keep looking for a better one
3250 ac_cv_path_GREP="$ac_path_GREP"
3251 ac_path_GREP_max=$ac_count
3253 # 10*(2^10) chars as input seems more than enough
3254 test $ac_count -gt 10 && break
3256 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3259 $ac_path_GREP_found && break 3
3264 if test -z "$ac_cv_path_GREP"; then
3265 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3268 ac_cv_path_GREP=$GREP
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3273 $as_echo "$ac_cv_path_GREP" >&6; }
3274 GREP="$ac_cv_path_GREP"
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3278 $as_echo_n "checking for egrep... " >&6; }
3279 if ${ac_cv_path_EGREP+:} false; then :
3280 $as_echo_n "(cached) " >&6
3282 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3283 then ac_cv_path_EGREP="$GREP -E"
3285 if test -z "$EGREP"; then
3286 ac_path_EGREP_found=false
3287 # Loop through the user's path and test for each of PROGNAME-LIST
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3292 test -z "$as_dir" && as_dir=.
3293 for ac_prog in egrep; do
3294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3296 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3297 # Check for GNU ac_path_EGREP and select it if it is found.
3298 # Check for GNU $ac_path_EGREP
3299 case `"$ac_path_EGREP" --version 2>&1` in
3301 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3304 $as_echo_n 0123456789 >"conftest.in"
3307 cat "conftest.in" "conftest.in" >"conftest.tmp"
3308 mv "conftest.tmp" "conftest.in"
3309 cp "conftest.in" "conftest.nl"
3310 $as_echo 'EGREP' >> "conftest.nl"
3311 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3312 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3313 as_fn_arith $ac_count + 1 && ac_count=$as_val
3314 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3315 # Best one so far, save it but keep looking for a better one
3316 ac_cv_path_EGREP="$ac_path_EGREP"
3317 ac_path_EGREP_max=$ac_count
3319 # 10*(2^10) chars as input seems more than enough
3320 test $ac_count -gt 10 && break
3322 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3325 $ac_path_EGREP_found && break 3
3330 if test -z "$ac_cv_path_EGREP"; then
3331 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3334 ac_cv_path_EGREP=$EGREP
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3340 $as_echo "$ac_cv_path_EGREP" >&6; }
3341 EGREP="$ac_cv_path_EGREP"
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3345 $as_echo_n "checking for fgrep... " >&6; }
3346 if ${ac_cv_path_FGREP+:} false; then :
3347 $as_echo_n "(cached) " >&6
3349 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3350 then ac_cv_path_FGREP="$GREP -F"
3352 if test -z "$FGREP"; then
3353 ac_path_FGREP_found=false
3354 # Loop through the user's path and test for each of PROGNAME-LIST
3355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3359 test -z "$as_dir" && as_dir=.
3360 for ac_prog in fgrep; do
3361 for ac_exec_ext in '' $ac_executable_extensions; do
3362 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3363 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3364 # Check for GNU ac_path_FGREP and select it if it is found.
3365 # Check for GNU $ac_path_FGREP
3366 case `"$ac_path_FGREP" --version 2>&1` in
3368 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3371 $as_echo_n 0123456789 >"conftest.in"
3374 cat "conftest.in" "conftest.in" >"conftest.tmp"
3375 mv "conftest.tmp" "conftest.in"
3376 cp "conftest.in" "conftest.nl"
3377 $as_echo 'FGREP' >> "conftest.nl"
3378 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3379 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3380 as_fn_arith $ac_count + 1 && ac_count=$as_val
3381 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3382 # Best one so far, save it but keep looking for a better one
3383 ac_cv_path_FGREP="$ac_path_FGREP"
3384 ac_path_FGREP_max=$ac_count
3386 # 10*(2^10) chars as input seems more than enough
3387 test $ac_count -gt 10 && break
3389 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3392 $ac_path_FGREP_found && break 3
3397 if test -z "$ac_cv_path_FGREP"; then
3398 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3401 ac_cv_path_FGREP=$FGREP
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3407 $as_echo "$ac_cv_path_FGREP" >&6; }
3408 FGREP="$ac_cv_path_FGREP"
3411 test -z "$GREP" && GREP=grep
3431 # Check whether --with-gnu-ld was given.
3432 if test "${with_gnu_ld+set}" = set; then :
3433 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3439 if test "$GCC" = yes; then
3440 # Check if gcc -print-prog-name=ld gives a path.
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3442 $as_echo_n "checking for ld used by $CC... " >&6; }
3445 # gcc leaves a trailing carriage return which upsets mingw
3446 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3448 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3451 # Accept absolute paths.
3453 re_direlt='/[^/][^/]*/\.\./'
3454 # Canonicalize the pathname of ld
3455 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3456 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3457 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3459 test -z "$LD" && LD="$ac_prog"
3462 # If it fails, then pretend we aren't using GCC.
3466 # If it is relative, then search for the first ld in PATH.
3470 elif test "$with_gnu_ld" = yes; then
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3472 $as_echo_n "checking for GNU ld... " >&6; }
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3475 $as_echo_n "checking for non-GNU ld... " >&6; }
3477 if ${lt_cv_path_LD+:} false; then :
3478 $as_echo_n "(cached) " >&6
3480 if test -z "$LD"; then
3481 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3482 for ac_dir in $PATH; do
3484 test -z "$ac_dir" && ac_dir=.
3485 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3486 lt_cv_path_LD="$ac_dir/$ac_prog"
3487 # Check to see if the program is GNU ld. I'd rather use --version,
3488 # but apparently some variants of GNU ld only accept -v.
3489 # Break only if it was the GNU/non-GNU ld that we prefer.
3490 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3491 *GNU* | *'with BFD'*)
3492 test "$with_gnu_ld" != no && break
3495 test "$with_gnu_ld" != yes && break
3502 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3507 if test -n "$LD"; then
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3509 $as_echo "$LD" >&6; }
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3514 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3516 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3517 if ${lt_cv_prog_gnu_ld+:} false; then :
3518 $as_echo_n "(cached) " >&6
3520 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3521 case `$LD -v 2>&1 </dev/null` in
3522 *GNU* | *'with BFD'*)
3523 lt_cv_prog_gnu_ld=yes
3526 lt_cv_prog_gnu_ld=no
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3531 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3532 with_gnu_ld=$lt_cv_prog_gnu_ld
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3543 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3544 if ${lt_cv_path_NM+:} false; then :
3545 $as_echo_n "(cached) " >&6
3547 if test -n "$NM"; then
3548 # Let the user override the test.
3551 lt_nm_to_check="${ac_tool_prefix}nm"
3552 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3553 lt_nm_to_check="$lt_nm_to_check nm"
3555 for lt_tmp_nm in $lt_nm_to_check; do
3556 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3557 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3559 test -z "$ac_dir" && ac_dir=.
3560 tmp_nm="$ac_dir/$lt_tmp_nm"
3561 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3562 # Check to see if the nm accepts a BSD-compat flag.
3563 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3564 # nm: unknown option "B" ignored
3565 # Tru64's nm complains that /dev/null is an invalid object file
3566 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3567 */dev/null* | *'Invalid file or object type'*)
3568 lt_cv_path_NM="$tmp_nm -B"
3572 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3574 lt_cv_path_NM="$tmp_nm -p"
3578 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3579 continue # so that we can try to find one that supports BSD flags
3588 : ${lt_cv_path_NM=no}
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3592 $as_echo "$lt_cv_path_NM" >&6; }
3593 if test "$lt_cv_path_NM" != "no"; then
3596 # Didn't find any BSD compatible name lister, look for dumpbin.
3597 if test -n "$DUMPBIN"; then :
3598 # Let the user override the test.
3600 if test -n "$ac_tool_prefix"; then
3601 for ac_prog in dumpbin "link -dump"
3603 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3604 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3606 $as_echo_n "checking for $ac_word... " >&6; }
3607 if ${ac_cv_prog_DUMPBIN+:} false; then :
3608 $as_echo_n "(cached) " >&6
3610 if test -n "$DUMPBIN"; then
3611 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 test -z "$as_dir" && as_dir=.
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3620 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 DUMPBIN=$ac_cv_prog_DUMPBIN
3631 if test -n "$DUMPBIN"; then
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3633 $as_echo "$DUMPBIN" >&6; }
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636 $as_echo "no" >&6; }
3640 test -n "$DUMPBIN" && break
3643 if test -z "$DUMPBIN"; then
3644 ac_ct_DUMPBIN=$DUMPBIN
3645 for ac_prog in dumpbin "link -dump"
3647 # Extract the first word of "$ac_prog", so it can be a program name with args.
3648 set dummy $ac_prog; ac_word=$2
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3650 $as_echo_n "checking for $ac_word... " >&6; }
3651 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3652 $as_echo_n "(cached) " >&6
3654 if test -n "$ac_ct_DUMPBIN"; then
3655 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 test -z "$as_dir" && as_dir=.
3662 for ac_exec_ext in '' $ac_executable_extensions; do
3663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3664 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3674 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3675 if test -n "$ac_ct_DUMPBIN"; then
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3677 $as_echo "$ac_ct_DUMPBIN" >&6; }
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3680 $as_echo "no" >&6; }
3684 test -n "$ac_ct_DUMPBIN" && break
3687 if test "x$ac_ct_DUMPBIN" = x; then
3690 case $cross_compiling:$ac_tool_warned in
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3694 ac_tool_warned=yes ;;
3696 DUMPBIN=$ac_ct_DUMPBIN
3700 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3702 DUMPBIN="$DUMPBIN -symbols"
3710 if test "$DUMPBIN" != ":"; then
3714 test -z "$NM" && NM=nm
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3722 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3723 if ${lt_cv_nm_interface+:} false; then :
3724 $as_echo_n "(cached) " >&6
3726 lt_cv_nm_interface="BSD nm"
3727 echo "int some_variable = 0;" > conftest.$ac_ext
3728 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
3729 (eval "$ac_compile" 2>conftest.err)
3730 cat conftest.err >&5
3731 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3732 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3733 cat conftest.err >&5
3734 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
3735 cat conftest.out >&5
3736 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3737 lt_cv_nm_interface="MS dumpbin"
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3742 $as_echo "$lt_cv_nm_interface" >&6; }
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3745 $as_echo_n "checking whether ln -s works... " >&6; }
3747 if test "$LN_S" = "ln -s"; then
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3749 $as_echo "yes" >&6; }
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3752 $as_echo "no, using $LN_S" >&6; }
3755 # find the maximum length of command line arguments
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3757 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3758 if ${lt_cv_sys_max_cmd_len+:} false; then :
3759 $as_echo_n "(cached) " >&6
3766 # On DJGPP, this test can blow up pretty badly due to problems in libc
3767 # (any single argument exceeding 2000 bytes causes a buffer overrun
3768 # during glob expansion). Even if it were fixed, the result of this
3769 # check would be larger than it should be.
3770 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3774 # Under GNU Hurd, this test is not required because there is
3775 # no limit to the length of command line arguments.
3776 # Libtool will interpret -1 as no limit whatsoever
3777 lt_cv_sys_max_cmd_len=-1;
3780 cygwin* | mingw* | cegcc*)
3781 # On Win9x/ME, this test blows up -- it succeeds, but takes
3782 # about 5 minutes as the teststring grows exponentially.
3783 # Worse, since 9x/ME are not pre-emptively multitasking,
3784 # you end up with a "frozen" computer, even though with patience
3785 # the test eventually succeeds (with a max line length of 256k).
3786 # Instead, let's just punt: use the minimum linelength reported by
3787 # all of the supported platforms: 8192 (on NT/2K/XP).
3788 lt_cv_sys_max_cmd_len=8192;
3792 # On MiNT this can take a long time and run out of memory.
3793 lt_cv_sys_max_cmd_len=8192;
3797 # On AmigaOS with pdksh, this test takes hours, literally.
3798 # So we just punt and use a minimum line length of 8192.
3799 lt_cv_sys_max_cmd_len=8192;
3802 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3803 # This has been around since 386BSD, at least. Likely further.
3804 if test -x /sbin/sysctl; then
3805 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3806 elif test -x /usr/sbin/sysctl; then
3807 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3809 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3811 # And add a safety zone
3812 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3813 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3817 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3818 lt_cv_sys_max_cmd_len=196608
3822 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3823 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3824 # nice to cause kernel panics so lets avoid the loop below.
3825 # First set a reasonable default.
3826 lt_cv_sys_max_cmd_len=16384
3828 if test -x /sbin/sysconfig; then
3829 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3830 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3835 lt_cv_sys_max_cmd_len=102400
3837 sysv5* | sco5v6* | sysv4.2uw2*)
3838 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3839 if test -n "$kargmax"; then
3840 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3842 lt_cv_sys_max_cmd_len=32768
3846 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3847 if test -n "$lt_cv_sys_max_cmd_len"; then
3848 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3849 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3851 # Make teststring a little bigger before we do anything with it.
3852 # a 1K string should be a reasonable start.
3853 for i in 1 2 3 4 5 6 7 8 ; do
3854 teststring=$teststring$teststring
3856 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3857 # If test is not a shell built-in, we'll probably end up computing a
3858 # maximum length that is only half of the actual maximum length, but
3860 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
3861 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
3862 test $i != 17 # 1/2 MB should be enough
3865 teststring=$teststring$teststring
3867 # Only check the string length outside the loop.
3868 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3870 # Add a significant safety factor because C++ compilers can tack on
3871 # massive amounts of additional arguments before passing them to the
3872 # linker. It appears as though 1/2 is a usable value.
3873 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3880 if test -n $lt_cv_sys_max_cmd_len ; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
3882 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
3885 $as_echo "none" >&6; }
3887 max_cmd_len=$lt_cv_sys_max_cmd_len
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
3899 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
3900 # Try some XSI features
3903 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
3905 && eval 'test $(( 1 + 1 )) -eq 2 \
3906 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
3909 $as_echo "$xsi_shell" >&6; }
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
3913 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
3915 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3917 && lt_shell_append=yes
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
3919 $as_echo "$lt_shell_append" >&6; }
3922 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3932 # test EBCDIC or ASCII
3933 case `echo X|tr X '\101'` in
3934 A) # ASCII based system
3935 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3936 lt_SP2NL='tr \040 \012'
3937 lt_NL2SP='tr \015\012 \040\040'
3939 *) # EBCDIC based system
3940 lt_SP2NL='tr \100 \n'
3941 lt_NL2SP='tr \r\n \100\100'
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
3954 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
3955 if ${lt_cv_to_host_file_cmd+:} false; then :
3956 $as_echo_n "(cached) " >&6
3961 *-*-mingw* ) # actually msys
3962 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
3965 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
3967 * ) # otherwise, assume *nix
3968 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
3974 *-*-mingw* ) # actually msys
3975 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
3978 lt_cv_to_host_file_cmd=func_convert_file_noop
3980 * ) # otherwise, assume *nix
3981 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
3985 * ) # unhandled hosts (and "normal" native builds)
3986 lt_cv_to_host_file_cmd=func_convert_file_noop
3992 to_host_file_cmd=$lt_cv_to_host_file_cmd
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
3994 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4001 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4002 if ${lt_cv_to_tool_file_cmd+:} false; then :
4003 $as_echo_n "(cached) " >&6
4005 #assume ordinary cross tools, or native build.
4006 lt_cv_to_tool_file_cmd=func_convert_file_noop
4010 *-*-mingw* ) # actually msys
4011 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4019 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4021 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4028 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4029 if ${lt_cv_ld_reload_flag+:} false; then :
4030 $as_echo_n "(cached) " >&6
4032 lt_cv_ld_reload_flag='-r'
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4035 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4036 reload_flag=$lt_cv_ld_reload_flag
4037 case $reload_flag in
4039 *) reload_flag=" $reload_flag" ;;
4041 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4043 cygwin* | mingw* | pw32* | cegcc*)
4044 if test "$GCC" != yes; then
4049 if test "$GCC" = yes; then
4050 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4052 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4065 if test -n "$ac_tool_prefix"; then
4066 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4067 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069 $as_echo_n "checking for $ac_word... " >&6; }
4070 if ${ac_cv_prog_OBJDUMP+:} false; then :
4071 $as_echo_n "(cached) " >&6
4073 if test -n "$OBJDUMP"; then
4074 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080 test -z "$as_dir" && as_dir=.
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4083 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4093 OBJDUMP=$ac_cv_prog_OBJDUMP
4094 if test -n "$OBJDUMP"; then
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4096 $as_echo "$OBJDUMP" >&6; }
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099 $as_echo "no" >&6; }
4104 if test -z "$ac_cv_prog_OBJDUMP"; then
4105 ac_ct_OBJDUMP=$OBJDUMP
4106 # Extract the first word of "objdump", so it can be a program name with args.
4107 set dummy objdump; ac_word=$2
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4109 $as_echo_n "checking for $ac_word... " >&6; }
4110 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4111 $as_echo_n "(cached) " >&6
4113 if test -n "$ac_ct_OBJDUMP"; then
4114 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 test -z "$as_dir" && as_dir=.
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4123 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4134 if test -n "$ac_ct_OBJDUMP"; then
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4136 $as_echo "$ac_ct_OBJDUMP" >&6; }
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139 $as_echo "no" >&6; }
4142 if test "x$ac_ct_OBJDUMP" = x; then
4145 case $cross_compiling:$ac_tool_warned in
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4149 ac_tool_warned=yes ;;
4151 OBJDUMP=$ac_ct_OBJDUMP
4154 OBJDUMP="$ac_cv_prog_OBJDUMP"
4157 test -z "$OBJDUMP" && OBJDUMP=objdump
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4168 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4169 if ${lt_cv_deplibs_check_method+:} false; then :
4170 $as_echo_n "(cached) " >&6
4172 lt_cv_file_magic_cmd='$MAGIC_CMD'
4173 lt_cv_file_magic_test_file=
4174 lt_cv_deplibs_check_method='unknown'
4175 # Need to set the preceding variable on all platforms that support
4176 # interlibrary dependencies.
4177 # 'none' -- dependencies not supported.
4178 # `unknown' -- same as none, but documents that we really don't know.
4179 # 'pass_all' -- all dependencies passed with no checks.
4180 # 'test_compile' -- check by making test program.
4181 # 'file_magic [[regex]]' -- check by looking for files in library path
4182 # which responds to the $file_magic_cmd with a given extended regex.
4183 # If you have `file' or equivalent on your system and you're not sure
4184 # whether `pass_all' will *always* work, you probably want this one.
4188 lt_cv_deplibs_check_method=pass_all
4192 lt_cv_deplibs_check_method=pass_all
4196 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4197 lt_cv_file_magic_cmd='/usr/bin/file -L'
4198 lt_cv_file_magic_test_file=/shlib/libc.so
4202 # func_win32_libid is a shell function defined in ltmain.sh
4203 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4204 lt_cv_file_magic_cmd='func_win32_libid'
4208 # Base MSYS/MinGW do not provide the 'file' command needed by
4209 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4210 # unless we find 'file', for example because we are cross-compiling.
4211 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4212 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4213 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4214 lt_cv_file_magic_cmd='func_win32_libid'
4216 # Keep this pattern in sync with the one in func_win32_libid.
4217 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4218 lt_cv_file_magic_cmd='$OBJDUMP -f'
4223 # use the weaker test based on 'objdump'. See mingw*.
4224 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4225 lt_cv_file_magic_cmd='$OBJDUMP -f'
4228 darwin* | rhapsody*)
4229 lt_cv_deplibs_check_method=pass_all
4232 freebsd* | dragonfly*)
4233 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4236 # Not sure whether the presence of OpenBSD here was a mistake.
4237 # Let's accept both of them until this is cleared up.
4238 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4239 lt_cv_file_magic_cmd=/usr/bin/file
4240 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4244 lt_cv_deplibs_check_method=pass_all
4249 lt_cv_deplibs_check_method=pass_all
4253 lt_cv_deplibs_check_method=pass_all
4256 hpux10.20* | hpux11*)
4257 lt_cv_file_magic_cmd=/usr/bin/file
4260 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4261 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4264 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]'
4265 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4268 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4269 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4275 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4276 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4279 irix5* | irix6* | nonstopux*)
4281 *-32|*"-32 ") libmagic=32-bit;;
4282 *-n32|*"-n32 ") libmagic=N32;;
4283 *-64|*"-64 ") libmagic=64-bit;;
4284 *) libmagic=never-match;;
4286 lt_cv_deplibs_check_method=pass_all
4289 # This must be Linux ELF.
4290 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4291 lt_cv_deplibs_check_method=pass_all
4295 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4296 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4298 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4303 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4304 lt_cv_file_magic_cmd=/usr/bin/file
4305 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4309 lt_cv_deplibs_check_method=pass_all
4313 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4314 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4316 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4320 osf3* | osf4* | osf5*)
4321 lt_cv_deplibs_check_method=pass_all
4325 lt_cv_deplibs_check_method=pass_all
4329 lt_cv_deplibs_check_method=pass_all
4332 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4333 lt_cv_deplibs_check_method=pass_all
4337 case $host_vendor in
4339 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]'
4340 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4343 lt_cv_deplibs_check_method=pass_all
4346 lt_cv_file_magic_cmd='/bin/file'
4347 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4350 lt_cv_file_magic_cmd='/bin/file'
4351 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4352 lt_cv_file_magic_test_file=/lib/libc.so
4355 lt_cv_deplibs_check_method=pass_all
4358 lt_cv_deplibs_check_method=pass_all
4364 lt_cv_deplibs_check_method=pass_all
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4370 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4374 if test "$build" = "$host"; then
4377 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4380 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4386 file_magic_cmd=$lt_cv_file_magic_cmd
4387 deplibs_check_method=$lt_cv_deplibs_check_method
4388 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4411 if test -n "$ac_tool_prefix"; then
4412 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4413 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4415 $as_echo_n "checking for $ac_word... " >&6; }
4416 if ${ac_cv_prog_DLLTOOL+:} false; then :
4417 $as_echo_n "(cached) " >&6
4419 if test -n "$DLLTOOL"; then
4420 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426 test -z "$as_dir" && as_dir=.
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4429 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 DLLTOOL=$ac_cv_prog_DLLTOOL
4440 if test -n "$DLLTOOL"; then
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4442 $as_echo "$DLLTOOL" >&6; }
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 $as_echo "no" >&6; }
4450 if test -z "$ac_cv_prog_DLLTOOL"; then
4451 ac_ct_DLLTOOL=$DLLTOOL
4452 # Extract the first word of "dlltool", so it can be a program name with args.
4453 set dummy dlltool; ac_word=$2
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4455 $as_echo_n "checking for $ac_word... " >&6; }
4456 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4457 $as_echo_n "(cached) " >&6
4459 if test -n "$ac_ct_DLLTOOL"; then
4460 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4469 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4480 if test -n "$ac_ct_DLLTOOL"; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4482 $as_echo "$ac_ct_DLLTOOL" >&6; }
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485 $as_echo "no" >&6; }
4488 if test "x$ac_ct_DLLTOOL" = x; then
4491 case $cross_compiling:$ac_tool_warned in
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4495 ac_tool_warned=yes ;;
4497 DLLTOOL=$ac_ct_DLLTOOL
4500 DLLTOOL="$ac_cv_prog_DLLTOOL"
4503 test -z "$DLLTOOL" && DLLTOOL=dlltool
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4515 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4516 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4517 $as_echo_n "(cached) " >&6
4519 lt_cv_sharedlib_from_linklib_cmd='unknown'
4522 cygwin* | mingw* | pw32* | cegcc*)
4523 # two different shell functions defined in ltmain.sh
4524 # decide which to use based on capabilities of $DLLTOOL
4525 case `$DLLTOOL --help 2>&1` in
4526 *--identify-strict*)
4527 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4530 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4535 # fallback: assume linklib IS sharedlib
4536 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4542 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4543 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4544 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4553 if test -n "$ac_tool_prefix"; then
4556 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4557 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4559 $as_echo_n "checking for $ac_word... " >&6; }
4560 if ${ac_cv_prog_AR+:} false; then :
4561 $as_echo_n "(cached) " >&6
4563 if test -n "$AR"; then
4564 ac_cv_prog_AR="$AR" # Let the user override the test.
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 test -z "$as_dir" && as_dir=.
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4573 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 if test -n "$AR"; then
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4586 $as_echo "$AR" >&6; }
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4589 $as_echo "no" >&6; }
4593 test -n "$AR" && break
4596 if test -z "$AR"; then
4600 # Extract the first word of "$ac_prog", so it can be a program name with args.
4601 set dummy $ac_prog; ac_word=$2
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4603 $as_echo_n "checking for $ac_word... " >&6; }
4604 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4605 $as_echo_n "(cached) " >&6
4607 if test -n "$ac_ct_AR"; then
4608 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 test -z "$as_dir" && as_dir=.
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4617 ac_cv_prog_ac_ct_AR="$ac_prog"
4618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4628 if test -n "$ac_ct_AR"; then
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4630 $as_echo "$ac_ct_AR" >&6; }
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633 $as_echo "no" >&6; }
4637 test -n "$ac_ct_AR" && break
4640 if test "x$ac_ct_AR" = x; then
4643 case $cross_compiling:$ac_tool_warned in
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4647 ac_tool_warned=yes ;;
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
4667 $as_echo_n "checking for archiver @FILE support... " >&6; }
4668 if ${lt_cv_ar_at_file+:} false; then :
4669 $as_echo_n "(cached) " >&6
4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673 /* end confdefs.h. */
4683 if ac_fn_c_try_compile "$LINENO"; then :
4684 echo conftest.$ac_objext > conftest.lst
4685 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
4686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4687 (eval $lt_ar_try) 2>&5
4689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4690 test $ac_status = 0; }
4691 if test "$ac_status" -eq 0; then
4692 # Ensure the archiver fails upon bogus file names.
4693 rm -f conftest.$ac_objext libconftest.a
4694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4695 (eval $lt_ar_try) 2>&5
4697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4698 test $ac_status = 0; }
4699 if test "$ac_status" -ne 0; then
4703 rm -f conftest.* libconftest.a
4706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
4710 $as_echo "$lt_cv_ar_at_file" >&6; }
4712 if test "x$lt_cv_ar_at_file" = xno; then
4715 archiver_list_spec=$lt_cv_ar_at_file
4724 if test -n "$ac_tool_prefix"; then
4725 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4726 set dummy ${ac_tool_prefix}strip; ac_word=$2
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4728 $as_echo_n "checking for $ac_word... " >&6; }
4729 if ${ac_cv_prog_STRIP+:} false; then :
4730 $as_echo_n "(cached) " >&6
4732 if test -n "$STRIP"; then
4733 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 test -z "$as_dir" && as_dir=.
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4742 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4752 STRIP=$ac_cv_prog_STRIP
4753 if test -n "$STRIP"; then
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4755 $as_echo "$STRIP" >&6; }
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4758 $as_echo "no" >&6; }
4763 if test -z "$ac_cv_prog_STRIP"; then
4765 # Extract the first word of "strip", so it can be a program name with args.
4766 set dummy strip; ac_word=$2
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768 $as_echo_n "checking for $ac_word... " >&6; }
4769 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4770 $as_echo_n "(cached) " >&6
4772 if test -n "$ac_ct_STRIP"; then
4773 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779 test -z "$as_dir" && as_dir=.
4780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782 ac_cv_prog_ac_ct_STRIP="strip"
4783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4792 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4793 if test -n "$ac_ct_STRIP"; then
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4795 $as_echo "$ac_ct_STRIP" >&6; }
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798 $as_echo "no" >&6; }
4801 if test "x$ac_ct_STRIP" = x; then
4804 case $cross_compiling:$ac_tool_warned in
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4808 ac_tool_warned=yes ;;
4813 STRIP="$ac_cv_prog_STRIP"
4816 test -z "$STRIP" && STRIP=:
4823 if test -n "$ac_tool_prefix"; then
4824 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4825 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4827 $as_echo_n "checking for $ac_word... " >&6; }
4828 if ${ac_cv_prog_RANLIB+:} false; then :
4829 $as_echo_n "(cached) " >&6
4831 if test -n "$RANLIB"; then
4832 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 test -z "$as_dir" && as_dir=.
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 RANLIB=$ac_cv_prog_RANLIB
4852 if test -n "$RANLIB"; then
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4854 $as_echo "$RANLIB" >&6; }
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4857 $as_echo "no" >&6; }
4862 if test -z "$ac_cv_prog_RANLIB"; then
4863 ac_ct_RANLIB=$RANLIB
4864 # Extract the first word of "ranlib", so it can be a program name with args.
4865 set dummy ranlib; ac_word=$2
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867 $as_echo_n "checking for $ac_word... " >&6; }
4868 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4869 $as_echo_n "(cached) " >&6
4871 if test -n "$ac_ct_RANLIB"; then
4872 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881 ac_cv_prog_ac_ct_RANLIB="ranlib"
4882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4892 if test -n "$ac_ct_RANLIB"; then
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4894 $as_echo "$ac_ct_RANLIB" >&6; }
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897 $as_echo "no" >&6; }
4900 if test "x$ac_ct_RANLIB" = x; then
4903 case $cross_compiling:$ac_tool_warned in
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4907 ac_tool_warned=yes ;;
4909 RANLIB=$ac_ct_RANLIB
4912 RANLIB="$ac_cv_prog_RANLIB"
4915 test -z "$RANLIB" && RANLIB=:
4922 # Determine commands to create old-style static archives.
4923 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4924 old_postinstall_cmds='chmod 644 $oldlib'
4925 old_postuninstall_cmds=
4927 if test -n "$RANLIB"; then
4930 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4933 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4936 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4941 lock_old_archive_extraction=yes ;;
4943 lock_old_archive_extraction=no ;;
4966 for ac_prog in gawk mawk nawk awk
4968 # Extract the first word of "$ac_prog", so it can be a program name with args.
4969 set dummy $ac_prog; ac_word=$2
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4971 $as_echo_n "checking for $ac_word... " >&6; }
4972 if ${ac_cv_prog_AWK+:} false; then :
4973 $as_echo_n "(cached) " >&6
4975 if test -n "$AWK"; then
4976 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4985 ac_cv_prog_AWK="$ac_prog"
4986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4996 if test -n "$AWK"; then
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4998 $as_echo "$AWK" >&6; }
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001 $as_echo "no" >&6; }
5005 test -n "$AWK" && break
5026 # If no C compiler was specified, use CC.
5029 # If no C compiler flags were specified, use CFLAGS.
5030 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5032 # Allow CC to be a program name with arguments.
5036 # Check for command to grab the raw symbol name followed by C symbol from nm.
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5038 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5039 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5040 $as_echo_n "(cached) " >&6
5043 # These are sane defaults that work on at least a few old systems.
5044 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5046 # Character class describing NM global symbol codes.
5047 symcode='[BCDEGRST]'
5049 # Regexp to match symbols that can be accessed directly from C.
5050 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5052 # Define system-specific variables.
5057 cygwin* | mingw* | pw32* | cegcc*)
5058 symcode='[ABCDGISTW]'
5061 if test "$host_cpu" = ia64; then
5062 symcode='[ABCDEGRST]'
5066 symcode='[BCDEGRST]'
5069 symcode='[BCDEGQRST]'
5080 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5088 # If we're using GNU nm, then use its standard symbol codes.
5089 case `$NM -V 2>&1` in
5090 *GNU* | *'with BFD'*)
5091 symcode='[ABCDGIRSTW]' ;;
5094 # Transform an extracted symbol line into a proper C declaration.
5095 # Some systems (esp. on ia64) link data and code symbols differently,
5096 # so use this general approach.
5097 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5099 # Transform an extracted symbol line into symbol name and symbol address
5100 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5101 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'"
5103 # Handle CRLF in mingw tool chain
5107 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5111 # Try without a prefix underscore, then with it.
5112 for ac_symprfx in "" "_"; do
5114 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5115 symxfrm="\\1 $ac_symprfx\\2 \\2"
5117 # Write the raw and C identifiers.
5118 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5119 # Fake it for dumpbin and say T for any non-static function
5120 # and D for any global variable.
5121 # Also find C++ and __fastcall symbols from MSVC++,
5122 # which start with @ or ?.
5123 lt_cv_sys_global_symbol_pipe="$AWK '"\
5124 " {last_section=section; section=\$ 3};"\
5125 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5126 " \$ 0!~/External *\|/{next};"\
5127 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5128 " {if(hide[section]) next};"\
5129 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5130 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5131 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5132 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5133 " ' prfx=^$ac_symprfx"
5135 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5137 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5139 # Check to see that the pipe works correctly.
5143 cat > conftest.$ac_ext <<_LT_EOF
5148 void nm_test_func(void);
5149 void nm_test_func(void){}
5153 int main(){nm_test_var='a';nm_test_func();return(0);}
5156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5157 (eval $ac_compile) 2>&5
5159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5160 test $ac_status = 0; }; then
5161 # Now try to grab the symbols.
5163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5164 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5167 test $ac_status = 0; } && test -s "$nlist"; then
5168 # Try sorting and uniquifying the output.
5169 if sort "$nlist" | uniq > "$nlist"T; then
5170 mv -f "$nlist"T "$nlist"
5175 # Make sure that we snagged all the symbols we need.
5176 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5177 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5178 cat <<_LT_EOF > conftest.$ac_ext
5179 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5180 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5181 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5182 relocations are performed -- see ld's documentation on pseudo-relocs. */
5183 # define LT_DLSYM_CONST
5184 #elif defined(__osf__)
5185 /* This system does not cope well with relocations in const data. */
5186 # define LT_DLSYM_CONST
5188 # define LT_DLSYM_CONST const
5196 # Now generate the symbol file.
5197 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5199 cat <<_LT_EOF >> conftest.$ac_ext
5201 /* The mapping between symbol names and symbols. */
5202 LT_DLSYM_CONST struct {
5206 lt__PROGRAM__LTX_preloaded_symbols[] =
5208 { "@PROGRAM@", (void *) 0 },
5210 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5211 cat <<\_LT_EOF >> conftest.$ac_ext
5215 /* This works around a problem in FreeBSD linker */
5216 #ifdef FREEBSD_WORKAROUND
5217 static const void *lt_preloaded_setup() {
5218 return lt__PROGRAM__LTX_preloaded_symbols;
5226 # Now try linking the two files.
5227 mv conftest.$ac_objext conftstm.$ac_objext
5228 lt_globsym_save_LIBS=$LIBS
5229 lt_globsym_save_CFLAGS=$CFLAGS
5230 LIBS="conftstm.$ac_objext"
5231 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5233 (eval $ac_link) 2>&5
5235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5236 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5239 LIBS=$lt_globsym_save_LIBS
5240 CFLAGS=$lt_globsym_save_CFLAGS
5242 echo "cannot find nm_test_func in $nlist" >&5
5245 echo "cannot find nm_test_var in $nlist" >&5
5248 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5251 echo "$progname: failed program was:" >&5
5252 cat conftest.$ac_ext >&5
5254 rm -rf conftest* conftst*
5256 # Do not use the global_symbol_pipe unless it works.
5257 if test "$pipe_works" = yes; then
5260 lt_cv_sys_global_symbol_pipe=
5266 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5267 lt_cv_sys_global_symbol_to_cdecl=
5269 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5271 $as_echo "failed" >&6; }
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5274 $as_echo "ok" >&6; }
5277 # Response file support.
5278 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5279 nm_file_list_spec='@'
5280 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5281 nm_file_list_spec='@'
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5311 $as_echo_n "checking for sysroot... " >&6; }
5313 # Check whether --with-sysroot was given.
5314 if test "${with_sysroot+set}" = set; then :
5315 withval=$with_sysroot;
5322 case ${with_sysroot} in #(
5324 if test "$GCC" = yes; then
5325 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5329 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5335 $as_echo "${with_sysroot}" >&6; }
5336 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5341 $as_echo "${lt_sysroot:-no}" >&6; }
5347 # Check whether --enable-libtool-lock was given.
5348 if test "${enable_libtool_lock+set}" = set; then :
5349 enableval=$enable_libtool_lock;
5352 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5354 # Some flags need to be propagated to the compiler or linker for good
5358 # Find out which ABI we are using.
5359 echo 'int i;' > conftest.$ac_ext
5360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5361 (eval $ac_compile) 2>&5
5363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5364 test $ac_status = 0; }; then
5365 case `/usr/bin/file conftest.$ac_objext` in
5377 # Find out which ABI we are using.
5378 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5380 (eval $ac_compile) 2>&5
5382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5383 test $ac_status = 0; }; then
5384 if test "$lt_cv_prog_gnu_ld" = yes; then
5385 case `/usr/bin/file conftest.$ac_objext` in
5387 LD="${LD-ld} -melf32bsmip"
5390 LD="${LD-ld} -melf32bmipn32"
5393 LD="${LD-ld} -melf64bmip"
5397 case `/usr/bin/file conftest.$ac_objext` in
5413 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5414 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5415 # Find out which ABI we are using.
5416 echo 'int i;' > conftest.$ac_ext
5417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5418 (eval $ac_compile) 2>&5
5420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5421 test $ac_status = 0; }; then
5422 case `/usr/bin/file conftest.o` in
5425 x86_64-*kfreebsd*-gnu)
5426 LD="${LD-ld} -m elf_i386_fbsd"
5429 LD="${LD-ld} -m elf_i386"
5431 ppc64-*linux*|powerpc64-*linux*)
5432 LD="${LD-ld} -m elf32ppclinux"
5435 LD="${LD-ld} -m elf_s390"
5438 LD="${LD-ld} -m elf32_sparc"
5444 x86_64-*kfreebsd*-gnu)
5445 LD="${LD-ld} -m elf_x86_64_fbsd"
5448 LD="${LD-ld} -m elf_x86_64"
5450 ppc*-*linux*|powerpc*-*linux*)
5451 LD="${LD-ld} -m elf64ppc"
5453 s390*-*linux*|s390*-*tpf*)
5454 LD="${LD-ld} -m elf64_s390"
5457 LD="${LD-ld} -m elf64_sparc"
5467 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5468 SAVE_CFLAGS="$CFLAGS"
5469 CFLAGS="$CFLAGS -belf"
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5471 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5472 if ${lt_cv_cc_needs_belf+:} false; then :
5473 $as_echo_n "(cached) " >&6
5476 ac_cpp='$CPP $CPPFLAGS'
5477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h. */
5492 if ac_fn_c_try_link "$LINENO"; then :
5493 lt_cv_cc_needs_belf=yes
5495 lt_cv_cc_needs_belf=no
5497 rm -f core conftest.err conftest.$ac_objext \
5498 conftest$ac_exeext conftest.$ac_ext
5500 ac_cpp='$CPP $CPPFLAGS'
5501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5507 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5508 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5509 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5510 CFLAGS="$SAVE_CFLAGS"
5514 # Find out which ABI we are using.
5515 echo 'int i;' > conftest.$ac_ext
5516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5517 (eval $ac_compile) 2>&5
5519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5520 test $ac_status = 0; }; then
5521 case `/usr/bin/file conftest.o` in
5523 case $lt_cv_prog_gnu_ld in
5524 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5526 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5538 need_locks="$enable_libtool_lock"
5540 if test -n "$ac_tool_prefix"; then
5541 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5542 set dummy ${ac_tool_prefix}mt; ac_word=$2
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5544 $as_echo_n "checking for $ac_word... " >&6; }
5545 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
5546 $as_echo_n "(cached) " >&6
5548 if test -n "$MANIFEST_TOOL"; then
5549 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 test -z "$as_dir" && as_dir=.
5556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5558 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5568 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5569 if test -n "$MANIFEST_TOOL"; then
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
5571 $as_echo "$MANIFEST_TOOL" >&6; }
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5574 $as_echo "no" >&6; }
5579 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5580 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5581 # Extract the first word of "mt", so it can be a program name with args.
5582 set dummy mt; ac_word=$2
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
5586 $as_echo_n "(cached) " >&6
5588 if test -n "$ac_ct_MANIFEST_TOOL"; then
5589 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595 test -z "$as_dir" && as_dir=.
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5598 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
5599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5609 if test -n "$ac_ct_MANIFEST_TOOL"; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
5611 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614 $as_echo "no" >&6; }
5617 if test "x$ac_ct_MANIFEST_TOOL" = x; then
5620 case $cross_compiling:$ac_tool_warned in
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5624 ac_tool_warned=yes ;;
5626 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
5629 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
5632 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
5634 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
5635 if ${lt_cv_path_mainfest_tool+:} false; then :
5636 $as_echo_n "(cached) " >&6
5638 lt_cv_path_mainfest_tool=no
5639 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5640 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5641 cat conftest.err >&5
5642 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5643 lt_cv_path_mainfest_tool=yes
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
5648 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
5649 if test "x$lt_cv_path_mainfest_tool" != xyes; then
5659 rhapsody* | darwin*)
5660 if test -n "$ac_tool_prefix"; then
5661 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5662 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664 $as_echo_n "checking for $ac_word... " >&6; }
5665 if ${ac_cv_prog_DSYMUTIL+:} false; then :
5666 $as_echo_n "(cached) " >&6
5668 if test -n "$DSYMUTIL"; then
5669 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675 test -z "$as_dir" && as_dir=.
5676 for ac_exec_ext in '' $ac_executable_extensions; do
5677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5678 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5689 if test -n "$DSYMUTIL"; then
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5691 $as_echo "$DSYMUTIL" >&6; }
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694 $as_echo "no" >&6; }
5699 if test -z "$ac_cv_prog_DSYMUTIL"; then
5700 ac_ct_DSYMUTIL=$DSYMUTIL
5701 # Extract the first word of "dsymutil", so it can be a program name with args.
5702 set dummy dsymutil; ac_word=$2
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704 $as_echo_n "checking for $ac_word... " >&6; }
5705 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5706 $as_echo_n "(cached) " >&6
5708 if test -n "$ac_ct_DSYMUTIL"; then
5709 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 test -z "$as_dir" && as_dir=.
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5718 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5728 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5729 if test -n "$ac_ct_DSYMUTIL"; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5731 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734 $as_echo "no" >&6; }
5737 if test "x$ac_ct_DSYMUTIL" = x; then
5740 case $cross_compiling:$ac_tool_warned in
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5744 ac_tool_warned=yes ;;
5746 DSYMUTIL=$ac_ct_DSYMUTIL
5749 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5752 if test -n "$ac_tool_prefix"; then
5753 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5754 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5756 $as_echo_n "checking for $ac_word... " >&6; }
5757 if ${ac_cv_prog_NMEDIT+:} false; then :
5758 $as_echo_n "(cached) " >&6
5760 if test -n "$NMEDIT"; then
5761 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5770 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5780 NMEDIT=$ac_cv_prog_NMEDIT
5781 if test -n "$NMEDIT"; then
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5783 $as_echo "$NMEDIT" >&6; }
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 $as_echo "no" >&6; }
5791 if test -z "$ac_cv_prog_NMEDIT"; then
5792 ac_ct_NMEDIT=$NMEDIT
5793 # Extract the first word of "nmedit", so it can be a program name with args.
5794 set dummy nmedit; ac_word=$2
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796 $as_echo_n "checking for $ac_word... " >&6; }
5797 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5798 $as_echo_n "(cached) " >&6
5800 if test -n "$ac_ct_NMEDIT"; then
5801 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5820 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5821 if test -n "$ac_ct_NMEDIT"; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5823 $as_echo "$ac_ct_NMEDIT" >&6; }
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 $as_echo "no" >&6; }
5829 if test "x$ac_ct_NMEDIT" = x; then
5832 case $cross_compiling:$ac_tool_warned in
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5836 ac_tool_warned=yes ;;
5838 NMEDIT=$ac_ct_NMEDIT
5841 NMEDIT="$ac_cv_prog_NMEDIT"
5844 if test -n "$ac_tool_prefix"; then
5845 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5846 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848 $as_echo_n "checking for $ac_word... " >&6; }
5849 if ${ac_cv_prog_LIPO+:} false; then :
5850 $as_echo_n "(cached) " >&6
5852 if test -n "$LIPO"; then
5853 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5862 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 LIPO=$ac_cv_prog_LIPO
5873 if test -n "$LIPO"; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5875 $as_echo "$LIPO" >&6; }
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5883 if test -z "$ac_cv_prog_LIPO"; then
5885 # Extract the first word of "lipo", so it can be a program name with args.
5886 set dummy lipo; ac_word=$2
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888 $as_echo_n "checking for $ac_word... " >&6; }
5889 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5890 $as_echo_n "(cached) " >&6
5892 if test -n "$ac_ct_LIPO"; then
5893 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 test -z "$as_dir" && as_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5902 ac_cv_prog_ac_ct_LIPO="lipo"
5903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5912 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5913 if test -n "$ac_ct_LIPO"; then
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5915 $as_echo "$ac_ct_LIPO" >&6; }
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918 $as_echo "no" >&6; }
5921 if test "x$ac_ct_LIPO" = x; then
5924 case $cross_compiling:$ac_tool_warned in
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5928 ac_tool_warned=yes ;;
5933 LIPO="$ac_cv_prog_LIPO"
5936 if test -n "$ac_tool_prefix"; then
5937 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5938 set dummy ${ac_tool_prefix}otool; ac_word=$2
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5940 $as_echo_n "checking for $ac_word... " >&6; }
5941 if ${ac_cv_prog_OTOOL+:} false; then :
5942 $as_echo_n "(cached) " >&6
5944 if test -n "$OTOOL"; then
5945 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 test -z "$as_dir" && as_dir=.
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5954 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 OTOOL=$ac_cv_prog_OTOOL
5965 if test -n "$OTOOL"; then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5967 $as_echo "$OTOOL" >&6; }
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 $as_echo "no" >&6; }
5975 if test -z "$ac_cv_prog_OTOOL"; then
5977 # Extract the first word of "otool", so it can be a program name with args.
5978 set dummy otool; ac_word=$2
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5980 $as_echo_n "checking for $ac_word... " >&6; }
5981 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
5982 $as_echo_n "(cached) " >&6
5984 if test -n "$ac_ct_OTOOL"; then
5985 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 test -z "$as_dir" && as_dir=.
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5994 ac_cv_prog_ac_ct_OTOOL="otool"
5995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6005 if test -n "$ac_ct_OTOOL"; then
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6007 $as_echo "$ac_ct_OTOOL" >&6; }
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6010 $as_echo "no" >&6; }
6013 if test "x$ac_ct_OTOOL" = x; then
6016 case $cross_compiling:$ac_tool_warned in
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6020 ac_tool_warned=yes ;;
6025 OTOOL="$ac_cv_prog_OTOOL"
6028 if test -n "$ac_tool_prefix"; then
6029 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6030 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032 $as_echo_n "checking for $ac_word... " >&6; }
6033 if ${ac_cv_prog_OTOOL64+:} false; then :
6034 $as_echo_n "(cached) " >&6
6036 if test -n "$OTOOL64"; then
6037 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043 test -z "$as_dir" && as_dir=.
6044 for ac_exec_ext in '' $ac_executable_extensions; do
6045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6046 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6056 OTOOL64=$ac_cv_prog_OTOOL64
6057 if test -n "$OTOOL64"; then
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6059 $as_echo "$OTOOL64" >&6; }
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062 $as_echo "no" >&6; }
6067 if test -z "$ac_cv_prog_OTOOL64"; then
6068 ac_ct_OTOOL64=$OTOOL64
6069 # Extract the first word of "otool64", so it can be a program name with args.
6070 set dummy otool64; ac_word=$2
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072 $as_echo_n "checking for $ac_word... " >&6; }
6073 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6074 $as_echo_n "(cached) " >&6
6076 if test -n "$ac_ct_OTOOL64"; then
6077 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 test -z "$as_dir" && as_dir=.
6084 for ac_exec_ext in '' $ac_executable_extensions; do
6085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6086 ac_cv_prog_ac_ct_OTOOL64="otool64"
6087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6096 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6097 if test -n "$ac_ct_OTOOL64"; then
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6099 $as_echo "$ac_ct_OTOOL64" >&6; }
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102 $as_echo "no" >&6; }
6105 if test "x$ac_ct_OTOOL64" = x; then
6108 case $cross_compiling:$ac_tool_warned in
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6112 ac_tool_warned=yes ;;
6114 OTOOL64=$ac_ct_OTOOL64
6117 OTOOL64="$ac_cv_prog_OTOOL64"
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6147 $as_echo_n "checking for -single_module linker flag... " >&6; }
6148 if ${lt_cv_apple_cc_single_mod+:} false; then :
6149 $as_echo_n "(cached) " >&6
6151 lt_cv_apple_cc_single_mod=no
6152 if test -z "${LT_MULTI_MODULE}"; then
6153 # By default we will add the -single_module flag. You can override
6154 # by either setting the environment variable LT_MULTI_MODULE
6155 # non-empty at configure time, or by adding -multi_module to the
6157 rm -rf libconftest.dylib*
6158 echo "int foo(void){return 1;}" > conftest.c
6159 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6160 -dynamiclib -Wl,-single_module conftest.c" >&5
6161 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6162 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6164 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6165 lt_cv_apple_cc_single_mod=yes
6167 cat conftest.err >&5
6169 rm -rf libconftest.dylib*
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6174 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6176 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6177 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6178 $as_echo_n "(cached) " >&6
6180 lt_cv_ld_exported_symbols_list=no
6181 save_LDFLAGS=$LDFLAGS
6182 echo "_main" > conftest.sym
6183 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h. */
6195 if ac_fn_c_try_link "$LINENO"; then :
6196 lt_cv_ld_exported_symbols_list=yes
6198 lt_cv_ld_exported_symbols_list=no
6200 rm -f core conftest.err conftest.$ac_objext \
6201 conftest$ac_exeext conftest.$ac_ext
6202 LDFLAGS="$save_LDFLAGS"
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6206 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6208 $as_echo_n "checking for -force_load linker flag... " >&6; }
6209 if ${lt_cv_ld_force_load+:} false; then :
6210 $as_echo_n "(cached) " >&6
6212 lt_cv_ld_force_load=no
6213 cat > conftest.c << _LT_EOF
6214 int forced_loaded() { return 2;}
6216 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6217 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6218 echo "$AR cru libconftest.a conftest.o" >&5
6219 $AR cru libconftest.a conftest.o 2>&5
6220 echo "$RANLIB libconftest.a" >&5
6221 $RANLIB libconftest.a 2>&5
6222 cat > conftest.c << _LT_EOF
6223 int main() { return 0;}
6225 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6226 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6228 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6229 lt_cv_ld_force_load=yes
6231 cat conftest.err >&5
6233 rm -f conftest.err libconftest.a conftest conftest.c
6234 rm -rf conftest.dSYM
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6238 $as_echo "$lt_cv_ld_force_load" >&6; }
6240 rhapsody* | darwin1.[012])
6241 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6243 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6244 darwin*) # darwin 5.x on
6245 # if running on 10.5 or later, the deployment target defaults
6246 # to the OS version, if on x86, and 10.4, the deployment
6247 # target defaults to 10.4. Don't you love it?
6248 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6249 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6250 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6252 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6254 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6258 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6259 _lt_dar_single_mod='$single_module'
6261 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6262 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6264 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6266 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6267 _lt_dsymutil='~$DSYMUTIL $lib || :'
6275 ac_cpp='$CPP $CPPFLAGS'
6276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6280 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6281 # On Suns, sometimes $CPP names a directory.
6282 if test -n "$CPP" && test -d "$CPP"; then
6285 if test -z "$CPP"; then
6286 if ${ac_cv_prog_CPP+:} false; then :
6287 $as_echo_n "(cached) " >&6
6289 # Double quotes because CPP needs to be expanded
6290 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6293 for ac_c_preproc_warn_flag in '' yes
6295 # Use a header file that comes with gcc, so configuring glibc
6296 # with a fresh cross-compiler works.
6297 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6298 # <limits.h> exists even on freestanding compilers.
6299 # On the NeXT, cc -E runs the code through the compiler's parser,
6300 # not just through cpp. "Syntax error" is here to catch this case.
6301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302 /* end confdefs.h. */
6304 # include <limits.h>
6306 # include <assert.h>
6310 if ac_fn_c_try_cpp "$LINENO"; then :
6313 # Broken: fails on valid input.
6316 rm -f conftest.err conftest.i conftest.$ac_ext
6318 # OK, works on sane cases. Now check whether nonexistent headers
6319 # can be detected and how.
6320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6321 /* end confdefs.h. */
6322 #include <ac_nonexistent.h>
6324 if ac_fn_c_try_cpp "$LINENO"; then :
6325 # Broken: success on invalid input.
6328 # Passes both tests.
6332 rm -f conftest.err conftest.i conftest.$ac_ext
6335 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6336 rm -f conftest.i conftest.err conftest.$ac_ext
6337 if $ac_preproc_ok; then :
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6350 $as_echo "$CPP" >&6; }
6352 for ac_c_preproc_warn_flag in '' yes
6354 # Use a header file that comes with gcc, so configuring glibc
6355 # with a fresh cross-compiler works.
6356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6357 # <limits.h> exists even on freestanding compilers.
6358 # On the NeXT, cc -E runs the code through the compiler's parser,
6359 # not just through cpp. "Syntax error" is here to catch this case.
6360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h. */
6363 # include <limits.h>
6365 # include <assert.h>
6369 if ac_fn_c_try_cpp "$LINENO"; then :
6372 # Broken: fails on valid input.
6375 rm -f conftest.err conftest.i conftest.$ac_ext
6377 # OK, works on sane cases. Now check whether nonexistent headers
6378 # can be detected and how.
6379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6380 /* end confdefs.h. */
6381 #include <ac_nonexistent.h>
6383 if ac_fn_c_try_cpp "$LINENO"; then :
6384 # Broken: success on invalid input.
6387 # Passes both tests.
6391 rm -f conftest.err conftest.i conftest.$ac_ext
6394 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6395 rm -f conftest.i conftest.err conftest.$ac_ext
6396 if $ac_preproc_ok; then :
6399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6401 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6402 See \`config.log' for more details" "$LINENO" 5; }
6406 ac_cpp='$CPP $CPPFLAGS'
6407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6413 $as_echo_n "checking for ANSI C header files... " >&6; }
6414 if ${ac_cv_header_stdc+:} false; then :
6415 $as_echo_n "(cached) " >&6
6417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6418 /* end confdefs.h. */
6432 if ac_fn_c_try_compile "$LINENO"; then :
6433 ac_cv_header_stdc=yes
6435 ac_cv_header_stdc=no
6437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439 if test $ac_cv_header_stdc = yes; then
6440 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6447 $EGREP "memchr" >/dev/null 2>&1; then :
6450 ac_cv_header_stdc=no
6456 if test $ac_cv_header_stdc = yes; then
6457 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6464 $EGREP "free" >/dev/null 2>&1; then :
6467 ac_cv_header_stdc=no
6473 if test $ac_cv_header_stdc = yes; then
6474 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6475 if test "$cross_compiling" = yes; then :
6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h. */
6482 #if ((' ' & 0x0FF) == 0x020)
6483 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6484 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6486 # define ISLOWER(c) \
6487 (('a' <= (c) && (c) <= 'i') \
6488 || ('j' <= (c) && (c) <= 'r') \
6489 || ('s' <= (c) && (c) <= 'z'))
6490 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6493 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6498 for (i = 0; i < 256; i++)
6499 if (XOR (islower (i), ISLOWER (i))
6500 || toupper (i) != TOUPPER (i))
6505 if ac_fn_c_try_run "$LINENO"; then :
6508 ac_cv_header_stdc=no
6510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6511 conftest.$ac_objext conftest.beam conftest.$ac_ext
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6517 $as_echo "$ac_cv_header_stdc" >&6; }
6518 if test $ac_cv_header_stdc = yes; then
6520 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6524 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6525 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6526 inttypes.h stdint.h unistd.h
6528 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6529 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6531 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6532 cat >>confdefs.h <<_ACEOF
6533 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6541 for ac_header in dlfcn.h
6543 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6545 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6546 cat >>confdefs.h <<_ACEOF
6547 #define HAVE_DLFCN_H 1
6568 # Check whether --enable-shared was given.
6569 if test "${enable_shared+set}" = set; then :
6570 enableval=$enable_shared; p=${PACKAGE-default}
6572 yes) enable_shared=yes ;;
6573 no) enable_shared=no ;;
6576 # Look at the argument we got. We use all the common list separators.
6577 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6578 for pkg in $enableval; do
6580 if test "X$pkg" = "X$p"; then
6599 # Check whether --enable-static was given.
6600 if test "${enable_static+set}" = set; then :
6601 enableval=$enable_static; p=${PACKAGE-default}
6603 yes) enable_static=yes ;;
6604 no) enable_static=no ;;
6607 # Look at the argument we got. We use all the common list separators.
6608 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6609 for pkg in $enableval; do
6611 if test "X$pkg" = "X$p"; then
6631 # Check whether --with-pic was given.
6632 if test "${with_pic+set}" = set; then :
6633 withval=$with_pic; pic_mode="$withval"
6639 test -z "$pic_mode" && pic_mode=default
6647 # Check whether --enable-fast-install was given.
6648 if test "${enable_fast_install+set}" = set; then :
6649 enableval=$enable_fast_install; p=${PACKAGE-default}
6651 yes) enable_fast_install=yes ;;
6652 no) enable_fast_install=no ;;
6654 enable_fast_install=no
6655 # Look at the argument we got. We use all the common list separators.
6656 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6657 for pkg in $enableval; do
6659 if test "X$pkg" = "X$p"; then
6660 enable_fast_install=yes
6667 enable_fast_install=yes
6680 # This can be used to rebuild libtool when needed
6681 LIBTOOL_DEPS="$ltmain"
6683 # Always use our own libtool.
6684 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6711 test -z "$LN_S" && LN_S="ln -s"
6726 if test -n "${ZSH_VERSION+set}" ; then
6727 setopt NO_GLOB_SUBST
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6731 $as_echo_n "checking for objdir... " >&6; }
6732 if ${lt_cv_objdir+:} false; then :
6733 $as_echo_n "(cached) " >&6
6735 rm -f .libs 2>/dev/null
6736 mkdir .libs 2>/dev/null
6737 if test -d .libs; then
6740 # MS-DOS does not allow filenames that begin with a dot.
6743 rmdir .libs 2>/dev/null
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6746 $as_echo "$lt_cv_objdir" >&6; }
6747 objdir=$lt_cv_objdir
6753 cat >>confdefs.h <<_ACEOF
6754 #define LT_OBJDIR "$lt_cv_objdir/"
6762 # AIX sometimes has problems with the GCC collect2 program. For some
6763 # reason, if we set the COLLECT_NAMES environment variable, the problems
6764 # vanish in a puff of smoke.
6765 if test "X${COLLECT_NAMES+set}" != Xset; then
6767 export COLLECT_NAMES
6774 can_build_shared=yes
6776 # All known linkers require a `.a' archive for static linking (except MSVC,
6777 # which needs '.lib').
6780 with_gnu_ld="$lt_cv_prog_gnu_ld"
6783 old_CFLAGS="$CFLAGS"
6785 # Set sane defaults for various variables
6786 test -z "$CC" && CC=cc
6787 test -z "$LTCC" && LTCC=$CC
6788 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6789 test -z "$LD" && LD=ld
6790 test -z "$ac_objext" && ac_objext=o
6792 for cc_temp in $compiler""; do
6794 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6795 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6800 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6803 # Only perform the check for file, if the check method requires it
6804 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6805 case $deplibs_check_method in
6807 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6809 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6810 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6811 $as_echo_n "(cached) " >&6
6815 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6818 lt_save_MAGIC_CMD="$MAGIC_CMD"
6819 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6820 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6821 for ac_dir in $ac_dummy; do
6823 test -z "$ac_dir" && ac_dir=.
6824 if test -f $ac_dir/${ac_tool_prefix}file; then
6825 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6826 if test -n "$file_magic_test_file"; then
6827 case $deplibs_check_method in
6829 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6830 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6831 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6832 $EGREP "$file_magic_regex" > /dev/null; then
6837 *** Warning: the command libtool uses to detect shared libraries,
6838 *** $file_magic_cmd, produces output that libtool cannot recognize.
6839 *** The result is that libtool may fail to recognize shared libraries
6840 *** as such. This will affect the creation of libtool libraries that
6841 *** depend on shared libraries, but programs linked with such libtool
6842 *** libraries will work regardless of this problem. Nevertheless, you
6843 *** may want to report the problem to your system manager and/or to
6844 *** bug-libtool@gnu.org
6854 MAGIC_CMD="$lt_save_MAGIC_CMD"
6859 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6860 if test -n "$MAGIC_CMD"; then
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6862 $as_echo "$MAGIC_CMD" >&6; }
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865 $as_echo "no" >&6; }
6872 if test -z "$lt_cv_path_MAGIC_CMD"; then
6873 if test -n "$ac_tool_prefix"; then
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6875 $as_echo_n "checking for file... " >&6; }
6876 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6877 $as_echo_n "(cached) " >&6
6881 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6884 lt_save_MAGIC_CMD="$MAGIC_CMD"
6885 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6886 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6887 for ac_dir in $ac_dummy; do
6889 test -z "$ac_dir" && ac_dir=.
6890 if test -f $ac_dir/file; then
6891 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6892 if test -n "$file_magic_test_file"; then
6893 case $deplibs_check_method in
6895 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6896 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6897 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6898 $EGREP "$file_magic_regex" > /dev/null; then
6903 *** Warning: the command libtool uses to detect shared libraries,
6904 *** $file_magic_cmd, produces output that libtool cannot recognize.
6905 *** The result is that libtool may fail to recognize shared libraries
6906 *** as such. This will affect the creation of libtool libraries that
6907 *** depend on shared libraries, but programs linked with such libtool
6908 *** libraries will work regardless of this problem. Nevertheless, you
6909 *** may want to report the problem to your system manager and/or to
6910 *** bug-libtool@gnu.org
6920 MAGIC_CMD="$lt_save_MAGIC_CMD"
6925 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6926 if test -n "$MAGIC_CMD"; then
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6928 $as_echo "$MAGIC_CMD" >&6; }
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931 $as_echo "no" >&6; }
6944 # Use C for the default configuration in the libtool script
6948 ac_cpp='$CPP $CPPFLAGS'
6949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6954 # Source file extension for C test sources.
6957 # Object file extension for compiled C test sources.
6961 # Code to be used in simple compile tests
6962 lt_simple_compile_test_code="int some_variable = 0;"
6964 # Code to be used in simple link tests
6965 lt_simple_link_test_code='int main(){return(0);}'
6973 # If no C compiler was specified, use CC.
6976 # If no C compiler flags were specified, use CFLAGS.
6977 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6979 # Allow CC to be a program name with arguments.
6982 # Save the default compiler, since it gets overwritten when the other
6983 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6984 compiler_DEFAULT=$CC
6986 # save warnings/boilerplate of simple test code
6987 ac_outfile=conftest.$ac_objext
6988 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6989 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6990 _lt_compiler_boilerplate=`cat conftest.err`
6993 ac_outfile=conftest.$ac_objext
6994 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6995 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6996 _lt_linker_boilerplate=`cat conftest.err`
7001 ## There is no encapsulation within the following macros, do not change
7002 ## the running order or otherwise move them around unless you know exactly
7003 ## what you are doing...
7004 if test -n "$compiler"; then
7006 lt_prog_compiler_no_builtin_flag=
7008 if test "$GCC" = yes; then
7009 case $cc_basename in
7011 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7013 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7017 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7018 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7019 $as_echo_n "(cached) " >&6
7021 lt_cv_prog_compiler_rtti_exceptions=no
7022 ac_outfile=conftest.$ac_objext
7023 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7024 lt_compiler_flag="-fno-rtti -fno-exceptions"
7025 # Insert the option either (1) after the last *FLAGS variable, or
7026 # (2) before a word containing "conftest.", or (3) at the end.
7027 # Note that $ac_compile itself does not contain backslashes and begins
7028 # with a dollar sign (not a hyphen), so the echo should work correctly.
7029 # The option is referenced via a variable to avoid confusing sed.
7030 lt_compile=`echo "$ac_compile" | $SED \
7031 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7032 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7033 -e 's:$: $lt_compiler_flag:'`
7034 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7035 (eval "$lt_compile" 2>conftest.err)
7037 cat conftest.err >&5
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 if (exit $ac_status) && test -s "$ac_outfile"; then
7040 # The compiler can only warn and ignore the option if not recognized
7041 # So say no if there are warnings other than the usual output.
7042 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7043 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7044 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7045 lt_cv_prog_compiler_rtti_exceptions=yes
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7052 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7054 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7055 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7067 lt_prog_compiler_wl=
7068 lt_prog_compiler_pic=
7069 lt_prog_compiler_static=
7072 if test "$GCC" = yes; then
7073 lt_prog_compiler_wl='-Wl,'
7074 lt_prog_compiler_static='-static'
7078 # All AIX code is PIC.
7079 if test "$host_cpu" = ia64; then
7080 # AIX 5 now supports IA64 processor
7081 lt_prog_compiler_static='-Bstatic'
7088 # see comment about AmigaOS4 .so support
7089 lt_prog_compiler_pic='-fPIC'
7092 # FIXME: we need at least 68020 code to build shared libraries, but
7093 # adding the `-m68020' flag to GCC prevents building anything better,
7095 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7100 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7101 # PIC is the default for these OSes.
7104 mingw* | cygwin* | pw32* | os2* | cegcc*)
7105 # This hack is so that the source file can tell whether it is being
7106 # built for inclusion in a dll (and should export symbols for example).
7107 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7108 # (--disable-auto-import) libraries
7109 lt_prog_compiler_pic='-DDLL_EXPORT'
7112 darwin* | rhapsody*)
7113 # PIC is the default on this platform
7114 # Common symbols not allowed in MH_DYLIB files
7115 lt_prog_compiler_pic='-fno-common'
7119 # PIC is the default for Haiku.
7120 # The "-static" flag exists, but is broken.
7121 lt_prog_compiler_static=
7125 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7126 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7127 # sets the default TLS model and affects inlining.
7133 lt_prog_compiler_pic='-fPIC'
7139 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7140 # Instead, we relocate shared libraries at runtime.
7144 # Just because we use GCC doesn't mean we suddenly get shared libraries
7145 # on systems that don't support them.
7146 lt_prog_compiler_can_build_shared=no
7151 # QNX uses GNU C++, but need to define -shared option too, otherwise
7153 lt_prog_compiler_pic='-fPIC -shared'
7157 if test -d /usr/nec; then
7158 lt_prog_compiler_pic=-Kconform_pic
7163 lt_prog_compiler_pic='-fPIC'
7167 case $cc_basename in
7168 nvcc*) # Cuda Compiler Driver 2.2
7169 lt_prog_compiler_wl='-Xlinker '
7170 lt_prog_compiler_pic='-Xcompiler -fPIC'
7174 # PORTME Check for flag to pass linker flags through the system compiler.
7177 lt_prog_compiler_wl='-Wl,'
7178 if test "$host_cpu" = ia64; then
7179 # AIX 5 now supports IA64 processor
7180 lt_prog_compiler_static='-Bstatic'
7182 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7186 mingw* | cygwin* | pw32* | os2* | cegcc*)
7187 # This hack is so that the source file can tell whether it is being
7188 # built for inclusion in a dll (and should export symbols for example).
7189 lt_prog_compiler_pic='-DDLL_EXPORT'
7192 hpux9* | hpux10* | hpux11*)
7193 lt_prog_compiler_wl='-Wl,'
7194 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7201 lt_prog_compiler_pic='+Z'
7204 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7205 lt_prog_compiler_static='${wl}-a ${wl}archive'
7208 irix5* | irix6* | nonstopux*)
7209 lt_prog_compiler_wl='-Wl,'
7210 # PIC (with -KPIC) is the default.
7211 lt_prog_compiler_static='-non_shared'
7214 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7215 case $cc_basename in
7216 # old Intel for x86_64 which still supported -KPIC.
7218 lt_prog_compiler_wl='-Wl,'
7219 lt_prog_compiler_pic='-KPIC'
7220 lt_prog_compiler_static='-static'
7222 # icc used to be incompatible with GCC.
7223 # ICC 10 doesn't accept -KPIC any more.
7225 lt_prog_compiler_wl='-Wl,'
7226 lt_prog_compiler_pic='-fPIC'
7227 lt_prog_compiler_static='-static'
7229 # Lahey Fortran 8.1.
7231 lt_prog_compiler_wl='-Wl,'
7232 lt_prog_compiler_pic='--shared'
7233 lt_prog_compiler_static='--static'
7236 # NAG Fortran compiler
7237 lt_prog_compiler_wl='-Wl,-Wl,,'
7238 lt_prog_compiler_pic='-PIC'
7239 lt_prog_compiler_static='-Bstatic'
7241 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7242 # Portland Group compilers (*not* the Pentium gcc compiler,
7243 # which looks to be a dead project)
7244 lt_prog_compiler_wl='-Wl,'
7245 lt_prog_compiler_pic='-fpic'
7246 lt_prog_compiler_static='-Bstatic'
7249 lt_prog_compiler_wl='-Wl,'
7250 # All Alpha code is PIC.
7251 lt_prog_compiler_static='-non_shared'
7253 xl* | bgxl* | bgf* | mpixl*)
7254 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7255 lt_prog_compiler_wl='-Wl,'
7256 lt_prog_compiler_pic='-qpic'
7257 lt_prog_compiler_static='-qstaticlink'
7260 case `$CC -V 2>&1 | sed 5q` in
7261 *Sun\ F* | *Sun*Fortran*)
7262 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7263 lt_prog_compiler_pic='-KPIC'
7264 lt_prog_compiler_static='-Bstatic'
7265 lt_prog_compiler_wl=''
7269 lt_prog_compiler_pic='-KPIC'
7270 lt_prog_compiler_static='-Bstatic'
7271 lt_prog_compiler_wl='-Wl,'
7279 lt_prog_compiler_pic='-KPIC'
7280 lt_prog_compiler_static='-Bstatic'
7284 # QNX uses GNU C++, but need to define -shared option too, otherwise
7286 lt_prog_compiler_pic='-fPIC -shared'
7289 osf3* | osf4* | osf5*)
7290 lt_prog_compiler_wl='-Wl,'
7291 # All OSF/1 code is PIC.
7292 lt_prog_compiler_static='-non_shared'
7296 lt_prog_compiler_static='-non_shared'
7300 lt_prog_compiler_pic='-KPIC'
7301 lt_prog_compiler_static='-Bstatic'
7302 case $cc_basename in
7303 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7304 lt_prog_compiler_wl='-Qoption ld ';;
7306 lt_prog_compiler_wl='-Wl,';;
7311 lt_prog_compiler_wl='-Qoption ld '
7312 lt_prog_compiler_pic='-PIC'
7313 lt_prog_compiler_static='-Bstatic'
7316 sysv4 | sysv4.2uw2* | sysv4.3*)
7317 lt_prog_compiler_wl='-Wl,'
7318 lt_prog_compiler_pic='-KPIC'
7319 lt_prog_compiler_static='-Bstatic'
7323 if test -d /usr/nec ;then
7324 lt_prog_compiler_pic='-Kconform_pic'
7325 lt_prog_compiler_static='-Bstatic'
7329 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7330 lt_prog_compiler_wl='-Wl,'
7331 lt_prog_compiler_pic='-KPIC'
7332 lt_prog_compiler_static='-Bstatic'
7336 lt_prog_compiler_wl='-Wl,'
7337 lt_prog_compiler_can_build_shared=no
7341 lt_prog_compiler_pic='-pic'
7342 lt_prog_compiler_static='-Bstatic'
7346 lt_prog_compiler_can_build_shared=no
7352 # For platforms which do not support PIC, -DPIC is meaningless:
7354 lt_prog_compiler_pic=
7357 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7362 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7363 if ${lt_cv_prog_compiler_pic+:} false; then :
7364 $as_echo_n "(cached) " >&6
7366 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7369 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
7370 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7373 # Check to make sure the PIC flag actually works.
7375 if test -n "$lt_prog_compiler_pic"; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7377 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7378 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7379 $as_echo_n "(cached) " >&6
7381 lt_cv_prog_compiler_pic_works=no
7382 ac_outfile=conftest.$ac_objext
7383 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7384 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7385 # Insert the option either (1) after the last *FLAGS variable, or
7386 # (2) before a word containing "conftest.", or (3) at the end.
7387 # Note that $ac_compile itself does not contain backslashes and begins
7388 # with a dollar sign (not a hyphen), so the echo should work correctly.
7389 # The option is referenced via a variable to avoid confusing sed.
7390 lt_compile=`echo "$ac_compile" | $SED \
7391 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7393 -e 's:$: $lt_compiler_flag:'`
7394 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7395 (eval "$lt_compile" 2>conftest.err)
7397 cat conftest.err >&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 if (exit $ac_status) && test -s "$ac_outfile"; then
7400 # The compiler can only warn and ignore the option if not recognized
7401 # So say no if there are warnings other than the usual output.
7402 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7403 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7404 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7405 lt_cv_prog_compiler_pic_works=yes
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7412 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7414 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7415 case $lt_prog_compiler_pic in
7417 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7420 lt_prog_compiler_pic=
7421 lt_prog_compiler_can_build_shared=no
7437 # Check to make sure the static flag actually works.
7439 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7441 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7442 if ${lt_cv_prog_compiler_static_works+:} false; then :
7443 $as_echo_n "(cached) " >&6
7445 lt_cv_prog_compiler_static_works=no
7446 save_LDFLAGS="$LDFLAGS"
7447 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7448 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7449 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7450 # The linker can only warn and ignore the option if not recognized
7451 # So say no if there are warnings
7452 if test -s conftest.err; then
7453 # Append any errors to the config.log.
7454 cat conftest.err 1>&5
7455 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7456 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7457 if diff conftest.exp conftest.er2 >/dev/null; then
7458 lt_cv_prog_compiler_static_works=yes
7461 lt_cv_prog_compiler_static_works=yes
7465 LDFLAGS="$save_LDFLAGS"
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7469 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7471 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7474 lt_prog_compiler_static=
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7484 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7485 if ${lt_cv_prog_compiler_c_o+:} false; then :
7486 $as_echo_n "(cached) " >&6
7488 lt_cv_prog_compiler_c_o=no
7489 $RM -r conftest 2>/dev/null
7493 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7495 lt_compiler_flag="-o out/conftest2.$ac_objext"
7496 # Insert the option either (1) after the last *FLAGS variable, or
7497 # (2) before a word containing "conftest.", or (3) at the end.
7498 # Note that $ac_compile itself does not contain backslashes and begins
7499 # with a dollar sign (not a hyphen), so the echo should work correctly.
7500 lt_compile=`echo "$ac_compile" | $SED \
7501 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7503 -e 's:$: $lt_compiler_flag:'`
7504 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7505 (eval "$lt_compile" 2>out/conftest.err)
7507 cat out/conftest.err >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7511 # The compiler can only warn and ignore the option if not recognized
7512 # So say no if there are warnings
7513 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7514 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7515 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7516 lt_cv_prog_compiler_c_o=yes
7521 # SGI C++ compiler will create directory out/ii_files/ for
7522 # template instantiation
7523 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7524 $RM out/* && rmdir out
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7531 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7539 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7540 if ${lt_cv_prog_compiler_c_o+:} false; then :
7541 $as_echo_n "(cached) " >&6
7543 lt_cv_prog_compiler_c_o=no
7544 $RM -r conftest 2>/dev/null
7548 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7550 lt_compiler_flag="-o out/conftest2.$ac_objext"
7551 # Insert the option either (1) after the last *FLAGS variable, or
7552 # (2) before a word containing "conftest.", or (3) at the end.
7553 # Note that $ac_compile itself does not contain backslashes and begins
7554 # with a dollar sign (not a hyphen), so the echo should work correctly.
7555 lt_compile=`echo "$ac_compile" | $SED \
7556 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7557 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7558 -e 's:$: $lt_compiler_flag:'`
7559 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7560 (eval "$lt_compile" 2>out/conftest.err)
7562 cat out/conftest.err >&5
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7566 # The compiler can only warn and ignore the option if not recognized
7567 # So say no if there are warnings
7568 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7569 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7570 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7571 lt_cv_prog_compiler_c_o=yes
7576 # SGI C++ compiler will create directory out/ii_files/ for
7577 # template instantiation
7578 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7579 $RM out/* && rmdir out
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7586 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7591 hard_links="nottested"
7592 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7593 # do not overwrite the value of need_locks provided by the user
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7595 $as_echo_n "checking if we can lock with hard links... " >&6; }
7598 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7600 ln conftest.a conftest.b 2>&5 || hard_links=no
7601 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7603 $as_echo "$hard_links" >&6; }
7604 if test "$hard_links" = no; then
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7606 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7619 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7622 allow_undefined_flag=
7623 always_export_symbols=no
7625 archive_expsym_cmds=
7626 compiler_needs_object=no
7627 enable_shared_with_static_runtimes=no
7628 export_dynamic_flag_spec=
7629 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7630 hardcode_automatic=no
7632 hardcode_direct_absolute=no
7633 hardcode_libdir_flag_spec=
7634 hardcode_libdir_flag_spec_ld=
7635 hardcode_libdir_separator=
7637 hardcode_shlibpath_var=unsupported
7639 link_all_deplibs=unknown
7642 old_archive_from_new_cmds=
7643 old_archive_from_expsyms_cmds=
7644 thread_safe_flag_spec=
7645 whole_archive_flag_spec=
7646 # include_expsyms should be a list of space-separated symbols to be *always*
7647 # included in the symbol list
7649 # exclude_expsyms can be an extended regexp of symbols to exclude
7650 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7651 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7652 # as well as any symbol that contains `d'.
7653 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7654 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7655 # platforms (ab)use it in PIC code, but their linkers get confused if
7656 # the symbol is explicitly referenced. Since portable code cannot
7657 # rely on this symbol name, it's probably fine to never include it in
7658 # preloaded symbol tables.
7659 # Exclude shared library initialization/finalization symbols.
7660 extract_expsyms_cmds=
7663 cygwin* | mingw* | pw32* | cegcc*)
7664 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7665 # When not using gcc, we currently assume that we are using
7666 # Microsoft Visual C++.
7667 if test "$GCC" != yes; then
7672 # we just hope/assume this is gcc and not c89 (= MSVC++)
7682 # On some targets, GNU ld is compatible enough with the native linker
7683 # that we're better off using the native interface for both.
7684 lt_use_gnu_ld_interface=no
7685 if test "$with_gnu_ld" = yes; then
7688 # The AIX port of GNU ld has always aspired to compatibility
7689 # with the native linker. However, as the warning in the GNU ld
7690 # block says, versions before 2.19.5* couldn't really create working
7691 # shared libraries, regardless of the interface used.
7692 case `$LD -v 2>&1` in
7693 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
7694 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
7695 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
7697 lt_use_gnu_ld_interface=yes
7702 lt_use_gnu_ld_interface=yes
7707 if test "$lt_use_gnu_ld_interface" = yes; then
7708 # If archive_cmds runs LD, not CC, wlarc should be empty
7711 # Set some defaults for GNU ld with shared library support. These
7712 # are reset later if shared libraries are not supported. Putting them
7713 # here allows them to be overridden if necessary.
7714 runpath_var=LD_RUN_PATH
7715 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7716 export_dynamic_flag_spec='${wl}--export-dynamic'
7717 # ancient GNU ld didn't support --whole-archive et. al.
7718 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7719 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7721 whole_archive_flag_spec=
7723 supports_anon_versioning=no
7724 case `$LD -v 2>&1` in
7725 *GNU\ gold*) supports_anon_versioning=yes ;;
7726 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7727 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7728 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7729 *\ 2.11.*) ;; # other 2.11 versions
7730 *) supports_anon_versioning=yes ;;
7733 # See if GNU ld supports shared libraries.
7736 # On AIX/PPC, the GNU linker is very broken
7737 if test "$host_cpu" != ia64; then
7741 *** Warning: the GNU linker, at least up to release 2.19, is reported
7742 *** to be unable to reliably create shared libraries on AIX.
7743 *** Therefore, libtool is disabling shared libraries support. If you
7744 *** really care for shared libraries, you may want to install binutils
7745 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
7746 *** You will then need to restart the configuration process.
7755 # see comment about AmigaOS4 .so support
7756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7757 archive_expsym_cmds=''
7760 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)'
7761 hardcode_libdir_flag_spec='-L$libdir'
7762 hardcode_minus_L=yes
7768 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7769 allow_undefined_flag=unsupported
7770 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7771 # support --undefined. This deserves some investigation. FIXME
7772 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7778 cygwin* | mingw* | pw32* | cegcc*)
7779 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7780 # as there is no search path for DLLs.
7781 hardcode_libdir_flag_spec='-L$libdir'
7782 export_dynamic_flag_spec='${wl}--export-all-symbols'
7783 allow_undefined_flag=unsupported
7784 always_export_symbols=no
7785 enable_shared_with_static_runtimes=yes
7786 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'
7787 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
7789 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7790 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7791 # If the export-symbols file already is a .def file (1st line
7792 # is EXPORTS), use it as is; otherwise, prepend...
7793 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7794 cp $export_symbols $output_objdir/$soname.def;
7796 echo EXPORTS > $output_objdir/$soname.def;
7797 cat $export_symbols >> $output_objdir/$soname.def;
7799 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7806 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7807 link_all_deplibs=yes
7812 hardcode_shlibpath_var=no
7813 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7814 export_dynamic_flag_spec='${wl}-E'
7815 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7816 # Instead, shared libraries are loaded at an image base (0x10000000 by
7817 # default) and relocated if they conflict, which is a slow very memory
7818 # consuming and fragmenting process. To avoid this, we pick a random,
7819 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7820 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7821 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7822 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'
7825 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7827 if test "$host_os" = linux-dietlibc; then
7828 case $cc_basename in
7829 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7832 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7833 && test "$tmp_diet" = no
7835 tmp_addflag=' $pic_flag'
7836 tmp_sharedflag='-shared'
7837 case $cc_basename,$host_cpu in
7838 pgcc*) # Portland Group C compiler
7839 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'
7840 tmp_addflag=' $pic_flag'
7842 pgf77* | pgf90* | pgf95* | pgfortran*)
7843 # Portland Group f77 and f90 compilers
7844 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'
7845 tmp_addflag=' $pic_flag -Mnomain' ;;
7846 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7847 tmp_addflag=' -i_dynamic' ;;
7848 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7849 tmp_addflag=' -i_dynamic -nofor_main' ;;
7850 ifc* | ifort*) # Intel Fortran compiler
7851 tmp_addflag=' -nofor_main' ;;
7852 lf95*) # Lahey Fortran 8.1
7853 whole_archive_flag_spec=
7854 tmp_sharedflag='--shared' ;;
7855 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7856 tmp_sharedflag='-qmkshrobj'
7858 nvcc*) # Cuda Compiler Driver 2.2
7859 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'
7860 compiler_needs_object=yes
7863 case `$CC -V 2>&1 | sed 5q` in
7864 *Sun\ C*) # Sun C 5.9
7865 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'
7866 compiler_needs_object=yes
7867 tmp_sharedflag='-G' ;;
7868 *Sun\ F*) # Sun Fortran 8.3
7869 tmp_sharedflag='-G' ;;
7871 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7873 if test "x$supports_anon_versioning" = xyes; then
7874 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7875 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7876 echo "local: *; };" >> $output_objdir/$libname.ver~
7877 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7880 case $cc_basename in
7881 xlf* | bgf* | bgxlf* | mpixlf*)
7882 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7883 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7884 hardcode_libdir_flag_spec=
7885 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7886 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
7887 if test "x$supports_anon_versioning" = xyes; then
7888 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7889 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7890 echo "local: *; };" >> $output_objdir/$libname.ver~
7891 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7901 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7902 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7905 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7906 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7911 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7915 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7916 *** create shared libraries on Solaris systems. Therefore, libtool
7917 *** is disabling shared libraries support. We urge you to upgrade GNU
7918 *** binutils to release 2.9.1 or newer. Another option is to modify
7919 *** your PATH or compiler configuration so that the native linker is
7920 *** used, and then restart.
7923 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7924 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7925 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7931 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7932 case `$LD -v 2>&1` in
7933 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7937 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7938 *** reliably create shared libraries on SCO systems. Therefore, libtool
7939 *** is disabling shared libraries support. We urge you to upgrade GNU
7940 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7941 *** your PATH or compiler configuration so that the native linker is
7942 *** used, and then restart.
7947 # For security reasons, it is highly recommended that you always
7948 # use absolute paths for naming shared libraries, and exclude the
7949 # DT_RUNPATH tag from executables and libraries. But doing so
7950 # requires that you compile everything twice, which is a pain.
7951 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7952 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7953 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7954 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7963 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7966 hardcode_shlibpath_var=no
7970 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7971 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7972 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7979 if test "$ld_shlibs" = no; then
7981 hardcode_libdir_flag_spec=
7982 export_dynamic_flag_spec=
7983 whole_archive_flag_spec=
7986 # PORTME fill in a description of your system's linker (not GNU ld)
7989 allow_undefined_flag=unsupported
7990 always_export_symbols=yes
7991 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'
7992 # Note: this linker hardcodes the directories in LIBPATH if there
7993 # are no directories specified by -L.
7994 hardcode_minus_L=yes
7995 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7996 # Neither direct hardcoding nor static linking is supported with a
7998 hardcode_direct=unsupported
8003 if test "$host_cpu" = ia64; then
8004 # On IA64, the linker does run time linking by default, so we don't
8005 # have to do anything special.
8006 aix_use_runtimelinking=no
8007 exp_sym_flag='-Bexport'
8010 # If we're using GNU nm, then we don't want the "-C" option.
8011 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8012 # Also, AIX nm treats weak defined symbols like other global
8013 # defined symbols, whereas GNU nm marks them as "W".
8014 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8015 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'
8017 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'
8019 aix_use_runtimelinking=no
8021 # Test if we are trying to use run time linking or normal
8022 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8023 # need to do runtime linking.
8024 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8025 for ld_flag in $LDFLAGS; do
8026 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8027 aix_use_runtimelinking=yes
8034 exp_sym_flag='-bexport'
8035 no_entry_flag='-bnoentry'
8038 # When large executables or shared objects are built, AIX ld can
8039 # have problems creating the table of contents. If linking a library
8040 # or program results in "error TOC overflow" add -mminimal-toc to
8041 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8042 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8046 hardcode_direct_absolute=yes
8047 hardcode_libdir_separator=':'
8048 link_all_deplibs=yes
8049 file_list_spec='${wl}-f,'
8051 if test "$GCC" = yes; then
8052 case $host_os in aix4.[012]|aix4.[012].*)
8053 # We only want to do this on AIX 4.2 and lower, the check
8054 # below for broken collect2 doesn't work under 4.3+
8055 collect2name=`${CC} -print-prog-name=collect2`
8056 if test -f "$collect2name" &&
8057 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8059 # We have reworked collect2
8062 # We have old collect2
8063 hardcode_direct=unsupported
8064 # It fails to find uninstalled libraries when the uninstalled
8065 # path is not listed in the libpath. Setting hardcode_minus_L
8066 # to unsupported forces relinking
8067 hardcode_minus_L=yes
8068 hardcode_libdir_flag_spec='-L$libdir'
8069 hardcode_libdir_separator=
8073 shared_flag='-shared'
8074 if test "$aix_use_runtimelinking" = yes; then
8075 shared_flag="$shared_flag "'${wl}-G'
8079 if test "$host_cpu" = ia64; then
8080 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8081 # chokes on -Wl,-G. The following line is correct:
8084 if test "$aix_use_runtimelinking" = yes; then
8085 shared_flag='${wl}-G'
8087 shared_flag='${wl}-bM:SRE'
8092 export_dynamic_flag_spec='${wl}-bexpall'
8093 # It seems that -bexpall does not export symbols beginning with
8094 # underscore (_), so it is better to generate a list of symbols to export.
8095 always_export_symbols=yes
8096 if test "$aix_use_runtimelinking" = yes; then
8097 # Warning - without using the other runtime loading flags (-brtl),
8098 # -berok will link without error, but may produce a broken library.
8099 allow_undefined_flag='-berok'
8100 # Determine the default libpath from the value encoded in an
8102 if test "${lt_cv_aix_libpath+set}" = set; then
8103 aix_libpath=$lt_cv_aix_libpath
8105 if ${lt_cv_aix_libpath_+:} false; then :
8106 $as_echo_n "(cached) " >&6
8108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109 /* end confdefs.h. */
8119 if ac_fn_c_try_link "$LINENO"; then :
8121 lt_aix_libpath_sed='
8122 /Import File Strings/,/^$/ {
8124 s/^0 *\([^ ]*\) *$/\1/
8128 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8129 # Check for a 64-bit object if we didn't find anything.
8130 if test -z "$lt_cv_aix_libpath_"; then
8131 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8134 rm -f core conftest.err conftest.$ac_objext \
8135 conftest$ac_exeext conftest.$ac_ext
8136 if test -z "$lt_cv_aix_libpath_"; then
8137 lt_cv_aix_libpath_="/usr/lib:/lib"
8142 aix_libpath=$lt_cv_aix_libpath_
8145 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8146 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"
8148 if test "$host_cpu" = ia64; then
8149 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8150 allow_undefined_flag="-z nodefs"
8151 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"
8153 # Determine the default libpath from the value encoded in an
8155 if test "${lt_cv_aix_libpath+set}" = set; then
8156 aix_libpath=$lt_cv_aix_libpath
8158 if ${lt_cv_aix_libpath_+:} false; then :
8159 $as_echo_n "(cached) " >&6
8161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h. */
8172 if ac_fn_c_try_link "$LINENO"; then :
8174 lt_aix_libpath_sed='
8175 /Import File Strings/,/^$/ {
8177 s/^0 *\([^ ]*\) *$/\1/
8181 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8182 # Check for a 64-bit object if we didn't find anything.
8183 if test -z "$lt_cv_aix_libpath_"; then
8184 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8187 rm -f core conftest.err conftest.$ac_objext \
8188 conftest$ac_exeext conftest.$ac_ext
8189 if test -z "$lt_cv_aix_libpath_"; then
8190 lt_cv_aix_libpath_="/usr/lib:/lib"
8195 aix_libpath=$lt_cv_aix_libpath_
8198 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8199 # Warning - without using the other run time loading flags,
8200 # -berok will link without error, but may produce a broken library.
8201 no_undefined_flag=' ${wl}-bernotok'
8202 allow_undefined_flag=' ${wl}-berok'
8203 if test "$with_gnu_ld" = yes; then
8204 # We only use this code for GNU lds that support --whole-archive.
8205 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8207 # Exported symbols can be pulled into shared objects from archives
8208 whole_archive_flag_spec='$convenience'
8210 archive_cmds_need_lc=yes
8211 # This is similar to how AIX traditionally builds its shared libraries.
8212 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'
8220 # see comment about AmigaOS4 .so support
8221 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8222 archive_expsym_cmds=''
8225 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)'
8226 hardcode_libdir_flag_spec='-L$libdir'
8227 hardcode_minus_L=yes
8233 export_dynamic_flag_spec=-rdynamic
8236 cygwin* | mingw* | pw32* | cegcc*)
8237 # When not using gcc, we currently assume that we are using
8238 # Microsoft Visual C++.
8239 # hardcode_libdir_flag_spec is actually meaningless, as there is
8240 # no search path for DLLs.
8241 case $cc_basename in
8244 hardcode_libdir_flag_spec=' '
8245 allow_undefined_flag=unsupported
8246 always_export_symbols=yes
8248 # Tell ltmain to make .lib files, not .a files.
8250 # Tell ltmain to make .dll files, not .so files.
8252 # FIXME: Setting linknames here is a bad hack.
8253 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8254 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8255 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8257 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8259 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8261 # The linker will not automatically build a static lib if we build a DLL.
8262 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8263 enable_shared_with_static_runtimes=yes
8264 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8266 old_postinstall_cmds='chmod 644 $oldlib'
8267 postlink_cmds='lt_outputfile="@OUTPUT@"~
8268 lt_tool_outputfile="@TOOL_OUTPUT@"~
8269 case $lt_outputfile in
8272 lt_outputfile="$lt_outputfile.exe"
8273 lt_tool_outputfile="$lt_tool_outputfile.exe"
8276 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8277 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8278 $RM "$lt_outputfile.manifest";
8282 # Assume MSVC wrapper
8283 hardcode_libdir_flag_spec=' '
8284 allow_undefined_flag=unsupported
8285 # Tell ltmain to make .lib files, not .a files.
8287 # Tell ltmain to make .dll files, not .so files.
8289 # FIXME: Setting linknames here is a bad hack.
8290 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8291 # The linker will automatically build a .lib file if we build a DLL.
8292 old_archive_from_new_cmds='true'
8293 # FIXME: Should let the user specify the lib program.
8294 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8295 enable_shared_with_static_runtimes=yes
8300 darwin* | rhapsody*)
8303 archive_cmds_need_lc=no
8305 hardcode_automatic=yes
8306 hardcode_shlibpath_var=unsupported
8307 if test "$lt_cv_ld_force_load" = "yes"; then
8308 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\"`'
8310 whole_archive_flag_spec=''
8312 link_all_deplibs=yes
8313 allow_undefined_flag="$_lt_dar_allow_undefined"
8314 case $cc_basename in
8315 ifort*) _lt_dar_can_shared=yes ;;
8316 *) _lt_dar_can_shared=$GCC ;;
8318 if test "$_lt_dar_can_shared" = "yes"; then
8319 output_verbose_link_cmd=func_echo_all
8320 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8321 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8322 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}"
8323 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}"
8332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8333 hardcode_libdir_flag_spec='-L$libdir'
8334 hardcode_shlibpath_var=no
8341 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8342 # support. Future versions do this automatically, but an explicit c++rt0.o
8343 # does not break anything, and helps significantly (at the cost of a little
8346 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8347 hardcode_libdir_flag_spec='-R$libdir'
8349 hardcode_shlibpath_var=no
8352 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8354 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8356 hardcode_minus_L=yes
8357 hardcode_shlibpath_var=no
8360 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8361 freebsd* | dragonfly*)
8362 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8363 hardcode_libdir_flag_spec='-R$libdir'
8365 hardcode_shlibpath_var=no
8369 if test "$GCC" = yes; then
8370 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'
8372 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'
8374 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8375 hardcode_libdir_separator=:
8378 # hardcode_minus_L: Not really in the search PATH,
8379 # but as the default location of the library.
8380 hardcode_minus_L=yes
8381 export_dynamic_flag_spec='${wl}-E'
8385 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8386 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8388 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8390 if test "$with_gnu_ld" = no; then
8391 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8392 hardcode_libdir_flag_spec_ld='+b $libdir'
8393 hardcode_libdir_separator=:
8395 hardcode_direct_absolute=yes
8396 export_dynamic_flag_spec='${wl}-E'
8397 # hardcode_minus_L: Not really in the search PATH,
8398 # but as the default location of the library.
8399 hardcode_minus_L=yes
8404 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8407 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8410 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8413 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8419 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8422 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8426 # Older versions of the 11.00 compiler do not understand -b yet
8427 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8429 $as_echo_n "checking if $CC understands -b... " >&6; }
8430 if ${lt_cv_prog_compiler__b+:} false; then :
8431 $as_echo_n "(cached) " >&6
8433 lt_cv_prog_compiler__b=no
8434 save_LDFLAGS="$LDFLAGS"
8435 LDFLAGS="$LDFLAGS -b"
8436 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8437 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8438 # The linker can only warn and ignore the option if not recognized
8439 # So say no if there are warnings
8440 if test -s conftest.err; then
8441 # Append any errors to the config.log.
8442 cat conftest.err 1>&5
8443 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8445 if diff conftest.exp conftest.er2 >/dev/null; then
8446 lt_cv_prog_compiler__b=yes
8449 lt_cv_prog_compiler__b=yes
8453 LDFLAGS="$save_LDFLAGS"
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8457 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8459 if test x"$lt_cv_prog_compiler__b" = xyes; then
8460 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8462 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8468 if test "$with_gnu_ld" = no; then
8469 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8470 hardcode_libdir_separator=:
8475 hardcode_shlibpath_var=no
8479 hardcode_direct_absolute=yes
8480 export_dynamic_flag_spec='${wl}-E'
8482 # hardcode_minus_L: Not really in the search PATH,
8483 # but as the default location of the library.
8484 hardcode_minus_L=yes
8490 irix5* | irix6* | nonstopux*)
8491 if test "$GCC" = yes; then
8492 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'
8493 # Try to use the -exported_symbol ld option, if it does not
8494 # work, assume that -exports_file does not work either and
8495 # implicitly export all symbols.
8496 # This should be the same for all languages, so no per-tag cache variable.
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
8498 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
8499 if ${lt_cv_irix_exported_symbol+:} false; then :
8500 $as_echo_n "(cached) " >&6
8502 save_LDFLAGS="$LDFLAGS"
8503 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505 /* end confdefs.h. */
8506 int foo (void) { return 0; }
8508 if ac_fn_c_try_link "$LINENO"; then :
8509 lt_cv_irix_exported_symbol=yes
8511 lt_cv_irix_exported_symbol=no
8513 rm -f core conftest.err conftest.$ac_objext \
8514 conftest$ac_exeext conftest.$ac_ext
8515 LDFLAGS="$save_LDFLAGS"
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
8518 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
8519 if test "$lt_cv_irix_exported_symbol" = yes; then
8520 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'
8523 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'
8524 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'
8526 archive_cmds_need_lc='no'
8527 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8528 hardcode_libdir_separator=:
8530 link_all_deplibs=yes
8534 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8535 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8537 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8539 hardcode_libdir_flag_spec='-R$libdir'
8541 hardcode_shlibpath_var=no
8545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8547 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8548 hardcode_libdir_separator=:
8549 hardcode_shlibpath_var=no
8556 if test -f /usr/libexec/ld.so; then
8558 hardcode_shlibpath_var=no
8559 hardcode_direct_absolute=yes
8560 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8561 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8562 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8563 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8564 export_dynamic_flag_spec='${wl}-E'
8567 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8568 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8569 hardcode_libdir_flag_spec='-R$libdir'
8572 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8573 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8583 hardcode_libdir_flag_spec='-L$libdir'
8584 hardcode_minus_L=yes
8585 allow_undefined_flag=unsupported
8586 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'
8587 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8591 if test "$GCC" = yes; then
8592 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8593 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'
8595 allow_undefined_flag=' -expect_unresolved \*'
8596 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'
8598 archive_cmds_need_lc='no'
8599 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8600 hardcode_libdir_separator=:
8603 osf4* | osf5*) # as osf3* with the addition of -msym flag
8604 if test "$GCC" = yes; then
8605 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8606 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'
8607 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8609 allow_undefined_flag=' -expect_unresolved \*'
8610 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'
8611 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~
8612 $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'
8614 # Both c and cxx compiler support -rpath directly
8615 hardcode_libdir_flag_spec='-rpath $libdir'
8617 archive_cmds_need_lc='no'
8618 hardcode_libdir_separator=:
8622 no_undefined_flag=' -z defs'
8623 if test "$GCC" = yes; then
8625 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8626 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8627 $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'
8629 case `$CC -V 2>&1` in
8632 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8633 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8634 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8638 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8639 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8640 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8644 hardcode_libdir_flag_spec='-R$libdir'
8645 hardcode_shlibpath_var=no
8647 solaris2.[0-5] | solaris2.[0-5].*) ;;
8649 # The compiler driver will combine and reorder linker options,
8650 # but understands `-z linker_flag'. GCC discards it without `$wl',
8651 # but is careful enough not to reorder.
8652 # Supported since Solaris 2.6 (maybe 2.5.1?)
8653 if test "$GCC" = yes; then
8654 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8656 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8660 link_all_deplibs=yes
8664 if test "x$host_vendor" = xsequent; then
8665 # Use $CC to link under sequent, because it throws in some extra .o
8666 # files that make .init and .fini sections work.
8667 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8669 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8671 hardcode_libdir_flag_spec='-L$libdir'
8673 hardcode_minus_L=yes
8674 hardcode_shlibpath_var=no
8678 case $host_vendor in
8680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8681 hardcode_direct=yes # is this really true???
8684 ## LD is ld it makes a PLAMLIB
8685 ## CC just makes a GrossModule.
8686 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8687 reload_cmds='$CC -r -o $output$reload_objs'
8691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8692 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8695 runpath_var='LD_RUN_PATH'
8696 hardcode_shlibpath_var=no
8700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8701 hardcode_shlibpath_var=no
8702 export_dynamic_flag_spec='-Bexport'
8706 if test -d /usr/nec; then
8707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8708 hardcode_shlibpath_var=no
8709 runpath_var=LD_RUN_PATH
8710 hardcode_runpath_var=yes
8715 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8716 no_undefined_flag='${wl}-z,text'
8717 archive_cmds_need_lc=no
8718 hardcode_shlibpath_var=no
8719 runpath_var='LD_RUN_PATH'
8721 if test "$GCC" = yes; then
8722 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8723 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8725 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8726 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8730 sysv5* | sco3.2v5* | sco5v6*)
8731 # Note: We can NOT use -z defs as we might desire, because we do not
8732 # link with -lc, and that would cause any symbols used from libc to
8733 # always be unresolved, which means just about no library would
8734 # ever link correctly. If we're not using GNU ld we use -z text
8735 # though, which does catch some bad symbols but isn't as heavy-handed
8737 no_undefined_flag='${wl}-z,text'
8738 allow_undefined_flag='${wl}-z,nodefs'
8739 archive_cmds_need_lc=no
8740 hardcode_shlibpath_var=no
8741 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8742 hardcode_libdir_separator=':'
8743 link_all_deplibs=yes
8744 export_dynamic_flag_spec='${wl}-Bexport'
8745 runpath_var='LD_RUN_PATH'
8747 if test "$GCC" = yes; then
8748 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8749 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8751 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8752 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8758 hardcode_libdir_flag_spec='-L$libdir'
8759 hardcode_shlibpath_var=no
8767 if test x$host_vendor = xsni; then
8769 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8770 export_dynamic_flag_spec='${wl}-Blargedynsym'
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8777 $as_echo "$ld_shlibs" >&6; }
8778 test "$ld_shlibs" = no && can_build_shared=no
8780 with_gnu_ld=$with_gnu_ld
8797 # Do we need to explicitly link libc?
8799 case "x$archive_cmds_need_lc" in
8801 # Assume -lc should be added
8802 archive_cmds_need_lc=yes
8804 if test "$enable_shared" = yes && test "$GCC" = yes; then
8805 case $archive_cmds in
8807 # FIXME: we may have to deal with multi-command sequences.
8810 # Test whether the compiler implicitly links with -lc since on some
8811 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8812 # to ld, don't add -lc before -lgcc.
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8814 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8815 if ${lt_cv_archive_cmds_need_lc+:} false; then :
8816 $as_echo_n "(cached) " >&6
8819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8822 (eval $ac_compile) 2>&5
8824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8825 test $ac_status = 0; } 2>conftest.err; then
8828 libobjs=conftest.$ac_objext
8830 wl=$lt_prog_compiler_wl
8831 pic_flag=$lt_prog_compiler_pic
8837 lt_save_allow_undefined_flag=$allow_undefined_flag
8838 allow_undefined_flag=
8839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8840 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8843 test $ac_status = 0; }
8845 lt_cv_archive_cmds_need_lc=no
8847 lt_cv_archive_cmds_need_lc=yes
8849 allow_undefined_flag=$lt_save_allow_undefined_flag
8851 cat conftest.err 1>&5
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
8857 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
8858 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9022 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9024 if test "$GCC" = yes; then
9026 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9027 *) lt_awk_arg="/^libraries:/" ;;
9030 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9031 *) lt_sed_strip_eq="s,=/,/,g" ;;
9033 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9034 case $lt_search_path_spec in
9036 # if the path contains ";" then we assume it to be the separator
9037 # otherwise default to the standard path separator (i.e. ":") - it is
9038 # assumed that no part of a normal pathname contains ";" but that should
9039 # okay in the real world where ";" in dirpaths is itself problematic.
9040 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9043 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9046 # Ok, now we have the path, separated by spaces, we can step through it
9047 # and add multilib dir if necessary.
9048 lt_tmp_lt_search_path_spec=
9049 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9050 for lt_sys_path in $lt_search_path_spec; do
9051 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9052 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9054 test -d "$lt_sys_path" && \
9055 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9058 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9059 BEGIN {RS=" "; FS="/|\n";} {
9062 for (lt_i = NF; lt_i > 0; lt_i--) {
9063 if ($lt_i != "" && $lt_i != ".") {
9064 if ($lt_i == "..") {
9067 if (lt_count == 0) {
9068 lt_foo="/" $lt_i lt_foo;
9075 if (lt_foo != "") { lt_freq[lt_foo]++; }
9076 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9078 # AWK program above erroneously prepends '/' to C:/dos/paths
9081 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9082 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9084 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9086 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9089 libname_spec='lib$name'
9097 shlibpath_overrides_runpath=unknown
9099 dynamic_linker="$host_os ld.so"
9100 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9101 need_lib_prefix=unknown
9102 hardcode_into_libs=no
9104 # when you set need_version to no, make sure it does not cause -set_version
9105 # flags to be left without arguments
9106 need_version=unknown
9111 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9112 shlibpath_var=LIBPATH
9114 # AIX 3 has no versioning support, so we append a major version to the name.
9115 soname_spec='${libname}${release}${shared_ext}$major'
9122 hardcode_into_libs=yes
9123 if test "$host_cpu" = ia64; then
9124 # AIX 5 supports IA64
9125 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9126 shlibpath_var=LD_LIBRARY_PATH
9128 # With GCC up to 2.95.x, collect2 would create an import file
9129 # for dependence libraries. The import file would start with
9130 # the line `#! .'. This would cause the generated library to
9131 # depend on `.', always an invalid library. This was fixed in
9132 # development snapshots of GCC prior to 3.0.
9134 aix4 | aix4.[01] | aix4.[01].*)
9135 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9137 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9144 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9145 # soname into executable. Probably we can add versioning support to
9146 # collect2, so additional links can be useful in future.
9147 if test "$aix_use_runtimelinking" = yes; then
9148 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9149 # instead of lib<name>.a to let people know that these are not
9150 # typical AIX shared libraries.
9151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9153 # We preserve .a as extension for shared libraries through AIX4.2
9154 # and later when we are not doing run time linking.
9155 library_names_spec='${libname}${release}.a $libname.a'
9156 soname_spec='${libname}${release}${shared_ext}$major'
9158 shlibpath_var=LIBPATH
9165 # Since July 2007 AmigaOS4 officially supports .so libraries.
9166 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9170 library_names_spec='$libname.ixlibrary $libname.a'
9171 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9172 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'
9178 library_names_spec='${libname}${shared_ext}'
9179 dynamic_linker="$host_os ld.so"
9180 shlibpath_var=LIBRARY_PATH
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187 soname_spec='${libname}${release}${shared_ext}$major'
9188 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9189 shlibpath_var=LD_LIBRARY_PATH
9190 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9191 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9192 # the default ld.so.conf also contains /usr/contrib/lib and
9193 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9194 # libtool to hard-code these into programs
9197 cygwin* | mingw* | pw32* | cegcc*)
9198 version_type=windows
9203 case $GCC,$cc_basename in
9206 library_names_spec='$libname.dll.a'
9207 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9208 postinstall_cmds='base_file=`basename \${file}`~
9209 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9210 dldir=$destdir/`dirname \$dlpath`~
9211 test -d \$dldir || mkdir -p \$dldir~
9212 $install_prog $dir/$dlname \$dldir/$dlname~
9213 chmod a+x \$dldir/$dlname~
9214 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9215 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9217 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9218 dlpath=$dir/\$dldll~
9220 shlibpath_overrides_runpath=yes
9224 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9225 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9227 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9230 # MinGW DLLs use traditional 'lib' prefix
9231 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9234 # pw32 DLLs use 'pw' prefix rather than 'lib'
9235 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9238 dynamic_linker='Win32 ld.exe'
9243 libname_spec='$name'
9244 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9245 library_names_spec='${libname}.dll.lib'
9249 sys_lib_search_path_spec=
9255 # Let DOS variable expansion print the short 8.3 style file name.
9256 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9257 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9260 # Convert to MSYS style.
9261 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9264 # Convert to unix form, then to dos form, then back to unix form
9265 # but this time dos style (no spaces!) so that the unix form looks
9266 # like /cygdrive/c/PROGRA~1:/cygdr...
9267 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9268 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9269 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9272 sys_lib_search_path_spec="$LIB"
9273 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9274 # It is most probably a Windows format PATH.
9275 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9277 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9279 # FIXME: find the short name or the path components, as spaces are
9280 # common. (e.g. "Program Files" -> "PROGRA~1")
9284 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9285 postinstall_cmds='base_file=`basename \${file}`~
9286 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9287 dldir=$destdir/`dirname \$dlpath`~
9288 test -d \$dldir || mkdir -p \$dldir~
9289 $install_prog $dir/$dlname \$dldir/$dlname'
9290 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9291 dlpath=$dir/\$dldll~
9293 shlibpath_overrides_runpath=yes
9294 dynamic_linker='Win32 link.exe'
9298 # Assume MSVC wrapper
9299 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9300 dynamic_linker='Win32 ld.exe'
9303 # FIXME: first we should search . and the directory the executable is in
9307 darwin* | rhapsody*)
9308 dynamic_linker="$host_os dyld"
9312 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9313 soname_spec='${libname}${release}${major}$shared_ext'
9314 shlibpath_overrides_runpath=yes
9315 shlibpath_var=DYLD_LIBRARY_PATH
9316 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9318 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9319 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9327 soname_spec='${libname}${release}${shared_ext}$major'
9328 shlibpath_var=LD_LIBRARY_PATH
9335 freebsd* | dragonfly*)
9336 # DragonFly does not have aout. When/if they implement a new
9337 # versioning mechanism, adjust this.
9338 if test -x /usr/bin/objformat; then
9339 objformat=`/usr/bin/objformat`
9342 freebsd[123]*) objformat=aout ;;
9346 version_type=freebsd-$objformat
9347 case $version_type in
9349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9354 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9358 shlibpath_var=LD_LIBRARY_PATH
9361 shlibpath_overrides_runpath=yes
9363 freebsd3.[01]* | freebsdelf3.[01]*)
9364 shlibpath_overrides_runpath=yes
9365 hardcode_into_libs=yes
9367 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9368 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9369 shlibpath_overrides_runpath=no
9370 hardcode_into_libs=yes
9372 *) # from 4.6 on, and DragonFly
9373 shlibpath_overrides_runpath=yes
9374 hardcode_into_libs=yes
9383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9384 soname_spec='${libname}${release}${shared_ext}$major'
9385 shlibpath_var=LD_LIBRARY_PATH
9386 hardcode_into_libs=yes
9393 dynamic_linker="$host_os runtime_loader"
9394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9395 soname_spec='${libname}${release}${shared_ext}$major'
9396 shlibpath_var=LIBRARY_PATH
9397 shlibpath_overrides_runpath=yes
9398 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9399 hardcode_into_libs=yes
9402 hpux9* | hpux10* | hpux11*)
9403 # Give a soname corresponding to the major version so that dld.sl refuses to
9404 # link against other versions.
9411 hardcode_into_libs=yes
9412 dynamic_linker="$host_os dld.so"
9413 shlibpath_var=LD_LIBRARY_PATH
9414 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9416 soname_spec='${libname}${release}${shared_ext}$major'
9417 if test "X$HPUX_IA64_MODE" = X32; then
9418 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9420 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9422 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9426 hardcode_into_libs=yes
9427 dynamic_linker="$host_os dld.sl"
9428 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9429 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9431 soname_spec='${libname}${release}${shared_ext}$major'
9432 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9433 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9437 dynamic_linker="$host_os dld.sl"
9438 shlibpath_var=SHLIB_PATH
9439 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9441 soname_spec='${libname}${release}${shared_ext}$major'
9444 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9445 postinstall_cmds='chmod 555 $lib'
9446 # or fails outright, so override atomically:
9447 install_override_mode=555
9454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9455 soname_spec='${libname}${release}${shared_ext}$major'
9456 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9457 shlibpath_var=LD_LIBRARY_PATH
9458 shlibpath_overrides_runpath=no
9459 hardcode_into_libs=yes
9462 irix5* | irix6* | nonstopux*)
9464 nonstopux*) version_type=nonstopux ;;
9466 if test "$lt_cv_prog_gnu_ld" = yes; then
9474 soname_spec='${libname}${release}${shared_ext}$major'
9475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9477 irix5* | nonstopux*)
9481 case $LD in # libtool.m4 will add one of these switches to LD
9482 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9483 libsuff= shlibsuff= libmagic=32-bit;;
9484 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9485 libsuff=32 shlibsuff=N32 libmagic=N32;;
9486 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9487 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9488 *) libsuff= shlibsuff= libmagic=never-match;;
9492 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9493 shlibpath_overrides_runpath=no
9494 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9495 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9496 hardcode_into_libs=yes
9499 # No shared lib support for Linux oldld, aout, or coff.
9500 linux*oldld* | linux*aout* | linux*coff*)
9504 # This must be Linux ELF.
9505 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9510 soname_spec='${libname}${release}${shared_ext}$major'
9511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9512 shlibpath_var=LD_LIBRARY_PATH
9513 shlibpath_overrides_runpath=no
9515 # Some binutils ld are patched to set DT_RUNPATH
9516 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9517 $as_echo_n "(cached) " >&6
9519 lt_cv_shlibpath_overrides_runpath=no
9520 save_LDFLAGS=$LDFLAGS
9522 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9523 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9525 /* end confdefs.h. */
9535 if ac_fn_c_try_link "$LINENO"; then :
9536 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9537 lt_cv_shlibpath_overrides_runpath=yes
9540 rm -f core conftest.err conftest.$ac_objext \
9541 conftest$ac_exeext conftest.$ac_ext
9542 LDFLAGS=$save_LDFLAGS
9547 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9549 # This implies no fast_install, which is unacceptable.
9550 # Some rework will be needed to allow for fast_install
9551 # before this can be enabled.
9552 hardcode_into_libs=yes
9554 # Append ld.so.conf contents to the search path
9555 if test -f /etc/ld.so.conf; then
9556 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' ' '`
9557 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9560 # We used to test for /lib/ld.so.1 and disable shared libraries on
9561 # powerpc, because MkLinux only supported shared libraries with the
9562 # GNU dynamic linker. Since this was broken with cross compilers,
9563 # most powerpc-linux boxes support dynamic linking these days and
9564 # people can always --disable-shared, the test was removed, and we
9565 # assume the GNU/Linux dynamic linker is in use.
9566 dynamic_linker='GNU/Linux ld.so'
9573 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9575 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9576 dynamic_linker='NetBSD (a.out) ld.so'
9578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9579 soname_spec='${libname}${release}${shared_ext}$major'
9580 dynamic_linker='NetBSD ld.elf_so'
9582 shlibpath_var=LD_LIBRARY_PATH
9583 shlibpath_overrides_runpath=yes
9584 hardcode_into_libs=yes
9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9590 shlibpath_var=LD_LIBRARY_PATH
9591 shlibpath_overrides_runpath=yes
9598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599 soname_spec='${libname}${release}${shared_ext}$major'
9600 shlibpath_var=LD_LIBRARY_PATH
9601 shlibpath_overrides_runpath=no
9602 hardcode_into_libs=yes
9603 dynamic_linker='ldqnx.so'
9608 sys_lib_dlsearch_path_spec="/usr/lib"
9610 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9612 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9613 *) need_version=no ;;
9615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9616 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9617 shlibpath_var=LD_LIBRARY_PATH
9618 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9620 openbsd2.[89] | openbsd2.[89].*)
9621 shlibpath_overrides_runpath=no
9624 shlibpath_overrides_runpath=yes
9628 shlibpath_overrides_runpath=yes
9633 libname_spec='$name'
9636 library_names_spec='$libname${shared_ext} $libname.a'
9637 dynamic_linker='OS/2 ld.exe'
9638 shlibpath_var=LIBPATH
9641 osf3* | osf4* | osf5*)
9645 soname_spec='${libname}${release}${shared_ext}$major'
9646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9647 shlibpath_var=LD_LIBRARY_PATH
9648 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9649 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9661 soname_spec='${libname}${release}${shared_ext}$major'
9662 shlibpath_var=LD_LIBRARY_PATH
9663 shlibpath_overrides_runpath=yes
9664 hardcode_into_libs=yes
9665 # ldd complains unless libraries are executable
9666 postinstall_cmds='chmod +x $lib'
9671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9672 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9673 shlibpath_var=LD_LIBRARY_PATH
9674 shlibpath_overrides_runpath=yes
9675 if test "$with_gnu_ld" = yes; then
9683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9684 soname_spec='${libname}${release}${shared_ext}$major'
9685 shlibpath_var=LD_LIBRARY_PATH
9686 case $host_vendor in
9688 shlibpath_overrides_runpath=no
9690 runpath_var=LD_RUN_PATH
9698 shlibpath_overrides_runpath=no
9699 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9705 if test -d /usr/nec ;then
9707 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9708 soname_spec='$libname${shared_ext}.$major'
9709 shlibpath_var=LD_LIBRARY_PATH
9713 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9714 version_type=freebsd-elf
9717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9718 soname_spec='${libname}${release}${shared_ext}$major'
9719 shlibpath_var=LD_LIBRARY_PATH
9720 shlibpath_overrides_runpath=yes
9721 hardcode_into_libs=yes
9722 if test "$with_gnu_ld" = yes; then
9723 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9725 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9728 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9732 sys_lib_dlsearch_path_spec='/usr/lib'
9736 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9741 shlibpath_var=LD_LIBRARY_PATH
9742 shlibpath_overrides_runpath=no
9743 hardcode_into_libs=yes
9748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9749 soname_spec='${libname}${release}${shared_ext}$major'
9750 shlibpath_var=LD_LIBRARY_PATH
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9758 $as_echo "$dynamic_linker" >&6; }
9759 test "$dynamic_linker" = no && can_build_shared=no
9761 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9762 if test "$GCC" = yes; then
9763 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9766 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9767 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9769 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9770 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9865 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9867 if test -n "$hardcode_libdir_flag_spec" ||
9868 test -n "$runpath_var" ||
9869 test "X$hardcode_automatic" = "Xyes" ; then
9871 # We can hardcode non-existent directories.
9872 if test "$hardcode_direct" != no &&
9873 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9874 # have to relink, otherwise we might link with an installed library
9875 # when we should be linking with a yet-to-be-installed one
9876 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9877 test "$hardcode_minus_L" != no; then
9878 # Linking always hardcodes the temporary library directory.
9879 hardcode_action=relink
9881 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9882 hardcode_action=immediate
9885 # We cannot hardcode anything, or else we can only hardcode existing
9887 hardcode_action=unsupported
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9890 $as_echo "$hardcode_action" >&6; }
9892 if test "$hardcode_action" = relink ||
9893 test "$inherit_rpath" = yes; then
9894 # Fast installation is not supported
9895 enable_fast_install=no
9896 elif test "$shlibpath_overrides_runpath" = yes ||
9897 test "$enable_shared" = no; then
9898 # Fast installation is not necessary
9899 enable_fast_install=needless
9907 if test "x$enable_dlopen" != xyes; then
9908 enable_dlopen=unknown
9909 enable_dlopen_self=unknown
9910 enable_dlopen_self_static=unknown
9917 lt_cv_dlopen="load_add_on"
9919 lt_cv_dlopen_self=yes
9922 mingw* | pw32* | cegcc*)
9923 lt_cv_dlopen="LoadLibrary"
9928 lt_cv_dlopen="dlopen"
9933 # if libdl is installed we need to link against it
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9935 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9936 if ${ac_cv_lib_dl_dlopen+:} false; then :
9937 $as_echo_n "(cached) " >&6
9939 ac_check_lib_save_LIBS=$LIBS
9941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942 /* end confdefs.h. */
9944 /* Override any GCC internal prototype to avoid an error.
9945 Use char because int might match the return type of a GCC
9946 builtin and then its argument prototype would still apply. */
9959 if ac_fn_c_try_link "$LINENO"; then :
9960 ac_cv_lib_dl_dlopen=yes
9962 ac_cv_lib_dl_dlopen=no
9964 rm -f core conftest.err conftest.$ac_objext \
9965 conftest$ac_exeext conftest.$ac_ext
9966 LIBS=$ac_check_lib_save_LIBS
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9969 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9970 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9971 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9976 lt_cv_dlopen_self=yes
9983 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9984 if test "x$ac_cv_func_shl_load" = xyes; then :
9985 lt_cv_dlopen="shl_load"
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9988 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9989 if ${ac_cv_lib_dld_shl_load+:} false; then :
9990 $as_echo_n "(cached) " >&6
9992 ac_check_lib_save_LIBS=$LIBS
9994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9995 /* end confdefs.h. */
9997 /* Override any GCC internal prototype to avoid an error.
9998 Use char because int might match the return type of a GCC
9999 builtin and then its argument prototype would still apply. */
10007 return shl_load ();
10012 if ac_fn_c_try_link "$LINENO"; then :
10013 ac_cv_lib_dld_shl_load=yes
10015 ac_cv_lib_dld_shl_load=no
10017 rm -f core conftest.err conftest.$ac_objext \
10018 conftest$ac_exeext conftest.$ac_ext
10019 LIBS=$ac_check_lib_save_LIBS
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10022 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10023 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10024 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10026 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10027 if test "x$ac_cv_func_dlopen" = xyes; then :
10028 lt_cv_dlopen="dlopen"
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10031 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10032 if ${ac_cv_lib_dl_dlopen+:} false; then :
10033 $as_echo_n "(cached) " >&6
10035 ac_check_lib_save_LIBS=$LIBS
10037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10038 /* end confdefs.h. */
10040 /* Override any GCC internal prototype to avoid an error.
10041 Use char because int might match the return type of a GCC
10042 builtin and then its argument prototype would still apply. */
10055 if ac_fn_c_try_link "$LINENO"; then :
10056 ac_cv_lib_dl_dlopen=yes
10058 ac_cv_lib_dl_dlopen=no
10060 rm -f core conftest.err conftest.$ac_objext \
10061 conftest$ac_exeext conftest.$ac_ext
10062 LIBS=$ac_check_lib_save_LIBS
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10065 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10066 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10067 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10070 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10071 if ${ac_cv_lib_svld_dlopen+:} false; then :
10072 $as_echo_n "(cached) " >&6
10074 ac_check_lib_save_LIBS=$LIBS
10075 LIBS="-lsvld $LIBS"
10076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10077 /* end confdefs.h. */
10079 /* Override any GCC internal prototype to avoid an error.
10080 Use char because int might match the return type of a GCC
10081 builtin and then its argument prototype would still apply. */
10094 if ac_fn_c_try_link "$LINENO"; then :
10095 ac_cv_lib_svld_dlopen=yes
10097 ac_cv_lib_svld_dlopen=no
10099 rm -f core conftest.err conftest.$ac_objext \
10100 conftest$ac_exeext conftest.$ac_ext
10101 LIBS=$ac_check_lib_save_LIBS
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10104 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10105 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10109 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10110 if ${ac_cv_lib_dld_dld_link+:} false; then :
10111 $as_echo_n "(cached) " >&6
10113 ac_check_lib_save_LIBS=$LIBS
10115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10116 /* end confdefs.h. */
10118 /* Override any GCC internal prototype to avoid an error.
10119 Use char because int might match the return type of a GCC
10120 builtin and then its argument prototype would still apply. */
10128 return dld_link ();
10133 if ac_fn_c_try_link "$LINENO"; then :
10134 ac_cv_lib_dld_dld_link=yes
10136 ac_cv_lib_dld_dld_link=no
10138 rm -f core conftest.err conftest.$ac_objext \
10139 conftest$ac_exeext conftest.$ac_ext
10140 LIBS=$ac_check_lib_save_LIBS
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10143 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10144 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10145 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10166 if test "x$lt_cv_dlopen" != xno; then
10172 case $lt_cv_dlopen in
10174 save_CPPFLAGS="$CPPFLAGS"
10175 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10177 save_LDFLAGS="$LDFLAGS"
10178 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10181 LIBS="$lt_cv_dlopen_libs $LIBS"
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10184 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10185 if ${lt_cv_dlopen_self+:} false; then :
10186 $as_echo_n "(cached) " >&6
10188 if test "$cross_compiling" = yes; then :
10189 lt_cv_dlopen_self=cross
10191 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10192 lt_status=$lt_dlunknown
10193 cat > conftest.$ac_ext <<_LT_EOF
10194 #line $LINENO "configure"
10195 #include "confdefs.h"
10204 # define LT_DLGLOBAL RTLD_GLOBAL
10207 # define LT_DLGLOBAL DL_GLOBAL
10209 # define LT_DLGLOBAL 0
10213 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10214 find out it does not work in some platform. */
10215 #ifndef LT_DLLAZY_OR_NOW
10217 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10220 # define LT_DLLAZY_OR_NOW DL_LAZY
10223 # define LT_DLLAZY_OR_NOW RTLD_NOW
10226 # define LT_DLLAZY_OR_NOW DL_NOW
10228 # define LT_DLLAZY_OR_NOW 0
10235 /* When -fvisbility=hidden is used, assume the code has been annotated
10236 correspondingly for the symbols needed. */
10237 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10238 int fnord () __attribute__((visibility("default")));
10241 int fnord () { return 42; }
10244 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10245 int status = $lt_dlunknown;
10249 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10252 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10253 else puts (dlerror ());
10255 /* dlclose (self); */
10263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10264 (eval $ac_link) 2>&5
10266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10267 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10268 (./conftest; exit; ) >&5 2>/dev/null
10270 case x$lt_status in
10271 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10272 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10273 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10276 # compilation failed
10277 lt_cv_dlopen_self=no
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10285 $as_echo "$lt_cv_dlopen_self" >&6; }
10287 if test "x$lt_cv_dlopen_self" = xyes; then
10288 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10290 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10291 if ${lt_cv_dlopen_self_static+:} false; then :
10292 $as_echo_n "(cached) " >&6
10294 if test "$cross_compiling" = yes; then :
10295 lt_cv_dlopen_self_static=cross
10297 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10298 lt_status=$lt_dlunknown
10299 cat > conftest.$ac_ext <<_LT_EOF
10300 #line $LINENO "configure"
10301 #include "confdefs.h"
10310 # define LT_DLGLOBAL RTLD_GLOBAL
10313 # define LT_DLGLOBAL DL_GLOBAL
10315 # define LT_DLGLOBAL 0
10319 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10320 find out it does not work in some platform. */
10321 #ifndef LT_DLLAZY_OR_NOW
10323 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10326 # define LT_DLLAZY_OR_NOW DL_LAZY
10329 # define LT_DLLAZY_OR_NOW RTLD_NOW
10332 # define LT_DLLAZY_OR_NOW DL_NOW
10334 # define LT_DLLAZY_OR_NOW 0
10341 /* When -fvisbility=hidden is used, assume the code has been annotated
10342 correspondingly for the symbols needed. */
10343 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10344 int fnord () __attribute__((visibility("default")));
10347 int fnord () { return 42; }
10350 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10351 int status = $lt_dlunknown;
10355 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10358 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10359 else puts (dlerror ());
10361 /* dlclose (self); */
10369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10370 (eval $ac_link) 2>&5
10372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10373 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10374 (./conftest; exit; ) >&5 2>/dev/null
10376 case x$lt_status in
10377 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10378 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10379 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10382 # compilation failed
10383 lt_cv_dlopen_self_static=no
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10391 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10394 CPPFLAGS="$save_CPPFLAGS"
10395 LDFLAGS="$save_LDFLAGS"
10400 case $lt_cv_dlopen_self in
10401 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10402 *) enable_dlopen_self=unknown ;;
10405 case $lt_cv_dlopen_self_static in
10406 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10407 *) enable_dlopen_self_static=unknown ;;
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10430 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10431 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10432 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10433 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10435 $as_echo "yes" >&6; }
10437 # FIXME - insert some real tests, host_os isn't really good enough
10440 if test -n "$STRIP" ; then
10441 striplib="$STRIP -x"
10442 old_striplib="$STRIP -S"
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10444 $as_echo "yes" >&6; }
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10447 $as_echo "no" >&6; }
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10452 $as_echo "no" >&6; }
10468 # Report which library types will actually be built
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10470 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10472 $as_echo "$can_build_shared" >&6; }
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10475 $as_echo_n "checking whether to build shared libraries... " >&6; }
10476 test "$can_build_shared" = "no" && enable_shared=no
10478 # On AIX, shared libraries and static libraries use the same namespace, and
10479 # are all built from PIC.
10482 test "$enable_shared" = yes && enable_static=no
10483 if test -n "$RANLIB"; then
10484 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10485 postinstall_cmds='$RANLIB $lib'
10490 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10491 test "$enable_shared" = yes && enable_static=no
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10496 $as_echo "$enable_shared" >&6; }
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10499 $as_echo_n "checking whether to build static libraries... " >&6; }
10500 # Make sure either enable_shared or enable_static is yes.
10501 test "$enable_shared" = yes || enable_static=yes
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10503 $as_echo "$enable_static" >&6; }
10510 ac_cpp='$CPP $CPPFLAGS'
10511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10529 ac_config_commands="$ac_config_commands libtool"
10534 # Only expand once:
10538 # Check whether --enable-shared was given.
10539 if test "${enable_shared+set}" = set; then :
10540 enableval=$enable_shared;
10547 # Check whether --enable-gettext was given.
10548 if test "${enable_gettext+set}" = set; then :
10549 enableval=$enable_gettext;
10556 # Check whether --enable-lib64 was given.
10557 if test "${enable_lib64+set}" = set; then :
10558 enableval=$enable_lib64;
10569 ac_cpp='$CPP $CPPFLAGS'
10570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10573 if test -n "$ac_tool_prefix"; then
10574 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10575 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10577 $as_echo_n "checking for $ac_word... " >&6; }
10578 if ${ac_cv_prog_CC+:} false; then :
10579 $as_echo_n "(cached) " >&6
10581 if test -n "$CC"; then
10582 ac_cv_prog_CC="$CC" # Let the user override the test.
10584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10585 for as_dir in $PATH
10588 test -z "$as_dir" && as_dir=.
10589 for ac_exec_ext in '' $ac_executable_extensions; do
10590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10591 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10602 if test -n "$CC"; then
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10604 $as_echo "$CC" >&6; }
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10607 $as_echo "no" >&6; }
10612 if test -z "$ac_cv_prog_CC"; then
10614 # Extract the first word of "gcc", so it can be a program name with args.
10615 set dummy gcc; ac_word=$2
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10617 $as_echo_n "checking for $ac_word... " >&6; }
10618 if ${ac_cv_prog_ac_ct_CC+:} false; then :
10619 $as_echo_n "(cached) " >&6
10621 if test -n "$ac_ct_CC"; then
10622 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10625 for as_dir in $PATH
10628 test -z "$as_dir" && as_dir=.
10629 for ac_exec_ext in '' $ac_executable_extensions; do
10630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10631 ac_cv_prog_ac_ct_CC="gcc"
10632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10641 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10642 if test -n "$ac_ct_CC"; then
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10644 $as_echo "$ac_ct_CC" >&6; }
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10647 $as_echo "no" >&6; }
10650 if test "x$ac_ct_CC" = x; then
10653 case $cross_compiling:$ac_tool_warned in
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10657 ac_tool_warned=yes ;;
10662 CC="$ac_cv_prog_CC"
10665 if test -z "$CC"; then
10666 if test -n "$ac_tool_prefix"; then
10667 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10668 set dummy ${ac_tool_prefix}cc; ac_word=$2
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10670 $as_echo_n "checking for $ac_word... " >&6; }
10671 if ${ac_cv_prog_CC+:} false; then :
10672 $as_echo_n "(cached) " >&6
10674 if test -n "$CC"; then
10675 ac_cv_prog_CC="$CC" # Let the user override the test.
10677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10678 for as_dir in $PATH
10681 test -z "$as_dir" && as_dir=.
10682 for ac_exec_ext in '' $ac_executable_extensions; do
10683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10684 ac_cv_prog_CC="${ac_tool_prefix}cc"
10685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10695 if test -n "$CC"; then
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10697 $as_echo "$CC" >&6; }
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700 $as_echo "no" >&6; }
10706 if test -z "$CC"; then
10707 # Extract the first word of "cc", so it can be a program name with args.
10708 set dummy cc; ac_word=$2
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10710 $as_echo_n "checking for $ac_word... " >&6; }
10711 if ${ac_cv_prog_CC+:} false; then :
10712 $as_echo_n "(cached) " >&6
10714 if test -n "$CC"; then
10715 ac_cv_prog_CC="$CC" # Let the user override the test.
10717 ac_prog_rejected=no
10718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10719 for as_dir in $PATH
10722 test -z "$as_dir" && as_dir=.
10723 for ac_exec_ext in '' $ac_executable_extensions; do
10724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10725 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10726 ac_prog_rejected=yes
10730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10737 if test $ac_prog_rejected = yes; then
10738 # We found a bogon in the path, so make sure we never use it.
10739 set dummy $ac_cv_prog_CC
10741 if test $# != 0; then
10742 # We chose a different compiler from the bogus one.
10743 # However, it has the same basename, so the bogon will be chosen
10744 # first if we set CC to just the basename; use the full file name.
10746 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10752 if test -n "$CC"; then
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10754 $as_echo "$CC" >&6; }
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10757 $as_echo "no" >&6; }
10762 if test -z "$CC"; then
10763 if test -n "$ac_tool_prefix"; then
10764 for ac_prog in cl.exe
10766 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10767 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10769 $as_echo_n "checking for $ac_word... " >&6; }
10770 if ${ac_cv_prog_CC+:} false; then :
10771 $as_echo_n "(cached) " >&6
10773 if test -n "$CC"; then
10774 ac_cv_prog_CC="$CC" # Let the user override the test.
10776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10777 for as_dir in $PATH
10780 test -z "$as_dir" && as_dir=.
10781 for ac_exec_ext in '' $ac_executable_extensions; do
10782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10783 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10794 if test -n "$CC"; then
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10796 $as_echo "$CC" >&6; }
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10799 $as_echo "no" >&6; }
10803 test -n "$CC" && break
10806 if test -z "$CC"; then
10808 for ac_prog in cl.exe
10810 # Extract the first word of "$ac_prog", so it can be a program name with args.
10811 set dummy $ac_prog; ac_word=$2
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10813 $as_echo_n "checking for $ac_word... " >&6; }
10814 if ${ac_cv_prog_ac_ct_CC+:} false; then :
10815 $as_echo_n "(cached) " >&6
10817 if test -n "$ac_ct_CC"; then
10818 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10821 for as_dir in $PATH
10824 test -z "$as_dir" && as_dir=.
10825 for ac_exec_ext in '' $ac_executable_extensions; do
10826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10827 ac_cv_prog_ac_ct_CC="$ac_prog"
10828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10837 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10838 if test -n "$ac_ct_CC"; then
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10840 $as_echo "$ac_ct_CC" >&6; }
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10843 $as_echo "no" >&6; }
10847 test -n "$ac_ct_CC" && break
10850 if test "x$ac_ct_CC" = x; then
10853 case $cross_compiling:$ac_tool_warned in
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10857 ac_tool_warned=yes ;;
10866 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10868 as_fn_error $? "no acceptable C compiler found in \$PATH
10869 See \`config.log' for more details" "$LINENO" 5; }
10871 # Provide some information about the compiler.
10872 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10875 for ac_option in --version -v -V -qversion; do
10876 { { ac_try="$ac_compiler $ac_option >&5"
10877 case "(($ac_try" in
10878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879 *) ac_try_echo=$ac_try;;
10881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10882 $as_echo "$ac_try_echo"; } >&5
10883 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10885 if test -s conftest.err; then
10887 ... rest of stderr output deleted ...
10888 10q' conftest.err >conftest.er1
10889 cat conftest.er1 >&5
10891 rm -f conftest.er1 conftest.err
10892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10893 test $ac_status = 0; }
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
10897 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
10898 if ${ac_cv_c_compiler_gnu+:} false; then :
10899 $as_echo_n "(cached) " >&6
10901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10902 /* end confdefs.h. */
10915 if ac_fn_c_try_compile "$LINENO"; then :
10916 ac_compiler_gnu=yes
10920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10921 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
10925 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
10926 if test $ac_compiler_gnu = yes; then
10931 ac_test_CFLAGS=${CFLAGS+set}
10932 ac_save_CFLAGS=$CFLAGS
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
10934 $as_echo_n "checking whether $CC accepts -g... " >&6; }
10935 if ${ac_cv_prog_cc_g+:} false; then :
10936 $as_echo_n "(cached) " >&6
10938 ac_save_c_werror_flag=$ac_c_werror_flag
10939 ac_c_werror_flag=yes
10942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943 /* end confdefs.h. */
10953 if ac_fn_c_try_compile "$LINENO"; then :
10954 ac_cv_prog_cc_g=yes
10957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10958 /* end confdefs.h. */
10968 if ac_fn_c_try_compile "$LINENO"; then :
10971 ac_c_werror_flag=$ac_save_c_werror_flag
10973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10974 /* end confdefs.h. */
10984 if ac_fn_c_try_compile "$LINENO"; then :
10985 ac_cv_prog_cc_g=yes
10987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10992 ac_c_werror_flag=$ac_save_c_werror_flag
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
10995 $as_echo "$ac_cv_prog_cc_g" >&6; }
10996 if test "$ac_test_CFLAGS" = set; then
10997 CFLAGS=$ac_save_CFLAGS
10998 elif test $ac_cv_prog_cc_g = yes; then
10999 if test "$GCC" = yes; then
11005 if test "$GCC" = yes; then
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11012 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11013 if ${ac_cv_prog_cc_c89+:} false; then :
11014 $as_echo_n "(cached) " >&6
11016 ac_cv_prog_cc_c89=no
11018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019 /* end confdefs.h. */
11020 #include <stdarg.h>
11022 #include <sys/types.h>
11023 #include <sys/stat.h>
11024 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11025 struct buf { int x; };
11026 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11027 static char *e (p, i)
11033 static char *f (char * (*g) (char **, int), char **p, ...)
11038 s = g (p, va_arg (v,int));
11043 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11044 function prototypes and stuff, but not '\xHH' hex character constants.
11045 These don't provoke an error unfortunately, instead are silently treated
11046 as 'x'. The following induces an error, until -std is added to get
11047 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11048 array size at least. It's necessary to write '\x00'==0 to get something
11049 that's true only with -std. */
11050 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11052 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11053 inside strings and character constants. */
11055 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11057 int test (int i, double x);
11058 struct s1 {int (*f) (int a);};
11059 struct s2 {int (*f) (double a);};
11060 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11066 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11071 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11072 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11074 CC="$ac_save_CC $ac_arg"
11075 if ac_fn_c_try_compile "$LINENO"; then :
11076 ac_cv_prog_cc_c89=$ac_arg
11078 rm -f core conftest.err conftest.$ac_objext
11079 test "x$ac_cv_prog_cc_c89" != "xno" && break
11081 rm -f conftest.$ac_ext
11086 case "x$ac_cv_prog_cc_c89" in
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11089 $as_echo "none needed" >&6; } ;;
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11092 $as_echo "unsupported" >&6; } ;;
11094 CC="$CC $ac_cv_prog_cc_c89"
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11096 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11098 if test "x$ac_cv_prog_cc_c89" != xno; then :
11103 ac_cpp='$CPP $CPPFLAGS'
11104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11110 pkg_version=${PKG_MAJOR}.${PKG_MINOR}.${PKG_REVISION}
11112 pkg_release=$PKG_BUILD
11113 test -z "$BUILD_VERSION" || pkg_release="$BUILD_VERSION"
11116 DEBUG=${DEBUG:-'-DDEBUG'} debug_build="$DEBUG"
11119 OPTIMIZER=${OPTIMIZER:-'-g -O2'}
11120 opt_build="$OPTIMIZER"
11123 MALLOCLIB=${MALLOCLIB:-''} malloc_lib="$MALLOCLIB"
11126 pkg_user=`id -u -n`
11127 test -z "$INSTALL_USER" || pkg_user="$INSTALL_USER"
11130 pkg_group=`id -g -n`
11131 test -z "$INSTALL_GROUP" || pkg_group="$INSTALL_GROUP"
11134 pkg_distribution=`uname -s`
11135 test -z "$DISTRIBUTION" || pkg_distribution="$DISTRIBUTION"
11138 pkg_platform=`uname -s | tr 'A-Z' 'a-z' | sed -e 's/irix64/irix/'`
11139 test -z "$PLATFORM" || pkg_platform="$PLATFORM"
11143 ac_cpp='$CPP $CPPFLAGS'
11144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11147 if test -n "$ac_tool_prefix"; then
11148 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11149 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11151 $as_echo_n "checking for $ac_word... " >&6; }
11152 if ${ac_cv_prog_CC+:} false; then :
11153 $as_echo_n "(cached) " >&6
11155 if test -n "$CC"; then
11156 ac_cv_prog_CC="$CC" # Let the user override the test.
11158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11159 for as_dir in $PATH
11162 test -z "$as_dir" && as_dir=.
11163 for ac_exec_ext in '' $ac_executable_extensions; do
11164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11165 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11176 if test -n "$CC"; then
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11178 $as_echo "$CC" >&6; }
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181 $as_echo "no" >&6; }
11186 if test -z "$ac_cv_prog_CC"; then
11188 # Extract the first word of "gcc", so it can be a program name with args.
11189 set dummy gcc; ac_word=$2
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11191 $as_echo_n "checking for $ac_word... " >&6; }
11192 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11193 $as_echo_n "(cached) " >&6
11195 if test -n "$ac_ct_CC"; then
11196 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11199 for as_dir in $PATH
11202 test -z "$as_dir" && as_dir=.
11203 for ac_exec_ext in '' $ac_executable_extensions; do
11204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11205 ac_cv_prog_ac_ct_CC="gcc"
11206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11215 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11216 if test -n "$ac_ct_CC"; then
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11218 $as_echo "$ac_ct_CC" >&6; }
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11221 $as_echo "no" >&6; }
11224 if test "x$ac_ct_CC" = x; then
11227 case $cross_compiling:$ac_tool_warned in
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11231 ac_tool_warned=yes ;;
11236 CC="$ac_cv_prog_CC"
11239 if test -z "$CC"; then
11240 if test -n "$ac_tool_prefix"; then
11241 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11242 set dummy ${ac_tool_prefix}cc; ac_word=$2
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11244 $as_echo_n "checking for $ac_word... " >&6; }
11245 if ${ac_cv_prog_CC+:} false; then :
11246 $as_echo_n "(cached) " >&6
11248 if test -n "$CC"; then
11249 ac_cv_prog_CC="$CC" # Let the user override the test.
11251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11252 for as_dir in $PATH
11255 test -z "$as_dir" && as_dir=.
11256 for ac_exec_ext in '' $ac_executable_extensions; do
11257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11258 ac_cv_prog_CC="${ac_tool_prefix}cc"
11259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11269 if test -n "$CC"; then
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11271 $as_echo "$CC" >&6; }
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11274 $as_echo "no" >&6; }
11280 if test -z "$CC"; then
11281 # Extract the first word of "cc", so it can be a program name with args.
11282 set dummy cc; ac_word=$2
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11284 $as_echo_n "checking for $ac_word... " >&6; }
11285 if ${ac_cv_prog_CC+:} false; then :
11286 $as_echo_n "(cached) " >&6
11288 if test -n "$CC"; then
11289 ac_cv_prog_CC="$CC" # Let the user override the test.
11291 ac_prog_rejected=no
11292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11293 for as_dir in $PATH
11296 test -z "$as_dir" && as_dir=.
11297 for ac_exec_ext in '' $ac_executable_extensions; do
11298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11299 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11300 ac_prog_rejected=yes
11304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11311 if test $ac_prog_rejected = yes; then
11312 # We found a bogon in the path, so make sure we never use it.
11313 set dummy $ac_cv_prog_CC
11315 if test $# != 0; then
11316 # We chose a different compiler from the bogus one.
11317 # However, it has the same basename, so the bogon will be chosen
11318 # first if we set CC to just the basename; use the full file name.
11320 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11326 if test -n "$CC"; then
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11328 $as_echo "$CC" >&6; }
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11331 $as_echo "no" >&6; }
11336 if test -z "$CC"; then
11337 if test -n "$ac_tool_prefix"; then
11338 for ac_prog in cl.exe
11340 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11341 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11343 $as_echo_n "checking for $ac_word... " >&6; }
11344 if ${ac_cv_prog_CC+:} false; then :
11345 $as_echo_n "(cached) " >&6
11347 if test -n "$CC"; then
11348 ac_cv_prog_CC="$CC" # Let the user override the test.
11350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11351 for as_dir in $PATH
11354 test -z "$as_dir" && as_dir=.
11355 for ac_exec_ext in '' $ac_executable_extensions; do
11356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11357 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11368 if test -n "$CC"; then
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11370 $as_echo "$CC" >&6; }
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11373 $as_echo "no" >&6; }
11377 test -n "$CC" && break
11380 if test -z "$CC"; then
11382 for ac_prog in cl.exe
11384 # Extract the first word of "$ac_prog", so it can be a program name with args.
11385 set dummy $ac_prog; ac_word=$2
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11387 $as_echo_n "checking for $ac_word... " >&6; }
11388 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11389 $as_echo_n "(cached) " >&6
11391 if test -n "$ac_ct_CC"; then
11392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11395 for as_dir in $PATH
11398 test -z "$as_dir" && as_dir=.
11399 for ac_exec_ext in '' $ac_executable_extensions; do
11400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11401 ac_cv_prog_ac_ct_CC="$ac_prog"
11402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11411 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11412 if test -n "$ac_ct_CC"; then
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11414 $as_echo "$ac_ct_CC" >&6; }
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11417 $as_echo "no" >&6; }
11421 test -n "$ac_ct_CC" && break
11424 if test "x$ac_ct_CC" = x; then
11427 case $cross_compiling:$ac_tool_warned in
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11431 ac_tool_warned=yes ;;
11440 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11442 as_fn_error $? "no acceptable C compiler found in \$PATH
11443 See \`config.log' for more details" "$LINENO" 5; }
11445 # Provide some information about the compiler.
11446 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11449 for ac_option in --version -v -V -qversion; do
11450 { { ac_try="$ac_compiler $ac_option >&5"
11451 case "(($ac_try" in
11452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11453 *) ac_try_echo=$ac_try;;
11455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11456 $as_echo "$ac_try_echo"; } >&5
11457 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11459 if test -s conftest.err; then
11461 ... rest of stderr output deleted ...
11462 10q' conftest.err >conftest.er1
11463 cat conftest.er1 >&5
11465 rm -f conftest.er1 conftest.err
11466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11467 test $ac_status = 0; }
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11471 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11472 if ${ac_cv_c_compiler_gnu+:} false; then :
11473 $as_echo_n "(cached) " >&6
11475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11476 /* end confdefs.h. */
11489 if ac_fn_c_try_compile "$LINENO"; then :
11490 ac_compiler_gnu=yes
11494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11495 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11499 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11500 if test $ac_compiler_gnu = yes; then
11505 ac_test_CFLAGS=${CFLAGS+set}
11506 ac_save_CFLAGS=$CFLAGS
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11508 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11509 if ${ac_cv_prog_cc_g+:} false; then :
11510 $as_echo_n "(cached) " >&6
11512 ac_save_c_werror_flag=$ac_c_werror_flag
11513 ac_c_werror_flag=yes
11516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11517 /* end confdefs.h. */
11527 if ac_fn_c_try_compile "$LINENO"; then :
11528 ac_cv_prog_cc_g=yes
11531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11532 /* end confdefs.h. */
11542 if ac_fn_c_try_compile "$LINENO"; then :
11545 ac_c_werror_flag=$ac_save_c_werror_flag
11547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11548 /* end confdefs.h. */
11558 if ac_fn_c_try_compile "$LINENO"; then :
11559 ac_cv_prog_cc_g=yes
11561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11566 ac_c_werror_flag=$ac_save_c_werror_flag
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11569 $as_echo "$ac_cv_prog_cc_g" >&6; }
11570 if test "$ac_test_CFLAGS" = set; then
11571 CFLAGS=$ac_save_CFLAGS
11572 elif test $ac_cv_prog_cc_g = yes; then
11573 if test "$GCC" = yes; then
11579 if test "$GCC" = yes; then
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11586 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11587 if ${ac_cv_prog_cc_c89+:} false; then :
11588 $as_echo_n "(cached) " >&6
11590 ac_cv_prog_cc_c89=no
11592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11593 /* end confdefs.h. */
11594 #include <stdarg.h>
11596 #include <sys/types.h>
11597 #include <sys/stat.h>
11598 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11599 struct buf { int x; };
11600 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11601 static char *e (p, i)
11607 static char *f (char * (*g) (char **, int), char **p, ...)
11612 s = g (p, va_arg (v,int));
11617 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11618 function prototypes and stuff, but not '\xHH' hex character constants.
11619 These don't provoke an error unfortunately, instead are silently treated
11620 as 'x'. The following induces an error, until -std is added to get
11621 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11622 array size at least. It's necessary to write '\x00'==0 to get something
11623 that's true only with -std. */
11624 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11626 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11627 inside strings and character constants. */
11629 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11631 int test (int i, double x);
11632 struct s1 {int (*f) (int a);};
11633 struct s2 {int (*f) (double a);};
11634 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11640 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11645 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11646 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11648 CC="$ac_save_CC $ac_arg"
11649 if ac_fn_c_try_compile "$LINENO"; then :
11650 ac_cv_prog_cc_c89=$ac_arg
11652 rm -f core conftest.err conftest.$ac_objext
11653 test "x$ac_cv_prog_cc_c89" != "xno" && break
11655 rm -f conftest.$ac_ext
11660 case "x$ac_cv_prog_cc_c89" in
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11663 $as_echo "none needed" >&6; } ;;
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11666 $as_echo "unsupported" >&6; } ;;
11668 CC="$CC $ac_cv_prog_cc_c89"
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11670 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11672 if test "x$ac_cv_prog_cc_c89" != xno; then :
11677 ac_cpp='$CPP $CPPFLAGS'
11678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11684 if test -z ""$cc""; then
11686 echo FATAL ERROR: cc does not seem to be installed.
11687 echo attr cannot be built without a working C compiler installation.
11692 search_path="$PATH$PATH_SEPARATOR/usr/freeware/bin$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR/usr/local/bin"
11694 for ac_prog in gmake make
11696 # Extract the first word of "$ac_prog", so it can be a program name with args.
11697 set dummy $ac_prog; ac_word=$2
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11699 $as_echo_n "checking for $ac_word... " >&6; }
11700 if ${ac_cv_path_MAKE+:} false; then :
11701 $as_echo_n "(cached) " >&6
11705 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
11708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11709 for as_dir in $search_path
11712 test -z "$as_dir" && as_dir=.
11713 for ac_exec_ext in '' $ac_executable_extensions; do
11714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11715 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
11716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11726 MAKE=$ac_cv_path_MAKE
11727 if test -n "$MAKE"; then
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
11729 $as_echo "$MAKE" >&6; }
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732 $as_echo "no" >&6; }
11736 test -n "$MAKE" && break
11741 if test -z ""$make""; then
11743 echo FATAL ERROR: make does not seem to be installed.
11744 echo attr cannot be built without a working GNU make installation.
11749 # Extract the first word of "tar", so it can be a program name with args.
11750 set dummy tar; ac_word=$2
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11752 $as_echo_n "checking for $ac_word... " >&6; }
11753 if ${ac_cv_path_TAR+:} false; then :
11754 $as_echo_n "(cached) " >&6
11758 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11762 for as_dir in $search_path
11765 test -z "$as_dir" && as_dir=.
11766 for ac_exec_ext in '' $ac_executable_extensions; do
11767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11768 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11779 TAR=$ac_cv_path_TAR
11780 if test -n "$TAR"; then
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11782 $as_echo "$TAR" >&6; }
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11785 $as_echo "no" >&6; }
11792 # Extract the first word of "gzip", so it can be a program name with args.
11793 set dummy gzip; ac_word=$2
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11795 $as_echo_n "checking for $ac_word... " >&6; }
11796 if ${ac_cv_path_ZIP+:} false; then :
11797 $as_echo_n "(cached) " >&6
11801 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
11804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11805 for as_dir in $search_path
11808 test -z "$as_dir" && as_dir=.
11809 for ac_exec_ext in '' $ac_executable_extensions; do
11810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11811 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
11812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11822 ZIP=$ac_cv_path_ZIP
11823 if test -n "$ZIP"; then
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
11825 $as_echo "$ZIP" >&6; }
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11828 $as_echo "no" >&6; }
11835 # Extract the first word of "makedepend", so it can be a program name with args.
11836 set dummy makedepend; ac_word=$2
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11838 $as_echo_n "checking for $ac_word... " >&6; }
11839 if ${ac_cv_path_MAKEDEPEND+:} false; then :
11840 $as_echo_n "(cached) " >&6
11842 case $MAKEDEPEND in
11844 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
11847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11848 for as_dir in $PATH
11851 test -z "$as_dir" && as_dir=.
11852 for ac_exec_ext in '' $ac_executable_extensions; do
11853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11854 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
11855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11862 test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND="/bin/true"
11866 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
11867 if test -n "$MAKEDEPEND"; then
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
11869 $as_echo "$MAKEDEPEND" >&6; }
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11872 $as_echo "no" >&6; }
11876 makedepend=$MAKEDEPEND
11879 # Extract the first word of "awk", so it can be a program name with args.
11880 set dummy awk; ac_word=$2
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11882 $as_echo_n "checking for $ac_word... " >&6; }
11883 if ${ac_cv_path_AWK+:} false; then :
11884 $as_echo_n "(cached) " >&6
11888 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11892 for as_dir in $search_path
11895 test -z "$as_dir" && as_dir=.
11896 for ac_exec_ext in '' $ac_executable_extensions; do
11897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11898 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11909 AWK=$ac_cv_path_AWK
11910 if test -n "$AWK"; then
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11912 $as_echo "$AWK" >&6; }
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915 $as_echo "no" >&6; }
11922 # Extract the first word of "sed", so it can be a program name with args.
11923 set dummy sed; ac_word=$2
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11925 $as_echo_n "checking for $ac_word... " >&6; }
11926 if ${ac_cv_path_SED+:} false; then :
11927 $as_echo_n "(cached) " >&6
11931 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11935 for as_dir in $search_path
11938 test -z "$as_dir" && as_dir=.
11939 for ac_exec_ext in '' $ac_executable_extensions; do
11940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11941 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11952 SED=$ac_cv_path_SED
11953 if test -n "$SED"; then
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11955 $as_echo "$SED" >&6; }
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11958 $as_echo "no" >&6; }
11965 # Extract the first word of "echo", so it can be a program name with args.
11966 set dummy echo; ac_word=$2
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11968 $as_echo_n "checking for $ac_word... " >&6; }
11969 if ${ac_cv_path_ECHO+:} false; then :
11970 $as_echo_n "(cached) " >&6
11974 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
11977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11978 for as_dir in $search_path
11981 test -z "$as_dir" && as_dir=.
11982 for ac_exec_ext in '' $ac_executable_extensions; do
11983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11984 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
11985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11995 ECHO=$ac_cv_path_ECHO
11996 if test -n "$ECHO"; then
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
11998 $as_echo "$ECHO" >&6; }
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12001 $as_echo "no" >&6; }
12008 # Extract the first word of "sort", so it can be a program name with args.
12009 set dummy sort; ac_word=$2
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12011 $as_echo_n "checking for $ac_word... " >&6; }
12012 if ${ac_cv_path_SORT+:} false; then :
12013 $as_echo_n "(cached) " >&6
12017 ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
12020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12021 for as_dir in $search_path
12024 test -z "$as_dir" && as_dir=.
12025 for ac_exec_ext in '' $ac_executable_extensions; do
12026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12027 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
12028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12038 SORT=$ac_cv_path_SORT
12039 if test -n "$SORT"; then
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
12041 $as_echo "$SORT" >&6; }
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12044 $as_echo "no" >&6; }
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12052 $as_echo_n "checking whether ln -s works... " >&6; }
12054 if test "$LN_S" = "ln -s"; then
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12056 $as_echo "yes" >&6; }
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12059 $as_echo "no, using $LN_S" >&6; }
12063 if test "$enable_gettext" = yes; then
12064 # Extract the first word of "msgfmt", so it can be a program name with args.
12065 set dummy msgfmt; ac_word=$2
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12067 $as_echo_n "checking for $ac_word... " >&6; }
12068 if ${ac_cv_path_MSGFMT+:} false; then :
12069 $as_echo_n "(cached) " >&6
12073 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12077 for as_dir in $search_path
12080 test -z "$as_dir" && as_dir=.
12081 for ac_exec_ext in '' $ac_executable_extensions; do
12082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12083 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
12084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12094 MSGFMT=$ac_cv_path_MSGFMT
12095 if test -n "$MSGFMT"; then
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12097 $as_echo "$MSGFMT" >&6; }
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12100 $as_echo "no" >&6; }
12106 if test -z ""$msgfmt""; then
12108 echo FATAL ERROR: msgfmt does not seem to be installed.
12109 echo attr cannot be built without a working gettext installation.
12114 # Extract the first word of "msgmerge", so it can be a program name with args.
12115 set dummy msgmerge; ac_word=$2
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12117 $as_echo_n "checking for $ac_word... " >&6; }
12118 if ${ac_cv_path_MSGMERGE+:} false; then :
12119 $as_echo_n "(cached) " >&6
12123 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12127 for as_dir in $search_path
12130 test -z "$as_dir" && as_dir=.
12131 for ac_exec_ext in '' $ac_executable_extensions; do
12132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12133 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
12134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12144 MSGMERGE=$ac_cv_path_MSGMERGE
12145 if test -n "$MSGMERGE"; then
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12147 $as_echo "$MSGMERGE" >&6; }
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150 $as_echo "no" >&6; }
12156 if test -z ""$msgmerge""; then
12158 echo FATAL ERROR: msgmerge does not seem to be installed.
12159 echo attr cannot be built without a working gettext installation.
12164 # Extract the first word of "xgettext", so it can be a program name with args.
12165 set dummy xgettext; ac_word=$2
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12167 $as_echo_n "checking for $ac_word... " >&6; }
12168 if ${ac_cv_path_XGETTEXT+:} false; then :
12169 $as_echo_n "(cached) " >&6
12173 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12177 for as_dir in $search_path
12180 test -z "$as_dir" && as_dir=.
12181 for ac_exec_ext in '' $ac_executable_extensions; do
12182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12183 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
12184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12194 XGETTEXT=$ac_cv_path_XGETTEXT
12195 if test -n "$XGETTEXT"; then
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12197 $as_echo "$XGETTEXT" >&6; }
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12200 $as_echo "no" >&6; }
12206 if test -z ""$xgettext""; then
12208 echo FATAL ERROR: xgettext does not seem to be installed.
12209 echo attr cannot be built without a working gettext installation.
12215 $as_echo "#define ENABLE_GETTEXT 1" >>confdefs.h
12219 # Extract the first word of "rpm", so it can be a program name with args.
12220 set dummy rpm; ac_word=$2
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12222 $as_echo_n "checking for $ac_word... " >&6; }
12223 if ${ac_cv_path_RPM+:} false; then :
12224 $as_echo_n "(cached) " >&6
12228 ac_cv_path_RPM="$RPM" # Let the user override the test with a path.
12231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12232 for as_dir in $search_path
12235 test -z "$as_dir" && as_dir=.
12236 for ac_exec_ext in '' $ac_executable_extensions; do
12237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12238 ac_cv_path_RPM="$as_dir/$ac_word$ac_exec_ext"
12239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12249 RPM=$ac_cv_path_RPM
12250 if test -n "$RPM"; then
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
12252 $as_echo "$RPM" >&6; }
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12255 $as_echo "no" >&6; }
12263 test -n "$RPM" && test -x "$RPM" && rpm_version=`$RPM --version \
12264 | awk '{print $NF}' | awk -F. '{V=1; print $V}'`
12266 if test $rpm_version -ge 4; then
12267 # Extract the first word of "rpmbuild", so it can be a program name with args.
12268 set dummy rpmbuild; ac_word=$2
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12270 $as_echo_n "checking for $ac_word... " >&6; }
12271 if ${ac_cv_path_RPMBUILD+:} false; then :
12272 $as_echo_n "(cached) " >&6
12276 ac_cv_path_RPMBUILD="$RPMBUILD" # Let the user override the test with a path.
12279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280 for as_dir in $PATH
12283 test -z "$as_dir" && as_dir=.
12284 for ac_exec_ext in '' $ac_executable_extensions; do
12285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12286 ac_cv_path_RPMBUILD="$as_dir/$ac_word$ac_exec_ext"
12287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12297 RPMBUILD=$ac_cv_path_RPMBUILD
12298 if test -n "$RPMBUILD"; then
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMBUILD" >&5
12300 $as_echo "$RPMBUILD" >&6; }
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303 $as_echo "no" >&6; }
12313 have_zipped_manpages=false
12314 for d in ${prefix}/share/man ${prefix}/man ; do
12315 if test -f $d/man1/man.1.gz
12317 have_zipped_manpages=true
12324 enable_lib64="$enable_lib64"
12326 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12327 if test "$enable_lib64" = "yes" -a -n "$searchpath"; then
12328 save_IFS="${IFS= }"; IFS=":"
12329 for searchdir in $searchpath; do
12330 if test -d "$searchdir"; then
12331 case "$searchdir" in
12332 */lib64/ | */lib64 ) libdirsuffix=64 ;;
12333 *) searchdir=`cd "$searchdir" && pwd`
12334 case "$searchdir" in
12335 */lib64 ) libdirsuffix=64 ;;
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12346 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12347 if ${ac_cv_c_const+:} false; then :
12348 $as_echo_n "(cached) " >&6
12350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12351 /* end confdefs.h. */
12356 /* FIXME: Include the comments suggested by Paul. */
12357 #ifndef __cplusplus
12358 /* Ultrix mips cc rejects this. */
12359 typedef int charset[2];
12361 /* SunOS 4.1.1 cc rejects this. */
12362 char const *const *pcpcc;
12364 /* NEC SVR4.0.2 mips cc rejects this. */
12365 struct point {int x, y;};
12366 static struct point const zero = {0,0};
12367 /* AIX XL C 1.02.0.0 rejects this.
12368 It does not let you subtract one const X* pointer from another in
12369 an arm of an if-expression whose if-part is not a constant
12371 const char *g = "string";
12372 pcpcc = &g + (g ? g-g : 0);
12373 /* HPUX 7.0 cc rejects these. */
12375 ppc = (char**) pcpcc;
12376 pcpcc = (char const *const *) ppc;
12377 { /* SCO 3.2v4 cc rejects this. */
12379 char const *s = 0 ? (char *) 0 : (char const *) 0;
12384 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12385 int x[] = {25, 17};
12386 const int *foo = &x[0];
12389 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12390 typedef const int *iptr;
12394 { /* AIX XL C 1.02.0.0 rejects this saying
12395 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12396 struct s { int j; const int *ap[3]; };
12397 struct s *b; b->j = 5;
12399 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12400 const int foo = 10;
12401 if (!foo) return 0;
12403 return !cs[0] && !zero.x;
12410 if ac_fn_c_try_compile "$LINENO"; then :
12415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12418 $as_echo "$ac_cv_c_const" >&6; }
12419 if test $ac_cv_c_const = no; then
12421 $as_echo "#define const /**/" >>confdefs.h
12425 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
12426 if test "x$ac_cv_type_mode_t" = xyes; then :
12430 cat >>confdefs.h <<_ACEOF
12436 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12437 if test "x$ac_cv_type_size_t" = xyes; then :
12441 cat >>confdefs.h <<_ACEOF
12442 #define size_t unsigned int
12447 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12448 # for constant arguments. Useless!
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12450 $as_echo_n "checking for working alloca.h... " >&6; }
12451 if ${ac_cv_working_alloca_h+:} false; then :
12452 $as_echo_n "(cached) " >&6
12454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12455 /* end confdefs.h. */
12456 #include <alloca.h>
12460 char *p = (char *) alloca (2 * sizeof (int));
12466 if ac_fn_c_try_link "$LINENO"; then :
12467 ac_cv_working_alloca_h=yes
12469 ac_cv_working_alloca_h=no
12471 rm -f core conftest.err conftest.$ac_objext \
12472 conftest$ac_exeext conftest.$ac_ext
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12475 $as_echo "$ac_cv_working_alloca_h" >&6; }
12476 if test $ac_cv_working_alloca_h = yes; then
12478 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12483 $as_echo_n "checking for alloca... " >&6; }
12484 if ${ac_cv_func_alloca_works+:} false; then :
12485 $as_echo_n "(cached) " >&6
12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h. */
12490 # define alloca __builtin_alloca
12493 # include <malloc.h>
12494 # define alloca _alloca
12496 # ifdef HAVE_ALLOCA_H
12497 # include <alloca.h>
12502 # ifndef alloca /* predefined by HP cc +Olibcalls */
12503 void *alloca (size_t);
12513 char *p = (char *) alloca (1);
12519 if ac_fn_c_try_link "$LINENO"; then :
12520 ac_cv_func_alloca_works=yes
12522 ac_cv_func_alloca_works=no
12524 rm -f core conftest.err conftest.$ac_objext \
12525 conftest$ac_exeext conftest.$ac_ext
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12528 $as_echo "$ac_cv_func_alloca_works" >&6; }
12530 if test $ac_cv_func_alloca_works = yes; then
12532 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12535 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12536 # that cause trouble. Some versions do not even contain alloca or
12537 # contain a buggy version. If you still want to use their alloca,
12538 # use ar to extract alloca.o from them instead of compiling alloca.c.
12540 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12542 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12546 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12547 if ${ac_cv_os_cray+:} false; then :
12548 $as_echo_n "(cached) " >&6
12550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12551 /* end confdefs.h. */
12552 #if defined CRAY && ! defined CRAY2
12559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12560 $EGREP "webecray" >/dev/null 2>&1; then :
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12569 $as_echo "$ac_cv_os_cray" >&6; }
12570 if test $ac_cv_os_cray = yes; then
12571 for ac_func in _getb67 GETB67 getb67; do
12572 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12573 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12574 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12576 cat >>confdefs.h <<_ACEOF
12577 #define CRAY_STACKSEG_END $ac_func
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12587 $as_echo_n "checking stack direction for C alloca... " >&6; }
12588 if ${ac_cv_c_stack_direction+:} false; then :
12589 $as_echo_n "(cached) " >&6
12591 if test "$cross_compiling" = yes; then :
12592 ac_cv_c_stack_direction=0
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12596 $ac_includes_default
12598 find_stack_direction ()
12600 static char *addr = 0;
12605 return find_stack_direction ();
12608 return (&dummy > addr) ? 1 : -1;
12614 return find_stack_direction () < 0;
12617 if ac_fn_c_try_run "$LINENO"; then :
12618 ac_cv_c_stack_direction=1
12620 ac_cv_c_stack_direction=-1
12622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12623 conftest.$ac_objext conftest.beam conftest.$ac_ext
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12628 $as_echo "$ac_cv_c_stack_direction" >&6; }
12629 cat >>confdefs.h <<_ACEOF
12630 #define STACK_DIRECTION $ac_cv_c_stack_direction
12637 ac_config_files="$ac_config_files include/builddefs"
12639 cat >confcache <<\_ACEOF
12640 # This file is a shell script that caches the results of configure
12641 # tests run on this system so they can be shared between configure
12642 # scripts and configure runs, see configure's option --config-cache.
12643 # It is not useful on other systems. If it contains results you don't
12644 # want to keep, you may remove or edit it.
12646 # config.status only pays attention to the cache file if you give it
12647 # the --recheck option to rerun configure.
12649 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12650 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12651 # following values.
12655 # The following way of writing the cache mishandles newlines in values,
12656 # but we know of no workaround that is simple, portable, and efficient.
12657 # So, we kill variables containing newlines.
12658 # Ultrix sh set writes to stderr and can't be redirected directly,
12659 # and sets the high bit in the cache file unless we assign to the vars.
12661 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12662 eval ac_val=\$$ac_var
12666 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12667 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12670 _ | IFS | as_nl) ;; #(
12671 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12672 *) { eval $ac_var=; unset $ac_var;} ;;
12678 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12679 *${as_nl}ac_space=\ *)
12680 # `set' does not quote correctly, so add quotes: double-quote
12681 # substitution turns \\\\ into \\, and sed turns \\ into \.
12684 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12687 # `set' quotes correctly as required by POSIX, so do not add quotes.
12688 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12697 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12699 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12701 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12702 if test -w "$cache_file"; then
12703 if test "x$cache_file" != "x/dev/null"; then
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12705 $as_echo "$as_me: updating cache $cache_file" >&6;}
12706 if test ! -f "$cache_file" || test -h "$cache_file"; then
12707 cat confcache >"$cache_file"
12709 case $cache_file in #(
12711 mv -f confcache "$cache_file"$$ &&
12712 mv -f "$cache_file"$$ "$cache_file" ;; #(
12714 mv -f confcache "$cache_file" ;;
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12720 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12725 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12726 # Let make expand exec_prefix.
12727 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12729 DEFS=-DHAVE_CONFIG_H
12734 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12735 # 1. Remove the extension, and $U if already installed.
12736 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12737 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12738 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12739 # will be set to the directory where LIBOBJS objects are built.
12740 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12741 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12743 LIBOBJS=$ac_libobjs
12745 LTLIBOBJS=$ac_ltlibobjs
12749 : "${CONFIG_STATUS=./config.status}"
12751 ac_clean_files_save=$ac_clean_files
12752 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12754 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12756 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12758 # Generated by $as_me.
12759 # Run this file to recreate the current configuration.
12760 # Compiler output produced by configure, useful for debugging
12761 # configure, is in config.log if it exists.
12764 ac_cs_recheck=false
12767 SHELL=\${CONFIG_SHELL-$SHELL}
12770 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12771 ## -------------------- ##
12772 ## M4sh Initialization. ##
12773 ## -------------------- ##
12775 # Be more Bourne compatible
12776 DUALCASE=1; export DUALCASE # for MKS sh
12777 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12780 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12781 # is contrary to our usage. Disable this feature.
12782 alias -g '${1+"$@"}'='"$@"'
12783 setopt NO_GLOB_SUBST
12785 case `(set -o) 2>/dev/null` in #(
12797 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12798 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12799 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12800 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12801 # Prefer a ksh shell builtin over an external printf program on Solaris,
12802 # but without wasting forks for bash or zsh.
12803 if test -z "$BASH_VERSION$ZSH_VERSION" \
12804 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12805 as_echo='print -r --'
12806 as_echo_n='print -rn --'
12807 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12808 as_echo='printf %s\n'
12809 as_echo_n='printf %s'
12811 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12812 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12813 as_echo_n='/usr/ucb/echo -n'
12815 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12816 as_echo_n_body='eval
12820 expr "X$arg" : "X\\(.*\\)$as_nl";
12821 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12823 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12825 export as_echo_n_body
12826 as_echo_n='sh -c $as_echo_n_body as_echo'
12828 export as_echo_body
12829 as_echo='sh -c $as_echo_body as_echo'
12832 # The user is always right.
12833 if test "${PATH_SEPARATOR+set}" != set; then
12835 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12836 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12843 # We need space, tab and new line, in precisely that order. Quoting is
12844 # there to prevent editors from complaining about space-tab.
12845 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12846 # splitting by setting IFS to empty value.)
12849 # Find who we are. Look in the path if we contain no directory separator.
12852 *[\\/]* ) as_myself=$0 ;;
12853 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12854 for as_dir in $PATH
12857 test -z "$as_dir" && as_dir=.
12858 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12864 # We did not find ourselves, most probably we were run as `sh COMMAND'
12865 # in which case we are not to be found in the path.
12866 if test "x$as_myself" = x; then
12869 if test ! -f "$as_myself"; then
12870 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12874 # Unset variables that we do not need and which cause bugs (e.g. in
12875 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12876 # suppresses any "Segmentation fault" message there. '((' could
12877 # trigger a bug in pdksh 5.2.14.
12878 for as_var in BASH_ENV ENV MAIL MAILPATH
12879 do eval test x\${$as_var+set} = xset \
12880 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12893 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12896 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12897 # ----------------------------------------
12898 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12899 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12900 # script with STATUS, using 1 if that was 0.
12903 as_status=$1; test $as_status -eq 0 && as_status=1
12905 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12906 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12908 $as_echo "$as_me: error: $2" >&2
12909 as_fn_exit $as_status
12913 # as_fn_set_status STATUS
12914 # -----------------------
12915 # Set $? to STATUS, without forking.
12916 as_fn_set_status ()
12919 } # as_fn_set_status
12921 # as_fn_exit STATUS
12922 # -----------------
12923 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12927 as_fn_set_status $1
12933 # Portably unset VAR.
12936 { eval $1=; unset $1;}
12938 as_unset=as_fn_unset
12939 # as_fn_append VAR VALUE
12940 # ----------------------
12941 # Append the text in VALUE to the end of the definition contained in VAR. Take
12942 # advantage of any shell optimizations that allow amortized linear growth over
12943 # repeated appends, instead of the typical quadratic growth present in naive
12945 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12946 eval 'as_fn_append ()
12957 # as_fn_arith ARG...
12958 # ------------------
12959 # Perform arithmetic evaluation on the ARGs, and store the result in the
12960 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12961 # must be portable across $(()) and expr.
12962 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12963 eval 'as_fn_arith ()
12970 as_val=`expr "$@" || test $? -eq 1`
12975 if expr a : '\(a\)' >/dev/null 2>&1 &&
12976 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12982 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12983 as_basename=basename
12988 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12994 as_me=`$as_basename -- "$0" ||
12995 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12996 X"$0" : 'X\(//\)$' \| \
12997 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12999 sed '/^.*\/\([^/][^/]*\)\/*$/{
13013 # Avoid depending upon Character Ranges.
13014 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13015 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13016 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13017 as_cr_digits='0123456789'
13018 as_cr_alnum=$as_cr_Letters$as_cr_digits
13020 ECHO_C= ECHO_N= ECHO_T=
13021 case `echo -n x` in #(((((
13023 case `echo 'xy\c'` in
13024 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13026 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13033 rm -f conf$$ conf$$.exe conf$$.file
13034 if test -d conf$$.dir; then
13035 rm -f conf$$.dir/conf$$.file
13038 mkdir conf$$.dir 2>/dev/null
13040 if (echo >conf$$.file) 2>/dev/null; then
13041 if ln -s conf$$.file conf$$ 2>/dev/null; then
13043 # ... but there are two gotchas:
13044 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13045 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13046 # In both cases, we have to default to `cp -p'.
13047 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13049 elif ln conf$$.file conf$$ 2>/dev/null; then
13057 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13058 rmdir conf$$.dir 2>/dev/null
13063 # Create "$as_dir" as a directory, including parents if necessary.
13068 -*) as_dir=./$as_dir;;
13070 test -d "$as_dir" || eval $as_mkdir_p || {
13074 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13075 *) as_qdir=$as_dir;;
13077 as_dirs="'$as_qdir' $as_dirs"
13078 as_dir=`$as_dirname -- "$as_dir" ||
13079 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13080 X"$as_dir" : 'X\(//\)[^/]' \| \
13081 X"$as_dir" : 'X\(//\)$' \| \
13082 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13083 $as_echo X"$as_dir" |
13084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13088 /^X\(\/\/\)[^/].*/{
13101 test -d "$as_dir" && break
13103 test -z "$as_dirs" || eval "mkdir $as_dirs"
13104 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13108 if mkdir -p . 2>/dev/null; then
13109 as_mkdir_p='mkdir -p "$as_dir"'
13111 test -d ./-p && rmdir ./-p
13115 if test -x / >/dev/null 2>&1; then
13116 as_test_x='test -x'
13118 if ls -dL / >/dev/null 2>&1; then
13125 if test -d "$1"; then
13131 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13132 ???[sx]*):;;*)false;;esac;fi
13136 as_executable_p=$as_test_x
13138 # Sed expression to map a string onto a valid CPP name.
13139 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13141 # Sed expression to map a string onto a valid variable name.
13142 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13146 ## ----------------------------------- ##
13147 ## Main body of $CONFIG_STATUS script. ##
13148 ## ----------------------------------- ##
13150 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13153 # Save the log message, to keep $0 and so on meaningful, and to
13154 # report actual input values of CONFIG_FILES etc. instead of their
13155 # values after options handling.
13157 This file was extended by $as_me, which was
13158 generated by GNU Autoconf 2.68. Invocation command line was
13160 CONFIG_FILES = $CONFIG_FILES
13161 CONFIG_HEADERS = $CONFIG_HEADERS
13162 CONFIG_LINKS = $CONFIG_LINKS
13163 CONFIG_COMMANDS = $CONFIG_COMMANDS
13166 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13171 case $ac_config_files in *"
13172 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13175 case $ac_config_headers in *"
13176 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13181 # Files that config.status was made for.
13182 config_files="$ac_config_files"
13183 config_headers="$ac_config_headers"
13184 config_commands="$ac_config_commands"
13188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13190 \`$as_me' instantiates files and other configuration actions
13191 from templates according to the current configuration. Unless the files
13192 and actions are specified as TAGs, all are instantiated by default.
13194 Usage: $0 [OPTION]... [TAG]...
13196 -h, --help print this help, then exit
13197 -V, --version print version number and configuration settings, then exit
13198 --config print configuration, then exit
13199 -q, --quiet, --silent
13200 do not print progress messages
13201 -d, --debug don't remove temporary files
13202 --recheck update $as_me by reconfiguring in the same conditions
13203 --file=FILE[:TEMPLATE]
13204 instantiate the configuration file FILE
13205 --header=FILE[:TEMPLATE]
13206 instantiate the configuration header FILE
13208 Configuration files:
13211 Configuration headers:
13214 Configuration commands:
13217 Report bugs to the package provider."
13220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13221 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13224 configured by $0, generated by GNU Autoconf 2.68,
13225 with options \\"\$ac_cs_config\\"
13227 Copyright (C) 2010 Free Software Foundation, Inc.
13228 This config.status script is free software; the Free Software Foundation
13229 gives unlimited permission to copy, distribute and modify it."
13234 test -n "\$AWK" || AWK=awk
13237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13238 # The default lists apply if the user does not specify any file.
13244 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13245 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13249 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13261 # Handling of the options.
13262 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13264 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13265 $as_echo "$ac_cs_version"; exit ;;
13266 --config | --confi | --conf | --con | --co | --c )
13267 $as_echo "$ac_cs_config"; exit ;;
13268 --debug | --debu | --deb | --de | --d | -d )
13270 --file | --fil | --fi | --f )
13273 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13274 '') as_fn_error $? "missing file argument" ;;
13276 as_fn_append CONFIG_FILES " '$ac_optarg'"
13277 ac_need_defaults=false;;
13278 --header | --heade | --head | --hea )
13281 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13283 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13284 ac_need_defaults=false;;
13286 # Conflict between --help and --header
13287 as_fn_error $? "ambiguous option: \`$1'
13288 Try \`$0 --help' for more information.";;
13289 --help | --hel | -h )
13290 $as_echo "$ac_cs_usage"; exit ;;
13291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13292 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13295 # This is an error.
13296 -*) as_fn_error $? "unrecognized option: \`$1'
13297 Try \`$0 --help' for more information." ;;
13299 *) as_fn_append ac_config_targets " $1"
13300 ac_need_defaults=false ;;
13306 ac_configure_extra_args=
13308 if $ac_cs_silent; then
13310 ac_configure_extra_args="$ac_configure_extra_args --silent"
13314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13315 if \$ac_cs_recheck; then
13316 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13318 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13319 CONFIG_SHELL='$SHELL'
13320 export CONFIG_SHELL
13325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13329 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13330 ## Running $as_me. ##
13336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13342 # The HP-UX ksh and POSIX shell print the target directory to stdout
13343 # if CDPATH is set.
13344 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13346 sed_quote_subst='$sed_quote_subst'
13347 double_quote_subst='$double_quote_subst'
13348 delay_variable_subst='$delay_variable_subst'
13349 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13350 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13351 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13352 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13353 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13354 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13355 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13356 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13357 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13358 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13359 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13360 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13361 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13362 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13363 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13364 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13365 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13366 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13367 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13368 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13369 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13370 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13371 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13372 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13373 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13374 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13375 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13376 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13377 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13378 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13379 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13380 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13381 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13382 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13383 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13384 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13385 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13386 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13387 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13388 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13389 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13390 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13391 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13392 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13393 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13394 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13395 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13396 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13397 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13398 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13399 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13400 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13401 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13402 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13403 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13404 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"`'
13405 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13406 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13407 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13408 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13409 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13410 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13411 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13412 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13413 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13414 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13415 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13416 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13417 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13418 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13419 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13420 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13421 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13422 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13423 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13424 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13425 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13426 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13427 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13428 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13429 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13430 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13431 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13432 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13433 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13434 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13435 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13436 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13437 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13438 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13439 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13440 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13441 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13442 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13443 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13444 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13445 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13446 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13447 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13448 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13449 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13450 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13451 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13452 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13453 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13454 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13455 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13456 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13457 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13458 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13459 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13460 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13461 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13462 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13463 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13464 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13465 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13466 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13467 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13468 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13469 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13470 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13471 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13472 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13473 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13474 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13475 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13476 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13477 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13478 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13481 LTCFLAGS='$LTCFLAGS'
13482 compiler='$compiler_DEFAULT'
13484 # A function that is used when there is no print builtin or printf.
13485 func_fallback_echo ()
13487 eval 'cat <<_LTECHO_EOF
13492 # Quote evaled strings.
13506 deplibs_check_method \
13511 sharedlib_from_linklib_cmd \
13514 archiver_list_spec \
13520 lt_cv_sys_global_symbol_pipe \
13521 lt_cv_sys_global_symbol_to_cdecl \
13522 lt_cv_sys_global_symbol_to_c_name_address \
13523 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13524 nm_file_list_spec \
13525 lt_prog_compiler_no_builtin_flag \
13526 lt_prog_compiler_pic \
13527 lt_prog_compiler_wl \
13528 lt_prog_compiler_static \
13529 lt_cv_prog_compiler_c_o \
13538 export_dynamic_flag_spec \
13539 whole_archive_flag_spec \
13540 compiler_needs_object \
13542 allow_undefined_flag \
13543 no_undefined_flag \
13544 hardcode_libdir_flag_spec \
13545 hardcode_libdir_flag_spec_ld \
13546 hardcode_libdir_separator \
13550 variables_saved_for_relink \
13552 library_names_spec \
13554 install_override_mode \
13558 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13559 *[\\\\\\\`\\"\\\$]*)
13560 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13563 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13568 # Double-quote double-evaled strings.
13569 for var in reload_cmds \
13570 old_postinstall_cmds \
13571 old_postuninstall_cmds \
13573 extract_expsyms_cmds \
13574 old_archive_from_new_cmds \
13575 old_archive_from_expsyms_cmds \
13577 archive_expsym_cmds \
13579 module_expsym_cmds \
13580 export_symbols_cmds \
13584 postuninstall_cmds \
13586 sys_lib_search_path_spec \
13587 sys_lib_dlsearch_path_spec; do
13588 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13589 *[\\\\\\\`\\"\\\$]*)
13590 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13593 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13598 ac_aux_dir='$ac_aux_dir'
13599 xsi_shell='$xsi_shell'
13600 lt_shell_append='$lt_shell_append'
13602 # See if we are running on zsh, and set the options which allow our
13603 # commands through without removal of \ escapes INIT.
13604 if test -n "\${ZSH_VERSION+set}" ; then
13605 setopt NO_GLOB_SUBST
13611 TIMESTAMP='$TIMESTAMP'
13620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13622 # Handling of arguments.
13623 for ac_config_target in $ac_config_targets
13625 case $ac_config_target in
13626 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
13627 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13628 "include/builddefs") CONFIG_FILES="$CONFIG_FILES include/builddefs" ;;
13630 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13635 # If the user did not use the arguments to specify the items to instantiate,
13636 # then the envvar interface is used. Set only those that are not.
13637 # We use the long form for the default assignment because of an extremely
13638 # bizarre bug on SunOS 4.1.3.
13639 if $ac_need_defaults; then
13640 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13641 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13642 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13645 # Have a temporary directory for convenience. Make it in the build tree
13646 # simply because there is no reason against having it here, and in addition,
13647 # creating and moving files from /tmp can sometimes cause problems.
13648 # Hook for its removal unless debugging.
13649 # Note that there is a small window in which the directory will not be cleaned:
13650 # after its creation but before its name has been assigned to `$tmp'.
13654 trap 'exit_status=$?
13655 : "${ac_tmp:=$tmp}"
13656 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13658 trap 'as_fn_exit 1' 1 2 13 15
13660 # Create a (secure) tmp directory for tmp files.
13663 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13667 tmp=./conf$$-$RANDOM
13668 (umask 077 && mkdir "$tmp")
13669 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13672 # Set up the scripts for CONFIG_FILES section.
13673 # No need to generate them if there are no CONFIG_FILES.
13674 # This happens for instance with `./config.status config.h'.
13675 if test -n "$CONFIG_FILES"; then
13678 ac_cr=`echo X | tr X '\015'`
13679 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13680 # But we know of no other shell where ac_cr would be empty at this
13681 # point, so we can use a bashism as a fallback.
13682 if test "x$ac_cr" = x; then
13683 eval ac_cr=\$\'\\r\'
13685 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13686 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13689 ac_cs_awk_cr=$ac_cr
13692 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13697 echo "cat >conf$$subs.awk <<_ACEOF" &&
13698 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13700 } >conf$$subs.sh ||
13701 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13702 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13704 for ac_last_try in false false false false false :; do
13705 . ./conf$$subs.sh ||
13706 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13708 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13709 if test $ac_delim_n = $ac_delim_num; then
13711 elif $ac_last_try; then
13712 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13714 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13717 rm -f conf$$subs.sh
13719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13720 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13724 s/^/S["/; s/!.*/"]=/
13734 s/\(.\{148\}\)..*/\1/
13736 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13741 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13748 s/\(.\{148\}\)..*/\1/
13750 s/["\\]/\\&/g; s/^/"/; s/$/"/
13754 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13759 ' <conf$$subs.awk | sed '
13764 ' >>$CONFIG_STATUS || ac_write_fail=1
13765 rm -f conf$$subs.awk
13766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13768 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13769 for (key in S) S_is_set[key] = 1
13775 nfields = split(line, field, "@")
13777 len = length(field[1])
13778 for (i = 2; i < nfields; i++) {
13780 keylen = length(key)
13781 if (S_is_set[key]) {
13783 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13784 len += length(value) + length(field[++i])
13795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13796 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13797 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13800 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13801 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13804 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13805 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13806 # trailing colons and then remove the whole line if VPATH becomes empty
13807 # (actually we leave an empty line to preserve line numbers).
13808 if test "x$srcdir" = x.; then
13809 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13828 fi # test -n "$CONFIG_FILES"
13830 # Set up the scripts for CONFIG_HEADERS section.
13831 # No need to generate them if there are no CONFIG_HEADERS.
13832 # This happens for instance with `./config.status Makefile'.
13833 if test -n "$CONFIG_HEADERS"; then
13834 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13838 # Transform confdefs.h into an awk script `defines.awk', embedded as
13839 # here-document in config.status, that substitutes the proper values into
13840 # config.h.in to produce config.h.
13842 # Create a delimiter string that does not exist in confdefs.h, to ease
13843 # handling of long lines.
13845 for ac_last_try in false false :; do
13846 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13847 if test -z "$ac_tt"; then
13849 elif $ac_last_try; then
13850 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13852 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13856 # For the awk script, D is an array of macro values keyed by name,
13857 # likewise P contains macro parameters if any. Preserve backslash
13858 # newline sequences.
13860 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13862 s/.\{148\}/&'"$ac_delim"'/g
13865 s/^[ ]*#[ ]*define[ ][ ]*/ /
13872 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13874 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13878 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13879 D["\1"]=" \3\\\\\\n"\\/p
13881 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13886 s/.\{148\}/&'"$ac_delim"'/g
13891 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13894 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13896 ' <confdefs.h | sed '
13897 s/'"$ac_delim"'/"\\\
13898 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13901 for (key in D) D_is_set[key] = 1
13904 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13906 split(line, arg, " ")
13907 if (arg[1] == "#") {
13911 defundef = substr(arg[1], 2)
13914 split(mac1, mac2, "(") #)
13916 prefix = substr(line, 1, index(line, defundef) - 1)
13917 if (D_is_set[macro]) {
13918 # Preserve the white space surrounding the "#".
13919 print prefix "define", macro P[macro] D[macro]
13922 # Replace #undef with comments. This is necessary, for example,
13923 # in the case of _POSIX_SOURCE, which is predefined and required
13924 # on some systems where configure will not decide to define it.
13925 if (defundef == "undef") {
13926 print "/*", prefix defundef, macro, "*/"
13934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13935 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13936 fi # test -n "$CONFIG_HEADERS"
13939 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13944 :[FHLC]) ac_mode=$ac_tag; continue;;
13946 case $ac_mode$ac_tag in
13948 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13949 :[FH]-) ac_tag=-:-;;
13950 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13967 -) ac_f="$ac_tmp/stdin";;
13968 *) # Look for the file first in the build tree, then in the source tree
13969 # (if the path is not absolute). The absolute path cannot be DOS-style,
13970 # because $ac_f cannot contain `:'.
13974 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13976 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13978 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13979 as_fn_append ac_file_inputs " '$ac_f'"
13982 # Let's still pretend it is `configure' which instantiates (i.e., don't
13983 # use $as_me), people would be surprised to read:
13984 # /* config.h. Generated by config.status. */
13985 configure_input='Generated from '`
13986 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13988 if test x"$ac_file" != x-; then
13989 configure_input="$ac_file. $configure_input"
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13991 $as_echo "$as_me: creating $ac_file" >&6;}
13993 # Neutralize special characters interpreted by sed in replacement strings.
13994 case $configure_input in #(
13995 *\&* | *\|* | *\\* )
13996 ac_sed_conf_input=`$as_echo "$configure_input" |
13997 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13998 *) ac_sed_conf_input=$configure_input;;
14002 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14003 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14008 ac_dir=`$as_dirname -- "$ac_file" ||
14009 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14010 X"$ac_file" : 'X\(//\)[^/]' \| \
14011 X"$ac_file" : 'X\(//\)$' \| \
14012 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14013 $as_echo X"$ac_file" |
14014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14018 /^X\(\/\/\)[^/].*/{
14031 as_dir="$ac_dir"; as_fn_mkdir_p
14035 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14037 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14038 # A ".." for each directory in $ac_dir_suffix.
14039 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14040 case $ac_top_builddir_sub in
14041 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14042 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14045 ac_abs_top_builddir=$ac_pwd
14046 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14047 # for backward compatibility:
14048 ac_top_builddir=$ac_top_build_prefix
14051 .) # We are building in place.
14053 ac_top_srcdir=$ac_top_builddir_sub
14054 ac_abs_top_srcdir=$ac_pwd ;;
14055 [\\/]* | ?:[\\/]* ) # Absolute name.
14056 ac_srcdir=$srcdir$ac_dir_suffix;
14057 ac_top_srcdir=$srcdir
14058 ac_abs_top_srcdir=$srcdir ;;
14059 *) # Relative name.
14060 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14061 ac_top_srcdir=$ac_top_build_prefix$srcdir
14062 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14064 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14076 # If the template does not know about datarootdir, expand it.
14077 # FIXME: This hack should be removed a few years after 2.60.
14078 ac_datarootdir_hack=; ac_datarootdir_seen=
14089 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14090 *datarootdir*) ac_datarootdir_seen=yes;;
14091 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14093 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14096 ac_datarootdir_hack='
14097 s&@datadir@&$datadir&g
14098 s&@docdir@&$docdir&g
14099 s&@infodir@&$infodir&g
14100 s&@localedir@&$localedir&g
14101 s&@mandir@&$mandir&g
14102 s&\\\${datarootdir}&$datarootdir&g' ;;
14106 # Neutralize VPATH when `$srcdir' = `.'.
14107 # Shell code in configure.ac might set extrasub.
14108 # FIXME: do we really want to maintain this feature?
14109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14110 ac_sed_extra="$ac_vpsub
14113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14115 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14116 s|@configure_input@|$ac_sed_conf_input|;t t
14117 s&@top_builddir@&$ac_top_builddir_sub&;t t
14118 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14119 s&@srcdir@&$ac_srcdir&;t t
14120 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14121 s&@top_srcdir@&$ac_top_srcdir&;t t
14122 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14123 s&@builddir@&$ac_builddir&;t t
14124 s&@abs_builddir@&$ac_abs_builddir&;t t
14125 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14126 $ac_datarootdir_hack
14128 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14129 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14131 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14132 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14133 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14134 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14136 which seems to be undefined. Please make sure it is defined" >&5
14137 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14138 which seems to be undefined. Please make sure it is defined" >&2;}
14140 rm -f "$ac_tmp/stdin"
14142 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14143 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14145 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14151 if test x"$ac_file" != x-; then
14153 $as_echo "/* $configure_input */" \
14154 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14155 } >"$ac_tmp/config.h" \
14156 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14157 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14159 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14162 mv "$ac_tmp/config.h" "$ac_file" \
14163 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14166 $as_echo "/* $configure_input */" \
14167 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14168 || as_fn_error $? "could not create -" "$LINENO" 5
14172 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14173 $as_echo "$as_me: executing $ac_file commands" >&6;}
14178 case $ac_file$ac_mode in
14181 # See if we are running on zsh, and set the options which allow our
14182 # commands through without removal of \ escapes.
14183 if test -n "${ZSH_VERSION+set}" ; then
14184 setopt NO_GLOB_SUBST
14187 cfgfile="${ofile}T"
14188 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14191 cat <<_LT_EOF >> "$cfgfile"
14194 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14195 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14196 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14197 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14199 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14200 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14202 # Written by Gordon Matzigkeit, 1996
14204 # This file is part of GNU Libtool.
14206 # GNU Libtool is free software; you can redistribute it and/or
14207 # modify it under the terms of the GNU General Public License as
14208 # published by the Free Software Foundation; either version 2 of
14209 # the License, or (at your option) any later version.
14211 # As a special exception to the GNU General Public License,
14212 # if you distribute this file as part of a program or library that
14213 # is built using GNU Libtool, you may include this file under the
14214 # same distribution terms that you use for the rest of that program.
14216 # GNU Libtool is distributed in the hope that it will be useful,
14217 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14218 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14219 # GNU General Public License for more details.
14221 # You should have received a copy of the GNU General Public License
14222 # along with GNU Libtool; see the file COPYING. If not, a copy
14223 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14224 # obtained by writing to the Free Software Foundation, Inc.,
14225 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14228 # The names of the tagged configurations supported by this script.
14231 # ### BEGIN LIBTOOL CONFIG
14233 # Which release of libtool.m4 was used?
14234 macro_version=$macro_version
14235 macro_revision=$macro_revision
14237 # Whether or not to build shared libraries.
14238 build_libtool_libs=$enable_shared
14240 # Whether or not to build static libraries.
14241 build_old_libs=$enable_static
14243 # What type of objects to build.
14246 # Whether or not to optimize for fast installation.
14247 fast_install=$enable_fast_install
14249 # Shell to use when invoking shell scripts.
14252 # An echo program that protects backslashes.
14256 host_alias=$host_alias
14260 # The build system.
14261 build_alias=$build_alias
14265 # A sed program that does not truncate output.
14268 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14269 Xsed="\$SED -e 1s/^X//"
14271 # A grep program that handles long lines.
14277 # A literal string matcher.
14280 # A BSD- or MS-compatible name lister.
14283 # Whether we need soft or hard links.
14286 # What is the maximum length of a command?
14287 max_cmd_len=$max_cmd_len
14289 # Object file suffix (normally "o").
14292 # Executable file suffix (normally "").
14295 # whether the shell understands "unset".
14298 # turn spaces into newlines.
14301 # turn newlines into spaces.
14304 # convert \$build file names to \$host format.
14305 to_host_file_cmd=$lt_cv_to_host_file_cmd
14307 # convert \$build files to toolchain format.
14308 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14310 # An object symbol dumper.
14311 OBJDUMP=$lt_OBJDUMP
14313 # Method to check whether dependent libraries are shared objects.
14314 deplibs_check_method=$lt_deplibs_check_method
14316 # Command to use when deplibs_check_method = "file_magic".
14317 file_magic_cmd=$lt_file_magic_cmd
14319 # How to find potential files when deplibs_check_method = "file_magic".
14320 file_magic_glob=$lt_file_magic_glob
14322 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14323 want_nocaseglob=$lt_want_nocaseglob
14325 # DLL creation program.
14326 DLLTOOL=$lt_DLLTOOL
14328 # Command to associate shared and link libraries.
14329 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14334 # Flags to create an archive.
14335 AR_FLAGS=$lt_AR_FLAGS
14337 # How to feed a file listing to the archiver.
14338 archiver_list_spec=$lt_archiver_list_spec
14340 # A symbol stripping program.
14343 # Commands used to install an old-style archive.
14345 old_postinstall_cmds=$lt_old_postinstall_cmds
14346 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14348 # Whether to use a lock for old archive extraction.
14349 lock_old_archive_extraction=$lock_old_archive_extraction
14354 # LTCC compiler flags.
14355 LTCFLAGS=$lt_CFLAGS
14357 # Take the output of nm and produce a listing of raw symbols and C names.
14358 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14360 # Transform the output of nm in a proper C declaration.
14361 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14363 # Transform the output of nm in a C name address pair.
14364 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14366 # Transform the output of nm in a C name address pair when lib prefix is needed.
14367 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14369 # Specify filename containing input files for \$NM.
14370 nm_file_list_spec=$lt_nm_file_list_spec
14372 # The root where to search for dependent libraries,and in which our libraries should be installed.
14373 lt_sysroot=$lt_sysroot
14375 # The name of the directory that contains temporary libtool files.
14378 # Used to examine libraries when file_magic_cmd begins with "file".
14379 MAGIC_CMD=$MAGIC_CMD
14381 # Must we lock files when doing compilation?
14382 need_locks=$lt_need_locks
14385 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14387 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14388 DSYMUTIL=$lt_DSYMUTIL
14390 # Tool to change global to local symbols on Mac OS X.
14393 # Tool to manipulate fat objects and archives on Mac OS X.
14396 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14399 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14400 OTOOL64=$lt_OTOOL64
14402 # Old archive suffix (normally "a").
14405 # Shared library suffix (normally ".so").
14406 shrext_cmds=$lt_shrext_cmds
14408 # The commands to extract the exported symbol list from a shared archive.
14409 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14411 # Variables whose values should be saved in libtool wrapper scripts and
14412 # restored at link time.
14413 variables_saved_for_relink=$lt_variables_saved_for_relink
14415 # Do we need the "lib" prefix for modules?
14416 need_lib_prefix=$need_lib_prefix
14418 # Do we need a version for libraries?
14419 need_version=$need_version
14421 # Library versioning type.
14422 version_type=$version_type
14424 # Shared library runtime path variable.
14425 runpath_var=$runpath_var
14427 # Shared library path variable.
14428 shlibpath_var=$shlibpath_var
14430 # Is shlibpath searched before the hard-coded library search path?
14431 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14433 # Format of library name prefix.
14434 libname_spec=$lt_libname_spec
14436 # List of archive names. First name is the real one, the rest are links.
14437 # The last name is the one that the linker finds with -lNAME
14438 library_names_spec=$lt_library_names_spec
14440 # The coded name of the library, if different from the real name.
14441 soname_spec=$lt_soname_spec
14443 # Permission mode override for installation of shared libraries.
14444 install_override_mode=$lt_install_override_mode
14446 # Command to use after installation of a shared archive.
14447 postinstall_cmds=$lt_postinstall_cmds
14449 # Command to use after uninstallation of a shared archive.
14450 postuninstall_cmds=$lt_postuninstall_cmds
14452 # Commands used to finish a libtool library installation in a directory.
14453 finish_cmds=$lt_finish_cmds
14455 # As "finish_cmds", except a single script fragment to be evaled but
14457 finish_eval=$lt_finish_eval
14459 # Whether we should hardcode library paths into libraries.
14460 hardcode_into_libs=$hardcode_into_libs
14462 # Compile-time system search path for libraries.
14463 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14465 # Run-time system search path for libraries.
14466 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14468 # Whether dlopen is supported.
14469 dlopen_support=$enable_dlopen
14471 # Whether dlopen of programs is supported.
14472 dlopen_self=$enable_dlopen_self
14474 # Whether dlopen of statically linked programs is supported.
14475 dlopen_self_static=$enable_dlopen_self_static
14477 # Commands to strip libraries.
14478 old_striplib=$lt_old_striplib
14479 striplib=$lt_striplib
14482 # The linker used to build libraries.
14485 # How to create reloadable object files.
14486 reload_flag=$lt_reload_flag
14487 reload_cmds=$lt_reload_cmds
14489 # Commands used to build an old-style archive.
14490 old_archive_cmds=$lt_old_archive_cmds
14492 # A language specific compiler.
14495 # Is the compiler the GNU compiler?
14498 # Compiler flag to turn off builtin functions.
14499 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14501 # Additional compiler flags for building library objects.
14502 pic_flag=$lt_lt_prog_compiler_pic
14504 # How to pass a linker flag through the compiler.
14505 wl=$lt_lt_prog_compiler_wl
14507 # Compiler flag to prevent dynamic linking.
14508 link_static_flag=$lt_lt_prog_compiler_static
14510 # Does compiler simultaneously support -c and -o options?
14511 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14513 # Whether or not to add -lc for building shared libraries.
14514 build_libtool_need_lc=$archive_cmds_need_lc
14516 # Whether or not to disallow shared libs when runtime libs are static.
14517 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14519 # Compiler flag to allow reflexive dlopens.
14520 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14522 # Compiler flag to generate shared objects directly from archives.
14523 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14525 # Whether the compiler copes with passing no objects directly.
14526 compiler_needs_object=$lt_compiler_needs_object
14528 # Create an old-style archive from a shared archive.
14529 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14531 # Create a temporary old-style archive to link instead of a shared archive.
14532 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14534 # Commands used to build a shared archive.
14535 archive_cmds=$lt_archive_cmds
14536 archive_expsym_cmds=$lt_archive_expsym_cmds
14538 # Commands used to build a loadable module if different from building
14539 # a shared archive.
14540 module_cmds=$lt_module_cmds
14541 module_expsym_cmds=$lt_module_expsym_cmds
14543 # Whether we are building with GNU ld or not.
14544 with_gnu_ld=$lt_with_gnu_ld
14546 # Flag that allows shared libraries with undefined symbols to be built.
14547 allow_undefined_flag=$lt_allow_undefined_flag
14549 # Flag that enforces no undefined symbols.
14550 no_undefined_flag=$lt_no_undefined_flag
14552 # Flag to hardcode \$libdir into a binary during linking.
14553 # This must work even if \$libdir does not exist
14554 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14556 # If ld is used when linking, flag to hardcode \$libdir into a binary
14557 # during linking. This must work even if \$libdir does not exist.
14558 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14560 # Whether we need a single "-rpath" flag with a separated argument.
14561 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14563 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14564 # DIR into the resulting binary.
14565 hardcode_direct=$hardcode_direct
14567 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14568 # DIR into the resulting binary and the resulting library dependency is
14569 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14570 # library is relocated.
14571 hardcode_direct_absolute=$hardcode_direct_absolute
14573 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14574 # into the resulting binary.
14575 hardcode_minus_L=$hardcode_minus_L
14577 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14578 # into the resulting binary.
14579 hardcode_shlibpath_var=$hardcode_shlibpath_var
14581 # Set to "yes" if building a shared library automatically hardcodes DIR
14582 # into the library and all subsequent libraries and executables linked
14584 hardcode_automatic=$hardcode_automatic
14586 # Set to yes if linker adds runtime paths of dependent libraries
14587 # to runtime path list.
14588 inherit_rpath=$inherit_rpath
14590 # Whether libtool must link a program against all its dependency libraries.
14591 link_all_deplibs=$link_all_deplibs
14593 # Set to "yes" if exported symbols are required.
14594 always_export_symbols=$always_export_symbols
14596 # The commands to list exported symbols.
14597 export_symbols_cmds=$lt_export_symbols_cmds
14599 # Symbols that should not be listed in the preloaded symbols.
14600 exclude_expsyms=$lt_exclude_expsyms
14602 # Symbols that must always be exported.
14603 include_expsyms=$lt_include_expsyms
14605 # Commands necessary for linking programs (against libraries) with templates.
14606 prelink_cmds=$lt_prelink_cmds
14608 # Commands necessary for finishing linking programs.
14609 postlink_cmds=$lt_postlink_cmds
14611 # Specify filename containing input files.
14612 file_list_spec=$lt_file_list_spec
14614 # How to hardcode a shared library path into an executable.
14615 hardcode_action=$hardcode_action
14617 # ### END LIBTOOL CONFIG
14623 cat <<\_LT_EOF >> "$cfgfile"
14624 # AIX sometimes has problems with the GCC collect2 program. For some
14625 # reason, if we set the COLLECT_NAMES environment variable, the problems
14626 # vanish in a puff of smoke.
14627 if test "X${COLLECT_NAMES+set}" != Xset; then
14629 export COLLECT_NAMES
14636 ltmain="$ac_aux_dir/ltmain.sh"
14639 # We use sed instead of cat because bash on DJGPP gets confused if
14640 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14641 # text mode, it properly converts lines to CR/LF. This bash problem
14642 # is reportedly fixed, but why not run on old versions too?
14643 sed '$q' "$ltmain" >> "$cfgfile" \
14644 || (rm -f "$cfgfile"; exit 1)
14646 if test x"$xsi_shell" = xyes; then
14647 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14651 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14652 \ * ) func_dirname_result="${3}" ;;\
14654 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14655 && mv -f "$cfgfile.tmp" "$cfgfile" \
14656 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14657 test 0 -eq $? || _lt_function_replace_fail=:
14660 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14663 \ func_basename_result="${1##*/}"\
14664 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14665 && mv -f "$cfgfile.tmp" "$cfgfile" \
14666 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14667 test 0 -eq $? || _lt_function_replace_fail=:
14670 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14671 func_dirname_and_basename ()\
14674 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14675 \ * ) func_dirname_result="${3}" ;;\
14677 \ func_basename_result="${1##*/}"\
14678 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14679 && mv -f "$cfgfile.tmp" "$cfgfile" \
14680 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14681 test 0 -eq $? || _lt_function_replace_fail=:
14684 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14687 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14688 \ # positional parameters, so assign one to ordinary parameter first.\
14689 \ func_stripname_result=${3}\
14690 \ func_stripname_result=${func_stripname_result#"${1}"}\
14691 \ func_stripname_result=${func_stripname_result%"${2}"}\
14692 } # Extended-shell func_stripname 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_split_long_opt ()$/,/^} # func_split_long_opt /c\
14699 func_split_long_opt ()\
14701 \ func_split_long_opt_name=${1%%=*}\
14702 \ func_split_long_opt_arg=${1#*=}\
14703 } # Extended-shell func_split_long_opt 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 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14710 func_split_short_opt ()\
14712 \ func_split_short_opt_arg=${1#??}\
14713 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14714 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14715 && mv -f "$cfgfile.tmp" "$cfgfile" \
14716 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14717 test 0 -eq $? || _lt_function_replace_fail=:
14720 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14724 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14725 \ *) func_lo2o_result=${1} ;;\
14727 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14728 && mv -f "$cfgfile.tmp" "$cfgfile" \
14729 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14730 test 0 -eq $? || _lt_function_replace_fail=:
14733 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14736 func_xform_result=${1%.*}.lo\
14737 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14738 && mv -f "$cfgfile.tmp" "$cfgfile" \
14739 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14740 test 0 -eq $? || _lt_function_replace_fail=:
14743 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14746 func_arith_result=$(( $* ))\
14747 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14748 && mv -f "$cfgfile.tmp" "$cfgfile" \
14749 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14750 test 0 -eq $? || _lt_function_replace_fail=:
14753 sed -e '/^func_len ()$/,/^} # func_len /c\
14756 func_len_result=${#1}\
14757 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14758 && mv -f "$cfgfile.tmp" "$cfgfile" \
14759 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14760 test 0 -eq $? || _lt_function_replace_fail=:
14764 if test x"$lt_shell_append" = xyes; then
14765 sed -e '/^func_append ()$/,/^} # func_append /c\
14768 eval "${1}+=\\${2}"\
14769 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14770 && mv -f "$cfgfile.tmp" "$cfgfile" \
14771 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14772 test 0 -eq $? || _lt_function_replace_fail=:
14775 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14776 func_append_quoted ()\
14778 \ func_quote_for_eval "${2}"\
14779 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14780 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14781 && mv -f "$cfgfile.tmp" "$cfgfile" \
14782 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14783 test 0 -eq $? || _lt_function_replace_fail=:
14786 # Save a `func_append' function call where possible by direct use of '+='
14787 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14788 && mv -f "$cfgfile.tmp" "$cfgfile" \
14789 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14790 test 0 -eq $? || _lt_function_replace_fail=:
14792 # Save a `func_append' function call even when '+=' is not available
14793 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14794 && mv -f "$cfgfile.tmp" "$cfgfile" \
14795 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14796 test 0 -eq $? || _lt_function_replace_fail=:
14799 if test x"$_lt_function_replace_fail" = x":"; then
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14801 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14805 mv -f "$cfgfile" "$ofile" ||
14806 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14817 ac_clean_files=$ac_clean_files_save
14819 test $ac_write_fail = 0 ||
14820 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14823 # configure is writing to config.log, and then calls config.status.
14824 # config.status does its own redirection, appending to config.log.
14825 # Unfortunately, on DOS this fails, as config.log is still kept open
14826 # by configure, so config.status won't be able to write to it; its
14827 # output is simply discarded. So we exec the FD to /dev/null,
14828 # effectively closing config.log, so it can be properly (re)opened and
14829 # appended to by config.status. When coming back to configure, we
14830 # need to make the FD available again.
14831 if test "$no_create" != yes; then
14833 ac_config_status_args=
14834 test "$silent" = yes &&
14835 ac_config_status_args="$ac_config_status_args --quiet"
14837 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14839 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14840 # would make configure fail if this is the last instruction.
14841 $ac_cs_success || as_fn_exit 1
14843 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14845 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}